@archieai/ui 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/MessageBubble/MessageBubble.d.ts +28 -0
- package/dist/components/molecules/MessageBubble/MessageBubble.d.ts.map +1 -1
- package/dist/components/molecules/MessageBubble/MessageBubble.styles.d.ts +8 -0
- package/dist/components/molecules/MessageBubble/MessageBubble.styles.d.ts.map +1 -1
- package/dist/components/renderers/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/dist/index.cjs +28 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3842 -3600
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),V=require("react"),ye=require("framer-motion"),p=require("./Search-jJp9VWfl.cjs"),Wo=require("@radix-ui/react-tabs"),s0=require("sonner"),Xo=require("@radix-ui/react-tooltip"),Ln=require("react-dom");function Ot(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const T=Ot(V),R0=Ot(Wo),D0=Ot(Xo),Yo=Ot(Ln);function jn(r){var e,t,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(e=0;e<n;e++)r[e]&&(t=jn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function In(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=jn(r))&&(a&&(a+=" "),a+=e);return a}const Hr="-",Zo=r=>{const e=Jo(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(Hr);return l[0]===""&&l.length!==1&&l.shift(),Pn(l,e)||Ko(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Pn=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Pn(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(Hr);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},wa=/^\[(.+)\]$/,Ko=r=>{if(wa.test(r)){const e=wa.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},Jo=r=>{const{theme:e,classGroups:t}=r,a={nextPart:new Map,validators:[]};for(const n in t)Cr(t[n],a,n,e);return a},Cr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:Sa(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Qo(n)){Cr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Cr(o,Sa(e,s),t,a)})})},Sa=(r,e)=>{let t=r;return e.split(Hr).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},Qo=r=>r.isThemeGetter,ei=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,a=new Map;const n=(s,o)=>{t.set(s,o),e++,e>r&&(e=0,a=t,t=new Map)};return{get(s){let o=t.get(s);if(o!==void 0)return o;if((o=a.get(s))!==void 0)return n(s,o),o},set(s,o){t.has(s)?t.set(s,o):n(s,o)}}},Mr="!",Tr=":",ti=Tr.length,ri=r=>{const{prefix:e,experimentalParseClassName:t}=r;let a=n=>{const s=[];let o=0,l=0,u=0,d;for(let M=0;M<n.length;M++){let k=n[M];if(o===0&&l===0){if(k===Tr){s.push(n.slice(u,M)),u=M+ti;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const f=s.length===0?n:n.substring(u),g=ai(f),x=g!==f,w=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:w}};if(e){const n=e+Tr,s=a;a=o=>o.startsWith(n)?s(o.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(t){const n=a;a=s=>t({className:s,parseClassName:n})}return a},ai=r=>r.endsWith(Mr)?r.substring(0,r.length-1):r.startsWith(Mr)?r.substring(1):r,ni=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const n=[];let s=[];return a.forEach(o=>{o[0]==="["||e[o]?(n.push(...s.sort(),o),s=[]):s.push(o)}),n.push(...s.sort()),n}},si=r=>({cache:ei(r.cacheSize),parseClassName:ri(r),sortModifiers:ni(r),...Zo(r)}),oi=/\s+/,ii=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(oi);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:g,modifiers:x,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:k}=t(f);if(g){u=f+(u.length>0?" "+u:u);continue}let A=!!k,N=a(A?M.substring(0,k):M);if(!N){if(!A){u=f+(u.length>0?" "+u:u);continue}if(N=a(M),!N){u=f+(u.length>0?" "+u:u);continue}A=!1}const E=s(x).join(":"),R=w?E+Mr:E,P=R+N;if(o.includes(P))continue;o.push(P);const O=n(N,A);for(let Y=0;Y<O.length;++Y){const q=O[Y];o.push(R+q)}u=f+(u.length>0?" "+u:u)}return u};function li(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=On(e))&&(a&&(a+=" "),a+=t);return a}const On=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=On(r[a]))&&(t&&(t+=" "),t+=e);return t};function ci(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((f,g)=>g(f),r());return t=si(d),a=t.cache.get,n=t.cache.set,s=l,l(u)}function l(u){const d=a(u);if(d)return d;const f=ii(u,t);return n(u,f),f}return function(){return s(li.apply(null,arguments))}}const ke=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ui=/^\d+\/\d+$/,di=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j0=r=>ui.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),p0=r=>!!r&&Number.isInteger(Number(r)),Kt=r=>r.endsWith("%")&&ee(r.slice(0,-1)),a0=r=>di.test(r),vi=()=>!0,gi=r=>mi.test(r)&&!hi.test(r),Hn=()=>!1,bi=r=>fi.test(r),yi=r=>pi.test(r),xi=r=>!U(r)&&!$(r),wi=r=>$0(r,Gn,Hn),U=r=>Fn.test(r),T0=r=>$0(r,Un,gi),Jt=r=>$0(r,Ti,ee),ka=r=>$0(r,Vn,Hn),Si=r=>$0(r,_n,yi),ct=r=>$0(r,$n,bi),$=r=>qn.test(r),Z0=r=>W0(r,Un),ki=r=>W0(r,zi),Ca=r=>W0(r,Vn),Ci=r=>W0(r,Gn),Mi=r=>W0(r,_n),ut=r=>W0(r,$n,!0),$0=(r,e,t)=>{const a=Fn.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},W0=(r,e,t=!1)=>{const a=qn.exec(r);return a?a[1]?e(a[1]):t:!1},Vn=r=>r==="position"||r==="percentage",_n=r=>r==="image"||r==="url",Gn=r=>r==="length"||r==="size"||r==="bg-size",Un=r=>r==="length",Ti=r=>r==="number",zi=r=>r==="family-name",$n=r=>r==="shadow",Ai=()=>{const r=ke("color"),e=ke("font"),t=ke("text"),a=ke("font-weight"),n=ke("tracking"),s=ke("leading"),o=ke("breakpoint"),l=ke("container"),u=ke("spacing"),d=ke("radius"),f=ke("shadow"),g=ke("inset-shadow"),x=ke("text-shadow"),w=ke("drop-shadow"),M=ke("blur"),k=ke("perspective"),A=ke("aspect"),N=ke("ease"),E=ke("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),$,U],Y=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],j=()=>[$,U,u],_=()=>[j0,"full","auto",...j()],le=()=>[p0,"none","subgrid",$,U],pe=()=>["auto",{span:["full",p0,$,U]},p0,$,U],ae=()=>[p0,"auto",$,U],be=()=>["auto","min","max","fr",$,U],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...j()],Me=()=>[j0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],X=()=>[r,$,U],t0=()=>[...P(),Ca,ka,{position:[$,U]}],Be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",Ci,wi,{size:[$,U]}],we=()=>[Kt,Z0,T0],me=()=>["","none","full",d,$,U],Se=()=>["",ee,Z0,T0],Le=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[ee,Kt,Ca,ka],Ve=()=>["","none",M,$,U],_e=()=>["none",ee,$,U],Ge=()=>["none",ee,$,U],M0=()=>[ee,$,U],r0=()=>[j0,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[a0],breakpoint:[a0],color:[vi],container:[a0],"drop-shadow":[a0],ease:["in","out","in-out"],font:[xi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[a0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[a0],shadow:[a0],spacing:["px",ee],text:[a0],"text-shadow":[a0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j0,U,$,A]}],container:["container"],columns:[{columns:[ee,U,$,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[p0,"auto",$,U]}],basis:[{basis:[j0,"full","auto",l,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,j0,"auto","initial","none",U]}],grow:[{grow:["",ee,$,U]}],shrink:[{shrink:["",ee,$,U]}],order:[{order:[p0,"first","last","none",$,U]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:Me()}],w:[{w:[l,"screen",...Me()]}],"min-w":[{"min-w":[l,"screen","none",...Me()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...Me()]}],h:[{h:["screen","lh",...Me()]}],"min-h":[{"min-h":["screen","lh","none",...Me()]}],"max-h":[{"max-h":["screen","lh",...Me()]}],"font-size":[{text:["base",t,Z0,T0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,$,Jt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kt,U]}],"font-family":[{font:[ki,U,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,$,U]}],"line-clamp":[{"line-clamp":[ee,"none",$,Jt]}],leading:[{leading:[s,...j()]}],"list-image":[{"list-image":["none",$,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",$,T0]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[ee,"auto",$,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:t0()}],"bg-repeat":[{bg:Be()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},p0,$,U],radial:["",$,U],conic:[p0,$,U]},Mi,Si]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:we()}],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Le(),"hidden","none"]}],"divide-style":[{divide:[...Le(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...Le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,$,U]}],"outline-w":[{outline:["",ee,Z0,T0]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",f,ut,ct]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,ut,ct]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[ee,T0]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",x,ut,ct]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[ee,$,U]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[$,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:t0()}],"mask-repeat":[{mask:Be()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,U]}],filter:[{filter:["","none",$,U]}],blur:[{blur:Ve()}],brightness:[{brightness:[ee,$,U]}],contrast:[{contrast:[ee,$,U]}],"drop-shadow":[{"drop-shadow":["","none",w,ut,ct]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",ee,$,U]}],"hue-rotate":[{"hue-rotate":[ee,$,U]}],invert:[{invert:["",ee,$,U]}],saturate:[{saturate:[ee,$,U]}],sepia:[{sepia:["",ee,$,U]}],"backdrop-filter":[{"backdrop-filter":["","none",$,U]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[ee,$,U]}],"backdrop-contrast":[{"backdrop-contrast":[ee,$,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,$,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,$,U]}],"backdrop-invert":[{"backdrop-invert":["",ee,$,U]}],"backdrop-opacity":[{"backdrop-opacity":[ee,$,U]}],"backdrop-saturate":[{"backdrop-saturate":[ee,$,U]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,$,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",$,U]}],ease:[{ease:["linear","initial",N,$,U]}],delay:[{delay:[ee,$,U]}],animate:[{animate:["none",E,$,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,$,U]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ge()}],"scale-x":[{"scale-x":Ge()}],"scale-y":[{"scale-y":Ge()}],"scale-z":[{"scale-z":Ge()}],"scale-3d":["scale-3d"],skew:[{skew:M0()}],"skew-x":[{"skew-x":M0()}],"skew-y":[{"skew-y":M0()}],transform:[{transform:[$,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:r0()}],"translate-x":[{"translate-x":r0()}],"translate-y":[{"translate-y":r0()}],"translate-z":[{"translate-z":r0()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,U]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[ee,Z0,T0,Jt]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ni=ci(Ai);function G(...r){return Ni(In(r))}const Ma=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Ta=In,z=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Ta(r,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:s}=e,o=Object.keys(n).map(d=>{const f=t==null?void 0:t[d],g=s==null?void 0:s[d];if(f===null)return null;const x=Ma(f)||Ma(g);return n[d][x]}),l=t&&Object.entries(t).reduce((d,f)=>{let[g,x]=f;return x===void 0||(d[g]=x),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,f)=>{let{class:g,className:x,...w}=f;return Object.entries(w).every(M=>{let[k,A]=M;return Array.isArray(A)?A.includes({...s,...l}[k]):{...s,...l}[k]===A})?[...d,g,x]:d},[]);return Ta(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Di=z("relative inline-flex items-center justify-center shrink-0 overflow-hidden",{variants:{shape:{circular:"rounded-full",square:""},size:{small:"size-[16px]",big:"size-[32px]"}},compoundVariants:[{shape:"square",size:"small",className:"rounded-[4px]"},{shape:"square",size:"big",className:"rounded-[8px]"}],defaultVariants:{shape:"circular",size:"small"}}),Ei=z('font-["Inter",sans-serif] font-normal text-center text-[var(--color-blue-800)]',{variants:{size:{small:"text-[8px] leading-[16px]",big:"text-[16px] leading-[24px]"}},defaultVariants:{size:"small"}}),Ri=z("absolute inset-0 w-full h-full object-cover"),Bi=r=>{const e=r.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},Li=(r,e)=>`https://picsum.photos/seed/${r}/${e}/${e}`,Vr=V.forwardRef(({className:r,type:e="text",shape:t="circular",size:a="small",initials:n="AR",src:s,alt:o="Avatar",fallbackInitials:l,...u},d)=>{const[f,g]=V.useState(!1),x=V.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Li(x,a==="big"?64:32),k=f&&l?l:n,A=e==="image"&&!f,N=()=>{g(!0)},E={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return h.jsx("div",{ref:d,className:G(Di({shape:t,size:a}),r),style:A?void 0:E,role:"img","aria-label":o,...u,children:A?h.jsx("img",{src:M,alt:o,className:G(Ri()),onError:N}):h.jsx("span",{className:G(Ei({size:a})),children:Bi(k)})})});Vr.displayName="Avatar";const ji=z("relative inline-flex items-center justify-center shrink-0",{variants:{size:{small:"w-2 h-2",medium:"w-3 h-3",large:"w-4 h-4"}},defaultVariants:{size:"medium"}}),Ii=z("w-full h-full rounded-full",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),Pi=z("absolute w-full h-full rounded-full opacity-75 animate-ping",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),_r=V.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>h.jsxs("div",{ref:s,className:G(ji({size:t}),r),...n,children:[a&&h.jsx("span",{className:Pi({variant:e})}),h.jsx("span",{className:Ii({variant:e})})]}));_r.displayName="StatusIndicator";const Oi={display:"typography-display",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",small:"typography-small",tiny:"typography-tiny","x-small":"typography-x-small","column-header":"typography-column-header",tag:"typography-tag"},Fi={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},qi={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Hi={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Vi={serif:"!font-heading",sans:"!font-body"},i0=({variant:r,as:e,children:t,className:a,color:n="primary",weight:s,fontFamily:o})=>{const l=e||Fi[r],u=Oi[r],d=qi[n],f=s?Hi[s]:"",g=o?Vi[o]:"";return h.jsx(l,{className:G(u,d,f,g,a),children:t})},_i={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Gr=({size:r=256,colorVariant:e="dark",...t})=>{const a=_i[e];return h.jsxs("svg",{...t,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[h.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:a}),h.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:a})]})};Gr.displayName="LogoA";const Gi={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Wn=({size:r=163,colorVariant:e="dark",...t})=>{const a=Gi[e],n=603/163,s=typeof r=="number"?r:parseFloat(r),o=s*n;return h.jsxs("svg",{...t,width:o,height:s,viewBox:"0 0 603 163",fill:"none",children:[h.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[h.jsx("path",{d:"M303.686 142.03C284.282 142.03 267.966 127.819 267.966 105.332C267.966 84.0925 278.722 69.1137 300.637 67.9807L314.384 93.9439H326.694V59.4543H301.96C284.723 59.4543 270.554 65.5226 260.642 75.2972C250.537 85.2639 244.862 99.0905 244.862 114.3C244.862 142.702 267.506 163.019 293.025 163.019C314.615 163.019 330.107 148.156 332.733 127.416C326.406 136.365 315.727 142.049 303.724 142.049L303.686 142.03Z",fill:a}),h.jsx("path",{d:"M481.48 48.6811C490.204 48.6811 497.183 41.4797 497.183 32.9534C497.183 24.427 490.204 17.2256 481.48 17.2256C472.756 17.2256 465.547 24.2157 465.547 32.9534C465.547 41.691 472.526 48.6811 481.48 48.6811Z",fill:a}),h.jsx("path",{d:"M570.942 141.588C550.868 141.588 534.724 126.072 534.724 102.912V101.376H603C603 78.8691 587.949 59.4351 562.87 59.4351C536.047 59.4351 513.787 84.7838 513.787 112.533C513.787 140.282 534.513 163 561.336 163C581.622 163 598.859 150.114 602.348 126.955C594.487 137.229 583.367 141.588 570.942 141.588ZM558.94 69.9202C570.501 69.9202 578.132 79.0996 578.132 92.6381H535.606C538.654 78.005 548.049 69.9202 558.94 69.9202Z",fill:a}),h.jsx("path",{d:"M198.233 79.0995V57.2459L155.476 73.204L172.502 86.5313V148.866L168.073 153.667H146.81L84.8802 0H55.8901L57.7691 4.53204L67.8351 28.8438L19.9402 146.984L13.7856 153.667H0V160.811H56.2736V153.667H34.8187L30.4855 148.962L42.0662 118.947H104.437L115.366 148.847L110.937 153.667H90.3062V160.811H221.26V153.667H198.233V89.1622L213.725 78.0242L230.961 91.2362H240.088V59.4543H230.079C217.118 59.4543 204.847 64.6585 198.233 79.1188V79.0995ZM28.7791 153.667H28.6641L29.4885 151.516L28.7599 153.667H28.7791ZM51.7487 108.462L48.0483 104.448L71.2288 48.1818H75.7537L84.094 68.8448L94.6777 95.0577L98.4932 104.525L94.8694 108.462H51.7487ZM99.0109 105.543H99.03L100.219 108.462L99.0109 105.543Z",fill:a}),h.jsx("path",{d:"M495.668 153.667V57.2459L452.911 73.204L469.918 86.5313V148.866L465.489 153.667H443.344L438.934 148.885V91.5627C438.934 72.7816 429.328 59.4543 411.229 59.4543H407.394C392.995 59.4543 382.737 68.1919 374.895 76.2766H374.799V1.92035L328.764 16.7839L349.05 29.6695V148.866L344.64 153.667H333.404V160.811H390.253V153.667H379.229L374.819 148.866V84.3421C379.401 80.6358 385.728 76.6991 392.707 76.6991C406.014 76.6991 413.223 84.5726 413.223 98.5528V148.866L408.794 153.667H399.706V160.811H514.745V153.667H495.687H495.668Z",fill:a})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_full_logo",children:h.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};Wn.displayName="FullLogo";const Ui={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Ur=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=Ui[e],l=V.useId(),u=2800;return t?h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("style",{children:`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),I=require("react"),Se=require("framer-motion"),p=require("./Search-jJp9VWfl.cjs"),Zo=require("@radix-ui/react-tabs"),it=require("sonner"),Ko=require("@radix-ui/react-tooltip"),In=require("react-dom");function F0(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const z=F0(I),Bt=F0(Zo),Rt=F0(Ko),Jo=F0(In);function Pn(r){var e,t,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(e=0;e<n;e++)r[e]&&(t=Pn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function On(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=Pn(r))&&(a&&(a+=" "),a+=e);return a}const _r="-",Qo=r=>{const e=ti(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(_r);return l[0]===""&&l.length!==1&&l.shift(),Fn(l,e)||ei(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Fn=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Fn(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(_r);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},ka=/^\[(.+)\]$/,ei=r=>{if(ka.test(r)){const e=ka.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},ti=r=>{const{theme:e,classGroups:t}=r,a={nextPart:new Map,validators:[]};for(const n in t)Tr(t[n],a,n,e);return a},Tr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:Ca(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(ri(n)){Tr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Tr(o,Ca(e,s),t,a)})})},Ca=(r,e)=>{let t=r;return e.split(_r).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},ri=r=>r.isThemeGetter,ai=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,a=new Map;const n=(s,o)=>{t.set(s,o),e++,e>r&&(e=0,a=t,t=new Map)};return{get(s){let o=t.get(s);if(o!==void 0)return o;if((o=a.get(s))!==void 0)return n(s,o),o},set(s,o){t.has(s)?t.set(s,o):n(s,o)}}},zr="!",Nr=":",ni=Nr.length,si=r=>{const{prefix:e,experimentalParseClassName:t}=r;let a=n=>{const s=[];let o=0,l=0,u=0,d;for(let M=0;M<n.length;M++){let k=n[M];if(o===0&&l===0){if(k===Nr){s.push(n.slice(u,M)),u=M+ni;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const f=s.length===0?n:n.substring(u),g=oi(f),y=g!==f,w=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:w}};if(e){const n=e+Nr,s=a;a=o=>o.startsWith(n)?s(o.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(t){const n=a;a=s=>t({className:s,parseClassName:n})}return a},oi=r=>r.endsWith(zr)?r.substring(0,r.length-1):r.startsWith(zr)?r.substring(1):r,ii=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const n=[];let s=[];return a.forEach(o=>{o[0]==="["||e[o]?(n.push(...s.sort(),o),s=[]):s.push(o)}),n.push(...s.sort()),n}},li=r=>({cache:ai(r.cacheSize),parseClassName:si(r),sortModifiers:ii(r),...Qo(r)}),ci=/\s+/,ui=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(ci);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:g,modifiers:y,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:k}=t(f);if(g){u=f+(u.length>0?" "+u:u);continue}let N=!!k,A=a(N?M.substring(0,k):M);if(!A){if(!N){u=f+(u.length>0?" "+u:u);continue}if(A=a(M),!A){u=f+(u.length>0?" "+u:u);continue}N=!1}const E=s(y).join(":"),R=w?E+zr:E,F=R+A;if(o.includes(F))continue;o.push(F);const q=n(A,N);for(let X=0;X<q.length;++X){const _=q[X];o.push(R+_)}u=f+(u.length>0?" "+u:u)}return u};function di(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=qn(e))&&(a&&(a+=" "),a+=t);return a}const qn=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=qn(r[a]))&&(t&&(t+=" "),t+=e);return t};function mi(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((f,g)=>g(f),r());return t=li(d),a=t.cache.get,n=t.cache.set,s=l,l(u)}function l(u){const d=a(u);if(d)return d;const f=ui(u,t);return n(u,f),f}return function(){return s(di.apply(null,arguments))}}const Me=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Hn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hi=/^\d+\/\d+$/,fi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=r=>hi.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),vt=r=>!!r&&Number.isInteger(Number(r)),J0=r=>r.endsWith("%")&&ee(r.slice(0,-1)),st=r=>fi.test(r),xi=()=>!0,yi=r=>pi.test(r)&&!vi.test(r),_n=()=>!1,wi=r=>gi.test(r),Si=r=>bi.test(r),ki=r=>!$(r)&&!W(r),Ci=r=>Xt(r,$n,_n),$=r=>Hn.test(r),zt=r=>Xt(r,Wn,yi),Q0=r=>Xt(r,Ai,ee),Ma=r=>Xt(r,Gn,_n),Mi=r=>Xt(r,Un,Si),u0=r=>Xt(r,Xn,wi),W=r=>Vn.test(r),Jt=r=>Yt(r,Wn),Ti=r=>Yt(r,Di),Ta=r=>Yt(r,Gn),zi=r=>Yt(r,$n),Ni=r=>Yt(r,Un),d0=r=>Yt(r,Xn,!0),Xt=(r,e,t)=>{const a=Hn.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},Yt=(r,e,t=!1)=>{const a=Vn.exec(r);return a?a[1]?e(a[1]):t:!1},Gn=r=>r==="position"||r==="percentage",Un=r=>r==="image"||r==="url",$n=r=>r==="length"||r==="size"||r==="bg-size",Wn=r=>r==="length",Ai=r=>r==="number",Di=r=>r==="family-name",Xn=r=>r==="shadow",Ri=()=>{const r=Me("color"),e=Me("font"),t=Me("text"),a=Me("font-weight"),n=Me("tracking"),s=Me("leading"),o=Me("breakpoint"),l=Me("container"),u=Me("spacing"),d=Me("radius"),f=Me("shadow"),g=Me("inset-shadow"),y=Me("text-shadow"),w=Me("drop-shadow"),M=Me("blur"),k=Me("perspective"),N=Me("aspect"),A=Me("ease"),E=Me("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...F(),W,$],X=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],P=()=>[W,$,u],Y=()=>[It,"full","auto",...P()],be=()=>[vt,"none","subgrid",W,$],ue=()=>["auto",{span:["full",vt,W,$]},vt,W,$],te=()=>[vt,"auto",W,$],ye=()=>["auto","min","max","fr",W,$],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...P()],Ce=()=>[It,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],G=()=>[r,W,$],Ae=()=>[...F(),Ta,Ma,{position:[W,$]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ze=()=>["auto","cover","contain",zi,Ci,{size:[W,$]}],he=()=>[J0,Jt,zt],me=()=>["","none","full",d,W,$],pe=()=>["",ee,Jt,zt],Ne=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[ee,J0,Ta,Ma],Be=()=>["","none",M,W,$],Fe=()=>["none",ee,W,$],qe=()=>["none",ee,W,$],Ze=()=>[ee,W,$],Ge=()=>[It,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[st],breakpoint:[st],color:[xi],container:[st],"drop-shadow":[st],ease:["in","out","in-out"],font:[ki],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[st],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[st],shadow:[st],spacing:["px",ee],text:[st],"text-shadow":[st],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",It,$,W,N]}],container:["container"],columns:[{columns:[ee,$,W,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[vt,"auto",W,$]}],basis:[{basis:[It,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,It,"auto","initial","none",$]}],grow:[{grow:["",ee,W,$]}],shrink:[{shrink:["",ee,W,$]}],order:[{order:[vt,"first","last","none",W,$]}],"grid-cols":[{"grid-cols":be()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":be()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ce()}],w:[{w:[l,"screen",...Ce()]}],"min-w":[{"min-w":[l,"screen","none",...Ce()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...Ce()]}],h:[{h:["screen","lh",...Ce()]}],"min-h":[{"min-h":["screen","lh","none",...Ce()]}],"max-h":[{"max-h":["screen","lh",...Ce()]}],"font-size":[{text:["base",t,Jt,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,W,Q0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",J0,$]}],"font-family":[{font:[Ti,$,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,W,$]}],"line-clamp":[{"line-clamp":[ee,"none",W,Q0]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",W,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",W,zt]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[ee,"auto",W,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:ze()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vt,W,$],radial:["",W,$],conic:[vt,W,$]},Ni,Mi]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,W,$]}],"outline-w":[{outline:["",ee,Jt,zt]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",f,d0,u0]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",g,d0,u0]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[ee,zt]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",y,d0,u0]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[ee,W,$]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[W,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:ze()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,$]}],filter:[{filter:["","none",W,$]}],blur:[{blur:Be()}],brightness:[{brightness:[ee,W,$]}],contrast:[{contrast:[ee,W,$]}],"drop-shadow":[{"drop-shadow":["","none",w,d0,u0]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",ee,W,$]}],"hue-rotate":[{"hue-rotate":[ee,W,$]}],invert:[{invert:["",ee,W,$]}],saturate:[{saturate:[ee,W,$]}],sepia:[{sepia:["",ee,W,$]}],"backdrop-filter":[{"backdrop-filter":["","none",W,$]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[ee,W,$]}],"backdrop-contrast":[{"backdrop-contrast":[ee,W,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,W,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,W,$]}],"backdrop-invert":[{"backdrop-invert":["",ee,W,$]}],"backdrop-opacity":[{"backdrop-opacity":[ee,W,$]}],"backdrop-saturate":[{"backdrop-saturate":[ee,W,$]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,W,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",W,$]}],ease:[{ease:["linear","initial",A,W,$]}],delay:[{delay:[ee,W,$]}],animate:[{animate:["none",E,W,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,W,$]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[W,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,$]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,$]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[ee,Jt,zt,Q0]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ei=mi(Ri);function H(...r){return Ei(On(r))}const za=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Na=On,T=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Na(r,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:s}=e,o=Object.keys(n).map(d=>{const f=t==null?void 0:t[d],g=s==null?void 0:s[d];if(f===null)return null;const y=za(f)||za(g);return n[d][y]}),l=t&&Object.entries(t).reduce((d,f)=>{let[g,y]=f;return y===void 0||(d[g]=y),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,f)=>{let{class:g,className:y,...w}=f;return Object.entries(w).every(M=>{let[k,N]=M;return Array.isArray(N)?N.includes({...s,...l}[k]):{...s,...l}[k]===N})?[...d,g,y]:d},[]);return Na(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Bi=T("relative inline-flex items-center justify-center shrink-0 overflow-hidden",{variants:{shape:{circular:"rounded-full",square:""},size:{small:"size-[16px]",big:"size-[32px]"}},compoundVariants:[{shape:"square",size:"small",className:"rounded-[4px]"},{shape:"square",size:"big",className:"rounded-[8px]"}],defaultVariants:{shape:"circular",size:"small"}}),Li=T('font-["Inter",sans-serif] font-normal text-center text-[var(--color-blue-800)]',{variants:{size:{small:"text-[8px] leading-[16px]",big:"text-[16px] leading-[24px]"}},defaultVariants:{size:"small"}}),ji=T("absolute inset-0 w-full h-full object-cover"),Ii=r=>{const e=r.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},Pi=(r,e)=>`https://picsum.photos/seed/${r}/${e}/${e}`,Gr=I.forwardRef(({className:r,type:e="text",shape:t="circular",size:a="small",initials:n="AR",src:s,alt:o="Avatar",fallbackInitials:l,...u},d)=>{const[f,g]=I.useState(!1),y=I.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Pi(y,a==="big"?64:32),k=f&&l?l:n,N=e==="image"&&!f,A=()=>{g(!0)},E={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return h.jsx("div",{ref:d,className:H(Bi({shape:t,size:a}),r),style:N?void 0:E,role:"img","aria-label":o,...u,children:N?h.jsx("img",{src:M,alt:o,className:H(ji()),onError:A}):h.jsx("span",{className:H(Li({size:a})),children:Ii(k)})})});Gr.displayName="Avatar";const Oi=T("relative inline-flex items-center justify-center shrink-0",{variants:{size:{small:"w-2 h-2",medium:"w-3 h-3",large:"w-4 h-4"}},defaultVariants:{size:"medium"}}),Fi=T("w-full h-full rounded-full",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),qi=T("absolute w-full h-full rounded-full opacity-75 animate-ping",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),Ur=I.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>h.jsxs("div",{ref:s,className:H(Oi({size:t}),r),...n,children:[a&&h.jsx("span",{className:qi({variant:e})}),h.jsx("span",{className:Fi({variant:e})})]}));Ur.displayName="StatusIndicator";const Hi={display:"typography-display",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",small:"typography-small",tiny:"typography-tiny","x-small":"typography-x-small","column-header":"typography-column-header",tag:"typography-tag"},Vi={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},_i={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Gi={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Ui={serif:"!font-heading",sans:"!font-body"},ct=({variant:r,as:e,children:t,className:a,color:n="primary",weight:s,fontFamily:o})=>{const l=e||Vi[r],u=Hi[r],d=_i[n],f=s?Gi[s]:"",g=o?Ui[o]:"";return h.jsx(l,{className:H(u,d,f,g,a),children:t})},$i={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},$r=({size:r=256,colorVariant:e="dark",...t})=>{const a=$i[e];return h.jsxs("svg",{...t,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[h.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:a}),h.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:a})]})};$r.displayName="LogoA";const Wi={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Yn=({size:r=163,colorVariant:e="dark",...t})=>{const a=Wi[e],n=603/163,s=typeof r=="number"?r:parseFloat(r),o=s*n;return h.jsxs("svg",{...t,width:o,height:s,viewBox:"0 0 603 163",fill:"none",children:[h.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[h.jsx("path",{d:"M303.686 142.03C284.282 142.03 267.966 127.819 267.966 105.332C267.966 84.0925 278.722 69.1137 300.637 67.9807L314.384 93.9439H326.694V59.4543H301.96C284.723 59.4543 270.554 65.5226 260.642 75.2972C250.537 85.2639 244.862 99.0905 244.862 114.3C244.862 142.702 267.506 163.019 293.025 163.019C314.615 163.019 330.107 148.156 332.733 127.416C326.406 136.365 315.727 142.049 303.724 142.049L303.686 142.03Z",fill:a}),h.jsx("path",{d:"M481.48 48.6811C490.204 48.6811 497.183 41.4797 497.183 32.9534C497.183 24.427 490.204 17.2256 481.48 17.2256C472.756 17.2256 465.547 24.2157 465.547 32.9534C465.547 41.691 472.526 48.6811 481.48 48.6811Z",fill:a}),h.jsx("path",{d:"M570.942 141.588C550.868 141.588 534.724 126.072 534.724 102.912V101.376H603C603 78.8691 587.949 59.4351 562.87 59.4351C536.047 59.4351 513.787 84.7838 513.787 112.533C513.787 140.282 534.513 163 561.336 163C581.622 163 598.859 150.114 602.348 126.955C594.487 137.229 583.367 141.588 570.942 141.588ZM558.94 69.9202C570.501 69.9202 578.132 79.0996 578.132 92.6381H535.606C538.654 78.005 548.049 69.9202 558.94 69.9202Z",fill:a}),h.jsx("path",{d:"M198.233 79.0995V57.2459L155.476 73.204L172.502 86.5313V148.866L168.073 153.667H146.81L84.8802 0H55.8901L57.7691 4.53204L67.8351 28.8438L19.9402 146.984L13.7856 153.667H0V160.811H56.2736V153.667H34.8187L30.4855 148.962L42.0662 118.947H104.437L115.366 148.847L110.937 153.667H90.3062V160.811H221.26V153.667H198.233V89.1622L213.725 78.0242L230.961 91.2362H240.088V59.4543H230.079C217.118 59.4543 204.847 64.6585 198.233 79.1188V79.0995ZM28.7791 153.667H28.6641L29.4885 151.516L28.7599 153.667H28.7791ZM51.7487 108.462L48.0483 104.448L71.2288 48.1818H75.7537L84.094 68.8448L94.6777 95.0577L98.4932 104.525L94.8694 108.462H51.7487ZM99.0109 105.543H99.03L100.219 108.462L99.0109 105.543Z",fill:a}),h.jsx("path",{d:"M495.668 153.667V57.2459L452.911 73.204L469.918 86.5313V148.866L465.489 153.667H443.344L438.934 148.885V91.5627C438.934 72.7816 429.328 59.4543 411.229 59.4543H407.394C392.995 59.4543 382.737 68.1919 374.895 76.2766H374.799V1.92035L328.764 16.7839L349.05 29.6695V148.866L344.64 153.667H333.404V160.811H390.253V153.667H379.229L374.819 148.866V84.3421C379.401 80.6358 385.728 76.6991 392.707 76.6991C406.014 76.6991 413.223 84.5726 413.223 98.5528V148.866L408.794 153.667H399.706V160.811H514.745V153.667H495.687H495.668Z",fill:a})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_full_logo",children:h.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};Yn.displayName="FullLogo";const Xi={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Wr=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=Xi[e],l=I.useId(),u=2800;return t?h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("style",{children:`
|
|
2
2
|
@keyframes drawSignature-${l.replace(/:/g,"")} {
|
|
3
3
|
0% {
|
|
4
4
|
stroke-dashoffset: var(--path-length);
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
transform: scale(1);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`}),h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o,style:{transformOrigin:"252px 247px",animation:`drawDot-${l.replace(/:/g,"")} 0.3s ease-out ${n+a*.9}s forwards`,opacity:0}}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:o,strokeWidth:"2",fill:o,style:{"--path-length":u,strokeDasharray:u,strokeDashoffset:u,fillOpacity:0,animation:`drawSignature-${l.replace(/:/g,"")} ${a}s ease-out ${n}s forwards`}})]}):h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:o})]})};Ur.displayName="SignatureA";const $i=z("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate transition-[border-color] duration-300",{variants:{status:{normal:"bg-[var(--color-white)] border-[var(--color-gray-200)]",hover:"border-[var(--color-blue-800)]",generating:"bg-[var(--color-white)] border-[var(--color-gray-200)] cursor-default",error:"border-[var(--color-red-1000)]"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",disabled:!1}}),Wi=z("absolute inset-0 -z-10 transition-opacity duration-300",{variants:{status:{normal:"opacity-0 group-hover:opacity-100",hover:"opacity-100",generating:"opacity-0",error:"opacity-100"}},defaultVariants:{status:"normal"}}),Xi=z("absolute inset-0",{variants:{status:{normal:"bg-[var(--color-blue-200)]",hover:"bg-[var(--color-blue-200)]",generating:"",error:"bg-[var(--color-red-200)]"}},defaultVariants:{status:"normal"}}),Qt=z("flex gap-2 h-[75px] shrink-0",{variants:{status:{normal:"p-2 items-end",hover:"p-2 items-end",generating:"px-4 py-2 items-center",error:"px-4 py-2 items-center"}},defaultVariants:{status:"normal"}}),Yi=z("relative -bottom-2 w-[60px] h-[66px] bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] border-b-0 rounded-t-[4px] overflow-hidden transition-transform duration-300 group-hover:opacity-90 group-hover:shadow-sm"),Zi=z("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Ki=z("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Ji=z("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Qi=z("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),el=z("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),tl=z("px-4 overflow-hidden flex items-center w-[56px] relative"),rl=z("absolute w-6 h-6 text-[var(--color-blue-800)]"),al=z("w-6 h-6 text-[var(--color-gray-200)]"),nl=z("w-4 h-4 shrink-0 transition-all duration-300",{variants:{status:{normal:"text-[var(--color-blue-1000)] group-hover:text-[var(--color-blue-800)] group-hover:translate-x-0.5",hover:"text-[var(--color-blue-800)] translate-x-0.5",generating:"text-[var(--color-gray-600)] animate-spin",error:"text-[var(--color-blue-1000)] group-hover:rotate-[-20deg]"}},defaultVariants:{status:"normal"}}),sl=z("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),ol={rest:{scaleX:1},hover:{scaleX:[0,1]}},il={rest:{x:0},hover:{x:4}},ll={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},cl={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},ul=[100,66,75,50],Xn=V.forwardRef(({title:r,subtitle:e,status:t,onClick:a,onActionClick:n,className:s,disabled:o=!1},l)=>{const[u,d]=V.useState(!1),f=t||(u&&!o?"hover":"normal"),g=V.useMemo(()=>f==="generating"||f==="error"?"rest":u?"hover":"rest",[f,u]),x=V.useCallback(()=>{!t&&!o&&d(!0)},[t,o]),w=V.useCallback(()=>{!t&&!o&&d(!1)},[t,o]),M=V.useCallback(()=>{!o&&a&&a()},[o,a]),k=V.useCallback(R=>{R.stopPropagation(),!o&&n&&n()},[o,n]),A=V.useCallback(R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),M())},[M]),N=()=>f==="generating"?h.jsx("div",{className:Qt({status:"generating"}),children:h.jsx(p.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):f==="error"?h.jsx("div",{className:Qt({status:"error"}),children:h.jsx(p.TriangleAlert,{size:16,className:sl()})}):h.jsx("div",{className:Qt({status:f}),children:h.jsx("div",{className:Yi(),children:h.jsx(ye.motion.div,{className:Zi(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:ul.map((R,P)=>h.jsx(ye.motion.div,{className:Ki(),style:{width:`${R}%`},variants:ol,transition:{duration:.4,ease:"easeInOut"}},P))})})}),E=()=>f==="generating"?null:f==="error"?h.jsx("button",{type:"button",onClick:k,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:h.jsx(p.RotateCcw,{size:16,className:nl({status:"error"})})}):h.jsxs(h.Fragment,{children:[h.jsx(ye.motion.div,{className:rl(),variants:ll,transition:{duration:.3,ease:"backOut"},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),h.jsx(ye.motion.div,{className:al(),variants:cl,transition:{duration:.3},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})})]});return h.jsxs(ye.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:G($i({status:f,disabled:o}),s),onClick:M,onKeyDown:A,onMouseEnter:x,onMouseLeave:w,"aria-disabled":o,"aria-label":`${r} - ${e}${f==="error"?" - Error occurred":""}${f==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:g,children:[h.jsx("div",{className:Wi({status:f}),children:h.jsx("div",{className:Xi({status:f})})}),N(),h.jsxs(ye.motion.div,{className:Ji(),variants:il,children:[h.jsx("p",{className:Qi(),title:r,children:r}),h.jsx("p",{className:el(),title:e,children:e})]}),h.jsx("div",{className:tl(),children:E()})]})});Xn.displayName="ArtifactCard";const dl=z("flex items-center flex-wrap gap-2",{variants:{size:{small:"text-[0.875rem] leading-[1.25rem]",medium:"text-[1rem] leading-[1.5rem]"}},defaultVariants:{size:"medium"}}),dt=z("inline-flex items-center gap-2 transition-colors duration-200",{variants:{state:{default:"text-[var(--color-gray-600)] hover:text-[var(--color-blue-1000)] cursor-pointer",active:"text-[var(--color-blue-1000)] font-medium cursor-default",inactive:"text-[var(--color-gray-600)] cursor-default"}},defaultVariants:{state:"default"}}),ml=z("text-[var(--color-gray-600)] flex items-center justify-center"),Yn=({items:r,separator:e=h.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>h.jsx("nav",{"aria-label":"Breadcrumb",className:G(dl({size:a}),t),children:h.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:r.map((n,s)=>{const o=s===r.length-1;let l;return o?l=h.jsxs("span",{className:dt({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=h.jsxs("a",{href:n.href,className:dt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=h.jsxs("button",{type:"button",className:dt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=h.jsxs("span",{className:dt({state:"inactive"}),children:[n.icon,n.label]}),h.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&h.jsx("span",{className:ml(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),hl=z("inline-flex items-center justify-center rounded-[8px] font-normal transition-colors duration-200 box-border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{variant:{primary:"bg-[var(--color-white)] border border-[var(--color-blue-1000)] text-[var(--color-blue-1000)] hover:bg-[var(--color-blue-200)] active:bg-[var(--color-blue-400)] focus-visible:outline-[var(--color-blue-800)]",secondary:"bg-[rgba(255,255,255,0.01)] border border-[var(--color-gray-600)] text-[var(--color-gray-600)] hover:bg-[var(--color-gray-100)] hover:border-[var(--color-gray-800)] hover:text-[var(--color-gray-800)] active:bg-[var(--color-gray-200)] active:border-[var(--color-gray-1000)] active:text-[var(--color-gray-1000)] focus-visible:outline-[var(--color-blue-800)]",tertiary:"bg-transparent border border-transparent text-[var(--color-blue-1000)] hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] focus-visible:outline-[var(--color-blue-800)]",cta:"bg-[var(--color-blue-800)] border border-transparent text-[var(--color-white)] hover:bg-[var(--color-blue-400)] active:bg-[var(--color-blue-1000)] focus-visible:outline-[var(--color-blue-1000)]",danger:"bg-[var(--color-red-1000)] border border-transparent text-[var(--color-white)] hover:bg-[#e54545] active:bg-[#cc3d3d] focus-visible:outline-[var(--color-red-1000)]"},tone:{brand:"",neutral:""},size:{small:"px-2 py-2 gap-1 text-[0.75rem] leading-[1rem]",medium:"px-3 py-2 gap-1 text-[1rem] leading-[1.5rem]",large:"px-4 py-3 gap-1 text-[1rem] leading-[1.5rem]"}},compoundVariants:[{variant:"primary",tone:"neutral",className:"bg-[rgba(0,6,38,0.9)] border-transparent text-[var(--color-white)] hover:bg-[rgba(0,6,38,0.8)] active:bg-[rgba(0,6,38,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"secondary",tone:"neutral",className:"bg-[rgba(255,255,255,0.01)] border-[rgba(0,13,77,0.45)] text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] hover:border-[rgba(0,13,77,0.65)] hover:text-[rgba(0,9,51,0.85)] active:bg-[rgba(0,13,77,0.1)] active:border-[rgba(0,13,77,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"tertiary",tone:"neutral",className:"text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] active:bg-[rgba(0,13,77,0.1)] hover:text-[rgba(0,9,51,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"}],defaultVariants:{variant:"primary",tone:"brand",size:"medium"}}),_0=V.forwardRef(({className:r,variant:e="primary",tone:t="brand",size:a="medium",startIcon:n,endIcon:s,children:o,disabled:l,...u},d)=>{const f=a==="small"?13:a==="large"?20:16;return h.jsxs("button",{ref:d,className:G(hl({variant:e,tone:t,size:a}),r),disabled:l,...u,children:[n&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:n}),o,s&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:s})]})});_0.displayName="Button";const fl=z("relative inline-flex items-center px-1 py-1 gap-1 rounded-[5px] border overflow-hidden transition-colors",{variants:{status:{uploading:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",processing:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",done:"border-[var(--color-gray-200)] bg-[var(--color-white)]",error:"border-[var(--color-gray-200)] bg-[var(--color-white)]"}},defaultVariants:{status:"done"}}),pl=z("truncate text-[0.75rem] leading-[1rem] font-normal",{variants:{status:{uploading:"text-[var(--color-gray-600)]",processing:"text-[var(--color-gray-800)]",done:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"done"}}),mt=z("shrink-0",{variants:{status:{uploading:"text-[var(--color-blue-800)]",processing:"text-[var(--color-blue-800)]",done:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]"}},defaultVariants:{status:"done"}}),vl=z("absolute top-0 left-0 bottom-0 bg-[var(--color-gray-200)] z-0 rounded-bl-[4px] rounded-tl-[4px]",{variants:{status:{uploading:"opacity-100",processing:"opacity-100",done:"opacity-0",error:"opacity-0"}},defaultVariants:{status:"uploading"}});var Zn=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Zn||{});const Kn=({filename:r,status:e="done",progress:t=0,onDelete:a,className:n})=>{const s=e==="uploading",o=e==="processing",l=e==="error",d=s?"uploading":o?"processing":l?"error":"done",f=()=>s?h.jsx(p.ArrowUp,{size:12,className:mt({status:d})}):o?h.jsx(p.Loader,{size:12,className:G(mt({status:d}),"animate-spin")}):l?h.jsx(p.TriangleAlert,{size:12,className:mt({status:d})}):h.jsx(p.FileText,{size:12,className:mt({status:d})});return h.jsxs("div",{className:"relative inline-block group",children:[h.jsxs("div",{className:G(fl({status:d}),n),children:[(s||o)&&h.jsx(ye.motion.div,{className:vl({status:d}),initial:{width:"0%"},animate:{width:`${t}%`},transition:{duration:.3,ease:"easeOut"}}),h.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[h.jsx("div",{className:G("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:f()}),h.jsx("span",{className:pl({status:d}),title:r,children:r})]})]}),a&&!s&&!o&&h.jsx(ye.motion.button,{onClick:a,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove file",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:h.jsx(p.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},gl=z("inline-flex items-center gap-2 cursor-pointer select-none group disabled:cursor-not-allowed disabled:opacity-50 w-fit",{variants:{size:{medium:"text-[1rem] leading-[1.5rem] gap-2",small:"gap-1"}},defaultVariants:{size:"medium"}}),bl=z("flex items-center justify-center transition-colors duration-200 ease-in-out rounded-[2px] border shrink-0",{variants:{checked:{true:"bg-[var(--color-blue-1000)] border-[var(--color-blue-1000)] text-white",false:"bg-white border-[var(--color-gray-200)] group-hover:border-[var(--color-gray-600)]"},size:{medium:"w-[16px] h-[16px]",small:"w-[12px] h-[12px]"}},defaultVariants:{checked:!1,size:"medium"}}),yl="sr-only peer",Jn=V.forwardRef(({className:r,checked:e,defaultChecked:t,onChange:a,label:n,size:s="medium",disabled:o,...l},u)=>{const[d,f]=V.useState(t||!1),g=e!==void 0,x=g?e:d,w=M=>{g||f(M.target.checked),a==null||a(M)};return h.jsxs("label",{className:gl({size:s,className:r}),children:[h.jsx("input",{type:"checkbox",className:yl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),h.jsx("span",{className:bl({checked:!!x,size:s}),children:h.jsx(p.Check,{size:s==="medium"?12:8,strokeWidth:3,className:G("text-white transition-opacity duration-200",x?"opacity-100":"opacity-0")})}),n&&h.jsx(i0,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});Jn.displayName="Checkbox";const xl=z("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),wl=z("transform"),Sl=z("stroke-[var(--color-gray-200)]"),kl=z("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),Cl=z("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),Ml={xs:18,small:24,medium:32,large:40},$r=V.forwardRef(({className:r,value:e=0,max:t=100,size:a="medium",variant:n="default",showLabel:s=!0,labelFormatter:o,strokeWidth:l=3,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=Ml[a],x=(g-l)/2,w=2*Math.PI*x,M=w-f/100*w,k=o?o(e,t):`${Math.round(e)}`;return h.jsxs("div",{ref:d,className:G(xl({size:a}),r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[h.jsxs("svg",{className:wl(),width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:[h.jsx("circle",{className:Sl(),cx:g/2,cy:g/2,r:x,fill:"none",strokeWidth:l}),h.jsx("circle",{className:kl({variant:n}),cx:g/2,cy:g/2,r:x,fill:"none",strokeWidth:l,strokeLinecap:"round",strokeDasharray:w,strokeDashoffset:M,transform:`rotate(-90 ${g/2} ${g/2})`})]}),s&&h.jsx("span",{className:Cl({size:a}),children:k})]})});$r.displayName="CircularProgress";function Tl(r,e){V.useEffect(()=>{const t=a=>{const n=r==null?void 0:r.current;!n||n.contains(a.target)||e(a)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[r,e])}const zl=z("absolute top-full left-0 z-50 min-w-[200px] overflow-hidden rounded-[8px] border border-[var(--color-gray-200)] bg-[var(--color-white)] shadow-lg focus:outline-none",{variants:{align:{start:"left-0",end:"right-0 left-auto",center:"left-1/2 -translate-x-1/2"},attached:{true:"mt-0 rounded-t-none border-t-0",false:"mt-2"}},defaultVariants:{align:"start",attached:!1}}),Al=z("flex w-full cursor-pointer items-center px-3 py-2 text-[0.875rem] text-[var(--color-gray-800)] transition-colors hover:bg-[var(--color-gray-50)] focus:bg-[var(--color-gray-50)] focus:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"},variant:{default:"",destructive:"text-[var(--color-red-1000)] hover:bg-[var(--color-red-200)] focus:bg-[var(--color-red-200)]"}},defaultVariants:{variant:"default",active:!1}}),Nl=z("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Dl=z("h-px bg-[var(--color-gray-200)] my-1"),Qn=V.createContext(void 0),Ft=()=>{const r=V.useContext(Qn);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Wr=({children:r,defaultOpen:e=!1,open:t,onOpenChange:a,className:n,...s})=>{const[o,l]=V.useState(e),u=t!==void 0,d=u?t:o,f=V.useRef(null),g=()=>{const w=!d;u||l(w),a==null||a(w)},x=()=>{u||l(!1),a==null||a(!1)};return Tl(f,x),h.jsx(Qn.Provider,{value:{isOpen:d,toggle:g,close:x},children:h.jsx("div",{ref:f,className:G("relative inline-block text-left",n),...s,children:r})})};Wr.displayName="Dropdown";const Xr=V.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=Ft(),l=u=>{s(),t==null||t(u)};return h.jsx("div",{ref:n,className:G("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});Xr.displayName="DropdownTrigger";const Yr=V.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=Ft();return h.jsx(ye.AnimatePresence,{children:o&&h.jsx(ye.motion.div,{ref:s,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:G(zl({align:e,attached:t}),r),...n,children:a})})});Yr.displayName="DropdownContent";const Zr=V.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=Ft(),d=f=>{s==null||s(f),a&&u()};return h.jsx("div",{ref:l,className:G(Al({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Zr.displayName="DropdownItem";const El=V.forwardRef(({className:r,children:e,...t},a)=>h.jsx("div",{ref:a,className:G(Nl(),r),...t,children:e}));El.displayName="DropdownLabel";const Rl=V.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?h.jsx("div",{ref:n,className:G("h-px my-1 overflow-hidden",r),...a,children:h.jsx(ye.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:t}})}):h.jsx("div",{ref:n,className:G(Dl(),r),...a}));Rl.displayName="DropdownSeparator";const Bl=z("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"}},defaultVariants:{status:"default",size:"medium"}}),Ll=z("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),za=z("absolute top-1/2 -translate-y-1/2 pointer-events-none flex items-center justify-center",{variants:{status:{default:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]",success:"text-[var(--color-green-1000)]"},position:{start:"",end:""},size:{medium:"size-[24px]",small:"size-[16px]",tiny:"size-[16px]"}},compoundVariants:[{position:"start",size:"medium",className:"left-4"},{position:"start",size:"small",className:"left-3"},{position:"start",size:"tiny",className:"left-2"},{position:"end",size:"medium",className:"right-4"},{position:"end",size:"small",className:"right-3"},{position:"end",size:"tiny",className:"right-2"}],defaultVariants:{status:"default",size:"medium",position:"end"}}),es=V.forwardRef(({className:r,status:e="default",size:t="medium",startIcon:a,endIcon:n,disabled:s,...o},l)=>{const u={medium:"pl-12",small:"pl-9",tiny:"pl-8"},d={medium:"pr-12",small:"pr-9",tiny:"pr-8"};return h.jsxs("div",{className:Ll({size:t}),children:[a&&h.jsx("span",{className:za({status:e,size:t,position:"start"}),children:a}),h.jsx("input",{ref:l,className:G(Bl({status:e,size:t}),a&&u[t],n&&d[t],r),disabled:s,...o}),n&&h.jsx("span",{className:za({status:e,size:t,position:"end"}),children:n})]})});es.displayName="Input";const jl=z("flex flex-col items-center justify-center"),Il=z("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Pl=z("absolute inset-0 rounded-full border-4 border-transparent animate-spin",{variants:{color:{primary:"border-t-[var(--color-blue-800)]",secondary:"border-t-[var(--color-gray-600)]"}},defaultVariants:{color:"primary"}}),Ol=z("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Fl=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>h.jsxs("div",{className:jl(),children:[h.jsx("div",{className:Il({size:r}),children:h.jsx("div",{className:Pl({color:e})})}),t&&h.jsx("p",{className:Ol({color:a}),children:t})]}),Aa=z("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"}},compoundVariants:[{variant:"user",alignment:void 0,className:"items-end"},{variant:"assistant",alignment:void 0,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user"}}),ql=z("flex gap-[12px] items-start w-full"),Hl=z("flex flex-col flex-1 min-w-0"),Na=z("flex flex-col w-full transition-colors duration-200",{variants:{variant:{user:"bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[16px] p-[16px] gap-[24px]",assistant:"bg-transparent p-[8px] gap-[8px]",system:"bg-transparent p-[8px] gap-[8px]",loader:"bg-transparent p-[8px] gap-[24px]"},isSticky:{true:"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]",false:""}},defaultVariants:{variant:"user",isSticky:!1}}),Vl=z("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),_l=z("typography-h4 text-[var(--color-blue-1000)]"),Da=z("typography-small",{variants:{variant:{user:"text-[var(--color-blue-1000)]",assistant:"text-[var(--color-blue-1000)]",system:"text-[var(--color-gray-600)]",loader:""}},defaultVariants:{variant:"user"}}),Gl=z("flex gap-[8px] p-[4px] rounded-[4px] opacity-0 group-hover:opacity-100 transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),Ul=z("p-1 rounded-[4px] text-[var(--color-gray-400)] opacity-0 group-hover:opacity-100 hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.15)] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)]",{variants:{isActive:{true:"opacity-100",false:""}},defaultVariants:{isActive:!1}}),$l=z("flex items-start justify-center shrink-0 pt-[4px]"),Wl=z("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Xl=z("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Yl=z("flex items-center justify-center"),Zl=z("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),Kl=z(["absolute -inset-y-2 -inset-x-4","animate-shimmer","bg-[linear-gradient(90deg,transparent_0%,transparent_35%,rgba(255,255,255,0.4)_50%,transparent_65%,transparent_100%)]","blur-[1px]","z-10 pointer-events-none"]),Jl=z(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Ql=z(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),Ea=({onClick:r,icon:e,label:t,className:a,isActive:n=!1})=>h.jsx("button",{className:G(Ul({isActive:n}),a),onClick:r,type:"button","aria-label":t,children:h.jsx(e,{size:12})}),e1=()=>{const[r,e]=V.useState(0);return V.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),h.jsx("div",{className:G(Yl()),children:h.jsx(Ur,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},ts=V.forwardRef(({className:r,variant:e="user",heading:t,children:a,isLoading:n,timestamp:s,hideAvatar:o=!1,showTimestamp:l=!1,isSticky:u=!1,isInitialPrompt:d=!1,alignment:f,actions:g=[],enableCopy:x=!1,copyIcon:w,onCopySuccess:M,...k},A)=>{const N=V.useRef(null),[E,R]=V.useState(!1),P=f??(e==="user"?d?"center":"right":"left"),O=async()=>{if(!N.current)return;const _=N.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(_),R(!0),M==null||M(),setTimeout(()=>{R(!1)},2e3)):console.warn("Clipboard API not available")}catch(le){console.error("Failed to copy:",le)}},Y=_=>{const le=typeof _=="string"?new Date(_):_,ae=new Date().getTime()-le.getTime(),be=Math.floor(ae/6e4);if(be<1)return"Just now";if(be<60)return`${be} min ago`;const ne=Math.floor(be/60);return ne<24?`${ne}h ago`:le.toLocaleDateString()},q=g.length>0||x,j=!u&&(e==="user"||e==="assistant")&&q;return e==="loader"||n?h.jsx("div",{ref:A,className:G(Aa({variant:"loader",alignment:"left"}),r),...k,children:h.jsx("div",{className:G(Na({variant:"loader",isSticky:u})),children:h.jsx(e1,{})})}):h.jsx("div",{ref:A,className:G(Aa({variant:e,alignment:P}),"group",r),...k,children:h.jsxs("div",{className:G(ql()),children:[!o&&e==="assistant"&&h.jsx("div",{className:G($l()),children:h.jsx("div",{className:G(Wl()),children:h.jsx(Gr,{size:20,colorVariant:"lightTeal"})})}),h.jsxs("div",{className:G(Hl()),children:[h.jsx("div",{className:G(Na({variant:e,isSticky:u})),children:h.jsx("div",{className:G(Vl({variant:e})),ref:N,children:e==="system"?h.jsxs("div",{className:G(Zl()),children:[h.jsx("div",{className:G(Kl())}),h.jsxs("div",{className:G(Jl()),children:[h.jsx(p.Activity,{size:16}),h.jsx("div",{className:G(Ql())})]}),h.jsx("span",{className:G(Da({variant:e})),children:a})]}):h.jsxs(h.Fragment,{children:[e==="assistant"&&t&&h.jsx("h4",{className:G(_l()),children:t}),h.jsx("div",{className:G(Da({variant:e})),children:a})]})})}),l&&s&&h.jsx("div",{className:G(Xl()),children:Y(s)}),j&&h.jsxs("div",{className:G(Gl({variant:e})),children:[x&&w&&h.jsx(Ea,{onClick:O,icon:E?p.Check:w,label:E?"Copied":"Copy",isActive:E}),g.map((_,le)=>h.jsx(Ea,{onClick:_.onClick,icon:_.icon,label:_.label,isActive:_.isActive},`${_.label}-${le}`))]})]})]})})});ts.displayName="MessageBubble";const t1=z("w-full overflow-hidden rounded-full bg-[var(--color-gray-200)]",{variants:{size:{small:"h-1",medium:"h-2",large:"h-3"}},defaultVariants:{size:"medium"}}),r1=z("h-full w-full flex-1 transition-all duration-300 ease-in-out rounded-full",{variants:{variant:{default:"bg-[var(--color-blue-800)]",success:"bg-[var(--color-green-1000)]",error:"bg-[var(--color-red-1000)]",warning:"bg-[var(--color-amber-1000)]"}},defaultVariants:{variant:"default"}}),a1=z("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),rs=V.forwardRef(({className:r,value:e=0,max:t=100,variant:a="default",size:n="medium",showValueLabel:s=!1,label:o,valueFormatter:l,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=l?l(e,t):`${Math.round(f)}%`;return h.jsxs("div",{ref:d,className:G("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&h.jsxs("div",{className:a1({size:n}),children:[o&&h.jsx("span",{className:"font-medium",children:o}),s&&h.jsx("span",{className:"ml-auto",children:g})]}),h.jsx("div",{className:t1({size:n}),children:h.jsx("div",{className:r1({variant:a}),style:{transform:`translateX(-${100-f}%)`}})})]})});rs.displayName="ProgressBar";const n1=z(["w-full h-2 rounded-lg appearance-none cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5","[&::-webkit-slider-thumb]:bg-[var(--color-white)]","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:shadow-sm","[&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:duration-200","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5","[&::-moz-range-thumb]:bg-[var(--color-white)]","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:shadow-sm","[&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:duration-200","[&::-moz-range-thumb]:hover:scale-110"].join(" "),{variants:{variant:{cyan:["focus-visible:ring-[var(--color-blue-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-blue-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-blue-800)]"],orange:["focus-visible:ring-[var(--color-orange-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-orange-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-orange-800)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),as=V.forwardRef(({className:r,variant:e="cyan",animated:t=!1,style:a,...n},s)=>{const{min:o=0,max:l=100,value:u,defaultValue:d}=n,f=Number(u??d??0),g=Number(o),x=Number(l),w=Math.min(Math.max((f-g)*100/(x-g),0),100),M=e==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",k=`linear-gradient(to right, ${M} 0%, ${M} ${w}%, var(--color-gray-200) ${w}%, var(--color-gray-200) 100%)`;return h.jsx("input",{ref:s,type:"range",className:G(n1({variant:e,animated:t}),r),style:{background:k,...a},...n})});as.displayName="RangeInput";const s1=z("box-border flex cursor-pointer transition-all duration-200",{variants:{type:{collapsed:"flex-col items-center justify-center w-[64px] py-[6px] px-[4px] gap-[4px] rounded-[4px]",expanded:"flex-row items-center w-full h-[32px] px-[4px] py-[6px] gap-[8px] rounded-[4px]"},variant:{default:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]",active:"text-[var(--color-blue-800)] bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]"}],defaultVariants:{type:"expanded",variant:"default"}}),o1=z("relative shrink-0 flex items-center justify-center",{variants:{type:{collapsed:"size-[16px]",expanded:"size-[16px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"text-[var(--color-blue-1000)] size-[24px]"}},defaultVariants:{type:"expanded",variant:"default"}}),i1=z("font-normal whitespace-nowrap shrink-0",{variants:{type:{collapsed:"text-[8px] leading-[10px] text-center min-w-full",expanded:"text-[14px] leading-[20px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"hidden"}},defaultVariants:{type:"expanded",variant:"default"}}),ns=V.forwardRef(({className:r,icon:e,label:t,isCollapsed:a=!1,isActive:n=!1,variant:s="default",onClick:o,children:l,...u},d)=>{const f=a?"collapsed":"expanded",g=n?"active":s,x=w=>{o&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),o())};return h.jsxs("div",{ref:d,className:G(s1({type:f,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:x,...u,children:[e&&h.jsx("div",{className:G(o1({type:f,variant:g})),children:e}),(s!=="brand"||!a)&&h.jsx("span",{className:G(i1({type:f,variant:g})),children:t})]})});ns.displayName="SidebarItem";const l1=z("inline-flex items-center justify-center rounded-[4px] whitespace-nowrap transition-colors duration-200 box-border",{variants:{variant:{default:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",collaborator:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",indicator:"bg-[var(--color-gray-100)] px-[2px] h-[12px] gap-[4px] text-[var(--color-gray-600)]",error:"bg-[var(--color-red-200)] px-[2px] h-[12px] gap-[4px] text-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),c1=z("w-4 h-4 rounded-full object-cover shrink-0"),Ra=z("flex items-center justify-center shrink-0"),G0=V.forwardRef(({className:r,variant:e="default",startIcon:t,endIcon:a,avatarSrc:n,children:s,...o},l)=>h.jsxs("div",{ref:l,className:G(l1({variant:e}),r),...o,children:[n&&h.jsx("img",{src:n,alt:"avatar",className:c1()}),t&&h.jsx("span",{className:Ra(),children:t}),h.jsx(i0,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:s}),a&&h.jsx("span",{className:Ra(),children:a})]}));G0.displayName="Tag";const u1=z("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),d1=z("inline-flex items-center justify-center whitespace-nowrap px-2 py-2 text-[10px] leading-4 font-normal ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-transparent data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:shadow-none border-b border-[var(--color-gray-200)] data-[state=active]:border-[var(--color-blue-1000)] text-[var(--color-gray-600)] gap-2 hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-800)] cursor-pointer group relative",{variants:{variant:{default:""}},defaultVariants:{variant:"default"}}),m1=z("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),h1=z("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),f1=z("flex items-center gap-[2px]"),Ba=z("group-data-[state=active]:text-[var(--color-blue-1000)]"),p1=R0.Root,ss=T.forwardRef(({className:r,...e},t)=>h.jsx(R0.List,{ref:t,className:G(u1(),r),...e}));ss.displayName=R0.List.displayName;const os=T.forwardRef(({className:r,children:e,errorCount:t,configurationCount:a,...n},s)=>{const[o,l]=T.useState(!1),u=T.useRef(null);T.useEffect(()=>{const f=u.current;if(!f)return;const g=new MutationObserver(()=>{l(f.getAttribute("data-state")==="active")});return g.observe(f,{attributes:!0,attributeFilter:["data-state"]}),l(f.getAttribute("data-state")==="active"),()=>g.disconnect()},[]);const d=T.useCallback(f=>{u.current=f,typeof s=="function"?s(f):s&&(s.current=f)},[s]);return h.jsxs(R0.Trigger,{ref:d,className:G(d1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&h.jsxs("div",{className:f1(),children:[a!==void 0&&h.jsx(G0,{variant:"indicator",startIcon:h.jsx(p.Settings,{size:10,className:"text-[#15B1CD]"}),className:Ba(),children:a}),t!==void 0&&h.jsx(G0,{variant:"indicator",startIcon:h.jsx(p.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Ba(),children:t})]}),h.jsx(ye.motion.div,{className:h1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});os.displayName=R0.Trigger.displayName;const is=T.forwardRef(({className:r,...e},t)=>h.jsx(R0.Content,{ref:t,className:G(m1(),r),...e,asChild:!0,children:h.jsx(ye.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},children:e.children})}));is.displayName=R0.Content.displayName;const v1=z("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 min-h-[80px]",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{status:"default",size:"medium",resize:"vertical"}}),g1=z("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ls=V.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>h.jsx("div",{className:g1({size:t}),children:h.jsx("textarea",{ref:o,className:G(v1({status:e,size:t,resize:a}),r),disabled:n,...s})}));ls.displayName="TextArea";const b1=z("inline-flex items-center gap-1 font-sans whitespace-nowrap",{variants:{size:{small:"text-[0.625rem] leading-[1rem]",medium:"text-[0.75rem] leading-[1rem]",large:"text-[0.875rem] leading-[1.25rem]"},variant:{default:"text-[var(--color-gray-600)]",primary:"text-[var(--color-gray-800)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{size:"medium",variant:"default"}}),y1=z("flex items-center justify-center shrink-0",{variants:{size:{small:"[&>svg]:w-[10px] [&>svg]:h-[10px]",medium:"[&>svg]:w-[12px] [&>svg]:h-[12px]",large:"[&>svg]:w-[14px] [&>svg]:h-[14px]"}},defaultVariants:{size:"medium"}}),x1=(r,e)=>{const t=e.getTime()-r.getTime(),a=Math.floor(t/1e3),n=Math.floor(a/60),s=Math.floor(n/60),o=Math.floor(s/24),l=Math.floor(o/7),u=Math.floor(o/30),d=Math.floor(o/365),f=t<0,g=Math.abs(a),x=Math.abs(n),w=Math.abs(s),M=Math.abs(o),k=Math.abs(l),A=Math.abs(u),N=Math.abs(d),E=(R,P)=>{const O=R===1?"":"s";return f?`in ${R} ${P}${O}`:`${R} ${P}${O} ago`};return g<60?"just now":x<60?E(x,"minute"):w<24?E(w,"hour"):M===1?f?"tomorrow":"yesterday":M<7?E(M,"day"):k<4?E(k,"week"):A<12?E(A,"month"):E(N,"year")},w1=(r,e,t)=>{switch(e){case"relative":return x1(r,new Date);case"short":return r.toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric"});case"long":return r.toLocaleDateString(t,{month:"long",day:"numeric",year:"numeric"});case"time":return r.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return r.toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return r.toLocaleDateString(t)}},S1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),cs=V.forwardRef(({className:r,date:e,format:t="relative",size:a="medium",variant:n="default",showIcon:s=!1,locale:o="en-US",...l},u)=>{const d=V.useMemo(()=>S1(e),[e]),f=V.useMemo(()=>w1(d,t,o),[d,t,o]),g=V.useMemo(()=>d.toISOString(),[d]),x=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",w=a==="small"?10:a==="large"?14:12;return h.jsxs("time",{ref:u,dateTime:g,className:G(b1({size:a,variant:n}),r),...l,children:[s&&h.jsx("span",{className:y1({size:a}),children:h.jsx(p.ClockHistory,{size:w,color:x})}),f]})});cs.displayName="Timestamp";const k1=z("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[12px] shadow-xl border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),C1=z("flex-shrink-0",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),M1=z("flex items-center gap-1 flex-1"),T1=z("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),z1=z("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),A1=z("flex items-center gap-2 shrink-0"),N1=z("w-[1px] self-stretch flex-shrink-0 bg-current",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),D1=z("p-0 bg-transparent border-none text-[var(--color-blue-1000)] hover:opacity-70 transition-opacity flex items-center justify-center w-4 h-4 shrink-0 cursor-pointer"),E1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},R1={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)"},N0=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=E1[e],d=R1[e],f=()=>{l&&l(),r&&s0.toast.dismiss(r)},g=w=>M=>{w(M),r&&s0.toast.dismiss(r)},x=()=>n||(e==="success"?h.jsx(p.CheckCircle,{size:16,color:d}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:d}):e==="prompt"?h.jsx(p.Sparks,{size:16,color:d}):h.jsx(u,{size:16}));return h.jsxs("div",{className:G(k1({variant:e})),role:"alert",children:[h.jsx("div",{className:C1({variant:e}),children:x()}),h.jsxs("div",{className:M1(),children:[h.jsx("span",{className:T1(),children:t}),a&&h.jsx("span",{className:z1(),children:a})]}),h.jsx("div",{className:N1({variant:e})}),h.jsxs("div",{className:A1(),children:[o&&h.jsx(_0,{onClick:g(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||h.jsx(p.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),s&&h.jsx(_0,{onClick:g(s.onClick),variant:"primary",size:"small",startIcon:s.icon||h.jsx(p.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),h.jsx("button",{onClick:f,className:D1(),"aria-label":"Close",children:h.jsx(p.X,{size:16})})]})]})},B1=({position:r="bottom-right",offset:e=24,gap:t=8,width:a,...n})=>h.jsx(s0.Toaster,{position:r,offset:e,gap:t,toastOptions:{unstyled:!0,classNames:{toast:G("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),L1={success:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>s0.toast.custom(n=>h.jsx(N0,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>s0.toast.custom(e=>h.jsx(N0,{id:e,...r}))},j1=z("flex items-center gap-3"),I1=z("text-[var(--color-gray-1000)] font-medium select-none"),P1=z("relative inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)] focus-visible:outline-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"}},defaultVariants:{enabled:!1}}),O1=z("pointer-events-none inline-block h-[20px] w-[20px] transform rounded-full bg-[var(--color-white)] shadow-lg ring-0 transition duration-200 ease-in-out",{variants:{enabled:{true:"translate-x-[20px]",false:"translate-x-0"}},defaultVariants:{enabled:!1}}),us=V.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>h.jsxs("div",{className:G(j1(),a),children:[t&&h.jsx(i0,{variant:"small",className:I1(),children:t}),h.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:P1({enabled:r}),...s,children:h.jsx("span",{className:O1({enabled:r})})})]}));us.displayName="Toggle";const F1=z("flex items-center justify-between w-full gap-2 min-h-[20px]"),q1=z("text-xs font-normal font-sans leading-4 whitespace-nowrap",{variants:{status:{success:"text-[var(--color-gray-800)]",warning:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]",info:"text-[var(--color-gray-800)]",neutral:"text-[var(--color-gray-800)]",loading:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"neutral"}}),H1={success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",info:"var(--color-blue-800)",neutral:"var(--color-gray-600)",loading:"var(--color-blue-800)"},ds=V.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=H1[e],l=()=>e==="loading"?h.jsx(p.Loader,{size:16,color:o,className:"animate-spin"}):e==="success"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="warning"?h.jsx(p.TriangleAlert,{size:16,color:o}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:o}):e==="info"?h.jsx(p.Info,{size:16,color:o}):null;return h.jsxs("div",{ref:n,className:G(F1(),r),...a,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(_r,{variant:s,size:"small"}),h.jsx("span",{className:q1({status:e}),children:t})]}),h.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});ds.displayName="StatusMessage";const V1=z("flex items-center justify-between w-full gap-2 min-h-[20px]"),_1=z("flex items-center gap-2"),G1=z("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),La=z("w-4 h-4 flex items-center justify-center shrink-0"),U1={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},$1={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},ms=V.forwardRef(({className:r,status:e="running",message:t,...a},n)=>{const s=U1[e],o=$1[e],l=()=>e==="completed"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="stopped"?h.jsx(p.Hand,{size:16,color:o}):h.jsx(p.Pause,{size:16,color:o});return h.jsxs("div",{ref:n,className:G(V1(),r),...a,children:[h.jsxs("div",{className:_1(),children:[h.jsx("div",{className:La(),children:h.jsx(p.Hexagon,{size:16,color:s})}),h.jsx("span",{className:G1({status:e}),children:t})]}),h.jsx("div",{className:La(),children:l()})]})});ms.displayName="AutopilotAction";const W1=z("z-50 rounded-[4px] px-3 py-3 shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)] max-w-[var(--radix-tooltip-content-available-width)] origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{variant:{default:"bg-[var(--color-blue-1000)] text-[var(--color-gray-50)]",light:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"}},defaultVariants:{variant:"default"}}),X1=z("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),zr=({delayDuration:r=0,...e})=>h.jsx(D0.Provider,{delayDuration:r,...e}),Ar=D0.Root,Nr=D0.Trigger,Et=T.forwardRef(({className:r,sideOffset:e=4,children:t,variant:a,...n},s)=>h.jsx(D0.Portal,{children:h.jsx(D0.Content,{ref:s,sideOffset:e,asChild:!0,className:G(W1({variant:a}),r),...n,children:h.jsxs(ye.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[h.jsx(i0,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:t}),h.jsx(D0.Arrow,{className:X1({variant:a})})]})})}));Et.displayName=D0.Content.displayName;const Y1=z("relative flex flex-col w-full"),Z1=z("box-border flex flex-col items-start p-4 rounded-[16px] w-full transition-all duration-200 min-w-[300px] max-w-[800px] relative z-10",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""},variant:{default:"[background-image:linear-gradient(var(--color-white),var(--color-white)),linear-gradient(180deg,#B9BCCB_0%,#E5E7F0_100%)] [background-origin:padding-box,border-box] [background-clip:padding-box,border-box] border border-transparent shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)]",transparent:"bg-transparent border-none shadow-none"},isMagicActive:{true:"[background-image:linear-gradient(var(--color-white),var(--color-white))] border-transparent shadow-[0_0_40px_-10px_rgba(106,234,253,0.5),0_0_40px_-10px_rgba(255,111,0,0.4)]",false:""}},defaultVariants:{state:"default",variant:"default",isMagicActive:!1}}),K1=z("w-full transition-all duration-200",{variants:{state:{default:"border-[var(--color-gray-600)]",active:"border-[var(--color-blue-800)]",withFiles:"border-[var(--color-gray-600)]",dragOver:"border-[var(--color-blue-800)] border-dashed"},variant:{default:"bg-[var(--color-white)]",transparent:"bg-transparent"}},defaultVariants:{state:"default",variant:"default"}}),J1=z("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),Q1=z("flex flex-col gap-5 w-full"),ec=z("flex flex-wrap gap-[8px] items-start w-full"),tc=z("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),rc=z("w-full bg-transparent border-none outline-none resize-none font-normal text-[16px] leading-[24px] min-h-[24px] placeholder:text-[var(--color-gray-600)] text-[var(--color-gray-1000)]",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""}},defaultVariants:{state:"default"}}),ac=z("flex items-center justify-between w-full"),nc=z("flex gap-[8px] items-center"),sc=z("flex items-center gap-2.5"),er=z("flex items-center justify-center shrink-0 transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)]",{variants:{variant:{default:"size-[16px] text-[var(--color-gray-600)] hover:text-[var(--color-gray-800)] active:text-[var(--color-gray-1000)] cursor-pointer",add:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] border-solid rounded-[100px] p-[8px] size-auto text-[var(--color-gray-600)] hover:bg-[var(--color-gray-200)] active:bg-[var(--color-gray-200)] cursor-pointer"}},defaultVariants:{variant:"default"}}),oc=z("flex items-center justify-center shrink-0 size-[32px] rounded-[100px] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{disabled:{true:"bg-[var(--color-gray-200)] text-[var(--color-white)] cursor-not-allowed",false:"bg-[var(--color-blue-800)] text-[var(--color-white)] hover:opacity-80 active:bg-[var(--color-blue-1000)] cursor-pointer focus-visible:outline-[var(--color-blue-800)]"}},defaultVariants:{disabled:!1}}),ic=z("animate-spin"),lc=z("flex flex-col gap-[12px] items-center justify-center px-[16px] py-[40px] min-h-[120px] w-full absolute inset-0 z-50 bg-[var(--color-white)] h-full rounded-xl min-h-0 border border-solid border-[var(--color-blue-1000)]"),cc=z("flex items-center justify-center"),uc=z("flex items-center gap-1 px-2 py-1 rounded-[6px] text-[var(--color-gray-600)] border border-[var(--color-gray-200)] transition-colors duration-200 cursor-pointer hover:bg-[var(--color-gray-50)] hover:border-[var(--color-gray-300)] hover:text-[var(--color-gray-800)] disabled:cursor-not-allowed disabled:opacity-50"),dc=z("min-w-[120px]"),mc=z("py-1.5 px-2"),hc=z("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),ja=z("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),hs=V.forwardRef(({placeholder:r="Type message",value:e,files:t=[],disabled:a=!1,maxFiles:n=10,maxFileSize:s=1024*1024*1024,className:o,variant:l="default",actions:u=[],models:d=[],selectedModel:f,isLoading:g=!1,isUploading:x=!1,onChange:w,onSend:M,onFileAdd:k,onFileRemove:A,onModelChange:N,isUsingMagic:E=!1,contextUsage:R,contextMax:P=100},O)=>{var r0,ot;const[Y,q]=V.useState(""),[j,_]=V.useState(!1),[le,pe]=V.useState(!1),ae=V.useRef(null),be=V.useRef(null),ne=e!==void 0?e:Y,de=ne.trim().length>0,ce=t.length>0,X=j?"dragOver":ce?"withFiles":le?"active":"default",t0=W=>{w?w(W):q(W)},Be=W=>{t0(W.target.value),Te()},Te=V.useCallback(()=>{const W=ae.current;W&&(W.style.height="auto",W.style.height=`${Math.min(W.scrollHeight,200)}px`)},[]);V.useEffect(()=>{Te()},[ne,Te]);const we=V.useCallback(()=>{a||x||!de&&!ce||M&&(M(ne,t),t0(""),ae.current&&(ae.current.style.height="auto"))},[a,x,de,ce,M,ne,t]),me=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),we())},Se=W=>{const f0=Array.from(W.target.files||[]);f0.length>0&&k&&k(f0),be.current&&(be.current.value="")},Le=()=>{var W;(W=be.current)==null||W.click()},He=V.useRef(0),se=W=>{W.preventDefault(),W.stopPropagation(),He.current+=1,He.current===1&&_(!0)},Ve=W=>{W.preventDefault(),W.stopPropagation(),He.current-=1,He.current===0&&_(!1)},_e=W=>{W.preventDefault(),W.stopPropagation()},Ge=W=>{W.preventDefault(),W.stopPropagation(),He.current=0,_(!1);const f0=Array.from(W.dataTransfer.files);f0.length>0&&k&&k(f0)},M0=W=>{A&&A(W)};return h.jsxs("div",{ref:O,className:G(Y1(),o),children:[h.jsx(ye.AnimatePresence,{children:E&&h.jsxs(ye.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:hc(),children:[h.jsx("div",{className:ja({layer:"base"}),children:h.jsx(ye.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})}),h.jsx("div",{className:ja({layer:"blur"}),children:h.jsx(ye.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})})]})}),h.jsxs("div",{className:Z1({state:X,variant:l,isMagicActive:E}),onDragEnter:se,onDragLeave:Ve,onDragOver:_e,onDrop:Ge,children:[h.jsx("div",{className:K1({state:X,variant:l}),children:h.jsx("div",{className:J1(),children:h.jsxs("div",{className:Q1(),children:[ce&&h.jsx("div",{className:ec(),children:t.map(W=>h.jsx(Kn,{filename:W.filename,status:W.status,progress:W.progress,onDelete:()=>M0(W.id)},W.id))}),h.jsx("div",{className:tc(),children:h.jsx("textarea",{ref:ae,className:rc({state:X}),placeholder:r,value:ne,disabled:a||g,onChange:Be,onKeyDown:me,onFocus:()=>pe(!0),onBlur:()=>pe(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),h.jsxs("div",{className:ac(),children:[h.jsxs("div",{className:nc(),children:[h.jsx("button",{type:"button",onClick:Le,className:er({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:h.jsx(p.Plus,{size:16})}),u.map(W=>h.jsx(V.Fragment,{children:W.tooltip?h.jsx(zr,{children:h.jsxs(Ar,{children:[h.jsx(Nr,{asChild:!0,children:h.jsx("button",{type:"button",onClick:W.onClick,className:er(),disabled:a||W.disabled,"aria-label":W.label,tabIndex:0,children:W.icon})}),h.jsx(Et,{variant:"light",children:W.tooltip})]})}):h.jsx("button",{type:"button",onClick:W.onClick,className:er(),disabled:a||W.disabled,"aria-label":W.label,tabIndex:0,children:W.icon})},`--action-${W.id}`))]}),h.jsxs("div",{className:sc(),children:[d.length>0&&h.jsxs(Wr,{children:[h.jsx(Xr,{children:h.jsxs("button",{type:"button",className:uc(),disabled:a||g,"aria-label":"Select AI model",children:[h.jsx(i0,{variant:"tiny",color:"inherit",as:"span",className:a||g?"opacity-50":void 0,children:((r0=d.find(W=>W.id===f))==null?void 0:r0.name)||((ot=d[0])==null?void 0:ot.name)||"Select model"}),h.jsx(p.ChevronDown,{size:10,color:"currentColor"})]})}),h.jsx(Yr,{align:"end",className:dc(),children:d.map(W=>h.jsx(Zr,{active:W.id===f,onClick:()=>N==null?void 0:N(W.id),className:mc(),children:h.jsx(i0,{variant:"tiny",color:"inherit",as:"span",children:W.name})},W.id))})]}),R!==void 0&&h.jsx(zr,{children:h.jsxs(Ar,{children:[h.jsx(Nr,{asChild:!0,children:h.jsx("div",{className:"flex items-center justify-center h-[32px]",children:h.jsx($r,{value:R,max:P,size:"xs",showLabel:!1,variant:R>=90?"error":R>=75?"warning":"default",strokeWidth:2,"aria-label":`Context usage: ${R} of ${P}`})})}),h.jsxs(Et,{variant:"light",children:["Context: ",R,"/",P]})]})}),h.jsx("button",{type:"button",onClick:we,className:oc({disabled:a||g||x||!de&&!ce}),disabled:a||g||x||!de&&!ce,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?h.jsx(p.Loader,{size:16,color:"currentColor",className:ic()}):h.jsx(p.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),h.jsx(ye.AnimatePresence,{children:j&&h.jsxs(ye.motion.div,{initial:{opacity:0,filter:"blur(2px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(2px)"},transition:{duration:.2,ease:"easeInOut"},className:lc(),children:[h.jsx("div",{className:cc(),children:h.jsx(p.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),h.jsx(i0,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),h.jsxs(i0,{variant:"small",color:"secondary",className:"text-center",children:["Up to ",n," files or a maximum size of"," ",Math.round(s/(1024*1024*1024)),"GB"]})]},"overlay")}),h.jsx("input",{ref:be,type:"file",multiple:!0,onChange:Se,className:"hidden","aria-hidden":"true"})]})]})});hs.displayName="ChatInput";const fc=z("w-full h-[48px] box-border flex items-center justify-between px-[16px] py-[12px] bg-[var(--color-white)] border-b border-[var(--color-gray-200)]"),pc=z("flex items-center gap-[12px] h-[24px]"),vc=z("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Ia=z("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] rounded-sm"),gc=z("flex items-center gap-[8px]"),bc=z("flex items-center"),fs=V.forwardRef(({className:r,breadcrumbs:e,tags:t=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:o=0,...l},u)=>h.jsxs("div",{ref:u,className:G(fc(),r),...l,children:[h.jsx(Yn,{items:e,size:"medium"}),h.jsx("div",{className:pc(),children:h.jsxs("div",{className:vc(),children:[(t.length>0||o>0)&&h.jsxs("div",{className:gc(),children:[t.map(d=>h.jsx(G0,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:d.label},d.id)),o>0&&h.jsxs(G0,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",o]})]}),a.length>0&&h.jsx("div",{className:bc(),children:h.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((d,f)=>h.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-f,marginRight:f<a.length-1?-4:0},children:h.jsx(Vr,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),h.jsx("button",{type:"button",onClick:n,className:Ia(),"aria-label":"Add tag",children:h.jsx(p.TagPlus,{size:16})}),h.jsx("button",{type:"button",onClick:s,className:Ia(),"aria-label":"Add collaborator",children:h.jsx(p.UserPlus,{size:16})})]})})]}));fs.displayName="ConversationHeader";function x0(r,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(r==null||r(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function Pa(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function ps(...r){return e=>{let t=!1;const a=r.map(n=>{const s=Pa(n,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<a.length;n++){const s=a[n];typeof s=="function"?s():Pa(r[n],null)}}}}function B0(...r){return T.useCallback(ps(...r),r)}function yc(r,e){const t=T.createContext(e),a=s=>{const{children:o,...l}=s,u=T.useMemo(()=>l,Object.values(l));return h.jsx(t.Provider,{value:u,children:o})};a.displayName=r+"Provider";function n(s){const o=T.useContext(t);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${r}\``)}return[a,n]}function xc(r,e=[]){let t=[];function a(s,o){const l=T.createContext(o),u=t.length;t=[...t,o];const d=g=>{var N;const{scope:x,children:w,...M}=g,k=((N=x==null?void 0:x[r])==null?void 0:N[u])||l,A=T.useMemo(()=>M,Object.values(M));return h.jsx(k.Provider,{value:A,children:w})};d.displayName=s+"Provider";function f(g,x){var k;const w=((k=x==null?void 0:x[r])==null?void 0:k[u])||l,M=T.useContext(w);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(o=>T.createContext(o));return function(l){const u=(l==null?void 0:l[r])||s;return T.useMemo(()=>({[`__scope${r}`]:{...l,[r]:u}}),[l,u])}};return n.scopeName=r,[a,wc(n,...e)]}function wc(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const a=r.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const o=a.reduce((l,{useScope:u,scopeName:d})=>{const g=u(s)[`__scope${d}`];return{...l,...g}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var Q0=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},Sc=T[" useId ".trim().toString()]||(()=>{}),kc=0;function tr(r){const[e,t]=T.useState(Sc());return Q0(()=>{t(a=>a??String(kc++))},[r]),r||(e?`radix-${e}`:"")}var Cc=T[" useInsertionEffect ".trim().toString()]||Q0;function Mc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=Tc({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const f=T.useRef(r!==void 0);T.useEffect(()=>{const g=f.current;g!==l&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,a])}const d=T.useCallback(f=>{var g;if(l){const x=zc(f)?f(r):f;x!==r&&((g=o.current)==null||g.call(o,x))}else s(f)},[l,r,s,o]);return[u,d]}function Tc({defaultProp:r,onChange:e}){const[t,a]=T.useState(r),n=T.useRef(t),s=T.useRef(e);return Cc(()=>{s.current=e},[e]),T.useEffect(()=>{var o;n.current!==t&&((o=s.current)==null||o.call(s,t),n.current=t)},[t,n]),[t,a,s]}function zc(r){return typeof r=="function"}function vs(r){const e=Ac(r),t=T.forwardRef((a,n)=>{const{children:s,...o}=a,l=T.Children.toArray(s),u=l.find(Dc);if(u){const d=u.props.children,f=l.map(g=>g===u?T.Children.count(d)>1?T.Children.only(null):T.isValidElement(d)?d.props.children:null:g);return h.jsx(e,{...o,ref:n,children:T.isValidElement(d)?T.cloneElement(d,void 0,f):null})}return h.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function Ac(r){const e=T.forwardRef((t,a)=>{const{children:n,...s}=t;if(T.isValidElement(n)){const o=Rc(n),l=Ec(s,n.props);return n.type!==T.Fragment&&(l.ref=a?ps(a,o):o),T.cloneElement(n,l)}return T.Children.count(n)>1?T.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Nc=Symbol("radix.slottable");function Dc(r){return T.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Nc}function Ec(r,e){const t={...e};for(const a in e){const n=r[a],s=e[a];/^on[A-Z]/.test(a)?n&&s?t[a]=(...l)=>{const u=s(...l);return n(...l),u}:n&&(t[a]=n):a==="style"?t[a]={...n,...s}:a==="className"&&(t[a]=[n,s].filter(Boolean).join(" "))}return{...r,...t}}function Rc(r){var a,n;let e=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(n=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var Bc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=Bc.reduce((r,e)=>{const t=vs(`Primitive.${e}`),a=T.forwardRef((n,s)=>{const{asChild:o,...l}=n,u=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(u,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...r,[e]:a}},{});function Lc(r,e){r&&Yo.flushSync(()=>r.dispatchEvent(e))}function et(r){const e=T.useRef(r);return T.useEffect(()=>{e.current=r}),T.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function jc(r,e=globalThis==null?void 0:globalThis.document){const t=et(r);T.useEffect(()=>{const a=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[t,e])}var Ic="DismissableLayer",Dr="dismissableLayer.update",Pc="dismissableLayer.pointerDownOutside",Oc="dismissableLayer.focusOutside",Oa,gs=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bs=T.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=T.useContext(gs),[f,g]=T.useState(null),x=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=T.useState({}),M=B0(e,q=>g(q)),k=Array.from(d.layers),[A]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(A),E=f?k.indexOf(f):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,P=E>=N,O=Hc(q=>{const j=q.target,_=[...d.branches].some(le=>le.contains(j));!P||_||(n==null||n(q),o==null||o(q),q.defaultPrevented||l==null||l())},x),Y=Vc(q=>{const j=q.target;[...d.branches].some(le=>le.contains(j))||(s==null||s(q),o==null||o(q),q.defaultPrevented||l==null||l())},x);return jc(q=>{E===d.layers.size-1&&(a==null||a(q),!q.defaultPrevented&&l&&(q.preventDefault(),l()))},x),T.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Oa=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Fa(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Oa)}},[f,x,t,d]),T.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Fa())},[f,d]),T.useEffect(()=>{const q=()=>w({});return document.addEventListener(Dr,q),()=>document.removeEventListener(Dr,q)},[]),h.jsx(Ke.div,{...u,ref:M,style:{pointerEvents:R?P?"auto":"none":void 0,...r.style},onFocusCapture:x0(r.onFocusCapture,Y.onFocusCapture),onBlurCapture:x0(r.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:x0(r.onPointerDownCapture,O.onPointerDownCapture)})});bs.displayName=Ic;var Fc="DismissableLayerBranch",qc=T.forwardRef((r,e)=>{const t=T.useContext(gs),a=T.useRef(null),n=B0(e,a);return T.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),h.jsx(Ke.div,{...r,ref:n})});qc.displayName=Fc;function Hc(r,e=globalThis==null?void 0:globalThis.document){const t=et(r),a=T.useRef(!1),n=T.useRef(()=>{});return T.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){ys(Pc,t,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=u,e.addEventListener("click",n.current,{once:!0})):u()}else e.removeEventListener("click",n.current);a.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>a.current=!0}}function Vc(r,e=globalThis==null?void 0:globalThis.document){const t=et(r),a=T.useRef(!1);return T.useEffect(()=>{const n=s=>{s.target&&!a.current&&ys(Oc,t,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Fa(){const r=new CustomEvent(Dr);document.dispatchEvent(r)}function ys(r,e,t,{discrete:a}){const n=t.originalEvent.target,s=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(r,e,{once:!0}),a?Lc(n,s):n.dispatchEvent(s)}var rr="focusScope.autoFocusOnMount",ar="focusScope.autoFocusOnUnmount",qa={bubbles:!1,cancelable:!0},_c="FocusScope",xs=T.forwardRef((r,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...o}=r,[l,u]=T.useState(null),d=et(n),f=et(s),g=T.useRef(null),x=B0(e,k=>u(k)),w=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(a){let k=function(R){if(w.paused||!l)return;const P=R.target;l.contains(P)?g.current=P:b0(g.current,{select:!0})},A=function(R){if(w.paused||!l)return;const P=R.relatedTarget;P!==null&&(l.contains(P)||b0(g.current,{select:!0}))},N=function(R){if(document.activeElement===document.body)for(const O of R)O.removedNodes.length>0&&b0(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",A);const E=new MutationObserver(N);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",A),E.disconnect()}}},[a,l,w.paused]),T.useEffect(()=>{if(l){Va.add(w);const k=document.activeElement;if(!l.contains(k)){const N=new CustomEvent(rr,qa);l.addEventListener(rr,d),l.dispatchEvent(N),N.defaultPrevented||(Gc(Yc(ws(l)),{select:!0}),document.activeElement===k&&b0(l))}return()=>{l.removeEventListener(rr,d),setTimeout(()=>{const N=new CustomEvent(ar,qa);l.addEventListener(ar,f),l.dispatchEvent(N),N.defaultPrevented||b0(k??document.body,{select:!0}),l.removeEventListener(ar,f),Va.remove(w)},0)}}},[l,d,f,w]);const M=T.useCallback(k=>{if(!t&&!a||w.paused)return;const A=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(A&&N){const E=k.currentTarget,[R,P]=Uc(E);R&&P?!k.shiftKey&&N===P?(k.preventDefault(),t&&b0(R,{select:!0})):k.shiftKey&&N===R&&(k.preventDefault(),t&&b0(P,{select:!0})):N===E&&k.preventDefault()}},[t,a,w.paused]);return h.jsx(Ke.div,{tabIndex:-1,...o,ref:x,onKeyDown:M})});xs.displayName=_c;function Gc(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(b0(a,{select:e}),document.activeElement!==t)return}function Uc(r){const e=ws(r),t=Ha(e,r),a=Ha(e.reverse(),r);return[t,a]}function ws(r){const e=[],t=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function Ha(r,e){for(const t of r)if(!$c(t,{upTo:e}))return t}function $c(r,{upTo:e}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(e!==void 0&&r===e)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function Wc(r){return r instanceof HTMLInputElement&&"select"in r}function b0(r,{select:e=!1}={}){if(r&&r.focus){const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&Wc(r)&&e&&r.select()}}var Va=Xc();function Xc(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=_a(r,e),r.unshift(e)},remove(e){var t;r=_a(r,e),(t=r[0])==null||t.resume()}}}function _a(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function Yc(r){return r.filter(e=>e.tagName!=="A")}var Zc="Portal",Ss=T.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=T.useState(!1);Q0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Ln.createPortal(h.jsx(Ke.div,{...a,ref:e}),o):null});Ss.displayName=Zc;function Kc(r,e){return T.useReducer((t,a)=>e[t][a]??t,r)}var qt=r=>{const{present:e,children:t}=r,a=Jc(e),n=typeof t=="function"?t({present:a.isPresent}):T.Children.only(t),s=B0(a.ref,Qc(n));return typeof t=="function"||a.isPresent?T.cloneElement(n,{ref:s}):null};qt.displayName="Presence";function Jc(r){const[e,t]=T.useState(),a=T.useRef(null),n=T.useRef(r),s=T.useRef("none"),o=r?"mounted":"unmounted",[l,u]=Kc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const d=ht(a.current);s.current=l==="mounted"?d:"none"},[l]),Q0(()=>{const d=a.current,f=n.current;if(f!==r){const x=s.current,w=ht(d);r?u("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&x!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),Q0(()=>{if(e){let d;const f=e.ownerDocument.defaultView??window,g=w=>{const k=ht(a.current).includes(CSS.escape(w.animationName));if(w.target===e&&k&&(u("ANIMATION_END"),!n.current)){const A=e.style.animationFillMode;e.style.animationFillMode="forwards",d=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=A)})}},x=w=>{w.target===e&&(s.current=ht(a.current))};return e.addEventListener("animationstart",x),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{f.clearTimeout(d),e.removeEventListener("animationstart",x),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:T.useCallback(d=>{a.current=d?getComputedStyle(d):null,t(d)},[])}}function ht(r){return(r==null?void 0:r.animationName)||"none"}function Qc(r){var a,n;let e=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(n=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var nr=0;function eu(){T.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Ga()),document.body.insertAdjacentElement("beforeend",r[1]??Ga()),nr++,()=>{nr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),nr--}},[])}function Ga(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var Xe=function(){return Xe=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Xe.apply(this,arguments)};function ks(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]]);return t}function tu(r,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,s;a<n;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return r.concat(s||Array.prototype.slice.call(e))}var zt="right-scroll-bar-position",At="width-before-scroll-bar",ru="with-scroll-bars-hidden",au="--removed-body-scroll-bar-size";function sr(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function nu(r,e){var t=V.useState(function(){return{value:r,callback:e,facade:{get current(){return t.value},set current(a){var n=t.value;n!==a&&(t.value=a,t.callback(a,n))}}}})[0];return t.callback=e,t.facade}var su=typeof window<"u"?T.useLayoutEffect:T.useEffect,Ua=new WeakMap;function ou(r,e){var t=nu(null,function(a){return r.forEach(function(n){return sr(n,a)})});return su(function(){var a=Ua.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||sr(l,null)}),s.forEach(function(l){n.has(l)||sr(l,o)})}Ua.set(t,r)},[r]),t}function iu(r){return r}function lu(r,e){e===void 0&&(e=iu);var t=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:r},useMedium:function(s){var o=e(s,a);return t.push(o),function(){t=t.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(a=!0;t.length;){var o=t;t=[],o.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var o=[];if(t.length){var l=t;t=[],l.forEach(s),o=t}var u=function(){var f=o;o=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(f){o.push(f),d()},filter:function(f){return o=o.filter(f),t}}}};return n}function cu(r){r===void 0&&(r={});var e=lu(null);return e.options=Xe({async:!0,ssr:!1},r),e}var Cs=function(r){var e=r.sideCar,t=ks(r,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return T.createElement(a,Xe({},t))};Cs.isSideCarExport=!0;function uu(r,e){return r.useMedium(e),Cs}var Ms=cu(),or=function(){},Ht=T.forwardRef(function(r,e){var t=T.useRef(null),a=T.useState({onScrollCapture:or,onWheelCapture:or,onTouchMoveCapture:or}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,f=r.enabled,g=r.shards,x=r.sideCar,w=r.noRelative,M=r.noIsolation,k=r.inert,A=r.allowPinchZoom,N=r.as,E=N===void 0?"div":N,R=r.gapMode,P=ks(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=x,Y=ou([t,e]),q=Xe(Xe({},P),n);return T.createElement(T.Fragment,null,f&&T.createElement(O,{sideCar:Ms,removeScrollBar:d,shards:g,noRelative:w,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!A,lockRef:t,gapMode:R}),o?T.cloneElement(T.Children.only(l),Xe(Xe({},q),{ref:Y})):T.createElement(E,Xe({},q,{className:u,ref:Y}),l))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ht.classNames={fullWidth:At,zeroRight:zt};var du=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mu(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=du();return e&&r.setAttribute("nonce",e),r}function hu(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function fu(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var pu=function(){var r=0,e=null;return{add:function(t){r==0&&(e=mu())&&(hu(e,t),fu(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},vu=function(){var r=pu();return function(e,t){T.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},Ts=function(){var r=vu(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},gu={left:0,top:0,right:0,gap:0},ir=function(r){return parseInt(r||"",10)||0},bu=function(r){var e=window.getComputedStyle(document.body),t=e[r==="padding"?"paddingLeft":"marginLeft"],a=e[r==="padding"?"paddingTop":"marginTop"],n=e[r==="padding"?"paddingRight":"marginRight"];return[ir(t),ir(a),ir(n)]},yu=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return gu;var e=bu(r),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},xu=Ts(),H0="data-scroll-locked",wu=function(r,e,t,a){var n=r.left,s=r.top,o=r.right,l=r.gap;return t===void 0&&(t="margin"),`
|
|
27
|
-
.`.concat(
|
|
26
|
+
`}),h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o,style:{transformOrigin:"252px 247px",animation:`drawDot-${l.replace(/:/g,"")} 0.3s ease-out ${n+a*.9}s forwards`,opacity:0}}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:o,strokeWidth:"2",fill:o,style:{"--path-length":u,strokeDasharray:u,strokeDashoffset:u,fillOpacity:0,animation:`drawSignature-${l.replace(/:/g,"")} ${a}s ease-out ${n}s forwards`}})]}):h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:o})]})};Wr.displayName="SignatureA";const Yi=T("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate transition-[border-color] duration-300",{variants:{status:{normal:"bg-[var(--color-white)] border-[var(--color-gray-200)]",hover:"border-[var(--color-blue-800)]",generating:"bg-[var(--color-white)] border-[var(--color-gray-200)] cursor-default",error:"border-[var(--color-red-1000)]"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",disabled:!1}}),Zi=T("absolute inset-0 -z-10 transition-opacity duration-300",{variants:{status:{normal:"opacity-0 group-hover:opacity-100",hover:"opacity-100",generating:"opacity-0",error:"opacity-100"}},defaultVariants:{status:"normal"}}),Ki=T("absolute inset-0",{variants:{status:{normal:"bg-[var(--color-blue-200)]",hover:"bg-[var(--color-blue-200)]",generating:"",error:"bg-[var(--color-red-200)]"}},defaultVariants:{status:"normal"}}),er=T("flex gap-2 h-[75px] shrink-0",{variants:{status:{normal:"p-2 items-end",hover:"p-2 items-end",generating:"px-4 py-2 items-center",error:"px-4 py-2 items-center"}},defaultVariants:{status:"normal"}}),Ji=T("relative -bottom-2 w-[60px] h-[66px] bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] border-b-0 rounded-t-[4px] overflow-hidden transition-transform duration-300 group-hover:opacity-90 group-hover:shadow-sm"),Qi=T("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),el=T("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),tl=T("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),rl=T("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),al=T("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),nl=T("px-4 overflow-hidden flex items-center w-[56px] relative"),sl=T("absolute w-6 h-6 text-[var(--color-blue-800)]"),ol=T("w-6 h-6 text-[var(--color-gray-200)]"),il=T("w-4 h-4 shrink-0 transition-all duration-300",{variants:{status:{normal:"text-[var(--color-blue-1000)] group-hover:text-[var(--color-blue-800)] group-hover:translate-x-0.5",hover:"text-[var(--color-blue-800)] translate-x-0.5",generating:"text-[var(--color-gray-600)] animate-spin",error:"text-[var(--color-blue-1000)] group-hover:rotate-[-20deg]"}},defaultVariants:{status:"normal"}}),ll=T("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),cl={rest:{scaleX:1},hover:{scaleX:[0,1]}},ul={rest:{x:0},hover:{x:4}},dl={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},ml={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},hl=[100,66,75,50],Zn=I.forwardRef(({title:r,subtitle:e,status:t,onClick:a,onActionClick:n,className:s,disabled:o=!1},l)=>{const[u,d]=I.useState(!1),f=t||(u&&!o?"hover":"normal"),g=I.useMemo(()=>f==="generating"||f==="error"?"rest":u?"hover":"rest",[f,u]),y=I.useCallback(()=>{!t&&!o&&d(!0)},[t,o]),w=I.useCallback(()=>{!t&&!o&&d(!1)},[t,o]),M=I.useCallback(()=>{!o&&a&&a()},[o,a]),k=I.useCallback(R=>{R.stopPropagation(),!o&&n&&n()},[o,n]),N=I.useCallback(R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),M())},[M]),A=()=>f==="generating"?h.jsx("div",{className:er({status:"generating"}),children:h.jsx(p.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):f==="error"?h.jsx("div",{className:er({status:"error"}),children:h.jsx(p.TriangleAlert,{size:16,className:ll()})}):h.jsx("div",{className:er({status:f}),children:h.jsx("div",{className:Ji(),children:h.jsx(Se.motion.div,{className:Qi(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:hl.map((R,F)=>h.jsx(Se.motion.div,{className:el(),style:{width:`${R}%`},variants:cl,transition:{duration:.4,ease:"easeInOut"}},F))})})}),E=()=>f==="generating"?null:f==="error"?h.jsx("button",{type:"button",onClick:k,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:h.jsx(p.RotateCcw,{size:16,className:il({status:"error"})})}):h.jsxs(h.Fragment,{children:[h.jsx(Se.motion.div,{className:sl(),variants:dl,transition:{duration:.3,ease:"backOut"},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),h.jsx(Se.motion.div,{className:ol(),variants:ml,transition:{duration:.3},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})})]});return h.jsxs(Se.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:H(Yi({status:f,disabled:o}),s),onClick:M,onKeyDown:N,onMouseEnter:y,onMouseLeave:w,"aria-disabled":o,"aria-label":`${r} - ${e}${f==="error"?" - Error occurred":""}${f==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:g,children:[h.jsx("div",{className:Zi({status:f}),children:h.jsx("div",{className:Ki({status:f})})}),A(),h.jsxs(Se.motion.div,{className:tl(),variants:ul,children:[h.jsx("p",{className:rl(),title:r,children:r}),h.jsx("p",{className:al(),title:e,children:e})]}),h.jsx("div",{className:nl(),children:E()})]})});Zn.displayName="ArtifactCard";const fl=T("flex items-center flex-wrap gap-2",{variants:{size:{small:"text-[0.875rem] leading-[1.25rem]",medium:"text-[1rem] leading-[1.5rem]"}},defaultVariants:{size:"medium"}}),m0=T("inline-flex items-center gap-2 transition-colors duration-200",{variants:{state:{default:"text-[var(--color-gray-600)] hover:text-[var(--color-blue-1000)] cursor-pointer",active:"text-[var(--color-blue-1000)] font-medium cursor-default",inactive:"text-[var(--color-gray-600)] cursor-default"}},defaultVariants:{state:"default"}}),pl=T("text-[var(--color-gray-600)] flex items-center justify-center"),Kn=({items:r,separator:e=h.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>h.jsx("nav",{"aria-label":"Breadcrumb",className:H(fl({size:a}),t),children:h.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:r.map((n,s)=>{const o=s===r.length-1;let l;return o?l=h.jsxs("span",{className:m0({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=h.jsxs("a",{href:n.href,className:m0({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=h.jsxs("button",{type:"button",className:m0({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=h.jsxs("span",{className:m0({state:"inactive"}),children:[n.icon,n.label]}),h.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&h.jsx("span",{className:pl(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),vl=T("inline-flex items-center justify-center rounded-[8px] font-normal transition-colors duration-200 box-border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{variant:{primary:"bg-[var(--color-white)] border border-[var(--color-blue-1000)] text-[var(--color-blue-1000)] hover:bg-[var(--color-blue-200)] active:bg-[var(--color-blue-400)] focus-visible:outline-[var(--color-blue-800)]",secondary:"bg-[rgba(255,255,255,0.01)] border border-[var(--color-gray-600)] text-[var(--color-gray-600)] hover:bg-[var(--color-gray-100)] hover:border-[var(--color-gray-800)] hover:text-[var(--color-gray-800)] active:bg-[var(--color-gray-200)] active:border-[var(--color-gray-1000)] active:text-[var(--color-gray-1000)] focus-visible:outline-[var(--color-blue-800)]",tertiary:"bg-transparent border border-transparent text-[var(--color-blue-1000)] hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] focus-visible:outline-[var(--color-blue-800)]",cta:"bg-[var(--color-blue-800)] border border-transparent text-[var(--color-white)] hover:bg-[var(--color-blue-400)] active:bg-[var(--color-blue-1000)] focus-visible:outline-[var(--color-blue-1000)]",danger:"bg-[var(--color-red-1000)] border border-transparent text-[var(--color-white)] hover:bg-[#e54545] active:bg-[#cc3d3d] focus-visible:outline-[var(--color-red-1000)]"},tone:{brand:"",neutral:""},size:{small:"px-2 py-2 gap-1 text-[0.75rem] leading-[1rem]",medium:"px-3 py-2 gap-1 text-[1rem] leading-[1.5rem]",large:"px-4 py-3 gap-1 text-[1rem] leading-[1.5rem]"}},compoundVariants:[{variant:"primary",tone:"neutral",className:"bg-[rgba(0,6,38,0.9)] border-transparent text-[var(--color-white)] hover:bg-[rgba(0,6,38,0.8)] active:bg-[rgba(0,6,38,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"secondary",tone:"neutral",className:"bg-[rgba(255,255,255,0.01)] border-[rgba(0,13,77,0.45)] text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] hover:border-[rgba(0,13,77,0.65)] hover:text-[rgba(0,9,51,0.85)] active:bg-[rgba(0,13,77,0.1)] active:border-[rgba(0,13,77,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"tertiary",tone:"neutral",className:"text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] active:bg-[rgba(0,13,77,0.1)] hover:text-[rgba(0,9,51,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"}],defaultVariants:{variant:"primary",tone:"brand",size:"medium"}}),Ut=I.forwardRef(({className:r,variant:e="primary",tone:t="brand",size:a="medium",startIcon:n,endIcon:s,children:o,disabled:l,...u},d)=>{const f=a==="small"?13:a==="large"?20:16;return h.jsxs("button",{ref:d,className:H(vl({variant:e,tone:t,size:a}),r),disabled:l,...u,children:[n&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:n}),o,s&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:s})]})});Ut.displayName="Button";const gl=T("relative inline-flex items-center px-1 py-1 gap-1 rounded-[5px] border overflow-hidden transition-colors",{variants:{status:{uploading:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",processing:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",done:"border-[var(--color-gray-200)] bg-[var(--color-white)]",error:"border-[var(--color-gray-200)] bg-[var(--color-white)]"}},defaultVariants:{status:"done"}}),bl=T("truncate text-[0.75rem] leading-[1rem] font-normal",{variants:{status:{uploading:"text-[var(--color-gray-600)]",processing:"text-[var(--color-gray-800)]",done:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"done"}}),h0=T("shrink-0",{variants:{status:{uploading:"text-[var(--color-blue-800)]",processing:"text-[var(--color-blue-800)]",done:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]"}},defaultVariants:{status:"done"}}),xl=T("absolute top-0 left-0 bottom-0 bg-[var(--color-gray-200)] z-0 rounded-bl-[4px] rounded-tl-[4px]",{variants:{status:{uploading:"opacity-100",processing:"opacity-100",done:"opacity-0",error:"opacity-0"}},defaultVariants:{status:"uploading"}});var Jn=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Jn||{});const Qn=({filename:r,status:e="done",progress:t=0,onDelete:a,className:n})=>{const s=e==="uploading",o=e==="processing",l=e==="error",d=s?"uploading":o?"processing":l?"error":"done",f=()=>s?h.jsx(p.ArrowUp,{size:12,className:h0({status:d})}):o?h.jsx(p.Loader,{size:12,className:H(h0({status:d}),"animate-spin")}):l?h.jsx(p.TriangleAlert,{size:12,className:h0({status:d})}):h.jsx(p.FileText,{size:12,className:h0({status:d})});return h.jsxs("div",{className:"relative inline-block group",children:[h.jsxs("div",{className:H(gl({status:d}),n),children:[(s||o)&&h.jsx(Se.motion.div,{className:xl({status:d}),initial:{width:"0%"},animate:{width:`${t}%`},transition:{duration:.3,ease:"easeOut"}}),h.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[h.jsx("div",{className:H("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:f()}),h.jsx("span",{className:bl({status:d}),title:r,children:r})]})]}),a&&!s&&!o&&h.jsx(Se.motion.button,{onClick:a,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove file",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:h.jsx(p.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},yl=T("inline-flex items-center gap-2 cursor-pointer select-none group disabled:cursor-not-allowed disabled:opacity-50 w-fit",{variants:{size:{medium:"text-[1rem] leading-[1.5rem] gap-2",small:"gap-1"}},defaultVariants:{size:"medium"}}),wl=T("flex items-center justify-center transition-colors duration-200 ease-in-out rounded-[2px] border shrink-0",{variants:{checked:{true:"bg-[var(--color-blue-1000)] border-[var(--color-blue-1000)] text-white",false:"bg-white border-[var(--color-gray-200)] group-hover:border-[var(--color-gray-600)]"},size:{medium:"w-[16px] h-[16px]",small:"w-[12px] h-[12px]"}},defaultVariants:{checked:!1,size:"medium"}}),Sl="sr-only peer",es=I.forwardRef(({className:r,checked:e,defaultChecked:t,onChange:a,label:n,size:s="medium",disabled:o,...l},u)=>{const[d,f]=I.useState(t||!1),g=e!==void 0,y=g?e:d,w=M=>{g||f(M.target.checked),a==null||a(M)};return h.jsxs("label",{className:yl({size:s,className:r}),children:[h.jsx("input",{type:"checkbox",className:Sl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),h.jsx("span",{className:wl({checked:!!y,size:s}),children:h.jsx(p.Check,{size:s==="medium"?12:8,strokeWidth:3,className:H("text-white transition-opacity duration-200",y?"opacity-100":"opacity-0")})}),n&&h.jsx(ct,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});es.displayName="Checkbox";const kl=T("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),Cl=T("transform"),Ml=T("stroke-[var(--color-gray-200)]"),Tl=T("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),zl=T("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),Nl={xs:18,small:24,medium:32,large:40},Xr=I.forwardRef(({className:r,value:e=0,max:t=100,size:a="medium",variant:n="default",showLabel:s=!0,labelFormatter:o,strokeWidth:l=3,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=Nl[a],y=(g-l)/2,w=2*Math.PI*y,M=w-f/100*w,k=o?o(e,t):`${Math.round(e)}`;return h.jsxs("div",{ref:d,className:H(kl({size:a}),r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[h.jsxs("svg",{className:Cl(),width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:[h.jsx("circle",{className:Ml(),cx:g/2,cy:g/2,r:y,fill:"none",strokeWidth:l}),h.jsx("circle",{className:Tl({variant:n}),cx:g/2,cy:g/2,r:y,fill:"none",strokeWidth:l,strokeLinecap:"round",strokeDasharray:w,strokeDashoffset:M,transform:`rotate(-90 ${g/2} ${g/2})`})]}),s&&h.jsx("span",{className:zl({size:a}),children:k})]})});Xr.displayName="CircularProgress";function Al(r,e){I.useEffect(()=>{const t=a=>{const n=r==null?void 0:r.current;!n||n.contains(a.target)||e(a)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[r,e])}const Dl=T("absolute top-full left-0 z-50 min-w-[200px] overflow-hidden rounded-[8px] border border-[var(--color-gray-200)] bg-[var(--color-white)] shadow-lg focus:outline-none",{variants:{align:{start:"left-0",end:"right-0 left-auto",center:"left-1/2 -translate-x-1/2"},attached:{true:"mt-0 rounded-t-none border-t-0",false:"mt-2"}},defaultVariants:{align:"start",attached:!1}}),Rl=T("flex w-full cursor-pointer items-center px-3 py-2 text-[0.875rem] text-[var(--color-gray-800)] transition-colors hover:bg-[var(--color-gray-50)] focus:bg-[var(--color-gray-50)] focus:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"},variant:{default:"",destructive:"text-[var(--color-red-1000)] hover:bg-[var(--color-red-200)] focus:bg-[var(--color-red-200)]"}},defaultVariants:{variant:"default",active:!1}}),El=T("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Bl=T("h-px bg-[var(--color-gray-200)] my-1"),ts=I.createContext(void 0),q0=()=>{const r=I.useContext(ts);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Yr=({children:r,defaultOpen:e=!1,open:t,onOpenChange:a,className:n,...s})=>{const[o,l]=I.useState(e),u=t!==void 0,d=u?t:o,f=I.useRef(null),g=()=>{const w=!d;u||l(w),a==null||a(w)},y=()=>{u||l(!1),a==null||a(!1)};return Al(f,y),h.jsx(ts.Provider,{value:{isOpen:d,toggle:g,close:y},children:h.jsx("div",{ref:f,className:H("relative inline-block text-left",n),...s,children:r})})};Yr.displayName="Dropdown";const Zr=I.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=q0(),l=u=>{s(),t==null||t(u)};return h.jsx("div",{ref:n,className:H("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});Zr.displayName="DropdownTrigger";const Kr=I.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=q0();return h.jsx(Se.AnimatePresence,{children:o&&h.jsx(Se.motion.div,{ref:s,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:H(Dl({align:e,attached:t}),r),...n,children:a})})});Kr.displayName="DropdownContent";const Jr=I.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=q0(),d=f=>{s==null||s(f),a&&u()};return h.jsx("div",{ref:l,className:H(Rl({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Jr.displayName="DropdownItem";const Ll=I.forwardRef(({className:r,children:e,...t},a)=>h.jsx("div",{ref:a,className:H(El(),r),...t,children:e}));Ll.displayName="DropdownLabel";const jl=I.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?h.jsx("div",{ref:n,className:H("h-px my-1 overflow-hidden",r),...a,children:h.jsx(Se.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:t}})}):h.jsx("div",{ref:n,className:H(Bl(),r),...a}));jl.displayName="DropdownSeparator";const Il=T("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"}},defaultVariants:{status:"default",size:"medium"}}),Pl=T("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),Aa=T("absolute top-1/2 -translate-y-1/2 pointer-events-none flex items-center justify-center",{variants:{status:{default:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]",success:"text-[var(--color-green-1000)]"},position:{start:"",end:""},size:{medium:"size-[24px]",small:"size-[16px]",tiny:"size-[16px]"}},compoundVariants:[{position:"start",size:"medium",className:"left-4"},{position:"start",size:"small",className:"left-3"},{position:"start",size:"tiny",className:"left-2"},{position:"end",size:"medium",className:"right-4"},{position:"end",size:"small",className:"right-3"},{position:"end",size:"tiny",className:"right-2"}],defaultVariants:{status:"default",size:"medium",position:"end"}}),rs=I.forwardRef(({className:r,status:e="default",size:t="medium",startIcon:a,endIcon:n,disabled:s,...o},l)=>{const u={medium:"pl-12",small:"pl-9",tiny:"pl-8"},d={medium:"pr-12",small:"pr-9",tiny:"pr-8"};return h.jsxs("div",{className:Pl({size:t}),children:[a&&h.jsx("span",{className:Aa({status:e,size:t,position:"start"}),children:a}),h.jsx("input",{ref:l,className:H(Il({status:e,size:t}),a&&u[t],n&&d[t],r),disabled:s,...o}),n&&h.jsx("span",{className:Aa({status:e,size:t,position:"end"}),children:n})]})});rs.displayName="Input";const Ol=T("flex flex-col items-center justify-center"),Fl=T("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),ql=T("absolute inset-0 rounded-full border-4 border-transparent animate-spin",{variants:{color:{primary:"border-t-[var(--color-blue-800)]",secondary:"border-t-[var(--color-gray-600)]"}},defaultVariants:{color:"primary"}}),Hl=T("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Vl=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>h.jsxs("div",{className:Ol(),children:[h.jsx("div",{className:Fl({size:r}),children:h.jsx("div",{className:ql({color:e})})}),t&&h.jsx("p",{className:Hl({color:a}),children:t})]}),tr=T("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"},isEditing:{true:"items-stretch",false:""}},compoundVariants:[{variant:"user",alignment:void 0,isEditing:!1,className:"items-end"},{variant:"assistant",alignment:void 0,isEditing:!1,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user",isEditing:!1}}),_l=T("flex gap-[12px] items-start w-full"),Gl=T("flex flex-col flex-1 min-w-0"),Da=T("flex flex-col w-full transition-colors duration-200",{variants:{variant:{user:"bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[16px] p-[16px] gap-[24px]",assistant:"bg-transparent p-[8px] gap-[8px]",system:"bg-transparent p-[8px] gap-[8px]",loader:"bg-transparent p-[8px] gap-[24px]"},isSticky:{true:"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]",false:""}},defaultVariants:{variant:"user",isSticky:!1}}),Ul=T("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),$l=T("typography-h4 text-[var(--color-blue-1000)]"),Ra=T("typography-small",{variants:{variant:{user:"text-[var(--color-blue-1000)]",assistant:"text-[var(--color-blue-1000)]",system:"text-[var(--color-gray-600)]",loader:""}},defaultVariants:{variant:"user"}}),Ea=T("flex gap-[8px] p-[4px] rounded-[4px] transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),Wl=T(["flex","gap-[8px]","opacity-0","group-hover:opacity-100","transition-opacity","duration-200"]),Xl=T("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.15)] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)] disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-400)] disabled:hover:drop-shadow-none",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),Yl=T("flex items-start justify-center shrink-0 pt-[4px]"),Zl=T("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Kl=T("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Jl=T("flex items-center justify-center"),Ql=T("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),e1=T(["absolute -inset-y-2 -inset-x-4","animate-shimmer","bg-[linear-gradient(90deg,transparent_0%,transparent_35%,rgba(255,255,255,0.4)_50%,transparent_65%,transparent_100%)]","blur-[1px]","z-10 pointer-events-none"]),t1=T(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),r1=T(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),a1=T(["flex","flex-col","w-full","bg-[var(--color-white)]","rounded-[16px]","border","border-[var(--color-blue-800)]","p-[16px]","gap-[8px]","transition-colors","duration-200"]),n1=T(["w-full","min-h-[60px]","bg-transparent","border-none","resize-none","typography-small","text-[var(--color-blue-1000)]","placeholder:text-[var(--color-gray-600)]","focus:outline-none","disabled:opacity-50","disabled:cursor-not-allowed"]),s1=T(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]"]),o1=T(["flex","items-center","gap-[4px]"]),Ba=T(["p-[4px]","rounded-[4px]","text-[var(--color-gray-400)]","transition-colors","duration-200","hover:text-[var(--color-gray-800)]","hover:bg-[var(--color-gray-100)]","disabled:opacity-30","disabled:cursor-not-allowed","disabled:hover:bg-transparent","disabled:hover:text-[var(--color-gray-400)]","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-[var(--color-blue-800)]"]),i1=T(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]","font-normal","tabular-nums","select-none","min-w-[32px]","text-center"]),l1=[],c1=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),u1=c1?"⌘+Enter to save, Esc to cancel":"Ctrl+Enter to save, Esc to cancel",d1=r=>{const e=typeof r=="string"?new Date(r):r,a=new Date().getTime()-e.getTime(),n=Math.floor(a/6e4);if(n<1)return"Just now";if(n<60)return`${n} min ago`;const s=Math.floor(n/60);return s<24?`${s}h ago`:e.toLocaleDateString()},Vt=I.memo(({onClick:r,icon:e,label:t,className:a,isActive:n=!1,disabled:s=!1})=>h.jsx("button",{className:H(Xl({isActive:n}),a),onClick:r,type:"button","aria-label":t,disabled:s,children:h.jsx(e,{size:12})}));Vt.displayName="ActionButton";const as=I.memo(({branchInfo:r,onPrevious:e,onNext:t,isLoading:a=!1})=>{const n=r.currentIndex>1,s=r.currentIndex<r.totalBranches;return r.totalBranches<=1?null:h.jsxs("div",{className:H(o1()),children:[h.jsx("button",{type:"button",className:H(Ba()),onClick:e,disabled:!n||a,"aria-label":"Previous version",children:h.jsx(p.ChevronLeft,{size:14})}),h.jsxs("span",{className:H(i1()),children:[r.currentIndex," / ",r.totalBranches]}),h.jsx("button",{type:"button",className:H(Ba()),onClick:t,disabled:!s||a,"aria-label":"Next version",children:h.jsx(p.ChevronRight,{size:14})})]})});as.displayName="BranchNavigator";const m1=()=>{const[r,e]=I.useState(0);return I.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),h.jsx("div",{className:H(Jl()),children:h.jsx(Wr,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},ns=I.forwardRef(({className:r,variant:e="user",heading:t,children:a,isLoading:n,timestamp:s,hideAvatar:o=!1,showTimestamp:l=!1,isSticky:u=!1,isInitialPrompt:d=!1,alignment:f,actions:g=l1,enableCopy:y=!1,copyIcon:w,onCopySuccess:M,enableEdit:k=!1,isEditing:N,initialEditContent:A,onEditStart:E,onEditCancel:R,onEditSave:F,isSaving:q=!1,branchInfo:X,onPreviousBranch:_,onNextBranch:P,isBranchLoading:Y=!1,...be},ue)=>{const te=I.useRef(null),ye=I.useRef(null),[se,le]=I.useState(!1),[oe,Ce]=I.useState(!1),[G,Ae]=I.useState(A??""),de=N??oe,ze=f??(e==="user"?d?"center":"right":"left"),he=I.useCallback(()=>te.current?te.current.innerText:typeof a=="string"?a:"",[a]),me=I.useCallback(()=>{if(N===void 0){const j=A??he();Ae(j),Ce(!0)}E==null||E()},[A,he,N,E]),pe=I.useCallback(()=>{N===void 0&&Ce(!1),Ae(""),R==null||R()},[N,R]),Ne=I.useCallback(async()=>{if(!(!(G!=null&&G.trim())||q)&&G.trim()!==(A==null?void 0:A.trim()))try{await(F==null?void 0:F(G)),N===void 0&&Ce(!1),Ae("")}catch(j){console.error("Failed to save edit:",j)}},[G,q,F,N,A]),Oe=I.useCallback(j=>{j.key==="Escape"?pe():j.key==="Enter"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),Ne())},[pe,Ne]),ne=I.useRef(!1),Be=I.useRef(A);I.useEffect(()=>{Be.current=A},[A]),I.useEffect(()=>{const j=ne.current;if(ne.current=de,de&&!j){const Le=A||Be.current||he()||"";Ae(Le)}else!de&&j&&Ae("")},[de,A,he]),I.useEffect(()=>{if(de&&ye.current){ye.current.focus();const j=ye.current.value.length;ye.current.setSelectionRange(j,j)}},[de]);const Fe=I.useCallback(async()=>{if(!te.current)return;const j=te.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(j),le(!0),M==null||M(),setTimeout(()=>{le(!1)},2e3)):console.warn("Clipboard API not available")}catch(Le){console.error("Failed to copy:",Le)}},[M]),qe=I.useCallback(j=>{Ae(j.target.value)},[]),Ze=I.useMemo(()=>g.length>0||y||k&&e==="user",[g.length,y,k,e]),Ge=I.useMemo(()=>!u&&!de&&(e==="user"||e==="assistant")&&Ze,[u,de,e,Ze]),Tt=I.useMemo(()=>!de&&X&&X.totalBranches>1&&e==="user",[de,X,e]);return e==="loader"||n?h.jsx("div",{ref:ue,className:H(tr({variant:"loader",alignment:"left",isEditing:!1}),r),...be,children:h.jsx("div",{className:H(Da({variant:"loader",isSticky:u})),children:h.jsx(m1,{})})}):de&&e==="user"?h.jsxs("div",{ref:ue,className:H(tr({variant:e,alignment:"right",isEditing:!0}),"group",r),...be,children:[h.jsx("div",{className:H(a1()),children:h.jsx("textarea",{ref:ye,value:G,onChange:qe,onKeyDown:Oe,className:H(n1()),placeholder:"Edit your message...",disabled:q,"aria-label":"Edit message"})}),h.jsxs("div",{className:H(Ea({variant:e}),"opacity-100 justify-between"),children:[h.jsx("span",{className:H(s1()),children:u1}),h.jsxs("div",{className:"flex",children:[h.jsx(Vt,{onClick:Ne,icon:p.Check,label:"Save",disabled:q||!(G!=null&&G.trim())||G.trim()===(A==null?void 0:A.trim())}),h.jsx(Vt,{onClick:pe,icon:p.X,label:"Cancel",disabled:q})]})]})]}):h.jsx("div",{ref:ue,className:H(tr({variant:e,alignment:ze,isEditing:!1}),"group",r),...be,children:h.jsxs("div",{className:H(_l()),children:[!o&&e==="assistant"&&h.jsx("div",{className:H(Yl()),children:h.jsx("div",{className:H(Zl()),children:h.jsx($r,{size:20,colorVariant:"lightTeal"})})}),h.jsxs("div",{className:H(Gl()),children:[h.jsx("div",{className:H(Da({variant:e,isSticky:u})),children:h.jsx("div",{className:H(Ul({variant:e})),ref:te,children:e==="system"?h.jsxs("div",{className:H(Ql()),children:[h.jsx("div",{className:H(e1())}),h.jsxs("div",{className:H(t1()),children:[h.jsx(p.Activity,{size:16}),h.jsx("div",{className:H(r1())})]}),h.jsx("span",{className:H(Ra({variant:e})),children:a})]}):h.jsxs(h.Fragment,{children:[e==="assistant"&&t&&h.jsx("h4",{className:H($l()),children:t}),h.jsx("div",{className:H(Ra({variant:e})),children:a})]})})}),l&&s&&h.jsx("div",{className:H(Kl()),children:d1(s)}),(Ge||Tt)&&h.jsxs("div",{className:H(Ea({variant:e}),"justify-between"),children:[h.jsx("div",{className:H(Wl()),children:Ge&&h.jsxs(h.Fragment,{children:[y&&w&&h.jsx(Vt,{onClick:Fe,icon:se?p.Check:w,label:se?"Copied":"Copy",isActive:se}),k&&e==="user"&&h.jsx(Vt,{onClick:me,icon:p.Edit2,label:"Edit"}),g.map((j,Le)=>h.jsx(Vt,{onClick:j.onClick,icon:j.icon,label:j.label,isActive:j.isActive},`${j.label}-${Le}`))]})}),Tt&&X&&h.jsx(as,{branchInfo:X,onPrevious:_,onNext:P,isLoading:Y})]})]})]})})});ns.displayName="MessageBubble";const h1=T("w-full overflow-hidden rounded-full bg-[var(--color-gray-200)]",{variants:{size:{small:"h-1",medium:"h-2",large:"h-3"}},defaultVariants:{size:"medium"}}),f1=T("h-full w-full flex-1 transition-all duration-300 ease-in-out rounded-full",{variants:{variant:{default:"bg-[var(--color-blue-800)]",success:"bg-[var(--color-green-1000)]",error:"bg-[var(--color-red-1000)]",warning:"bg-[var(--color-amber-1000)]"}},defaultVariants:{variant:"default"}}),p1=T("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),ss=I.forwardRef(({className:r,value:e=0,max:t=100,variant:a="default",size:n="medium",showValueLabel:s=!1,label:o,valueFormatter:l,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=l?l(e,t):`${Math.round(f)}%`;return h.jsxs("div",{ref:d,className:H("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&h.jsxs("div",{className:p1({size:n}),children:[o&&h.jsx("span",{className:"font-medium",children:o}),s&&h.jsx("span",{className:"ml-auto",children:g})]}),h.jsx("div",{className:h1({size:n}),children:h.jsx("div",{className:f1({variant:a}),style:{transform:`translateX(-${100-f}%)`}})})]})});ss.displayName="ProgressBar";const v1=T(["w-full h-2 rounded-lg appearance-none cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5","[&::-webkit-slider-thumb]:bg-[var(--color-white)]","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:shadow-sm","[&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:duration-200","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5","[&::-moz-range-thumb]:bg-[var(--color-white)]","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:shadow-sm","[&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:duration-200","[&::-moz-range-thumb]:hover:scale-110"].join(" "),{variants:{variant:{cyan:["focus-visible:ring-[var(--color-blue-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-blue-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-blue-800)]"],orange:["focus-visible:ring-[var(--color-orange-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-orange-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-orange-800)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),os=I.forwardRef(({className:r,variant:e="cyan",animated:t=!1,style:a,...n},s)=>{const{min:o=0,max:l=100,value:u,defaultValue:d}=n,f=Number(u??d??0),g=Number(o),y=Number(l),w=Math.min(Math.max((f-g)*100/(y-g),0),100),M=e==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",k=`linear-gradient(to right, ${M} 0%, ${M} ${w}%, var(--color-gray-200) ${w}%, var(--color-gray-200) 100%)`;return h.jsx("input",{ref:s,type:"range",className:H(v1({variant:e,animated:t}),r),style:{background:k,...a},...n})});os.displayName="RangeInput";const g1=T("box-border flex cursor-pointer transition-all duration-200",{variants:{type:{collapsed:"flex-col items-center justify-center w-[64px] py-[6px] px-[4px] gap-[4px] rounded-[4px]",expanded:"flex-row items-center w-full h-[32px] px-[4px] py-[6px] gap-[8px] rounded-[4px]"},variant:{default:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]",active:"text-[var(--color-blue-800)] bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]"}],defaultVariants:{type:"expanded",variant:"default"}}),b1=T("relative shrink-0 flex items-center justify-center",{variants:{type:{collapsed:"size-[16px]",expanded:"size-[16px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"text-[var(--color-blue-1000)] size-[24px]"}},defaultVariants:{type:"expanded",variant:"default"}}),x1=T("font-normal whitespace-nowrap shrink-0",{variants:{type:{collapsed:"text-[8px] leading-[10px] text-center min-w-full",expanded:"text-[14px] leading-[20px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"hidden"}},defaultVariants:{type:"expanded",variant:"default"}}),is=I.forwardRef(({className:r,icon:e,label:t,isCollapsed:a=!1,isActive:n=!1,variant:s="default",onClick:o,children:l,...u},d)=>{const f=a?"collapsed":"expanded",g=n?"active":s,y=w=>{o&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),o())};return h.jsxs("div",{ref:d,className:H(g1({type:f,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:y,...u,children:[e&&h.jsx("div",{className:H(b1({type:f,variant:g})),children:e}),(s!=="brand"||!a)&&h.jsx("span",{className:H(x1({type:f,variant:g})),children:t})]})});is.displayName="SidebarItem";const y1=T("inline-flex items-center justify-center rounded-[4px] whitespace-nowrap transition-colors duration-200 box-border",{variants:{variant:{default:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",collaborator:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",indicator:"bg-[var(--color-gray-100)] px-[2px] h-[12px] gap-[4px] text-[var(--color-gray-600)]",error:"bg-[var(--color-red-200)] px-[2px] h-[12px] gap-[4px] text-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),w1=T("w-4 h-4 rounded-full object-cover shrink-0"),La=T("flex items-center justify-center shrink-0"),$t=I.forwardRef(({className:r,variant:e="default",startIcon:t,endIcon:a,avatarSrc:n,children:s,...o},l)=>h.jsxs("div",{ref:l,className:H(y1({variant:e}),r),...o,children:[n&&h.jsx("img",{src:n,alt:"avatar",className:w1()}),t&&h.jsx("span",{className:La(),children:t}),h.jsx(ct,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:s}),a&&h.jsx("span",{className:La(),children:a})]}));$t.displayName="Tag";const S1=T("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),k1=T("inline-flex items-center justify-center whitespace-nowrap px-2 py-2 text-[10px] leading-4 font-normal ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-transparent data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:shadow-none border-b border-[var(--color-gray-200)] data-[state=active]:border-[var(--color-blue-1000)] text-[var(--color-gray-600)] gap-2 hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-800)] cursor-pointer group relative",{variants:{variant:{default:""}},defaultVariants:{variant:"default"}}),C1=T("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),M1=T("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),T1=T("flex items-center gap-[2px]"),ja=T("group-data-[state=active]:text-[var(--color-blue-1000)]"),z1=Bt.Root,ls=z.forwardRef(({className:r,...e},t)=>h.jsx(Bt.List,{ref:t,className:H(S1(),r),...e}));ls.displayName=Bt.List.displayName;const cs=z.forwardRef(({className:r,children:e,errorCount:t,configurationCount:a,...n},s)=>{const[o,l]=z.useState(!1),u=z.useRef(null);z.useEffect(()=>{const f=u.current;if(!f)return;const g=new MutationObserver(()=>{l(f.getAttribute("data-state")==="active")});return g.observe(f,{attributes:!0,attributeFilter:["data-state"]}),l(f.getAttribute("data-state")==="active"),()=>g.disconnect()},[]);const d=z.useCallback(f=>{u.current=f,typeof s=="function"?s(f):s&&(s.current=f)},[s]);return h.jsxs(Bt.Trigger,{ref:d,className:H(k1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&h.jsxs("div",{className:T1(),children:[a!==void 0&&h.jsx($t,{variant:"indicator",startIcon:h.jsx(p.Settings,{size:10,className:"text-[#15B1CD]"}),className:ja(),children:a}),t!==void 0&&h.jsx($t,{variant:"indicator",startIcon:h.jsx(p.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:ja(),children:t})]}),h.jsx(Se.motion.div,{className:M1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});cs.displayName=Bt.Trigger.displayName;const us=z.forwardRef(({className:r,...e},t)=>h.jsx(Bt.Content,{ref:t,className:H(C1(),r),...e,asChild:!0,children:h.jsx(Se.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},children:e.children})}));us.displayName=Bt.Content.displayName;const N1=T("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 min-h-[80px]",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{status:"default",size:"medium",resize:"vertical"}}),A1=T("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ds=I.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>h.jsx("div",{className:A1({size:t}),children:h.jsx("textarea",{ref:o,className:H(N1({status:e,size:t,resize:a}),r),disabled:n,...s})}));ds.displayName="TextArea";const D1=T("inline-flex items-center gap-1 font-sans whitespace-nowrap",{variants:{size:{small:"text-[0.625rem] leading-[1rem]",medium:"text-[0.75rem] leading-[1rem]",large:"text-[0.875rem] leading-[1.25rem]"},variant:{default:"text-[var(--color-gray-600)]",primary:"text-[var(--color-gray-800)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{size:"medium",variant:"default"}}),R1=T("flex items-center justify-center shrink-0",{variants:{size:{small:"[&>svg]:w-[10px] [&>svg]:h-[10px]",medium:"[&>svg]:w-[12px] [&>svg]:h-[12px]",large:"[&>svg]:w-[14px] [&>svg]:h-[14px]"}},defaultVariants:{size:"medium"}}),E1=(r,e)=>{const t=e.getTime()-r.getTime(),a=Math.floor(t/1e3),n=Math.floor(a/60),s=Math.floor(n/60),o=Math.floor(s/24),l=Math.floor(o/7),u=Math.floor(o/30),d=Math.floor(o/365),f=t<0,g=Math.abs(a),y=Math.abs(n),w=Math.abs(s),M=Math.abs(o),k=Math.abs(l),N=Math.abs(u),A=Math.abs(d),E=(R,F)=>{const q=R===1?"":"s";return f?`in ${R} ${F}${q}`:`${R} ${F}${q} ago`};return g<60?"just now":y<60?E(y,"minute"):w<24?E(w,"hour"):M===1?f?"tomorrow":"yesterday":M<7?E(M,"day"):k<4?E(k,"week"):N<12?E(N,"month"):E(A,"year")},B1=(r,e,t)=>{switch(e){case"relative":return E1(r,new Date);case"short":return r.toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric"});case"long":return r.toLocaleDateString(t,{month:"long",day:"numeric",year:"numeric"});case"time":return r.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return r.toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return r.toLocaleDateString(t)}},L1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),ms=I.forwardRef(({className:r,date:e,format:t="relative",size:a="medium",variant:n="default",showIcon:s=!1,locale:o="en-US",...l},u)=>{const d=I.useMemo(()=>L1(e),[e]),f=I.useMemo(()=>B1(d,t,o),[d,t,o]),g=I.useMemo(()=>d.toISOString(),[d]),y=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",w=a==="small"?10:a==="large"?14:12;return h.jsxs("time",{ref:u,dateTime:g,className:H(D1({size:a,variant:n}),r),...l,children:[s&&h.jsx("span",{className:R1({size:a}),children:h.jsx(p.ClockHistory,{size:w,color:y})}),f]})});ms.displayName="Timestamp";const j1=T("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[12px] shadow-xl border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),I1=T("flex-shrink-0",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),P1=T("flex items-center gap-1 flex-1"),O1=T("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),F1=T("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),q1=T("flex items-center gap-2 shrink-0"),H1=T("w-[1px] self-stretch flex-shrink-0 bg-current",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),V1=T("p-0 bg-transparent border-none text-[var(--color-blue-1000)] hover:opacity-70 transition-opacity flex items-center justify-center w-4 h-4 shrink-0 cursor-pointer"),_1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},G1={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)"},Dt=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=_1[e],d=G1[e],f=()=>{l&&l(),r&&it.toast.dismiss(r)},g=w=>M=>{w(M),r&&it.toast.dismiss(r)},y=()=>n||(e==="success"?h.jsx(p.CheckCircle,{size:16,color:d}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:d}):e==="prompt"?h.jsx(p.Sparks,{size:16,color:d}):h.jsx(u,{size:16}));return h.jsxs("div",{className:H(j1({variant:e})),role:"alert",children:[h.jsx("div",{className:I1({variant:e}),children:y()}),h.jsxs("div",{className:P1(),children:[h.jsx("span",{className:O1(),children:t}),a&&h.jsx("span",{className:F1(),children:a})]}),h.jsx("div",{className:H1({variant:e})}),h.jsxs("div",{className:q1(),children:[o&&h.jsx(Ut,{onClick:g(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||h.jsx(p.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),s&&h.jsx(Ut,{onClick:g(s.onClick),variant:"primary",size:"small",startIcon:s.icon||h.jsx(p.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),h.jsx("button",{onClick:f,className:V1(),"aria-label":"Close",children:h.jsx(p.X,{size:16})})]})]})},U1=({position:r="bottom-right",offset:e=24,gap:t=8,width:a,...n})=>h.jsx(it.Toaster,{position:r,offset:e,gap:t,toastOptions:{unstyled:!0,classNames:{toast:H("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),$1={success:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>it.toast.custom(n=>h.jsx(Dt,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>it.toast.custom(e=>h.jsx(Dt,{id:e,...r}))},W1=T("flex items-center gap-3"),X1=T("text-[var(--color-gray-1000)] font-medium select-none"),Y1=T("relative inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)] focus-visible:outline-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"}},defaultVariants:{enabled:!1}}),Z1=T("pointer-events-none inline-block h-[20px] w-[20px] transform rounded-full bg-[var(--color-white)] shadow-lg ring-0 transition duration-200 ease-in-out",{variants:{enabled:{true:"translate-x-[20px]",false:"translate-x-0"}},defaultVariants:{enabled:!1}}),hs=I.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>h.jsxs("div",{className:H(W1(),a),children:[t&&h.jsx(ct,{variant:"small",className:X1(),children:t}),h.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:Y1({enabled:r}),...s,children:h.jsx("span",{className:Z1({enabled:r})})})]}));hs.displayName="Toggle";const K1=T("flex items-center justify-between w-full gap-2 min-h-[20px]"),J1=T("text-xs font-normal font-sans leading-4 whitespace-nowrap",{variants:{status:{success:"text-[var(--color-gray-800)]",warning:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]",info:"text-[var(--color-gray-800)]",neutral:"text-[var(--color-gray-800)]",loading:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"neutral"}}),Q1={success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",info:"var(--color-blue-800)",neutral:"var(--color-gray-600)",loading:"var(--color-blue-800)"},fs=I.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=Q1[e],l=()=>e==="loading"?h.jsx(p.Loader,{size:16,color:o,className:"animate-spin"}):e==="success"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="warning"?h.jsx(p.TriangleAlert,{size:16,color:o}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:o}):e==="info"?h.jsx(p.Info,{size:16,color:o}):null;return h.jsxs("div",{ref:n,className:H(K1(),r),...a,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ur,{variant:s,size:"small"}),h.jsx("span",{className:J1({status:e}),children:t})]}),h.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});fs.displayName="StatusMessage";const ec=T("flex items-center justify-between w-full gap-2 min-h-[20px]"),tc=T("flex items-center gap-2"),rc=T("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),Ia=T("w-4 h-4 flex items-center justify-center shrink-0"),ac={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},nc={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},ps=I.forwardRef(({className:r,status:e="running",message:t,...a},n)=>{const s=ac[e],o=nc[e],l=()=>e==="completed"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="stopped"?h.jsx(p.Hand,{size:16,color:o}):h.jsx(p.Pause,{size:16,color:o});return h.jsxs("div",{ref:n,className:H(ec(),r),...a,children:[h.jsxs("div",{className:tc(),children:[h.jsx("div",{className:Ia(),children:h.jsx(p.Hexagon,{size:16,color:s})}),h.jsx("span",{className:rc({status:e}),children:t})]}),h.jsx("div",{className:Ia(),children:l()})]})});ps.displayName="AutopilotAction";const sc=T("z-50 rounded-[4px] px-3 py-3 shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)] max-w-[var(--radix-tooltip-content-available-width)] origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{variant:{default:"bg-[var(--color-blue-1000)] text-[var(--color-gray-50)]",light:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"}},defaultVariants:{variant:"default"}}),oc=T("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),Ar=({delayDuration:r=0,...e})=>h.jsx(Rt.Provider,{delayDuration:r,...e}),Dr=Rt.Root,Rr=Rt.Trigger,E0=z.forwardRef(({className:r,sideOffset:e=4,children:t,variant:a,...n},s)=>h.jsx(Rt.Portal,{children:h.jsx(Rt.Content,{ref:s,sideOffset:e,asChild:!0,className:H(sc({variant:a}),r),...n,children:h.jsxs(Se.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[h.jsx(ct,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:t}),h.jsx(Rt.Arrow,{className:oc({variant:a})})]})})}));E0.displayName=Rt.Content.displayName;const ic=T("relative flex flex-col w-full"),lc=T("box-border flex flex-col items-start p-4 rounded-[16px] w-full transition-all duration-200 min-w-[300px] max-w-[800px] relative z-10",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""},variant:{default:"[background-image:linear-gradient(var(--color-white),var(--color-white)),linear-gradient(180deg,#B9BCCB_0%,#E5E7F0_100%)] [background-origin:padding-box,border-box] [background-clip:padding-box,border-box] border border-transparent shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)]",transparent:"bg-transparent border-none shadow-none"},isMagicActive:{true:"[background-image:linear-gradient(var(--color-white),var(--color-white))] border-transparent shadow-[0_0_40px_-10px_rgba(106,234,253,0.5),0_0_40px_-10px_rgba(255,111,0,0.4)]",false:""}},defaultVariants:{state:"default",variant:"default",isMagicActive:!1}}),cc=T("w-full transition-all duration-200",{variants:{state:{default:"border-[var(--color-gray-600)]",active:"border-[var(--color-blue-800)]",withFiles:"border-[var(--color-gray-600)]",dragOver:"border-[var(--color-blue-800)] border-dashed"},variant:{default:"bg-[var(--color-white)]",transparent:"bg-transparent"}},defaultVariants:{state:"default",variant:"default"}}),uc=T("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),dc=T("flex flex-col gap-5 w-full"),mc=T("flex flex-wrap gap-[8px] items-start w-full"),hc=T("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),fc=T("w-full bg-transparent border-none outline-none resize-none font-normal text-[16px] leading-[24px] min-h-[24px] placeholder:text-[var(--color-gray-600)] text-[var(--color-gray-1000)]",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""}},defaultVariants:{state:"default"}}),pc=T("flex items-center justify-between w-full"),vc=T("flex gap-[8px] items-center"),gc=T("flex items-center gap-2.5"),rr=T("flex items-center justify-center shrink-0 transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)]",{variants:{variant:{default:"size-[16px] text-[var(--color-gray-600)] hover:text-[var(--color-gray-800)] active:text-[var(--color-gray-1000)] cursor-pointer",add:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] border-solid rounded-[100px] p-[8px] size-auto text-[var(--color-gray-600)] hover:bg-[var(--color-gray-200)] active:bg-[var(--color-gray-200)] cursor-pointer"}},defaultVariants:{variant:"default"}}),bc=T("flex items-center justify-center shrink-0 size-[32px] rounded-[100px] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{disabled:{true:"bg-[var(--color-gray-200)] text-[var(--color-white)] cursor-not-allowed",false:"bg-[var(--color-blue-800)] text-[var(--color-white)] hover:opacity-80 active:bg-[var(--color-blue-1000)] cursor-pointer focus-visible:outline-[var(--color-blue-800)]"}},defaultVariants:{disabled:!1}}),xc=T("animate-spin"),yc=T("flex flex-col gap-[12px] items-center justify-center px-[16px] py-[40px] min-h-[120px] w-full absolute inset-0 z-50 bg-[var(--color-white)] h-full rounded-xl min-h-0 border border-solid border-[var(--color-blue-1000)]"),wc=T("flex items-center justify-center"),Sc=T("flex items-center gap-1 px-2 py-1 rounded-[6px] text-[var(--color-gray-600)] border border-[var(--color-gray-200)] transition-colors duration-200 cursor-pointer hover:bg-[var(--color-gray-50)] hover:border-[var(--color-gray-300)] hover:text-[var(--color-gray-800)] disabled:cursor-not-allowed disabled:opacity-50"),kc=T("min-w-[120px]"),Cc=T("py-1.5 px-2"),Mc=T("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),Pa=T("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),vs=I.forwardRef(({placeholder:r="Type message",value:e,files:t=[],disabled:a=!1,maxFiles:n=10,maxFileSize:s=1024*1024*1024,className:o,variant:l="default",actions:u=[],models:d=[],selectedModel:f,isLoading:g=!1,isUploading:y=!1,onChange:w,onSend:M,onFileAdd:k,onFileRemove:N,onModelChange:A,isUsingMagic:E=!1,contextUsage:R,contextMax:F=100},q)=>{var Ge,Tt;const[X,_]=I.useState(""),[P,Y]=I.useState(!1),[be,ue]=I.useState(!1),te=I.useRef(null),ye=I.useRef(null),se=e!==void 0?e:X,le=se.trim().length>0,oe=t.length>0,G=P?"dragOver":oe?"withFiles":be?"active":"default",Ae=j=>{w?w(j):_(j)},de=j=>{Ae(j.target.value),ze()},ze=I.useCallback(()=>{const j=te.current;j&&(j.style.height="auto",j.style.height=`${Math.min(j.scrollHeight,200)}px`)},[]);I.useEffect(()=>{ze()},[se,ze]);const he=I.useCallback(()=>{a||y||!le&&!oe||M&&(M(se,t),Ae(""),te.current&&(te.current.style.height="auto"))},[a,y,le,oe,M,se,t]),me=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),he())},pe=j=>{const Le=Array.from(j.target.files||[]);Le.length>0&&k&&k(Le),ye.current&&(ye.current.value="")},Ne=()=>{var j;(j=ye.current)==null||j.click()},Oe=I.useRef(0),ne=j=>{j.preventDefault(),j.stopPropagation(),Oe.current+=1,Oe.current===1&&Y(!0)},Be=j=>{j.preventDefault(),j.stopPropagation(),Oe.current-=1,Oe.current===0&&Y(!1)},Fe=j=>{j.preventDefault(),j.stopPropagation()},qe=j=>{j.preventDefault(),j.stopPropagation(),Oe.current=0,Y(!1);const Le=Array.from(j.dataTransfer.files);Le.length>0&&k&&k(Le)},Ze=j=>{N&&N(j)};return h.jsxs("div",{ref:q,className:H(ic(),o),children:[h.jsx(Se.AnimatePresence,{children:E&&h.jsxs(Se.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:Mc(),children:[h.jsx("div",{className:Pa({layer:"base"}),children:h.jsx(Se.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})}),h.jsx("div",{className:Pa({layer:"blur"}),children:h.jsx(Se.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})})]})}),h.jsxs("div",{className:lc({state:G,variant:l,isMagicActive:E}),onDragEnter:ne,onDragLeave:Be,onDragOver:Fe,onDrop:qe,children:[h.jsx("div",{className:cc({state:G,variant:l}),children:h.jsx("div",{className:uc(),children:h.jsxs("div",{className:dc(),children:[oe&&h.jsx("div",{className:mc(),children:t.map(j=>h.jsx(Qn,{filename:j.filename,status:j.status,progress:j.progress,onDelete:()=>Ze(j.id)},j.id))}),h.jsx("div",{className:hc(),children:h.jsx("textarea",{ref:te,className:fc({state:G}),placeholder:r,value:se,disabled:a||g,onChange:de,onKeyDown:me,onFocus:()=>ue(!0),onBlur:()=>ue(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),h.jsxs("div",{className:pc(),children:[h.jsxs("div",{className:vc(),children:[h.jsx("button",{type:"button",onClick:Ne,className:rr({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:h.jsx(p.Plus,{size:16})}),u.map(j=>h.jsx(I.Fragment,{children:j.tooltip?h.jsx(Ar,{children:h.jsxs(Dr,{children:[h.jsx(Rr,{asChild:!0,children:h.jsx("button",{type:"button",onClick:j.onClick,className:rr(),disabled:a||j.disabled,"aria-label":j.label,tabIndex:0,children:j.icon})}),h.jsx(E0,{variant:"light",children:j.tooltip})]})}):h.jsx("button",{type:"button",onClick:j.onClick,className:rr(),disabled:a||j.disabled,"aria-label":j.label,tabIndex:0,children:j.icon})},`--action-${j.id}`))]}),h.jsxs("div",{className:gc(),children:[d.length>0&&h.jsxs(Yr,{children:[h.jsx(Zr,{children:h.jsxs("button",{type:"button",className:Sc(),disabled:a||g,"aria-label":"Select AI model",children:[h.jsx(ct,{variant:"tiny",color:"inherit",as:"span",className:a||g?"opacity-50":void 0,children:((Ge=d.find(j=>j.id===f))==null?void 0:Ge.name)||((Tt=d[0])==null?void 0:Tt.name)||"Select model"}),h.jsx(p.ChevronDown,{size:10,color:"currentColor"})]})}),h.jsx(Kr,{align:"end",className:kc(),children:d.map(j=>h.jsx(Jr,{active:j.id===f,onClick:()=>A==null?void 0:A(j.id),className:Cc(),children:h.jsx(ct,{variant:"tiny",color:"inherit",as:"span",children:j.name})},j.id))})]}),R!==void 0&&h.jsx(Ar,{children:h.jsxs(Dr,{children:[h.jsx(Rr,{asChild:!0,children:h.jsx("div",{className:"flex items-center justify-center h-[32px]",children:h.jsx(Xr,{value:R,max:F,size:"xs",showLabel:!1,variant:R>=90?"error":R>=75?"warning":"default",strokeWidth:2,"aria-label":`Context usage: ${R} of ${F}`})})}),h.jsxs(E0,{variant:"light",children:["Context: ",R,"/",F]})]})}),h.jsx("button",{type:"button",onClick:he,className:bc({disabled:a||g||y||!le&&!oe}),disabled:a||g||y||!le&&!oe,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?h.jsx(p.Loader,{size:16,color:"currentColor",className:xc()}):h.jsx(p.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),h.jsx(Se.AnimatePresence,{children:P&&h.jsxs(Se.motion.div,{initial:{opacity:0,filter:"blur(2px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(2px)"},transition:{duration:.2,ease:"easeInOut"},className:yc(),children:[h.jsx("div",{className:wc(),children:h.jsx(p.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),h.jsx(ct,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),h.jsxs(ct,{variant:"small",color:"secondary",className:"text-center",children:["Up to ",n," files or a maximum size of"," ",Math.round(s/(1024*1024*1024)),"GB"]})]},"overlay")}),h.jsx("input",{ref:ye,type:"file",multiple:!0,onChange:pe,className:"hidden","aria-hidden":"true"})]})]})});vs.displayName="ChatInput";const Tc=T("w-full h-[48px] box-border flex items-center justify-between px-[16px] py-[12px] bg-[var(--color-white)] border-b border-[var(--color-gray-200)]"),zc=T("flex items-center gap-[12px] h-[24px]"),Nc=T("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Oa=T("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] rounded-sm"),Ac=T("flex items-center gap-[8px]"),Dc=T("flex items-center"),gs=I.forwardRef(({className:r,breadcrumbs:e,tags:t=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:o=0,...l},u)=>h.jsxs("div",{ref:u,className:H(Tc(),r),...l,children:[h.jsx(Kn,{items:e,size:"medium"}),h.jsx("div",{className:zc(),children:h.jsxs("div",{className:Nc(),children:[(t.length>0||o>0)&&h.jsxs("div",{className:Ac(),children:[t.map(d=>h.jsx($t,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:d.label},d.id)),o>0&&h.jsxs($t,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",o]})]}),a.length>0&&h.jsx("div",{className:Dc(),children:h.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((d,f)=>h.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-f,marginRight:f<a.length-1?-4:0},children:h.jsx(Gr,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),h.jsx("button",{type:"button",onClick:n,className:Oa(),"aria-label":"Add tag",children:h.jsx(p.TagPlus,{size:16})}),h.jsx("button",{type:"button",onClick:s,className:Oa(),"aria-label":"Add collaborator",children:h.jsx(p.UserPlus,{size:16})})]})})]}));gs.displayName="ConversationHeader";function wt(r,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(r==null||r(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function Fa(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function bs(...r){return e=>{let t=!1;const a=r.map(n=>{const s=Fa(n,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<a.length;n++){const s=a[n];typeof s=="function"?s():Fa(r[n],null)}}}}function Lt(...r){return z.useCallback(bs(...r),r)}function Rc(r,e){const t=z.createContext(e),a=s=>{const{children:o,...l}=s,u=z.useMemo(()=>l,Object.values(l));return h.jsx(t.Provider,{value:u,children:o})};a.displayName=r+"Provider";function n(s){const o=z.useContext(t);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${r}\``)}return[a,n]}function Ec(r,e=[]){let t=[];function a(s,o){const l=z.createContext(o),u=t.length;t=[...t,o];const d=g=>{var A;const{scope:y,children:w,...M}=g,k=((A=y==null?void 0:y[r])==null?void 0:A[u])||l,N=z.useMemo(()=>M,Object.values(M));return h.jsx(k.Provider,{value:N,children:w})};d.displayName=s+"Provider";function f(g,y){var k;const w=((k=y==null?void 0:y[r])==null?void 0:k[u])||l,M=z.useContext(w);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(o=>z.createContext(o));return function(l){const u=(l==null?void 0:l[r])||s;return z.useMemo(()=>({[`__scope${r}`]:{...l,[r]:u}}),[l,u])}};return n.scopeName=r,[a,Bc(n,...e)]}function Bc(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const a=r.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const o=a.reduce((l,{useScope:u,scopeName:d})=>{const g=u(s)[`__scope${d}`];return{...l,...g}},{});return z.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var t0=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},Lc=z[" useId ".trim().toString()]||(()=>{}),jc=0;function ar(r){const[e,t]=z.useState(Lc());return t0(()=>{t(a=>a??String(jc++))},[r]),r||(e?`radix-${e}`:"")}var Ic=z[" useInsertionEffect ".trim().toString()]||t0;function Pc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=Oc({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const f=z.useRef(r!==void 0);z.useEffect(()=>{const g=f.current;g!==l&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,a])}const d=z.useCallback(f=>{var g;if(l){const y=Fc(f)?f(r):f;y!==r&&((g=o.current)==null||g.call(o,y))}else s(f)},[l,r,s,o]);return[u,d]}function Oc({defaultProp:r,onChange:e}){const[t,a]=z.useState(r),n=z.useRef(t),s=z.useRef(e);return Ic(()=>{s.current=e},[e]),z.useEffect(()=>{var o;n.current!==t&&((o=s.current)==null||o.call(s,t),n.current=t)},[t,n]),[t,a,s]}function Fc(r){return typeof r=="function"}function xs(r){const e=qc(r),t=z.forwardRef((a,n)=>{const{children:s,...o}=a,l=z.Children.toArray(s),u=l.find(Vc);if(u){const d=u.props.children,f=l.map(g=>g===u?z.Children.count(d)>1?z.Children.only(null):z.isValidElement(d)?d.props.children:null:g);return h.jsx(e,{...o,ref:n,children:z.isValidElement(d)?z.cloneElement(d,void 0,f):null})}return h.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function qc(r){const e=z.forwardRef((t,a)=>{const{children:n,...s}=t;if(z.isValidElement(n)){const o=Gc(n),l=_c(s,n.props);return n.type!==z.Fragment&&(l.ref=a?bs(a,o):o),z.cloneElement(n,l)}return z.Children.count(n)>1?z.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Hc=Symbol("radix.slottable");function Vc(r){return z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Hc}function _c(r,e){const t={...e};for(const a in e){const n=r[a],s=e[a];/^on[A-Z]/.test(a)?n&&s?t[a]=(...l)=>{const u=s(...l);return n(...l),u}:n&&(t[a]=n):a==="style"?t[a]={...n,...s}:a==="className"&&(t[a]=[n,s].filter(Boolean).join(" "))}return{...r,...t}}function Gc(r){var a,n;let e=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(n=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var Uc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tt=Uc.reduce((r,e)=>{const t=xs(`Primitive.${e}`),a=z.forwardRef((n,s)=>{const{asChild:o,...l}=n,u=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(u,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...r,[e]:a}},{});function $c(r,e){r&&Jo.flushSync(()=>r.dispatchEvent(e))}function r0(r){const e=z.useRef(r);return z.useEffect(()=>{e.current=r}),z.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function Wc(r,e=globalThis==null?void 0:globalThis.document){const t=r0(r);z.useEffect(()=>{const a=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[t,e])}var Xc="DismissableLayer",Er="dismissableLayer.update",Yc="dismissableLayer.pointerDownOutside",Zc="dismissableLayer.focusOutside",qa,ys=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ws=z.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=z.useContext(ys),[f,g]=z.useState(null),y=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=z.useState({}),M=Lt(e,_=>g(_)),k=Array.from(d.layers),[N]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=k.indexOf(N),E=f?k.indexOf(f):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,F=E>=A,q=Qc(_=>{const P=_.target,Y=[...d.branches].some(be=>be.contains(P));!F||Y||(n==null||n(_),o==null||o(_),_.defaultPrevented||l==null||l())},y),X=eu(_=>{const P=_.target;[...d.branches].some(be=>be.contains(P))||(s==null||s(_),o==null||o(_),_.defaultPrevented||l==null||l())},y);return Wc(_=>{E===d.layers.size-1&&(a==null||a(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},y),z.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(qa=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ha(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=qa)}},[f,y,t,d]),z.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ha())},[f,d]),z.useEffect(()=>{const _=()=>w({});return document.addEventListener(Er,_),()=>document.removeEventListener(Er,_)},[]),h.jsx(tt.div,{...u,ref:M,style:{pointerEvents:R?F?"auto":"none":void 0,...r.style},onFocusCapture:wt(r.onFocusCapture,X.onFocusCapture),onBlurCapture:wt(r.onBlurCapture,X.onBlurCapture),onPointerDownCapture:wt(r.onPointerDownCapture,q.onPointerDownCapture)})});ws.displayName=Xc;var Kc="DismissableLayerBranch",Jc=z.forwardRef((r,e)=>{const t=z.useContext(ys),a=z.useRef(null),n=Lt(e,a);return z.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),h.jsx(tt.div,{...r,ref:n})});Jc.displayName=Kc;function Qc(r,e=globalThis==null?void 0:globalThis.document){const t=r0(r),a=z.useRef(!1),n=z.useRef(()=>{});return z.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){Ss(Yc,t,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=u,e.addEventListener("click",n.current,{once:!0})):u()}else e.removeEventListener("click",n.current);a.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>a.current=!0}}function eu(r,e=globalThis==null?void 0:globalThis.document){const t=r0(r),a=z.useRef(!1);return z.useEffect(()=>{const n=s=>{s.target&&!a.current&&Ss(Zc,t,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Ha(){const r=new CustomEvent(Er);document.dispatchEvent(r)}function Ss(r,e,t,{discrete:a}){const n=t.originalEvent.target,s=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(r,e,{once:!0}),a?$c(n,s):n.dispatchEvent(s)}var nr="focusScope.autoFocusOnMount",sr="focusScope.autoFocusOnUnmount",Va={bubbles:!1,cancelable:!0},tu="FocusScope",ks=z.forwardRef((r,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...o}=r,[l,u]=z.useState(null),d=r0(n),f=r0(s),g=z.useRef(null),y=Lt(e,k=>u(k)),w=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(a){let k=function(R){if(w.paused||!l)return;const F=R.target;l.contains(F)?g.current=F:xt(g.current,{select:!0})},N=function(R){if(w.paused||!l)return;const F=R.relatedTarget;F!==null&&(l.contains(F)||xt(g.current,{select:!0}))},A=function(R){if(document.activeElement===document.body)for(const q of R)q.removedNodes.length>0&&xt(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",N);const E=new MutationObserver(A);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",N),E.disconnect()}}},[a,l,w.paused]),z.useEffect(()=>{if(l){Ga.add(w);const k=document.activeElement;if(!l.contains(k)){const A=new CustomEvent(nr,Va);l.addEventListener(nr,d),l.dispatchEvent(A),A.defaultPrevented||(ru(iu(Cs(l)),{select:!0}),document.activeElement===k&&xt(l))}return()=>{l.removeEventListener(nr,d),setTimeout(()=>{const A=new CustomEvent(sr,Va);l.addEventListener(sr,f),l.dispatchEvent(A),A.defaultPrevented||xt(k??document.body,{select:!0}),l.removeEventListener(sr,f),Ga.remove(w)},0)}}},[l,d,f,w]);const M=z.useCallback(k=>{if(!t&&!a||w.paused)return;const N=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,A=document.activeElement;if(N&&A){const E=k.currentTarget,[R,F]=au(E);R&&F?!k.shiftKey&&A===F?(k.preventDefault(),t&&xt(R,{select:!0})):k.shiftKey&&A===R&&(k.preventDefault(),t&&xt(F,{select:!0})):A===E&&k.preventDefault()}},[t,a,w.paused]);return h.jsx(tt.div,{tabIndex:-1,...o,ref:y,onKeyDown:M})});ks.displayName=tu;function ru(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(xt(a,{select:e}),document.activeElement!==t)return}function au(r){const e=Cs(r),t=_a(e,r),a=_a(e.reverse(),r);return[t,a]}function Cs(r){const e=[],t=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function _a(r,e){for(const t of r)if(!nu(t,{upTo:e}))return t}function nu(r,{upTo:e}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(e!==void 0&&r===e)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function su(r){return r instanceof HTMLInputElement&&"select"in r}function xt(r,{select:e=!1}={}){if(r&&r.focus){const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&su(r)&&e&&r.select()}}var Ga=ou();function ou(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=Ua(r,e),r.unshift(e)},remove(e){var t;r=Ua(r,e),(t=r[0])==null||t.resume()}}}function Ua(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function iu(r){return r.filter(e=>e.tagName!=="A")}var lu="Portal",Ms=z.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=z.useState(!1);t0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?In.createPortal(h.jsx(tt.div,{...a,ref:e}),o):null});Ms.displayName=lu;function cu(r,e){return z.useReducer((t,a)=>e[t][a]??t,r)}var H0=r=>{const{present:e,children:t}=r,a=uu(e),n=typeof t=="function"?t({present:a.isPresent}):z.Children.only(t),s=Lt(a.ref,du(n));return typeof t=="function"||a.isPresent?z.cloneElement(n,{ref:s}):null};H0.displayName="Presence";function uu(r){const[e,t]=z.useState(),a=z.useRef(null),n=z.useRef(r),s=z.useRef("none"),o=r?"mounted":"unmounted",[l,u]=cu(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const d=f0(a.current);s.current=l==="mounted"?d:"none"},[l]),t0(()=>{const d=a.current,f=n.current;if(f!==r){const y=s.current,w=f0(d);r?u("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&y!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),t0(()=>{if(e){let d;const f=e.ownerDocument.defaultView??window,g=w=>{const k=f0(a.current).includes(CSS.escape(w.animationName));if(w.target===e&&k&&(u("ANIMATION_END"),!n.current)){const N=e.style.animationFillMode;e.style.animationFillMode="forwards",d=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=N)})}},y=w=>{w.target===e&&(s.current=f0(a.current))};return e.addEventListener("animationstart",y),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{f.clearTimeout(d),e.removeEventListener("animationstart",y),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:z.useCallback(d=>{a.current=d?getComputedStyle(d):null,t(d)},[])}}function f0(r){return(r==null?void 0:r.animationName)||"none"}function du(r){var a,n;let e=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(n=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var or=0;function mu(){z.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??$a()),document.body.insertAdjacentElement("beforeend",r[1]??$a()),or++,()=>{or===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),or--}},[])}function $a(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var Je=function(){return Je=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Je.apply(this,arguments)};function Ts(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]]);return t}function hu(r,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,s;a<n;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return r.concat(s||Array.prototype.slice.call(e))}var N0="right-scroll-bar-position",A0="width-before-scroll-bar",fu="with-scroll-bars-hidden",pu="--removed-body-scroll-bar-size";function ir(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function vu(r,e){var t=I.useState(function(){return{value:r,callback:e,facade:{get current(){return t.value},set current(a){var n=t.value;n!==a&&(t.value=a,t.callback(a,n))}}}})[0];return t.callback=e,t.facade}var gu=typeof window<"u"?z.useLayoutEffect:z.useEffect,Wa=new WeakMap;function bu(r,e){var t=vu(null,function(a){return r.forEach(function(n){return ir(n,a)})});return gu(function(){var a=Wa.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||ir(l,null)}),s.forEach(function(l){n.has(l)||ir(l,o)})}Wa.set(t,r)},[r]),t}function xu(r){return r}function yu(r,e){e===void 0&&(e=xu);var t=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:r},useMedium:function(s){var o=e(s,a);return t.push(o),function(){t=t.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(a=!0;t.length;){var o=t;t=[],o.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var o=[];if(t.length){var l=t;t=[],l.forEach(s),o=t}var u=function(){var f=o;o=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(f){o.push(f),d()},filter:function(f){return o=o.filter(f),t}}}};return n}function wu(r){r===void 0&&(r={});var e=yu(null);return e.options=Je({async:!0,ssr:!1},r),e}var zs=function(r){var e=r.sideCar,t=Ts(r,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return z.createElement(a,Je({},t))};zs.isSideCarExport=!0;function Su(r,e){return r.useMedium(e),zs}var Ns=wu(),lr=function(){},V0=z.forwardRef(function(r,e){var t=z.useRef(null),a=z.useState({onScrollCapture:lr,onWheelCapture:lr,onTouchMoveCapture:lr}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,f=r.enabled,g=r.shards,y=r.sideCar,w=r.noRelative,M=r.noIsolation,k=r.inert,N=r.allowPinchZoom,A=r.as,E=A===void 0?"div":A,R=r.gapMode,F=Ts(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=y,X=bu([t,e]),_=Je(Je({},F),n);return z.createElement(z.Fragment,null,f&&z.createElement(q,{sideCar:Ns,removeScrollBar:d,shards:g,noRelative:w,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!N,lockRef:t,gapMode:R}),o?z.cloneElement(z.Children.only(l),Je(Je({},_),{ref:X})):z.createElement(E,Je({},_,{className:u,ref:X}),l))});V0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};V0.classNames={fullWidth:A0,zeroRight:N0};var ku=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cu(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=ku();return e&&r.setAttribute("nonce",e),r}function Mu(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function Tu(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var zu=function(){var r=0,e=null;return{add:function(t){r==0&&(e=Cu())&&(Mu(e,t),Tu(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Nu=function(){var r=zu();return function(e,t){z.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},As=function(){var r=Nu(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},Au={left:0,top:0,right:0,gap:0},cr=function(r){return parseInt(r||"",10)||0},Du=function(r){var e=window.getComputedStyle(document.body),t=e[r==="padding"?"paddingLeft":"marginLeft"],a=e[r==="padding"?"paddingTop":"marginTop"],n=e[r==="padding"?"paddingRight":"marginRight"];return[cr(t),cr(a),cr(n)]},Ru=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Au;var e=Du(r),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},Eu=As(),_t="data-scroll-locked",Bu=function(r,e,t,a){var n=r.left,s=r.top,o=r.right,l=r.gap;return t===void 0&&(t="margin"),`
|
|
27
|
+
.`.concat(fu,` {
|
|
28
28
|
overflow: hidden `).concat(a,`;
|
|
29
29
|
padding-right: `).concat(l,"px ").concat(a,`;
|
|
30
30
|
}
|
|
31
|
-
body[`).concat(
|
|
31
|
+
body[`).concat(_t,`] {
|
|
32
32
|
overflow: hidden `).concat(a,`;
|
|
33
33
|
overscroll-behavior: contain;
|
|
34
34
|
`).concat([e&&"position: relative ".concat(a,";"),t==="margin"&&`
|
|
@@ -41,33 +41,33 @@
|
|
|
41
41
|
`),t==="padding"&&"padding-right: ".concat(l,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
44
|
+
.`).concat(N0,` {
|
|
45
45
|
right: `).concat(l,"px ").concat(a,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(A0,` {
|
|
49
49
|
margin-right: `).concat(l,"px ").concat(a,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
52
|
+
.`).concat(N0," .").concat(N0,` {
|
|
53
53
|
right: 0 `).concat(a,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.`).concat(
|
|
56
|
+
.`).concat(A0," .").concat(A0,` {
|
|
57
57
|
margin-right: 0 `).concat(a,`;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
body[`).concat(
|
|
61
|
-
`).concat(
|
|
60
|
+
body[`).concat(_t,`] {
|
|
61
|
+
`).concat(pu,": ").concat(l,`px;
|
|
62
62
|
}
|
|
63
|
-
`)}
|
|
63
|
+
`)},Xa=function(){var r=parseInt(document.body.getAttribute(_t)||"0",10);return isFinite(r)?r:0},Lu=function(){z.useEffect(function(){return document.body.setAttribute(_t,(Xa()+1).toString()),function(){var r=Xa()-1;r<=0?document.body.removeAttribute(_t):document.body.setAttribute(_t,r.toString())}},[])},ju=function(r){var e=r.noRelative,t=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;Lu();var s=z.useMemo(function(){return Ru(n)},[n]);return z.createElement(Eu,{styles:Bu(s,!e,n,t?"":"!important")})},Br=!1;if(typeof window<"u")try{var p0=Object.defineProperty({},"passive",{get:function(){return Br=!0,!0}});window.addEventListener("test",p0,p0),window.removeEventListener("test",p0,p0)}catch{Br=!1}var Pt=Br?{passive:!1}:!1,Iu=function(r){return r.tagName==="TEXTAREA"},Ds=function(r,e){if(!(r instanceof Element))return!1;var t=window.getComputedStyle(r);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!Iu(r)&&t[e]==="visible")},Pu=function(r){return Ds(r,"overflowY")},Ou=function(r){return Ds(r,"overflowX")},Ya=function(r,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=Rs(r,a);if(n){var s=Es(r,a),o=s[1],l=s[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},Fu=function(r){var e=r.scrollTop,t=r.scrollHeight,a=r.clientHeight;return[e,t,a]},qu=function(r){var e=r.scrollLeft,t=r.scrollWidth,a=r.clientWidth;return[e,t,a]},Rs=function(r,e){return r==="v"?Pu(e):Ou(e)},Es=function(r,e){return r==="v"?Fu(e):qu(e)},Hu=function(r,e){return r==="h"&&e==="rtl"?-1:1},Vu=function(r,e,t,a,n){var s=Hu(r,window.getComputedStyle(e).direction),o=s*a,l=t.target,u=e.contains(l),d=!1,f=o>0,g=0,y=0;do{if(!l)break;var w=Es(r,l),M=w[0],k=w[1],N=w[2],A=k-N-s*M;(M||A)&&Rs(r,l)&&(g+=A,y+=M);var E=l.parentNode;l=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(f&&Math.abs(g)<1||!f&&Math.abs(y)<1)&&(d=!0),d},v0=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Za=function(r){return[r.deltaX,r.deltaY]},Ka=function(r){return r&&"current"in r?r.current:r},_u=function(r,e){return r[0]===e[0]&&r[1]===e[1]},Gu=function(r){return`
|
|
64
64
|
.block-interactivity-`.concat(r,` {pointer-events: none;}
|
|
65
65
|
.allow-interactivity-`).concat(r,` {pointer-events: all;}
|
|
66
|
-
`)},
|
|
66
|
+
`)},Uu=0,Ot=[];function $u(r){var e=z.useRef([]),t=z.useRef([0,0]),a=z.useRef(),n=z.useState(Uu++)[0],s=z.useState(As)[0],o=z.useRef(r);z.useEffect(function(){o.current=r},[r]),z.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(n));var k=hu([r.lockRef.current],(r.shards||[]).map(Ka),!0).filter(Boolean);return k.forEach(function(N){return N.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),k.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(n))})}}},[r.inert,r.lockRef.current,r.shards]);var l=z.useCallback(function(k,N){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!o.current.allowPinchZoom;var A=v0(k),E=t.current,R="deltaX"in k?k.deltaX:E[0]-A[0],F="deltaY"in k?k.deltaY:E[1]-A[1],q,X=k.target,_=Math.abs(R)>Math.abs(F)?"h":"v";if("touches"in k&&_==="h"&&X.type==="range")return!1;var P=Ya(_,X);if(!P)return!0;if(P?q=_:(q=_==="v"?"h":"v",P=Ya(_,X)),!P)return!1;if(!a.current&&"changedTouches"in k&&(R||F)&&(a.current=q),!q)return!0;var Y=a.current||q;return Vu(Y,N,k,Y==="h"?R:F)},[]),u=z.useCallback(function(k){var N=k;if(!(!Ot.length||Ot[Ot.length-1]!==s)){var A="deltaY"in N?Za(N):v0(N),E=e.current.filter(function(q){return q.name===N.type&&(q.target===N.target||N.target===q.shadowParent)&&_u(q.delta,A)})[0];if(E&&E.should){N.cancelable&&N.preventDefault();return}if(!E){var R=(o.current.shards||[]).map(Ka).filter(Boolean).filter(function(q){return q.contains(N.target)}),F=R.length>0?l(N,R[0]):!o.current.noIsolation;F&&N.cancelable&&N.preventDefault()}}},[]),d=z.useCallback(function(k,N,A,E){var R={name:k,delta:N,target:A,should:E,shadowParent:Wu(A)};e.current.push(R),setTimeout(function(){e.current=e.current.filter(function(F){return F!==R})},1)},[]),f=z.useCallback(function(k){t.current=v0(k),a.current=void 0},[]),g=z.useCallback(function(k){d(k.type,Za(k),k.target,l(k,r.lockRef.current))},[]),y=z.useCallback(function(k){d(k.type,v0(k),k.target,l(k,r.lockRef.current))},[]);z.useEffect(function(){return Ot.push(s),r.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",u,Pt),document.addEventListener("touchmove",u,Pt),document.addEventListener("touchstart",f,Pt),function(){Ot=Ot.filter(function(k){return k!==s}),document.removeEventListener("wheel",u,Pt),document.removeEventListener("touchmove",u,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var w=r.removeScrollBar,M=r.inert;return z.createElement(z.Fragment,null,M?z.createElement(s,{styles:Gu(n)}):null,w?z.createElement(ju,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function Wu(r){for(var e=null;r!==null;)r instanceof ShadowRoot&&(e=r.host,r=r.host),r=r.parentNode;return e}const Xu=Su(Ns,$u);var Bs=z.forwardRef(function(r,e){return z.createElement(V0,Je({},r,{ref:e,sideCar:Xu}))});Bs.classNames=V0.classNames;var Yu=function(r){if(typeof document>"u")return null;var e=Array.isArray(r)?r[0]:r;return e.ownerDocument.body},Ft=new WeakMap,g0=new WeakMap,b0={},ur=0,Ls=function(r){return r&&(r.host||Ls(r.parentNode))},Zu=function(r,e){return e.map(function(t){if(r.contains(t))return t;var a=Ls(t);return a&&r.contains(a)?a:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},Ku=function(r,e,t,a){var n=Zu(e,Array.isArray(r)?r:[r]);b0[t]||(b0[t]=new WeakMap);var s=b0[t],o=[],l=new Set,u=new Set(n),d=function(g){!g||l.has(g)||(l.add(g),d(g.parentNode))};n.forEach(d);var f=function(g){!g||u.has(g)||Array.prototype.forEach.call(g.children,function(y){if(l.has(y))f(y);else try{var w=y.getAttribute(a),M=w!==null&&w!=="false",k=(Ft.get(y)||0)+1,N=(s.get(y)||0)+1;Ft.set(y,k),s.set(y,N),o.push(y),k===1&&M&&g0.set(y,!0),N===1&&y.setAttribute(t,"true"),M||y.setAttribute(a,"true")}catch(A){console.error("aria-hidden: cannot operate on ",y,A)}})};return f(e),l.clear(),ur++,function(){o.forEach(function(g){var y=Ft.get(g)-1,w=s.get(g)-1;Ft.set(g,y),s.set(g,w),y||(g0.has(g)||g.removeAttribute(a),g0.delete(g)),w||g.removeAttribute(t)}),ur--,ur||(Ft=new WeakMap,Ft=new WeakMap,g0=new WeakMap,b0={})}},Ju=function(r,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(r)?r:[r]),n=Yu(r);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Ku(a,n,t,"aria-hidden")):function(){return null}},_0="Dialog",[js]=Ec(_0),[Qu,Ye]=js(_0),Is=r=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:n,onOpenChange:s,modal:o=!0}=r,l=z.useRef(null),u=z.useRef(null),[d,f]=Pc({prop:a,defaultProp:n??!1,onChange:s,caller:_0});return h.jsx(Qu,{scope:e,triggerRef:l,contentRef:u,contentId:ar(),titleId:ar(),descriptionId:ar(),open:d,onOpenChange:f,onOpenToggle:z.useCallback(()=>f(g=>!g),[f]),modal:o,children:t})};Is.displayName=_0;var Ps="DialogTrigger",e2=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(Ps,t),s=Lt(e,n.triggerRef);return h.jsx(tt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":ta(n.open),...a,ref:s,onClick:wt(r.onClick,n.onOpenToggle)})});e2.displayName=Ps;var Qr="DialogPortal",[t2,Os]=js(Qr,{forceMount:void 0}),Fs=r=>{const{__scopeDialog:e,forceMount:t,children:a,container:n}=r,s=Ye(Qr,e);return h.jsx(t2,{scope:e,forceMount:t,children:z.Children.map(a,o=>h.jsx(H0,{present:t||s.open,children:h.jsx(Ms,{asChild:!0,container:n,children:o})}))})};Fs.displayName=Qr;var B0="DialogOverlay",qs=z.forwardRef((r,e)=>{const t=Os(B0,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=Ye(B0,r.__scopeDialog);return s.modal?h.jsx(H0,{present:a||s.open,children:h.jsx(a2,{...n,ref:e})}):null});qs.displayName=B0;var r2=xs("DialogOverlay.RemoveScroll"),a2=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(B0,t);return h.jsx(Bs,{as:r2,allowPinchZoom:!0,shards:[n.contentRef],children:h.jsx(tt.div,{"data-state":ta(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),Et="DialogContent",Hs=z.forwardRef((r,e)=>{const t=Os(Et,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=Ye(Et,r.__scopeDialog);return h.jsx(H0,{present:a||s.open,children:s.modal?h.jsx(n2,{...n,ref:e}):h.jsx(s2,{...n,ref:e})})});Hs.displayName=Et;var n2=z.forwardRef((r,e)=>{const t=Ye(Et,r.__scopeDialog),a=z.useRef(null),n=Lt(e,t.contentRef,a);return z.useEffect(()=>{const s=a.current;if(s)return Ju(s)},[]),h.jsx(Vs,{...r,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wt(r.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=t.triggerRef.current)==null||o.focus()}),onPointerDownOutside:wt(r.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:wt(r.onFocusOutside,s=>s.preventDefault())})}),s2=z.forwardRef((r,e)=>{const t=Ye(Et,r.__scopeDialog),a=z.useRef(!1),n=z.useRef(!1);return h.jsx(Vs,{...r,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=r.onCloseAutoFocus)==null||o.call(r,s),s.defaultPrevented||(a.current||(l=t.triggerRef.current)==null||l.focus(),s.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:s=>{var u,d;(u=r.onInteractOutside)==null||u.call(r,s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const o=s.target;((d=t.triggerRef.current)==null?void 0:d.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),Vs=z.forwardRef((r,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:s,...o}=r,l=Ye(Et,t),u=z.useRef(null),d=Lt(e,u);return mu(),h.jsxs(h.Fragment,{children:[h.jsx(ks,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:s,children:h.jsx(ws,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ta(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(o2,{titleId:l.titleId}),h.jsx(l2,{contentRef:u,descriptionId:l.descriptionId})]})]})}),ea="DialogTitle",_s=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(ea,t);return h.jsx(tt.h2,{id:n.titleId,...a,ref:e})});_s.displayName=ea;var Gs="DialogDescription",Us=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(Gs,t);return h.jsx(tt.p,{id:n.descriptionId,...a,ref:e})});Us.displayName=Gs;var $s="DialogClose",Ws=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye($s,t);return h.jsx(tt.button,{type:"button",...a,ref:e,onClick:wt(r.onClick,()=>n.onOpenChange(!1))})});Ws.displayName=$s;function ta(r){return r?"open":"closed"}var Xs="DialogTitleWarning",[Md,Ys]=Rc(Xs,{contentName:Et,titleName:ea,docsSlug:"dialog"}),o2=({titleId:r})=>{const e=Ys(Xs),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
67
67
|
|
|
68
68
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
69
69
|
|
|
70
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return T.useEffect(()=>{r&&(document.getElementById(r)||console.error(t))},[t,r]),null},Yu="DialogDescriptionWarning",Zu=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$s(Yu).contentName}}.`;return T.useEffect(()=>{var s;const n=(s=r.current)==null?void 0:s.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(a))},[a,r,e]),null},Ku=Bs,Ju=Is,Qu=Ps,e2=Os,Za=qs,Ka=Vs,t2=Gs,r2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a2="VisuallyHidden",Ws=T.forwardRef((r,e)=>h.jsx(Ke.span,{...r,ref:e,style:{...r2,...r.style}}));Ws.displayName=a2;var Ja=Ws;const n2=z("fixed inset-0 z-50 bg-[rgba(0,6,38,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),s2=z("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[12px] shadow-lg p-4 flex flex-col gap-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 duration-200",{variants:{size:{sm:"w-[300px] max-w-[calc(100vw-2rem)]",md:"w-[400px] max-w-[calc(100vw-2rem)]",lg:"w-[500px] max-w-[calc(100vw-2rem)]",xl:"w-[600px] max-w-[calc(100vw-2rem)]",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]"}},defaultVariants:{size:"md"}}),o2=z("absolute right-4 top-4 flex-shrink-0 w-4 h-4 text-[var(--color-blue-1000)] cursor-pointer bg-transparent border-none p-0 hover:opacity-70 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm"),i2=z("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),l2=z("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),c2=z("flex flex-col gap-4 items-start w-full",{variants:{size:{sm:"max-h-[60vh] overflow-y-auto",md:"max-h-[70vh] overflow-y-auto",lg:"max-h-[75vh] overflow-y-auto",xl:"max-h-[80vh] overflow-y-auto",full:"flex-1 overflow-y-auto"}},defaultVariants:{size:"md"}}),u2=z("flex gap-2 items-start w-full"),Xs=({open:r,onOpenChange:e,title:t,description:a,showCloseButton:n=!0,closeIcon:s,children:o,primaryAction:l,secondaryAction:u,closeOnClickOutside:d=!0,closeOnEsc:f=!0,onClose:g,className:x,overlayClassName:w,contentClassName:M,footerClassName:k,size:A="md"})=>{const N=V.useRef(null),E=V.useRef(null),R=V.useCallback(_=>{e(_),_||g==null||g()},[e,g]),P=V.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),O=V.useCallback(async()=>{u!=null&&u.onClick&&await u.onClick()},[u]),Y=V.useCallback(_=>{f||_.preventDefault()},[f]),q=V.useCallback(_=>{d||_.preventDefault()},[d]),j=l||u;return h.jsx(Ku,{open:r,onOpenChange:R,children:h.jsxs(Ju,{children:[h.jsx(Qu,{className:G(n2(),w)}),h.jsxs(e2,{className:G(s2({size:A}),x),onEscapeKeyDown:Y,onPointerDownOutside:q,children:[t?h.jsx(Za,{className:i2(),children:t}):h.jsx(Ja,{children:h.jsx(Za,{children:"Modal dialog"})}),a?h.jsx(Ka,{className:l2(),children:a}):h.jsx(Ja,{children:h.jsx(Ka,{children:"Modal content"})}),n&&h.jsx(t2,{asChild:!0,children:h.jsx("button",{className:o2(),"aria-label":"Close modal",children:s||h.jsx(p.X,{size:16,color:"currentColor"})})}),o&&h.jsx("div",{className:G(c2({size:A}),M),children:o}),j&&h.jsxs("div",{className:G(u2(),k),children:[u&&h.jsx(_0,{ref:E,variant:u.variant||"secondary",size:"small",onClick:O,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&h.jsx(_0,{ref:N,variant:l.variant||"primary",size:"small",onClick:P,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Xs.displayName="Modal";const d2=z(["markdown-renderer","max-w-none","break-words","leading-relaxed","font-[Inter,system-ui,-apple-system,sans-serif]","[&>*]:my-2","[&>*+*]:mt-5","[&>h1+*]:mt-6","[&>h2+*]:mt-5","[&>h3+*]:mt-4","[&>h4+*]:mt-4","[&>p+*]:mt-5","[&>ul+*]:mt-5","[&>ol+*]:mt-5","[&>blockquote+*]:mt-8","[&>*+blockquote]:mt-7","[&>pre+*]:mt-6","[&>hr+*]:mt-8","[&>div+*]:mt-6","[&>*+div]:mt-6","[&>*+pre]:mt-6","[&>p]:mb-5","[&>ul]:mb-5","[&>ol]:mb-5","[&>blockquote]:mb-8","[&>pre]:mb-6","[&>h1]:mb-5","[&>h2]:mb-4","[&>h3]:mb-3","[&>h4]:mb-3","[&>hr]:mb-8","[&>div]:mb-6","[&>*:first-child]:mt-0","[&>*:last-child]:mb-0","[&_h1]:font-[Signifier,serif]","[&_h1]:text-[1.5rem]","[&_h1]:leading-[2.5rem]","[&_h1]:font-light","[&_h1]:tracking-[-0.25px]","[&_h2]:font-[Signifier,serif]","[&_h2]:text-[1.25rem]","[&_h2]:leading-[2.25rem]","[&_h2]:font-light","[&_h3]:font-[Signifier,serif]","[&_h3]:text-[1.125rem]","[&_h3]:leading-[2rem]","[&_h3]:font-light","[&_h4]:font-[Signifier,serif]","[&_h4]:text-[1rem]","[&_h4]:leading-[1.875rem]","[&_h4]:font-light","[&_h5]:font-[Signifier,serif]","[&_h5]:text-[0.9375rem]","[&_h5]:leading-[1.75rem]","[&_h5]:font-light","[&_h6]:font-[Signifier,serif]","[&_h6]:text-[0.875rem]","[&_h6]:leading-[1.625rem]","[&_h6]:font-light","[&_p]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_p]:text-[length:var(--font-size-small)]","[&_p]:leading-[1.875]","[&_strong]:font-medium","[&_code]:font-[Roboto_Mono,monospace]","[&_code]:bg-[var(--color-gray-100)]","[&_code]:px-2","[&_code]:py-1","[&_code]:rounded","[&_code]:text-[length:var(--font-size-tiny)]","[&_pre]:font-[Roboto_Mono,monospace]","[&_pre]:bg-[var(--color-gray-50)]","[&_pre]:border","[&_pre]:border-[var(--color-gray-200)]","[&_pre]:rounded-lg","[&_pre]:text-[length:var(--font-size-tiny)]","[&_pre]:leading-[1.75]","[&_pre]:p-5","[&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent","[&_pre_code]:p-0","[&_blockquote]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_blockquote]:border-l-4","[&_blockquote]:border-[var(--color-gray-300)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-4","[&_blockquote]:px-6","[&_blockquote]:mt-7","[&_blockquote]:mb-8","[&_blockquote]:rounded-r","[&_blockquote]:text-[0.875rem]","[&_blockquote]:leading-[1.75]","[&_ul]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ul]:pl-6","[&_ul]:list-disc","[&_ul]:list-outside","[&_ol]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ol]:pl-6","[&_ol]:list-decimal","[&_ol]:list-outside","[&_li]:text-[length:var(--font-size-small)]","[&_li]:leading-[1.875]","[&_li]:mb-3","[&_li]:pl-2","[&_ul_ul]:pl-4","[&_ul_ul]:list-[circle]","[&_ol_ol]:pl-4","[&_ol_ol]:list-[lower-alpha]","[&_ul_ul_ul]:list-[square]","[&_a]:no-underline","[&_a:hover]:underline","[&_a]:font-medium","[&_table]:w-full","[&_table]:border-collapse","[&_table]:border","[&_table]:border-[var(--color-gray-200)]","[&_table]:bg-white","[&_table]:shadow-sm","[&_thead]:bg-[var(--color-gray-50)]","[&_thead]:border-b-2","[&_thead]:border-[var(--color-gray-200)]","[&_tbody_tr]:border-b","[&_tbody_tr]:border-[var(--color-gray-200)]","[&_tbody_tr:last-child]:border-b-0","[&_tbody_tr:hover]:bg-[var(--color-gray-50)]","[&_td]:text-[length:var(--font-size-small)]","[&_td]:leading-[var(--line-height-small)]","[&_td]:border-r","[&_td]:border-[var(--color-gray-200)]","[&_td]:p-3","[&_td:last-child]:border-r-0","[&_td]:align-top","[&_th]:text-[length:var(--font-size-small)]","[&_th]:leading-[var(--line-height-small)]","[&_th]:font-medium","[&_th]:border-r","[&_th]:border-[var(--color-gray-200)]","[&_th]:p-3","[&_th:last-child]:border-r-0","[&_th]:text-left","[&_th]:bg-[var(--color-gray-50)]","[&_hr]:border-[var(--color-gray-200)]"],{variants:{size:{small:["[&_p]:text-[0.875rem]","[&_p]:leading-[1.75]","[&_li]:text-[0.875rem]","[&_li]:leading-[1.75]","[&_li]:mb-3","[&_code]:text-[0.8125rem]","[&_h3]:text-[1rem]","[&_h3]:leading-[1.75rem]","[&_h4]:text-[0.9375rem]","[&_h4]:leading-[1.625rem]","[&>*+*]:mt-4","[&>p]:mb-4","[&>ul]:mb-4","[&>ol]:mb-4","[&>h3]:mb-4","[&>h4]:mb-4"],medium:[],large:["[&_p]:text-[1.125rem]","[&_p]:leading-[2]","[&_li]:text-[1.125rem]","[&_li]:leading-[2]","[&_code]:text-[1rem]","[&>*+*]:mt-8","[&>p]:mb-8","[&>ul]:mb-8","[&>ol]:mb-8"]},variant:{default:["text-[var(--color-gray-1000)]","[&_h1]:text-[var(--color-gray-1000)]","[&_h2]:text-[var(--color-gray-1000)]","[&_h3]:text-[var(--color-gray-1000)]","[&_h4]:text-[var(--color-gray-1000)]","[&_p]:text-[var(--color-gray-1000)]","[&_li]:text-[var(--color-gray-1000)]","[&_strong]:text-[var(--color-gray-1000)]","[&_em]:text-[var(--color-gray-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-1000)]","[&_th]:text-[var(--color-gray-1000)]"],muted:["text-[var(--color-gray-600)]","[&_h1]:text-[var(--color-gray-600)]","[&_h2]:text-[var(--color-gray-600)]","[&_h3]:text-[var(--color-gray-600)]","[&_h4]:text-[var(--color-gray-600)]","[&_p]:text-[var(--color-gray-600)]","[&_li]:text-[var(--color-gray-600)]","[&_strong]:text-[var(--color-gray-600)]","[&_em]:text-[var(--color-gray-600)]","[&_code]:text-[var(--color-gray-600)]","[&_blockquote]:text-[var(--color-gray-600)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-600)]","[&_th]:text-[var(--color-gray-600)]"],primary:["text-[var(--color-blue-1000)]","[&_h1]:text-[var(--color-blue-1000)]","[&_h2]:text-[var(--color-blue-1000)]","[&_h3]:text-[var(--color-blue-1000)]","[&_h4]:text-[var(--color-blue-1000)]","[&_p]:text-[var(--color-blue-1000)]","[&_li]:text-[var(--color-blue-1000)]","[&_strong]:text-[var(--color-blue-1000)]","[&_em]:text-[var(--color-blue-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-blue-1000)]","[&_th]:text-[var(--color-blue-1000)]"]}},defaultVariants:{size:"medium",variant:"default"}});class Ee{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new Ee(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class Ie{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Ie(t,Ee.range(this,e))}}class L{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var l=o.lexer.input;n=o.start,s=o.end,n===l.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var u=l.slice(n,s).replace(/[^]/g,"$&̲"),d;n>15?d="…"+l.slice(n-15,n):d=l.slice(0,n);var f;s+15<l.length?f=l.slice(s,s+15)+"…":f=l.slice(s),a+=d+u+f}var g=new Error(a);return g.name="ParseError",g.__proto__=L.prototype,g.position=n,n!=null&&s!=null&&(g.length=s-n),g.rawMessage=e,g}}L.prototype.__proto__=Error.prototype;var m2=function(e,t){return e===void 0?t:e},h2=/([A-Z])/g,f2=function(e){return e.replace(h2,"-$1").toLowerCase()},p2={"&":"&",">":">","<":"<",'"':""","'":"'"},v2=/[&><"']/g;function g2(r){return String(r).replace(v2,e=>p2[e])}var Ys=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},b2=function(e){var t=Ys(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},y2=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},x2=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},re={deflt:m2,escape:g2,hyphenate:f2,getBaseElem:Ys,isCharacterBox:b2,protocolFromUrl:x2},Nt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function w2(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ea{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Nt)if(Nt.hasOwnProperty(t)){var a=Nt[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:w2(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new L("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=re.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class v0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return We[S2[this.id]]}sub(){return We[k2[this.id]]}fracNum(){return We[C2[this.id]]}fracDen(){return We[M2[this.id]]}cramp(){return We[T2[this.id]]}text(){return We[z2[this.id]]}isTight(){return this.size>=2}}var ta=0,Bt=1,V0=2,l0=3,tt=4,Oe=5,U0=6,Ae=7,We=[new v0(ta,0,!1),new v0(Bt,0,!0),new v0(V0,1,!1),new v0(l0,1,!0),new v0(tt,2,!1),new v0(Oe,2,!0),new v0(U0,3,!1),new v0(Ae,3,!0)],S2=[tt,Oe,tt,Oe,U0,Ae,U0,Ae],k2=[Oe,Oe,Oe,Oe,Ae,Ae,Ae,Ae],C2=[V0,l0,tt,Oe,U0,Ae,U0,Ae],M2=[l0,l0,Oe,Oe,Ae,Ae,Ae,Ae],T2=[Bt,Bt,l0,l0,Oe,Oe,Ae,Ae],z2=[ta,Bt,V0,l0,V0,l0,V0,l0],K={DISPLAY:We[ta],TEXT:We[V0],SCRIPT:We[tt],SCRIPTSCRIPT:We[U0]},Rr=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function A2(r){for(var e=0;e<Rr.length;e++)for(var t=Rr[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Dt=[];Rr.forEach(r=>r.blocks.forEach(e=>Dt.push(...e)));function Zs(r){for(var e=0;e<Dt.length;e+=2)if(r>=Dt[e]&&r<=Dt[e+1])return!0;return!1}var F0=80,N2=function(e,t){return"M95,"+(622+e+t)+`
|
|
70
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return z.useEffect(()=>{r&&(document.getElementById(r)||console.error(t))},[t,r]),null},i2="DialogDescriptionWarning",l2=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ys(i2).contentName}}.`;return z.useEffect(()=>{var s;const n=(s=r.current)==null?void 0:s.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(a))},[a,r,e]),null},c2=Is,u2=Fs,d2=qs,m2=Hs,Ja=_s,Qa=Us,h2=Ws,f2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),p2="VisuallyHidden",Zs=z.forwardRef((r,e)=>h.jsx(tt.span,{...r,ref:e,style:{...f2,...r.style}}));Zs.displayName=p2;var en=Zs;const v2=T("fixed inset-0 z-50 bg-[rgba(0,6,38,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),g2=T("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[12px] shadow-lg p-4 flex flex-col gap-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 duration-200",{variants:{size:{sm:"w-[300px] max-w-[calc(100vw-2rem)]",md:"w-[400px] max-w-[calc(100vw-2rem)]",lg:"w-[500px] max-w-[calc(100vw-2rem)]",xl:"w-[600px] max-w-[calc(100vw-2rem)]",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]"}},defaultVariants:{size:"md"}}),b2=T("absolute right-4 top-4 flex-shrink-0 w-4 h-4 text-[var(--color-blue-1000)] cursor-pointer bg-transparent border-none p-0 hover:opacity-70 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm"),x2=T("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),y2=T("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),w2=T("flex flex-col gap-4 items-start w-full",{variants:{size:{sm:"max-h-[60vh] overflow-y-auto",md:"max-h-[70vh] overflow-y-auto",lg:"max-h-[75vh] overflow-y-auto",xl:"max-h-[80vh] overflow-y-auto",full:"flex-1 overflow-y-auto"}},defaultVariants:{size:"md"}}),S2=T("flex gap-2 items-start w-full"),Ks=({open:r,onOpenChange:e,title:t,description:a,showCloseButton:n=!0,closeIcon:s,children:o,primaryAction:l,secondaryAction:u,closeOnClickOutside:d=!0,closeOnEsc:f=!0,onClose:g,className:y,overlayClassName:w,contentClassName:M,footerClassName:k,size:N="md"})=>{const A=I.useRef(null),E=I.useRef(null),R=I.useCallback(Y=>{e(Y),Y||g==null||g()},[e,g]),F=I.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),q=I.useCallback(async()=>{u!=null&&u.onClick&&await u.onClick()},[u]),X=I.useCallback(Y=>{f||Y.preventDefault()},[f]),_=I.useCallback(Y=>{d||Y.preventDefault()},[d]),P=l||u;return h.jsx(c2,{open:r,onOpenChange:R,children:h.jsxs(u2,{children:[h.jsx(d2,{className:H(v2(),w)}),h.jsxs(m2,{className:H(g2({size:N}),y),onEscapeKeyDown:X,onPointerDownOutside:_,children:[t?h.jsx(Ja,{className:x2(),children:t}):h.jsx(en,{children:h.jsx(Ja,{children:"Modal dialog"})}),a?h.jsx(Qa,{className:y2(),children:a}):h.jsx(en,{children:h.jsx(Qa,{children:"Modal content"})}),n&&h.jsx(h2,{asChild:!0,children:h.jsx("button",{className:b2(),"aria-label":"Close modal",children:s||h.jsx(p.X,{size:16,color:"currentColor"})})}),o&&h.jsx("div",{className:H(w2({size:N}),M),children:o}),P&&h.jsxs("div",{className:H(S2(),k),children:[u&&h.jsx(Ut,{ref:E,variant:u.variant||"secondary",size:"small",onClick:q,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&h.jsx(Ut,{ref:A,variant:l.variant||"primary",size:"small",onClick:F,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Ks.displayName="Modal";const k2=T(["markdown-renderer","max-w-none","break-words","leading-relaxed","font-[Inter,system-ui,-apple-system,sans-serif]","[&>*]:my-2","[&>*+*]:mt-5","[&>h1+*]:mt-6","[&>h2+*]:mt-5","[&>h3+*]:mt-4","[&>h4+*]:mt-4","[&>p+*]:mt-5","[&>ul+*]:mt-5","[&>ol+*]:mt-5","[&>blockquote+*]:mt-8","[&>*+blockquote]:mt-7","[&>pre+*]:mt-6","[&>hr+*]:mt-8","[&>div+*]:mt-6","[&>*+div]:mt-6","[&>*+pre]:mt-6","[&>p]:mb-5","[&>ul]:mb-5","[&>ol]:mb-5","[&>blockquote]:mb-8","[&>pre]:mb-6","[&>h1]:mb-5","[&>h2]:mb-4","[&>h3]:mb-3","[&>h4]:mb-3","[&>hr]:mb-8","[&>div]:mb-6","[&>*:first-child]:mt-0","[&>*:last-child]:mb-0","[&_h1]:font-[Signifier,serif]","[&_h1]:text-[1.5rem]","[&_h1]:leading-[2.5rem]","[&_h1]:font-light","[&_h1]:tracking-[-0.25px]","[&_h2]:font-[Signifier,serif]","[&_h2]:text-[1.25rem]","[&_h2]:leading-[2.25rem]","[&_h2]:font-light","[&_h3]:font-[Signifier,serif]","[&_h3]:text-[1.125rem]","[&_h3]:leading-[2rem]","[&_h3]:font-light","[&_h4]:font-[Signifier,serif]","[&_h4]:text-[1rem]","[&_h4]:leading-[1.875rem]","[&_h4]:font-light","[&_h5]:font-[Signifier,serif]","[&_h5]:text-[0.9375rem]","[&_h5]:leading-[1.75rem]","[&_h5]:font-light","[&_h6]:font-[Signifier,serif]","[&_h6]:text-[0.875rem]","[&_h6]:leading-[1.625rem]","[&_h6]:font-light","[&_p]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_p]:text-[length:var(--font-size-small)]","[&_p]:leading-[1.875]","[&_strong]:font-medium","[&_code]:font-[Roboto_Mono,monospace]","[&_code]:bg-[var(--color-gray-100)]","[&_code]:px-2","[&_code]:py-1","[&_code]:rounded","[&_code]:text-[length:var(--font-size-tiny)]","[&_pre]:font-[Roboto_Mono,monospace]","[&_pre]:bg-[var(--color-gray-50)]","[&_pre]:border","[&_pre]:border-[var(--color-gray-200)]","[&_pre]:rounded-lg","[&_pre]:text-[length:var(--font-size-tiny)]","[&_pre]:leading-[1.75]","[&_pre]:p-5","[&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent","[&_pre_code]:p-0","[&_blockquote]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_blockquote]:border-l-4","[&_blockquote]:border-[var(--color-gray-300)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-4","[&_blockquote]:px-6","[&_blockquote]:mt-7","[&_blockquote]:mb-8","[&_blockquote]:rounded-r","[&_blockquote]:text-[0.875rem]","[&_blockquote]:leading-[1.75]","[&_ul]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ul]:pl-6","[&_ul]:list-disc","[&_ul]:list-outside","[&_ol]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ol]:pl-6","[&_ol]:list-decimal","[&_ol]:list-outside","[&_li]:text-[length:var(--font-size-small)]","[&_li]:leading-[1.875]","[&_li]:mb-3","[&_li]:pl-2","[&_ul_ul]:pl-4","[&_ul_ul]:list-[circle]","[&_ol_ol]:pl-4","[&_ol_ol]:list-[lower-alpha]","[&_ul_ul_ul]:list-[square]","[&_a]:no-underline","[&_a:hover]:underline","[&_a]:font-medium","[&_table]:w-full","[&_table]:border-collapse","[&_table]:border","[&_table]:border-[var(--color-gray-200)]","[&_table]:bg-white","[&_table]:shadow-sm","[&_thead]:bg-[var(--color-gray-50)]","[&_thead]:border-b-2","[&_thead]:border-[var(--color-gray-200)]","[&_tbody_tr]:border-b","[&_tbody_tr]:border-[var(--color-gray-200)]","[&_tbody_tr:last-child]:border-b-0","[&_tbody_tr:hover]:bg-[var(--color-gray-50)]","[&_td]:text-[length:var(--font-size-small)]","[&_td]:leading-[var(--line-height-small)]","[&_td]:border-r","[&_td]:border-[var(--color-gray-200)]","[&_td]:p-3","[&_td:last-child]:border-r-0","[&_td]:align-top","[&_th]:text-[length:var(--font-size-small)]","[&_th]:leading-[var(--line-height-small)]","[&_th]:font-medium","[&_th]:border-r","[&_th]:border-[var(--color-gray-200)]","[&_th]:p-3","[&_th:last-child]:border-r-0","[&_th]:text-left","[&_th]:bg-[var(--color-gray-50)]","[&_hr]:border-[var(--color-gray-200)]"],{variants:{size:{small:["[&_p]:text-[0.875rem]","[&_p]:leading-[1.75]","[&_li]:text-[0.875rem]","[&_li]:leading-[1.75]","[&_li]:mb-3","[&_code]:text-[0.8125rem]","[&_h3]:text-[1rem]","[&_h3]:leading-[1.75rem]","[&_h4]:text-[0.9375rem]","[&_h4]:leading-[1.625rem]","[&>*+*]:mt-4","[&>p]:mb-4","[&>ul]:mb-4","[&>ol]:mb-4","[&>h3]:mb-4","[&>h4]:mb-4"],medium:[],large:["[&_p]:text-[1.125rem]","[&_p]:leading-[2]","[&_li]:text-[1.125rem]","[&_li]:leading-[2]","[&_code]:text-[1rem]","[&>*+*]:mt-8","[&>p]:mb-8","[&>ul]:mb-8","[&>ol]:mb-8"]},variant:{default:["text-[var(--color-gray-1000)]","[&_h1]:text-[var(--color-gray-1000)]","[&_h2]:text-[var(--color-gray-1000)]","[&_h3]:text-[var(--color-gray-1000)]","[&_h4]:text-[var(--color-gray-1000)]","[&_p]:text-[var(--color-gray-1000)]","[&_li]:text-[var(--color-gray-1000)]","[&_strong]:text-[var(--color-gray-1000)]","[&_em]:text-[var(--color-gray-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-1000)]","[&_th]:text-[var(--color-gray-1000)]"],muted:["text-[var(--color-gray-600)]","[&_h1]:text-[var(--color-gray-600)]","[&_h2]:text-[var(--color-gray-600)]","[&_h3]:text-[var(--color-gray-600)]","[&_h4]:text-[var(--color-gray-600)]","[&_p]:text-[var(--color-gray-600)]","[&_li]:text-[var(--color-gray-600)]","[&_strong]:text-[var(--color-gray-600)]","[&_em]:text-[var(--color-gray-600)]","[&_code]:text-[var(--color-gray-600)]","[&_blockquote]:text-[var(--color-gray-600)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-600)]","[&_th]:text-[var(--color-gray-600)]"],primary:["text-[var(--color-blue-1000)]","[&_h1]:text-[var(--color-blue-1000)]","[&_h2]:text-[var(--color-blue-1000)]","[&_h3]:text-[var(--color-blue-1000)]","[&_h4]:text-[var(--color-blue-1000)]","[&_p]:text-[var(--color-blue-1000)]","[&_li]:text-[var(--color-blue-1000)]","[&_strong]:text-[var(--color-blue-1000)]","[&_em]:text-[var(--color-blue-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-blue-1000)]","[&_th]:text-[var(--color-blue-1000)]"]}},defaultVariants:{size:"medium",variant:"default"}});class Ie{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new Ie(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class Ve{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Ve(t,Ie.range(this,e))}}class L{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var l=o.lexer.input;n=o.start,s=o.end,n===l.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var u=l.slice(n,s).replace(/[^]/g,"$&̲"),d;n>15?d="…"+l.slice(n-15,n):d=l.slice(0,n);var f;s+15<l.length?f=l.slice(s,s+15)+"…":f=l.slice(s),a+=d+u+f}var g=new Error(a);return g.name="ParseError",g.__proto__=L.prototype,g.position=n,n!=null&&s!=null&&(g.length=s-n),g.rawMessage=e,g}}L.prototype.__proto__=Error.prototype;var C2=function(e,t){return e===void 0?t:e},M2=/([A-Z])/g,T2=function(e){return e.replace(M2,"-$1").toLowerCase()},z2={"&":"&",">":">","<":"<",'"':""","'":"'"},N2=/[&><"']/g;function A2(r){return String(r).replace(N2,e=>z2[e])}var Js=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},D2=function(e){var t=Js(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},R2=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},E2=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},ae={deflt:C2,escape:A2,hyphenate:T2,getBaseElem:Js,isCharacterBox:D2,protocolFromUrl:E2},D0={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function B2(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ra{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in D0)if(D0.hasOwnProperty(t)){var a=D0[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:B2(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new L("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=ae.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class gt{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return Ke[L2[this.id]]}sub(){return Ke[j2[this.id]]}fracNum(){return Ke[I2[this.id]]}fracDen(){return Ke[P2[this.id]]}cramp(){return Ke[O2[this.id]]}text(){return Ke[F2[this.id]]}isTight(){return this.size>=2}}var aa=0,L0=1,Gt=2,ut=3,a0=4,Ue=5,Wt=6,Re=7,Ke=[new gt(aa,0,!1),new gt(L0,0,!0),new gt(Gt,1,!1),new gt(ut,1,!0),new gt(a0,2,!1),new gt(Ue,2,!0),new gt(Wt,3,!1),new gt(Re,3,!0)],L2=[a0,Ue,a0,Ue,Wt,Re,Wt,Re],j2=[Ue,Ue,Ue,Ue,Re,Re,Re,Re],I2=[Gt,ut,a0,Ue,Wt,Re,Wt,Re],P2=[ut,ut,Ue,Ue,Re,Re,Re,Re],O2=[L0,L0,ut,ut,Ue,Ue,Re,Re],F2=[aa,L0,Gt,ut,Gt,ut,Gt,ut],K={DISPLAY:Ke[aa],TEXT:Ke[Gt],SCRIPT:Ke[a0],SCRIPTSCRIPT:Ke[Wt]},Lr=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function q2(r){for(var e=0;e<Lr.length;e++)for(var t=Lr[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var R0=[];Lr.forEach(r=>r.blocks.forEach(e=>R0.push(...e)));function Qs(r){for(var e=0;e<R0.length;e+=2)if(r>=R0[e]&&r<=R0[e+1])return!0;return!1}var qt=80,H2=function(e,t){return"M95,"+(622+e+t)+`
|
|
71
71
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
72
72
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
73
73
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -78,7 +78,7 @@ c5.3,-9.3,12,-14,20,-14
|
|
|
78
78
|
H400000v`+(40+e)+`H845.2724
|
|
79
79
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
80
80
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
81
|
-
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},
|
|
81
|
+
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},V2=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
82
82
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
83
83
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
84
84
|
l`+e/2.084+" -"+e+`
|
|
@@ -88,7 +88,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
|
|
|
88
88
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
89
89
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
90
90
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
91
|
-
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},
|
|
91
|
+
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},_2=function(e,t){return"M983 "+(10+e+t)+`
|
|
92
92
|
l`+e/3.13+" -"+e+`
|
|
93
93
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
94
94
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
@@ -97,7 +97,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
97
97
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
98
98
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
99
99
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
100
|
-
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},
|
|
100
|
+
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},G2=function(e,t){return"M424,"+(2398+e+t)+`
|
|
101
101
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
102
102
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
103
103
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
@@ -107,18 +107,18 @@ v`+(40+e)+`H1014.6
|
|
|
107
107
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
108
108
|
c-2,6,-10,9,-24,9
|
|
109
109
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
|
|
110
|
-
h400000v`+(40+e)+"h-400000z"},
|
|
110
|
+
h400000v`+(40+e)+"h-400000z"},U2=function(e,t){return"M473,"+(2713+e+t)+`
|
|
111
111
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
|
|
112
112
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
113
113
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
114
114
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
115
115
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
116
116
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
117
|
-
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}
|
|
117
|
+
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},$2=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},W2=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
|
|
118
118
|
H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
119
119
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
120
120
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
121
|
-
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},
|
|
121
|
+
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},X2=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=H2(t,qt);break;case"sqrtSize1":n=V2(t,qt);break;case"sqrtSize2":n=_2(t,qt);break;case"sqrtSize3":n=G2(t,qt);break;case"sqrtSize4":n=U2(t,qt);break;case"sqrtTall":n=W2(t,qt,a)}return n},Y2=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},tn={doubleleftarrow:`M262 157
|
|
122
122
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
123
123
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
124
124
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
@@ -293,7 +293,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
|
|
|
293
293
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
294
294
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
295
295
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
296
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
|
|
296
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Z2=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
|
|
297
297
|
H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
|
|
298
298
|
M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
|
|
299
299
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
@@ -321,15 +321,15 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
|
|
|
321
321
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
322
322
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
323
323
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
324
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class at{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var Ye={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},bt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},en={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function F2(r,e){Ye[r]=e}function ra(r,e,t){if(!Ye[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=Ye[e][a];if(!n&&r[0]in en&&(a=en[r[0]].charCodeAt(0),n=Ye[e][a]),!n&&t==="text"&&Zs(a)&&(n=Ye[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var cr={};function q2(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!cr[e]){var t=cr[e]={cssEmPerMu:bt.quad[e]/18};for(var a in bt)bt.hasOwnProperty(a)&&(t[a]=bt[a][e])}return cr[e]}var H2=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],tn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],rn=function(e,t){return t.size<2?e:H2[e-1][t.size-1]};class o0{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||o0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=tn[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return new o0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:rn(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:tn[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=rn(o0.BASESIZE,e);return this.size===t&&this.textSize===o0.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==o0.BASESIZE?["sizing","reset-size"+this.size,"size"+o0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=q2(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}o0.BASESIZE=6;var Br={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},V2={ex:!0,em:!0,mu:!0},Ks=function(e){return typeof e!="string"&&(e=e.unit),e in Br||e in V2||e==="ex"},fe=function(e,t){var a;if(e.unit in Br)a=Br[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new L("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},I=function(e){return+e.toFixed(4)+"em"},w0=function(e){return e.filter(t=>t).join(" ")},Js=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},Qs=function(e){var t=document.createElement(e);t.className=w0(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s<this.children.length;s++)t.appendChild(this.children[s].toNode());return t},_2=/[\s"'>/=\x00-\x1f]/,eo=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+re.escape(w0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=re.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+re.escape(a)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(_2.test(s))throw new L("Invalid attribute name '"+s+"'");t+=" "+s+'="'+re.escape(this.attributes[s])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class nt{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Js.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qs.call(this,"span")}toMarkup(){return eo.call(this,"span")}}class aa{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Js.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qs.call(this,"a")}toMarkup(){return eo.call(this,"a")}}class G2{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+re.escape(this.src)+'"'+(' alt="'+re.escape(this.alt)+'"'),t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=re.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+re.escape(t)+'"'),e+="'/>",e}}var U2={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Fe{constructor(e,t,a,n,s,o,l,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=o||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var d=A2(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=U2[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=I(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=w0(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=re.escape(w0(this.classes)),t+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=re.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+re.escape(a)+'"');var s=re.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class u0{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+re.escape(this.attributes[t])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class S0{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Qa[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+re.escape(this.alternate)+'"/>':'<path d="'+re.escape(Qa[this.pathName])+'"/>'}}class Lr{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+re.escape(this.attributes[t])+'"');return e+="/>",e}}function an(r){if(r instanceof Fe)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function $2(r){if(r instanceof nt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var W2={bin:1,close:1,inner:1,open:1,punct:1,rel:1},X2={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ie={math:{},text:{}};function i(r,e,t,a,n,s){ie[r][n]={font:e,group:t,replace:a},s&&a&&(ie[r][a]=ie[r][n])}var c="math",D="text",m="main",b="ams",ue="accent-token",H="bin",Ne="close",X0="inner",Z="mathord",xe="op-token",Pe="open",_t="punct",y="rel",h0="spacing",S="textord";i(c,m,y,"≡","\\equiv",!0);i(c,m,y,"≺","\\prec",!0);i(c,m,y,"≻","\\succ",!0);i(c,m,y,"∼","\\sim",!0);i(c,m,y,"⊥","\\perp");i(c,m,y,"⪯","\\preceq",!0);i(c,m,y,"⪰","\\succeq",!0);i(c,m,y,"≃","\\simeq",!0);i(c,m,y,"∣","\\mid",!0);i(c,m,y,"≪","\\ll",!0);i(c,m,y,"≫","\\gg",!0);i(c,m,y,"≍","\\asymp",!0);i(c,m,y,"∥","\\parallel");i(c,m,y,"⋈","\\bowtie",!0);i(c,m,y,"⌣","\\smile",!0);i(c,m,y,"⊑","\\sqsubseteq",!0);i(c,m,y,"⊒","\\sqsupseteq",!0);i(c,m,y,"≐","\\doteq",!0);i(c,m,y,"⌢","\\frown",!0);i(c,m,y,"∋","\\ni",!0);i(c,m,y,"∝","\\propto",!0);i(c,m,y,"⊢","\\vdash",!0);i(c,m,y,"⊣","\\dashv",!0);i(c,m,y,"∋","\\owns");i(c,m,_t,".","\\ldotp");i(c,m,_t,"⋅","\\cdotp");i(c,m,S,"#","\\#");i(D,m,S,"#","\\#");i(c,m,S,"&","\\&");i(D,m,S,"&","\\&");i(c,m,S,"ℵ","\\aleph",!0);i(c,m,S,"∀","\\forall",!0);i(c,m,S,"ℏ","\\hbar",!0);i(c,m,S,"∃","\\exists",!0);i(c,m,S,"∇","\\nabla",!0);i(c,m,S,"♭","\\flat",!0);i(c,m,S,"ℓ","\\ell",!0);i(c,m,S,"♮","\\natural",!0);i(c,m,S,"♣","\\clubsuit",!0);i(c,m,S,"℘","\\wp",!0);i(c,m,S,"♯","\\sharp",!0);i(c,m,S,"♢","\\diamondsuit",!0);i(c,m,S,"ℜ","\\Re",!0);i(c,m,S,"♡","\\heartsuit",!0);i(c,m,S,"ℑ","\\Im",!0);i(c,m,S,"♠","\\spadesuit",!0);i(c,m,S,"§","\\S",!0);i(D,m,S,"§","\\S");i(c,m,S,"¶","\\P",!0);i(D,m,S,"¶","\\P");i(c,m,S,"†","\\dag");i(D,m,S,"†","\\dag");i(D,m,S,"†","\\textdagger");i(c,m,S,"‡","\\ddag");i(D,m,S,"‡","\\ddag");i(D,m,S,"‡","\\textdaggerdbl");i(c,m,Ne,"⎱","\\rmoustache",!0);i(c,m,Pe,"⎰","\\lmoustache",!0);i(c,m,Ne,"⟯","\\rgroup",!0);i(c,m,Pe,"⟮","\\lgroup",!0);i(c,m,H,"∓","\\mp",!0);i(c,m,H,"⊖","\\ominus",!0);i(c,m,H,"⊎","\\uplus",!0);i(c,m,H,"⊓","\\sqcap",!0);i(c,m,H,"∗","\\ast");i(c,m,H,"⊔","\\sqcup",!0);i(c,m,H,"◯","\\bigcirc",!0);i(c,m,H,"∙","\\bullet",!0);i(c,m,H,"‡","\\ddagger");i(c,m,H,"≀","\\wr",!0);i(c,m,H,"⨿","\\amalg");i(c,m,H,"&","\\And");i(c,m,y,"⟵","\\longleftarrow",!0);i(c,m,y,"⇐","\\Leftarrow",!0);i(c,m,y,"⟸","\\Longleftarrow",!0);i(c,m,y,"⟶","\\longrightarrow",!0);i(c,m,y,"⇒","\\Rightarrow",!0);i(c,m,y,"⟹","\\Longrightarrow",!0);i(c,m,y,"↔","\\leftrightarrow",!0);i(c,m,y,"⟷","\\longleftrightarrow",!0);i(c,m,y,"⇔","\\Leftrightarrow",!0);i(c,m,y,"⟺","\\Longleftrightarrow",!0);i(c,m,y,"↦","\\mapsto",!0);i(c,m,y,"⟼","\\longmapsto",!0);i(c,m,y,"↗","\\nearrow",!0);i(c,m,y,"↩","\\hookleftarrow",!0);i(c,m,y,"↪","\\hookrightarrow",!0);i(c,m,y,"↘","\\searrow",!0);i(c,m,y,"↼","\\leftharpoonup",!0);i(c,m,y,"⇀","\\rightharpoonup",!0);i(c,m,y,"↙","\\swarrow",!0);i(c,m,y,"↽","\\leftharpoondown",!0);i(c,m,y,"⇁","\\rightharpoondown",!0);i(c,m,y,"↖","\\nwarrow",!0);i(c,m,y,"⇌","\\rightleftharpoons",!0);i(c,b,y,"≮","\\nless",!0);i(c,b,y,"","\\@nleqslant");i(c,b,y,"","\\@nleqq");i(c,b,y,"⪇","\\lneq",!0);i(c,b,y,"≨","\\lneqq",!0);i(c,b,y,"","\\@lvertneqq");i(c,b,y,"⋦","\\lnsim",!0);i(c,b,y,"⪉","\\lnapprox",!0);i(c,b,y,"⊀","\\nprec",!0);i(c,b,y,"⋠","\\npreceq",!0);i(c,b,y,"⋨","\\precnsim",!0);i(c,b,y,"⪹","\\precnapprox",!0);i(c,b,y,"≁","\\nsim",!0);i(c,b,y,"","\\@nshortmid");i(c,b,y,"∤","\\nmid",!0);i(c,b,y,"⊬","\\nvdash",!0);i(c,b,y,"⊭","\\nvDash",!0);i(c,b,y,"⋪","\\ntriangleleft");i(c,b,y,"⋬","\\ntrianglelefteq",!0);i(c,b,y,"⊊","\\subsetneq",!0);i(c,b,y,"","\\@varsubsetneq");i(c,b,y,"⫋","\\subsetneqq",!0);i(c,b,y,"","\\@varsubsetneqq");i(c,b,y,"≯","\\ngtr",!0);i(c,b,y,"","\\@ngeqslant");i(c,b,y,"","\\@ngeqq");i(c,b,y,"⪈","\\gneq",!0);i(c,b,y,"≩","\\gneqq",!0);i(c,b,y,"","\\@gvertneqq");i(c,b,y,"⋧","\\gnsim",!0);i(c,b,y,"⪊","\\gnapprox",!0);i(c,b,y,"⊁","\\nsucc",!0);i(c,b,y,"⋡","\\nsucceq",!0);i(c,b,y,"⋩","\\succnsim",!0);i(c,b,y,"⪺","\\succnapprox",!0);i(c,b,y,"≆","\\ncong",!0);i(c,b,y,"","\\@nshortparallel");i(c,b,y,"∦","\\nparallel",!0);i(c,b,y,"⊯","\\nVDash",!0);i(c,b,y,"⋫","\\ntriangleright");i(c,b,y,"⋭","\\ntrianglerighteq",!0);i(c,b,y,"","\\@nsupseteqq");i(c,b,y,"⊋","\\supsetneq",!0);i(c,b,y,"","\\@varsupsetneq");i(c,b,y,"⫌","\\supsetneqq",!0);i(c,b,y,"","\\@varsupsetneqq");i(c,b,y,"⊮","\\nVdash",!0);i(c,b,y,"⪵","\\precneqq",!0);i(c,b,y,"⪶","\\succneqq",!0);i(c,b,y,"","\\@nsubseteqq");i(c,b,H,"⊴","\\unlhd");i(c,b,H,"⊵","\\unrhd");i(c,b,y,"↚","\\nleftarrow",!0);i(c,b,y,"↛","\\nrightarrow",!0);i(c,b,y,"⇍","\\nLeftarrow",!0);i(c,b,y,"⇏","\\nRightarrow",!0);i(c,b,y,"↮","\\nleftrightarrow",!0);i(c,b,y,"⇎","\\nLeftrightarrow",!0);i(c,b,y,"△","\\vartriangle");i(c,b,S,"ℏ","\\hslash");i(c,b,S,"▽","\\triangledown");i(c,b,S,"◊","\\lozenge");i(c,b,S,"Ⓢ","\\circledS");i(c,b,S,"®","\\circledR");i(D,b,S,"®","\\circledR");i(c,b,S,"∡","\\measuredangle",!0);i(c,b,S,"∄","\\nexists");i(c,b,S,"℧","\\mho");i(c,b,S,"Ⅎ","\\Finv",!0);i(c,b,S,"⅁","\\Game",!0);i(c,b,S,"‵","\\backprime");i(c,b,S,"▲","\\blacktriangle");i(c,b,S,"▼","\\blacktriangledown");i(c,b,S,"■","\\blacksquare");i(c,b,S,"⧫","\\blacklozenge");i(c,b,S,"★","\\bigstar");i(c,b,S,"∢","\\sphericalangle",!0);i(c,b,S,"∁","\\complement",!0);i(c,b,S,"ð","\\eth",!0);i(D,m,S,"ð","ð");i(c,b,S,"╱","\\diagup");i(c,b,S,"╲","\\diagdown");i(c,b,S,"□","\\square");i(c,b,S,"□","\\Box");i(c,b,S,"◊","\\Diamond");i(c,b,S,"¥","\\yen",!0);i(D,b,S,"¥","\\yen",!0);i(c,b,S,"✓","\\checkmark",!0);i(D,b,S,"✓","\\checkmark");i(c,b,S,"ℶ","\\beth",!0);i(c,b,S,"ℸ","\\daleth",!0);i(c,b,S,"ℷ","\\gimel",!0);i(c,b,S,"ϝ","\\digamma",!0);i(c,b,S,"ϰ","\\varkappa");i(c,b,Pe,"┌","\\@ulcorner",!0);i(c,b,Ne,"┐","\\@urcorner",!0);i(c,b,Pe,"└","\\@llcorner",!0);i(c,b,Ne,"┘","\\@lrcorner",!0);i(c,b,y,"≦","\\leqq",!0);i(c,b,y,"⩽","\\leqslant",!0);i(c,b,y,"⪕","\\eqslantless",!0);i(c,b,y,"≲","\\lesssim",!0);i(c,b,y,"⪅","\\lessapprox",!0);i(c,b,y,"≊","\\approxeq",!0);i(c,b,H,"⋖","\\lessdot");i(c,b,y,"⋘","\\lll",!0);i(c,b,y,"≶","\\lessgtr",!0);i(c,b,y,"⋚","\\lesseqgtr",!0);i(c,b,y,"⪋","\\lesseqqgtr",!0);i(c,b,y,"≑","\\doteqdot");i(c,b,y,"≓","\\risingdotseq",!0);i(c,b,y,"≒","\\fallingdotseq",!0);i(c,b,y,"∽","\\backsim",!0);i(c,b,y,"⋍","\\backsimeq",!0);i(c,b,y,"⫅","\\subseteqq",!0);i(c,b,y,"⋐","\\Subset",!0);i(c,b,y,"⊏","\\sqsubset",!0);i(c,b,y,"≼","\\preccurlyeq",!0);i(c,b,y,"⋞","\\curlyeqprec",!0);i(c,b,y,"≾","\\precsim",!0);i(c,b,y,"⪷","\\precapprox",!0);i(c,b,y,"⊲","\\vartriangleleft");i(c,b,y,"⊴","\\trianglelefteq");i(c,b,y,"⊨","\\vDash",!0);i(c,b,y,"⊪","\\Vvdash",!0);i(c,b,y,"⌣","\\smallsmile");i(c,b,y,"⌢","\\smallfrown");i(c,b,y,"≏","\\bumpeq",!0);i(c,b,y,"≎","\\Bumpeq",!0);i(c,b,y,"≧","\\geqq",!0);i(c,b,y,"⩾","\\geqslant",!0);i(c,b,y,"⪖","\\eqslantgtr",!0);i(c,b,y,"≳","\\gtrsim",!0);i(c,b,y,"⪆","\\gtrapprox",!0);i(c,b,H,"⋗","\\gtrdot");i(c,b,y,"⋙","\\ggg",!0);i(c,b,y,"≷","\\gtrless",!0);i(c,b,y,"⋛","\\gtreqless",!0);i(c,b,y,"⪌","\\gtreqqless",!0);i(c,b,y,"≖","\\eqcirc",!0);i(c,b,y,"≗","\\circeq",!0);i(c,b,y,"≜","\\triangleq",!0);i(c,b,y,"∼","\\thicksim");i(c,b,y,"≈","\\thickapprox");i(c,b,y,"⫆","\\supseteqq",!0);i(c,b,y,"⋑","\\Supset",!0);i(c,b,y,"⊐","\\sqsupset",!0);i(c,b,y,"≽","\\succcurlyeq",!0);i(c,b,y,"⋟","\\curlyeqsucc",!0);i(c,b,y,"≿","\\succsim",!0);i(c,b,y,"⪸","\\succapprox",!0);i(c,b,y,"⊳","\\vartriangleright");i(c,b,y,"⊵","\\trianglerighteq");i(c,b,y,"⊩","\\Vdash",!0);i(c,b,y,"∣","\\shortmid");i(c,b,y,"∥","\\shortparallel");i(c,b,y,"≬","\\between",!0);i(c,b,y,"⋔","\\pitchfork",!0);i(c,b,y,"∝","\\varpropto");i(c,b,y,"◀","\\blacktriangleleft");i(c,b,y,"∴","\\therefore",!0);i(c,b,y,"∍","\\backepsilon");i(c,b,y,"▶","\\blacktriangleright");i(c,b,y,"∵","\\because",!0);i(c,b,y,"⋘","\\llless");i(c,b,y,"⋙","\\gggtr");i(c,b,H,"⊲","\\lhd");i(c,b,H,"⊳","\\rhd");i(c,b,y,"≂","\\eqsim",!0);i(c,m,y,"⋈","\\Join");i(c,b,y,"≑","\\Doteq",!0);i(c,b,H,"∔","\\dotplus",!0);i(c,b,H,"∖","\\smallsetminus");i(c,b,H,"⋒","\\Cap",!0);i(c,b,H,"⋓","\\Cup",!0);i(c,b,H,"⩞","\\doublebarwedge",!0);i(c,b,H,"⊟","\\boxminus",!0);i(c,b,H,"⊞","\\boxplus",!0);i(c,b,H,"⋇","\\divideontimes",!0);i(c,b,H,"⋉","\\ltimes",!0);i(c,b,H,"⋊","\\rtimes",!0);i(c,b,H,"⋋","\\leftthreetimes",!0);i(c,b,H,"⋌","\\rightthreetimes",!0);i(c,b,H,"⋏","\\curlywedge",!0);i(c,b,H,"⋎","\\curlyvee",!0);i(c,b,H,"⊝","\\circleddash",!0);i(c,b,H,"⊛","\\circledast",!0);i(c,b,H,"⋅","\\centerdot");i(c,b,H,"⊺","\\intercal",!0);i(c,b,H,"⋒","\\doublecap");i(c,b,H,"⋓","\\doublecup");i(c,b,H,"⊠","\\boxtimes",!0);i(c,b,y,"⇢","\\dashrightarrow",!0);i(c,b,y,"⇠","\\dashleftarrow",!0);i(c,b,y,"⇇","\\leftleftarrows",!0);i(c,b,y,"⇆","\\leftrightarrows",!0);i(c,b,y,"⇚","\\Lleftarrow",!0);i(c,b,y,"↞","\\twoheadleftarrow",!0);i(c,b,y,"↢","\\leftarrowtail",!0);i(c,b,y,"↫","\\looparrowleft",!0);i(c,b,y,"⇋","\\leftrightharpoons",!0);i(c,b,y,"↶","\\curvearrowleft",!0);i(c,b,y,"↺","\\circlearrowleft",!0);i(c,b,y,"↰","\\Lsh",!0);i(c,b,y,"⇈","\\upuparrows",!0);i(c,b,y,"↿","\\upharpoonleft",!0);i(c,b,y,"⇃","\\downharpoonleft",!0);i(c,m,y,"⊶","\\origof",!0);i(c,m,y,"⊷","\\imageof",!0);i(c,b,y,"⊸","\\multimap",!0);i(c,b,y,"↭","\\leftrightsquigarrow",!0);i(c,b,y,"⇉","\\rightrightarrows",!0);i(c,b,y,"⇄","\\rightleftarrows",!0);i(c,b,y,"↠","\\twoheadrightarrow",!0);i(c,b,y,"↣","\\rightarrowtail",!0);i(c,b,y,"↬","\\looparrowright",!0);i(c,b,y,"↷","\\curvearrowright",!0);i(c,b,y,"↻","\\circlearrowright",!0);i(c,b,y,"↱","\\Rsh",!0);i(c,b,y,"⇊","\\downdownarrows",!0);i(c,b,y,"↾","\\upharpoonright",!0);i(c,b,y,"⇂","\\downharpoonright",!0);i(c,b,y,"⇝","\\rightsquigarrow",!0);i(c,b,y,"⇝","\\leadsto");i(c,b,y,"⇛","\\Rrightarrow",!0);i(c,b,y,"↾","\\restriction");i(c,m,S,"‘","`");i(c,m,S,"$","\\$");i(D,m,S,"$","\\$");i(D,m,S,"$","\\textdollar");i(c,m,S,"%","\\%");i(D,m,S,"%","\\%");i(c,m,S,"_","\\_");i(D,m,S,"_","\\_");i(D,m,S,"_","\\textunderscore");i(c,m,S,"∠","\\angle",!0);i(c,m,S,"∞","\\infty",!0);i(c,m,S,"′","\\prime");i(c,m,S,"△","\\triangle");i(c,m,S,"Γ","\\Gamma",!0);i(c,m,S,"Δ","\\Delta",!0);i(c,m,S,"Θ","\\Theta",!0);i(c,m,S,"Λ","\\Lambda",!0);i(c,m,S,"Ξ","\\Xi",!0);i(c,m,S,"Π","\\Pi",!0);i(c,m,S,"Σ","\\Sigma",!0);i(c,m,S,"Υ","\\Upsilon",!0);i(c,m,S,"Φ","\\Phi",!0);i(c,m,S,"Ψ","\\Psi",!0);i(c,m,S,"Ω","\\Omega",!0);i(c,m,S,"A","Α");i(c,m,S,"B","Β");i(c,m,S,"E","Ε");i(c,m,S,"Z","Ζ");i(c,m,S,"H","Η");i(c,m,S,"I","Ι");i(c,m,S,"K","Κ");i(c,m,S,"M","Μ");i(c,m,S,"N","Ν");i(c,m,S,"O","Ο");i(c,m,S,"P","Ρ");i(c,m,S,"T","Τ");i(c,m,S,"X","Χ");i(c,m,S,"¬","\\neg",!0);i(c,m,S,"¬","\\lnot");i(c,m,S,"⊤","\\top");i(c,m,S,"⊥","\\bot");i(c,m,S,"∅","\\emptyset");i(c,b,S,"∅","\\varnothing");i(c,m,Z,"α","\\alpha",!0);i(c,m,Z,"β","\\beta",!0);i(c,m,Z,"γ","\\gamma",!0);i(c,m,Z,"δ","\\delta",!0);i(c,m,Z,"ϵ","\\epsilon",!0);i(c,m,Z,"ζ","\\zeta",!0);i(c,m,Z,"η","\\eta",!0);i(c,m,Z,"θ","\\theta",!0);i(c,m,Z,"ι","\\iota",!0);i(c,m,Z,"κ","\\kappa",!0);i(c,m,Z,"λ","\\lambda",!0);i(c,m,Z,"μ","\\mu",!0);i(c,m,Z,"ν","\\nu",!0);i(c,m,Z,"ξ","\\xi",!0);i(c,m,Z,"ο","\\omicron",!0);i(c,m,Z,"π","\\pi",!0);i(c,m,Z,"ρ","\\rho",!0);i(c,m,Z,"σ","\\sigma",!0);i(c,m,Z,"τ","\\tau",!0);i(c,m,Z,"υ","\\upsilon",!0);i(c,m,Z,"ϕ","\\phi",!0);i(c,m,Z,"χ","\\chi",!0);i(c,m,Z,"ψ","\\psi",!0);i(c,m,Z,"ω","\\omega",!0);i(c,m,Z,"ε","\\varepsilon",!0);i(c,m,Z,"ϑ","\\vartheta",!0);i(c,m,Z,"ϖ","\\varpi",!0);i(c,m,Z,"ϱ","\\varrho",!0);i(c,m,Z,"ς","\\varsigma",!0);i(c,m,Z,"φ","\\varphi",!0);i(c,m,H,"∗","*",!0);i(c,m,H,"+","+");i(c,m,H,"−","-",!0);i(c,m,H,"⋅","\\cdot",!0);i(c,m,H,"∘","\\circ",!0);i(c,m,H,"÷","\\div",!0);i(c,m,H,"±","\\pm",!0);i(c,m,H,"×","\\times",!0);i(c,m,H,"∩","\\cap",!0);i(c,m,H,"∪","\\cup",!0);i(c,m,H,"∖","\\setminus",!0);i(c,m,H,"∧","\\land");i(c,m,H,"∨","\\lor");i(c,m,H,"∧","\\wedge",!0);i(c,m,H,"∨","\\vee",!0);i(c,m,S,"√","\\surd");i(c,m,Pe,"⟨","\\langle",!0);i(c,m,Pe,"∣","\\lvert");i(c,m,Pe,"∥","\\lVert");i(c,m,Ne,"?","?");i(c,m,Ne,"!","!");i(c,m,Ne,"⟩","\\rangle",!0);i(c,m,Ne,"∣","\\rvert");i(c,m,Ne,"∥","\\rVert");i(c,m,y,"=","=");i(c,m,y,":",":");i(c,m,y,"≈","\\approx",!0);i(c,m,y,"≅","\\cong",!0);i(c,m,y,"≥","\\ge");i(c,m,y,"≥","\\geq",!0);i(c,m,y,"←","\\gets");i(c,m,y,">","\\gt",!0);i(c,m,y,"∈","\\in",!0);i(c,m,y,"","\\@not");i(c,m,y,"⊂","\\subset",!0);i(c,m,y,"⊃","\\supset",!0);i(c,m,y,"⊆","\\subseteq",!0);i(c,m,y,"⊇","\\supseteq",!0);i(c,b,y,"⊈","\\nsubseteq",!0);i(c,b,y,"⊉","\\nsupseteq",!0);i(c,m,y,"⊨","\\models");i(c,m,y,"←","\\leftarrow",!0);i(c,m,y,"≤","\\le");i(c,m,y,"≤","\\leq",!0);i(c,m,y,"<","\\lt",!0);i(c,m,y,"→","\\rightarrow",!0);i(c,m,y,"→","\\to");i(c,b,y,"≱","\\ngeq",!0);i(c,b,y,"≰","\\nleq",!0);i(c,m,h0," ","\\ ");i(c,m,h0," ","\\space");i(c,m,h0," ","\\nobreakspace");i(D,m,h0," ","\\ ");i(D,m,h0," "," ");i(D,m,h0," ","\\space");i(D,m,h0," ","\\nobreakspace");i(c,m,h0,null,"\\nobreak");i(c,m,h0,null,"\\allowbreak");i(c,m,_t,",",",");i(c,m,_t,";",";");i(c,b,H,"⊼","\\barwedge",!0);i(c,b,H,"⊻","\\veebar",!0);i(c,m,H,"⊙","\\odot",!0);i(c,m,H,"⊕","\\oplus",!0);i(c,m,H,"⊗","\\otimes",!0);i(c,m,S,"∂","\\partial",!0);i(c,m,H,"⊘","\\oslash",!0);i(c,b,H,"⊚","\\circledcirc",!0);i(c,b,H,"⊡","\\boxdot",!0);i(c,m,H,"△","\\bigtriangleup");i(c,m,H,"▽","\\bigtriangledown");i(c,m,H,"†","\\dagger");i(c,m,H,"⋄","\\diamond");i(c,m,H,"⋆","\\star");i(c,m,H,"◃","\\triangleleft");i(c,m,H,"▹","\\triangleright");i(c,m,Pe,"{","\\{");i(D,m,S,"{","\\{");i(D,m,S,"{","\\textbraceleft");i(c,m,Ne,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,Pe,"{","\\lbrace");i(c,m,Ne,"}","\\rbrace");i(c,m,Pe,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ne,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,Pe,"(","\\lparen",!0);i(c,m,Ne,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,Pe,"⌊","\\lfloor",!0);i(c,m,Ne,"⌋","\\rfloor",!0);i(c,m,Pe,"⌈","\\lceil",!0);i(c,m,Ne,"⌉","\\rceil",!0);i(c,m,S,"\\","\\backslash");i(c,m,S,"∣","|");i(c,m,S,"∣","\\vert");i(D,m,S,"|","\\textbar",!0);i(c,m,S,"∥","\\|");i(c,m,S,"∥","\\Vert");i(D,m,S,"∥","\\textbardbl");i(D,m,S,"~","\\textasciitilde");i(D,m,S,"\\","\\textbackslash");i(D,m,S,"^","\\textasciicircum");i(c,m,y,"↑","\\uparrow",!0);i(c,m,y,"⇑","\\Uparrow",!0);i(c,m,y,"↓","\\downarrow",!0);i(c,m,y,"⇓","\\Downarrow",!0);i(c,m,y,"↕","\\updownarrow",!0);i(c,m,y,"⇕","\\Updownarrow",!0);i(c,m,xe,"∐","\\coprod");i(c,m,xe,"⋁","\\bigvee");i(c,m,xe,"⋀","\\bigwedge");i(c,m,xe,"⨄","\\biguplus");i(c,m,xe,"⋂","\\bigcap");i(c,m,xe,"⋃","\\bigcup");i(c,m,xe,"∫","\\int");i(c,m,xe,"∫","\\intop");i(c,m,xe,"∬","\\iint");i(c,m,xe,"∭","\\iiint");i(c,m,xe,"∏","\\prod");i(c,m,xe,"∑","\\sum");i(c,m,xe,"⨂","\\bigotimes");i(c,m,xe,"⨁","\\bigoplus");i(c,m,xe,"⨀","\\bigodot");i(c,m,xe,"∮","\\oint");i(c,m,xe,"∯","\\oiint");i(c,m,xe,"∰","\\oiiint");i(c,m,xe,"⨆","\\bigsqcup");i(c,m,xe,"∫","\\smallint");i(D,m,X0,"…","\\textellipsis");i(c,m,X0,"…","\\mathellipsis");i(D,m,X0,"…","\\ldots",!0);i(c,m,X0,"…","\\ldots",!0);i(c,m,X0,"⋯","\\@cdots",!0);i(c,m,X0,"⋱","\\ddots",!0);i(c,m,S,"⋮","\\varvdots");i(D,m,S,"⋮","\\varvdots");i(c,m,ue,"ˊ","\\acute");i(c,m,ue,"ˋ","\\grave");i(c,m,ue,"¨","\\ddot");i(c,m,ue,"~","\\tilde");i(c,m,ue,"ˉ","\\bar");i(c,m,ue,"˘","\\breve");i(c,m,ue,"ˇ","\\check");i(c,m,ue,"^","\\hat");i(c,m,ue,"⃗","\\vec");i(c,m,ue,"˙","\\dot");i(c,m,ue,"˚","\\mathring");i(c,m,Z,"","\\@imath");i(c,m,Z,"","\\@jmath");i(c,m,S,"ı","ı");i(c,m,S,"ȷ","ȷ");i(D,m,S,"ı","\\i",!0);i(D,m,S,"ȷ","\\j",!0);i(D,m,S,"ß","\\ss",!0);i(D,m,S,"æ","\\ae",!0);i(D,m,S,"œ","\\oe",!0);i(D,m,S,"ø","\\o",!0);i(D,m,S,"Æ","\\AE",!0);i(D,m,S,"Œ","\\OE",!0);i(D,m,S,"Ø","\\O",!0);i(D,m,ue,"ˊ","\\'");i(D,m,ue,"ˋ","\\`");i(D,m,ue,"ˆ","\\^");i(D,m,ue,"˜","\\~");i(D,m,ue,"ˉ","\\=");i(D,m,ue,"˘","\\u");i(D,m,ue,"˙","\\.");i(D,m,ue,"¸","\\c");i(D,m,ue,"˚","\\r");i(D,m,ue,"ˇ","\\v");i(D,m,ue,"¨",'\\"');i(D,m,ue,"˝","\\H");i(D,m,ue,"◯","\\textcircled");var to={"--":!0,"---":!0,"``":!0,"''":!0};i(D,m,S,"–","--",!0);i(D,m,S,"–","\\textendash");i(D,m,S,"—","---",!0);i(D,m,S,"—","\\textemdash");i(D,m,S,"‘","`",!0);i(D,m,S,"‘","\\textquoteleft");i(D,m,S,"’","'",!0);i(D,m,S,"’","\\textquoteright");i(D,m,S,"“","``",!0);i(D,m,S,"“","\\textquotedblleft");i(D,m,S,"”","''",!0);i(D,m,S,"”","\\textquotedblright");i(c,m,S,"°","\\degree",!0);i(D,m,S,"°","\\degree");i(D,m,S,"°","\\textdegree",!0);i(c,m,S,"£","\\pounds");i(c,m,S,"£","\\mathsterling",!0);i(D,m,S,"£","\\pounds");i(D,m,S,"£","\\textsterling",!0);i(c,b,S,"✠","\\maltese");i(D,b,S,"✠","\\maltese");var nn='0123456789/@."';for(var ur=0;ur<nn.length;ur++){var sn=nn.charAt(ur);i(c,m,S,sn,sn)}var on='0123456789!@*()-=+";:?/.,';for(var dr=0;dr<on.length;dr++){var ln=on.charAt(dr);i(D,m,S,ln,ln)}var Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var mr=0;mr<Lt.length;mr++){var yt=Lt.charAt(mr);i(c,m,Z,yt,yt),i(D,m,S,yt,yt)}i(c,b,S,"C","ℂ");i(D,b,S,"C","ℂ");i(c,b,S,"H","ℍ");i(D,b,S,"H","ℍ");i(c,b,S,"N","ℕ");i(D,b,S,"N","ℕ");i(c,b,S,"P","ℙ");i(D,b,S,"P","ℙ");i(c,b,S,"Q","ℚ");i(D,b,S,"Q","ℚ");i(c,b,S,"R","ℝ");i(D,b,S,"R","ℝ");i(c,b,S,"Z","ℤ");i(D,b,S,"Z","ℤ");i(c,m,Z,"h","ℎ");i(D,m,Z,"h","ℎ");var J="";for(var ze=0;ze<Lt.length;ze++){var ve=Lt.charAt(ze);J=String.fromCharCode(55349,56320+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56372+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56424+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56580+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56684+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56736+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56788+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56840+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56944+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),ze<26&&(J=String.fromCharCode(55349,56632+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56476+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var z0=0;z0<10;z0++){var g0=z0.toString();J=String.fromCharCode(55349,57294+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J),J=String.fromCharCode(55349,57314+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J),J=String.fromCharCode(55349,57324+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J),J=String.fromCharCode(55349,57334+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J)}var jr="ÐÞþ";for(var hr=0;hr<jr.length;hr++){var xt=jr.charAt(hr);i(c,m,Z,xt,xt),i(D,m,S,xt,xt)}var wt=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],cn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Y2=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return[wt[l][2],wt[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[cn[u][2],cn[u][o]]}else{if(s===120485||s===120486)return[wt[0][2],wt[0][o]];if(120486<s&&s<120782)return["",""];throw new L("Unsupported character: "+e)}},Gt=function(e,t,a){return ie[a][e]&&ie[a][e].replace&&(e=ie[a][e].replace),{value:e,metrics:ra(e,t,a)}},Ue=function(e,t,a,n,s){var o=Gt(e,t,a),l=o.metrics;e=o.value;var u;if(l){var d=l.italic;(a==="text"||n&&n.font==="mathit")&&(d=0),u=new Fe(e,l.height,l.depth,d,l.skew,l.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+a+"'")),u=new Fe(e,0,0,0,0,0,s);if(n){u.maxFontSize=n.sizeMultiplier,n.style.isTight()&&u.classes.push("mtight");var f=n.getColor();f&&(u.style.color=f)}return u},Z2=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&Gt(e,"Main-Bold",t).metrics?Ue(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||ie[t][e].font==="main"?Ue(e,"Main-Regular",t,a,n):Ue(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},K2=function(e,t,a,n,s){return s!=="textord"&&Gt(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},J2=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],l=n==="math"||n==="text"&&t.font,u=l?t.font:t.fontFamily,d="",f="";if(s.charCodeAt(0)===55349&&([d,f]=Y2(s,n)),d.length>0)return Ue(s,d,n,t,o.concat(f));if(u){var g,x;if(u==="boldsymbol"){var w=K2(s,n,t,o,a);g=w.fontName,x=[w.fontClass]}else l?(g=no[u].fontName,x=[u]):(g=St(u,t.fontWeight,t.fontShape),x=[u,t.fontWeight,t.fontShape]);if(Gt(s,g,n).metrics)return Ue(s,g,n,t,o.concat(x));if(to.hasOwnProperty(s)&&g.slice(0,10)==="Typewriter"){for(var M=[],k=0;k<s.length;k++)M.push(Ue(s[k],g,n,t,o.concat(x)));return ao(M)}}if(a==="mathord")return Ue(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var A=ie[n][s]&&ie[n][s].font;if(A==="ams"){var N=St("amsrm",t.fontWeight,t.fontShape);return Ue(s,N,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(A==="main"||!A){var E=St("textrm",t.fontWeight,t.fontShape);return Ue(s,E,n,t,o.concat(t.fontWeight,t.fontShape))}else{var R=St(A,t.fontWeight,t.fontShape);return Ue(s,R,n,t,o.concat(R,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},Q2=(r,e)=>{if(w0(r.classes)!==w0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},e4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof Fe&&a instanceof Fe&&Q2(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},na=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>t&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},De=function(e,t,a,n){var s=new nt(e,t,a,n);return na(s),s},ro=(r,e,t,a)=>new nt(r,e,t,a),t4=function(e,t,a){var n=De([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=I(n.height),n.maxFontSize=1,n},r4=function(e,t,a,n){var s=new aa(e,t,a,n);return na(s),s},ao=function(e){var t=new at(e);return na(t),t},a4=function(e,t){return e instanceof at?De([],[e],t):e},n4=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var l=-t[o].shift-s-t[o].elem.depth,u=l-(t[o-1].elem.height+t[o-1].elem.depth);s=s+l,a.push({type:"kern",size:u}),a.push(t[o])}return{children:a,depth:n}}var d;if(e.positionType==="top"){for(var f=e.positionData,g=0;g<e.children.length;g++){var x=e.children[g];f-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}d=f}else if(e.positionType==="bottom")d=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},s4=function(e,t){for(var{children:a,depth:n}=n4(e),s=0,o=0;o<a.length;o++){var l=a[o];if(l.type==="elem"){var u=l.elem;s=Math.max(s,u.maxFontSize,u.height)}}s+=2;var d=De(["pstrut"],[]);d.style.height=I(s);for(var f=[],g=n,x=n,w=n,M=0;M<a.length;M++){var k=a[M];if(k.type==="kern")w+=k.size;else{var A=k.elem,N=k.wrapperClasses||[],E=k.wrapperStyle||{},R=De(N,[d,A],void 0,E);R.style.top=I(-s-w-A.depth),k.marginLeft&&(R.style.marginLeft=k.marginLeft),k.marginRight&&(R.style.marginRight=k.marginRight),f.push(R),w+=A.height+A.depth}g=Math.min(g,w),x=Math.max(x,w)}var P=De(["vlist"],f);P.style.height=I(x);var O;if(g<0){var Y=De([],[]),q=De(["vlist"],[Y]);q.style.height=I(-g);var j=De(["vlist-s"],[new Fe("")]);O=[De(["vlist-r"],[P,j]),De(["vlist-r"],[q])]}else O=[De(["vlist-r"],[P])];var _=De(["vlist-t"],O);return O.length===2&&_.classes.push("vlist-t2"),_.height=x,_.depth=-g,_},o4=(r,e)=>{var t=De(["mspace"],[],e),a=fe(r,e);return t.style.marginRight=I(a),t},St=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},no={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},so={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},i4=function(e,t){var[a,n,s]=so[e],o=new S0(a),l=new u0([o],{width:I(n),height:I(s),style:"width:"+I(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=ro(["overlay"],[l],t);return u.height=s,u.style.height=I(s),u.style.width=I(n),u},C={fontMap:no,makeSymbol:Ue,mathsym:Z2,makeSpan:De,makeSvgSpan:ro,makeLineSpan:t4,makeAnchor:r4,makeFragment:ao,wrapFragment:a4,makeVList:s4,makeOrd:J2,makeGlue:o4,staticSvg:i4,svgData:so,tryCombineChars:e4},he={number:3,unit:"mu"},A0={number:4,unit:"mu"},n0={number:5,unit:"mu"},l4={mord:{mop:he,mbin:A0,mrel:n0,minner:he},mop:{mord:he,mop:he,mrel:n0,minner:he},mbin:{mord:A0,mop:A0,mopen:A0,minner:A0},mrel:{mord:n0,mop:n0,mopen:n0,minner:n0},mopen:{},mclose:{mop:he,mbin:A0,mrel:n0,minner:he},mpunct:{mord:he,mop:he,mrel:n0,mopen:he,mclose:he,mpunct:he,minner:he},minner:{mord:he,mop:he,mbin:A0,mrel:n0,mopen:he,mpunct:he,minner:he}},c4={mord:{mop:he},mop:{mord:he,mop:he},mbin:{},mrel:{},mopen:{},mclose:{mop:he},mpunct:{},minner:{mop:he}},oo={},jt={},It={};function F(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,l={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},u=0;u<t.length;++u)oo[t[u]]=l;e&&(s&&(jt[e]=s),o&&(It[e]=o))}function L0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;F({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var Pt=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ge=function(e){return e.type==="ordgroup"?e.body:[e]},d0=C.makeSpan,u4=["leftmost","mbin","mopen","mrel","mop","mpunct"],d4=["rightmost","mrel","mclose","mpunct"],m4={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},h4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ce=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var l=te(e[o],t);if(l instanceof at){var u=l.children;s.push(...u)}else s.push(l)}if(C.tryCombineChars(s),!a)return s;var d=t;if(e.length===1){var f=e[0];f.type==="sizing"?d=t.havingSize(f.size):f.type==="styling"&&(d=t.havingStyle(m4[f.style]))}var g=d0([n[0]||"leftmost"],[],t),x=d0([n[1]||"rightmost"],[],t),w=a==="root";return un(s,(M,k)=>{var A=k.classes[0],N=M.classes[0];A==="mbin"&&d4.includes(N)?k.classes[0]="mord":N==="mbin"&&u4.includes(A)&&(M.classes[0]="mord")},{node:g},x,w),un(s,(M,k)=>{var A=Ir(k),N=Ir(M),E=A&&N?M.hasClass("mtight")?c4[A][N]:l4[A][N]:null;if(E)return C.makeGlue(E,d)},{node:g},x,w),s},un=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=io(l);if(u){r(u.children,t,a,null,s);continue}var d=!l.hasClass("mspace");if(d){var f=t(l,a.node);f&&(a.insertAfter?a.insertAfter(f):(e.unshift(f),o++))}d?a.node=l:s&&l.hasClass("newline")&&(a.node=d0(["leftmost"])),a.insertAfter=(g=>x=>{e.splice(g+1,0,x),o++})(o)}n&&e.pop()},io=function(e){return e instanceof at||e instanceof aa||e instanceof nt&&e.hasClass("enclosing")?e:null},f4=function r(e,t){var a=io(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},Ir=function(e,t){return e?(t&&(e=f4(e,t)),h4[e.classes[0]]||null):null},rt=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return d0(t.concat(a))},te=function(e,t,a){if(!e)return d0();if(jt[e.type]){var n=jt[e.type](e,t);if(a&&t.size!==a.size){n=d0(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new L("Got group of unknown type: '"+e.type+"'")};function kt(r,e){var t=d0(["base"],r,e),a=d0(["strut"]);return a.style.height=I(t.height+t.depth),t.depth&&(a.style.verticalAlign=I(-t.depth)),t.children.unshift(a),t}function Pr(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=Ce(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],l=0;l<a.length;l++)if(o.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var u=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,o.push(a[l]),a[l].hasClass("nobreak")&&(u=!0);u||(s.push(kt(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(kt(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(kt(o,e));var d;t?(d=kt(Ce(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var f=d0(["katex-html"],s);if(f.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=I(f.height+f.depth),f.depth&&(g.style.verticalAlign=I(-f.depth))}return f}function lo(r){return new at(r)}class je{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=w0(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof Ze&&this.children[a+1]instanceof Ze){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof Ze;)n+=this.children[++a].toText();e.appendChild(new Ze(n).toNode())}else e.appendChild(this.children[a].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=re.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+re.escape(w0(this.classes))+'"'),e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Ze{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return re.escape(this.toText())}toText(){return this.text}}class p4{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",I(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+I(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var B={MathNode:je,TextNode:Ze,SpaceNode:p4,newDocumentFragment:lo},qe=function(e,t,a){return ie[t][e]&&ie[t][e].replace&&e.charCodeAt(0)!==55349&&!(to.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=ie[t][e].replace),new B.TextNode(e)},sa=function(e){return e.length===1?e[0]:new B.MathNode("mrow",e)},oa=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(["\\imath","\\jmath"].includes(s))return null;ie[n][s]&&ie[n][s].replace&&(s=ie[n][s].replace);var o=C.fontMap[a].fontName;return ra(s,o,n)?C.fontMap[a].variant:null};function fr(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof Ze&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof Ze&&t.text===","}else return!1}var Re=function(e,t,a){if(e.length===1){var n=oe(e[0],t);return a&&n instanceof je&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,l=0;l<e.length;l++){var u=oe(e[l],t);if(u instanceof je&&o instanceof je){if(u.type==="mtext"&&o.type==="mtext"&&u.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...u.children);continue}else if(u.type==="mn"&&o.type==="mn"){o.children.push(...u.children);continue}else if(fr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&fr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||fr(o))){var d=u.children[0];d instanceof je&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var f=o.children[0];if(f instanceof Ze&&f.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var g=u.children[0];g instanceof Ze&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),s.pop())}}}s.push(u),o=u}return s},k0=function(e,t,a){return sa(Re(e,t,a))},oe=function(e,t){if(!e)return new B.MathNode("mrow");if(It[e.type]){var a=It[e.type](e,t);return a}else throw new L("Got group of unknown type: '"+e.type+"'")};function dn(r,e,t,a,n){var s=Re(r,t),o;s.length===1&&s[0]instanceof je&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new B.MathNode("mrow",s);var l=new B.MathNode("annotation",[new B.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new B.MathNode("semantics",[o,l]),d=new B.MathNode("math",[u]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var f=n?"katex":"katex-mathml";return C.makeSpan([f],[d])}var co=function(e){return new o0({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},uo=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=C.makeSpan(a,[e])}return e},v4=function(e,t,a){var n=co(a),s;if(a.output==="mathml")return dn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Pr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=dn(e,t,n,a.displayMode,!1),u=Pr(e,n);s=C.makeSpan(["katex"],[l,u])}return uo(s,a)},g4=function(e,t,a){var n=co(a),s=Pr(e,n),o=C.makeSpan(["katex"],[s]);return uo(o,a)},b4={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},y4=function(e){var t=new B.MathNode("mo",[new B.TextNode(b4[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},x4={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},w4=function(e){return e.type==="ordgroup"?e.body.length:1},S4=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,f=w4(d.base),g,x,w;if(f>5)u==="widehat"||u==="widecheck"?(g=420,l=2364,w=.42,x=u+"4"):(g=312,l=2340,w=.34,x="tilde4");else{var M=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][M],g=[0,239,300,360,420][M],w=[0,.24,.3,.3,.36,.42][M],x=u+M):(l=[0,600,1033,2339,2340][M],g=[0,260,286,306,312][M],w=[0,.26,.286,.3,.306,.34][M],x="tilde"+M)}var k=new S0(x),A=new u0([k],{width:"100%",height:I(w),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[A],t),minWidth:0,height:w}}else{var N=[],E=x4[u],[R,P,O]=E,Y=O/1e3,q=R.length,j,_;if(q===1){var le=E[3];j=["hide-tail"],_=[le]}else if(q===2)j=["halfarrow-left","halfarrow-right"],_=["xMinYMin","xMaxYMin"];else if(q===3)j=["brace-left","brace-center","brace-right"],_=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
325
|
-
`+q+" children.");for(var pe=0;pe<q;pe++){var ae=new S0(R[pe]),be=new u0([ae],{width:"400em",height:I(Y),viewBox:"0 0 "+l+" "+O,preserveAspectRatio:_[pe]+" slice"}),ne=C.makeSvgSpan([j[pe]],[be],t);if(q===1)return{span:ne,minWidth:P,height:Y};ne.style.height=I(Y),N.push(ne)}return{span:C.makeSpan(["stretchy"],N,t),minWidth:P,height:Y}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=I(o),s>0&&(n.style.minWidth=I(s)),n},k4=function(e,t,a,n,s){var o,l=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=C.makeSpan(["stretchy",t],[],s),t==="fbox"){var u=s.color&&s.getColor();u&&(o.style.borderColor=u)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new Lr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Lr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new u0(d,{width:"100%",height:I(l)});o=C.makeSvgSpan([],[f],s)}return o.height=l,o.style.height=I(l),o},m0={encloseSpan:k4,mathMLnode:y4,svgSpan:S4};function Q(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function ia(r){var e=Ut(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Ut(r){return r&&(r.type==="atom"||X2.hasOwnProperty(r.type))?r:null}var la=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=$2(te(r,e)),r.base=a):(a=Q(r,"accent"),t=a.base);var s=te(t,e.havingCrampedStyle()),o=a.isShifty&&re.isCharacterBox(t),l=0;if(o){var u=re.getBaseElem(t),d=te(u,e.havingCrampedStyle());l=an(d).skew}var f=a.label==="\\c",g=f?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=m0.svgSpan(a,e),x=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+I(2*l)+")",marginLeft:I(2*l)}:void 0}]},e);else{var w,M;a.label==="\\vec"?(w=C.staticSvg("vec",e),M=C.svgData.vec[1]):(w=C.makeOrd({mode:a.mode,text:a.label},e,"textord"),w=an(w),w.italic=0,M=w.width,f&&(g+=w.depth)),x=C.makeSpan(["accent-body"],[w]);var k=a.label==="\\textcircled";k&&(x.classes.push("accent-full"),g=s.height);var A=l;k||(A-=M/2),x.style.left=I(A),a.label==="\\textcircled"&&(x.style.top=".2em"),x=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:x}]},e)}var N=C.makeSpan(["mord","accent"],[x],e);return n?(n.children[0]=N,n.height=Math.max(N.height,n.height),n.classes[0]="mord",n):N},mo=(r,e)=>{var t=r.isStretchy?m0.mathMLnode(r.label):new B.MathNode("mo",[qe(r.label,r.mode)]),a=new B.MathNode("mover",[oe(r.base,e),t]);return a.setAttribute("accent","true"),a},C4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));F({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Pt(e[0]),a=!C4.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:la,mathmlBuilder:mo});F({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:la,mathmlBuilder:mo});F({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=te(r.base,e),a=m0.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=m0.mathMLnode(r.label),a=new B.MathNode("munder",[oe(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Ct=r=>{var e=new B.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};F({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=C.wrapFragment(te(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=C.wrapFragment(te(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var l=m0.svgSpan(r,e),u=-e.fontMetrics().axisHeight+.5*l.height,d=-e.fontMetrics().axisHeight-.5*l.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(d-=n.depth);var f;if(o){var g=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u},{type:"elem",elem:o,shift:g}]},e)}else f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u}]},e);return f.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[f],e)},mathmlBuilder(r,e){var t=m0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=Ct(oe(r.body,e));if(r.below){var s=Ct(oe(r.below,e));a=new B.MathNode("munderover",[t,s,n])}else a=new B.MathNode("mover",[t,n])}else if(r.below){var o=Ct(oe(r.below,e));a=new B.MathNode("munder",[t,o])}else a=Ct(),a=new B.MathNode("mover",[t,a]);return a}});var M4=C.makeSpan;function ho(r,e){var t=Ce(r.body,e,!0);return M4([r.mclass],t,e)}function fo(r,e){var t,a=Re(r.body,e);return r.mclass==="minner"?t=new B.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new B.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new B.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}F({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:ge(n),isCharacterBox:re.isCharacterBox(n)}},htmlBuilder:ho,mathmlBuilder:fo});var $t=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};F({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:$t(e[0]),body:ge(e[1]),isCharacterBox:re.isCharacterBox(e[1])}}});F({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=$t(n):o="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ge(n)},u={type:"supsub",mode:s.mode,base:l,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[u],isCharacterBox:re.isCharacterBox(u)}},htmlBuilder:ho,mathmlBuilder:fo});F({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:$t(e[0]),body:ge(e[0])}},htmlBuilder(r,e){var t=Ce(r.body,e,!0),a=C.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=Re(r.body,e),a=new B.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var T4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mn=()=>({type:"styling",body:[],mode:"math",style:"display"}),hn=r=>r.type==="textord"&&r.text==="@",z4=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function A4(r,e,t){var a=T4[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),l=t.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[n,o,l]};return t.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function N4(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new L("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],l=mn(),u=0;u<o.length;u++)if(!hn(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=ia(o[u]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var g=0;g<2;g++){for(var x=!0,w=u+1;w<o.length;w++){if(z4(o[w],d)){x=!1,u=w;break}if(hn(o[w]))throw new L("Missing a "+d+" character to complete a CD arrow.",o[w]);f[g].body.push(o[w])}if(x)throw new L("Missing a "+d+" character to complete a CD arrow.",o[u])}else throw new L('Expected one of "<>AV=|." after @',o[u]);var M=A4(d,f,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=mn()}s%2===0?a.push(l):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var A=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}F({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=C.wrapFragment(te(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=I(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new B.MathNode("mrow",[oe(r.label,e)]);return t=new B.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new B.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});F({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=C.wrapFragment(te(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new B.MathNode("mrow",[oe(r.fragment,e)])}});F({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=Q(e[0],"ordgroup"),n=a.body,s="",o=0;o<n.length;o++){var l=Q(n[o],"textord");s+=l.text}var u=parseInt(s),d;if(isNaN(u))throw new L("\\@char has non-numeric argument "+s);if(u<0||u>=1114111)throw new L("\\@char with invalid code point "+s);return u<=65535?d=String.fromCharCode(u):(u-=65536,d=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:t.mode,text:d}}});var po=(r,e)=>{var t=Ce(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},vo=(r,e)=>{var t=Re(r.body,e.withColor(r.color)),a=new B.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};F({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=Q(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:ge(n)}},htmlBuilder:po,mathmlBuilder:vo});F({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=Q(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:po,mathmlBuilder:vo});F({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&Q(n,"size").value}},htmlBuilder(r,e){var t=C.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=I(fe(r.size,e)))),t},mathmlBuilder(r,e){var t=new B.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",I(fe(r.size,e)))),t}});var Or={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},go=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},D4=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},bo=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};F({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(Or[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=Or[a.text]),Q(e.parseFunction(),"internal");throw new L("Invalid token after macro prefix",a)}});F({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new L("Expected a control sequence",a);for(var s=0,o,l=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),l[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new L('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new L('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if(a.text==="EOF")throw new L("Expected a macro definition");l[s].push(a.text)}var{tokens:u}=e.gullet.consumeArg();return o&&u.unshift(o),(t==="\\edef"||t==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(n,{tokens:u,numArgs:s,delimiters:l},t===Or[t]),{type:"internal",mode:e.mode}}});F({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=go(e.gullet.popToken());e.gullet.consumeSpaces();var n=D4(e);return bo(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});F({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=go(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return bo(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var K0=function(e,t,a){var n=ie.math[e]&&ie.math[e].replace,s=ra(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},ca=function(e,t,a,n){var s=a.havingBaseStyle(t),o=C.makeSpan(n.concat(s.sizingClasses(a)),[e],a),l=s.sizeMultiplier/a.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=s.sizeMultiplier,o},yo=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=I(s),e.height-=s,e.depth+=s},E4=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=ca(l,t,n,o);return a&&yo(u,n,t),u},R4=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},xo=function(e,t,a,n,s,o){var l=R4(e,t,s,n),u=ca(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&yo(u,n,K.TEXT),u},pr=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=C.makeSpan(["delimsizinginner",n],[C.makeSpan([],[C.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},vr=function(e,t,a){var n=Ye["Size4-Regular"][e.charCodeAt(0)]?Ye["Size4-Regular"][e.charCodeAt(0)][4]:Ye["Size1-Regular"][e.charCodeAt(0)][4],s=new S0("inner",P2(e,Math.round(1e3*t))),o=new u0([s],{width:I(n),height:I(t),style:"width:"+I(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=I(t),l.style.width=I(n),{type:"elem",elem:l}},Fr=.008,Mt={type:"kern",size:-1*Fr},B4=["|","\\lvert","\\rvert","\\vert"],L4=["\\|","\\lVert","\\rVert","\\Vert"],wo=function(e,t,a,n,s,o){var l,u,d,f,g="",x=0;l=d=f=e,u=null;var w="Size1-Regular";e==="\\uparrow"?d=f="⏐":e==="\\Uparrow"?d=f="‖":e==="\\downarrow"?l=d="⏐":e==="\\Downarrow"?l=d="‖":e==="\\updownarrow"?(l="\\uparrow",d="⏐",f="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",d="‖",f="\\Downarrow"):B4.includes(e)?(d="∣",g="vert",x=333):L4.includes(e)?(d="∥",g="doublevert",x=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",f="⎣",w="Size4-Regular",g="lbrack",x=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",f="⎦",w="Size4-Regular",g="rbrack",x=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",f="⎣",w="Size4-Regular",g="lfloor",x=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=f="⎢",w="Size4-Regular",g="lceil",x=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",f="⎦",w="Size4-Regular",g="rfloor",x=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=f="⎥",w="Size4-Regular",g="rceil",x=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",f="⎝",w="Size4-Regular",g="lparen",x=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",f="⎠",w="Size4-Regular",g="rparen",x=875):e==="\\{"||e==="\\lbrace"?(l="⎧",u="⎨",f="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",u="⎬",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",f="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",f="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",f="⎩",d="⎪",w="Size4-Regular");var M=K0(l,w,s),k=M.height+M.depth,A=K0(d,w,s),N=A.height+A.depth,E=K0(f,w,s),R=E.height+E.depth,P=0,O=1;if(u!==null){var Y=K0(u,w,s);P=Y.height+Y.depth,O=2}var q=k+R+P,j=Math.max(0,Math.ceil((t-q)/(O*N))),_=q+j*O*N,le=n.fontMetrics().axisHeight;a&&(le*=n.sizeMultiplier);var pe=_/2-le,ae=[];if(g.length>0){var be=_-k-R,ne=Math.round(_*1e3),de=O2(g,Math.round(be*1e3)),ce=new S0(g,de),Me=(x/1e3).toFixed(3)+"em",X=(ne/1e3).toFixed(3)+"em",t0=new u0([ce],{width:Me,height:X,viewBox:"0 0 "+x+" "+ne}),Be=C.makeSvgSpan([],[t0],n);Be.height=ne/1e3,Be.style.width=Me,Be.style.height=X,ae.push({type:"elem",elem:Be})}else{if(ae.push(pr(f,w,s)),ae.push(Mt),u===null){var Te=_-k-R+2*Fr;ae.push(vr(d,Te,n))}else{var we=(_-k-R-P)/2+2*Fr;ae.push(vr(d,we,n)),ae.push(Mt),ae.push(pr(u,w,s)),ae.push(Mt),ae.push(vr(d,we,n))}ae.push(Mt),ae.push(pr(l,w,s))}var me=n.havingBaseStyle(K.TEXT),Se=C.makeVList({positionType:"bottom",positionData:pe,children:ae},me);return ca(C.makeSpan(["delimsizing","mult"],[Se],me),K.TEXT,n,o)},gr=80,br=.08,yr=function(e,t,a,n,s){var o=I2(e,n,a),l=new S0(e,o),u=new u0([l],{width:"400em",height:I(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},j4=function(e,t){var a=t.havingBaseSizing(),n=Mo("\\surd",e*a.sizeMultiplier,Co,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l,u=0,d=0,f=0,g;return n.type==="small"?(f=1e3+1e3*o+gr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+br)/s,d=(1+o)/s,l=yr("sqrtMain",u,f,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(f=(1e3+gr)*J0[n.size],d=(J0[n.size]+o)/s,u=(J0[n.size]+o+br)/s,l=yr("sqrtSize"+n.size,u,f,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+br,d=e+o,f=Math.floor(1e3*e+o)+gr,l=yr("sqrtTall",u,f,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=I(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},So=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],I4=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ko=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],J0=[0,1.2,1.8,2.4,3],P4=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),So.includes(e)||ko.includes(e))return xo(e,t,!1,a,n,s);if(I4.includes(e))return wo(e,J0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},O4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],F4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],Co=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],q4=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Mo=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;o<a.length&&a[o].type!=="stack";o++){var l=K0(e,q4(a[o]),"math"),u=l.height+l.depth;if(a[o].type==="small"){var d=n.havingBaseStyle(a[o].style);u*=d.sizeMultiplier}if(u>t)return a[o]}return a[a.length-1]},To=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;ko.includes(e)?l=O4:So.includes(e)?l=Co:l=F4;var u=Mo(e,t,l,n);return u.type==="small"?E4(e,u.style,a,n,s,o):u.type==="large"?xo(e,u.size,a,n,s,o):wo(e,t,a,n,s,o)},H4=function(e,t,a,n,s,o){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,d=5/n.fontMetrics().ptPerEm,f=Math.max(t-l,a+l),g=Math.max(f/500*u,2*f-d);return To(e,g,!0,n,s,o)},c0={sqrtImage:j4,sizedDelim:P4,sizeToMaxHeight:J0,customSizedDelim:To,leftRightDelim:H4},fn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},V4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Wt(r,e){var t=Ut(r);if(t&&V4.includes(t.text))return t;throw t?new L("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new L("Invalid delimiter type '"+r.type+"'",r)}F({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=Wt(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:fn[r.funcName].size,mclass:fn[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?C.makeSpan([r.mclass]):c0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(qe(r.delim,r.mode));var t=new B.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=I(c0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function pn(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}F({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new L("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Wt(e[0],r).text,color:t}}});F({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Wt(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=Q(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{pn(r);for(var t=Ce(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o<t.length;o++)t[o].isMiddle?s=!0:(a=Math.max(t[o].height,a),n=Math.max(t[o].depth,n));a*=e.sizeMultiplier,n*=e.sizeMultiplier;var l;if(r.left==="."?l=rt(e,["mopen"]):l=c0.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(l),s)for(var u=1;u<t.length;u++){var d=t[u],f=d.isMiddle;f&&(t[u]=c0.leftRightDelim(f.delim,a,n,f.options,r.mode,[]))}var g;if(r.right===".")g=rt(e,["mclose"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;g=c0.leftRightDelim(r.right,a,n,x,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{pn(r);var t=Re(r.body,e);if(r.left!=="."){var a=new B.MathNode("mo",[qe(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new B.MathNode("mo",[qe(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return sa(t)}});F({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Wt(e[0],r);if(!r.parser.leftrightDepth)throw new L("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=rt(e,[]);else{t=c0.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?qe("|","text"):qe(r.delim,r.mode),a=new B.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var ua=(r,e)=>{var t=C.wrapFragment(te(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,l=re.isCharacterBox(r.body);if(a==="sout")s=C.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var u=fe({number:.6,unit:"pt"},e),d=fe({number:.35,unit:"ex"},e),f=e.havingBaseSizing();n=n/f.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=I(g/2+u);var x=Math.floor(1e3*g*n),w=L2(x),M=new u0([new S0("phase",w)],{width:"400em",height:I(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=I(g),o=t.depth+u+d}else{/cancel/.test(a)?l||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var k=0,A=0,N=0;/box/.test(a)?(N=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:N),A=k):a==="angl"?(N=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*N,A=Math.max(0,.25-t.depth)):(k=l?.2:0,A=k),s=m0.encloseSpan(t,a,k,A,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=I(N)):a==="angl"&&N!==.049&&(s.style.borderTopWidth=I(N),s.style.borderRightWidth=I(N)),o=t.depth+A,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var E;if(r.backgroundColor)E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var R=/cancel|phase/.test(a)?["svg-align"]:[];E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:R}]},e)}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[E],e):C.makeSpan(["mord"],[E],e)},da=(r,e)=>{var t=0,a=new B.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[oe(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};F({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=Q(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:ua,mathmlBuilder:da});F({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=Q(e[0],"color-token").color,o=Q(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:l}},htmlBuilder:ua,mathmlBuilder:da});F({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});F({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:ua,mathmlBuilder:da});F({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var zo={};function Je(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,l={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},u=0;u<t.length;++u)zo[t[u]]=l;s&&(jt[e]=s),o&&(It[e]=o)}var Ao={};function v(r,e){Ao[r]=e}function vn(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var Xt=r=>{var e=r.parser.settings;if(!e.displayMode)throw new L("{"+r.envName+"} can be used only in display mode.")};function ma(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function C0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:d,emptySingleRow:f,maxNumCols:g,leqno:x}=e;if(r.gullet.beginGroup(),d||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new L("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var M=[],k=[M],A=[],N=[],E=u!=null?[]:void 0;function R(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function P(){E&&(r.gullet.macros.get("\\df@tag")?(E.push(r.subparse([new Ie("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),N.push(vn(r));;){var O=r.parseExpression(!1,d?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),O={type:"ordgroup",mode:r.mode,body:O},t&&(O={type:"styling",mode:r.mode,style:t,body:[O]}),M.push(O);var Y=r.fetch().text;if(Y==="&"){if(g&&M.length===g){if(d||l)throw new L("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(Y==="\\end"){P(),M.length===1&&O.type==="styling"&&O.body[0].body.length===0&&(k.length>1||!f)&&k.pop(),N.length<k.length+1&&N.push([]);break}else if(Y==="\\\\"){r.consume();var q=void 0;r.gullet.future().text!==" "&&(q=r.parseSizeGroup(!0)),A.push(q?q.value:null),P(),N.push(vn(r)),M=[],k.push(M),R()}else throw new L("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:k,cols:s,rowGaps:A,hskipBeforeAndAfter:a,hLinesBeforeRow:N,colSeparationType:l,tags:E,leqno:x}}function ha(r){return r.slice(0,1)==="d"?"display":"text"}var Qe=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,l=0,u=new Array(s),d=[],f=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),g=1/t.fontMetrics().ptPerEm,x=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(K.SCRIPT).sizeMultiplier;x=.2778*(w/t.sizeMultiplier)}var M=e.colSeparationType==="CD"?fe({number:3,unit:"ex"},t):12*g,k=3*g,A=e.arraystretch*M,N=.7*A,E=.3*A,R=0;function P(it){for(var lt=0;lt<it.length;++lt)lt>0&&(R+=.25),d.push({pos:R,isDashed:it[lt]})}for(P(o[0]),a=0;a<e.body.length;++a){var O=e.body[a],Y=N,q=E;l<O.length&&(l=O.length);var j=new Array(O.length);for(n=0;n<O.length;++n){var _=te(O[n],t);q<_.depth&&(q=_.depth),Y<_.height&&(Y=_.height),j[n]=_}var le=e.rowGaps[a],pe=0;le&&(pe=fe(le,t),pe>0&&(pe+=E,q<pe&&(q=pe),pe=0)),e.addJot&&(q+=k),j.height=Y,j.depth=q,R+=Y,j.pos=R,R+=q+pe,u[a]=j,P(o[a+1])}var ae=R/2+t.fontMetrics().axisHeight,be=e.cols||[],ne=[],de,ce,Me=[];if(e.tags&&e.tags.some(it=>it))for(a=0;a<s;++a){var X=u[a],t0=X.pos-ae,Be=e.tags[a],Te=void 0;Be===!0?Te=C.makeSpan(["eqn-num"],[],t):Be===!1?Te=C.makeSpan([],[],t):Te=C.makeSpan([],Ce(Be,t,!0),t),Te.depth=X.depth,Te.height=X.height,Me.push({type:"elem",elem:Te,shift:t0})}for(n=0,ce=0;n<l||ce<be.length;++n,++ce){for(var we=be[ce]||{},me=!0;we.type==="separator";){if(me||(de=C.makeSpan(["arraycolsep"],[]),de.style.width=I(t.fontMetrics().doubleRuleSep),ne.push(de)),we.separator==="|"||we.separator===":"){var Se=we.separator==="|"?"solid":"dashed",Le=C.makeSpan(["vertical-separator"],[],t);Le.style.height=I(R),Le.style.borderRightWidth=I(f),Le.style.borderRightStyle=Se,Le.style.margin="0 "+I(-f/2);var He=R-ae;He&&(Le.style.verticalAlign=I(-He)),ne.push(Le)}else throw new L("Invalid separator type: "+we.separator);ce++,we=be[ce]||{},me=!1}if(!(n>=l)){var se=void 0;(n>0||e.hskipBeforeAndAfter)&&(se=re.deflt(we.pregap,x),se!==0&&(de=C.makeSpan(["arraycolsep"],[]),de.style.width=I(se),ne.push(de)));var Ve=[];for(a=0;a<s;++a){var _e=u[a],Ge=_e[n];if(Ge){var M0=_e.pos-ae;Ge.depth=_e.depth,Ge.height=_e.height,Ve.push({type:"elem",elem:Ge,shift:M0})}}Ve=C.makeVList({positionType:"individualShift",children:Ve},t),Ve=C.makeSpan(["col-align-"+(we.align||"c")],[Ve]),ne.push(Ve),(n<l-1||e.hskipBeforeAndAfter)&&(se=re.deflt(we.postgap,x),se!==0&&(de=C.makeSpan(["arraycolsep"],[]),de.style.width=I(se),ne.push(de)))}}if(u=C.makeSpan(["mtable"],ne),d.length>0){for(var r0=C.makeLineSpan("hline",t,f),ot=C.makeLineSpan("hdashline",t,f),W=[{type:"elem",elem:u,shift:0}];d.length>0;){var f0=d.pop(),xa=f0.pos-ae;f0.isDashed?W.push({type:"elem",elem:ot,shift:xa}):W.push({type:"elem",elem:r0,shift:xa})}u=C.makeVList({positionType:"individualShift",children:W},t)}if(Me.length===0)return C.makeSpan(["mord"],[u],t);var Zt=C.makeVList({positionType:"individualShift",children:Me},t);return Zt=C.makeSpan(["tag"],[Zt],t),C.makeFragment([u,Zt])},_4={c:"center ",l:"left ",r:"right "},e0=function(e,t){for(var a=[],n=new B.MathNode("mtd",[],["mtr-glue"]),s=new B.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var l=e.body[o],u=[],d=0;d<l.length;d++)u.push(new B.MathNode("mtd",[oe(l[d],t)]));e.tags&&e.tags[o]&&(u.unshift(n),u.push(n),e.leqno?u.unshift(s):u.push(s)),a.push(new B.MathNode("mtr",u))}var f=new B.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);f.setAttribute("rowspacing",I(g));var x="",w="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",A=!1,N=0,E=M.length;M[0].type==="separator"&&(x+="top ",N=1),M[M.length-1].type==="separator"&&(x+="bottom ",E-=1);for(var R=N;R<E;R++)M[R].type==="align"?(w+=_4[M[R].align],A&&(k+="none "),A=!0):M[R].type==="separator"&&A&&(k+=M[R].separator==="|"?"solid ":"dashed ",A=!1);f.setAttribute("columnalign",w.trim()),/[sd]/.test(k)&&f.setAttribute("columnlines",k.trim())}if(e.colSeparationType==="align"){for(var P=e.cols||[],O="",Y=1;Y<P.length;Y++)O+=Y%2?"0em ":"1em ";f.setAttribute("columnspacing",O.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");var q="",j=e.hLinesBeforeRow;x+=j[0].length>0?"left ":"",x+=j[j.length-1].length>0?"right ":"";for(var _=1;_<j.length-1;_++)q+=j[_].length===0?"none ":j[_][0]?"dashed ":"solid ";return/[sd]/.test(q)&&f.setAttribute("rowlines",q.trim()),x!==""&&(f=new B.MathNode("menclose",[f]),f.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(f=new B.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},No=function(e,t){e.envName.indexOf("ed")===-1&&Xt(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=C0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:ma(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),l,u=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var f="",g=0;g<t[0].body.length;g++){var x=Q(t[0].body[g],"textord");f+=x.text}l=Number(f),u=l*2}var w=!u;o.body.forEach(function(N){for(var E=1;E<N.length;E+=2){var R=Q(N[E],"styling"),P=Q(R.body[0],"ordgroup");P.body.unshift(d)}if(w)u<N.length&&(u=N.length);else{var O=N.length/2;if(l<O)throw new L("Too many math in a row: "+("expected "+l+", but got "+O),N[0])}});for(var M=0;M<u;++M){var k="r",A=0;M%2===1?k="l":M>0&&w&&(A=1),a[M]={type:"align",align:k,pregap:A,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};Je({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Ut(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ia(o),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new L("Unknown column alignment: "+u,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return C0(r.parser,s,ha(r.envName))},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new L("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=C0(r.parser,a,ha(r.envName)),o=Math.max(0,...s.body.map(l=>l.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=C0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Ut(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ia(o),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new L("Unknown column alignment: "+u,o)});if(n.length>1)throw new L("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=C0(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new L("{subarray} can contain only one column");return s},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=C0(r.parser,e,ha(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:No,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&Xt(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ma(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return C0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:No,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Xt(r);var e={autoTag:ma(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return C0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Xt(r),N4(r.parser)},htmlBuilder:Qe,mathmlBuilder:e0});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");F({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new L(r.funcName+" valid only within array environment")}});var gn=zo;F({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new L("Invalid environment name",n);for(var s="",o=0;o<n.body.length;++o)s+=Q(n.body[o],"textord").text;if(a==="\\begin"){if(!gn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=gn[s],{args:u,optArgs:d}=t.parseArguments("\\begin{"+s+"}",l),f={mode:t.mode,envName:s,parser:t},g=l.handler(f,u,d);t.expect("\\end",!1);var x=t.nextToken,w=Q(t.parseFunction(),"environment");if(w.name!==s)throw new L("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",x);return g}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Do=(r,e)=>{var t=r.font,a=e.withFont(t);return te(r.body,a)},Eo=(r,e)=>{var t=r.font,a=e.withFont(t);return oe(r.body,a)},bn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};F({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=Pt(e[0]),s=a;return s in bn&&(s=bn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Do,mathmlBuilder:Eo});F({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=re.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:$t(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});F({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),l="math"+a.slice(1);return{type:"font",mode:s,font:l,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Do,mathmlBuilder:Eo});var Ro=(r,e)=>{var t=e;return r==="display"?t=t.id>=K.SCRIPT.id?t.text():K.DISPLAY:r==="text"&&t.size===K.DISPLAY.size?t=K.TEXT:r==="script"?t=K.SCRIPT:r==="scriptscript"&&(t=K.SCRIPTSCRIPT),t},fa=(r,e)=>{var t=Ro(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=te(r.numer,s,e);if(r.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<u?u:o.depth}s=e.havingStyle(n);var d=te(r.denom,s,e),f,g,x;r.hasBarLine?(r.barSize?(g=fe(r.barSize,e),f=C.makeLineSpan("frac-line",e,g)):f=C.makeLineSpan("frac-line",e),g=f.height,x=f.height):(f=null,g=0,x=e.fontMetrics().defaultRuleThickness);var w,M,k;t.size===K.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,g>0?M=3*x:M=7*x,k=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,M=x):(w=e.fontMetrics().num3,M=3*x),k=e.fontMetrics().denom2);var A;if(f){var E=e.fontMetrics().axisHeight;w-o.depth-(E+.5*g)<M&&(w+=M-(w-o.depth-(E+.5*g))),E-.5*g-(d.height-k)<M&&(k+=M-(E-.5*g-(d.height-k)));var R=-(E-.5*g);A=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:f,shift:R},{type:"elem",elem:o,shift:-w}]},e)}else{var N=w-o.depth-(d.height-k);N<M&&(w+=.5*(M-N),k+=.5*(M-N)),A=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),A.height*=s.sizeMultiplier/e.sizeMultiplier,A.depth*=s.sizeMultiplier/e.sizeMultiplier;var P;t.size===K.DISPLAY.size?P=e.fontMetrics().delim1:t.size===K.SCRIPTSCRIPT.size?P=e.havingStyle(K.SCRIPT).fontMetrics().delim2:P=e.fontMetrics().delim2;var O,Y;return r.leftDelim==null?O=rt(e,["mopen"]):O=c0.customSizedDelim(r.leftDelim,P,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?Y=C.makeSpan([]):r.rightDelim==null?Y=rt(e,["mclose"]):Y=c0.customSizedDelim(r.rightDelim,P,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[O,C.makeSpan(["mfrac"],[A]),Y],e)},pa=(r,e)=>{var t=new B.MathNode("mfrac",[oe(r.numer,e),oe(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=fe(r.barSize,e);t.setAttribute("linethickness",I(a))}var n=Ro(r.size,e.style);if(n.size!==e.style.size){t=new B.MathNode("mstyle",[t]);var s=n.size===K.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var l=new B.MathNode("mo",[new B.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new B.MathNode("mo",[new B.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return sa(o)}return t};F({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,l=null,u=null,d="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",u=")";break;case"\\\\bracefrac":o=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":o=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:l,rightDelim:u,size:d,barSize:null}},htmlBuilder:fa,mathmlBuilder:pa});F({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});F({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var yn=["display","text","script","scriptscript"],xn=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};F({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=Pt(e[0]),o=s.type==="atom"&&s.family==="open"?xn(s.text):null,l=Pt(e[1]),u=l.type==="atom"&&l.family==="close"?xn(l.text):null,d=Q(e[2],"size"),f,g=null;d.isBlank?f=!0:(g=d.value,f=g.number>0);var x="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var M=Q(w.body[0],"textord");x=yn[Number(M.text)]}}else w=Q(w,"textord"),x=yn[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:f,barSize:g,leftDelim:o,rightDelim:u,size:x}},htmlBuilder:fa,mathmlBuilder:pa});F({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Q(e[0],"size").value,token:n}}});F({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=y2(Q(e[1],"infix").size),o=e[2],l=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:l,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:fa,mathmlBuilder:pa});var Bo=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?te(r.sup,e.havingStyle(t.sup()),e):te(r.sub,e.havingStyle(t.sub()),e),n=Q(r.base,"horizBrace")):n=Q(r,"horizBrace");var s=te(n.base,e.havingBaseStyle(K.DISPLAY)),o=m0.svgSpan(n,e),l;if(n.isOver?(l=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=C.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),a){var u=C.makeSpan(["mord",n.isOver?"mover":"munder"],[l],e);n.isOver?l=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:a}]},e):l=C.makeVList({positionType:"bottom",positionData:u.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return C.makeSpan(["mord",n.isOver?"mover":"munder"],[l],e)},G4=(r,e)=>{var t=m0.mathMLnode(r.label);return new B.MathNode(r.isOver?"mover":"munder",[oe(r.base,e),t])};F({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:Bo,mathmlBuilder:G4});F({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=Q(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:ge(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=Ce(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=k0(r.body,e);return t instanceof je||(t=new je("mrow",[t])),t.setAttribute("href",r.href),t}});F({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=Q(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:ge(l)}}});F({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:ge(e[0])}},htmlBuilder(r,e){var t=Ce(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new B.MathNode("mrow",Re(r.body,e))}});F({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=Q(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(a){case"\\htmlClass":u.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":u.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":u.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length!==2)throw new L("Error parsing key-value for \\htmlData");u["data-"+g[0].trim()]=g[1].trim()}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(l)?{type:"html",mode:t.mode,attributes:u,body:ge(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=Ce(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=C.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>k0(r.body,e)});F({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:ge(e[0]),mathml:ge(e[1])}},htmlBuilder:(r,e)=>{var t=Ce(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>k0(r.mathml,e)});var xr=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new L("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!Ks(a))throw new L("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};F({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(t[0])for(var u=Q(t[0],"raw").string,d=u.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length===2){var x=g[1].trim();switch(g[0].trim()){case"alt":l=x;break;case"width":n=xr(x);break;case"height":s=xr(x);break;case"totalheight":o=xr(x);break;default:throw new L("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=Q(e[0],"url").url;return l===""&&(l=w,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:l,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=fe(r.height,e),a=0;r.totalheight.number>0&&(a=fe(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=fe(r.width,e));var s={height:I(t+a)};n>0&&(s.width=I(n)),a>0&&(s.verticalAlign=I(-a));var o=new G2(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=fe(r.height,e),n=0;if(r.totalheight.number>0&&(n=fe(r.totalheight,e)-a,t.setAttribute("valign",I(-n))),t.setAttribute("height",I(a+n)),r.width.number>0){var s=fe(r.width,e);t.setAttribute("width",I(s))}return t.setAttribute("src",r.src),t}});F({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=Q(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return C.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=fe(r.dimension,e);return new B.SpaceNode(t)}});F({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=C.makeSpan([],[te(r.body,e)]),t=C.makeSpan(["inner"],[t],e)):t=C.makeSpan(["inner"],[te(r.body,e)]);var a=C.makeSpan(["fix"],[]),n=C.makeSpan([r.alignment],[t,a],e),s=C.makeSpan(["strut"]);return s.style.height=I(n.height+n.depth),n.depth&&(s.style.verticalAlign=I(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[oe(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});F({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});F({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new L("Mismatched "+r.funcName)}});var wn=(r,e)=>{switch(e.style.size){case K.DISPLAY.size:return r.display;case K.TEXT.size:return r.text;case K.SCRIPT.size:return r.script;case K.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};F({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:ge(e[0]),text:ge(e[1]),script:ge(e[2]),scriptscript:ge(e[3])}},htmlBuilder:(r,e)=>{var t=wn(r,e),a=Ce(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=wn(r,e);return k0(t,e)}});var Lo=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&re.isCharacterBox(t),u,d;if(e){var f=te(e,a.havingStyle(n.sup()),a);d={elem:f,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-f.depth)}}if(t){var g=te(t,a.havingStyle(n.sub()),a);u={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-g.height)}}var x;if(d&&u){var w=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+r.depth+o;x=C.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:I(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:I(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(u){var M=r.height-o;x=C.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:I(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r}]},a)}else if(d){var k=r.depth+o;x=C.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:I(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var A=[x];if(u&&s!==0&&!l){var N=C.makeSpan(["mspace"],[],a);N.style.marginRight=I(s),A.unshift(N)}return C.makeSpan(["mop","op-limits"],A,a)},jo=["\\smallint"],Y0=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"op"),n=!0):s=Q(r,"op");var o=e.style,l=!1;o.size===K.DISPLAY.size&&s.symbol&&!jo.includes(s.name)&&(l=!0);var u;if(s.symbol){var d=l?"Size2-Regular":"Size1-Regular",f="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(f=s.name.slice(1),s.name=f==="oiint"?"\\iint":"\\iiint"),u=C.makeSymbol(s.name,d,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var g=u.italic,x=C.staticSvg(f+"Size"+(l?"2":"1"),e);u=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:x,shift:l?.08:0}]},e),s.name="\\"+f,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var w=Ce(s.body,e,!0);w.length===1&&w[0]instanceof Fe?(u=w[0],u.classes[0]="mop"):u=C.makeSpan(["mop"],w,e)}else{for(var M=[],k=1;k<s.name.length;k++)M.push(C.mathsym(s.name[k],s.mode,e));u=C.makeSpan(["mop"],M,e)}var A=0,N=0;return(u instanceof Fe||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(A=(u.height-u.depth)/2-e.fontMetrics().axisHeight,N=u.italic),n?Lo(u,t,a,e,o,N,A):(A&&(u.style.position="relative",u.style.top=I(A)),u)},st=(r,e)=>{var t;if(r.symbol)t=new je("mo",[qe(r.name,r.mode)]),jo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new je("mo",Re(r.body,e));else{t=new je("mi",[new Ze(r.name.slice(1))]);var a=new je("mo",[qe("","text")]);r.parentIsSupSub?t=new je("mrow",[t,a]):t=lo([t,a])}return t},U4={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};F({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=U4[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Y0,mathmlBuilder:st});F({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ge(a)}},htmlBuilder:Y0,mathmlBuilder:st});var $4={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};F({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Y0,mathmlBuilder:st});F({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Y0,mathmlBuilder:st});F({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=$4[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Y0,mathmlBuilder:st});var Io=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"operatorname"),n=!0):s=Q(r,"operatorname");var o;if(s.body.length>0){for(var l=s.body.map(g=>{var x=g.text;return typeof x=="string"?{type:"textord",mode:g.mode,text:x}:g}),u=Ce(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var f=u[d];f instanceof Fe&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Lo(o,t,a,e,e.style,0,0):o},W4=(r,e)=>{for(var t=Re(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof B.SpaceNode))if(s instanceof B.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof B.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var l=t.map(f=>f.toText()).join("");t=[new B.TextNode(l)]}var u=new B.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new B.MathNode("mo",[qe("","text")]);return r.parentIsSupSub?new B.MathNode("mrow",[u,d]):B.newDocumentFragment([u,d])};F({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:ge(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Io,mathmlBuilder:W4});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");L0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?C.makeFragment(Ce(r.body,e,!1)):C.makeSpan(["mord"],Ce(r.body,e,!0),e)},mathmlBuilder(r,e){return k0(r.body,e,!0)}});F({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=te(r.body,e.havingCrampedStyle()),a=C.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return C.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("mover",[oe(r.body,e),t]);return a.setAttribute("accent","true"),a}});F({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:ge(a)}},htmlBuilder:(r,e)=>{var t=Ce(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Re(r.body,e);return new B.MathNode("mphantom",t)}});F({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[te(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),C.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=Re(ge(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});F({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan(["inner"],[te(r.body,e.withPhantom())]),a=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=Re(ge(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});F({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=Q(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=te(r.body,e),a=fe(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new B.MathNode("mpadded",[oe(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});F({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});F({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=Q(e[0],"size"),o=Q(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&Q(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=C.makeSpan(["mord","rule"],[],e),a=fe(r.width,e),n=fe(r.height,e),s=r.shift?fe(r.shift,e):0;return t.style.borderRightWidth=I(a),t.style.borderTopWidth=I(n),t.style.bottom=I(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=fe(r.width,e),a=fe(r.height,e),n=r.shift?fe(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new B.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",I(t)),o.setAttribute("height",I(a));var l=new B.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",I(n)):(l.setAttribute("height",I(n)),l.setAttribute("depth",I(-n))),l.setAttribute("voffset",I(n)),l}});function Po(r,e,t){for(var a=Ce(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var o=a[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[o+1]==="reset-size"+e.size&&(a[s].classes[o+1]="reset-size"+t.size),a[s].height*=n,a[s].depth*=n}return C.makeFragment(a)}var Sn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],X4=(r,e)=>{var t=e.havingSize(r.size);return Po(r.body,t,e)};F({type:"sizing",names:Sn,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:Sn.indexOf(a)+1,body:s}},htmlBuilder:X4,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Re(r.body,t),n=new B.MathNode("mstyle",a);return n.setAttribute("mathsize",I(t.sizeMultiplier)),n}});F({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&Q(t[0],"ordgroup");if(o)for(var l="",u=0;u<o.body.length;++u){var d=o.body[u];if(l=d.text,l==="t")n=!0;else if(l==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var f=e[0];return{type:"smash",mode:a.mode,body:f,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[te(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return C.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[oe(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});F({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=te(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=C.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<K.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,l=t.height+t.depth+o+n,{span:u,ruleWidth:d,advanceWidth:f}=c0.sqrtImage(l,e),g=u.height-d;g>t.height+t.depth+o&&(o=(o+g-t.height-t.depth)/2);var x=u.height-t.height-o-d;t.style.paddingLeft=I(f);var w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+x)},{type:"elem",elem:u},{type:"kern",size:d}]},e);if(r.index){var M=e.havingStyle(K.SCRIPTSCRIPT),k=te(r.index,M,e),A=.6*(w.height-w.depth),N=C.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:k}]},e),E=C.makeSpan(["root"],[N]);return C.makeSpan(["mord","sqrt"],[E,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new B.MathNode("mroot",[oe(t,e),oe(a,e)]):new B.MathNode("msqrt",[oe(t,e)])}});var kn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};F({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=kn[r.style],a=e.havingStyle(t).withFont("");return Po(r.body,a,e)},mathmlBuilder(r,e){var t=kn[r.style],a=e.havingStyle(t),n=Re(r.body,a),s=new B.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[r.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var Y4=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===K.DISPLAY.size||a.alwaysHandleSupSub);return n?Y0:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===K.DISPLAY.size||a.limits);return s?Io:null}else{if(a.type==="accent")return re.isCharacterBox(a.base)?la:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Bo:null}else return null}else return null};L0({type:"supsub",htmlBuilder(r,e){var t=Y4(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=te(a,e),l,u,d=e.fontMetrics(),f=0,g=0,x=a&&re.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());l=te(n,w,e),x||(f=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=te(s,M,e),x||(g=o.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var k;e.style===K.DISPLAY?k=d.sup1:e.style.cramped?k=d.sup3:k=d.sup2;var A=e.sizeMultiplier,N=I(.5/d.ptPerEm/A),E=null;if(u){var R=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof Fe||R)&&(E=I(-o.italic))}var P;if(l&&u){f=Math.max(f,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var O=d.defaultRuleThickness,Y=4*O;if(f-l.depth-(u.height-g)<Y){g=Y-(f-l.depth)+u.height;var q=.8*d.xHeight-(f-l.depth);q>0&&(f+=q,g-=q)}var j=[{type:"elem",elem:u,shift:g,marginRight:N,marginLeft:E},{type:"elem",elem:l,shift:-f,marginRight:N}];P=C.makeVList({positionType:"individualShift",children:j},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var _=[{type:"elem",elem:u,marginLeft:E,marginRight:N}];P=C.makeVList({positionType:"shift",positionData:g,children:_},e)}else if(l)f=Math.max(f,k,l.depth+.25*d.xHeight),P=C.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:N}]},e);else throw new Error("supsub must have either sup or sub.");var le=Ir(o,"right")||"mord";return C.makeSpan([le],[o,C.makeSpan(["msupsub"],[P])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[oe(r.base,e)];r.sub&&s.push(oe(r.sub,e)),r.sup&&s.push(oe(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var d=r.base;d&&d.type==="op"&&d.limits&&e.style===K.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===K.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var u=r.base;u&&u.type==="op"&&u.limits&&(e.style===K.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===K.DISPLAY)?o="munder":o="msub"}else{var l=r.base;l&&l.type==="op"&&l.limits&&(e.style===K.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===K.DISPLAY)?o="mover":o="msup"}return new B.MathNode(o,s)}});L0({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new B.MathNode("mo",[qe(r.text,r.mode)]);if(r.family==="bin"){var a=oa(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var Oo={mi:"italic",mn:"normal",mtext:"normal"};L0({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new B.MathNode("mi",[qe(r.text,r.mode,e)]),a=oa(r,e)||"italic";return a!==Oo[t.type]&&t.setAttribute("mathvariant",a),t}});L0({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=qe(r.text,r.mode,e),a=oa(r,e)||"normal",n;return r.mode==="text"?n=new B.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new B.MathNode("mn",[t]):r.text==="\\prime"?n=new B.MathNode("mo",[t]):n=new B.MathNode("mi",[t]),a!==Oo[n.type]&&n.setAttribute("mathvariant",a),n}});var wr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Sr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};L0({type:"spacing",htmlBuilder(r,e){if(Sr.hasOwnProperty(r.text)){var t=Sr[r.text].className||"";if(r.mode==="text"){var a=C.makeOrd(r,e,"textord");return a.classes.push(t),a}else return C.makeSpan(["mspace",t],[C.mathsym(r.text,r.mode,e)],e)}else{if(wr.hasOwnProperty(r.text))return C.makeSpan(["mspace",wr[r.text]],[],e);throw new L('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(Sr.hasOwnProperty(r.text))t=new B.MathNode("mtext",[new B.TextNode(" ")]);else{if(wr.hasOwnProperty(r.text))return new B.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var Cn=()=>{var r=new B.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};L0({type:"tag",mathmlBuilder(r,e){var t=new B.MathNode("mtable",[new B.MathNode("mtr",[Cn(),new B.MathNode("mtd",[k0(r.body,e)]),Cn(),new B.MathNode("mtd",[k0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var Mn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Tn={"\\textbf":"textbf","\\textmd":"textmd"},Z4={"\\textit":"textit","\\textup":"textup"},zn=(r,e)=>{var t=r.font;if(t){if(Mn[t])return e.withTextFontFamily(Mn[t]);if(Tn[t])return e.withTextFontWeight(Tn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Z4[t])};F({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:ge(n),font:a}},htmlBuilder(r,e){var t=zn(r,e),a=Ce(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=zn(r,e);return k0(r.body,t)}});F({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=te(r.body,e),a=C.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("munder",[oe(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});F({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=te(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return C.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new B.MathNode("mpadded",[oe(r.body,e)],["vcenter"])}});F({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new L("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=An(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(C.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return C.makeSpan(["mord","text"].concat(n.sizingClasses(e)),C.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new B.TextNode(An(r)),a=new B.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var An=r=>r.body.replace(/ /g,r.star?"␣":" "),y0=oo,Fo=`[ \r
|
|
326
|
-
]`,
|
|
324
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class s0{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var Qe={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},x0={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},rn={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function K2(r,e){Qe[r]=e}function na(r,e,t){if(!Qe[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=Qe[e][a];if(!n&&r[0]in rn&&(a=rn[r[0]].charCodeAt(0),n=Qe[e][a]),!n&&t==="text"&&Qs(a)&&(n=Qe[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var dr={};function J2(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!dr[e]){var t=dr[e]={cssEmPerMu:x0.quad[e]/18};for(var a in x0)x0.hasOwnProperty(a)&&(t[a]=x0[a][e])}return dr[e]}var Q2=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],an=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],nn=function(e,t){return t.size<2?e:Q2[e-1][t.size-1]};class lt{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||lt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=an[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return new lt(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:nn(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:an[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=nn(lt.BASESIZE,e);return this.size===t&&this.textSize===lt.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==lt.BASESIZE?["sizing","reset-size"+this.size,"size"+lt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=J2(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}lt.BASESIZE=6;var jr={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},e4={ex:!0,em:!0,mu:!0},eo=function(e){return typeof e!="string"&&(e=e.unit),e in jr||e in e4||e==="ex"},ge=function(e,t){var a;if(e.unit in jr)a=jr[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new L("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},O=function(e){return+e.toFixed(4)+"em"},St=function(e){return e.filter(t=>t).join(" ")},to=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},ro=function(e){var t=document.createElement(e);t.className=St(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s<this.children.length;s++)t.appendChild(this.children[s].toNode());return t},t4=/[\s"'>/=\x00-\x1f]/,ao=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+ae.escape(St(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=ae.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+ae.escape(a)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(t4.test(s))throw new L("Invalid attribute name '"+s+"'");t+=" "+s+'="'+ae.escape(this.attributes[s])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class o0{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,to.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ro.call(this,"span")}toMarkup(){return ao.call(this,"span")}}class sa{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,to.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ro.call(this,"a")}toMarkup(){return ao.call(this,"a")}}class r4{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+ae.escape(this.src)+'"'+(' alt="'+ae.escape(this.alt)+'"'),t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=ae.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+ae.escape(t)+'"'),e+="'/>",e}}var a4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class $e{constructor(e,t,a,n,s,o,l,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=o||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var d=q2(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=a4[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=O(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=St(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=ae.escape(St(this.classes)),t+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=ae.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+ae.escape(a)+'"');var s=ae.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class mt{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+ae.escape(this.attributes[t])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class kt{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",tn[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+ae.escape(this.alternate)+'"/>':'<path d="'+ae.escape(tn[this.pathName])+'"/>'}}class Ir{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+ae.escape(this.attributes[t])+'"');return e+="/>",e}}function sn(r){if(r instanceof $e)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function n4(r){if(r instanceof o0)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var s4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},o4={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ce={math:{},text:{}};function i(r,e,t,a,n,s){ce[r][n]={font:e,group:t,replace:a},s&&a&&(ce[r][a]=ce[r][n])}var c="math",D="text",m="main",b="ams",fe="accent-token",U="bin",Ee="close",Zt="inner",Z="mathord",ke="op-token",_e="open",G0="punct",x="rel",pt="spacing",S="textord";i(c,m,x,"≡","\\equiv",!0);i(c,m,x,"≺","\\prec",!0);i(c,m,x,"≻","\\succ",!0);i(c,m,x,"∼","\\sim",!0);i(c,m,x,"⊥","\\perp");i(c,m,x,"⪯","\\preceq",!0);i(c,m,x,"⪰","\\succeq",!0);i(c,m,x,"≃","\\simeq",!0);i(c,m,x,"∣","\\mid",!0);i(c,m,x,"≪","\\ll",!0);i(c,m,x,"≫","\\gg",!0);i(c,m,x,"≍","\\asymp",!0);i(c,m,x,"∥","\\parallel");i(c,m,x,"⋈","\\bowtie",!0);i(c,m,x,"⌣","\\smile",!0);i(c,m,x,"⊑","\\sqsubseteq",!0);i(c,m,x,"⊒","\\sqsupseteq",!0);i(c,m,x,"≐","\\doteq",!0);i(c,m,x,"⌢","\\frown",!0);i(c,m,x,"∋","\\ni",!0);i(c,m,x,"∝","\\propto",!0);i(c,m,x,"⊢","\\vdash",!0);i(c,m,x,"⊣","\\dashv",!0);i(c,m,x,"∋","\\owns");i(c,m,G0,".","\\ldotp");i(c,m,G0,"⋅","\\cdotp");i(c,m,S,"#","\\#");i(D,m,S,"#","\\#");i(c,m,S,"&","\\&");i(D,m,S,"&","\\&");i(c,m,S,"ℵ","\\aleph",!0);i(c,m,S,"∀","\\forall",!0);i(c,m,S,"ℏ","\\hbar",!0);i(c,m,S,"∃","\\exists",!0);i(c,m,S,"∇","\\nabla",!0);i(c,m,S,"♭","\\flat",!0);i(c,m,S,"ℓ","\\ell",!0);i(c,m,S,"♮","\\natural",!0);i(c,m,S,"♣","\\clubsuit",!0);i(c,m,S,"℘","\\wp",!0);i(c,m,S,"♯","\\sharp",!0);i(c,m,S,"♢","\\diamondsuit",!0);i(c,m,S,"ℜ","\\Re",!0);i(c,m,S,"♡","\\heartsuit",!0);i(c,m,S,"ℑ","\\Im",!0);i(c,m,S,"♠","\\spadesuit",!0);i(c,m,S,"§","\\S",!0);i(D,m,S,"§","\\S");i(c,m,S,"¶","\\P",!0);i(D,m,S,"¶","\\P");i(c,m,S,"†","\\dag");i(D,m,S,"†","\\dag");i(D,m,S,"†","\\textdagger");i(c,m,S,"‡","\\ddag");i(D,m,S,"‡","\\ddag");i(D,m,S,"‡","\\textdaggerdbl");i(c,m,Ee,"⎱","\\rmoustache",!0);i(c,m,_e,"⎰","\\lmoustache",!0);i(c,m,Ee,"⟯","\\rgroup",!0);i(c,m,_e,"⟮","\\lgroup",!0);i(c,m,U,"∓","\\mp",!0);i(c,m,U,"⊖","\\ominus",!0);i(c,m,U,"⊎","\\uplus",!0);i(c,m,U,"⊓","\\sqcap",!0);i(c,m,U,"∗","\\ast");i(c,m,U,"⊔","\\sqcup",!0);i(c,m,U,"◯","\\bigcirc",!0);i(c,m,U,"∙","\\bullet",!0);i(c,m,U,"‡","\\ddagger");i(c,m,U,"≀","\\wr",!0);i(c,m,U,"⨿","\\amalg");i(c,m,U,"&","\\And");i(c,m,x,"⟵","\\longleftarrow",!0);i(c,m,x,"⇐","\\Leftarrow",!0);i(c,m,x,"⟸","\\Longleftarrow",!0);i(c,m,x,"⟶","\\longrightarrow",!0);i(c,m,x,"⇒","\\Rightarrow",!0);i(c,m,x,"⟹","\\Longrightarrow",!0);i(c,m,x,"↔","\\leftrightarrow",!0);i(c,m,x,"⟷","\\longleftrightarrow",!0);i(c,m,x,"⇔","\\Leftrightarrow",!0);i(c,m,x,"⟺","\\Longleftrightarrow",!0);i(c,m,x,"↦","\\mapsto",!0);i(c,m,x,"⟼","\\longmapsto",!0);i(c,m,x,"↗","\\nearrow",!0);i(c,m,x,"↩","\\hookleftarrow",!0);i(c,m,x,"↪","\\hookrightarrow",!0);i(c,m,x,"↘","\\searrow",!0);i(c,m,x,"↼","\\leftharpoonup",!0);i(c,m,x,"⇀","\\rightharpoonup",!0);i(c,m,x,"↙","\\swarrow",!0);i(c,m,x,"↽","\\leftharpoondown",!0);i(c,m,x,"⇁","\\rightharpoondown",!0);i(c,m,x,"↖","\\nwarrow",!0);i(c,m,x,"⇌","\\rightleftharpoons",!0);i(c,b,x,"≮","\\nless",!0);i(c,b,x,"","\\@nleqslant");i(c,b,x,"","\\@nleqq");i(c,b,x,"⪇","\\lneq",!0);i(c,b,x,"≨","\\lneqq",!0);i(c,b,x,"","\\@lvertneqq");i(c,b,x,"⋦","\\lnsim",!0);i(c,b,x,"⪉","\\lnapprox",!0);i(c,b,x,"⊀","\\nprec",!0);i(c,b,x,"⋠","\\npreceq",!0);i(c,b,x,"⋨","\\precnsim",!0);i(c,b,x,"⪹","\\precnapprox",!0);i(c,b,x,"≁","\\nsim",!0);i(c,b,x,"","\\@nshortmid");i(c,b,x,"∤","\\nmid",!0);i(c,b,x,"⊬","\\nvdash",!0);i(c,b,x,"⊭","\\nvDash",!0);i(c,b,x,"⋪","\\ntriangleleft");i(c,b,x,"⋬","\\ntrianglelefteq",!0);i(c,b,x,"⊊","\\subsetneq",!0);i(c,b,x,"","\\@varsubsetneq");i(c,b,x,"⫋","\\subsetneqq",!0);i(c,b,x,"","\\@varsubsetneqq");i(c,b,x,"≯","\\ngtr",!0);i(c,b,x,"","\\@ngeqslant");i(c,b,x,"","\\@ngeqq");i(c,b,x,"⪈","\\gneq",!0);i(c,b,x,"≩","\\gneqq",!0);i(c,b,x,"","\\@gvertneqq");i(c,b,x,"⋧","\\gnsim",!0);i(c,b,x,"⪊","\\gnapprox",!0);i(c,b,x,"⊁","\\nsucc",!0);i(c,b,x,"⋡","\\nsucceq",!0);i(c,b,x,"⋩","\\succnsim",!0);i(c,b,x,"⪺","\\succnapprox",!0);i(c,b,x,"≆","\\ncong",!0);i(c,b,x,"","\\@nshortparallel");i(c,b,x,"∦","\\nparallel",!0);i(c,b,x,"⊯","\\nVDash",!0);i(c,b,x,"⋫","\\ntriangleright");i(c,b,x,"⋭","\\ntrianglerighteq",!0);i(c,b,x,"","\\@nsupseteqq");i(c,b,x,"⊋","\\supsetneq",!0);i(c,b,x,"","\\@varsupsetneq");i(c,b,x,"⫌","\\supsetneqq",!0);i(c,b,x,"","\\@varsupsetneqq");i(c,b,x,"⊮","\\nVdash",!0);i(c,b,x,"⪵","\\precneqq",!0);i(c,b,x,"⪶","\\succneqq",!0);i(c,b,x,"","\\@nsubseteqq");i(c,b,U,"⊴","\\unlhd");i(c,b,U,"⊵","\\unrhd");i(c,b,x,"↚","\\nleftarrow",!0);i(c,b,x,"↛","\\nrightarrow",!0);i(c,b,x,"⇍","\\nLeftarrow",!0);i(c,b,x,"⇏","\\nRightarrow",!0);i(c,b,x,"↮","\\nleftrightarrow",!0);i(c,b,x,"⇎","\\nLeftrightarrow",!0);i(c,b,x,"△","\\vartriangle");i(c,b,S,"ℏ","\\hslash");i(c,b,S,"▽","\\triangledown");i(c,b,S,"◊","\\lozenge");i(c,b,S,"Ⓢ","\\circledS");i(c,b,S,"®","\\circledR");i(D,b,S,"®","\\circledR");i(c,b,S,"∡","\\measuredangle",!0);i(c,b,S,"∄","\\nexists");i(c,b,S,"℧","\\mho");i(c,b,S,"Ⅎ","\\Finv",!0);i(c,b,S,"⅁","\\Game",!0);i(c,b,S,"‵","\\backprime");i(c,b,S,"▲","\\blacktriangle");i(c,b,S,"▼","\\blacktriangledown");i(c,b,S,"■","\\blacksquare");i(c,b,S,"⧫","\\blacklozenge");i(c,b,S,"★","\\bigstar");i(c,b,S,"∢","\\sphericalangle",!0);i(c,b,S,"∁","\\complement",!0);i(c,b,S,"ð","\\eth",!0);i(D,m,S,"ð","ð");i(c,b,S,"╱","\\diagup");i(c,b,S,"╲","\\diagdown");i(c,b,S,"□","\\square");i(c,b,S,"□","\\Box");i(c,b,S,"◊","\\Diamond");i(c,b,S,"¥","\\yen",!0);i(D,b,S,"¥","\\yen",!0);i(c,b,S,"✓","\\checkmark",!0);i(D,b,S,"✓","\\checkmark");i(c,b,S,"ℶ","\\beth",!0);i(c,b,S,"ℸ","\\daleth",!0);i(c,b,S,"ℷ","\\gimel",!0);i(c,b,S,"ϝ","\\digamma",!0);i(c,b,S,"ϰ","\\varkappa");i(c,b,_e,"┌","\\@ulcorner",!0);i(c,b,Ee,"┐","\\@urcorner",!0);i(c,b,_e,"└","\\@llcorner",!0);i(c,b,Ee,"┘","\\@lrcorner",!0);i(c,b,x,"≦","\\leqq",!0);i(c,b,x,"⩽","\\leqslant",!0);i(c,b,x,"⪕","\\eqslantless",!0);i(c,b,x,"≲","\\lesssim",!0);i(c,b,x,"⪅","\\lessapprox",!0);i(c,b,x,"≊","\\approxeq",!0);i(c,b,U,"⋖","\\lessdot");i(c,b,x,"⋘","\\lll",!0);i(c,b,x,"≶","\\lessgtr",!0);i(c,b,x,"⋚","\\lesseqgtr",!0);i(c,b,x,"⪋","\\lesseqqgtr",!0);i(c,b,x,"≑","\\doteqdot");i(c,b,x,"≓","\\risingdotseq",!0);i(c,b,x,"≒","\\fallingdotseq",!0);i(c,b,x,"∽","\\backsim",!0);i(c,b,x,"⋍","\\backsimeq",!0);i(c,b,x,"⫅","\\subseteqq",!0);i(c,b,x,"⋐","\\Subset",!0);i(c,b,x,"⊏","\\sqsubset",!0);i(c,b,x,"≼","\\preccurlyeq",!0);i(c,b,x,"⋞","\\curlyeqprec",!0);i(c,b,x,"≾","\\precsim",!0);i(c,b,x,"⪷","\\precapprox",!0);i(c,b,x,"⊲","\\vartriangleleft");i(c,b,x,"⊴","\\trianglelefteq");i(c,b,x,"⊨","\\vDash",!0);i(c,b,x,"⊪","\\Vvdash",!0);i(c,b,x,"⌣","\\smallsmile");i(c,b,x,"⌢","\\smallfrown");i(c,b,x,"≏","\\bumpeq",!0);i(c,b,x,"≎","\\Bumpeq",!0);i(c,b,x,"≧","\\geqq",!0);i(c,b,x,"⩾","\\geqslant",!0);i(c,b,x,"⪖","\\eqslantgtr",!0);i(c,b,x,"≳","\\gtrsim",!0);i(c,b,x,"⪆","\\gtrapprox",!0);i(c,b,U,"⋗","\\gtrdot");i(c,b,x,"⋙","\\ggg",!0);i(c,b,x,"≷","\\gtrless",!0);i(c,b,x,"⋛","\\gtreqless",!0);i(c,b,x,"⪌","\\gtreqqless",!0);i(c,b,x,"≖","\\eqcirc",!0);i(c,b,x,"≗","\\circeq",!0);i(c,b,x,"≜","\\triangleq",!0);i(c,b,x,"∼","\\thicksim");i(c,b,x,"≈","\\thickapprox");i(c,b,x,"⫆","\\supseteqq",!0);i(c,b,x,"⋑","\\Supset",!0);i(c,b,x,"⊐","\\sqsupset",!0);i(c,b,x,"≽","\\succcurlyeq",!0);i(c,b,x,"⋟","\\curlyeqsucc",!0);i(c,b,x,"≿","\\succsim",!0);i(c,b,x,"⪸","\\succapprox",!0);i(c,b,x,"⊳","\\vartriangleright");i(c,b,x,"⊵","\\trianglerighteq");i(c,b,x,"⊩","\\Vdash",!0);i(c,b,x,"∣","\\shortmid");i(c,b,x,"∥","\\shortparallel");i(c,b,x,"≬","\\between",!0);i(c,b,x,"⋔","\\pitchfork",!0);i(c,b,x,"∝","\\varpropto");i(c,b,x,"◀","\\blacktriangleleft");i(c,b,x,"∴","\\therefore",!0);i(c,b,x,"∍","\\backepsilon");i(c,b,x,"▶","\\blacktriangleright");i(c,b,x,"∵","\\because",!0);i(c,b,x,"⋘","\\llless");i(c,b,x,"⋙","\\gggtr");i(c,b,U,"⊲","\\lhd");i(c,b,U,"⊳","\\rhd");i(c,b,x,"≂","\\eqsim",!0);i(c,m,x,"⋈","\\Join");i(c,b,x,"≑","\\Doteq",!0);i(c,b,U,"∔","\\dotplus",!0);i(c,b,U,"∖","\\smallsetminus");i(c,b,U,"⋒","\\Cap",!0);i(c,b,U,"⋓","\\Cup",!0);i(c,b,U,"⩞","\\doublebarwedge",!0);i(c,b,U,"⊟","\\boxminus",!0);i(c,b,U,"⊞","\\boxplus",!0);i(c,b,U,"⋇","\\divideontimes",!0);i(c,b,U,"⋉","\\ltimes",!0);i(c,b,U,"⋊","\\rtimes",!0);i(c,b,U,"⋋","\\leftthreetimes",!0);i(c,b,U,"⋌","\\rightthreetimes",!0);i(c,b,U,"⋏","\\curlywedge",!0);i(c,b,U,"⋎","\\curlyvee",!0);i(c,b,U,"⊝","\\circleddash",!0);i(c,b,U,"⊛","\\circledast",!0);i(c,b,U,"⋅","\\centerdot");i(c,b,U,"⊺","\\intercal",!0);i(c,b,U,"⋒","\\doublecap");i(c,b,U,"⋓","\\doublecup");i(c,b,U,"⊠","\\boxtimes",!0);i(c,b,x,"⇢","\\dashrightarrow",!0);i(c,b,x,"⇠","\\dashleftarrow",!0);i(c,b,x,"⇇","\\leftleftarrows",!0);i(c,b,x,"⇆","\\leftrightarrows",!0);i(c,b,x,"⇚","\\Lleftarrow",!0);i(c,b,x,"↞","\\twoheadleftarrow",!0);i(c,b,x,"↢","\\leftarrowtail",!0);i(c,b,x,"↫","\\looparrowleft",!0);i(c,b,x,"⇋","\\leftrightharpoons",!0);i(c,b,x,"↶","\\curvearrowleft",!0);i(c,b,x,"↺","\\circlearrowleft",!0);i(c,b,x,"↰","\\Lsh",!0);i(c,b,x,"⇈","\\upuparrows",!0);i(c,b,x,"↿","\\upharpoonleft",!0);i(c,b,x,"⇃","\\downharpoonleft",!0);i(c,m,x,"⊶","\\origof",!0);i(c,m,x,"⊷","\\imageof",!0);i(c,b,x,"⊸","\\multimap",!0);i(c,b,x,"↭","\\leftrightsquigarrow",!0);i(c,b,x,"⇉","\\rightrightarrows",!0);i(c,b,x,"⇄","\\rightleftarrows",!0);i(c,b,x,"↠","\\twoheadrightarrow",!0);i(c,b,x,"↣","\\rightarrowtail",!0);i(c,b,x,"↬","\\looparrowright",!0);i(c,b,x,"↷","\\curvearrowright",!0);i(c,b,x,"↻","\\circlearrowright",!0);i(c,b,x,"↱","\\Rsh",!0);i(c,b,x,"⇊","\\downdownarrows",!0);i(c,b,x,"↾","\\upharpoonright",!0);i(c,b,x,"⇂","\\downharpoonright",!0);i(c,b,x,"⇝","\\rightsquigarrow",!0);i(c,b,x,"⇝","\\leadsto");i(c,b,x,"⇛","\\Rrightarrow",!0);i(c,b,x,"↾","\\restriction");i(c,m,S,"‘","`");i(c,m,S,"$","\\$");i(D,m,S,"$","\\$");i(D,m,S,"$","\\textdollar");i(c,m,S,"%","\\%");i(D,m,S,"%","\\%");i(c,m,S,"_","\\_");i(D,m,S,"_","\\_");i(D,m,S,"_","\\textunderscore");i(c,m,S,"∠","\\angle",!0);i(c,m,S,"∞","\\infty",!0);i(c,m,S,"′","\\prime");i(c,m,S,"△","\\triangle");i(c,m,S,"Γ","\\Gamma",!0);i(c,m,S,"Δ","\\Delta",!0);i(c,m,S,"Θ","\\Theta",!0);i(c,m,S,"Λ","\\Lambda",!0);i(c,m,S,"Ξ","\\Xi",!0);i(c,m,S,"Π","\\Pi",!0);i(c,m,S,"Σ","\\Sigma",!0);i(c,m,S,"Υ","\\Upsilon",!0);i(c,m,S,"Φ","\\Phi",!0);i(c,m,S,"Ψ","\\Psi",!0);i(c,m,S,"Ω","\\Omega",!0);i(c,m,S,"A","Α");i(c,m,S,"B","Β");i(c,m,S,"E","Ε");i(c,m,S,"Z","Ζ");i(c,m,S,"H","Η");i(c,m,S,"I","Ι");i(c,m,S,"K","Κ");i(c,m,S,"M","Μ");i(c,m,S,"N","Ν");i(c,m,S,"O","Ο");i(c,m,S,"P","Ρ");i(c,m,S,"T","Τ");i(c,m,S,"X","Χ");i(c,m,S,"¬","\\neg",!0);i(c,m,S,"¬","\\lnot");i(c,m,S,"⊤","\\top");i(c,m,S,"⊥","\\bot");i(c,m,S,"∅","\\emptyset");i(c,b,S,"∅","\\varnothing");i(c,m,Z,"α","\\alpha",!0);i(c,m,Z,"β","\\beta",!0);i(c,m,Z,"γ","\\gamma",!0);i(c,m,Z,"δ","\\delta",!0);i(c,m,Z,"ϵ","\\epsilon",!0);i(c,m,Z,"ζ","\\zeta",!0);i(c,m,Z,"η","\\eta",!0);i(c,m,Z,"θ","\\theta",!0);i(c,m,Z,"ι","\\iota",!0);i(c,m,Z,"κ","\\kappa",!0);i(c,m,Z,"λ","\\lambda",!0);i(c,m,Z,"μ","\\mu",!0);i(c,m,Z,"ν","\\nu",!0);i(c,m,Z,"ξ","\\xi",!0);i(c,m,Z,"ο","\\omicron",!0);i(c,m,Z,"π","\\pi",!0);i(c,m,Z,"ρ","\\rho",!0);i(c,m,Z,"σ","\\sigma",!0);i(c,m,Z,"τ","\\tau",!0);i(c,m,Z,"υ","\\upsilon",!0);i(c,m,Z,"ϕ","\\phi",!0);i(c,m,Z,"χ","\\chi",!0);i(c,m,Z,"ψ","\\psi",!0);i(c,m,Z,"ω","\\omega",!0);i(c,m,Z,"ε","\\varepsilon",!0);i(c,m,Z,"ϑ","\\vartheta",!0);i(c,m,Z,"ϖ","\\varpi",!0);i(c,m,Z,"ϱ","\\varrho",!0);i(c,m,Z,"ς","\\varsigma",!0);i(c,m,Z,"φ","\\varphi",!0);i(c,m,U,"∗","*",!0);i(c,m,U,"+","+");i(c,m,U,"−","-",!0);i(c,m,U,"⋅","\\cdot",!0);i(c,m,U,"∘","\\circ",!0);i(c,m,U,"÷","\\div",!0);i(c,m,U,"±","\\pm",!0);i(c,m,U,"×","\\times",!0);i(c,m,U,"∩","\\cap",!0);i(c,m,U,"∪","\\cup",!0);i(c,m,U,"∖","\\setminus",!0);i(c,m,U,"∧","\\land");i(c,m,U,"∨","\\lor");i(c,m,U,"∧","\\wedge",!0);i(c,m,U,"∨","\\vee",!0);i(c,m,S,"√","\\surd");i(c,m,_e,"⟨","\\langle",!0);i(c,m,_e,"∣","\\lvert");i(c,m,_e,"∥","\\lVert");i(c,m,Ee,"?","?");i(c,m,Ee,"!","!");i(c,m,Ee,"⟩","\\rangle",!0);i(c,m,Ee,"∣","\\rvert");i(c,m,Ee,"∥","\\rVert");i(c,m,x,"=","=");i(c,m,x,":",":");i(c,m,x,"≈","\\approx",!0);i(c,m,x,"≅","\\cong",!0);i(c,m,x,"≥","\\ge");i(c,m,x,"≥","\\geq",!0);i(c,m,x,"←","\\gets");i(c,m,x,">","\\gt",!0);i(c,m,x,"∈","\\in",!0);i(c,m,x,"","\\@not");i(c,m,x,"⊂","\\subset",!0);i(c,m,x,"⊃","\\supset",!0);i(c,m,x,"⊆","\\subseteq",!0);i(c,m,x,"⊇","\\supseteq",!0);i(c,b,x,"⊈","\\nsubseteq",!0);i(c,b,x,"⊉","\\nsupseteq",!0);i(c,m,x,"⊨","\\models");i(c,m,x,"←","\\leftarrow",!0);i(c,m,x,"≤","\\le");i(c,m,x,"≤","\\leq",!0);i(c,m,x,"<","\\lt",!0);i(c,m,x,"→","\\rightarrow",!0);i(c,m,x,"→","\\to");i(c,b,x,"≱","\\ngeq",!0);i(c,b,x,"≰","\\nleq",!0);i(c,m,pt," ","\\ ");i(c,m,pt," ","\\space");i(c,m,pt," ","\\nobreakspace");i(D,m,pt," ","\\ ");i(D,m,pt," "," ");i(D,m,pt," ","\\space");i(D,m,pt," ","\\nobreakspace");i(c,m,pt,null,"\\nobreak");i(c,m,pt,null,"\\allowbreak");i(c,m,G0,",",",");i(c,m,G0,";",";");i(c,b,U,"⊼","\\barwedge",!0);i(c,b,U,"⊻","\\veebar",!0);i(c,m,U,"⊙","\\odot",!0);i(c,m,U,"⊕","\\oplus",!0);i(c,m,U,"⊗","\\otimes",!0);i(c,m,S,"∂","\\partial",!0);i(c,m,U,"⊘","\\oslash",!0);i(c,b,U,"⊚","\\circledcirc",!0);i(c,b,U,"⊡","\\boxdot",!0);i(c,m,U,"△","\\bigtriangleup");i(c,m,U,"▽","\\bigtriangledown");i(c,m,U,"†","\\dagger");i(c,m,U,"⋄","\\diamond");i(c,m,U,"⋆","\\star");i(c,m,U,"◃","\\triangleleft");i(c,m,U,"▹","\\triangleright");i(c,m,_e,"{","\\{");i(D,m,S,"{","\\{");i(D,m,S,"{","\\textbraceleft");i(c,m,Ee,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,_e,"{","\\lbrace");i(c,m,Ee,"}","\\rbrace");i(c,m,_e,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ee,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,_e,"(","\\lparen",!0);i(c,m,Ee,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,_e,"⌊","\\lfloor",!0);i(c,m,Ee,"⌋","\\rfloor",!0);i(c,m,_e,"⌈","\\lceil",!0);i(c,m,Ee,"⌉","\\rceil",!0);i(c,m,S,"\\","\\backslash");i(c,m,S,"∣","|");i(c,m,S,"∣","\\vert");i(D,m,S,"|","\\textbar",!0);i(c,m,S,"∥","\\|");i(c,m,S,"∥","\\Vert");i(D,m,S,"∥","\\textbardbl");i(D,m,S,"~","\\textasciitilde");i(D,m,S,"\\","\\textbackslash");i(D,m,S,"^","\\textasciicircum");i(c,m,x,"↑","\\uparrow",!0);i(c,m,x,"⇑","\\Uparrow",!0);i(c,m,x,"↓","\\downarrow",!0);i(c,m,x,"⇓","\\Downarrow",!0);i(c,m,x,"↕","\\updownarrow",!0);i(c,m,x,"⇕","\\Updownarrow",!0);i(c,m,ke,"∐","\\coprod");i(c,m,ke,"⋁","\\bigvee");i(c,m,ke,"⋀","\\bigwedge");i(c,m,ke,"⨄","\\biguplus");i(c,m,ke,"⋂","\\bigcap");i(c,m,ke,"⋃","\\bigcup");i(c,m,ke,"∫","\\int");i(c,m,ke,"∫","\\intop");i(c,m,ke,"∬","\\iint");i(c,m,ke,"∭","\\iiint");i(c,m,ke,"∏","\\prod");i(c,m,ke,"∑","\\sum");i(c,m,ke,"⨂","\\bigotimes");i(c,m,ke,"⨁","\\bigoplus");i(c,m,ke,"⨀","\\bigodot");i(c,m,ke,"∮","\\oint");i(c,m,ke,"∯","\\oiint");i(c,m,ke,"∰","\\oiiint");i(c,m,ke,"⨆","\\bigsqcup");i(c,m,ke,"∫","\\smallint");i(D,m,Zt,"…","\\textellipsis");i(c,m,Zt,"…","\\mathellipsis");i(D,m,Zt,"…","\\ldots",!0);i(c,m,Zt,"…","\\ldots",!0);i(c,m,Zt,"⋯","\\@cdots",!0);i(c,m,Zt,"⋱","\\ddots",!0);i(c,m,S,"⋮","\\varvdots");i(D,m,S,"⋮","\\varvdots");i(c,m,fe,"ˊ","\\acute");i(c,m,fe,"ˋ","\\grave");i(c,m,fe,"¨","\\ddot");i(c,m,fe,"~","\\tilde");i(c,m,fe,"ˉ","\\bar");i(c,m,fe,"˘","\\breve");i(c,m,fe,"ˇ","\\check");i(c,m,fe,"^","\\hat");i(c,m,fe,"⃗","\\vec");i(c,m,fe,"˙","\\dot");i(c,m,fe,"˚","\\mathring");i(c,m,Z,"","\\@imath");i(c,m,Z,"","\\@jmath");i(c,m,S,"ı","ı");i(c,m,S,"ȷ","ȷ");i(D,m,S,"ı","\\i",!0);i(D,m,S,"ȷ","\\j",!0);i(D,m,S,"ß","\\ss",!0);i(D,m,S,"æ","\\ae",!0);i(D,m,S,"œ","\\oe",!0);i(D,m,S,"ø","\\o",!0);i(D,m,S,"Æ","\\AE",!0);i(D,m,S,"Œ","\\OE",!0);i(D,m,S,"Ø","\\O",!0);i(D,m,fe,"ˊ","\\'");i(D,m,fe,"ˋ","\\`");i(D,m,fe,"ˆ","\\^");i(D,m,fe,"˜","\\~");i(D,m,fe,"ˉ","\\=");i(D,m,fe,"˘","\\u");i(D,m,fe,"˙","\\.");i(D,m,fe,"¸","\\c");i(D,m,fe,"˚","\\r");i(D,m,fe,"ˇ","\\v");i(D,m,fe,"¨",'\\"');i(D,m,fe,"˝","\\H");i(D,m,fe,"◯","\\textcircled");var no={"--":!0,"---":!0,"``":!0,"''":!0};i(D,m,S,"–","--",!0);i(D,m,S,"–","\\textendash");i(D,m,S,"—","---",!0);i(D,m,S,"—","\\textemdash");i(D,m,S,"‘","`",!0);i(D,m,S,"‘","\\textquoteleft");i(D,m,S,"’","'",!0);i(D,m,S,"’","\\textquoteright");i(D,m,S,"“","``",!0);i(D,m,S,"“","\\textquotedblleft");i(D,m,S,"”","''",!0);i(D,m,S,"”","\\textquotedblright");i(c,m,S,"°","\\degree",!0);i(D,m,S,"°","\\degree");i(D,m,S,"°","\\textdegree",!0);i(c,m,S,"£","\\pounds");i(c,m,S,"£","\\mathsterling",!0);i(D,m,S,"£","\\pounds");i(D,m,S,"£","\\textsterling",!0);i(c,b,S,"✠","\\maltese");i(D,b,S,"✠","\\maltese");var on='0123456789/@."';for(var mr=0;mr<on.length;mr++){var ln=on.charAt(mr);i(c,m,S,ln,ln)}var cn='0123456789!@*()-=+";:?/.,';for(var hr=0;hr<cn.length;hr++){var un=cn.charAt(hr);i(D,m,S,un,un)}var j0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var fr=0;fr<j0.length;fr++){var y0=j0.charAt(fr);i(c,m,Z,y0,y0),i(D,m,S,y0,y0)}i(c,b,S,"C","ℂ");i(D,b,S,"C","ℂ");i(c,b,S,"H","ℍ");i(D,b,S,"H","ℍ");i(c,b,S,"N","ℕ");i(D,b,S,"N","ℕ");i(c,b,S,"P","ℙ");i(D,b,S,"P","ℙ");i(c,b,S,"Q","ℚ");i(D,b,S,"Q","ℚ");i(c,b,S,"R","ℝ");i(D,b,S,"R","ℝ");i(c,b,S,"Z","ℤ");i(D,b,S,"Z","ℤ");i(c,m,Z,"h","ℎ");i(D,m,Z,"h","ℎ");var J="";for(var De=0;De<j0.length;De++){var xe=j0.charAt(De);J=String.fromCharCode(55349,56320+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56372+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56424+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56580+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56684+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56736+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56788+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56840+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56944+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),De<26&&(J=String.fromCharCode(55349,56632+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56476+De),i(c,m,Z,xe,J),i(D,m,S,xe,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var Nt=0;Nt<10;Nt++){var bt=Nt.toString();J=String.fromCharCode(55349,57294+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J),J=String.fromCharCode(55349,57314+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J),J=String.fromCharCode(55349,57324+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J),J=String.fromCharCode(55349,57334+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J)}var Pr="ÐÞþ";for(var pr=0;pr<Pr.length;pr++){var w0=Pr.charAt(pr);i(c,m,Z,w0,w0),i(D,m,S,w0,w0)}var S0=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],dn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],i4=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return[S0[l][2],S0[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[dn[u][2],dn[u][o]]}else{if(s===120485||s===120486)return[S0[0][2],S0[0][o]];if(120486<s&&s<120782)return["",""];throw new L("Unsupported character: "+e)}},U0=function(e,t,a){return ce[a][e]&&ce[a][e].replace&&(e=ce[a][e].replace),{value:e,metrics:na(e,t,a)}},Xe=function(e,t,a,n,s){var o=U0(e,t,a),l=o.metrics;e=o.value;var u;if(l){var d=l.italic;(a==="text"||n&&n.font==="mathit")&&(d=0),u=new $e(e,l.height,l.depth,d,l.skew,l.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+a+"'")),u=new $e(e,0,0,0,0,0,s);if(n){u.maxFontSize=n.sizeMultiplier,n.style.isTight()&&u.classes.push("mtight");var f=n.getColor();f&&(u.style.color=f)}return u},l4=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&U0(e,"Main-Bold",t).metrics?Xe(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||ce[t][e].font==="main"?Xe(e,"Main-Regular",t,a,n):Xe(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},c4=function(e,t,a,n,s){return s!=="textord"&&U0(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},u4=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],l=n==="math"||n==="text"&&t.font,u=l?t.font:t.fontFamily,d="",f="";if(s.charCodeAt(0)===55349&&([d,f]=i4(s,n)),d.length>0)return Xe(s,d,n,t,o.concat(f));if(u){var g,y;if(u==="boldsymbol"){var w=c4(s,n,t,o,a);g=w.fontName,y=[w.fontClass]}else l?(g=io[u].fontName,y=[u]):(g=k0(u,t.fontWeight,t.fontShape),y=[u,t.fontWeight,t.fontShape]);if(U0(s,g,n).metrics)return Xe(s,g,n,t,o.concat(y));if(no.hasOwnProperty(s)&&g.slice(0,10)==="Typewriter"){for(var M=[],k=0;k<s.length;k++)M.push(Xe(s[k],g,n,t,o.concat(y)));return oo(M)}}if(a==="mathord")return Xe(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var N=ce[n][s]&&ce[n][s].font;if(N==="ams"){var A=k0("amsrm",t.fontWeight,t.fontShape);return Xe(s,A,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(N==="main"||!N){var E=k0("textrm",t.fontWeight,t.fontShape);return Xe(s,E,n,t,o.concat(t.fontWeight,t.fontShape))}else{var R=k0(N,t.fontWeight,t.fontShape);return Xe(s,R,n,t,o.concat(R,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},d4=(r,e)=>{if(St(r.classes)!==St(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},m4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof $e&&a instanceof $e&&d4(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},oa=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>t&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},je=function(e,t,a,n){var s=new o0(e,t,a,n);return oa(s),s},so=(r,e,t,a)=>new o0(r,e,t,a),h4=function(e,t,a){var n=je([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=O(n.height),n.maxFontSize=1,n},f4=function(e,t,a,n){var s=new sa(e,t,a,n);return oa(s),s},oo=function(e){var t=new s0(e);return oa(t),t},p4=function(e,t){return e instanceof s0?je([],[e],t):e},v4=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var l=-t[o].shift-s-t[o].elem.depth,u=l-(t[o-1].elem.height+t[o-1].elem.depth);s=s+l,a.push({type:"kern",size:u}),a.push(t[o])}return{children:a,depth:n}}var d;if(e.positionType==="top"){for(var f=e.positionData,g=0;g<e.children.length;g++){var y=e.children[g];f-=y.type==="kern"?y.size:y.elem.height+y.elem.depth}d=f}else if(e.positionType==="bottom")d=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},g4=function(e,t){for(var{children:a,depth:n}=v4(e),s=0,o=0;o<a.length;o++){var l=a[o];if(l.type==="elem"){var u=l.elem;s=Math.max(s,u.maxFontSize,u.height)}}s+=2;var d=je(["pstrut"],[]);d.style.height=O(s);for(var f=[],g=n,y=n,w=n,M=0;M<a.length;M++){var k=a[M];if(k.type==="kern")w+=k.size;else{var N=k.elem,A=k.wrapperClasses||[],E=k.wrapperStyle||{},R=je(A,[d,N],void 0,E);R.style.top=O(-s-w-N.depth),k.marginLeft&&(R.style.marginLeft=k.marginLeft),k.marginRight&&(R.style.marginRight=k.marginRight),f.push(R),w+=N.height+N.depth}g=Math.min(g,w),y=Math.max(y,w)}var F=je(["vlist"],f);F.style.height=O(y);var q;if(g<0){var X=je([],[]),_=je(["vlist"],[X]);_.style.height=O(-g);var P=je(["vlist-s"],[new $e("")]);q=[je(["vlist-r"],[F,P]),je(["vlist-r"],[_])]}else q=[je(["vlist-r"],[F])];var Y=je(["vlist-t"],q);return q.length===2&&Y.classes.push("vlist-t2"),Y.height=y,Y.depth=-g,Y},b4=(r,e)=>{var t=je(["mspace"],[],e),a=ge(r,e);return t.style.marginRight=O(a),t},k0=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},io={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},lo={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},x4=function(e,t){var[a,n,s]=lo[e],o=new kt(a),l=new mt([o],{width:O(n),height:O(s),style:"width:"+O(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=so(["overlay"],[l],t);return u.height=s,u.style.height=O(s),u.style.width=O(n),u},C={fontMap:io,makeSymbol:Xe,mathsym:l4,makeSpan:je,makeSvgSpan:so,makeLineSpan:h4,makeAnchor:f4,makeFragment:oo,wrapFragment:p4,makeVList:g4,makeOrd:u4,makeGlue:b4,staticSvg:x4,svgData:lo,tryCombineChars:m4},ve={number:3,unit:"mu"},At={number:4,unit:"mu"},ot={number:5,unit:"mu"},y4={mord:{mop:ve,mbin:At,mrel:ot,minner:ve},mop:{mord:ve,mop:ve,mrel:ot,minner:ve},mbin:{mord:At,mop:At,mopen:At,minner:At},mrel:{mord:ot,mop:ot,mopen:ot,minner:ot},mopen:{},mclose:{mop:ve,mbin:At,mrel:ot,minner:ve},mpunct:{mord:ve,mop:ve,mrel:ot,mopen:ve,mclose:ve,mpunct:ve,minner:ve},minner:{mord:ve,mop:ve,mbin:At,mrel:ot,mopen:ve,mpunct:ve,minner:ve}},w4={mord:{mop:ve},mop:{mord:ve,mop:ve},mbin:{},mrel:{},mopen:{},mclose:{mop:ve},mpunct:{},minner:{mop:ve}},co={},I0={},P0={};function V(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,l={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},u=0;u<t.length;++u)co[t[u]]=l;e&&(s&&(I0[e]=s),o&&(P0[e]=o))}function jt(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;V({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var O0=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},we=function(e){return e.type==="ordgroup"?e.body:[e]},ht=C.makeSpan,S4=["leftmost","mbin","mopen","mrel","mop","mpunct"],k4=["rightmost","mrel","mclose","mpunct"],C4={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},M4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Te=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var l=re(e[o],t);if(l instanceof s0){var u=l.children;s.push(...u)}else s.push(l)}if(C.tryCombineChars(s),!a)return s;var d=t;if(e.length===1){var f=e[0];f.type==="sizing"?d=t.havingSize(f.size):f.type==="styling"&&(d=t.havingStyle(C4[f.style]))}var g=ht([n[0]||"leftmost"],[],t),y=ht([n[1]||"rightmost"],[],t),w=a==="root";return mn(s,(M,k)=>{var N=k.classes[0],A=M.classes[0];N==="mbin"&&k4.includes(A)?k.classes[0]="mord":A==="mbin"&&S4.includes(N)&&(M.classes[0]="mord")},{node:g},y,w),mn(s,(M,k)=>{var N=Or(k),A=Or(M),E=N&&A?M.hasClass("mtight")?w4[N][A]:y4[N][A]:null;if(E)return C.makeGlue(E,d)},{node:g},y,w),s},mn=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=uo(l);if(u){r(u.children,t,a,null,s);continue}var d=!l.hasClass("mspace");if(d){var f=t(l,a.node);f&&(a.insertAfter?a.insertAfter(f):(e.unshift(f),o++))}d?a.node=l:s&&l.hasClass("newline")&&(a.node=ht(["leftmost"])),a.insertAfter=(g=>y=>{e.splice(g+1,0,y),o++})(o)}n&&e.pop()},uo=function(e){return e instanceof s0||e instanceof sa||e instanceof o0&&e.hasClass("enclosing")?e:null},T4=function r(e,t){var a=uo(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},Or=function(e,t){return e?(t&&(e=T4(e,t)),M4[e.classes[0]]||null):null},n0=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return ht(t.concat(a))},re=function(e,t,a){if(!e)return ht();if(I0[e.type]){var n=I0[e.type](e,t);if(a&&t.size!==a.size){n=ht(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new L("Got group of unknown type: '"+e.type+"'")};function C0(r,e){var t=ht(["base"],r,e),a=ht(["strut"]);return a.style.height=O(t.height+t.depth),t.depth&&(a.style.verticalAlign=O(-t.depth)),t.children.unshift(a),t}function Fr(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=Te(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],l=0;l<a.length;l++)if(o.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var u=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,o.push(a[l]),a[l].hasClass("nobreak")&&(u=!0);u||(s.push(C0(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(C0(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(C0(o,e));var d;t?(d=C0(Te(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var f=ht(["katex-html"],s);if(f.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=O(f.height+f.depth),f.depth&&(g.style.verticalAlign=O(-f.depth))}return f}function mo(r){return new s0(r)}class He{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=St(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof et&&this.children[a+1]instanceof et){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof et;)n+=this.children[++a].toText();e.appendChild(new et(n).toNode())}else e.appendChild(this.children[a].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=ae.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+ae.escape(St(this.classes))+'"'),e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class et{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ae.escape(this.toText())}toText(){return this.text}}class z4{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",O(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+O(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var B={MathNode:He,TextNode:et,SpaceNode:z4,newDocumentFragment:mo},We=function(e,t,a){return ce[t][e]&&ce[t][e].replace&&e.charCodeAt(0)!==55349&&!(no.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=ce[t][e].replace),new B.TextNode(e)},ia=function(e){return e.length===1?e[0]:new B.MathNode("mrow",e)},la=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(["\\imath","\\jmath"].includes(s))return null;ce[n][s]&&ce[n][s].replace&&(s=ce[n][s].replace);var o=C.fontMap[a].fontName;return na(s,o,n)?C.fontMap[a].variant:null};function vr(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof et&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof et&&t.text===","}else return!1}var Pe=function(e,t,a){if(e.length===1){var n=ie(e[0],t);return a&&n instanceof He&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,l=0;l<e.length;l++){var u=ie(e[l],t);if(u instanceof He&&o instanceof He){if(u.type==="mtext"&&o.type==="mtext"&&u.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...u.children);continue}else if(u.type==="mn"&&o.type==="mn"){o.children.push(...u.children);continue}else if(vr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&vr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||vr(o))){var d=u.children[0];d instanceof He&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var f=o.children[0];if(f instanceof et&&f.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var g=u.children[0];g instanceof et&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),s.pop())}}}s.push(u),o=u}return s},Ct=function(e,t,a){return ia(Pe(e,t,a))},ie=function(e,t){if(!e)return new B.MathNode("mrow");if(P0[e.type]){var a=P0[e.type](e,t);return a}else throw new L("Got group of unknown type: '"+e.type+"'")};function hn(r,e,t,a,n){var s=Pe(r,t),o;s.length===1&&s[0]instanceof He&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new B.MathNode("mrow",s);var l=new B.MathNode("annotation",[new B.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new B.MathNode("semantics",[o,l]),d=new B.MathNode("math",[u]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var f=n?"katex":"katex-mathml";return C.makeSpan([f],[d])}var ho=function(e){return new lt({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},fo=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=C.makeSpan(a,[e])}return e},N4=function(e,t,a){var n=ho(a),s;if(a.output==="mathml")return hn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Fr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=hn(e,t,n,a.displayMode,!1),u=Fr(e,n);s=C.makeSpan(["katex"],[l,u])}return fo(s,a)},A4=function(e,t,a){var n=ho(a),s=Fr(e,n),o=C.makeSpan(["katex"],[s]);return fo(o,a)},D4={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},R4=function(e){var t=new B.MathNode("mo",[new B.TextNode(D4[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},E4={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},B4=function(e){return e.type==="ordgroup"?e.body.length:1},L4=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,f=B4(d.base),g,y,w;if(f>5)u==="widehat"||u==="widecheck"?(g=420,l=2364,w=.42,y=u+"4"):(g=312,l=2340,w=.34,y="tilde4");else{var M=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][M],g=[0,239,300,360,420][M],w=[0,.24,.3,.3,.36,.42][M],y=u+M):(l=[0,600,1033,2339,2340][M],g=[0,260,286,306,312][M],w=[0,.26,.286,.3,.306,.34][M],y="tilde"+M)}var k=new kt(y),N=new mt([k],{width:"100%",height:O(w),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[N],t),minWidth:0,height:w}}else{var A=[],E=E4[u],[R,F,q]=E,X=q/1e3,_=R.length,P,Y;if(_===1){var be=E[3];P=["hide-tail"],Y=[be]}else if(_===2)P=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(_===3)P=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
325
|
+
`+_+" children.");for(var ue=0;ue<_;ue++){var te=new kt(R[ue]),ye=new mt([te],{width:"400em",height:O(X),viewBox:"0 0 "+l+" "+q,preserveAspectRatio:Y[ue]+" slice"}),se=C.makeSvgSpan([P[ue]],[ye],t);if(_===1)return{span:se,minWidth:F,height:X};se.style.height=O(X),A.push(se)}return{span:C.makeSpan(["stretchy"],A,t),minWidth:F,height:X}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=O(o),s>0&&(n.style.minWidth=O(s)),n},j4=function(e,t,a,n,s){var o,l=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=C.makeSpan(["stretchy",t],[],s),t==="fbox"){var u=s.color&&s.getColor();u&&(o.style.borderColor=u)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new Ir({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Ir({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new mt(d,{width:"100%",height:O(l)});o=C.makeSvgSpan([],[f],s)}return o.height=l,o.style.height=O(l),o},ft={encloseSpan:j4,mathMLnode:R4,svgSpan:L4};function Q(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function ca(r){var e=$0(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function $0(r){return r&&(r.type==="atom"||o4.hasOwnProperty(r.type))?r:null}var ua=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=n4(re(r,e)),r.base=a):(a=Q(r,"accent"),t=a.base);var s=re(t,e.havingCrampedStyle()),o=a.isShifty&&ae.isCharacterBox(t),l=0;if(o){var u=ae.getBaseElem(t),d=re(u,e.havingCrampedStyle());l=sn(d).skew}var f=a.label==="\\c",g=f?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),y;if(a.isStretchy)y=ft.svgSpan(a,e),y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:y,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+O(2*l)+")",marginLeft:O(2*l)}:void 0}]},e);else{var w,M;a.label==="\\vec"?(w=C.staticSvg("vec",e),M=C.svgData.vec[1]):(w=C.makeOrd({mode:a.mode,text:a.label},e,"textord"),w=sn(w),w.italic=0,M=w.width,f&&(g+=w.depth)),y=C.makeSpan(["accent-body"],[w]);var k=a.label==="\\textcircled";k&&(y.classes.push("accent-full"),g=s.height);var N=l;k||(N-=M/2),y.style.left=O(N),a.label==="\\textcircled"&&(y.style.top=".2em"),y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:y}]},e)}var A=C.makeSpan(["mord","accent"],[y],e);return n?(n.children[0]=A,n.height=Math.max(A.height,n.height),n.classes[0]="mord",n):A},po=(r,e)=>{var t=r.isStretchy?ft.mathMLnode(r.label):new B.MathNode("mo",[We(r.label,r.mode)]),a=new B.MathNode("mover",[ie(r.base,e),t]);return a.setAttribute("accent","true"),a},I4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));V({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=O0(e[0]),a=!I4.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:ua,mathmlBuilder:po});V({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:ua,mathmlBuilder:po});V({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=re(r.base,e),a=ft.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=ft.mathMLnode(r.label),a=new B.MathNode("munder",[ie(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var M0=r=>{var e=new B.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};V({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=C.wrapFragment(re(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=C.wrapFragment(re(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var l=ft.svgSpan(r,e),u=-e.fontMetrics().axisHeight+.5*l.height,d=-e.fontMetrics().axisHeight-.5*l.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(d-=n.depth);var f;if(o){var g=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u},{type:"elem",elem:o,shift:g}]},e)}else f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u}]},e);return f.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[f],e)},mathmlBuilder(r,e){var t=ft.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=M0(ie(r.body,e));if(r.below){var s=M0(ie(r.below,e));a=new B.MathNode("munderover",[t,s,n])}else a=new B.MathNode("mover",[t,n])}else if(r.below){var o=M0(ie(r.below,e));a=new B.MathNode("munder",[t,o])}else a=M0(),a=new B.MathNode("mover",[t,a]);return a}});var P4=C.makeSpan;function vo(r,e){var t=Te(r.body,e,!0);return P4([r.mclass],t,e)}function go(r,e){var t,a=Pe(r.body,e);return r.mclass==="minner"?t=new B.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new B.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new B.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}V({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:we(n),isCharacterBox:ae.isCharacterBox(n)}},htmlBuilder:vo,mathmlBuilder:go});var W0=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};V({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:W0(e[0]),body:we(e[1]),isCharacterBox:ae.isCharacterBox(e[1])}}});V({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=W0(n):o="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:we(n)},u={type:"supsub",mode:s.mode,base:l,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[u],isCharacterBox:ae.isCharacterBox(u)}},htmlBuilder:vo,mathmlBuilder:go});V({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:W0(e[0]),body:we(e[0])}},htmlBuilder(r,e){var t=Te(r.body,e,!0),a=C.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=Pe(r.body,e),a=new B.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var O4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fn=()=>({type:"styling",body:[],mode:"math",style:"display"}),pn=r=>r.type==="textord"&&r.text==="@",F4=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function q4(r,e,t){var a=O4[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),l=t.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[n,o,l]};return t.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function H4(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new L("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],l=fn(),u=0;u<o.length;u++)if(!pn(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=ca(o[u]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var g=0;g<2;g++){for(var y=!0,w=u+1;w<o.length;w++){if(F4(o[w],d)){y=!1,u=w;break}if(pn(o[w]))throw new L("Missing a "+d+" character to complete a CD arrow.",o[w]);f[g].body.push(o[w])}if(y)throw new L("Missing a "+d+" character to complete a CD arrow.",o[u])}else throw new L('Expected one of "<>AV=|." after @',o[u]);var M=q4(d,f,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=fn()}s%2===0?a.push(l):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var N=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:N,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}V({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=C.wrapFragment(re(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=O(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new B.MathNode("mrow",[ie(r.label,e)]);return t=new B.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new B.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});V({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=C.wrapFragment(re(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new B.MathNode("mrow",[ie(r.fragment,e)])}});V({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=Q(e[0],"ordgroup"),n=a.body,s="",o=0;o<n.length;o++){var l=Q(n[o],"textord");s+=l.text}var u=parseInt(s),d;if(isNaN(u))throw new L("\\@char has non-numeric argument "+s);if(u<0||u>=1114111)throw new L("\\@char with invalid code point "+s);return u<=65535?d=String.fromCharCode(u):(u-=65536,d=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:t.mode,text:d}}});var bo=(r,e)=>{var t=Te(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},xo=(r,e)=>{var t=Pe(r.body,e.withColor(r.color)),a=new B.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};V({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=Q(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:we(n)}},htmlBuilder:bo,mathmlBuilder:xo});V({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=Q(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:bo,mathmlBuilder:xo});V({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&Q(n,"size").value}},htmlBuilder(r,e){var t=C.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=O(ge(r.size,e)))),t},mathmlBuilder(r,e){var t=new B.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",O(ge(r.size,e)))),t}});var qr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},yo=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},V4=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},wo=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};V({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(qr[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=qr[a.text]),Q(e.parseFunction(),"internal");throw new L("Invalid token after macro prefix",a)}});V({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new L("Expected a control sequence",a);for(var s=0,o,l=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),l[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new L('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new L('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if(a.text==="EOF")throw new L("Expected a macro definition");l[s].push(a.text)}var{tokens:u}=e.gullet.consumeArg();return o&&u.unshift(o),(t==="\\edef"||t==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(n,{tokens:u,numArgs:s,delimiters:l},t===qr[t]),{type:"internal",mode:e.mode}}});V({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=yo(e.gullet.popToken());e.gullet.consumeSpaces();var n=V4(e);return wo(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});V({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=yo(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return wo(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var Qt=function(e,t,a){var n=ce.math[e]&&ce.math[e].replace,s=na(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},da=function(e,t,a,n){var s=a.havingBaseStyle(t),o=C.makeSpan(n.concat(s.sizingClasses(a)),[e],a),l=s.sizeMultiplier/a.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=s.sizeMultiplier,o},So=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=O(s),e.height-=s,e.depth+=s},_4=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=da(l,t,n,o);return a&&So(u,n,t),u},G4=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},ko=function(e,t,a,n,s,o){var l=G4(e,t,s,n),u=da(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&So(u,n,K.TEXT),u},gr=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=C.makeSpan(["delimsizinginner",n],[C.makeSpan([],[C.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},br=function(e,t,a){var n=Qe["Size4-Regular"][e.charCodeAt(0)]?Qe["Size4-Regular"][e.charCodeAt(0)][4]:Qe["Size1-Regular"][e.charCodeAt(0)][4],s=new kt("inner",Y2(e,Math.round(1e3*t))),o=new mt([s],{width:O(n),height:O(t),style:"width:"+O(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=O(t),l.style.width=O(n),{type:"elem",elem:l}},Hr=.008,T0={type:"kern",size:-1*Hr},U4=["|","\\lvert","\\rvert","\\vert"],$4=["\\|","\\lVert","\\rVert","\\Vert"],Co=function(e,t,a,n,s,o){var l,u,d,f,g="",y=0;l=d=f=e,u=null;var w="Size1-Regular";e==="\\uparrow"?d=f="⏐":e==="\\Uparrow"?d=f="‖":e==="\\downarrow"?l=d="⏐":e==="\\Downarrow"?l=d="‖":e==="\\updownarrow"?(l="\\uparrow",d="⏐",f="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",d="‖",f="\\Downarrow"):U4.includes(e)?(d="∣",g="vert",y=333):$4.includes(e)?(d="∥",g="doublevert",y=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",f="⎣",w="Size4-Regular",g="lbrack",y=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",f="⎦",w="Size4-Regular",g="rbrack",y=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",f="⎣",w="Size4-Regular",g="lfloor",y=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=f="⎢",w="Size4-Regular",g="lceil",y=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",f="⎦",w="Size4-Regular",g="rfloor",y=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=f="⎥",w="Size4-Regular",g="rceil",y=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",f="⎝",w="Size4-Regular",g="lparen",y=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",f="⎠",w="Size4-Regular",g="rparen",y=875):e==="\\{"||e==="\\lbrace"?(l="⎧",u="⎨",f="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",u="⎬",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",f="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",f="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",f="⎩",d="⎪",w="Size4-Regular");var M=Qt(l,w,s),k=M.height+M.depth,N=Qt(d,w,s),A=N.height+N.depth,E=Qt(f,w,s),R=E.height+E.depth,F=0,q=1;if(u!==null){var X=Qt(u,w,s);F=X.height+X.depth,q=2}var _=k+R+F,P=Math.max(0,Math.ceil((t-_)/(q*A))),Y=_+P*q*A,be=n.fontMetrics().axisHeight;a&&(be*=n.sizeMultiplier);var ue=Y/2-be,te=[];if(g.length>0){var ye=Y-k-R,se=Math.round(Y*1e3),le=Z2(g,Math.round(ye*1e3)),oe=new kt(g,le),Ce=(y/1e3).toFixed(3)+"em",G=(se/1e3).toFixed(3)+"em",Ae=new mt([oe],{width:Ce,height:G,viewBox:"0 0 "+y+" "+se}),de=C.makeSvgSpan([],[Ae],n);de.height=se/1e3,de.style.width=Ce,de.style.height=G,te.push({type:"elem",elem:de})}else{if(te.push(gr(f,w,s)),te.push(T0),u===null){var ze=Y-k-R+2*Hr;te.push(br(d,ze,n))}else{var he=(Y-k-R-F)/2+2*Hr;te.push(br(d,he,n)),te.push(T0),te.push(gr(u,w,s)),te.push(T0),te.push(br(d,he,n))}te.push(T0),te.push(gr(l,w,s))}var me=n.havingBaseStyle(K.TEXT),pe=C.makeVList({positionType:"bottom",positionData:ue,children:te},me);return da(C.makeSpan(["delimsizing","mult"],[pe],me),K.TEXT,n,o)},xr=80,yr=.08,wr=function(e,t,a,n,s){var o=X2(e,n,a),l=new kt(e,o),u=new mt([l],{width:"400em",height:O(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},W4=function(e,t){var a=t.havingBaseSizing(),n=No("\\surd",e*a.sizeMultiplier,zo,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l,u=0,d=0,f=0,g;return n.type==="small"?(f=1e3+1e3*o+xr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+yr)/s,d=(1+o)/s,l=wr("sqrtMain",u,f,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(f=(1e3+xr)*e0[n.size],d=(e0[n.size]+o)/s,u=(e0[n.size]+o+yr)/s,l=wr("sqrtSize"+n.size,u,f,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+yr,d=e+o,f=Math.floor(1e3*e+o)+xr,l=wr("sqrtTall",u,f,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=O(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Mo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],X4=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],To=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],e0=[0,1.2,1.8,2.4,3],Y4=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Mo.includes(e)||To.includes(e))return ko(e,t,!1,a,n,s);if(X4.includes(e))return Co(e,e0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},Z4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],K4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],zo=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],J4=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},No=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;o<a.length&&a[o].type!=="stack";o++){var l=Qt(e,J4(a[o]),"math"),u=l.height+l.depth;if(a[o].type==="small"){var d=n.havingBaseStyle(a[o].style);u*=d.sizeMultiplier}if(u>t)return a[o]}return a[a.length-1]},Ao=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;To.includes(e)?l=Z4:Mo.includes(e)?l=zo:l=K4;var u=No(e,t,l,n);return u.type==="small"?_4(e,u.style,a,n,s,o):u.type==="large"?ko(e,u.size,a,n,s,o):Co(e,t,a,n,s,o)},Q4=function(e,t,a,n,s,o){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,d=5/n.fontMetrics().ptPerEm,f=Math.max(t-l,a+l),g=Math.max(f/500*u,2*f-d);return Ao(e,g,!0,n,s,o)},dt={sqrtImage:W4,sizedDelim:Y4,sizeToMaxHeight:e0,customSizedDelim:Ao,leftRightDelim:Q4},vn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ed=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function X0(r,e){var t=$0(r);if(t&&ed.includes(t.text))return t;throw t?new L("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new L("Invalid delimiter type '"+r.type+"'",r)}V({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=X0(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:vn[r.funcName].size,mclass:vn[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?C.makeSpan([r.mclass]):dt.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(We(r.delim,r.mode));var t=new B.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=O(dt.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function gn(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}V({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new L("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:X0(e[0],r).text,color:t}}});V({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=X0(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=Q(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{gn(r);for(var t=Te(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o<t.length;o++)t[o].isMiddle?s=!0:(a=Math.max(t[o].height,a),n=Math.max(t[o].depth,n));a*=e.sizeMultiplier,n*=e.sizeMultiplier;var l;if(r.left==="."?l=n0(e,["mopen"]):l=dt.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(l),s)for(var u=1;u<t.length;u++){var d=t[u],f=d.isMiddle;f&&(t[u]=dt.leftRightDelim(f.delim,a,n,f.options,r.mode,[]))}var g;if(r.right===".")g=n0(e,["mclose"]);else{var y=r.rightColor?e.withColor(r.rightColor):e;g=dt.leftRightDelim(r.right,a,n,y,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{gn(r);var t=Pe(r.body,e);if(r.left!=="."){var a=new B.MathNode("mo",[We(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new B.MathNode("mo",[We(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return ia(t)}});V({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=X0(e[0],r);if(!r.parser.leftrightDepth)throw new L("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=n0(e,[]);else{t=dt.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?We("|","text"):We(r.delim,r.mode),a=new B.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var ma=(r,e)=>{var t=C.wrapFragment(re(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,l=ae.isCharacterBox(r.body);if(a==="sout")s=C.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var u=ge({number:.6,unit:"pt"},e),d=ge({number:.35,unit:"ex"},e),f=e.havingBaseSizing();n=n/f.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=O(g/2+u);var y=Math.floor(1e3*g*n),w=$2(y),M=new mt([new kt("phase",w)],{width:"400em",height:O(y/1e3),viewBox:"0 0 400000 "+y,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=O(g),o=t.depth+u+d}else{/cancel/.test(a)?l||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var k=0,N=0,A=0;/box/.test(a)?(A=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:A),N=k):a==="angl"?(A=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*A,N=Math.max(0,.25-t.depth)):(k=l?.2:0,N=k),s=ft.encloseSpan(t,a,k,N,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=O(A)):a==="angl"&&A!==.049&&(s.style.borderTopWidth=O(A),s.style.borderRightWidth=O(A)),o=t.depth+N,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var E;if(r.backgroundColor)E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var R=/cancel|phase/.test(a)?["svg-align"]:[];E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:R}]},e)}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[E],e):C.makeSpan(["mord"],[E],e)},ha=(r,e)=>{var t=0,a=new B.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ie(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};V({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=Q(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:ma,mathmlBuilder:ha});V({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=Q(e[0],"color-token").color,o=Q(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:l}},htmlBuilder:ma,mathmlBuilder:ha});V({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});V({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:ma,mathmlBuilder:ha});V({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var Do={};function rt(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,l={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},u=0;u<t.length;++u)Do[t[u]]=l;s&&(I0[e]=s),o&&(P0[e]=o)}var Ro={};function v(r,e){Ro[r]=e}function bn(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var Y0=r=>{var e=r.parser.settings;if(!e.displayMode)throw new L("{"+r.envName+"} can be used only in display mode.")};function fa(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function Mt(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:d,emptySingleRow:f,maxNumCols:g,leqno:y}=e;if(r.gullet.beginGroup(),d||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new L("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var M=[],k=[M],N=[],A=[],E=u!=null?[]:void 0;function R(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function F(){E&&(r.gullet.macros.get("\\df@tag")?(E.push(r.subparse([new Ve("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),A.push(bn(r));;){var q=r.parseExpression(!1,d?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),q={type:"ordgroup",mode:r.mode,body:q},t&&(q={type:"styling",mode:r.mode,style:t,body:[q]}),M.push(q);var X=r.fetch().text;if(X==="&"){if(g&&M.length===g){if(d||l)throw new L("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(X==="\\end"){F(),M.length===1&&q.type==="styling"&&q.body[0].body.length===0&&(k.length>1||!f)&&k.pop(),A.length<k.length+1&&A.push([]);break}else if(X==="\\\\"){r.consume();var _=void 0;r.gullet.future().text!==" "&&(_=r.parseSizeGroup(!0)),N.push(_?_.value:null),F(),A.push(bn(r)),M=[],k.push(M),R()}else throw new L("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:k,cols:s,rowGaps:N,hskipBeforeAndAfter:a,hLinesBeforeRow:A,colSeparationType:l,tags:E,leqno:y}}function pa(r){return r.slice(0,1)==="d"?"display":"text"}var at=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,l=0,u=new Array(s),d=[],f=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),g=1/t.fontMetrics().ptPerEm,y=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(K.SCRIPT).sizeMultiplier;y=.2778*(w/t.sizeMultiplier)}var M=e.colSeparationType==="CD"?ge({number:3,unit:"ex"},t):12*g,k=3*g,N=e.arraystretch*M,A=.7*N,E=.3*N,R=0;function F(l0){for(var c0=0;c0<l0.length;++c0)c0>0&&(R+=.25),d.push({pos:R,isDashed:l0[c0]})}for(F(o[0]),a=0;a<e.body.length;++a){var q=e.body[a],X=A,_=E;l<q.length&&(l=q.length);var P=new Array(q.length);for(n=0;n<q.length;++n){var Y=re(q[n],t);_<Y.depth&&(_=Y.depth),X<Y.height&&(X=Y.height),P[n]=Y}var be=e.rowGaps[a],ue=0;be&&(ue=ge(be,t),ue>0&&(ue+=E,_<ue&&(_=ue),ue=0)),e.addJot&&(_+=k),P.height=X,P.depth=_,R+=X,P.pos=R,R+=_+ue,u[a]=P,F(o[a+1])}var te=R/2+t.fontMetrics().axisHeight,ye=e.cols||[],se=[],le,oe,Ce=[];if(e.tags&&e.tags.some(l0=>l0))for(a=0;a<s;++a){var G=u[a],Ae=G.pos-te,de=e.tags[a],ze=void 0;de===!0?ze=C.makeSpan(["eqn-num"],[],t):de===!1?ze=C.makeSpan([],[],t):ze=C.makeSpan([],Te(de,t,!0),t),ze.depth=G.depth,ze.height=G.height,Ce.push({type:"elem",elem:ze,shift:Ae})}for(n=0,oe=0;n<l||oe<ye.length;++n,++oe){for(var he=ye[oe]||{},me=!0;he.type==="separator";){if(me||(le=C.makeSpan(["arraycolsep"],[]),le.style.width=O(t.fontMetrics().doubleRuleSep),se.push(le)),he.separator==="|"||he.separator===":"){var pe=he.separator==="|"?"solid":"dashed",Ne=C.makeSpan(["vertical-separator"],[],t);Ne.style.height=O(R),Ne.style.borderRightWidth=O(f),Ne.style.borderRightStyle=pe,Ne.style.margin="0 "+O(-f/2);var Oe=R-te;Oe&&(Ne.style.verticalAlign=O(-Oe)),se.push(Ne)}else throw new L("Invalid separator type: "+he.separator);oe++,he=ye[oe]||{},me=!1}if(!(n>=l)){var ne=void 0;(n>0||e.hskipBeforeAndAfter)&&(ne=ae.deflt(he.pregap,y),ne!==0&&(le=C.makeSpan(["arraycolsep"],[]),le.style.width=O(ne),se.push(le)));var Be=[];for(a=0;a<s;++a){var Fe=u[a],qe=Fe[n];if(qe){var Ze=Fe.pos-te;qe.depth=Fe.depth,qe.height=Fe.height,Be.push({type:"elem",elem:qe,shift:Ze})}}Be=C.makeVList({positionType:"individualShift",children:Be},t),Be=C.makeSpan(["col-align-"+(he.align||"c")],[Be]),se.push(Be),(n<l-1||e.hskipBeforeAndAfter)&&(ne=ae.deflt(he.postgap,y),ne!==0&&(le=C.makeSpan(["arraycolsep"],[]),le.style.width=O(ne),se.push(le)))}}if(u=C.makeSpan(["mtable"],se),d.length>0){for(var Ge=C.makeLineSpan("hline",t,f),Tt=C.makeLineSpan("hdashline",t,f),j=[{type:"elem",elem:u,shift:0}];d.length>0;){var Le=d.pop(),Sa=Le.pos-te;Le.isDashed?j.push({type:"elem",elem:Tt,shift:Sa}):j.push({type:"elem",elem:Ge,shift:Sa})}u=C.makeVList({positionType:"individualShift",children:j},t)}if(Ce.length===0)return C.makeSpan(["mord"],[u],t);var K0=C.makeVList({positionType:"individualShift",children:Ce},t);return K0=C.makeSpan(["tag"],[K0],t),C.makeFragment([u,K0])},td={c:"center ",l:"left ",r:"right "},nt=function(e,t){for(var a=[],n=new B.MathNode("mtd",[],["mtr-glue"]),s=new B.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var l=e.body[o],u=[],d=0;d<l.length;d++)u.push(new B.MathNode("mtd",[ie(l[d],t)]));e.tags&&e.tags[o]&&(u.unshift(n),u.push(n),e.leqno?u.unshift(s):u.push(s)),a.push(new B.MathNode("mtr",u))}var f=new B.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);f.setAttribute("rowspacing",O(g));var y="",w="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",N=!1,A=0,E=M.length;M[0].type==="separator"&&(y+="top ",A=1),M[M.length-1].type==="separator"&&(y+="bottom ",E-=1);for(var R=A;R<E;R++)M[R].type==="align"?(w+=td[M[R].align],N&&(k+="none "),N=!0):M[R].type==="separator"&&N&&(k+=M[R].separator==="|"?"solid ":"dashed ",N=!1);f.setAttribute("columnalign",w.trim()),/[sd]/.test(k)&&f.setAttribute("columnlines",k.trim())}if(e.colSeparationType==="align"){for(var F=e.cols||[],q="",X=1;X<F.length;X++)q+=X%2?"0em ":"1em ";f.setAttribute("columnspacing",q.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");var _="",P=e.hLinesBeforeRow;y+=P[0].length>0?"left ":"",y+=P[P.length-1].length>0?"right ":"";for(var Y=1;Y<P.length-1;Y++)_+=P[Y].length===0?"none ":P[Y][0]?"dashed ":"solid ";return/[sd]/.test(_)&&f.setAttribute("rowlines",_.trim()),y!==""&&(f=new B.MathNode("menclose",[f]),f.setAttribute("notation",y.trim())),e.arraystretch&&e.arraystretch<1&&(f=new B.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},Eo=function(e,t){e.envName.indexOf("ed")===-1&&Y0(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=Mt(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:fa(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),l,u=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var f="",g=0;g<t[0].body.length;g++){var y=Q(t[0].body[g],"textord");f+=y.text}l=Number(f),u=l*2}var w=!u;o.body.forEach(function(A){for(var E=1;E<A.length;E+=2){var R=Q(A[E],"styling"),F=Q(R.body[0],"ordgroup");F.body.unshift(d)}if(w)u<A.length&&(u=A.length);else{var q=A.length/2;if(l<q)throw new L("Too many math in a row: "+("expected "+l+", but got "+q),A[0])}});for(var M=0;M<u;++M){var k="r",N=0;M%2===1?k="l":M>0&&w&&(N=1),a[M]={type:"align",align:k,pregap:N,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};rt({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=$0(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ca(o),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new L("Unknown column alignment: "+u,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Mt(r.parser,s,pa(r.envName))},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new L("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=Mt(r.parser,a,pa(r.envName)),o=Math.max(0,...s.body.map(l=>l.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=Mt(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=$0(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ca(o),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new L("Unknown column alignment: "+u,o)});if(n.length>1)throw new L("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=Mt(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new L("{subarray} can contain only one column");return s},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Mt(r.parser,e,pa(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Eo,htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&Y0(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:fa(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Mt(r.parser,e,"display")},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Eo,htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Y0(r);var e={autoTag:fa(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Mt(r.parser,e,"display")},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Y0(r),H4(r.parser)},htmlBuilder:at,mathmlBuilder:nt});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");V({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new L(r.funcName+" valid only within array environment")}});var xn=Do;V({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new L("Invalid environment name",n);for(var s="",o=0;o<n.body.length;++o)s+=Q(n.body[o],"textord").text;if(a==="\\begin"){if(!xn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=xn[s],{args:u,optArgs:d}=t.parseArguments("\\begin{"+s+"}",l),f={mode:t.mode,envName:s,parser:t},g=l.handler(f,u,d);t.expect("\\end",!1);var y=t.nextToken,w=Q(t.parseFunction(),"environment");if(w.name!==s)throw new L("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",y);return g}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Bo=(r,e)=>{var t=r.font,a=e.withFont(t);return re(r.body,a)},Lo=(r,e)=>{var t=r.font,a=e.withFont(t);return ie(r.body,a)},yn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};V({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=O0(e[0]),s=a;return s in yn&&(s=yn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Bo,mathmlBuilder:Lo});V({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=ae.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:W0(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});V({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),l="math"+a.slice(1);return{type:"font",mode:s,font:l,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Bo,mathmlBuilder:Lo});var jo=(r,e)=>{var t=e;return r==="display"?t=t.id>=K.SCRIPT.id?t.text():K.DISPLAY:r==="text"&&t.size===K.DISPLAY.size?t=K.TEXT:r==="script"?t=K.SCRIPT:r==="scriptscript"&&(t=K.SCRIPTSCRIPT),t},va=(r,e)=>{var t=jo(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=re(r.numer,s,e);if(r.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<u?u:o.depth}s=e.havingStyle(n);var d=re(r.denom,s,e),f,g,y;r.hasBarLine?(r.barSize?(g=ge(r.barSize,e),f=C.makeLineSpan("frac-line",e,g)):f=C.makeLineSpan("frac-line",e),g=f.height,y=f.height):(f=null,g=0,y=e.fontMetrics().defaultRuleThickness);var w,M,k;t.size===K.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,g>0?M=3*y:M=7*y,k=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,M=y):(w=e.fontMetrics().num3,M=3*y),k=e.fontMetrics().denom2);var N;if(f){var E=e.fontMetrics().axisHeight;w-o.depth-(E+.5*g)<M&&(w+=M-(w-o.depth-(E+.5*g))),E-.5*g-(d.height-k)<M&&(k+=M-(E-.5*g-(d.height-k)));var R=-(E-.5*g);N=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:f,shift:R},{type:"elem",elem:o,shift:-w}]},e)}else{var A=w-o.depth-(d.height-k);A<M&&(w+=.5*(M-A),k+=.5*(M-A)),N=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),N.height*=s.sizeMultiplier/e.sizeMultiplier,N.depth*=s.sizeMultiplier/e.sizeMultiplier;var F;t.size===K.DISPLAY.size?F=e.fontMetrics().delim1:t.size===K.SCRIPTSCRIPT.size?F=e.havingStyle(K.SCRIPT).fontMetrics().delim2:F=e.fontMetrics().delim2;var q,X;return r.leftDelim==null?q=n0(e,["mopen"]):q=dt.customSizedDelim(r.leftDelim,F,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?X=C.makeSpan([]):r.rightDelim==null?X=n0(e,["mclose"]):X=dt.customSizedDelim(r.rightDelim,F,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[q,C.makeSpan(["mfrac"],[N]),X],e)},ga=(r,e)=>{var t=new B.MathNode("mfrac",[ie(r.numer,e),ie(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=ge(r.barSize,e);t.setAttribute("linethickness",O(a))}var n=jo(r.size,e.style);if(n.size!==e.style.size){t=new B.MathNode("mstyle",[t]);var s=n.size===K.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var l=new B.MathNode("mo",[new B.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new B.MathNode("mo",[new B.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ia(o)}return t};V({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,l=null,u=null,d="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",u=")";break;case"\\\\bracefrac":o=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":o=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:l,rightDelim:u,size:d,barSize:null}},htmlBuilder:va,mathmlBuilder:ga});V({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});V({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var wn=["display","text","script","scriptscript"],Sn=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};V({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=O0(e[0]),o=s.type==="atom"&&s.family==="open"?Sn(s.text):null,l=O0(e[1]),u=l.type==="atom"&&l.family==="close"?Sn(l.text):null,d=Q(e[2],"size"),f,g=null;d.isBlank?f=!0:(g=d.value,f=g.number>0);var y="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var M=Q(w.body[0],"textord");y=wn[Number(M.text)]}}else w=Q(w,"textord"),y=wn[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:f,barSize:g,leftDelim:o,rightDelim:u,size:y}},htmlBuilder:va,mathmlBuilder:ga});V({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Q(e[0],"size").value,token:n}}});V({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=R2(Q(e[1],"infix").size),o=e[2],l=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:l,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:va,mathmlBuilder:ga});var Io=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?re(r.sup,e.havingStyle(t.sup()),e):re(r.sub,e.havingStyle(t.sub()),e),n=Q(r.base,"horizBrace")):n=Q(r,"horizBrace");var s=re(n.base,e.havingBaseStyle(K.DISPLAY)),o=ft.svgSpan(n,e),l;if(n.isOver?(l=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=C.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),a){var u=C.makeSpan(["mord",n.isOver?"mover":"munder"],[l],e);n.isOver?l=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:a}]},e):l=C.makeVList({positionType:"bottom",positionData:u.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return C.makeSpan(["mord",n.isOver?"mover":"munder"],[l],e)},rd=(r,e)=>{var t=ft.mathMLnode(r.label);return new B.MathNode(r.isOver?"mover":"munder",[ie(r.base,e),t])};V({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:Io,mathmlBuilder:rd});V({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=Q(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:we(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=Te(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=Ct(r.body,e);return t instanceof He||(t=new He("mrow",[t])),t.setAttribute("href",r.href),t}});V({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=Q(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:we(l)}}});V({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:we(e[0])}},htmlBuilder(r,e){var t=Te(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new B.MathNode("mrow",Pe(r.body,e))}});V({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=Q(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(a){case"\\htmlClass":u.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":u.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":u.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length!==2)throw new L("Error parsing key-value for \\htmlData");u["data-"+g[0].trim()]=g[1].trim()}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(l)?{type:"html",mode:t.mode,attributes:u,body:we(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=Te(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=C.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>Ct(r.body,e)});V({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:we(e[0]),mathml:we(e[1])}},htmlBuilder:(r,e)=>{var t=Te(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>Ct(r.mathml,e)});var Sr=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new L("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!eo(a))throw new L("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};V({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(t[0])for(var u=Q(t[0],"raw").string,d=u.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length===2){var y=g[1].trim();switch(g[0].trim()){case"alt":l=y;break;case"width":n=Sr(y);break;case"height":s=Sr(y);break;case"totalheight":o=Sr(y);break;default:throw new L("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=Q(e[0],"url").url;return l===""&&(l=w,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:l,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=ge(r.height,e),a=0;r.totalheight.number>0&&(a=ge(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=ge(r.width,e));var s={height:O(t+a)};n>0&&(s.width=O(n)),a>0&&(s.verticalAlign=O(-a));var o=new r4(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=ge(r.height,e),n=0;if(r.totalheight.number>0&&(n=ge(r.totalheight,e)-a,t.setAttribute("valign",O(-n))),t.setAttribute("height",O(a+n)),r.width.number>0){var s=ge(r.width,e);t.setAttribute("width",O(s))}return t.setAttribute("src",r.src),t}});V({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=Q(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return C.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=ge(r.dimension,e);return new B.SpaceNode(t)}});V({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=C.makeSpan([],[re(r.body,e)]),t=C.makeSpan(["inner"],[t],e)):t=C.makeSpan(["inner"],[re(r.body,e)]);var a=C.makeSpan(["fix"],[]),n=C.makeSpan([r.alignment],[t,a],e),s=C.makeSpan(["strut"]);return s.style.height=O(n.height+n.depth),n.depth&&(s.style.verticalAlign=O(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[ie(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});V({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});V({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new L("Mismatched "+r.funcName)}});var kn=(r,e)=>{switch(e.style.size){case K.DISPLAY.size:return r.display;case K.TEXT.size:return r.text;case K.SCRIPT.size:return r.script;case K.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};V({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:we(e[0]),text:we(e[1]),script:we(e[2]),scriptscript:we(e[3])}},htmlBuilder:(r,e)=>{var t=kn(r,e),a=Te(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=kn(r,e);return Ct(t,e)}});var Po=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&ae.isCharacterBox(t),u,d;if(e){var f=re(e,a.havingStyle(n.sup()),a);d={elem:f,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-f.depth)}}if(t){var g=re(t,a.havingStyle(n.sub()),a);u={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-g.height)}}var y;if(d&&u){var w=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+r.depth+o;y=C.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:O(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:O(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(u){var M=r.height-o;y=C.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:O(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r}]},a)}else if(d){var k=r.depth+o;y=C.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:O(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var N=[y];if(u&&s!==0&&!l){var A=C.makeSpan(["mspace"],[],a);A.style.marginRight=O(s),N.unshift(A)}return C.makeSpan(["mop","op-limits"],N,a)},Oo=["\\smallint"],Kt=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"op"),n=!0):s=Q(r,"op");var o=e.style,l=!1;o.size===K.DISPLAY.size&&s.symbol&&!Oo.includes(s.name)&&(l=!0);var u;if(s.symbol){var d=l?"Size2-Regular":"Size1-Regular",f="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(f=s.name.slice(1),s.name=f==="oiint"?"\\iint":"\\iiint"),u=C.makeSymbol(s.name,d,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var g=u.italic,y=C.staticSvg(f+"Size"+(l?"2":"1"),e);u=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:y,shift:l?.08:0}]},e),s.name="\\"+f,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var w=Te(s.body,e,!0);w.length===1&&w[0]instanceof $e?(u=w[0],u.classes[0]="mop"):u=C.makeSpan(["mop"],w,e)}else{for(var M=[],k=1;k<s.name.length;k++)M.push(C.mathsym(s.name[k],s.mode,e));u=C.makeSpan(["mop"],M,e)}var N=0,A=0;return(u instanceof $e||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(N=(u.height-u.depth)/2-e.fontMetrics().axisHeight,A=u.italic),n?Po(u,t,a,e,o,A,N):(N&&(u.style.position="relative",u.style.top=O(N)),u)},i0=(r,e)=>{var t;if(r.symbol)t=new He("mo",[We(r.name,r.mode)]),Oo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new He("mo",Pe(r.body,e));else{t=new He("mi",[new et(r.name.slice(1))]);var a=new He("mo",[We("","text")]);r.parentIsSupSub?t=new He("mrow",[t,a]):t=mo([t,a])}return t},ad={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};V({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=ad[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Kt,mathmlBuilder:i0});V({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:we(a)}},htmlBuilder:Kt,mathmlBuilder:i0});var nd={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};V({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Kt,mathmlBuilder:i0});V({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Kt,mathmlBuilder:i0});V({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=nd[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Kt,mathmlBuilder:i0});var Fo=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"operatorname"),n=!0):s=Q(r,"operatorname");var o;if(s.body.length>0){for(var l=s.body.map(g=>{var y=g.text;return typeof y=="string"?{type:"textord",mode:g.mode,text:y}:g}),u=Te(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var f=u[d];f instanceof $e&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Po(o,t,a,e,e.style,0,0):o},sd=(r,e)=>{for(var t=Pe(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof B.SpaceNode))if(s instanceof B.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof B.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var l=t.map(f=>f.toText()).join("");t=[new B.TextNode(l)]}var u=new B.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new B.MathNode("mo",[We("","text")]);return r.parentIsSupSub?new B.MathNode("mrow",[u,d]):B.newDocumentFragment([u,d])};V({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:we(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Fo,mathmlBuilder:sd});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");jt({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?C.makeFragment(Te(r.body,e,!1)):C.makeSpan(["mord"],Te(r.body,e,!0),e)},mathmlBuilder(r,e){return Ct(r.body,e,!0)}});V({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=re(r.body,e.havingCrampedStyle()),a=C.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return C.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("mover",[ie(r.body,e),t]);return a.setAttribute("accent","true"),a}});V({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:we(a)}},htmlBuilder:(r,e)=>{var t=Te(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Pe(r.body,e);return new B.MathNode("mphantom",t)}});V({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[re(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),C.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=Pe(we(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});V({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan(["inner"],[re(r.body,e.withPhantom())]),a=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=Pe(we(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});V({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=Q(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=re(r.body,e),a=ge(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new B.MathNode("mpadded",[ie(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});V({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});V({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=Q(e[0],"size"),o=Q(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&Q(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=C.makeSpan(["mord","rule"],[],e),a=ge(r.width,e),n=ge(r.height,e),s=r.shift?ge(r.shift,e):0;return t.style.borderRightWidth=O(a),t.style.borderTopWidth=O(n),t.style.bottom=O(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=ge(r.width,e),a=ge(r.height,e),n=r.shift?ge(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new B.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",O(t)),o.setAttribute("height",O(a));var l=new B.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",O(n)):(l.setAttribute("height",O(n)),l.setAttribute("depth",O(-n))),l.setAttribute("voffset",O(n)),l}});function qo(r,e,t){for(var a=Te(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var o=a[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[o+1]==="reset-size"+e.size&&(a[s].classes[o+1]="reset-size"+t.size),a[s].height*=n,a[s].depth*=n}return C.makeFragment(a)}var Cn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],od=(r,e)=>{var t=e.havingSize(r.size);return qo(r.body,t,e)};V({type:"sizing",names:Cn,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:Cn.indexOf(a)+1,body:s}},htmlBuilder:od,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Pe(r.body,t),n=new B.MathNode("mstyle",a);return n.setAttribute("mathsize",O(t.sizeMultiplier)),n}});V({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&Q(t[0],"ordgroup");if(o)for(var l="",u=0;u<o.body.length;++u){var d=o.body[u];if(l=d.text,l==="t")n=!0;else if(l==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var f=e[0];return{type:"smash",mode:a.mode,body:f,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[re(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return C.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[ie(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});V({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=re(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=C.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<K.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,l=t.height+t.depth+o+n,{span:u,ruleWidth:d,advanceWidth:f}=dt.sqrtImage(l,e),g=u.height-d;g>t.height+t.depth+o&&(o=(o+g-t.height-t.depth)/2);var y=u.height-t.height-o-d;t.style.paddingLeft=O(f);var w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+y)},{type:"elem",elem:u},{type:"kern",size:d}]},e);if(r.index){var M=e.havingStyle(K.SCRIPTSCRIPT),k=re(r.index,M,e),N=.6*(w.height-w.depth),A=C.makeVList({positionType:"shift",positionData:-N,children:[{type:"elem",elem:k}]},e),E=C.makeSpan(["root"],[A]);return C.makeSpan(["mord","sqrt"],[E,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new B.MathNode("mroot",[ie(t,e),ie(a,e)]):new B.MathNode("msqrt",[ie(t,e)])}});var Mn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};V({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=Mn[r.style],a=e.havingStyle(t).withFont("");return qo(r.body,a,e)},mathmlBuilder(r,e){var t=Mn[r.style],a=e.havingStyle(t),n=Pe(r.body,a),s=new B.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[r.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var id=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===K.DISPLAY.size||a.alwaysHandleSupSub);return n?Kt:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===K.DISPLAY.size||a.limits);return s?Fo:null}else{if(a.type==="accent")return ae.isCharacterBox(a.base)?ua:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Io:null}else return null}else return null};jt({type:"supsub",htmlBuilder(r,e){var t=id(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=re(a,e),l,u,d=e.fontMetrics(),f=0,g=0,y=a&&ae.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());l=re(n,w,e),y||(f=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=re(s,M,e),y||(g=o.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var k;e.style===K.DISPLAY?k=d.sup1:e.style.cramped?k=d.sup3:k=d.sup2;var N=e.sizeMultiplier,A=O(.5/d.ptPerEm/N),E=null;if(u){var R=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof $e||R)&&(E=O(-o.italic))}var F;if(l&&u){f=Math.max(f,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var q=d.defaultRuleThickness,X=4*q;if(f-l.depth-(u.height-g)<X){g=X-(f-l.depth)+u.height;var _=.8*d.xHeight-(f-l.depth);_>0&&(f+=_,g-=_)}var P=[{type:"elem",elem:u,shift:g,marginRight:A,marginLeft:E},{type:"elem",elem:l,shift:-f,marginRight:A}];F=C.makeVList({positionType:"individualShift",children:P},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var Y=[{type:"elem",elem:u,marginLeft:E,marginRight:A}];F=C.makeVList({positionType:"shift",positionData:g,children:Y},e)}else if(l)f=Math.max(f,k,l.depth+.25*d.xHeight),F=C.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:A}]},e);else throw new Error("supsub must have either sup or sub.");var be=Or(o,"right")||"mord";return C.makeSpan([be],[o,C.makeSpan(["msupsub"],[F])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[ie(r.base,e)];r.sub&&s.push(ie(r.sub,e)),r.sup&&s.push(ie(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var d=r.base;d&&d.type==="op"&&d.limits&&e.style===K.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===K.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var u=r.base;u&&u.type==="op"&&u.limits&&(e.style===K.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===K.DISPLAY)?o="munder":o="msub"}else{var l=r.base;l&&l.type==="op"&&l.limits&&(e.style===K.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===K.DISPLAY)?o="mover":o="msup"}return new B.MathNode(o,s)}});jt({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new B.MathNode("mo",[We(r.text,r.mode)]);if(r.family==="bin"){var a=la(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var Ho={mi:"italic",mn:"normal",mtext:"normal"};jt({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new B.MathNode("mi",[We(r.text,r.mode,e)]),a=la(r,e)||"italic";return a!==Ho[t.type]&&t.setAttribute("mathvariant",a),t}});jt({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=We(r.text,r.mode,e),a=la(r,e)||"normal",n;return r.mode==="text"?n=new B.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new B.MathNode("mn",[t]):r.text==="\\prime"?n=new B.MathNode("mo",[t]):n=new B.MathNode("mi",[t]),a!==Ho[n.type]&&n.setAttribute("mathvariant",a),n}});var kr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Cr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};jt({type:"spacing",htmlBuilder(r,e){if(Cr.hasOwnProperty(r.text)){var t=Cr[r.text].className||"";if(r.mode==="text"){var a=C.makeOrd(r,e,"textord");return a.classes.push(t),a}else return C.makeSpan(["mspace",t],[C.mathsym(r.text,r.mode,e)],e)}else{if(kr.hasOwnProperty(r.text))return C.makeSpan(["mspace",kr[r.text]],[],e);throw new L('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(Cr.hasOwnProperty(r.text))t=new B.MathNode("mtext",[new B.TextNode(" ")]);else{if(kr.hasOwnProperty(r.text))return new B.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var Tn=()=>{var r=new B.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};jt({type:"tag",mathmlBuilder(r,e){var t=new B.MathNode("mtable",[new B.MathNode("mtr",[Tn(),new B.MathNode("mtd",[Ct(r.body,e)]),Tn(),new B.MathNode("mtd",[Ct(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var zn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Nn={"\\textbf":"textbf","\\textmd":"textmd"},ld={"\\textit":"textit","\\textup":"textup"},An=(r,e)=>{var t=r.font;if(t){if(zn[t])return e.withTextFontFamily(zn[t]);if(Nn[t])return e.withTextFontWeight(Nn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(ld[t])};V({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:we(n),font:a}},htmlBuilder(r,e){var t=An(r,e),a=Te(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=An(r,e);return Ct(r.body,t)}});V({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=re(r.body,e),a=C.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("munder",[ie(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});V({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=re(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return C.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new B.MathNode("mpadded",[ie(r.body,e)],["vcenter"])}});V({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new L("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=Dn(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(C.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return C.makeSpan(["mord","text"].concat(n.sizingClasses(e)),C.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new B.TextNode(Dn(r)),a=new B.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var Dn=r=>r.body.replace(/ /g,r.star?"␣":" "),yt=co,Vo=`[ \r
|
|
326
|
+
]`,cd="\\\\[a-zA-Z@]+",ud="\\\\[^\uD800-\uDFFF]",dd="("+cd+")"+Vo+"*",md=`\\\\(
|
|
327
327
|
|[ \r ]+
|
|
328
|
-
?)[ \r ]*`,
|
|
329
|
-
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ie(n,new Ee(this,t,this.tokenRegex.lastIndex))}}class a5{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new L("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var n5=Ao;v("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});v("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});v("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});v("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});v("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Dn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};v("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new L("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=Dn[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=Dn[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var va=(r,e,t,a)=>{var n=r.consumeArg().tokens;if(n.length!==1)throw new L("\\newcommand's first argument must be a macro name");var s=n[0].text,o=r.isDefined(s);if(o&&!e)throw new L("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!t)throw new L("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(n=r.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var u="",d=r.expandNextToken();d.text!=="]"&&d.text!=="EOF";)u+=d.text,d=r.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new L("Invalid number of arguments: "+u);l=parseInt(u),n=r.consumeArg().tokens}return o&&a||r.macros.set(s,{tokens:n,numArgs:l}),""};v("\\newcommand",r=>va(r,!1,!0,!1));v("\\renewcommand",r=>va(r,!0,!1,!1));v("\\providecommand",r=>va(r,!0,!0,!0));v("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});v("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});v("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),y0[t],ie.math[t],ie.text[t]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");v("ℬ","\\mathscr{B}");v("ℰ","\\mathscr{E}");v("ℱ","\\mathscr{F}");v("ℋ","\\mathscr{H}");v("ℐ","\\mathscr{I}");v("ℒ","\\mathscr{L}");v("ℳ","\\mathscr{M}");v("ℛ","\\mathscr{R}");v("ℭ","\\mathfrak{C}");v("ℌ","\\mathfrak{H}");v("ℨ","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("·","\\cdotp");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");v("\\ne","\\neq");v("≠","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");v("∉","\\notin");v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");v("⟂","\\perp");v("‼","\\mathclose{!\\mkern-0.8mu!}");v("∌","\\notni");v("⌜","\\ulcorner");v("⌝","\\urcorner");v("⌞","\\llcorner");v("⌟","\\lrcorner");v("©","\\copyright");v("®","\\textregistered");v("️","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("⋮","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var En={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};v("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in En?e=En[t]:(t.slice(0,4)==="\\not"||t in ie.math&&["bin","rel"].includes(ie.math[t].group))&&(e="\\dotsb"),e});var ga={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};v("\\dotso",function(r){var e=r.future().text;return e in ga?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in ga&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in ga?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new L("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var qo=I(Ye["Main-Regular"][84][1]-.7*Ye["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+qo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+qo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("∷","\\dblcolon");v("∹","\\eqcolon");v("≔","\\coloneqq");v("≕","\\eqqcolon");v("⩴","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");v("\\nleqq","\\html@mathml{\\@nleqq}{≰}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");v("\\imath","\\html@mathml{\\@imath}{ı}");v("\\jmath","\\html@mathml{\\@jmath}{ȷ}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");v("⟦","\\llbracket");v("⟧","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");v("⦃","\\lBrace");v("⦄","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");v("⦵","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");var Ho=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var u=g=>x=>{r&&(x.macros.set("|",o),n.length&&x.macros.set("\\|",l));var w=g;if(!g&&n.length){var M=x.future();M.text==="|"&&(x.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",u(!1)),n.length&&e.macros.set("\\|",u(!0));var d=e.consumeArg().tokens,f=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};v("\\bra@ket",Ho(!1));v("\\bra@set",Ho(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");var Vo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class s5{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new a5(n5,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Nn(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new Ie("EOF",a.loc)),this.pushTokens(n),new Ie("",Ee.range(t,a))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,l=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new L("Extra }",s)}else if(s.text==="EOF")throw new L("Unexpected end of input in a macro argument, expected '"+(e&&a?e[l]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[l]==="{")&&s.text===e[l]){if(++l,l===e.length){t.splice(-l,l);break}}else l=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new L("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new L("Use of the macro doesn't match its definition",s)}}for(var o=[],l=0;l<e;l++)o.push(this.consumeArg(t&&t[l+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new L("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new L("Undefined control sequence: "+a);return this.pushToken(t),!1}this.countExpansion(1);var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var l=s.length-1;l>=0;--l){var u=s[l];if(u.text==="#"){if(l===0)throw new L("Incomplete placeholder at end of macro body",u);if(u=s[--l],u.text==="#")s.splice(l+1,1);else if(/^[1-9]$/.test(u.text))s.splice(l,2,...o[+u.text-1]);else throw new L("Not a valid argument number",u)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ie(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var l=new Nn(n,this.settings),u=[],d=l.lex();d.text!=="EOF";)u.push(d),d=l.lex();u.reverse();var f={tokens:u,numArgs:s};return f}return n}isDefined(e){return this.macros.has(e)||y0.hasOwnProperty(e)||ie.math.hasOwnProperty(e)||ie.text.hasOwnProperty(e)||Vo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:y0.hasOwnProperty(e)&&!y0[e].primitive}}var Rn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Tt=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),kr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Bn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Yt{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new s5(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new L("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ie("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(Yt.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&y0[n.text]&&y0[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++)if(e[n].type==="infix"){if(t!==-1)throw new L("only one infix operator per group",e[n].token);t=n,a=e[n].replaceWith}if(t!==-1&&a){var s,o,l=e.slice(0,t),u=e.slice(t+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?o=u[0]:o={type:"ordgroup",mode:this.mode,body:u};var d;return a==="\\\\abovefrac"?d=this.callFunction(a,[s,e[t],o],[]):d=this.callFunction(a,[s,o],[]),[d]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n;do{var s;n=this.parseGroup(e)}while(((s=n)==null?void 0:s.type)==="internal");if(!n)throw new L("Expected group after '"+a+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:"textord",mode:"text",text:e[a]});var n={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if((t==null?void 0:t.type)==="internal"||this.mode==="text")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var o=s.text==="\\limits";t.limits=o,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new L("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new L("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new L("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new L("Double superscript",s);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();this.fetch().text==="'";)u.push(l),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:u}}else if(Tt[s.text]){var d=Rn.test(s.text),f=[];for(f.push(new Ie(Tt[s.text])),this.consume();;){var g=this.fetch().text;if(!Tt[g]||Rn.test(g)!==d)break;f.unshift(new Ie(Tt[g])),this.consume()}var x=this.subparse(f);d?n={type:"ordgroup",mode:"math",body:x}:a={type:"ordgroup",mode:"math",body:x}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=y0[n];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new L("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new L("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new L("Can't use function '"+n+"' in math mode",a);var{args:o,optArgs:l}=this.parseArguments(n,s);return this.callFunction(n,o,l,a,e)}callFunction(e,t,a,n,s){var o={funcName:e,parser:this,token:n,breakOnTokenText:s},l=y0[e];if(l&&l.handler)return l.handler(o,t,a);throw new L("No function handler for "+e)}parseArguments(e,t){var a=t.numArgs+t.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],s=[],o=0;o<a;o++){var l=t.argTypes&&t.argTypes[o],u=o<t.numOptionalArgs;(t.primitive&&l==null||t.type==="sqrt"&&o===1&&s[0]==null)&&(l="primitive");var d=this.parseGroupOfType("argument to '"+e+"'",l,u);if(u)s.push(d);else if(d!=null)n.push(d);else throw new L("Null argument, please report this as a bug")}return{args:n,optArgs:s}}parseGroupOfType(e,t,a){switch(t){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,t);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",a);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(a)throw new L("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new L("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new L("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var n="",s;(s=this.fetch()).text!=="EOF";)n+=s.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)n=o,s+=n.text,this.consume();if(s==="")throw new L("Invalid "+t+": '"+a.text+"'",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new L("Invalid color: '"+t.text+"'",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new L("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!Ks(s))throw new L("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var a=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),o}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n==="{"||n==="\\begingroup"){this.consume();var o=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),u=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Ee.range(a,u),body:l,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!Vo.hasOwnProperty(n)){if(this.settings.throwOnError)throw new L("Undefined control sequence: "+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a],s=n.text;s==="-"&&e[a+1].text==="-"&&(a+1<t&&e[a+2].text==="-"?(e.splice(a,3,{type:"textord",mode:"text",loc:Ee.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:Ee.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:Ee.range(n,e[a+1]),text:s+s}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new L(`\\verb assertion failed --
|
|
330
|
-
please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}
|
|
328
|
+
?)[ \r ]*`,Vr="[̀-ͯ]",hd=new RegExp(Vr+"+$"),fd="("+Vo+"+)|"+(md+"|")+"([!-\\[\\]-‧-豈-]"+(Vr+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Vr+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+dd)+("|"+ud+")");class Rn{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(fd,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Ve("EOF",new Ie(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new L("Unexpected character: '"+e[t]+"'",new Ve(e[t],new Ie(this,t,t+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(`
|
|
329
|
+
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ve(n,new Ie(this,t,this.tokenRegex.lastIndex))}}class pd{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new L("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var vd=Ro;v("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});v("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});v("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});v("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});v("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var En={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};v("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new L("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=En[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=En[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var ba=(r,e,t,a)=>{var n=r.consumeArg().tokens;if(n.length!==1)throw new L("\\newcommand's first argument must be a macro name");var s=n[0].text,o=r.isDefined(s);if(o&&!e)throw new L("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!t)throw new L("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(n=r.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var u="",d=r.expandNextToken();d.text!=="]"&&d.text!=="EOF";)u+=d.text,d=r.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new L("Invalid number of arguments: "+u);l=parseInt(u),n=r.consumeArg().tokens}return o&&a||r.macros.set(s,{tokens:n,numArgs:l}),""};v("\\newcommand",r=>ba(r,!1,!0,!1));v("\\renewcommand",r=>ba(r,!0,!1,!1));v("\\providecommand",r=>ba(r,!0,!0,!0));v("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});v("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});v("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),yt[t],ce.math[t],ce.text[t]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");v("ℬ","\\mathscr{B}");v("ℰ","\\mathscr{E}");v("ℱ","\\mathscr{F}");v("ℋ","\\mathscr{H}");v("ℐ","\\mathscr{I}");v("ℒ","\\mathscr{L}");v("ℳ","\\mathscr{M}");v("ℛ","\\mathscr{R}");v("ℭ","\\mathfrak{C}");v("ℌ","\\mathfrak{H}");v("ℨ","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("·","\\cdotp");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");v("\\ne","\\neq");v("≠","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");v("∉","\\notin");v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");v("⟂","\\perp");v("‼","\\mathclose{!\\mkern-0.8mu!}");v("∌","\\notni");v("⌜","\\ulcorner");v("⌝","\\urcorner");v("⌞","\\llcorner");v("⌟","\\lrcorner");v("©","\\copyright");v("®","\\textregistered");v("️","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("⋮","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Bn={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};v("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in Bn?e=Bn[t]:(t.slice(0,4)==="\\not"||t in ce.math&&["bin","rel"].includes(ce.math[t].group))&&(e="\\dotsb"),e});var xa={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};v("\\dotso",function(r){var e=r.future().text;return e in xa?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in xa&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in xa?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new L("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _o=O(Qe["Main-Regular"][84][1]-.7*Qe["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+_o+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+_o+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("∷","\\dblcolon");v("∹","\\eqcolon");v("≔","\\coloneqq");v("≕","\\eqqcolon");v("⩴","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");v("\\nleqq","\\html@mathml{\\@nleqq}{≰}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");v("\\imath","\\html@mathml{\\@imath}{ı}");v("\\jmath","\\html@mathml{\\@jmath}{ȷ}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");v("⟦","\\llbracket");v("⟧","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");v("⦃","\\lBrace");v("⦄","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");v("⦵","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");var Go=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var u=g=>y=>{r&&(y.macros.set("|",o),n.length&&y.macros.set("\\|",l));var w=g;if(!g&&n.length){var M=y.future();M.text==="|"&&(y.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",u(!1)),n.length&&e.macros.set("\\|",u(!0));var d=e.consumeArg().tokens,f=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};v("\\bra@ket",Go(!1));v("\\bra@set",Go(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");var Uo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class gd{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new pd(vd,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Rn(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new Ve("EOF",a.loc)),this.pushTokens(n),new Ve("",Ie.range(t,a))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,l=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new L("Extra }",s)}else if(s.text==="EOF")throw new L("Unexpected end of input in a macro argument, expected '"+(e&&a?e[l]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[l]==="{")&&s.text===e[l]){if(++l,l===e.length){t.splice(-l,l);break}}else l=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new L("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new L("Use of the macro doesn't match its definition",s)}}for(var o=[],l=0;l<e;l++)o.push(this.consumeArg(t&&t[l+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new L("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new L("Undefined control sequence: "+a);return this.pushToken(t),!1}this.countExpansion(1);var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var l=s.length-1;l>=0;--l){var u=s[l];if(u.text==="#"){if(l===0)throw new L("Incomplete placeholder at end of macro body",u);if(u=s[--l],u.text==="#")s.splice(l+1,1);else if(/^[1-9]$/.test(u.text))s.splice(l,2,...o[+u.text-1]);else throw new L("Not a valid argument number",u)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ve(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var l=new Rn(n,this.settings),u=[],d=l.lex();d.text!=="EOF";)u.push(d),d=l.lex();u.reverse();var f={tokens:u,numArgs:s};return f}return n}isDefined(e){return this.macros.has(e)||yt.hasOwnProperty(e)||ce.math.hasOwnProperty(e)||ce.text.hasOwnProperty(e)||Uo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:yt.hasOwnProperty(e)&&!yt[e].primitive}}var Ln=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,z0=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Mr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},jn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Z0{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new gd(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new L("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ve("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(Z0.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&yt[n.text]&&yt[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++)if(e[n].type==="infix"){if(t!==-1)throw new L("only one infix operator per group",e[n].token);t=n,a=e[n].replaceWith}if(t!==-1&&a){var s,o,l=e.slice(0,t),u=e.slice(t+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?o=u[0]:o={type:"ordgroup",mode:this.mode,body:u};var d;return a==="\\\\abovefrac"?d=this.callFunction(a,[s,e[t],o],[]):d=this.callFunction(a,[s,o],[]),[d]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n;do{var s;n=this.parseGroup(e)}while(((s=n)==null?void 0:s.type)==="internal");if(!n)throw new L("Expected group after '"+a+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:"textord",mode:"text",text:e[a]});var n={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if((t==null?void 0:t.type)==="internal"||this.mode==="text")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var o=s.text==="\\limits";t.limits=o,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new L("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new L("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new L("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new L("Double superscript",s);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();this.fetch().text==="'";)u.push(l),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:u}}else if(z0[s.text]){var d=Ln.test(s.text),f=[];for(f.push(new Ve(z0[s.text])),this.consume();;){var g=this.fetch().text;if(!z0[g]||Ln.test(g)!==d)break;f.unshift(new Ve(z0[g])),this.consume()}var y=this.subparse(f);d?n={type:"ordgroup",mode:"math",body:y}:a={type:"ordgroup",mode:"math",body:y}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=yt[n];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new L("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new L("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new L("Can't use function '"+n+"' in math mode",a);var{args:o,optArgs:l}=this.parseArguments(n,s);return this.callFunction(n,o,l,a,e)}callFunction(e,t,a,n,s){var o={funcName:e,parser:this,token:n,breakOnTokenText:s},l=yt[e];if(l&&l.handler)return l.handler(o,t,a);throw new L("No function handler for "+e)}parseArguments(e,t){var a=t.numArgs+t.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],s=[],o=0;o<a;o++){var l=t.argTypes&&t.argTypes[o],u=o<t.numOptionalArgs;(t.primitive&&l==null||t.type==="sqrt"&&o===1&&s[0]==null)&&(l="primitive");var d=this.parseGroupOfType("argument to '"+e+"'",l,u);if(u)s.push(d);else if(d!=null)n.push(d);else throw new L("Null argument, please report this as a bug")}return{args:n,optArgs:s}}parseGroupOfType(e,t,a){switch(t){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,t);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",a);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(a)throw new L("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new L("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new L("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var n="",s;(s=this.fetch()).text!=="EOF";)n+=s.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)n=o,s+=n.text,this.consume();if(s==="")throw new L("Invalid "+t+": '"+a.text+"'",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new L("Invalid color: '"+t.text+"'",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new L("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!eo(s))throw new L("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var a=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),o}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n==="{"||n==="\\begingroup"){this.consume();var o=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),u=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Ie.range(a,u),body:l,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!Uo.hasOwnProperty(n)){if(this.settings.throwOnError)throw new L("Undefined control sequence: "+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a],s=n.text;s==="-"&&e[a+1].text==="-"&&(a+1<t&&e[a+2].text==="-"?(e.splice(a,3,{type:"textord",mode:"text",loc:Ie.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:Ie.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:Ie.range(n,e[a+1]),text:s+s}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new L(`\\verb assertion failed --
|
|
330
|
+
please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}jn.hasOwnProperty(t[0])&&!ce[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=jn[t[0]]+t.slice(1));var s=hd.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if(ce[this.mode][t]){this.settings.strict&&this.mode==="math"&&Pr.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l=ce[this.mode][t].group,u=Ie.range(e),d;if(s4.hasOwnProperty(l)){var f=l;d={type:"atom",mode:this.mode,family:f,loc:u,text:t}}else d={type:l,mode:this.mode,loc:u,text:t};o=d}else if(t.charCodeAt(0)>=128)this.settings.strict&&(Qs(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:Ie.range(e),text:t};else return null;if(this.consume(),s)for(var g=0;g<s[0].length;g++){var y=s[0][g];if(!Mr[y])throw new L("Unknown accent ' "+y+"'",e);var w=Mr[y][this.mode]||Mr[y].text;if(!w)throw new L("Accent "+y+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:Ie.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}Z0.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ya=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new Z0(e,t);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new L("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new Ve("\\df@tag")])}]}return n},$o=function(e,t,a){t.textContent="";var n=wa(e,a).toNode();t.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),$o=function(){throw new L("KaTeX doesn't work in quirks mode.")});var bd=function(e,t){var a=wa(e,t).toMarkup();return a},xd=function(e,t){var a=new ra(t);return ya(e,a)},Wo=function(e,t,a){if(a.throwOnError||!(e instanceof L))throw e;var n=C.makeSpan(["katex-error"],[new $e(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},wa=function(e,t){var a=new ra(t);try{var n=ya(e,a);return N4(n,e,a)}catch(s){return Wo(s,e,a)}},yd=function(e,t){var a=new ra(t);try{var n=ya(e,a);return A4(n,e,a)}catch(s){return Wo(s,e,a)}},wd="0.16.25",Sd={Span:o0,Anchor:sa,SymbolNode:$e,SvgNode:mt,PathNode:kt,LineNode:Ir},Xo={version:wd,render:$o,renderToString:bd,ParseError:L,SETTINGS_SCHEMA:D0,__parse:xd,__renderToDomTree:wa,__renderToHTMLTree:yd,__setFontMetrics:K2,__defineSymbol:i,__defineFunction:V,__defineMacro:v,__domTree:Sd};const Ht=(r,e,t,a)=>{const n=[];let s=r,o=0;const l=[{regex:/\$([^$\n]+)\$/,render:u=>{const d=u[1],f=o++;if(t)return h.jsx("span",{children:t(d)},f);try{const g=Xo.renderToString(d,{throwOnError:!1,displayMode:!1});return h.jsx("span",{className:"inline-block",dangerouslySetInnerHTML:{__html:g}},f)}catch{return h.jsx("span",{className:"inline-block px-1 py-0.5 font-mono text-[0.9em] bg-[var(--color-red-200)] text-[var(--color-red-1000)] rounded",title:"Math rendering error",children:d},f)}}},{regex:/\*\*\*(.+?)\*\*\*|___(.+?)___/,render:u=>h.jsx("strong",{className:"font-medium",children:h.jsx("em",{className:"italic",children:u[1]||u[2]})},o++)},{regex:/\*\*(.+?)\*\*|__(.+?)__/,render:u=>h.jsx("strong",{className:"font-medium",children:u[1]||u[2]},o++)},{regex:/\*([^*\n]+)\*|_([^_\n]+)_/,render:u=>h.jsx("em",{className:"italic",children:u[1]||u[2]},o++)},{regex:/~~(.+?)~~/,render:u=>h.jsx("del",{className:"line-through",children:u[1]},o++)},{regex:/`([^`\n]+)`/,render:u=>{const d=u[1],f=o++;return e?h.jsx("span",{children:e(d)},f):h.jsx("code",{className:"px-1.5 py-0.5 font-[Roboto_Mono,monospace] text-[0.875em] bg-[var(--color-gray-100)] text-[var(--color-gray-800)] rounded-[4px] border border-[var(--color-gray-200)]",children:d},f)}},{regex:/\[([^\]]+)\]\(([^)]+)\)/,render:u=>{const d=u[1],f=u[2],g=o++;return a?h.jsx("span",{children:a(f,d)},g):h.jsx("a",{href:f,className:"text-[var(--color-blue-800)] hover:text-[var(--color-blue-1000)] underline underline-offset-2 transition-colors",target:"_blank",rel:"noopener noreferrer",children:d},g)}}];for(;s.length>0;){let u=null;for(const d of l){const f=s.match(d.regex);f&&f.index!==void 0&&(!u||f.index<u.index)&&(u={index:f.index,match:f,pattern:d})}if(u)u.index>0&&n.push(s.slice(0,u.index)),n.push(u.pattern.render(u.match)),s=s.slice(u.index+u.match[0].length);else{n.push(s);break}}return n},kd=r=>{const e=[],t=r.split(`
|
|
331
331
|
`);let a=0;for(;a<t.length;){const n=t[a];if(n.trim()===""){a++;continue}if(n.trim().startsWith("$$")){const l=[];if(n.trim().endsWith("$$")&&n.trim().length>4)l.push(n.trim().slice(2,-2));else{for(a++;a<t.length&&!t[a].trim().endsWith("$$");)l.push(t[a]),a++;if(a<t.length){const d=t[a].trim();d!=="$$"&&l.push(d.slice(0,-2))}}e.push({type:"mathBlock",content:l.join(`
|
|
332
332
|
`)}),a++;continue}if(n.trim().startsWith("```")){const l=n.trim().slice(3).trim()||void 0,u=[];for(a++;a<t.length&&!t[a].trim().startsWith("```");)u.push(t[a]),a++;e.push({type:"codeBlock",content:u.join(`
|
|
333
|
-
`),language:l}),a++;continue}const s=n.match(/^(#{1,6})\s+(.+)$/);if(s){e.push({type:"heading",level:s[1].length,content:s[2]}),a++;continue}if(/^(\-{3,}|\*{3,}|_{3,})$/.test(n.trim())){e.push({type:"horizontalRule",content:""}),a++;continue}if(n.trim().startsWith("|")&&n.trim().endsWith("|")&&a+1<t.length&&/^\|[\s\-:|]+\|$/.test(t[a+1].trim())){const l=n.trim().slice(1,-1).split("|").map(g=>g.trim()),d=t[a+1].trim().slice(1,-1).split("|").map(g=>g.trim()).map(g=>g.startsWith(":")&&g.endsWith(":")?"center":g.endsWith(":")?"right":"left"),f=[];for(a+=2;a<t.length&&t[a].trim().startsWith("|")&&t[a].trim().endsWith("|");){const g=t[a].trim().slice(1,-1).split("|").map(
|
|
334
|
-
`)});continue}if(/^[\-\*\+]\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^[\-\*\+]\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^[\-\*\+]\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!1});continue}if(/^\d+\.\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^\d+\.\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^\d+\.\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!0});continue}const o=[n];for(a++;a<t.length&&t[a].trim()!==""&&!t[a].trim().startsWith("#")&&!t[a].trim().startsWith("```")&&!t[a].trim().startsWith("$$")&&!t[a].trim().startsWith(">")&&!/^[\-\*\+]\s+/.test(t[a].trim())&&!/^\d+\.\s+/.test(t[a].trim())&&!/^(\-{3,}|\*{3,}|_{3,})$/.test(t[a].trim());)o.push(t[a]),a++;e.push({type:"paragraph",content:o.join(" ")})}return e},m5=(r,e,t,a,n,s)=>r.map((o,l)=>{var u;switch(o.type){case"heading":{const d=`h${o.level}`,f={1:"font-[Signifier,serif] text-[1.75rem] font-light leading-tight tracking-[-0.5px] text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal text-[var(--color-gray-600)]"},g={1:{marginTop:l===0?0:20,marginBottom:12},2:{marginTop:l===0?0:16,marginBottom:8},3:{marginTop:l===0?0:14,marginBottom:6},4:{marginTop:l===0?0:12,marginBottom:6},5:{marginTop:l===0?0:10,marginBottom:4},6:{marginTop:l===0?0:10,marginBottom:4}};return h.jsx(d,{className:f[o.level],style:g[o.level],children:q0(o.content,t,n,s)},l)}case"paragraph":return h.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif]",style:{marginTop:l===0?0:8,marginBottom:8},children:q0(o.content,t,n,s)},l);case"codeBlock":return e?h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:e(o.content,o.language)},l):h.jsx("pre",{className:"font-[Roboto_Mono,monospace] p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsx("code",{className:"font-[Roboto_Mono,monospace] text-[0.875rem] text-[var(--color-gray-800)] leading-relaxed",children:o.content})},l);case"mathBlock":if(a)return h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:a(o.content)},l);try{const d=Uo.renderToString(o.content,{throwOnError:!1,displayMode:!0});return h.jsx("div",{className:"overflow-x-auto text-center",style:{marginTop:l===0?0:12,marginBottom:12},dangerouslySetInnerHTML:{__html:d}},l)}catch{return h.jsxs("div",{className:"p-4 bg-[var(--color-red-200)] border border-[var(--color-red-1000)] rounded-[8px] text-center font-mono text-[var(--color-red-1000)]",style:{marginTop:l===0?0:12,marginBottom:12},children:[h.jsx("span",{className:"text-[0.75rem] uppercase tracking-wider opacity-60 block",style:{marginBottom:4},children:"Math Rendering Error"}),h.jsx("pre",{className:"text-left",children:o.content})]},l)}case"blockquote":return h.jsx("blockquote",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 py-4 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic rounded-r",style:{marginTop:l===0?0:12,marginBottom:12},children:q0(o.content,t,n,s)},l);case"list":{const d=o.ordered?"ol":"ul",f=o.ordered?"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-decimal marker:font-medium marker:text-[var(--color-gray-800)]":"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-disc marker:text-[var(--color-gray-600)]";return h.jsx(d,{className:f,style:{marginTop:l===0?0:8,marginBottom:12},children:(u=o.items)==null?void 0:u.map((g,x)=>h.jsx("li",{className:"leading-relaxed pl-1",style:{marginBottom:4},children:q0(g,t,n,s)},x))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:f,alignments:g}=o.table,x=w=>{switch(w){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return h.jsx("div",{className:"overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsxs("table",{className:"font-[Inter,system-ui,-apple-system,sans-serif] w-full border-collapse border border-[var(--color-gray-200)] bg-white shadow-sm rounded-lg",children:[h.jsx("thead",{className:"bg-[var(--color-gray-50)]",children:h.jsx("tr",{className:"border-b-2 border-[var(--color-gray-200)]",children:d.map((w,M)=>h.jsx("th",{className:`px-4 py-3 font-medium border-r border-[var(--color-gray-200)] last:border-r-0 ${x(g==null?void 0:g[M])}`,children:q0(w,t,n,s)},M))})}),h.jsx("tbody",{children:f.map((w,M)=>h.jsx("tr",{className:"border-b border-[var(--color-gray-200)] last:border-b-0 hover:bg-[var(--color-gray-50)] transition-colors",children:w.map((k,A)=>h.jsx("td",{className:`px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top ${x(g==null?void 0:g[A])}`,children:q0(k,t,n,s)},A))},M))})]})},l)}case"horizontalRule":return h.jsx("hr",{className:"border-t border-[var(--color-gray-200)]",style:{marginTop:16,marginBottom:16}},l);default:return null}}),$o=V.forwardRef(({className:r,content:e,size:t="medium",variant:a="default",renderCodeBlock:n,renderInlineCode:s,renderMathBlock:o,renderInlineMath:l,renderLink:u,...d},f)=>{const g=V.useMemo(()=>{const x=d5(e);return m5(x,n,s,o,l,u)},[e,n,s,o,l,u]);return h.jsx("div",{ref:f,className:G(d2({size:t,variant:a}),r),...d,children:g})});$o.displayName="MarkdownRenderer";exports.Activity=p.Activity;exports.Airplay=p.Airplay;exports.AlertCircle=p.AlertCircle;exports.AlertOctagon=p.AlertOctagon;exports.AlignCenter=p.AlignCenter;exports.AlignJustify=p.AlignJustify;exports.AlignLeft=p.AlignLeft;exports.AlignRight=p.AlignRight;exports.Anchor=p.Anchor;exports.Aperture=p.Aperture;exports.Archive=p.Archive;exports.ArrowDownCircle=p.ArrowDownCircle;exports.ArrowDownLeft=p.ArrowDownLeft;exports.ArrowDownRight=p.ArrowDownRight;exports.ArrowLeftCircle=p.ArrowLeftCircle;exports.ArrowRightCircle=p.ArrowRightCircle;exports.ArrowUp=p.ArrowUp;exports.ArrowUpCircle=p.ArrowUpCircle;exports.ArrowUpLeft=p.ArrowUpLeft;exports.ArrowUpRight=p.ArrowUpRight;exports.AtSign=p.AtSign;exports.Award=p.Award;exports.BarChart=p.BarChart;exports.BarChart2=p.BarChart2;exports.Battery=p.Battery;exports.BatteryCharging=p.BatteryCharging;exports.BellOff=p.BellOff;exports.Bluetooth=p.Bluetooth;exports.Bold=p.Bold;exports.Book=p.Book;exports.BookOpen=p.BookOpen;exports.Bookmark=p.Bookmark;exports.Box=p.Box;exports.Briefcase=p.Briefcase;exports.BrushCleanup=p.BrushCleanup;exports.Calendar=p.Calendar;exports.Camera=p.Camera;exports.CameraOff=p.CameraOff;exports.Cast=p.Cast;exports.Check=p.Check;exports.CheckCircle=p.CheckCircle;exports.CheckSquare=p.CheckSquare;exports.ChevronDown=p.ChevronDown;exports.ChevronLeft=p.ChevronLeft;exports.ChevronRight=p.ChevronRight;exports.ChevronUp=p.ChevronUp;exports.ChevronsDown=p.ChevronsDown;exports.ChevronsLeft=p.ChevronsLeft;exports.ChevronsRight=p.ChevronsRight;exports.ChevronsUp=p.ChevronsUp;exports.Chrome=p.Chrome;exports.Circle=p.Circle;exports.Clipboard=p.Clipboard;exports.ClockHistory=p.ClockHistory;exports.Cloud=p.Cloud;exports.CloudDrizzle=p.CloudDrizzle;exports.CloudLightning=p.CloudLightning;exports.CloudOff=p.CloudOff;exports.CloudRain=p.CloudRain;exports.CloudSnow=p.CloudSnow;exports.Code=p.Code;exports.Codepen=p.Codepen;exports.Codesandbox=p.Codesandbox;exports.Coffee=p.Coffee;exports.Columns=p.Columns;exports.Command=p.Command;exports.Compass=p.Compass;exports.Component=p.Component;exports.CornerDownLeft=p.CornerDownLeft;exports.CornerDownRight=p.CornerDownRight;exports.CornerLeftDown=p.CornerLeftDown;exports.CornerLeftUp=p.CornerLeftUp;exports.CornerRightDown=p.CornerRightDown;exports.CornerRightUp=p.CornerRightUp;exports.CornerUpLeft=p.CornerUpLeft;exports.CornerUpRight=p.CornerUpRight;exports.Cpu=p.Cpu;exports.CreditCard=p.CreditCard;exports.Crop=p.Crop;exports.Crosshair=p.Crosshair;exports.Database=p.Database;exports.Delete=p.Delete;exports.Disc=p.Disc;exports.Divide=p.Divide;exports.DivideCircle=p.DivideCircle;exports.DivideSquare=p.DivideSquare;exports.DollarSign=p.DollarSign;exports.DownloadCloud=p.DownloadCloud;exports.Dribbble=p.Dribbble;exports.Droplet=p.Droplet;exports.Dumbell=p.Dumbell;exports.Edit2=p.Edit2;exports.Edit3=p.Edit3;exports.Eye=p.Eye;exports.EyeOff=p.EyeOff;exports.Facebook=p.Facebook;exports.FastForward=p.FastForward;exports.Feather=p.Feather;exports.Figma=p.Figma;exports.FileMinus=p.FileMinus;exports.FilePlus=p.FilePlus;exports.FileText=p.FileText;exports.Film=p.Film;exports.Filter=p.Filter;exports.Filter1=p.Filter1;exports.Flag=p.Flag;exports.Folder=p.Folder;exports.FolderMinus=p.FolderMinus;exports.FolderPlus=p.FolderPlus;exports.Framer=p.Framer;exports.Frown=p.Frown;exports.GalleryView=p.GalleryView;exports.Gauge=p.Gauge;exports.Gift=p.Gift;exports.GitBranch=p.GitBranch;exports.GitCommit=p.GitCommit;exports.GitMerge=p.GitMerge;exports.GitPullRequest=p.GitPullRequest;exports.Github=p.Github;exports.Gitlab=p.Gitlab;exports.Globe=p.Globe;exports.Grid=p.Grid;exports.Group1=p.Group1;exports.Hand=p.Hand;exports.HardDrive=p.HardDrive;exports.Hash=p.Hash;exports.Headphones=p.Headphones;exports.HeightSize=p.HeightSize;exports.Hexagon=p.Hexagon;exports.Home=p.Home;exports.Home2=p.Home2;exports.Image=p.Image;exports.Inbox=p.Inbox;exports.Info=p.Info;exports.Instagram=p.Instagram;exports.Invite=p.Invite;exports.Italic=p.Italic;exports.KanbanView=p.KanbanView;exports.Key=p.Key;exports.Layers=p.Layers;exports.Layout=p.Layout;exports.LifeBuoy=p.LifeBuoy;exports.Link=p.Link;exports.Link2=p.Link2;exports.Linkedin=p.Linkedin;exports.List=p.List;exports.ListView=p.ListView;exports.Loader=p.Loader;exports.Lock=p.Lock;exports.LogIn=p.LogIn;exports.Mail=p.Mail;exports.Map=p.Map;exports.MapPin=p.MapPin;exports.Maximize=p.Maximize;exports.Maximize2=p.Maximize2;exports.Meh=p.Meh;exports.MessageCircle=p.MessageCircle;exports.MessageSquare=p.MessageSquare;exports.Mic=p.Mic;exports.MicOff=p.MicOff;exports.Minimize=p.Minimize;exports.Minimize2=p.Minimize2;exports.MinusCircle=p.MinusCircle;exports.MinusSquare=p.MinusSquare;exports.Monitor=p.Monitor;exports.Moon=p.Moon;exports.MoreVertical=p.MoreVertical;exports.MousePointer=p.MousePointer;exports.Move=p.Move;exports.Music=p.Music;exports.Navigation=p.Navigation;exports.Navigation2=p.Navigation2;exports.NewChat=p.NewChat;exports.Octagon=p.Octagon;exports.Package=p.Package;exports.PaperPlane1=p.PaperPlane1;exports.Paperclip=p.Paperclip;exports.Pause=p.Pause;exports.PauseCircle=p.PauseCircle;exports.PenTool=p.PenTool;exports.Percent=p.Percent;exports.Phone=p.Phone;exports.PhoneCall=p.PhoneCall;exports.PhoneForwarded=p.PhoneForwarded;exports.PhoneIncoming=p.PhoneIncoming;exports.PhoneMissed=p.PhoneMissed;exports.PhoneOff=p.PhoneOff;exports.PhoneOutgoing=p.PhoneOutgoing;exports.Pin=p.Pin;exports.Play=p.Play;exports.PlayCircle=p.PlayCircle;exports.Plug21=p.Plug21;exports.Plus=p.Plus;exports.PlusCircle=p.PlusCircle;exports.PlusSquare=p.PlusSquare;exports.Pocket=p.Pocket;exports.Power=p.Power;exports.Printer=p.Printer;exports.Radio=p.Radio;exports.Redo=p.Redo;exports.RefreshCcw=p.RefreshCcw;exports.RefreshCw=p.RefreshCw;exports.Repeat=p.Repeat;exports.Rewind=p.Rewind;exports.RotateCcw=p.RotateCcw;exports.RotateCw=p.RotateCw;exports.Rss=p.Rss;exports.Save=p.Save;exports.Scissors=p.Scissors;exports.Search=p.Search;exports.Send=p.Send;exports.Server=p.Server;exports.Settings=p.Settings;exports.Share=p.Share;exports.Share2=p.Share2;exports.Shield=p.Shield;exports.ShieldOff=p.ShieldOff;exports.ShoppingBag=p.ShoppingBag;exports.ShoppingCart=p.ShoppingCart;exports.Shuffle=p.Shuffle;exports.Sidebar=p.Sidebar;exports.SkipBack=p.SkipBack;exports.SkipForward=p.SkipForward;exports.Slack=p.Slack;exports.Slash=p.Slash;exports.Sliders=p.Sliders;exports.Smartphone=p.Smartphone;exports.Smile=p.Smile;exports.Sort1=p.Sort1;exports.SortDefault=p.SortDefault;exports.SortDown=p.SortDown;exports.SortUp=p.SortUp;exports.Sources=p.Sources;exports.Sparks=p.Sparks;exports.Speaker=p.Speaker;exports.Square=p.Square;exports.Star=p.Star;exports.StopCircle=p.StopCircle;exports.Sun=p.Sun;exports.Sunrise=p.Sunrise;exports.Sunset=p.Sunset;exports.TableView=p.TableView;exports.Tablet=p.Tablet;exports.TagIcon=p.Tag;exports.TagPlus=p.TagPlus;exports.Target=p.Target;exports.Telescope=p.Telescope;exports.Terminal=p.Terminal;exports.TextileIcon=p.TextileIcon;exports.Thermometer=p.Thermometer;exports.ThumbsDown=p.ThumbsDown;exports.ThumbsUp=p.ThumbsUp;exports.ToggleLeft=p.ToggleLeft;exports.ToggleRight=p.ToggleRight;exports.Tool=p.Tool;exports.Trash=p.Trash;exports.Trello=p.Trello;exports.TrendingDown=p.TrendingDown;exports.TrendingUp=p.TrendingUp;exports.Triangle=p.Triangle;exports.TriangleAlert=p.TriangleAlert;exports.Truck=p.Truck;exports.Tv=p.Tv;exports.Twitch=p.Twitch;exports.Twitter=p.Twitter;exports.Type=p.Type;exports.Umbrella=p.Umbrella;exports.Underline=p.Underline;exports.Undo=p.Undo;exports.Unlock=p.Unlock;exports.Uploadfile=p.Uploadfile;exports.UserCheck=p.UserCheck;exports.UserEdit=p.UserEdit;exports.UserMinus=p.UserMinus;exports.UserPlus=p.UserPlus;exports.UserX=p.UserX;exports.Video=p.Video;exports.VideoOff=p.VideoOff;exports.Voicemail=p.Voicemail;exports.Volume=p.Volume;exports.Volume1=p.Volume1;exports.Volume2=p.Volume2;exports.VolumeX=p.VolumeX;exports.Watch=p.Watch;exports.WhiteboardView=p.WhiteboardView;exports.Wifi=p.Wifi;exports.WifiOff=p.WifiOff;exports.Wind=p.Wind;exports.WorkStream=p.WorkStream;exports.X=p.X;exports.XCircle=p.XCircle;exports.XOctagon=p.XOctagon;exports.XSquare=p.XSquare;exports.Youtube=p.Youtube;exports.Zap=p.Zap;exports.ZapOff=p.ZapOff;exports.ZoomIn=p.ZoomIn;exports.ZoomOut=p.ZoomOut;exports.ArtifactCard=Xn;exports.AutopilotAction=ms;exports.Avatar=Vr;exports.Breadcrumbs=Yn;exports.Button=_0;exports.ChatFile=Kn;exports.ChatInput=hs;exports.Checkbox=Jn;exports.CircularProgress=$r;exports.ConversationHeader=fs;exports.Dropdown=Wr;exports.DropdownContent=Yr;exports.DropdownItem=Zr;exports.DropdownTrigger=Xr;exports.FileStatus=Zn;exports.FullLogo=Wn;exports.Input=es;exports.LoadingSpinner=Fl;exports.LogoA=Gr;exports.MarkdownRenderer=$o;exports.MessageBubble=ts;exports.Modal=Xs;exports.ProgressBar=rs;exports.RangeInput=as;exports.SidebarItem=ns;exports.SignatureA=Ur;exports.StatusIndicator=_r;exports.StatusMessage=ds;exports.Tabs=p1;exports.TabsContent=is;exports.TabsList=ss;exports.TabsTrigger=os;exports.Tag=G0;exports.TextArea=ls;exports.Timestamp=cs;exports.Toast=N0;exports.ToastContainer=B1;exports.Toggle=us;exports.Tooltip=Ar;exports.TooltipContent=Et;exports.TooltipProvider=zr;exports.TooltipTrigger=Nr;exports.Typography=i0;exports.cn=G;exports.showToast=L1;exports.useDropdown=Ft;
|
|
333
|
+
`),language:l}),a++;continue}const s=n.match(/^(#{1,6})\s+(.+)$/);if(s){e.push({type:"heading",level:s[1].length,content:s[2]}),a++;continue}if(/^(\-{3,}|\*{3,}|_{3,})$/.test(n.trim())){e.push({type:"horizontalRule",content:""}),a++;continue}if(n.trim().startsWith("|")&&n.trim().endsWith("|")&&a+1<t.length&&/^\|[\s\-:|]+\|$/.test(t[a+1].trim())){const l=n.trim().slice(1,-1).split("|").map(g=>g.trim()),d=t[a+1].trim().slice(1,-1).split("|").map(g=>g.trim()).map(g=>g.startsWith(":")&&g.endsWith(":")?"center":g.endsWith(":")?"right":"left"),f=[];for(a+=2;a<t.length&&t[a].trim().startsWith("|")&&t[a].trim().endsWith("|");){const g=t[a].trim().slice(1,-1).split("|").map(y=>y.trim());f.push(g),a++}e.push({type:"table",content:"",table:{headers:l,rows:f,alignments:d}});continue}if(n.trim().startsWith(">")){const l=[];for(;a<t.length&&t[a].trim().startsWith(">");)l.push(t[a].trim().slice(1).trim()),a++;e.push({type:"blockquote",content:l.join(`
|
|
334
|
+
`)});continue}if(/^[\-\*\+]\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^[\-\*\+]\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^[\-\*\+]\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!1});continue}if(/^\d+\.\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^\d+\.\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^\d+\.\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!0});continue}const o=[n];for(a++;a<t.length&&t[a].trim()!==""&&!t[a].trim().startsWith("#")&&!t[a].trim().startsWith("```")&&!t[a].trim().startsWith("$$")&&!t[a].trim().startsWith(">")&&!/^[\-\*\+]\s+/.test(t[a].trim())&&!/^\d+\.\s+/.test(t[a].trim())&&!/^(\-{3,}|\*{3,}|_{3,})$/.test(t[a].trim());)o.push(t[a]),a++;e.push({type:"paragraph",content:o.join(" ")})}return e},Cd=(r,e,t,a,n,s)=>r.map((o,l)=>{var u;switch(o.type){case"heading":{const d=`h${o.level}`,f={1:"font-[Signifier,serif] text-[1.75rem] font-light leading-tight tracking-[-0.5px] text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal text-[var(--color-gray-600)]"},g={1:{marginTop:l===0?0:20,marginBottom:12},2:{marginTop:l===0?0:16,marginBottom:8},3:{marginTop:l===0?0:14,marginBottom:6},4:{marginTop:l===0?0:12,marginBottom:6},5:{marginTop:l===0?0:10,marginBottom:4},6:{marginTop:l===0?0:10,marginBottom:4}};return h.jsx(d,{className:f[o.level],style:g[o.level],children:Ht(o.content,t,n,s)},l)}case"paragraph":return h.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif]",style:{marginTop:l===0?0:8,marginBottom:8},children:Ht(o.content,t,n,s)},l);case"codeBlock":return e?h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:e(o.content,o.language)},l):h.jsx("pre",{className:"font-[Roboto_Mono,monospace] p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsx("code",{className:"font-[Roboto_Mono,monospace] text-[0.875rem] text-[var(--color-gray-800)] leading-relaxed",children:o.content})},l);case"mathBlock":if(a)return h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:a(o.content)},l);try{const d=Xo.renderToString(o.content,{throwOnError:!1,displayMode:!0});return h.jsx("div",{className:"overflow-x-auto text-center",style:{marginTop:l===0?0:12,marginBottom:12},dangerouslySetInnerHTML:{__html:d}},l)}catch{return h.jsxs("div",{className:"p-4 bg-[var(--color-red-200)] border border-[var(--color-red-1000)] rounded-[8px] text-center font-mono text-[var(--color-red-1000)]",style:{marginTop:l===0?0:12,marginBottom:12},children:[h.jsx("span",{className:"text-[0.75rem] uppercase tracking-wider opacity-60 block",style:{marginBottom:4},children:"Math Rendering Error"}),h.jsx("pre",{className:"text-left",children:o.content})]},l)}case"blockquote":return h.jsx("blockquote",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 py-4 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic rounded-r",style:{marginTop:l===0?0:12,marginBottom:12},children:Ht(o.content,t,n,s)},l);case"list":{const d=o.ordered?"ol":"ul",f=o.ordered?"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-decimal marker:font-medium marker:text-[var(--color-gray-800)]":"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-disc marker:text-[var(--color-gray-600)]";return h.jsx(d,{className:f,style:{marginTop:l===0?0:8,marginBottom:12},children:(u=o.items)==null?void 0:u.map((g,y)=>h.jsx("li",{className:"leading-relaxed pl-1",style:{marginBottom:4},children:Ht(g,t,n,s)},y))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:f,alignments:g}=o.table,y=w=>{switch(w){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return h.jsx("div",{className:"overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsxs("table",{className:"font-[Inter,system-ui,-apple-system,sans-serif] w-full border-collapse border border-[var(--color-gray-200)] bg-white shadow-sm rounded-lg",children:[h.jsx("thead",{className:"bg-[var(--color-gray-50)]",children:h.jsx("tr",{className:"border-b-2 border-[var(--color-gray-200)]",children:d.map((w,M)=>h.jsx("th",{className:`px-4 py-3 font-medium border-r border-[var(--color-gray-200)] last:border-r-0 ${y(g==null?void 0:g[M])}`,children:Ht(w,t,n,s)},M))})}),h.jsx("tbody",{children:f.map((w,M)=>h.jsx("tr",{className:"border-b border-[var(--color-gray-200)] last:border-b-0 hover:bg-[var(--color-gray-50)] transition-colors",children:w.map((k,N)=>h.jsx("td",{className:`px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top ${y(g==null?void 0:g[N])}`,children:Ht(k,t,n,s)},N))},M))})]})},l)}case"horizontalRule":return h.jsx("hr",{className:"border-t border-[var(--color-gray-200)]",style:{marginTop:16,marginBottom:16}},l);default:return null}}),Yo=I.forwardRef(({className:r,content:e,size:t="medium",variant:a="default",renderCodeBlock:n,renderInlineCode:s,renderMathBlock:o,renderInlineMath:l,renderLink:u,...d},f)=>{const g=I.useMemo(()=>{const y=kd(e);return Cd(y,n,s,o,l,u)},[e,n,s,o,l,u]);return h.jsx("div",{ref:f,className:H(k2({size:t,variant:a}),r),...d,children:g})});Yo.displayName="MarkdownRenderer";exports.Activity=p.Activity;exports.Airplay=p.Airplay;exports.AlertCircle=p.AlertCircle;exports.AlertOctagon=p.AlertOctagon;exports.AlignCenter=p.AlignCenter;exports.AlignJustify=p.AlignJustify;exports.AlignLeft=p.AlignLeft;exports.AlignRight=p.AlignRight;exports.Anchor=p.Anchor;exports.Aperture=p.Aperture;exports.Archive=p.Archive;exports.ArrowDownCircle=p.ArrowDownCircle;exports.ArrowDownLeft=p.ArrowDownLeft;exports.ArrowDownRight=p.ArrowDownRight;exports.ArrowLeftCircle=p.ArrowLeftCircle;exports.ArrowRightCircle=p.ArrowRightCircle;exports.ArrowUp=p.ArrowUp;exports.ArrowUpCircle=p.ArrowUpCircle;exports.ArrowUpLeft=p.ArrowUpLeft;exports.ArrowUpRight=p.ArrowUpRight;exports.AtSign=p.AtSign;exports.Award=p.Award;exports.BarChart=p.BarChart;exports.BarChart2=p.BarChart2;exports.Battery=p.Battery;exports.BatteryCharging=p.BatteryCharging;exports.BellOff=p.BellOff;exports.Bluetooth=p.Bluetooth;exports.Bold=p.Bold;exports.Book=p.Book;exports.BookOpen=p.BookOpen;exports.Bookmark=p.Bookmark;exports.Box=p.Box;exports.Briefcase=p.Briefcase;exports.BrushCleanup=p.BrushCleanup;exports.Calendar=p.Calendar;exports.Camera=p.Camera;exports.CameraOff=p.CameraOff;exports.Cast=p.Cast;exports.Check=p.Check;exports.CheckCircle=p.CheckCircle;exports.CheckSquare=p.CheckSquare;exports.ChevronDown=p.ChevronDown;exports.ChevronLeft=p.ChevronLeft;exports.ChevronRight=p.ChevronRight;exports.ChevronUp=p.ChevronUp;exports.ChevronsDown=p.ChevronsDown;exports.ChevronsLeft=p.ChevronsLeft;exports.ChevronsRight=p.ChevronsRight;exports.ChevronsUp=p.ChevronsUp;exports.Chrome=p.Chrome;exports.Circle=p.Circle;exports.Clipboard=p.Clipboard;exports.ClockHistory=p.ClockHistory;exports.Cloud=p.Cloud;exports.CloudDrizzle=p.CloudDrizzle;exports.CloudLightning=p.CloudLightning;exports.CloudOff=p.CloudOff;exports.CloudRain=p.CloudRain;exports.CloudSnow=p.CloudSnow;exports.Code=p.Code;exports.Codepen=p.Codepen;exports.Codesandbox=p.Codesandbox;exports.Coffee=p.Coffee;exports.Columns=p.Columns;exports.Command=p.Command;exports.Compass=p.Compass;exports.Component=p.Component;exports.CornerDownLeft=p.CornerDownLeft;exports.CornerDownRight=p.CornerDownRight;exports.CornerLeftDown=p.CornerLeftDown;exports.CornerLeftUp=p.CornerLeftUp;exports.CornerRightDown=p.CornerRightDown;exports.CornerRightUp=p.CornerRightUp;exports.CornerUpLeft=p.CornerUpLeft;exports.CornerUpRight=p.CornerUpRight;exports.Cpu=p.Cpu;exports.CreditCard=p.CreditCard;exports.Crop=p.Crop;exports.Crosshair=p.Crosshair;exports.Database=p.Database;exports.Delete=p.Delete;exports.Disc=p.Disc;exports.Divide=p.Divide;exports.DivideCircle=p.DivideCircle;exports.DivideSquare=p.DivideSquare;exports.DollarSign=p.DollarSign;exports.DownloadCloud=p.DownloadCloud;exports.Dribbble=p.Dribbble;exports.Droplet=p.Droplet;exports.Dumbell=p.Dumbell;exports.Edit2=p.Edit2;exports.Edit3=p.Edit3;exports.Eye=p.Eye;exports.EyeOff=p.EyeOff;exports.Facebook=p.Facebook;exports.FastForward=p.FastForward;exports.Feather=p.Feather;exports.Figma=p.Figma;exports.FileMinus=p.FileMinus;exports.FilePlus=p.FilePlus;exports.FileText=p.FileText;exports.Film=p.Film;exports.Filter=p.Filter;exports.Filter1=p.Filter1;exports.Flag=p.Flag;exports.Folder=p.Folder;exports.FolderMinus=p.FolderMinus;exports.FolderPlus=p.FolderPlus;exports.Framer=p.Framer;exports.Frown=p.Frown;exports.GalleryView=p.GalleryView;exports.Gauge=p.Gauge;exports.Gift=p.Gift;exports.GitBranch=p.GitBranch;exports.GitCommit=p.GitCommit;exports.GitMerge=p.GitMerge;exports.GitPullRequest=p.GitPullRequest;exports.Github=p.Github;exports.Gitlab=p.Gitlab;exports.Globe=p.Globe;exports.Grid=p.Grid;exports.Group1=p.Group1;exports.Hand=p.Hand;exports.HardDrive=p.HardDrive;exports.Hash=p.Hash;exports.Headphones=p.Headphones;exports.HeightSize=p.HeightSize;exports.Hexagon=p.Hexagon;exports.Home=p.Home;exports.Home2=p.Home2;exports.Image=p.Image;exports.Inbox=p.Inbox;exports.Info=p.Info;exports.Instagram=p.Instagram;exports.Invite=p.Invite;exports.Italic=p.Italic;exports.KanbanView=p.KanbanView;exports.Key=p.Key;exports.Layers=p.Layers;exports.Layout=p.Layout;exports.LifeBuoy=p.LifeBuoy;exports.Link=p.Link;exports.Link2=p.Link2;exports.Linkedin=p.Linkedin;exports.List=p.List;exports.ListView=p.ListView;exports.Loader=p.Loader;exports.Lock=p.Lock;exports.LogIn=p.LogIn;exports.Mail=p.Mail;exports.Map=p.Map;exports.MapPin=p.MapPin;exports.Maximize=p.Maximize;exports.Maximize2=p.Maximize2;exports.Meh=p.Meh;exports.MessageCircle=p.MessageCircle;exports.MessageSquare=p.MessageSquare;exports.Mic=p.Mic;exports.MicOff=p.MicOff;exports.Minimize=p.Minimize;exports.Minimize2=p.Minimize2;exports.MinusCircle=p.MinusCircle;exports.MinusSquare=p.MinusSquare;exports.Monitor=p.Monitor;exports.Moon=p.Moon;exports.MoreVertical=p.MoreVertical;exports.MousePointer=p.MousePointer;exports.Move=p.Move;exports.Music=p.Music;exports.Navigation=p.Navigation;exports.Navigation2=p.Navigation2;exports.NewChat=p.NewChat;exports.Octagon=p.Octagon;exports.Package=p.Package;exports.PaperPlane1=p.PaperPlane1;exports.Paperclip=p.Paperclip;exports.Pause=p.Pause;exports.PauseCircle=p.PauseCircle;exports.PenTool=p.PenTool;exports.Percent=p.Percent;exports.Phone=p.Phone;exports.PhoneCall=p.PhoneCall;exports.PhoneForwarded=p.PhoneForwarded;exports.PhoneIncoming=p.PhoneIncoming;exports.PhoneMissed=p.PhoneMissed;exports.PhoneOff=p.PhoneOff;exports.PhoneOutgoing=p.PhoneOutgoing;exports.Pin=p.Pin;exports.Play=p.Play;exports.PlayCircle=p.PlayCircle;exports.Plug21=p.Plug21;exports.Plus=p.Plus;exports.PlusCircle=p.PlusCircle;exports.PlusSquare=p.PlusSquare;exports.Pocket=p.Pocket;exports.Power=p.Power;exports.Printer=p.Printer;exports.Radio=p.Radio;exports.Redo=p.Redo;exports.RefreshCcw=p.RefreshCcw;exports.RefreshCw=p.RefreshCw;exports.Repeat=p.Repeat;exports.Rewind=p.Rewind;exports.RotateCcw=p.RotateCcw;exports.RotateCw=p.RotateCw;exports.Rss=p.Rss;exports.Save=p.Save;exports.Scissors=p.Scissors;exports.Search=p.Search;exports.Send=p.Send;exports.Server=p.Server;exports.Settings=p.Settings;exports.Share=p.Share;exports.Share2=p.Share2;exports.Shield=p.Shield;exports.ShieldOff=p.ShieldOff;exports.ShoppingBag=p.ShoppingBag;exports.ShoppingCart=p.ShoppingCart;exports.Shuffle=p.Shuffle;exports.Sidebar=p.Sidebar;exports.SkipBack=p.SkipBack;exports.SkipForward=p.SkipForward;exports.Slack=p.Slack;exports.Slash=p.Slash;exports.Sliders=p.Sliders;exports.Smartphone=p.Smartphone;exports.Smile=p.Smile;exports.Sort1=p.Sort1;exports.SortDefault=p.SortDefault;exports.SortDown=p.SortDown;exports.SortUp=p.SortUp;exports.Sources=p.Sources;exports.Sparks=p.Sparks;exports.Speaker=p.Speaker;exports.Square=p.Square;exports.Star=p.Star;exports.StopCircle=p.StopCircle;exports.Sun=p.Sun;exports.Sunrise=p.Sunrise;exports.Sunset=p.Sunset;exports.TableView=p.TableView;exports.Tablet=p.Tablet;exports.TagIcon=p.Tag;exports.TagPlus=p.TagPlus;exports.Target=p.Target;exports.Telescope=p.Telescope;exports.Terminal=p.Terminal;exports.TextileIcon=p.TextileIcon;exports.Thermometer=p.Thermometer;exports.ThumbsDown=p.ThumbsDown;exports.ThumbsUp=p.ThumbsUp;exports.ToggleLeft=p.ToggleLeft;exports.ToggleRight=p.ToggleRight;exports.Tool=p.Tool;exports.Trash=p.Trash;exports.Trello=p.Trello;exports.TrendingDown=p.TrendingDown;exports.TrendingUp=p.TrendingUp;exports.Triangle=p.Triangle;exports.TriangleAlert=p.TriangleAlert;exports.Truck=p.Truck;exports.Tv=p.Tv;exports.Twitch=p.Twitch;exports.Twitter=p.Twitter;exports.Type=p.Type;exports.Umbrella=p.Umbrella;exports.Underline=p.Underline;exports.Undo=p.Undo;exports.Unlock=p.Unlock;exports.Uploadfile=p.Uploadfile;exports.UserCheck=p.UserCheck;exports.UserEdit=p.UserEdit;exports.UserMinus=p.UserMinus;exports.UserPlus=p.UserPlus;exports.UserX=p.UserX;exports.Video=p.Video;exports.VideoOff=p.VideoOff;exports.Voicemail=p.Voicemail;exports.Volume=p.Volume;exports.Volume1=p.Volume1;exports.Volume2=p.Volume2;exports.VolumeX=p.VolumeX;exports.Watch=p.Watch;exports.WhiteboardView=p.WhiteboardView;exports.Wifi=p.Wifi;exports.WifiOff=p.WifiOff;exports.Wind=p.Wind;exports.WorkStream=p.WorkStream;exports.X=p.X;exports.XCircle=p.XCircle;exports.XOctagon=p.XOctagon;exports.XSquare=p.XSquare;exports.Youtube=p.Youtube;exports.Zap=p.Zap;exports.ZapOff=p.ZapOff;exports.ZoomIn=p.ZoomIn;exports.ZoomOut=p.ZoomOut;exports.ArtifactCard=Zn;exports.AutopilotAction=ps;exports.Avatar=Gr;exports.Breadcrumbs=Kn;exports.Button=Ut;exports.ChatFile=Qn;exports.ChatInput=vs;exports.Checkbox=es;exports.CircularProgress=Xr;exports.ConversationHeader=gs;exports.Dropdown=Yr;exports.DropdownContent=Kr;exports.DropdownItem=Jr;exports.DropdownTrigger=Zr;exports.FileStatus=Jn;exports.FullLogo=Yn;exports.Input=rs;exports.LoadingSpinner=Vl;exports.LogoA=$r;exports.MarkdownRenderer=Yo;exports.MessageBubble=ns;exports.Modal=Ks;exports.ProgressBar=ss;exports.RangeInput=os;exports.SidebarItem=is;exports.SignatureA=Wr;exports.StatusIndicator=Ur;exports.StatusMessage=fs;exports.Tabs=z1;exports.TabsContent=us;exports.TabsList=ls;exports.TabsTrigger=cs;exports.Tag=$t;exports.TextArea=ds;exports.Timestamp=ms;exports.Toast=Dt;exports.ToastContainer=U1;exports.Toggle=hs;exports.Tooltip=Dr;exports.TooltipContent=E0;exports.TooltipProvider=Ar;exports.TooltipTrigger=Rr;exports.Typography=ct;exports.cn=H;exports.showToast=$1;exports.useDropdown=q0;
|
|
335
335
|
//# sourceMappingURL=index.cjs.map
|