@opencx/widget 3.0.67 → 3.0.68
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/designs.cjs +6 -6
- package/dist/designs.cjs.map +1 -1
- package/dist/designs.js +179 -179
- package/dist/designs.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +2 -2
- package/dist/src/headless/core/types/widget-config.d.ts +10 -0
- package/dist/{useUploadFiles-Dvog4MGm.js → useUploadFiles-B2bODn8_.js} +2 -2
- package/dist/{useUploadFiles-Dvog4MGm.js.map → useUploadFiles-B2bODn8_.js.map} +1 -1
- package/dist/{useUploadFiles-C3gUPK2z.cjs → useUploadFiles-D3eDS0ud.cjs} +2 -2
- package/dist/{useUploadFiles-C3gUPK2z.cjs.map → useUploadFiles-D3eDS0ud.cjs.map} +1 -1
- package/dist-embed/script.js +27 -27
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -1
package/dist/designs.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),K=require("react"),ge=require("framer-motion"),Li=require("clsx"),le=require("lucide-react"),au=require("react-dropzone"),X=require("./useUploadFiles-C3gUPK2z.cjs"),iu=require("@radix-ui/react-tooltip"),su=require("@radix-ui/react-slot"),ou=require("@radix-ui/react-dropdown-menu"),uu=require("@radix-ui/react-dialog"),pr=require("react-dom"),lu=require("@radix-ui/react-avatar"),la=require("tinycolor2"),Gn=require("zod"),cu=require("@radix-ui/react-popover");function kt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const xe=kt(K),tn=kt(iu),pe=kt(ou),He=kt(uu),Nt=kt(lu),fr=kt(cu),Dr="-",du=e=>{const t=pu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const u=s.split(Dr);return u[0]===""&&u.length!==1&&u.shift(),Oi(u,t)||hu(s)},getConflictingClassGroupIds:(s,u)=>{const l=n[s]||[];return u&&r[s]?[...l,...r[s]]:l}}},Oi=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Oi(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Dr);return(s=t.validators.find(({validator:u})=>u(i)))==null?void 0:s.classGroupId},ca=/^\[(.+)\]$/,hu=e=>{if(ca.test(e)){const t=ca.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pu=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mu(Object.entries(e.classGroups),n).forEach(([i,s])=>{mr(s,r,i,t)}),r},mr=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:da(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(fu(a)){mr(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,s])=>{mr(s,da(t,i),n,r)})})},da=(e,t)=>{let n=e;return t.split(Dr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fu=e=>e.isThemeGetter,mu=(e,t)=>t?e.map(([n,r])=>{const a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,u])=>[t+s,u])):i);return[n,a]}):e,gu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return a(i,s),s},set(i,s){n.has(i)?n.set(i,s):a(i,s)}}},Ri="!",bu=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],i=t.length,s=u=>{const l=[];let c=0,h=0,d;for(let A=0;A<u.length;A++){let _=u[A];if(c===0){if(_===a&&(r||u.slice(A,A+i)===t)){l.push(u.slice(h,A)),h=A+i;continue}if(_==="/"){d=A;continue}}_==="["?c++:_==="]"&&c--}const b=l.length===0?u:u.substring(h),p=b.startsWith(Ri),E=p?b.substring(1):b,y=d&&d>h?d-h:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:E,maybePostfixModifierPosition:y}};return n?u=>n({className:u,parseClassName:s}):s},Eu=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},xu=e=>({cache:gu(e.cacheSize),parseClassName:bu(e),...du(e)}),wu=/\s+/,Tu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(wu);let u="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:h,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:p}=n(c);let E=!!p,y=r(E?b.substring(0,p):b);if(!y){if(!E){u=c+(u.length>0?" "+u:u);continue}if(y=r(b),!y){u=c+(u.length>0?" "+u:u);continue}E=!1}const A=Eu(h).join(":"),_=d?A+Ri:A,L=_+y;if(i.includes(L))continue;i.push(L);const O=a(y,E);for(let P=0;P<O.length;++P){const F=O[P];i.push(_+F)}u=c+(u.length>0?" "+u:u)}return u};function yu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Di(t))&&(r&&(r+=" "),r+=n);return r}const Di=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Di(e[r]))&&(n&&(n+=" "),n+=t);return n};function Cu(e,...t){let n,r,a,i=s;function s(l){const c=t.reduce((h,d)=>d(h),e());return n=xu(c),r=n.cache.get,a=n.cache.set,i=u,u(l)}function u(l){const c=r(l);if(c)return c;const h=Tu(l,n);return a(l,h),h}return function(){return i(yu.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vi=/^\[(?:([a-z-]+):)?(.+)\]$/i,_u=/^\d+\/\d+$/,Au=new Set(["px","full","screen"]),ku=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nu=/\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$/,Iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Su=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>yt(e)||Au.has(e)||_u.test(e),Ze=e=>It(e,"length",Fu),yt=e=>!!e&&!Number.isNaN(Number(e)),Qn=e=>It(e,"number",yt),Ft=e=>!!e&&Number.isInteger(Number(e)),Ou=e=>e.endsWith("%")&&yt(e.slice(0,-1)),G=e=>vi.test(e),et=e=>ku.test(e),Ru=new Set(["length","size","percentage"]),Du=e=>It(e,Ru,Pi),vu=e=>It(e,"position",Pi),Pu=new Set(["image","url"]),Mu=e=>It(e,Pu,Uu),Bu=e=>It(e,"",Hu),Ht=()=>!0,It=(e,t,n)=>{const r=vi.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fu=e=>Nu.test(e)&&!Iu.test(e),Pi=()=>!1,Hu=e=>Su.test(e),Uu=e=>Lu.test(e),zu=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),a=oe("borderColor"),i=oe("borderRadius"),s=oe("borderSpacing"),u=oe("borderWidth"),l=oe("contrast"),c=oe("grayscale"),h=oe("hueRotate"),d=oe("invert"),b=oe("gap"),p=oe("gradientColorStops"),E=oe("gradientColorStopPositions"),y=oe("inset"),A=oe("margin"),_=oe("opacity"),L=oe("padding"),O=oe("saturate"),P=oe("scale"),F=oe("sepia"),I=oe("skew"),H=oe("space"),U=oe("translate"),Y=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",G,t],M=()=>[G,t],te=()=>["",Qe,Ze],ne=()=>["auto",yt,G],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>["start","end","center","between","around","evenly","stretch"],Ae=()=>["","0",G],w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[yt,G];return{cacheSize:500,separator:":",theme:{colors:[Ht],spacing:[Qe,Ze],blur:["none","",et,G],brightness:de(),borderColor:[e],borderRadius:["none","","full",et,G],borderSpacing:M(),borderWidth:te(),contrast:de(),grayscale:Ae(),hueRotate:de(),invert:Ae(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Ou,Ze],inset:z(),margin:z(),opacity:de(),padding:M(),saturate:de(),scale:de(),sepia:Ae(),skew:de(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[et]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],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:[...J(),G]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":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:["auto",Ft,G]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:Ae()}],shrink:[{shrink:Ae()}],order:[{order:["first","last","none",Ft,G]}],"grid-cols":[{"grid-cols":[Ht]}],"col-start-end":[{col:["auto",{span:["full",Ft,G]},G]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Ht]}],"row-start-end":[{row:["auto",{span:[Ft,G]},G]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",..._e()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._e(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._e(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[et]},et]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",et,Ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qn]}],"font-family":[{font:[Ht]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",yt,Qn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qe,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qe,Ze]}],"underline-offset":[{"underline-offset":["auto",Qe,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),vu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Du]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:ce()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[Qe,G]}],"outline-w":[{outline:[Qe,Ze]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Qe,Ze]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",et,Bu]}],"shadow-color":[{shadow:[Ht]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",et,G]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[O]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[Ft,G]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qe,Ze,Qn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},ju=Cu(zu);function q(...e){return ju(Li.clsx(e))}const Yu=tn.Provider,qu=tn.Root,Wu=tn.Trigger,Mi=xe.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(tn.Content,{ref:r,sideOffset:t,className:q("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Mi.displayName=tn.Content.displayName;function yn({children:e,content:t,side:n,align:r}){return t?f.jsxs(qu,{children:[f.jsx(Wu,{asChild:!0,children:e}),f.jsx(Mi,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]}):e}const Vu={ok:"حسنا",yes:"نعم",no:"لا",agree:"موافق",cancel:"إلغاء","yes-exit":"نعم، اخرج","yes-reset":"نعم، إعادة تعيين","no-cancel":"لا، إلغاء","are-you-sure":"هل أنت متأكد؟",recording:"تسجيل","thank-you":"شكرا","sorry-try-again":"عذرا، حاول مرة أخرى","error-occurred":"حدث خطأ","please-try-again":"يرجى المحاولة مرة أخرى","write-a-message":"اكتب رسالة...","send-message":"إرسال رسالة",connected:"متصل",connecting:"جاري الاتصال",reconnecting:"جاري إعادة الاتصال",reconnected:"تم إعادة الاتصال",disconnecting:"جاري قطع الاتصال",disconnected:"قطع الاتصال",error:"خطأ","persist-session":"حفظ الجلسة",settings:"إعدادات",close:"إغلاق",help:"مساعدة",chat:"محادثة",send:"إرسال",copy:"نسخ",copied:"تم النسخ","sound-effects":"التاثيرات الصوتية",language:"اللغة",select:"اختر",agent:"الوكيل",user:"المستخدم",bot:"البوت","close-widget":"إغلاق الودجة","got-any-questions":"هل لديك أي أسئلة؟ تحدث معنا!","typical-response-time":"عادة ما نرد في أقل من دقيقة واحدة","session-closed-lead":"تم حل مشكلتك!",exit:"خروج","create-new-ticket":"إنشاء تذكرة جديدة","reset-conversation":"إعادة تعيين المحادثة","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","hello-greeting":"مرحبًا! كيف يمكننا مساعدتك اليوم؟","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات"},Gu={ok:"OK",yes:"Ja",no:"Nein",agree:"Zustimmen",cancel:"Stornieren","yes-exit":"Ja, beenden","yes-reset":"Ja, zurücksetzen","no-cancel":"Nein, abbrechen","are-you-sure":"Sind Sie sicher?",recording:"Aufnahme läuft","thank-you":"Vielen Dank","sorry-try-again":"Entschuldigung, bitte versuchen Sie es erneut","error-occurred":"Ein Fehler ist aufgetreten","please-try-again":"Bitte versuchen Sie es erneut","write-a-message":"Nachricht schreiben...","send-message":"Nachricht senden",connected:"Verbunden",connecting:"Verbindung wird hergestellt",reconnecting:"Verbindung wird wiederhergestellt",reconnected:"Wieder verbunden",disconnecting:"Verbindung wird getrennt",disconnected:"Verbindung getrennt",error:"Fehler","persist-session":"Sitzung beibehalten",settings:"Einstellungen",close:"Schließen",help:"Hilfe",chat:"Chat",send:"Senden",copy:"Kopieren",copied:"Kopiert","sound-effects":"Soundeffekte",language:"Sprache",select:"Auswählen",agent:"Agent",user:"Benutzer",bot:"Bot","got-any-questions":"Haben Sie Fragen? Chatten Sie mit uns!","typical-response-time":"Üblicherweise antworten wir in weniger als 1 Minute","close-widget":"Widget schließen","session-closed-lead":"Ihr Problem wurde gelöst!","create-new-ticket":"Neues Ticket erstellen",exit:"Beenden","reset-conversation":"Konversation zurücksetzen","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","hello-greeting":"Hallo! Wie können wir Ihnen heute helfen?","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche"},Qu={ok:"OK",yes:"Yes",no:"No",agree:"Agree",cancel:"Cancel","yes-exit":"Yes, exit","yes-reset":"Yes, reset","no-cancel":"No, cancel","are-you-sure":"Are you sure?",recording:"Recording...","thank-you":"Thank you","sorry-try-again":"Sorry, please try again","error-occurred":"An error occurred","please-try-again":"Please try again","write-a-message":"Write a message...","send-message":"Send message",connected:"Connected",connecting:"Connecting",reconnecting:"Reconnecting",reconnected:"Reconnected",disconnecting:"Disconnecting",disconnected:"Disconnected",error:"Error","persist-session":"Persist session",settings:"Settings",close:"Close",help:"Help",chat:"Chat",send:"Send",copy:"Copy",copied:"Copied","sound-effects":"Sound effects",language:"Language",select:"Select",agent:"Agent",user:"User",bot:"Bot","close-widget":"Close widget","got-any-questions":"Got any questions? Chat with us!","typical-response-time":"Typically respond in less than 1 minute","session-closed-lead":"Your issue has been resolved!","create-new-ticket":"Create new ticket",exit:"Exit","reset-conversation":"Reset conversation","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","hello-greeting":"Hi there!","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet"},Xu={ok:"D'accord",yes:"Oui",no:"Non",agree:"Accepter",cancel:"Annuler","yes-exit":"Oui, quitter","yes-reset":"Oui, réinitialiser","no-cancel":"Non, annuler","are-you-sure":"Êtes-vous sûr ?",recording:"Enregistrement...","thank-you":"Merci","sorry-try-again":"Désolé, veuillez réessayer","error-occurred":"Une erreur s'est produite","please-try-again":"Veuillez réessayer","write-a-message":"Écrivez un message...","send-message":"Envoyer le message",connected:"Connecté",connecting:"Connexion en cours",reconnecting:"Reconnexion en cours",reconnected:"Reconnecté",disconnecting:"Déconnexion en cours",disconnected:"Déconnecté",error:"Erreur","persist-session":"Conserver la session",settings:"Paramètres",close:"Fermer",help:"Aide",chat:"Chat",send:"Envoyer",copy:"Copier",copied:"Copié","sound-effects":"Effets sonores",language:"Langue",select:"Sélectionner",agent:"Agent",user:"Utilisateur",bot:"Bot","close-widget":"Fermer le widget","got-any-questions":"Vous avez des questions ? Chattez avec nous !","typical-response-time":"Nous répondons généralement en moins d'une minute","session-closed-lead":"Votre problème a été résolu !","create-new-ticket":"Créer un nouveau ticket",exit:"Sortie","reset-conversation":"Réinitialiser la conversation","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","hello-greeting":"Bonjour ! Comment pouvons-nous vous aider aujourd'hui ?","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment"},Ku={ok:"OK",yes:"Ja",no:"Nee",agree:"Akkoord",cancel:"Annuleren","yes-exit":"Ja, afsluiten","yes-reset":"Ja, resetten","no-cancel":"Nee, annuleren","are-you-sure":"Weet u het zeker?",recording:"Opname...","thank-you":"Dank u","sorry-try-again":"Sorry, probeer het opnieuw","error-occurred":"Er is een fout opgetreden","please-try-again":"Probeer het opnieuw","write-a-message":"Schrijf een bericht...","send-message":"Bericht verzenden",connected:"Verbonden",connecting:"Verbinding maken",reconnecting:"Opnieuw verbinding maken",reconnected:"Opnieuw verbonden",disconnecting:"Verbinding verbreken",disconnected:"Verbinding verbroken",error:"Fout","persist-session":"Sessie behouden",settings:"Instellingen",close:"Sluiten",help:"Help",chat:"Chat",send:"Verzenden",copy:"Kopiëren",copied:"Gekopieerd","sound-effects":"Geluidseffecten",language:"Taal",select:"Selecteren",agent:"Agent",user:"Gebruiker",bot:"Bot","close-widget":"Widget sluiten","got-any-questions":"Heeft u vragen? Chat met ons!","typical-response-time":"We reageren doorgaans binnen 1 minuut","session-closed-lead":"Uw probleem is opgelost!","create-new-ticket":"Nieuw ticket aanmaken",exit:"Afsluiten","reset-conversation":"Gesprek resetten","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","hello-greeting":"Hallo! Hoe kunnen we u vandaag helpen?","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken"},$u={ok:"OK",yes:"Sim",no:"Não",agree:"Concordo",cancel:"Cancelar","yes-exit":"Sim, sair","yes-reset":"Sim, redefinir","no-cancel":"Não, cancelar","are-you-sure":"Você tem certeza?",recording:"Gravando...","thank-you":"Obrigado","sorry-try-again":"Desculpe, tente novamente","error-occurred":"Ocorreu um erro","please-try-again":"Por favor, tente novamente","write-a-message":"Escreva uma mensagem...","send-message":"Enviar mensagem",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Erro","persist-session":"Persistir sessão",settings:"Configurações",close:"Fechar",help:"Ajuda",chat:"Bate-papo",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efeitos sonoros",language:"Idioma",select:"Selecionar",agent:"Agente",user:"Usuário",bot:"Bot","close-widget":"Fechar widget","got-any-questions":"Tem alguma dúvida? Converse conosco!","typical-response-time":"Geralmente respondemos em menos de 1 minuto","session-closed-lead":"Seu problema foi resolvido!","create-new-ticket":"Criar novo ticket",exit:"Sair","reset-conversation":"Redefinir conversa","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","hello-greeting":"Olá! Como podemos ajudar você hoje?","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda"},Bi={en:Qu,ar:Vu,nl:Ku,fr:Xu,de:Gu,pt:$u},Ju=Object.keys(Bi),Zu=e=>Ju.includes(e);function el(e,t){const n=Bi[t];return n&&n[e]||""}function St(){const{widgetCtx:{config:e}}=X.useWidget();return K.useMemo(()=>{const n=Zu(e.language)?e.language:"en";return{get:r=>el(r,n),lang:n}},[e.language])}const tl=10,nl=(e,t)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:e,...t.exit}}),rl=(e,t)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:-e,...t.exit}}),al=(e,t)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:-e,...t.exit}}),il=(e,t)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:e,...t.exit}}),sl={right:nl,left:rl,up:al,down:il},se=K.forwardRef(({fadeIn:e="down",distance:t=tl,children:n,snapExit:r=!1,overrides:a={},...i},s)=>{const u=e?sl[e](t,a):{};return r&&u.exit&&typeof u.exit=="object"&&!Array.isArray(u.exit)&&(u.exit.transition={duration:0}),f.jsx(ge.motion.div,{ref:s,...i,...u,children:n})});se.displayName="MotionDiv";const ha=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,pa=Li.clsx,ol=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return pa(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,s=Object.keys(a).map(c=>{const h=n==null?void 0:n[c],d=i==null?void 0:i[c];if(h===null)return null;const b=ha(h)||ha(d);return a[c][b]}),u=n&&Object.entries(n).reduce((c,h)=>{let[d,b]=h;return b===void 0||(c[d]=b),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,h)=>{let{class:d,className:b,...p}=h;return Object.entries(p).every(E=>{let[y,A]=E;return Array.isArray(A)?A.includes({...i,...u}[y]):{...i,...u}[y]===A})?[...c,d,b]:c},[]);return pa(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},Cn={x:2,y:2},ul={1:"scale-[1]","1.01":"scale-[1.01]","1.02":"scale-[1.02]","1.1":"scale-[1.1]"},Ke=K.memo(K.forwardRef(({children:e,className:t,scale:n="1.02",off:r=!1},a)=>{const[i,s]=K.useState(!1),[u,l]=K.useState({x:0,y:0});if(r||/translate/.test(e.props.className||""))return e;const h=E=>{var U,Y;const{clientX:y,clientY:A}=E,_=E.currentTarget.getBoundingClientRect(),L=y-(_.left+_.width/2),O=A-(_.top+_.height/2),P=Math.max(-1,Math.min(1,L/(_.width/2))),F=Math.max(-1,Math.min(1,O/(_.height/2))),I=P*Cn.x,H=F*Cn.y;l({x:I,y:H}),(Y=(U=e.props).onMouseMove)==null||Y.call(U,E)},d=()=>{var E,y;s(!0),(y=(E=e.props).onMouseEnter)==null||y.call(E)},b=()=>{var E,y;s(!1),l({x:0,y:0}),(y=(E=e.props).onMouseLeave)==null||y.call(E)},p={"--opencx-wobble-x":i?`${u.x}px`:"0px","--opencx-wobble-y":i?`${u.y}px`:"0px"};return K.cloneElement(e,{ref:a,onMouseMove:h,onMouseEnter:d,onMouseLeave:b,style:{...p,...e.props.style},className:q("translate-x-[var(--opencx-wobble-x)]","translate-y-[var(--opencx-wobble-y)]",`hover:${ul[n]}`,t,e.props.className,"transition-all ease-out")})}));Ke.displayName="Wobble";const ll=ol(q("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","shadow-sm active:shadow-none active:scale-95 hover:active:scale-95","rounded-xl","border","transition"),{variants:{variant:{default:"border-primary bg-primary text-primary-foreground",destructive:"border-destructive bg-destructive text-destructive-foreground",outline:"bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground",ghost:"border-transparent shadow-none hover:bg-accent hover:text-accent-foreground",link:"border-transparent shadow-none text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"min-h-12 px-4",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2"}},defaultVariants:{variant:"default",size:"default"}}),Oe=xe.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const s=r?su.Slot:"button";return f.jsx(Ke,{ref:i,children:f.jsx(s,{className:q(ll({variant:t,size:n,className:e})),...a})})});Oe.displayName="Button";const On=()=>{const[e,t]=K.useState("ltr");return K.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle(document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),e};function cl(){const{sendMessage:e}=X.useMessages(),t=St(),n=[t.get("i-need-more-help"),t.get("this-was-helpful")],r=a=>{const i=a.trim();i&&e({content:i})};return f.jsx("div",{className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:n.map(a=>f.jsx(Oe,{onClick:()=>r(a),className:"flex-1 rounded-full",size:"sm",children:a},a))})}function dl({file:{status:e,file:t,error:n},onCancel:r}){const[a,i]=K.useState(null);K.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>i(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return f.jsx(le.Loader2,{className:"size-4 animate-spin"});case"error":return f.jsx(le.AlertCircle,{className:"size-4 text-destructive"});default:return null}},u=()=>{const l=t.type.split("/")[0];return l==="image"&&a?f.jsx("img",{src:typeof a=="string"?a:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?f.jsx(le.FileAudio2Icon,{}):l==="video"?f.jsx(le.FileVideo2Icon,{}):f.jsx(le.FileIcon,{})};return f.jsx(yn,{side:"bottom",content:e==="error"?f.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:f.jsxs("div",{className:q(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),f.jsx("button",{type:"button",className:q("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:f.jsx(le.XIcon,{className:"size-4 text-primary-foreground"})}),f.jsx(u,{})]})})}const fa=q("rounded-3xl");function hl(){var I;const e=K.useRef(null),{sendMessage:t}=X.useMessages(),{sessionState:n}=X.useSessions(),r=St(),a=On(),[i,s]=K.useState(""),{allFiles:u,emptyTheFiles:l,handleCancelUpload:c,appendFiles:h,isUploading:d,successFiles:b}=X.useUploadFiles(),p=!!((I=n.session)!=null&&I.isHandedOff),{isAwaitingBotReply:E}=X.useIsAwaitingBotReply(),y=H=>{h(H)},A=!i.trim()&&b.length===0,_=async()=>{if(E||A)return;d&&console.info("please wait for the file(s) to upload");const H=i.trim();t({content:H,attachments:b.flatMap(U=>U.fileUrl?[{url:U.fileUrl,type:U.file.type,name:U.file.name,id:U.id,size:U.file.size}]:[])}),s(""),l()},{getRootProps:L,getInputProps:O,open:P}=au.useDropzone({onDrop:y,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:p?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),F=H=>{const U=H.clipboardData;U&&U.files.length>0&&y(Array.from(U.files))};return f.jsxs("div",{className:"p-2 relative space-y-1",...L(),children:[f.jsx("input",{...O()}),f.jsxs("div",{className:q(fa,"relative space-y-2 border transition-all shadow py-2"),children:[f.jsx("div",{className:"flex items-center gap-1 px-2",children:f.jsx(ge.AnimatePresence,{mode:"popLayout",children:u.map(H=>f.jsx(se,{snapExit:!0,children:f.jsx(dl,{onCancel:()=>c(H.id),file:H})},H.id))})}),f.jsx("textarea",{onPaste:F,ref:e,id:"chat-input",dir:a,value:i,rows:3,className:q(fa,"w-full resize-none px-3","text-sm rtl:placeholder:text-right bg-transparent outline-none"),onChange:H=>s(H.target.value),onKeyDown:async H=>{H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),_())},placeholder:r.get("write-a-message")}),f.jsxs("div",{dir:a,className:"px-2 flex justify-between rtl:text-right",children:[f.jsx(yn,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:f.jsx(Oe,{onClick:P,size:"fit",variant:"outline",className:q("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:f.jsx(ge.AnimatePresence,{mode:"wait",children:p?f.jsx(se,{children:f.jsx(le.PaperclipIcon,{className:"size-4"})},"paper-clip"):f.jsx(se,{children:f.jsx(le.ImageIcon,{className:"size-4"})},"image-icon")})})}),f.jsx(yn,{content:"send message",side:"top",align:"end",children:f.jsx(Oe,{size:"fit",onClick:_,disabled:E||d||A,className:"rounded-full size-8 flex items-center justify-center p-0",children:f.jsx(ge.AnimatePresence,{mode:"wait",children:E||d?f.jsx(se,{snapExit:!0,children:f.jsx(le.CircleDashed,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):f.jsx(se,{snapExit:!0,children:f.jsx(le.SendHorizonal,{className:"size-4 rtl:-scale-100"})},"send")})})})]})]})]})}function pl(){const{widgetCtx:e}=X.useWidget(),t=St();return f.jsx("div",{className:"p-2",children:f.jsxs("div",{className:"p-2 bg-background rounded-3xl border shadow-2xl space-y-2",children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(le.CheckCheckIcon,{className:"size-4 text-emerald-500"}),f.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:t.get("session-closed-lead")})]}),f.jsx("div",{children:f.jsx(Oe,{onClick:e.resetChat,className:"rounded-2xl w-full",children:t.get("new-conversation")})})]})})}function fl(){var s,u,l;const{sessionState:e}=X.useSessions(),{messagesState:t,sendMessage:n}=X.useMessages(),a=(u=(s=X.usePreludeData().data)==null?void 0:s.data)==null?void 0:u.initialQuestions,i=t.messages.length===0;return f.jsx("footer",{children:f.jsx("div",{children:f.jsx(ge.AnimatePresence,{mode:"wait",children:e.session&&!((l=e.session)!=null&&l.isOpened)?f.jsx(se,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:f.jsx(pl,{})},"session-closed"):f.jsxs(se,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[t.lastAIResMightSolveUserIssue&&f.jsx(cl,{}),i&&a&&f.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:a==null?void 0:a.map(c=>f.jsx(Oe,{dir:"auto",variant:"outline",size:"sm",onClick:()=>{n({content:c})},children:c},c))}),f.jsx(hl,{})]},"chat-input")})})})}const ml=pe.Root,gl=pe.Trigger,bl=pe.Group,El=xe.forwardRef(({className:e,inset:t,children:n,...r},a)=>f.jsxs(pe.SubTrigger,{ref:a,className:q("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,f.jsx(le.ChevronRight,{className:"ml-auto"})]}));El.displayName=pe.SubTrigger.displayName;const xl=xe.forwardRef(({className:e,...t},n)=>f.jsx(pe.SubContent,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));xl.displayName=pe.SubContent.displayName;const Fi=xe.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(pe.Content,{ref:r,sideOffset:t,className:q("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl","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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Fi.displayName=pe.Content.displayName;const Hi=xe.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(se,{children:f.jsx(pe.Item,{ref:r,className:q("relative flex cursor-default select-none items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n})}));Hi.displayName=pe.Item.displayName;const wl=xe.forwardRef(({className:e,children:t,checked:n,...r},a)=>f.jsxs(pe.CheckboxItem,{ref:a,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(pe.ItemIndicator,{children:f.jsx(le.Check,{className:"h-4 w-4"})})}),t]}));wl.displayName=pe.CheckboxItem.displayName;const Tl=xe.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(pe.RadioItem,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(pe.ItemIndicator,{children:f.jsx(le.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Tl.displayName=pe.RadioItem.displayName;const yl=xe.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(pe.Label,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));yl.displayName=pe.Label.displayName;const Cl=xe.forwardRef(({className:e,...t},n)=>f.jsx(pe.Separator,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));Cl.displayName=pe.Separator.displayName;function Ui({className:e,...t}){return f.jsx("div",{className:q("animate-pulse rounded-md bg-secondary",e),...t})}function _l(){const e=St(),[t,n]=K.useState(!1),{toChatScreen:r}=X.useWidgetRouter();return f.jsxs(ml,{open:t,onOpenChange:n,children:[f.jsx(gl,{asChild:!0,children:f.jsx(Oe,{variant:"ghost",size:"fit",className:"rounded-full",children:f.jsx(le.EllipsisVerticalIcon,{className:"size-4"})})}),f.jsx(Fi,{align:"end",className:"min-w-56",children:f.jsx(bl,{children:f.jsxs(Hi,{onSelect:()=>{n(!1),r()},children:[f.jsx(ge.motion.div,{initial:{opacity:0,x:-4,rotate:360},animate:{opacity:1,x:0,rotate:0},children:f.jsx(le.MessageCirclePlusIcon,{})}),e.get("new-conversation")]})})})]})}function zi(){var i,s;const{routerState:{screen:e},toSessionsScreen:t}=X.useWidgetRouter(),{data:n,isLoading:r}=X.usePreludeData(),a=On();return f.jsx("header",{className:"p-2 border-b bg-background",children:f.jsxs("div",{dir:a,className:"flex items-center rtl:flex-row-reverse gap-2",children:[e==="chat"&&f.jsx(Oe,{variant:"ghost",size:"fit",className:"rounded-full",onClick:t,children:f.jsx(le.ChevronLeftIcon,{className:"size-4"})}),f.jsx("div",{className:q("flex-1",e==="sessions"&&"pl-2"),children:f.jsx(ge.AnimatePresence,{mode:"wait",children:r||!((i=n==null?void 0:n.data)!=null&&i.organizationName)?f.jsx(se,{snapExit:!0,children:f.jsx(Ui,{className:"h-5 w-1/2"})},"skeleton"):f.jsx(se,{children:f.jsx("h2",{className:"font-semibold",children:(s=n==null?void 0:n.data)==null?void 0:s.organizationName})},"organization-name")})}),f.jsx(_l,{})]})})}function Al(e){const t=[];let n=null;return e.forEach(r=>{var a,i,s,u;(!n||((a=n[0])==null?void 0:a.type)!==r.type)&&(n=[],t.push(n)),((i=n[0])==null?void 0:i.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((s=r.agent)==null?void 0:s.id)!==((u=n[0].agent)==null?void 0:u.id)&&(n=[],t.push(n)),n.push(r)}),t}function kl(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_USER"}function Nl(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_BOT"}function Il(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_AGENT"}function ma(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}const ke=it(/[A-Za-z]/),Te=it(/[\dA-Za-z]/),Sl=it(/[#-'*+\--9=?A-Z^-~]/);function _n(e){return e!==null&&(e<32||e===127)}const gr=it(/\d/),Ll=it(/[\dA-Fa-f]/),Ol=it(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function ae(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const Rn=it(new RegExp("\\p{P}|\\p{S}","u")),pt=it(/\s/);function it(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Rl(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dn=function(e){if(e==null)return Ml;if(typeof e=="function")return vn(e);if(typeof e=="object")return Array.isArray(e)?Dl(e):vl(e);if(typeof e=="string")return Pl(e);throw new Error("Expected function, string, or object as test")};function Dl(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dn(e[n]);return vn(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function vl(e){const t=e;return vn(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function Pl(e){return vn(t);function t(n){return n&&n.type===e}}function vn(e){return t;function t(n,r,a){return!!(Bl(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Ml(){return!0}function Bl(e){return e!==null&&typeof e=="object"&&"type"in e}const ji=[],Fl=!0,br=!1,Hl="skip";function Yi(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=Dn(a),s=r?-1:1;u(e,void 0,[])();function u(l,c,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return b;function b(){let p=ji,E,y,A;if((!t||i(l,c,h[h.length-1]||void 0))&&(p=Ul(n(l,h)),p[0]===br))return p;if("children"in l&&l.children){const _=l;if(_.children&&p[0]!==Hl)for(y=(r?_.children.length:-1)+s,A=h.concat(_);y>-1&&y<_.children.length;){const L=_.children[y];if(E=u(L,y,A)(),E[0]===br)return E;y=typeof E[1]=="number"?E[1]:y+s}}return p}}}function Ul(e){return Array.isArray(e)?e:typeof e=="number"?[Fl,e]:e==null?ji:[e]}function zl(e,t,n){const a=Dn((n||{}).ignore||[]),i=jl(t);let s=-1;for(;++s<i.length;)Yi(e,"text",u);function u(c,h){let d=-1,b;for(;++d<h.length;){const p=h[d],E=b?b.children:void 0;if(a(p,E?E.indexOf(p):void 0,b))return;b=p}if(b)return l(c,h)}function l(c,h){const d=h[h.length-1],b=i[s][0],p=i[s][1];let E=0;const A=d.children.indexOf(c);let _=!1,L=[];b.lastIndex=0;let O=b.exec(c.value);for(;O;){const P=O.index,F={index:O.index,input:O.input,stack:[...h,c]};let I=p(...O,F);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?b.lastIndex=P+1:(E!==P&&L.push({type:"text",value:c.value.slice(E,P)}),Array.isArray(I)?L.push(...I):I&&L.push(I),E=P+O[0].length,_=!0),!b.global)break;O=b.exec(c.value)}return _?(E<c.value.length&&L.push({type:"text",value:c.value.slice(E)}),d.children.splice(A,1,...L)):L=[c],A+L.length}}function jl(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([Yl(a[0]),ql(a[1])])}return t}function Yl(e){return typeof e=="string"?new RegExp(Rl(e),"g"):e}function ql(e){return typeof e=="function"?e:function(){return e}}const Xn="phrasing",Kn=["autolink","link","image","label"];function Wl(){return{transforms:[Jl],enter:{literalAutolink:Gl,literalAutolinkEmail:$n,literalAutolinkHttp:$n,literalAutolinkWww:$n},exit:{literalAutolink:$l,literalAutolinkEmail:Kl,literalAutolinkHttp:Ql,literalAutolinkWww:Xl}}}function Vl(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xn,notInConstruct:Kn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xn,notInConstruct:Kn},{character:":",before:"[ps]",after:"\\/",inConstruct:Xn,notInConstruct:Kn}]}}function Gl(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $n(e){this.config.enter.autolinkProtocol.call(this,e)}function Ql(e){this.config.exit.autolinkProtocol.call(this,e)}function Xl(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Kl(e){this.config.exit.autolinkEmail.call(this,e)}function $l(e){this.exit(e)}function Jl(e){zl(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ec]],{ignore:["link","linkReference"]})}function Zl(e,t,n,r,a){let i="";if(!qi(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!tc(n)))return!1;const s=nc(n+r);if(!s[0])return!1;const u={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function ec(e,t,n,r){return!qi(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tc(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nc(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=ma(e,"(");let i=ma(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function qi(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pt(n)||Rn(n))&&(!t||n!==47)}function Fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Wi.peek=pc;function rc(){return{enter:{gfmFootnoteDefinition:ic,gfmFootnoteDefinitionLabelString:sc,gfmFootnoteCall:lc,gfmFootnoteCallString:cc},exit:{gfmFootnoteDefinition:uc,gfmFootnoteDefinitionLabelString:oc,gfmFootnoteCall:hc,gfmFootnoteCallString:dc}}}function ac(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:fc,footnoteReference:Wi}}}function ic(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sc(){this.buffer()}function oc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Fe(this.sliceSerialize(e)).toLowerCase()}function uc(e){this.exit(e)}function lc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function cc(){this.buffer()}function dc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Fe(this.sliceSerialize(e)).toLowerCase()}function hc(e){this.exit(e)}function Wi(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteReference"),u=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),u(),s(),i+=a.move("]"),i}function pc(){return"["}function fc(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteDefinition"),u=n.enter("label");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),u(),i+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),i+=a.move(n.indentLines(n.containerFlow(e,a.current()),mc)),s(),i}function mc(e,t,n){return t===0?e:(n?"":" ")+e}const gc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vi.peek=Tc;function bc(){return{canContainEols:["delete"],enter:{strikethrough:xc},exit:{strikethrough:wc}}}function Ec(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gc}],handlers:{delete:Vi}}}function xc(e){this.enter({type:"delete",children:[]},e)}function wc(e){this.exit(e)}function Vi(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function Tc(){return"~"}function yc(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||_c,a=[],i=[],s=[],u=[];let l=0,c=-1;for(;++c<e.length;){const E=[],y=[];let A=-1;for(e[c].length>l&&(l=e[c].length);++A<e[c].length;){const _=Cc(e[c][A]);if(t.alignDelimiters!==!1){const L=r(_);y[A]=L,(u[A]===void 0||L>u[A])&&(u[A]=L)}E.push(_)}i[c]=E,s[c]=y}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<l;)a[h]=ga(n[h]);else{const E=ga(n);for(;++h<l;)a[h]=E}h=-1;const d=[],b=[];for(;++h<l;){const E=a[h];let y="",A="";E===99?(y=":",A=":"):E===108?y=":":E===114&&(A=":");let _=t.alignDelimiters===!1?1:Math.max(1,u[h]-y.length-A.length);const L=y+"-".repeat(_)+A;t.alignDelimiters!==!1&&(_=y.length+_+A.length,_>u[h]&&(u[h]=_),b[h]=_),d[h]=L}i.splice(1,0,d),s.splice(1,0,b),c=-1;const p=[];for(;++c<i.length;){const E=i[c],y=s[c];h=-1;const A=[];for(;++h<l;){const _=E[h]||"";let L="",O="";if(t.alignDelimiters!==!1){const P=u[h]-(y[h]||0),F=a[h];F===114?L=" ".repeat(P):F===99?P%2?(L=" ".repeat(P/2+.5),O=" ".repeat(P/2-.5)):(L=" ".repeat(P/2),O=L):O=" ".repeat(P)}t.delimiterStart!==!1&&!h&&A.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||h)&&A.push(" "),t.alignDelimiters!==!1&&A.push(L),A.push(_),t.alignDelimiters!==!1&&A.push(O),t.padding!==!1&&A.push(" "),(t.delimiterEnd!==!1||h!==l-1)&&A.push("|")}p.push(t.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return p.join(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),K=require("react"),ge=require("framer-motion"),Li=require("clsx"),le=require("lucide-react"),au=require("react-dropzone"),Q=require("./useUploadFiles-D3eDS0ud.cjs"),iu=require("@radix-ui/react-tooltip"),su=require("@radix-ui/react-slot"),ou=require("@radix-ui/react-dropdown-menu"),uu=require("@radix-ui/react-dialog"),pr=require("react-dom"),lu=require("@radix-ui/react-avatar"),la=require("tinycolor2"),Gn=require("zod"),cu=require("@radix-ui/react-popover");function kt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const xe=kt(K),tn=kt(iu),pe=kt(ou),He=kt(uu),Nt=kt(lu),fr=kt(cu),Dr="-",du=e=>{const t=pu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const u=s.split(Dr);return u[0]===""&&u.length!==1&&u.shift(),Oi(u,t)||hu(s)},getConflictingClassGroupIds:(s,u)=>{const l=n[s]||[];return u&&r[s]?[...l,...r[s]]:l}}},Oi=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Oi(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Dr);return(s=t.validators.find(({validator:u})=>u(i)))==null?void 0:s.classGroupId},ca=/^\[(.+)\]$/,hu=e=>{if(ca.test(e)){const t=ca.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pu=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mu(Object.entries(e.classGroups),n).forEach(([i,s])=>{mr(s,r,i,t)}),r},mr=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:da(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(fu(a)){mr(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,s])=>{mr(s,da(t,i),n,r)})})},da=(e,t)=>{let n=e;return t.split(Dr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fu=e=>e.isThemeGetter,mu=(e,t)=>t?e.map(([n,r])=>{const a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,u])=>[t+s,u])):i);return[n,a]}):e,gu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return a(i,s),s},set(i,s){n.has(i)?n.set(i,s):a(i,s)}}},Ri="!",bu=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],i=t.length,s=u=>{const l=[];let c=0,h=0,d;for(let A=0;A<u.length;A++){let _=u[A];if(c===0){if(_===a&&(r||u.slice(A,A+i)===t)){l.push(u.slice(h,A)),h=A+i;continue}if(_==="/"){d=A;continue}}_==="["?c++:_==="]"&&c--}const b=l.length===0?u:u.substring(h),p=b.startsWith(Ri),E=p?b.substring(1):b,y=d&&d>h?d-h:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:E,maybePostfixModifierPosition:y}};return n?u=>n({className:u,parseClassName:s}):s},Eu=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},xu=e=>({cache:gu(e.cacheSize),parseClassName:bu(e),...du(e)}),wu=/\s+/,Tu=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(wu);let u="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:h,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:p}=n(c);let E=!!p,y=r(E?b.substring(0,p):b);if(!y){if(!E){u=c+(u.length>0?" "+u:u);continue}if(y=r(b),!y){u=c+(u.length>0?" "+u:u);continue}E=!1}const A=Eu(h).join(":"),_=d?A+Ri:A,L=_+y;if(i.includes(L))continue;i.push(L);const O=a(y,E);for(let P=0;P<O.length;++P){const F=O[P];i.push(_+F)}u=c+(u.length>0?" "+u:u)}return u};function yu(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Di(t))&&(r&&(r+=" "),r+=n);return r}const Di=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Di(e[r]))&&(n&&(n+=" "),n+=t);return n};function Cu(e,...t){let n,r,a,i=s;function s(l){const c=t.reduce((h,d)=>d(h),e());return n=xu(c),r=n.cache.get,a=n.cache.set,i=u,u(l)}function u(l){const c=r(l);if(c)return c;const h=Tu(l,n);return a(l,h),h}return function(){return i(yu.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vi=/^\[(?:([a-z-]+):)?(.+)\]$/i,_u=/^\d+\/\d+$/,Au=new Set(["px","full","screen"]),ku=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nu=/\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$/,Iu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Su=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>yt(e)||Au.has(e)||_u.test(e),Ze=e=>It(e,"length",Fu),yt=e=>!!e&&!Number.isNaN(Number(e)),Qn=e=>It(e,"number",yt),Ft=e=>!!e&&Number.isInteger(Number(e)),Ou=e=>e.endsWith("%")&&yt(e.slice(0,-1)),G=e=>vi.test(e),et=e=>ku.test(e),Ru=new Set(["length","size","percentage"]),Du=e=>It(e,Ru,Pi),vu=e=>It(e,"position",Pi),Pu=new Set(["image","url"]),Mu=e=>It(e,Pu,Uu),Bu=e=>It(e,"",Hu),Ht=()=>!0,It=(e,t,n)=>{const r=vi.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Fu=e=>Nu.test(e)&&!Iu.test(e),Pi=()=>!1,Hu=e=>Su.test(e),Uu=e=>Lu.test(e),zu=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),a=oe("borderColor"),i=oe("borderRadius"),s=oe("borderSpacing"),u=oe("borderWidth"),l=oe("contrast"),c=oe("grayscale"),h=oe("hueRotate"),d=oe("invert"),b=oe("gap"),p=oe("gradientColorStops"),E=oe("gradientColorStopPositions"),y=oe("inset"),A=oe("margin"),_=oe("opacity"),L=oe("padding"),O=oe("saturate"),P=oe("scale"),F=oe("sepia"),I=oe("skew"),H=oe("space"),U=oe("translate"),Y=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",G,t],M=()=>[G,t],te=()=>["",Qe,Ze],ne=()=>["auto",yt,G],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>["start","end","center","between","around","evenly","stretch"],Ae=()=>["","0",G],w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[yt,G];return{cacheSize:500,separator:":",theme:{colors:[Ht],spacing:[Qe,Ze],blur:["none","",et,G],brightness:de(),borderColor:[e],borderRadius:["none","","full",et,G],borderSpacing:M(),borderWidth:te(),contrast:de(),grayscale:Ae(),hueRotate:de(),invert:Ae(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Ou,Ze],inset:z(),margin:z(),opacity:de(),padding:M(),saturate:de(),scale:de(),sepia:Ae(),skew:de(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[et]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],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:[...J(),G]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":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:["auto",Ft,G]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:Ae()}],shrink:[{shrink:Ae()}],order:[{order:["first","last","none",Ft,G]}],"grid-cols":[{"grid-cols":[Ht]}],"col-start-end":[{col:["auto",{span:["full",Ft,G]},G]}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":[Ht]}],"row-start-end":[{row:["auto",{span:[Ft,G]},G]}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",..._e()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._e(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._e(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[et]},et]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",et,Ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qn]}],"font-family":[{font:[Ht]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G]}],"line-clamp":[{"line-clamp":["none",yt,Qn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qe,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qe,Ze]}],"underline-offset":[{"underline-offset":["auto",Qe,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),vu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Du]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:ce()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[Qe,G]}],"outline-w":[{outline:[Qe,Ze]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Qe,Ze]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",et,Bu]}],"shadow-color":[{shadow:[Ht]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",et,G]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[O]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[Ft,G]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qe,Ze,Qn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},ju=Cu(zu);function q(...e){return ju(Li.clsx(e))}const Yu=tn.Provider,qu=tn.Root,Wu=tn.Trigger,Mi=xe.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(tn.Content,{ref:r,sideOffset:t,className:q("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Mi.displayName=tn.Content.displayName;function yn({children:e,content:t,side:n,align:r}){return t?f.jsxs(qu,{children:[f.jsx(Wu,{asChild:!0,children:e}),f.jsx(Mi,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]}):e}const Vu={ok:"حسنا",yes:"نعم",no:"لا",agree:"موافق",cancel:"إلغاء","yes-exit":"نعم، اخرج","yes-reset":"نعم، إعادة تعيين","no-cancel":"لا، إلغاء","are-you-sure":"هل أنت متأكد؟",recording:"تسجيل","thank-you":"شكرا","sorry-try-again":"عذرا، حاول مرة أخرى","error-occurred":"حدث خطأ","please-try-again":"يرجى المحاولة مرة أخرى","write-a-message":"اكتب رسالة...","send-message":"إرسال رسالة",connected:"متصل",connecting:"جاري الاتصال",reconnecting:"جاري إعادة الاتصال",reconnected:"تم إعادة الاتصال",disconnecting:"جاري قطع الاتصال",disconnected:"قطع الاتصال",error:"خطأ","persist-session":"حفظ الجلسة",settings:"إعدادات",close:"إغلاق",help:"مساعدة",chat:"محادثة",send:"إرسال",copy:"نسخ",copied:"تم النسخ","sound-effects":"التاثيرات الصوتية",language:"اللغة",select:"اختر",agent:"الوكيل",user:"المستخدم",bot:"البوت","close-widget":"إغلاق الودجة","got-any-questions":"هل لديك أي أسئلة؟ تحدث معنا!","typical-response-time":"عادة ما نرد في أقل من دقيقة واحدة","session-closed-lead":"تم حل مشكلتك!",exit:"خروج","create-new-ticket":"إنشاء تذكرة جديدة","reset-conversation":"إعادة تعيين المحادثة","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","hello-greeting":"مرحبًا! كيف يمكننا مساعدتك اليوم؟","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات"},Gu={ok:"OK",yes:"Ja",no:"Nein",agree:"Zustimmen",cancel:"Stornieren","yes-exit":"Ja, beenden","yes-reset":"Ja, zurücksetzen","no-cancel":"Nein, abbrechen","are-you-sure":"Sind Sie sicher?",recording:"Aufnahme läuft","thank-you":"Vielen Dank","sorry-try-again":"Entschuldigung, bitte versuchen Sie es erneut","error-occurred":"Ein Fehler ist aufgetreten","please-try-again":"Bitte versuchen Sie es erneut","write-a-message":"Nachricht schreiben...","send-message":"Nachricht senden",connected:"Verbunden",connecting:"Verbindung wird hergestellt",reconnecting:"Verbindung wird wiederhergestellt",reconnected:"Wieder verbunden",disconnecting:"Verbindung wird getrennt",disconnected:"Verbindung getrennt",error:"Fehler","persist-session":"Sitzung beibehalten",settings:"Einstellungen",close:"Schließen",help:"Hilfe",chat:"Chat",send:"Senden",copy:"Kopieren",copied:"Kopiert","sound-effects":"Soundeffekte",language:"Sprache",select:"Auswählen",agent:"Agent",user:"Benutzer",bot:"Bot","got-any-questions":"Haben Sie Fragen? Chatten Sie mit uns!","typical-response-time":"Üblicherweise antworten wir in weniger als 1 Minute","close-widget":"Widget schließen","session-closed-lead":"Ihr Problem wurde gelöst!","create-new-ticket":"Neues Ticket erstellen",exit:"Beenden","reset-conversation":"Konversation zurücksetzen","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","hello-greeting":"Hallo! Wie können wir Ihnen heute helfen?","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche"},Qu={ok:"OK",yes:"Yes",no:"No",agree:"Agree",cancel:"Cancel","yes-exit":"Yes, exit","yes-reset":"Yes, reset","no-cancel":"No, cancel","are-you-sure":"Are you sure?",recording:"Recording...","thank-you":"Thank you","sorry-try-again":"Sorry, please try again","error-occurred":"An error occurred","please-try-again":"Please try again","write-a-message":"Write a message...","send-message":"Send message",connected:"Connected",connecting:"Connecting",reconnecting:"Reconnecting",reconnected:"Reconnected",disconnecting:"Disconnecting",disconnected:"Disconnected",error:"Error","persist-session":"Persist session",settings:"Settings",close:"Close",help:"Help",chat:"Chat",send:"Send",copy:"Copy",copied:"Copied","sound-effects":"Sound effects",language:"Language",select:"Select",agent:"Agent",user:"User",bot:"Bot","close-widget":"Close widget","got-any-questions":"Got any questions? Chat with us!","typical-response-time":"Typically respond in less than 1 minute","session-closed-lead":"Your issue has been resolved!","create-new-ticket":"Create new ticket",exit:"Exit","reset-conversation":"Reset conversation","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","hello-greeting":"Hi there!","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet"},Xu={ok:"D'accord",yes:"Oui",no:"Non",agree:"Accepter",cancel:"Annuler","yes-exit":"Oui, quitter","yes-reset":"Oui, réinitialiser","no-cancel":"Non, annuler","are-you-sure":"Êtes-vous sûr ?",recording:"Enregistrement...","thank-you":"Merci","sorry-try-again":"Désolé, veuillez réessayer","error-occurred":"Une erreur s'est produite","please-try-again":"Veuillez réessayer","write-a-message":"Écrivez un message...","send-message":"Envoyer le message",connected:"Connecté",connecting:"Connexion en cours",reconnecting:"Reconnexion en cours",reconnected:"Reconnecté",disconnecting:"Déconnexion en cours",disconnected:"Déconnecté",error:"Erreur","persist-session":"Conserver la session",settings:"Paramètres",close:"Fermer",help:"Aide",chat:"Chat",send:"Envoyer",copy:"Copier",copied:"Copié","sound-effects":"Effets sonores",language:"Langue",select:"Sélectionner",agent:"Agent",user:"Utilisateur",bot:"Bot","close-widget":"Fermer le widget","got-any-questions":"Vous avez des questions ? Chattez avec nous !","typical-response-time":"Nous répondons généralement en moins d'une minute","session-closed-lead":"Votre problème a été résolu !","create-new-ticket":"Créer un nouveau ticket",exit:"Sortie","reset-conversation":"Réinitialiser la conversation","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","hello-greeting":"Bonjour ! Comment pouvons-nous vous aider aujourd'hui ?","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment"},Ku={ok:"OK",yes:"Ja",no:"Nee",agree:"Akkoord",cancel:"Annuleren","yes-exit":"Ja, afsluiten","yes-reset":"Ja, resetten","no-cancel":"Nee, annuleren","are-you-sure":"Weet u het zeker?",recording:"Opname...","thank-you":"Dank u","sorry-try-again":"Sorry, probeer het opnieuw","error-occurred":"Er is een fout opgetreden","please-try-again":"Probeer het opnieuw","write-a-message":"Schrijf een bericht...","send-message":"Bericht verzenden",connected:"Verbonden",connecting:"Verbinding maken",reconnecting:"Opnieuw verbinding maken",reconnected:"Opnieuw verbonden",disconnecting:"Verbinding verbreken",disconnected:"Verbinding verbroken",error:"Fout","persist-session":"Sessie behouden",settings:"Instellingen",close:"Sluiten",help:"Help",chat:"Chat",send:"Verzenden",copy:"Kopiëren",copied:"Gekopieerd","sound-effects":"Geluidseffecten",language:"Taal",select:"Selecteren",agent:"Agent",user:"Gebruiker",bot:"Bot","close-widget":"Widget sluiten","got-any-questions":"Heeft u vragen? Chat met ons!","typical-response-time":"We reageren doorgaans binnen 1 minuut","session-closed-lead":"Uw probleem is opgelost!","create-new-ticket":"Nieuw ticket aanmaken",exit:"Afsluiten","reset-conversation":"Gesprek resetten","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","hello-greeting":"Hallo! Hoe kunnen we u vandaag helpen?","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken"},$u={ok:"OK",yes:"Sim",no:"Não",agree:"Concordo",cancel:"Cancelar","yes-exit":"Sim, sair","yes-reset":"Sim, redefinir","no-cancel":"Não, cancelar","are-you-sure":"Você tem certeza?",recording:"Gravando...","thank-you":"Obrigado","sorry-try-again":"Desculpe, tente novamente","error-occurred":"Ocorreu um erro","please-try-again":"Por favor, tente novamente","write-a-message":"Escreva uma mensagem...","send-message":"Enviar mensagem",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Erro","persist-session":"Persistir sessão",settings:"Configurações",close:"Fechar",help:"Ajuda",chat:"Bate-papo",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efeitos sonoros",language:"Idioma",select:"Selecionar",agent:"Agente",user:"Usuário",bot:"Bot","close-widget":"Fechar widget","got-any-questions":"Tem alguma dúvida? Converse conosco!","typical-response-time":"Geralmente respondemos em menos de 1 minuto","session-closed-lead":"Seu problema foi resolvido!","create-new-ticket":"Criar novo ticket",exit:"Sair","reset-conversation":"Redefinir conversa","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","hello-greeting":"Olá! Como podemos ajudar você hoje?","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda"},Bi={en:Qu,ar:Vu,nl:Ku,fr:Xu,de:Gu,pt:$u},Ju=Object.keys(Bi),Zu=e=>Ju.includes(e);function el(e,t){const n=Bi[t];return n&&n[e]||""}function St(){const{widgetCtx:{config:e}}=Q.useWidget();return K.useMemo(()=>{const n=Zu(e.language)?e.language:"en";return{get:r=>el(r,n),lang:n}},[e.language])}const tl=10,nl=(e,t)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:e,...t.exit}}),rl=(e,t)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate},exit:{opacity:0,x:-e,...t.exit}}),al=(e,t)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:-e,...t.exit}}),il=(e,t)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate},exit:{opacity:0,y:e,...t.exit}}),sl={right:nl,left:rl,up:al,down:il},se=K.forwardRef(({fadeIn:e="down",distance:t=tl,children:n,snapExit:r=!1,overrides:a={},...i},s)=>{const u=e?sl[e](t,a):{};return r&&u.exit&&typeof u.exit=="object"&&!Array.isArray(u.exit)&&(u.exit.transition={duration:0}),f.jsx(ge.motion.div,{ref:s,...i,...u,children:n})});se.displayName="MotionDiv";const ha=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,pa=Li.clsx,ol=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return pa(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,s=Object.keys(a).map(c=>{const h=n==null?void 0:n[c],d=i==null?void 0:i[c];if(h===null)return null;const b=ha(h)||ha(d);return a[c][b]}),u=n&&Object.entries(n).reduce((c,h)=>{let[d,b]=h;return b===void 0||(c[d]=b),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,h)=>{let{class:d,className:b,...p}=h;return Object.entries(p).every(E=>{let[y,A]=E;return Array.isArray(A)?A.includes({...i,...u}[y]):{...i,...u}[y]===A})?[...c,d,b]:c},[]);return pa(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},Cn={x:2,y:2},ul={1:"scale-[1]","1.01":"scale-[1.01]","1.02":"scale-[1.02]","1.1":"scale-[1.1]"},Ke=K.memo(K.forwardRef(({children:e,className:t,scale:n="1.02",off:r=!1},a)=>{const[i,s]=K.useState(!1),[u,l]=K.useState({x:0,y:0});if(r||/translate/.test(e.props.className||""))return e;const h=E=>{var U,Y;const{clientX:y,clientY:A}=E,_=E.currentTarget.getBoundingClientRect(),L=y-(_.left+_.width/2),O=A-(_.top+_.height/2),P=Math.max(-1,Math.min(1,L/(_.width/2))),F=Math.max(-1,Math.min(1,O/(_.height/2))),I=P*Cn.x,H=F*Cn.y;l({x:I,y:H}),(Y=(U=e.props).onMouseMove)==null||Y.call(U,E)},d=()=>{var E,y;s(!0),(y=(E=e.props).onMouseEnter)==null||y.call(E)},b=()=>{var E,y;s(!1),l({x:0,y:0}),(y=(E=e.props).onMouseLeave)==null||y.call(E)},p={"--opencx-wobble-x":i?`${u.x}px`:"0px","--opencx-wobble-y":i?`${u.y}px`:"0px"};return K.cloneElement(e,{ref:a,onMouseMove:h,onMouseEnter:d,onMouseLeave:b,style:{...p,...e.props.style},className:q("translate-x-[var(--opencx-wobble-x)]","translate-y-[var(--opencx-wobble-y)]",`hover:${ul[n]}`,t,e.props.className,"transition-all ease-out")})}));Ke.displayName="Wobble";const ll=ol(q("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","shadow-sm active:shadow-none active:scale-95 hover:active:scale-95","rounded-xl","border","transition"),{variants:{variant:{default:"border-primary bg-primary text-primary-foreground",destructive:"border-destructive bg-destructive text-destructive-foreground",outline:"bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground",ghost:"border-transparent shadow-none hover:bg-accent hover:text-accent-foreground",link:"border-transparent shadow-none text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"min-h-12 px-4",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2"}},defaultVariants:{variant:"default",size:"default"}}),Oe=xe.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const s=r?su.Slot:"button";return f.jsx(Ke,{ref:i,children:f.jsx(s,{className:q(ll({variant:t,size:n,className:e})),...a})})});Oe.displayName="Button";const On=()=>{const[e,t]=K.useState("ltr");return K.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle(document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),e};function cl(){const{sendMessage:e}=Q.useMessages(),t=St(),n=[t.get("i-need-more-help"),t.get("this-was-helpful")],r=a=>{const i=a.trim();i&&e({content:i})};return f.jsx("div",{className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:n.map(a=>f.jsx(Oe,{onClick:()=>r(a),className:"flex-1 rounded-full",size:"sm",children:a},a))})}function dl({file:{status:e,file:t,error:n},onCancel:r}){const[a,i]=K.useState(null);K.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>i(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return f.jsx(le.Loader2,{className:"size-4 animate-spin"});case"error":return f.jsx(le.AlertCircle,{className:"size-4 text-destructive"});default:return null}},u=()=>{const l=t.type.split("/")[0];return l==="image"&&a?f.jsx("img",{src:typeof a=="string"?a:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?f.jsx(le.FileAudio2Icon,{}):l==="video"?f.jsx(le.FileVideo2Icon,{}):f.jsx(le.FileIcon,{})};return f.jsx(yn,{side:"bottom",content:e==="error"?f.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:f.jsxs("div",{className:q(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),f.jsx("button",{type:"button",className:q("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:f.jsx(le.XIcon,{className:"size-4 text-primary-foreground"})}),f.jsx(u,{})]})})}const fa=q("rounded-3xl");function hl(){var I;const e=K.useRef(null),{sendMessage:t}=Q.useMessages(),{sessionState:n}=Q.useSessions(),r=St(),a=On(),[i,s]=K.useState(""),{allFiles:u,emptyTheFiles:l,handleCancelUpload:c,appendFiles:h,isUploading:d,successFiles:b}=Q.useUploadFiles(),p=!!((I=n.session)!=null&&I.isHandedOff),{isAwaitingBotReply:E}=Q.useIsAwaitingBotReply(),y=H=>{h(H)},A=!i.trim()&&b.length===0,_=async()=>{if(E||A)return;d&&console.info("please wait for the file(s) to upload");const H=i.trim();t({content:H,attachments:b.flatMap(U=>U.fileUrl?[{url:U.fileUrl,type:U.file.type,name:U.file.name,id:U.id,size:U.file.size}]:[])}),s(""),l()},{getRootProps:L,getInputProps:O,open:P}=au.useDropzone({onDrop:y,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:p?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),F=H=>{const U=H.clipboardData;U&&U.files.length>0&&y(Array.from(U.files))};return f.jsxs("div",{className:"p-2 relative space-y-1",...L(),children:[f.jsx("input",{...O()}),f.jsxs("div",{className:q(fa,"relative space-y-2 border transition-all shadow py-2"),children:[f.jsx("div",{className:"flex items-center gap-1 px-2",children:f.jsx(ge.AnimatePresence,{mode:"popLayout",children:u.map(H=>f.jsx(se,{snapExit:!0,children:f.jsx(dl,{onCancel:()=>c(H.id),file:H})},H.id))})}),f.jsx("textarea",{onPaste:F,ref:e,id:"chat-input",dir:a,value:i,rows:3,className:q(fa,"w-full resize-none px-3","text-sm rtl:placeholder:text-right bg-transparent outline-none"),onChange:H=>s(H.target.value),onKeyDown:async H=>{H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),_())},placeholder:r.get("write-a-message")}),f.jsxs("div",{dir:a,className:"px-2 flex justify-between rtl:text-right",children:[f.jsx(yn,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:f.jsx(Oe,{onClick:P,size:"fit",variant:"outline",className:q("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:f.jsx(ge.AnimatePresence,{mode:"wait",children:p?f.jsx(se,{children:f.jsx(le.PaperclipIcon,{className:"size-4"})},"paper-clip"):f.jsx(se,{children:f.jsx(le.ImageIcon,{className:"size-4"})},"image-icon")})})}),f.jsx(yn,{content:"send message",side:"top",align:"end",children:f.jsx(Oe,{size:"fit",onClick:_,disabled:E||d||A,className:"rounded-full size-8 flex items-center justify-center p-0",children:f.jsx(ge.AnimatePresence,{mode:"wait",children:E||d?f.jsx(se,{snapExit:!0,children:f.jsx(le.CircleDashed,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):f.jsx(se,{snapExit:!0,children:f.jsx(le.SendHorizonal,{className:"size-4 rtl:-scale-100"})},"send")})})})]})]})]})}function pl(){const{widgetCtx:e}=Q.useWidget(),t=St();return f.jsx("div",{className:"p-2",children:f.jsxs("div",{className:"p-2 bg-background rounded-3xl border shadow-2xl space-y-2",children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(le.CheckCheckIcon,{className:"size-4 text-emerald-500"}),f.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:t.get("session-closed-lead")})]}),f.jsx("div",{children:f.jsx(Oe,{onClick:e.resetChat,className:"rounded-2xl w-full",children:t.get("new-conversation")})})]})})}function fl(){var s,u,l;const{sessionState:e}=Q.useSessions(),{messagesState:t,sendMessage:n}=Q.useMessages(),a=(u=(s=Q.usePreludeData().data)==null?void 0:s.data)==null?void 0:u.initialQuestions,i=t.messages.length===0;return f.jsx("footer",{children:f.jsx("div",{children:f.jsx(ge.AnimatePresence,{mode:"wait",children:e.session&&!((l=e.session)!=null&&l.isOpened)?f.jsx(se,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:f.jsx(pl,{})},"session-closed"):f.jsxs(se,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[t.lastAIResMightSolveUserIssue&&f.jsx(cl,{}),i&&a&&f.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:a==null?void 0:a.map(c=>f.jsx(Oe,{dir:"auto",variant:"outline",size:"sm",onClick:()=>{n({content:c})},children:c},c))}),f.jsx(hl,{})]},"chat-input")})})})}const ml=pe.Root,gl=pe.Trigger,bl=pe.Group,El=xe.forwardRef(({className:e,inset:t,children:n,...r},a)=>f.jsxs(pe.SubTrigger,{ref:a,className:q("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,f.jsx(le.ChevronRight,{className:"ml-auto"})]}));El.displayName=pe.SubTrigger.displayName;const xl=xe.forwardRef(({className:e,...t},n)=>f.jsx(pe.SubContent,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));xl.displayName=pe.SubContent.displayName;const Fi=xe.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(pe.Content,{ref:r,sideOffset:t,className:q("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl","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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Fi.displayName=pe.Content.displayName;const Hi=xe.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(se,{children:f.jsx(pe.Item,{ref:r,className:q("relative flex cursor-default select-none items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n})}));Hi.displayName=pe.Item.displayName;const wl=xe.forwardRef(({className:e,children:t,checked:n,...r},a)=>f.jsxs(pe.CheckboxItem,{ref:a,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(pe.ItemIndicator,{children:f.jsx(le.Check,{className:"h-4 w-4"})})}),t]}));wl.displayName=pe.CheckboxItem.displayName;const Tl=xe.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(pe.RadioItem,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(pe.ItemIndicator,{children:f.jsx(le.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Tl.displayName=pe.RadioItem.displayName;const yl=xe.forwardRef(({className:e,inset:t,...n},r)=>f.jsx(pe.Label,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));yl.displayName=pe.Label.displayName;const Cl=xe.forwardRef(({className:e,...t},n)=>f.jsx(pe.Separator,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));Cl.displayName=pe.Separator.displayName;function Ui({className:e,...t}){return f.jsx("div",{className:q("animate-pulse rounded-md bg-secondary",e),...t})}function _l(){const e=St(),[t,n]=K.useState(!1),{toChatScreen:r}=Q.useWidgetRouter();return f.jsxs(ml,{open:t,onOpenChange:n,children:[f.jsx(gl,{asChild:!0,children:f.jsx(Oe,{variant:"ghost",size:"fit",className:"rounded-full",children:f.jsx(le.EllipsisVerticalIcon,{className:"size-4"})})}),f.jsx(Fi,{align:"end",className:"min-w-56",children:f.jsx(bl,{children:f.jsxs(Hi,{onSelect:()=>{n(!1),r()},children:[f.jsx(ge.motion.div,{initial:{opacity:0,x:-4,rotate:360},animate:{opacity:1,x:0,rotate:0},children:f.jsx(le.MessageCirclePlusIcon,{})}),e.get("new-conversation")]})})})]})}function zi(){var i,s;const{routerState:{screen:e},toSessionsScreen:t}=Q.useWidgetRouter(),{data:n,isLoading:r}=Q.usePreludeData(),a=On();return f.jsx("header",{className:"p-2 border-b bg-background",children:f.jsxs("div",{dir:a,className:"flex items-center rtl:flex-row-reverse gap-2",children:[e==="chat"&&f.jsx(Oe,{variant:"ghost",size:"fit",className:"rounded-full",onClick:t,children:f.jsx(le.ChevronLeftIcon,{className:"size-4"})}),f.jsx("div",{className:q("flex-1",e==="sessions"&&"pl-2"),children:f.jsx(ge.AnimatePresence,{mode:"wait",children:r||!((i=n==null?void 0:n.data)!=null&&i.organizationName)?f.jsx(se,{snapExit:!0,children:f.jsx(Ui,{className:"h-5 w-1/2"})},"skeleton"):f.jsx(se,{children:f.jsx("h2",{className:"font-semibold",children:(s=n==null?void 0:n.data)==null?void 0:s.organizationName})},"organization-name")})}),f.jsx(_l,{})]})})}function Al(e){const t=[];let n=null;return e.forEach(r=>{var a,i,s,u;(!n||((a=n[0])==null?void 0:a.type)!==r.type)&&(n=[],t.push(n)),((i=n[0])==null?void 0:i.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((s=r.agent)==null?void 0:s.id)!==((u=n[0].agent)==null?void 0:u.id)&&(n=[],t.push(n)),n.push(r)}),t}function kl(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_USER"}function Nl(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_BOT"}function Il(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_AGENT"}function ma(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}const ke=it(/[A-Za-z]/),Te=it(/[\dA-Za-z]/),Sl=it(/[#-'*+\--9=?A-Z^-~]/);function _n(e){return e!==null&&(e<32||e===127)}const gr=it(/\d/),Ll=it(/[\dA-Fa-f]/),Ol=it(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function ae(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}const Rn=it(new RegExp("\\p{P}|\\p{S}","u")),pt=it(/\s/);function it(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Rl(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Dn=function(e){if(e==null)return Ml;if(typeof e=="function")return vn(e);if(typeof e=="object")return Array.isArray(e)?Dl(e):vl(e);if(typeof e=="string")return Pl(e);throw new Error("Expected function, string, or object as test")};function Dl(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dn(e[n]);return vn(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function vl(e){const t=e;return vn(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function Pl(e){return vn(t);function t(n){return n&&n.type===e}}function vn(e){return t;function t(n,r,a){return!!(Bl(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Ml(){return!0}function Bl(e){return e!==null&&typeof e=="object"&&"type"in e}const ji=[],Fl=!0,br=!1,Hl="skip";function Yi(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=Dn(a),s=r?-1:1;u(e,void 0,[])();function u(l,c,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return b;function b(){let p=ji,E,y,A;if((!t||i(l,c,h[h.length-1]||void 0))&&(p=Ul(n(l,h)),p[0]===br))return p;if("children"in l&&l.children){const _=l;if(_.children&&p[0]!==Hl)for(y=(r?_.children.length:-1)+s,A=h.concat(_);y>-1&&y<_.children.length;){const L=_.children[y];if(E=u(L,y,A)(),E[0]===br)return E;y=typeof E[1]=="number"?E[1]:y+s}}return p}}}function Ul(e){return Array.isArray(e)?e:typeof e=="number"?[Fl,e]:e==null?ji:[e]}function zl(e,t,n){const a=Dn((n||{}).ignore||[]),i=jl(t);let s=-1;for(;++s<i.length;)Yi(e,"text",u);function u(c,h){let d=-1,b;for(;++d<h.length;){const p=h[d],E=b?b.children:void 0;if(a(p,E?E.indexOf(p):void 0,b))return;b=p}if(b)return l(c,h)}function l(c,h){const d=h[h.length-1],b=i[s][0],p=i[s][1];let E=0;const A=d.children.indexOf(c);let _=!1,L=[];b.lastIndex=0;let O=b.exec(c.value);for(;O;){const P=O.index,F={index:O.index,input:O.input,stack:[...h,c]};let I=p(...O,F);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?b.lastIndex=P+1:(E!==P&&L.push({type:"text",value:c.value.slice(E,P)}),Array.isArray(I)?L.push(...I):I&&L.push(I),E=P+O[0].length,_=!0),!b.global)break;O=b.exec(c.value)}return _?(E<c.value.length&&L.push({type:"text",value:c.value.slice(E)}),d.children.splice(A,1,...L)):L=[c],A+L.length}}function jl(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([Yl(a[0]),ql(a[1])])}return t}function Yl(e){return typeof e=="string"?new RegExp(Rl(e),"g"):e}function ql(e){return typeof e=="function"?e:function(){return e}}const Xn="phrasing",Kn=["autolink","link","image","label"];function Wl(){return{transforms:[Jl],enter:{literalAutolink:Gl,literalAutolinkEmail:$n,literalAutolinkHttp:$n,literalAutolinkWww:$n},exit:{literalAutolink:$l,literalAutolinkEmail:Kl,literalAutolinkHttp:Ql,literalAutolinkWww:Xl}}}function Vl(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xn,notInConstruct:Kn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xn,notInConstruct:Kn},{character:":",before:"[ps]",after:"\\/",inConstruct:Xn,notInConstruct:Kn}]}}function Gl(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $n(e){this.config.enter.autolinkProtocol.call(this,e)}function Ql(e){this.config.exit.autolinkProtocol.call(this,e)}function Xl(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Kl(e){this.config.exit.autolinkEmail.call(this,e)}function $l(e){this.exit(e)}function Jl(e){zl(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ec]],{ignore:["link","linkReference"]})}function Zl(e,t,n,r,a){let i="";if(!qi(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!tc(n)))return!1;const s=nc(n+r);if(!s[0])return!1;const u={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function ec(e,t,n,r){return!qi(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tc(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nc(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=ma(e,"(");let i=ma(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function qi(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||pt(n)||Rn(n))&&(!t||n!==47)}function Fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Wi.peek=pc;function rc(){return{enter:{gfmFootnoteDefinition:ic,gfmFootnoteDefinitionLabelString:sc,gfmFootnoteCall:lc,gfmFootnoteCallString:cc},exit:{gfmFootnoteDefinition:uc,gfmFootnoteDefinitionLabelString:oc,gfmFootnoteCall:hc,gfmFootnoteCallString:dc}}}function ac(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:fc,footnoteReference:Wi}}}function ic(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sc(){this.buffer()}function oc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Fe(this.sliceSerialize(e)).toLowerCase()}function uc(e){this.exit(e)}function lc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function cc(){this.buffer()}function dc(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Fe(this.sliceSerialize(e)).toLowerCase()}function hc(e){this.exit(e)}function Wi(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteReference"),u=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),u(),s(),i+=a.move("]"),i}function pc(){return"["}function fc(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteDefinition"),u=n.enter("label");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),u(),i+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),i+=a.move(n.indentLines(n.containerFlow(e,a.current()),mc)),s(),i}function mc(e,t,n){return t===0?e:(n?"":" ")+e}const gc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vi.peek=Tc;function bc(){return{canContainEols:["delete"],enter:{strikethrough:xc},exit:{strikethrough:wc}}}function Ec(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:gc}],handlers:{delete:Vi}}}function xc(e){this.enter({type:"delete",children:[]},e)}function wc(e){this.exit(e)}function Vi(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function Tc(){return"~"}function yc(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||_c,a=[],i=[],s=[],u=[];let l=0,c=-1;for(;++c<e.length;){const E=[],y=[];let A=-1;for(e[c].length>l&&(l=e[c].length);++A<e[c].length;){const _=Cc(e[c][A]);if(t.alignDelimiters!==!1){const L=r(_);y[A]=L,(u[A]===void 0||L>u[A])&&(u[A]=L)}E.push(_)}i[c]=E,s[c]=y}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<l;)a[h]=ga(n[h]);else{const E=ga(n);for(;++h<l;)a[h]=E}h=-1;const d=[],b=[];for(;++h<l;){const E=a[h];let y="",A="";E===99?(y=":",A=":"):E===108?y=":":E===114&&(A=":");let _=t.alignDelimiters===!1?1:Math.max(1,u[h]-y.length-A.length);const L=y+"-".repeat(_)+A;t.alignDelimiters!==!1&&(_=y.length+_+A.length,_>u[h]&&(u[h]=_),b[h]=_),d[h]=L}i.splice(1,0,d),s.splice(1,0,b),c=-1;const p=[];for(;++c<i.length;){const E=i[c],y=s[c];h=-1;const A=[];for(;++h<l;){const _=E[h]||"";let L="",O="";if(t.alignDelimiters!==!1){const P=u[h]-(y[h]||0),F=a[h];F===114?L=" ".repeat(P):F===99?P%2?(L=" ".repeat(P/2+.5),O=" ".repeat(P/2-.5)):(L=" ".repeat(P/2),O=L):O=" ".repeat(P)}t.delimiterStart!==!1&&!h&&A.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||h)&&A.push(" "),t.alignDelimiters!==!1&&A.push(L),A.push(_),t.alignDelimiters!==!1&&A.push(O),t.padding!==!1&&A.push(" "),(t.delimiterEnd!==!1||h!==l-1)&&A.push("|")}p.push(t.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return p.join(`
|
|
2
2
|
`)}function Cc(e){return e==null?"":String(e)}function _c(e){return e.length}function ga(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const ba={}.hasOwnProperty;function Gi(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const u=r.handlers;if(a&&ba.call(a,e)){const l=String(a[e]);s=ba.call(u,l)?u[l]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Ac(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),kc);return a(),s}function kc(e,t,n){return">"+(n?"":" ")+e}function Nc(e,t){return Ea(e,t.inConstruct,!0)&&!Ea(e,t.notInConstruct,!1)}function Ea(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xa(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
3
3
|
`&&Nc(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
4
4
|
`}function Ic(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>s&&(s=i):i=1,a=r+t.length,r=n.indexOf(t,a);return s}function Sc(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Lc(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Oc(e,t,n,r){const a=Lc(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(Sc(e,n)){const d=n.enter("codeIndented"),b=n.indentLines(i,Rc);return d(),b}const u=n.createTracker(r),l=a.repeat(Math.max(Ic(i,a)+1,3)),c=n.enter("codeFenced");let h=u.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);h+=u.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...u.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);h+=u.move(" "),h+=u.move(n.safe(e.meta,{before:h,after:`
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
`,...i.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),u(),c}Ki.peek=Uc;function Ki(e){return e.value||""}function Uc(){return"<"}$i.peek=zc;function $i(e,t,n,r){const a=vr(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let u=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(u=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),u()),c+=l.move(")"),s(),c}function zc(){return"!"}Ji.peek=jc;function Ji(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const u=n.createTracker(r);let l=u.move("![");const c=n.safe(e.alt,{before:l,after:"]",...u.current()});l+=u.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...u.current()});return s(),n.stack=h,i(),a==="full"||!c||c!==d?l+=u.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function jc(){return"!"}Zi.peek=Yc;function Zi(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],u=n.compilePattern(s);let l;if(s.atBreak)for(;l=u.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return a+r+a}function Yc(){return"`"}function es(e,t){const n=Pr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ts.peek=qc;function ts(e,t,n,r){const a=vr(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let u,l;if(es(e,n)){const h=n.stack;n.stack=[],u=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),u(),n.stack=h,d}u=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+a),c+=s.move(n.safe(e.title,{before:c,after:a,...s.current()})),c+=s.move(a),l()),c+=s.move(")"),u(),c}function qc(e,t,n){return es(e,n)?"<":"["}ns.peek=Wc;function ns(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const u=n.createTracker(r);let l=u.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...u.current()});l+=u.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...u.current()});return s(),n.stack=h,i(),a==="full"||!c||c!==d?l+=u.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function Wc(){return"["}function Mr(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Vc(e){const t=Mr(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Gc(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function rs(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Qc(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?Gc(n):Mr(n);const u=e.ordered?s==="."?")":".":Vc(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),rs(n)===s&&h){let d=-1;for(;++d<e.children.length;){const b=e.children[d];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=u),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,a(),c}function Xc(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Kc(e,t,n,r){const a=Xc(n);let i=n.bulletCurrent||Mr(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=n.createTracker(r);u.move(i+" ".repeat(s-i.length)),u.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,u.current()),h);return l(),c;function h(d,b,p){return b?(p?"":" ".repeat(s))+d:(p?i:i+" ".repeat(s-i.length))+d}}function $c(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),a(),s}const Jc=Dn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Zc(e,t,n,r){return(e.children.some(function(s){return Jc(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ed(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}as.peek=td;function as(e,t,n,r){const a=ed(n),i=n.enter("strong"),s=n.createTracker(r);let u=s.move(a+a);return u+=s.move(n.containerPhrasing(e,{before:u,after:a,...s.current()})),u+=s.move(a+a),i(),u}function td(e,t,n){return n.options.strong||"*"}function nd(e,t,n,r){return n.safe(e.value,r)}function rd(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ad(e,t,n){const r=(rs(n)+(n.options.ruleSpaces?" ":"")).repeat(rd(n));return n.options.ruleSpaces?r.slice(0,-1):r}const is={blockquote:Ac,break:xa,code:Oc,definition:Dc,emphasis:Qi,hardBreak:xa,heading:Hc,html:Ki,image:$i,imageReference:Ji,inlineCode:Zi,link:ts,linkReference:ns,list:Qc,listItem:Kc,paragraph:$c,root:Zc,strong:as,text:nd,thematicBreak:ad},Ta=document.createElement("i");function Br(e){const t="&"+e+";";Ta.innerHTML=t;const n=Ta.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ss(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const id=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sd(e){return e.replace(id,od)}function od(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return ss(n.slice(i?2:1),i?16:10)}return Br(n)||e}function ud(){return{enter:{table:ld,tableData:ya,tableHeader:ya,tableRow:dd},exit:{codeText:hd,table:cd,tableData:Jn,tableHeader:Jn,tableRow:Jn}}}function ld(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function cd(e){this.exit(e),this.data.inTable=void 0}function dd(e){this.enter({type:"tableRow",children:[]},e)}function Jn(e){this.exit(e)}function ya(e){this.enter({type:"tableCell",children:[]},e)}function hd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pd));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function pd(e,t){return t==="|"?t:e}function fd(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
14
14
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:s,tableCell:l,tableRow:u}};function s(p,E,y,A){return c(h(p,y,A),p.align)}function u(p,E,y,A){const _=d(p,y,A),L=c([_]);return L.slice(0,L.indexOf(`
|
|
15
15
|
`))}function l(p,E,y,A){const _=y.enter("tableCell"),L=y.enter("phrasing"),O=y.containerPhrasing(p,{...A,before:i,after:i});return L(),_(),O}function c(p,E){return yc(p,{align:E,alignDelimiters:r,padding:n,stringLength:a})}function h(p,E,y){const A=p.children;let _=-1;const L=[],O=E.enter("table");for(;++_<A.length;)L[_]=d(A[_],E,y);return O(),L}function d(p,E,y){const A=p.children;let _=-1;const L=[],O=E.enter("tableRow");for(;++_<A.length;)L[_]=l(A[_],p,E,y);return O(),L}function b(p,E,y){let A=is.inlineCode(p,E,y);return y.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function md(){return{exit:{taskListCheckValueChecked:Ca,taskListCheckValueUnchecked:Ca,paragraph:bd}}}function gd(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ed}}}function Ca(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function bd(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){s=u;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Ed(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);i&&u.move(s);let l=is.listItem(e,t,n,{...r,...u.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(h){return h+s}}function xd(){return[Wl(),rc(),bc(),ud(),md()]}function wd(e){return{extensions:[Vl(),ac(),Ec(),fd(e),gd()]}}function ve(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Re(e,t){return e.length>0?(ve(e,e.length,0,t),e):t}const _a={}.hasOwnProperty;function os(e){const t={};let n=-1;for(;++n<e.length;)Td(t,e[n]);return t}function Td(e,t){let n;for(n in t){const a=(_a.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){_a.call(a,s)||(a[s]=[]);const u=i[s];yd(a[s],Array.isArray(u)?u:u?[u]:[])}}}function yd(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ve(e,0,0,r)}const Cd={tokenize:Sd,partial:!0},us={tokenize:Ld,partial:!0},ls={tokenize:Od,partial:!0},cs={tokenize:Rd,partial:!0},_d={tokenize:Dd,partial:!0},ds={name:"wwwAutolink",tokenize:Nd,previous:ps},hs={name:"protocolAutolink",tokenize:Id,previous:fs},$e={name:"emailAutolink",tokenize:kd,previous:ms},Ye={};function Ad(){return{text:Ye}}let lt=48;for(;lt<123;)Ye[lt]=$e,lt++,lt===58?lt=65:lt===91&&(lt=97);Ye[43]=$e;Ye[45]=$e;Ye[46]=$e;Ye[95]=$e;Ye[72]=[$e,hs];Ye[104]=[$e,hs];Ye[87]=[$e,ds];Ye[119]=[$e,ds];function kd(e,t,n){const r=this;let a,i;return s;function s(d){return!Er(d)||!ms.call(r,r.previous)||Fr(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return Er(d)?(e.consume(d),u):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(_d,h,c)(d):d===45||d===95||Te(d)?(i=!0,e.consume(d),l):h(d)}function c(d){return e.consume(d),a=!0,l}function h(d){return i&&a&&ke(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Nd(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!ps.call(r,r.previous)||Fr(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cd,e.attempt(us,e.attempt(ls,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Id(e,t,n){const r=this;let a="",i=!1;return s;function s(d){return(d===72||d===104)&&fs.call(r,r.previous)&&!Fr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),u):n(d)}function u(d){if(ke(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):n(d)}function c(d){return d===null||_n(d)||ae(d)||pt(d)||Rn(d)?n(d):e.attempt(us,e.attempt(ls,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Sd(e,t,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),a):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function Ld(e,t,n){let r,a,i;return s;function s(c){return c===46||c===95?e.check(cs,l,u)(c):c===null||ae(c)||pt(c)||c!==45&&Rn(c)?l(c):(i=!0,e.consume(c),s)}function u(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),s}function l(c){return a||r||!i?n(c):t(c)}}function Od(e,t){let n=0,r=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(cs,t,i)(s):s===null||ae(s)||pt(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&r++,e.consume(s),a}}function Rd(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),i):u===93?(e.consume(u),a):u===60||u===null||ae(u)||pt(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||ae(u)||pt(u)?t(u):r(u)}function i(u){return ke(u)?s(u):n(u)}function s(u){return u===59?(e.consume(u),r):ke(u)?(e.consume(u),s):n(u)}}function Dd(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Te(i)?n(i):t(i)}}function ps(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ae(e)}function fs(e){return!ke(e)}function ms(e){return!(e===47||Er(e))}function Er(e){return e===43||e===45||e===46||e===95||Te(e)}function Fr(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Lt(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Te(e.charCodeAt(n+1))&&Te(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(n+1);i<56320&&u>56319&&u<57344?(s=String.fromCharCode(i,u),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function An(e){if(e===null||ae(e)||pt(e))return 1;if(Rn(e))return 2}function Mn(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const xr={name:"attention",tokenize:Pd,resolveAll:vd};function vd(e,t){let n=-1,r,a,i,s,u,l,c,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),b=Object.assign({},e[n][1].start);Aa(d,-l),Aa(b,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:b},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},u.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},u.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Re(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Re(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=Re(c,Mn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Re(c,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=Re(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,ve(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Pd(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=An(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),u(l)}function u(l){if(l===i)return e.consume(l),u;const c=e.exit("attentionSequence"),h=An(l),d=!h||h===2&&a||n.includes(l),b=!a||a===2&&h||n.includes(r);return c._open=!!(i===42?d:d&&(a||!b)),c._close=!!(i===42?b:b&&(h||!d)),t(l)}}function Aa(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Md={name:"autolink",tokenize:Bd};function Bd(e,t,n){let r=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return ke(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||Te(p)?(r=1,u(p)):c(p)}function u(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Te(p))&&r++<32?(e.consume(p),u):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||_n(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),h):Sl(p)?(e.consume(p),c):n(p)}function h(p){return Te(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):b(p)}function b(p){if((p===45||Te(p))&&r++<63){const E=p===45?b:d;return e.consume(p),E}return n(p)}}function ee(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return $(l)?(e.enter(n),u(l)):t(l)}function u(l){return $(l)&&i++<a?(e.consume(l),u):(e.exit(n),t(l))}}const nn={tokenize:Fd,partial:!0};function Fd(e,t,n){return r;function r(i){return $(i)?ee(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||j(i)?t(i):n(i)}}const gs={name:"blockQuote",tokenize:Hd,continuation:{tokenize:Ud},exit:zd};function Hd(e,t,n){const r=this;return a;function a(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return $(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Ud(e,t,n){const r=this;return a;function a(s){return $(s)?ee(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(gs,t,n)(s)}}function zd(e){e.exit("blockQuote")}const bs={name:"characterEscape",tokenize:jd};function jd(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Ol(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Es={name:"characterReference",tokenize:Yd};function Yd(e,t,n){const r=this;let a=0,i,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=Te,h(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=Ll,h):(e.enter("characterReferenceValue"),i=7,s=gr,h(d))}function h(d){if(d===59&&a){const b=e.exit("characterReferenceValue");return s===Te&&!Br(r.sliceSerialize(b))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<i?(e.consume(d),h):n(d)}}const ka={tokenize:Wd,partial:!0},Na={name:"codeFenced",tokenize:qd,concrete:!0};function qd(e,t,n){const r=this,a={tokenize:F,partial:!0};let i=0,s=0,u;return l;function l(I){return c(I)}function c(I){const H=r.events[r.events.length-1];return i=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,u=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(I)}function h(I){return I===u?(s++,e.consume(I),h):s<3?n(I):(e.exit("codeFencedFenceSequence"),$(I)?ee(e,d,"whitespace")(I):d(I))}function d(I){return I===null||j(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(ka,y,P)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(I))}function b(I){return I===null||j(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(I)):$(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,p,"whitespace")(I)):I===96&&I===u?n(I):(e.consume(I),b)}function p(I){return I===null||j(I)?d(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(I))}function E(I){return I===null||j(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(I)):I===96&&I===u?n(I):(e.consume(I),E)}function y(I){return e.attempt(a,P,A)(I)}function A(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),_}function _(I){return i>0&&$(I)?ee(e,L,"linePrefix",i+1)(I):L(I)}function L(I){return I===null||j(I)?e.check(ka,y,P)(I):(e.enter("codeFlowValue"),O(I))}function O(I){return I===null||j(I)?(e.exit("codeFlowValue"),L(I)):(e.consume(I),O)}function P(I){return e.exit("codeFenced"),t(I)}function F(I,H,U){let Y=0;return k;function k(J){return I.enter("lineEnding"),I.consume(J),I.exit("lineEnding"),z}function z(J){return I.enter("codeFencedFence"),$(J)?ee(I,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):M(J)}function M(J){return J===u?(I.enter("codeFencedFenceSequence"),te(J)):U(J)}function te(J){return J===u?(Y++,I.consume(J),te):Y>=s?(I.exit("codeFencedFenceSequence"),$(J)?ee(I,ne,"whitespace")(J):ne(J)):U(J)}function ne(J){return J===null||j(J)?(I.exit("codeFencedFence"),H(J)):U(J)}}}function Wd(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Zn={name:"codeIndented",tokenize:Gd},Vd={tokenize:Qd,partial:!0};function Gd(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),ee(e,i,"linePrefix",5)(c)}function i(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):j(c)?e.attempt(Vd,s,l)(c):(e.enter("codeFlowValue"),u(c))}function u(c){return c===null||j(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),u)}function l(c){return e.exit("codeIndented"),t(c)}}function Qd(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):j(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):ee(e,i,"linePrefix",5)(s)}function i(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):j(s)?a(s):n(s)}}const Xd={name:"codeText",tokenize:Jd,resolve:Kd,previous:$d};function Kd(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function $d(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jd(e,t,n){let r=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,h(d)):j(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||j(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function h(d){return d===96?(e.consume(d),a++,h):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class Zd{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Ut(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ut(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ut(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ut(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ut(this.left,n.reverse())}}}function Ut(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function xs(e){const t={};let n=-1,r,a,i,s,u,l,c;const h=new Zd(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,e0(h,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(s=h.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},h.get(a)[1].start),u=h.slice(a,n),u.unshift(r),h.splice(a,n-a+1,u))}}return ve(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function e0(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),u=s.events,l=[],c={};let h,d,b=-1,p=n,E=0,y=0;const A=[y];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++b<u.length;)u[b][0]==="exit"&&u[b-1][0]==="enter"&&u[b][1].type===u[b-1][1].type&&u[b][1].start.line!==u[b][1].end.line&&(y=b+1,A.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):A.pop(),b=A.length;b--;){const _=u.slice(A[b],A[b+1]),L=i.pop();l.push([L,L+_.length-1]),e.splice(L,2,_)}for(l.reverse(),b=-1;++b<l.length;)c[E+l[b][0]]=E+l[b][1],E+=l[b][1]-l[b][0]-1;return c}const t0={tokenize:a0,resolve:r0},n0={tokenize:i0,partial:!0};function r0(e){return xs(e),e}function a0(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?i(u):j(u)?e.check(n0,s,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function i0(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ee(e,i,"linePrefix")}function i(s){if(s===null||j(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function ws(e,t,n,r,a,i,s,u,l){const c=l||Number.POSITIVE_INFINITY;let h=0;return d;function d(_){return _===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(_),e.exit(i),b):_===null||_===32||_===41||_n(_)?n(_):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),y(_))}function b(_){return _===62?(e.enter(i),e.consume(_),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===62?(e.exit("chunkString"),e.exit(u),b(_)):_===null||_===60||j(_)?n(_):(e.consume(_),_===92?E:p)}function E(_){return _===60||_===62||_===92?(e.consume(_),p):p(_)}function y(_){return!h&&(_===null||_===41||ae(_))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(_)):h<c&&_===40?(e.consume(_),h++,y):_===41?(e.consume(_),h--,y):_===null||_===32||_===40||_n(_)?n(_):(e.consume(_),_===92?A:y)}function A(_){return _===40||_===41||_===92?(e.consume(_),y):y(_)}}function Ts(e,t,n,r,a,i){const s=this;let u=0,l;return c;function c(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),h}function h(p){return u>999||p===null||p===91||p===93&&!l||p===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||j(p)||u++>999?(e.exit("chunkString"),h(p)):(e.consume(p),l||(l=!$(p)),p===92?b:d)}function b(p){return p===91||p===92||p===93?(e.consume(p),u++,d):d(p)}}function ys(e,t,n,r,a,i){let s;return u;function u(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),s=b===40?41:b,l):n(b)}function l(b){return b===s?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(i),c(b))}function c(b){return b===s?(e.exit(i),l(s)):b===null?n(b):j(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ee(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===s||b===null||j(b)?(e.exit("chunkString"),c(b)):(e.consume(b),b===92?d:h)}function d(b){return b===s||b===92?(e.consume(b),h):h(b)}}function Wt(e,t){let n;return r;function r(a){return j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):$(a)?ee(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const s0={name:"definition",tokenize:u0},o0={tokenize:l0,partial:!0};function u0(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return Ts.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return a=Fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ae(p)?Wt(e,c)(p):c(p)}function c(p){return ws(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(o0,d,d)(p)}function d(p){return $(p)?ee(e,b,"whitespace")(p):b(p)}function b(p){return p===null||j(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function l0(e,t,n){return r;function r(u){return ae(u)?Wt(e,a)(u):n(u)}function a(u){return ys(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return $(u)?ee(e,s,"whitespace")(u):s(u)}function s(u){return u===null||j(u)?t(u):n(u)}}const c0={name:"hardBreakEscape",tokenize:d0};function d0(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return j(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const h0={name:"headingAtx",tokenize:f0,resolve:p0};function p0(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ve(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function f0(e,t,n){let r=0;return a;function a(h){return e.enter("atxHeading"),i(h)}function i(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||ae(h)?(e.exit("atxHeadingSequence"),u(h)):n(h)}function u(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||j(h)?(e.exit("atxHeading"),t(h)):$(h)?ee(e,u,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),u(h))}function c(h){return h===null||h===35||ae(h)?(e.exit("atxHeadingText"),u(h)):(e.consume(h),c)}}const m0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ia=["pre","script","style","textarea"],g0={name:"htmlFlow",tokenize:w0,resolveTo:x0,concrete:!0},b0={tokenize:y0,partial:!0},E0={tokenize:T0,partial:!0};function x0(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function w0(e,t,n){const r=this;let a,i,s,u,l;return c;function c(T){return h(T)}function h(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),d}function d(T){return T===33?(e.consume(T),b):T===47?(e.consume(T),i=!0,y):T===63?(e.consume(T),a=3,r.interrupt?t:w):ke(T)?(e.consume(T),s=String.fromCharCode(T),A):n(T)}function b(T){return T===45?(e.consume(T),a=2,p):T===91?(e.consume(T),a=5,u=0,E):ke(T)?(e.consume(T),a=4,r.interrupt?t:w):n(T)}function p(T){return T===45?(e.consume(T),r.interrupt?t:w):n(T)}function E(T){const Me="CDATA[";return T===Me.charCodeAt(u++)?(e.consume(T),u===Me.length?r.interrupt?t:M:E):n(T)}function y(T){return ke(T)?(e.consume(T),s=String.fromCharCode(T),A):n(T)}function A(T){if(T===null||T===47||T===62||ae(T)){const Me=T===47,ot=s.toLowerCase();return!Me&&!i&&Ia.includes(ot)?(a=1,r.interrupt?t(T):M(T)):m0.includes(s.toLowerCase())?(a=6,Me?(e.consume(T),_):r.interrupt?t(T):M(T)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):i?L(T):O(T))}return T===45||Te(T)?(e.consume(T),s+=String.fromCharCode(T),A):n(T)}function _(T){return T===62?(e.consume(T),r.interrupt?t:M):n(T)}function L(T){return $(T)?(e.consume(T),L):k(T)}function O(T){return T===47?(e.consume(T),k):T===58||T===95||ke(T)?(e.consume(T),P):$(T)?(e.consume(T),O):k(T)}function P(T){return T===45||T===46||T===58||T===95||Te(T)?(e.consume(T),P):F(T)}function F(T){return T===61?(e.consume(T),I):$(T)?(e.consume(T),F):O(T)}function I(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,H):$(T)?(e.consume(T),I):U(T)}function H(T){return T===l?(e.consume(T),l=null,Y):T===null||j(T)?n(T):(e.consume(T),H)}function U(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||ae(T)?F(T):(e.consume(T),U)}function Y(T){return T===47||T===62||$(T)?O(T):n(T)}function k(T){return T===62?(e.consume(T),z):n(T)}function z(T){return T===null||j(T)?M(T):$(T)?(e.consume(T),z):n(T)}function M(T){return T===45&&a===2?(e.consume(T),ce):T===60&&a===1?(e.consume(T),fe):T===62&&a===4?(e.consume(T),de):T===63&&a===3?(e.consume(T),w):T===93&&a===5?(e.consume(T),Ae):j(T)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(b0,We,te)(T)):T===null||j(T)?(e.exit("htmlFlowData"),te(T)):(e.consume(T),M)}function te(T){return e.check(E0,ne,We)(T)}function ne(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),J}function J(T){return T===null||j(T)?te(T):(e.enter("htmlFlowData"),M(T))}function ce(T){return T===45?(e.consume(T),w):M(T)}function fe(T){return T===47?(e.consume(T),s="",_e):M(T)}function _e(T){if(T===62){const Me=s.toLowerCase();return Ia.includes(Me)?(e.consume(T),de):M(T)}return ke(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),_e):M(T)}function Ae(T){return T===93?(e.consume(T),w):M(T)}function w(T){return T===62?(e.consume(T),de):T===45&&a===2?(e.consume(T),w):M(T)}function de(T){return T===null||j(T)?(e.exit("htmlFlowData"),We(T)):(e.consume(T),de)}function We(T){return e.exit("htmlFlow"),t(T)}}function T0(e,t,n){const r=this;return a;function a(s){return j(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function y0(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(nn,t,n)}}const C0={name:"htmlText",tokenize:_0};function _0(e,t,n){const r=this;let a,i,s;return u;function u(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),F):w===63?(e.consume(w),O):ke(w)?(e.consume(w),U):n(w)}function c(w){return w===45?(e.consume(w),h):w===91?(e.consume(w),i=0,E):ke(w)?(e.consume(w),L):n(w)}function h(w){return w===45?(e.consume(w),p):n(w)}function d(w){return w===null?n(w):w===45?(e.consume(w),b):j(w)?(s=d,fe(w)):(e.consume(w),d)}function b(w){return w===45?(e.consume(w),p):d(w)}function p(w){return w===62?ce(w):w===45?b(w):d(w)}function E(w){const de="CDATA[";return w===de.charCodeAt(i++)?(e.consume(w),i===de.length?y:E):n(w)}function y(w){return w===null?n(w):w===93?(e.consume(w),A):j(w)?(s=y,fe(w)):(e.consume(w),y)}function A(w){return w===93?(e.consume(w),_):y(w)}function _(w){return w===62?ce(w):w===93?(e.consume(w),_):y(w)}function L(w){return w===null||w===62?ce(w):j(w)?(s=L,fe(w)):(e.consume(w),L)}function O(w){return w===null?n(w):w===63?(e.consume(w),P):j(w)?(s=O,fe(w)):(e.consume(w),O)}function P(w){return w===62?ce(w):O(w)}function F(w){return ke(w)?(e.consume(w),I):n(w)}function I(w){return w===45||Te(w)?(e.consume(w),I):H(w)}function H(w){return j(w)?(s=H,fe(w)):$(w)?(e.consume(w),H):ce(w)}function U(w){return w===45||Te(w)?(e.consume(w),U):w===47||w===62||ae(w)?Y(w):n(w)}function Y(w){return w===47?(e.consume(w),ce):w===58||w===95||ke(w)?(e.consume(w),k):j(w)?(s=Y,fe(w)):$(w)?(e.consume(w),Y):ce(w)}function k(w){return w===45||w===46||w===58||w===95||Te(w)?(e.consume(w),k):z(w)}function z(w){return w===61?(e.consume(w),M):j(w)?(s=z,fe(w)):$(w)?(e.consume(w),z):Y(w)}function M(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,te):j(w)?(s=M,fe(w)):$(w)?(e.consume(w),M):(e.consume(w),ne)}function te(w){return w===a?(e.consume(w),a=void 0,J):w===null?n(w):j(w)?(s=te,fe(w)):(e.consume(w),te)}function ne(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ae(w)?Y(w):(e.consume(w),ne)}function J(w){return w===47||w===62||ae(w)?Y(w):n(w)}function ce(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function fe(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),_e}function _e(w){return $(w)?ee(e,Ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):Ae(w)}function Ae(w){return e.enter("htmlTextData"),s(w)}}const Hr={name:"labelEnd",tokenize:L0,resolveTo:S0,resolveAll:I0},A0={tokenize:O0},k0={tokenize:R0},N0={tokenize:D0};function I0(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function S0(e,t){let n=e.length,r=0,a,i,s,u;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[s][1].end)},h={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[s-2][1].start)};return u=[["enter",l,t],["enter",c,t]],u=Re(u,e.slice(i+1,i+r+3)),u=Re(u,[["enter",h,t]]),u=Re(u,Mn(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),u=Re(u,[["exit",h,t],e[s-2],e[s-1],["exit",c,t]]),u=Re(u,e.slice(s+1)),u=Re(u,[["exit",l,t]]),ve(e,i,e.length,u),e}function L0(e,t,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return u;function u(b){return i?i._inactive?d(b):(s=r.parser.defined.includes(Fe(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),l):n(b)}function l(b){return b===40?e.attempt(A0,h,s?h:d)(b):b===91?e.attempt(k0,h,s?c:d)(b):s?h(b):d(b)}function c(b){return e.attempt(N0,h,d)(b)}function h(b){return t(b)}function d(b){return i._balanced=!0,n(b)}}function O0(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return ae(d)?Wt(e,i)(d):i(d)}function i(d){return d===41?h(d):ws(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return ae(d)?Wt(e,l)(d):h(d)}function u(d){return n(d)}function l(d){return d===34||d===39||d===40?ys(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function c(d){return ae(d)?Wt(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function R0(e,t,n){const r=this;return a;function a(u){return Ts.call(r,e,i,s,"reference","referenceMarker","referenceString")(u)}function i(u){return r.parser.defined.includes(Fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function D0(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const v0={name:"labelStartImage",tokenize:P0,resolveAll:Hr.resolveAll};function P0(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const M0={name:"labelStartLink",tokenize:B0,resolveAll:Hr.resolveAll};function B0(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const er={name:"lineEnding",tokenize:F0};function F0(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const bn={name:"thematicBreak",tokenize:H0};function H0(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return a=c,u(c)}function u(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||j(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),$(c)?ee(e,u,"whitespace")(c):u(c))}}const Ie={name:"list",tokenize:j0,continuation:{tokenize:Y0},exit:W0},U0={tokenize:V0,partial:!0},z0={tokenize:q0,partial:!0};function j0(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return u;function u(p){const E=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:gr(p)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(bn,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return gr(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(nn,r.interrupt?n:h,e.attempt(U0,b,d))}function h(p){return r.containerState.initialBlankLine=!0,i++,b(p)}function d(p){return $(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),b):n(p)}function b(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Y0(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(nn,a,i);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ee(e,t,"listItemIndent",r.containerState.size+1)(u)}function i(u){return r.containerState.furtherBlankLines||!$(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(z0,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,ee(e,e.attempt(Ie,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function q0(e,t,n){const r=this;return ee(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function W0(e){e.exit(this.containerState.type)}function V0(e,t,n){const r=this;return ee(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!$(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Sa={name:"setextUnderline",tokenize:Q0,resolveTo:G0};function G0(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function Q0(e,t,n){const r=this;let a;return i;function i(c){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),u(c)}function u(c){return c===a?(e.consume(c),u):(e.exit("setextHeadingLineSequence"),$(c)?ee(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||j(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const X0={tokenize:rh,partial:!0};function K0(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:eh,continuation:{tokenize:th},exit:nh}},text:{91:{name:"gfmFootnoteCall",tokenize:Z0},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$0,resolveTo:J0}}}}function $0(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return u;function u(l){if(!s||!s._balanced)return n(l);const c=Fe(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function J0(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function Z0(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!s||d===null||d===91||ae(d))return n(d);if(d===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(Fe(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return ae(d)||(s=!0),i++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function eh(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,u;return l;function l(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(E)}function h(E){if(s>999||E===93&&!u||E===null||E===91||ae(E))return n(E);if(E===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=Fe(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return ae(E)||(u=!0),s++,e.consume(E),E===92?d:h}function d(E){return E===91||E===92||E===93?(e.consume(E),s++,h):h(E)}function b(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),a.includes(i)||a.push(i),ee(e,p,"gfmFootnoteDefinitionWhitespace")):n(E)}function p(E){return t(E)}}function th(e,t,n){return e.check(nn,t,e.attempt(X0,t,n))}function nh(e){e.exit("gfmFootnoteDefinition")}function rh(e,t,n){const r=this;return ee(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function ah(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(s,u){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},b=[["enter",h,u],["enter",s[c][1],u],["exit",s[c][1],u],["enter",d,u]],p=u.parser.constructs.insideSpan.null;p&&ve(b,b.length,0,Mn(p,s.slice(c+1,l),u)),ve(b,b.length,0,[["exit",d,u],["enter",s[l][1],u],["exit",s[l][1],u],["exit",h,u]]),ve(s,c-1,l-c+3,b),l=c+b.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,u,l){const c=this.previous,h=this.events;let d=0;return b;function b(E){return c===126&&h[h.length-1][1].type!=="characterEscape"?l(E):(s.enter("strikethroughSequenceTemporary"),p(E))}function p(E){const y=An(c);if(E===126)return d>1?l(E):(s.consume(E),d++,p);if(d<2&&!n)return l(E);const A=s.exit("strikethroughSequenceTemporary"),_=An(E);return A._open=!_||_===2&&!!y,A._close=!y||y===2&&!!_,u(E)}}}class ih{constructor(){this.map=[]}add(t,n,r){sh(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let a=r.pop();for(;a;)t.push(...a),a=r.pop();this.map.length=0}}function sh(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function oh(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function uh(){return{flow:{null:{name:"table",tokenize:lh,resolveAll:ch}}}}function lh(e,t,n){const r=this;let a=0,i=0,s;return u;function u(k){let z=r.events.length-1;for(;z>-1;){const ne=r.events[z][1].type;if(ne==="lineEnding"||ne==="linePrefix")z--;else break}const M=z>-1?r.events[z][1].type:null,te=M==="tableHead"||M==="tableRow"?I:l;return te===I&&r.parser.lazy[r.now().line]?n(k):te(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),c(k)}function c(k){return k===124||(s=!0,i+=1),h(k)}function h(k){return k===null?n(k):j(k)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):n(k):$(k)?ee(e,h,"whitespace")(k):(i+=1,s&&(s=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||ae(k)?(e.exit("data"),h(k)):(e.consume(k),k===92?b:d)}function b(k){return k===92||k===124?(e.consume(k),d):d(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),s=!1,$(k)?ee(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):E(k))}function E(k){return k===45||k===58?A(k):k===124?(s=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),y):F(k)}function y(k){return $(k)?ee(e,A,"whitespace")(k):A(k)}function A(k){return k===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),_):k===45?(i+=1,_(k)):k===null||j(k)?P(k):F(k)}function _(k){return k===45?(e.enter("tableDelimiterFiller"),L(k)):F(k)}function L(k){return k===45?(e.consume(k),L):k===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(k))}function O(k){return $(k)?ee(e,P,"whitespace")(k):P(k)}function P(k){return k===124?E(k):k===null||j(k)?!s||a!==i?F(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):F(k)}function F(k){return n(k)}function I(k){return e.enter("tableRow"),H(k)}function H(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),H):k===null||j(k)?(e.exit("tableRow"),t(k)):$(k)?ee(e,H,"whitespace")(k):(e.enter("data"),U(k))}function U(k){return k===null||k===124||ae(k)?(e.exit("data"),H(k)):(e.consume(k),k===92?Y:U)}function Y(k){return k===92||k===124?(e.consume(k),U):U(k)}}function ch(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],u=!1,l=0,c,h,d;const b=new ih;for(;++n<e.length;){const p=e[n],E=p[1];p[0]==="enter"?E.type==="tableHead"?(u=!1,l!==0&&(La(b,t,l,c,h),h=void 0,l=0),c={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(n,0,[["enter",c,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],s=[0,n+1,0,0],u&&(u=!1,h={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(n,0,[["enter",h,t]])),a=E.type==="tableDelimiterRow"?2:h?3:1):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],d=hn(b,t,i,a,void 0,d),i=[0,0,0,0]),s[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],d=hn(b,t,i,a,void 0,d)),i=s,s=[i[1],n,0,0])):E.type==="tableHead"?(u=!0,l=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],d=hn(b,t,i,a,n,d)):s[1]!==0&&(d=hn(b,t,s,a,n,d)),a=0):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&La(b,t,l,c,h),b.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=oh(t.events,n))}return e}function hn(e,t,n,r,a,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(i.end=Object.assign({},wt(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=wt(t.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=wt(t.events,n[2]),h=wt(t.events,n[3]),d={type:u,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const b=t.events[n[2]],p=t.events[n[3]];if(b[1].end=Object.assign({},p[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,y=n[3]-n[2]-1;e.add(E,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},wt(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function La(e,t,n,r,a){const i=[],s=wt(t.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function wt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const dh={name:"tasklistCheck",tokenize:ph};function hh(){return{text:{91:dh}}}function ph(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return ae(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(l)}function u(l){return j(l)?t(l):$(l)?e.check({tokenize:fh},t,n)(l):n(l)}}function fh(e,t,n){return ee(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function mh(e){return os([Ad(),K0(),ah(e),uh(),hh()])}const gh={};function Cs(e){const t=this,n=e||gh,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(mh(n)),i.push(xd()),s.push(wd(n))}function Oa(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function _s(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xh={};function Ra(e,t){return(xh.jsx?Eh:bh).test(e)}const wh=/[ \t\n\f\r]/g;function Th(e){return typeof e=="object"?e.type==="text"?Da(e.value):!1:Da(e)}function Da(e){return e.replace(wh,"")===""}class rn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}rn.prototype.property={};rn.prototype.normal={};rn.prototype.space=null;function As(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new rn(n,r,t)}function Jt(e){return e.toLowerCase()}class Pe{constructor(t,n){this.property=t,this.attribute=n}}Pe.prototype.space=null;Pe.prototype.boolean=!1;Pe.prototype.booleanish=!1;Pe.prototype.overloadedBoolean=!1;Pe.prototype.number=!1;Pe.prototype.commaSeparated=!1;Pe.prototype.spaceSeparated=!1;Pe.prototype.commaOrSpaceSeparated=!1;Pe.prototype.mustUseProperty=!1;Pe.prototype.defined=!1;let yh=0;const V=ft(),me=ft(),ks=ft(),v=ft(),ie=ft(),Ct=ft(),Le=ft();function ft(){return 2**++yh}const wr=Object.freeze(Object.defineProperty({__proto__:null,boolean:V,booleanish:me,commaOrSpaceSeparated:Le,commaSeparated:Ct,number:v,overloadedBoolean:ks,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),tr=Object.keys(wr);class Ur extends Pe{constructor(t,n,r,a){let i=-1;if(super(t,n),va(this,"space",a),typeof r=="number")for(;++i<tr.length;){const s=tr[i];va(this,tr[i],(r&wr[s])===wr[s])}}}Ur.prototype.defined=!0;function va(e,t,n){n&&(e[t]=n)}const Ch={}.hasOwnProperty;function Ot(e){const t={},n={};let r;for(r in e.properties)if(Ch.call(e.properties,r)){const a=e.properties[r],i=new Ur(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Jt(r)]=r,n[Jt(i.attribute)]=r}return new rn(t,n,e.space)}const Ns=Ot({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Is=Ot({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ss(e,t){return t in e?e[t]:t}function Ls(e,t){return Ss(e,t.toLowerCase())}const Os=Ot({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ls,properties:{xmlns:null,xmlnsXLink:null}}),Rs=Ot({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:me,ariaAutoComplete:null,ariaBusy:me,ariaChecked:me,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:me,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:me,ariaFlowTo:ie,ariaGrabbed:me,ariaHasPopup:null,ariaHidden:me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:v,ariaLive:null,ariaModal:me,ariaMultiLine:me,ariaMultiSelectable:me,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:me,ariaReadOnly:me,ariaRelevant:null,ariaRequired:me,ariaRoleDescription:ie,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:me,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null}}),_h=Ot({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ls,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ct,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:ie,autoFocus:V,autoPlay:V,blocking:ie,capture:null,charSet:null,checked:V,cite:null,className:ie,cols:v,colSpan:null,content:null,contentEditable:me,controls:V,controlsList:ie,coords:v|Ct,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:ks,draggable:me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:ie,height:v,hidden:V,high:v,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:ie,itemRef:ie,itemScope:V,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:V,optimum:v,pattern:null,ping:ie,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:ie,required:V,reversed:V,rows:v,rowSpan:v,sandbox:ie,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:me,width:v,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:me,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:v,security:null,unselectable:null}}),Ah=Ot({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ss,properties:{about:Le,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ct,g2:Ct,glyphName:Ct,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:Le,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Le,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Le,rev:Le,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Le,requiredFeatures:Le,requiredFonts:Le,requiredFormats:Le,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:Le,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Le,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Le,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),kh=/^data[-\w.:]+$/i,Pa=/-[a-z]/g,Nh=/[A-Z]/g;function Bn(e,t){const n=Jt(t);let r=t,a=Pe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kh.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Pa,Sh);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Pa.test(i)){let s=i.replace(Nh,Ih);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Ur}return new a(r,t)}function Ih(e){return"-"+e.toLowerCase()}function Sh(e){return e.charAt(1).toUpperCase()}const Lh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},an=As([Is,Ns,Os,Rs,_h],"html"),st=As([Is,Ns,Os,Rs,Ah],"svg");function Ma(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ds(e){return e.join(" ").trim()}var vs={},Ba=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Oh=/\n/g,Rh=/^\s*/,Dh=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vh=/^:\s*/,Ph=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mh=/^[;\s]*/,Bh=/^\s+|\s+$/g,Fh=`
|
|
16
|
-
`,Fa="/",Ha="*",ct="",Hh="comment",Uh="declaration",zh=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(E){var y=E.match(Oh);y&&(n+=y.length);var A=E.lastIndexOf(Fh);r=~A?E.length-A:r+E.length}function i(){var E={line:n,column:r};return function(y){return y.position=new s(E),c(),y}}function s(E){this.start=E,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(E){var y=new Error(t.source+":"+n+":"+r+": "+E);if(y.reason=E,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(E){var y=E.exec(e);if(y){var A=y[0];return a(A),e=e.slice(A.length),y}}function c(){l(Rh)}function h(E){var y;for(E=E||[];y=d();)y!==!1&&E.push(y);return E}function d(){var E=i();if(!(Fa!=e.charAt(0)||Ha!=e.charAt(1))){for(var y=2;ct!=e.charAt(y)&&(Ha!=e.charAt(y)||Fa!=e.charAt(y+1));)++y;if(y+=2,ct===e.charAt(y-1))return u("End of comment missing");var A=e.slice(2,y-2);return r+=2,a(A),e=e.slice(y),r+=2,E({type:Hh,comment:A})}}function b(){var E=i(),y=l(Dh);if(y){if(d(),!l(vh))return u("property missing ':'");var A=l(Ph),_=E({type:Uh,property:Ua(y[0].replace(Ba,ct)),value:A?Ua(A[0].replace(Ba,ct)):ct});return l(Mh),_}}function p(){var E=[];h(E);for(var y;y=b();)y!==!1&&(E.push(y),h(E));return E}return c(),p()};function Ua(e){return e?e.replace(Bh,ct):ct}var jh=X.commonjsGlobal&&X.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vs,"__esModule",{value:!0});var za=vs.default=qh,Yh=jh(zh);function qh(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Yh.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var s=i.property,u=i.value;a?t(s,u,i):u&&(n=n||{},n[s]=u)}}),n}const Wh=za.default||za,Fn=Ps("end"),qe=Ps("start");function Ps(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Vh(e){const t=qe(e),n=Fn(e);if(t&&n)return{start:t,end:n}}function Vt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ja(e.position):"start"in e||"end"in e?ja(e):"line"in e||"column"in e?Tr(e):""}function Tr(e){return Ya(e&&e.line)+":"+Ya(e&&e.column)}function ja(e){return Tr(e&&e.start)+"-"+Tr(e&&e.end)}function Ya(e){return e&&typeof e=="number"?e:1}class ye extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=u?u.line:void 0,this.name=Vt(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ye.prototype.file="";ye.prototype.name="";ye.prototype.reason="";ye.prototype.message="";ye.prototype.stack="";ye.prototype.column=void 0;ye.prototype.line=void 0;ye.prototype.ancestors=void 0;ye.prototype.cause=void 0;ye.prototype.fatal=void 0;ye.prototype.place=void 0;ye.prototype.ruleId=void 0;ye.prototype.source=void 0;const zr={}.hasOwnProperty,Gh=new Map,Qh=/[A-Z]/g,Xh=/-([a-z])/g,Kh=new Set(["table","tbody","thead","tfoot","tr"]),$h=new Set(["td","th"]),Ms="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Jh(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=sp(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ip(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?st:an,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Bs(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Bs(e,t,n){if(t.type==="element")return Zh(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ep(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return np(e,t,n);if(t.type==="mdxjsEsm")return tp(e,t);if(t.type==="root")return rp(e,t,n);if(t.type==="text")return ap(e,t)}function Zh(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=st,e.schema=a),e.ancestors.push(t);const i=Hs(e,t.tagName,!1),s=op(e,t);let u=Yr(e,t);return Kh.has(t.tagName)&&(u=u.filter(function(l){return typeof l=="string"?!Th(l):!0})),Fs(e,s,i,t),jr(s,u),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function ep(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Zt(e,t.position)}function tp(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zt(e,t.position)}function np(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=st,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Hs(e,t.name,!0),s=up(e,t),u=Yr(e,t);return Fs(e,s,i,t),jr(s,u),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function rp(e,t,n){const r={};return jr(r,Yr(e,t)),e.create(t,e.Fragment,r,n)}function ap(e,t){return t.value}function Fs(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ip(e,t,n){return r;function r(a,i,s,u){const c=Array.isArray(s.children)?n:t;return u?c(i,s,u):c(i,s)}}function sp(e,t){return n;function n(r,a,i,s){const u=Array.isArray(i.children),l=qe(r);return t(a,i,s,u,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function op(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&zr.call(t.properties,a)){const i=lp(e,a,t.properties[a]);if(i){const[s,u]=i;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&$h.has(t.tagName)?r=u:n[s]=u}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function up(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Zt(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else Zt(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Yr(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Gh;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;s=l+"-"+c,a.set(l,c+1)}}const u=Bs(e,i,s);u!==void 0&&n.push(u)}return n}function lp(e,t,n){const r=Bn(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_s(n):Ds(n)),r.property==="style"){let a=typeof n=="object"?n:cp(e,String(n));return e.stylePropertyNameCase==="css"&&(a=dp(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Lh[r.property]||r.property:r.attribute,n]}}function cp(e,t){const n={};try{Wh(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,s=new ye("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Ms+"#cannot-parse-style-attribute",s}}return n;function r(a,i){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Xh,pp)),n[s]=i}}function Hs(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const u=Ra(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}r=s}else r=Ra(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return zr.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zt(e)}function Zt(e,t){const n=new ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ms+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dp(e){const t={};let n;for(n in e)zr.call(e,n)&&(t[hp(n)]=e[n]);return t}function hp(e){let t=e.replace(Qh,fp);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pp(e,t){return t.toUpperCase()}function fp(e){return"-"+e.toLowerCase()}const nr={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mp={tokenize:gp};function gp(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ee(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return j(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),s)}}const bp={tokenize:Ep},qa={tokenize:xp};function Ep(e){const t=this,n=[];let r=0,a,i,s;return u;function u(O){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,l,c)(O)}return c(O)}function l(O){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&L();const P=t.events.length;let F=P,I;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){I=t.events[F][1].end;break}_(r);let H=P;for(;H<t.events.length;)t.events[H][1].end=Object.assign({},I),H++;return ve(t.events,F+1,0,t.events.slice(P)),t.events.length=H,c(O)}return u(O)}function c(O){if(r===n.length){if(!a)return b(O);if(a.currentConstruct&&a.currentConstruct.concrete)return E(O);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qa,h,d)(O)}function h(O){return a&&L(),_(r),b(O)}function d(O){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,E(O)}function b(O){return t.containerState={},e.attempt(qa,p,E)(O)}function p(O){return r++,n.push([t.currentConstruct,t.containerState]),b(O)}function E(O){if(O===null){a&&L(),_(0),e.consume(O);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),y(O)}function y(O){if(O===null){A(e.exit("chunkFlow"),!0),_(0),e.consume(O);return}return j(O)?(e.consume(O),A(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(O),y)}function A(O,P){const F=t.sliceStream(O);if(P&&F.push(null),O.previous=i,i&&(i.next=O),i=O,a.defineSkip(O.start),a.write(F),t.parser.lazy[O.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<s&&(!a.events[I][1].end||a.events[I][1].end.offset>s))return;const H=t.events.length;let U=H,Y,k;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(Y){k=t.events[U][1].end;break}Y=!0}for(_(r),I=H;I<t.events.length;)t.events[I][1].end=Object.assign({},k),I++;ve(t.events,U+1,0,t.events.slice(H)),t.events.length=I}}function _(O){let P=n.length;for(;P-- >O;){const F=n[P];t.containerState=F[1],F[0].exit.call(t,e)}n.length=O}function L(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function xp(e,t,n){return ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const wp={tokenize:Tp};function Tp(e){const t=this,n=e.attempt(nn,r,e.attempt(this.parser.constructs.flowInitial,a,ee(e,e.attempt(this.parser.constructs.flow,a,e.attempt(t0,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const yp={resolveAll:zs()},Cp=Us("string"),_p=Us("text");function Us(e){return{tokenize:t,resolveAll:zs(e==="text"?Ap:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,u);return s;function s(h){return c(h)?i(h):u(h)}function u(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return c(h)?(n.exit("data"),i(h)):(n.consume(h),l)}function c(h){if(h===null)return!0;const d=a[h];let b=-1;if(d)for(;++b<d.length;){const p=d[b];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function zs(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function Ap(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,u=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(c===-2)l=!0,u++;else if(c!==-1){i++;break}}if(u){const c={type:n===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+i,_bufferIndex:i?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function kp(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let s=[],u=[];const l={consume:L,enter:O,exit:P,attempt:H(F),check:H(I),interrupt:H(I,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:b,now:E,defineSkip:y,write:d};let h=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(z){return s=Re(s,z),A(),s[s.length-1]!==null?[]:(U(t,0),c.events=Mn(i,c.events,c),c.events)}function b(z,M){return Ip(p(z),M)}function p(z){return Np(s,z)}function E(){const{line:z,column:M,offset:te,_index:ne,_bufferIndex:J}=r;return{line:z,column:M,offset:te,_index:ne,_bufferIndex:J}}function y(z){a[z.line]=z.column,k()}function A(){let z;for(;r._index<s.length;){const M=s[r._index];if(typeof M=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<M.length;)_(M.charCodeAt(r._bufferIndex));else _(M)}}function _(z){h=h(z)}function L(z){j(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,k()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=z}function O(z,M){const te=M||{};return te.type=z,te.start=E(),c.events.push(["enter",te,c]),u.push(te),te}function P(z){const M=u.pop();return M.end=E(),c.events.push(["exit",M,c]),M}function F(z,M){U(z,M.from)}function I(z,M){M.restore()}function H(z,M){return te;function te(ne,J,ce){let fe,_e,Ae,w;return Array.isArray(ne)?We(ne):"tokenize"in ne?We([ne]):de(ne);function de(we){return Pt;function Pt(Je){const gt=Je!==null&&we[Je],bt=Je!==null&&we.null,dn=[...Array.isArray(gt)?gt:gt?[gt]:[],...Array.isArray(bt)?bt:bt?[bt]:[]];return We(dn)(Je)}}function We(we){return fe=we,_e=0,we.length===0?ce:T(we[_e])}function T(we){return Pt;function Pt(Je){return w=Y(),Ae=we,we.partial||(c.currentConstruct=we),we.name&&c.parser.constructs.disable.null.includes(we.name)?ot():we.tokenize.call(M?Object.assign(Object.create(c),M):c,l,Me,ot)(Je)}}function Me(we){return z(Ae,w),J}function ot(we){return w.restore(),++_e<fe.length?T(fe[_e]):ce}}}function U(z,M){z.resolveAll&&!i.includes(z)&&i.push(z),z.resolve&&ve(c.events,M,c.events.length-M,z.resolve(c.events.slice(M),c)),z.resolveTo&&(c.events=z.resolveTo(c.events,c))}function Y(){const z=E(),M=c.previous,te=c.currentConstruct,ne=c.events.length,J=Array.from(u);return{restore:ce,from:ne};function ce(){r=z,c.previous=M,c.currentConstruct=te,c.events.length=ne,u=J,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Np(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function Ip(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
16
|
+
`,Fa="/",Ha="*",ct="",Hh="comment",Uh="declaration",zh=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(E){var y=E.match(Oh);y&&(n+=y.length);var A=E.lastIndexOf(Fh);r=~A?E.length-A:r+E.length}function i(){var E={line:n,column:r};return function(y){return y.position=new s(E),c(),y}}function s(E){this.start=E,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(E){var y=new Error(t.source+":"+n+":"+r+": "+E);if(y.reason=E,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(E){var y=E.exec(e);if(y){var A=y[0];return a(A),e=e.slice(A.length),y}}function c(){l(Rh)}function h(E){var y;for(E=E||[];y=d();)y!==!1&&E.push(y);return E}function d(){var E=i();if(!(Fa!=e.charAt(0)||Ha!=e.charAt(1))){for(var y=2;ct!=e.charAt(y)&&(Ha!=e.charAt(y)||Fa!=e.charAt(y+1));)++y;if(y+=2,ct===e.charAt(y-1))return u("End of comment missing");var A=e.slice(2,y-2);return r+=2,a(A),e=e.slice(y),r+=2,E({type:Hh,comment:A})}}function b(){var E=i(),y=l(Dh);if(y){if(d(),!l(vh))return u("property missing ':'");var A=l(Ph),_=E({type:Uh,property:Ua(y[0].replace(Ba,ct)),value:A?Ua(A[0].replace(Ba,ct)):ct});return l(Mh),_}}function p(){var E=[];h(E);for(var y;y=b();)y!==!1&&(E.push(y),h(E));return E}return c(),p()};function Ua(e){return e?e.replace(Bh,ct):ct}var jh=Q.commonjsGlobal&&Q.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vs,"__esModule",{value:!0});var za=vs.default=qh,Yh=jh(zh);function qh(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Yh.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var s=i.property,u=i.value;a?t(s,u,i):u&&(n=n||{},n[s]=u)}}),n}const Wh=za.default||za,Fn=Ps("end"),qe=Ps("start");function Ps(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Vh(e){const t=qe(e),n=Fn(e);if(t&&n)return{start:t,end:n}}function Vt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ja(e.position):"start"in e||"end"in e?ja(e):"line"in e||"column"in e?Tr(e):""}function Tr(e){return Ya(e&&e.line)+":"+Ya(e&&e.column)}function ja(e){return Tr(e&&e.start)+"-"+Tr(e&&e.end)}function Ya(e){return e&&typeof e=="number"?e:1}class ye extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=u?u.line:void 0,this.name=Vt(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ye.prototype.file="";ye.prototype.name="";ye.prototype.reason="";ye.prototype.message="";ye.prototype.stack="";ye.prototype.column=void 0;ye.prototype.line=void 0;ye.prototype.ancestors=void 0;ye.prototype.cause=void 0;ye.prototype.fatal=void 0;ye.prototype.place=void 0;ye.prototype.ruleId=void 0;ye.prototype.source=void 0;const zr={}.hasOwnProperty,Gh=new Map,Qh=/[A-Z]/g,Xh=/-([a-z])/g,Kh=new Set(["table","tbody","thead","tfoot","tr"]),$h=new Set(["td","th"]),Ms="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Jh(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=sp(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ip(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?st:an,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Bs(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Bs(e,t,n){if(t.type==="element")return Zh(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ep(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return np(e,t,n);if(t.type==="mdxjsEsm")return tp(e,t);if(t.type==="root")return rp(e,t,n);if(t.type==="text")return ap(e,t)}function Zh(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=st,e.schema=a),e.ancestors.push(t);const i=Hs(e,t.tagName,!1),s=op(e,t);let u=Yr(e,t);return Kh.has(t.tagName)&&(u=u.filter(function(l){return typeof l=="string"?!Th(l):!0})),Fs(e,s,i,t),jr(s,u),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function ep(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Zt(e,t.position)}function tp(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zt(e,t.position)}function np(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=st,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Hs(e,t.name,!0),s=up(e,t),u=Yr(e,t);return Fs(e,s,i,t),jr(s,u),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function rp(e,t,n){const r={};return jr(r,Yr(e,t)),e.create(t,e.Fragment,r,n)}function ap(e,t){return t.value}function Fs(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ip(e,t,n){return r;function r(a,i,s,u){const c=Array.isArray(s.children)?n:t;return u?c(i,s,u):c(i,s)}}function sp(e,t){return n;function n(r,a,i,s){const u=Array.isArray(i.children),l=qe(r);return t(a,i,s,u,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function op(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&zr.call(t.properties,a)){const i=lp(e,a,t.properties[a]);if(i){const[s,u]=i;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&$h.has(t.tagName)?r=u:n[s]=u}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function up(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Zt(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else Zt(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Yr(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Gh;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;s=l+"-"+c,a.set(l,c+1)}}const u=Bs(e,i,s);u!==void 0&&n.push(u)}return n}function lp(e,t,n){const r=Bn(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_s(n):Ds(n)),r.property==="style"){let a=typeof n=="object"?n:cp(e,String(n));return e.stylePropertyNameCase==="css"&&(a=dp(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Lh[r.property]||r.property:r.attribute,n]}}function cp(e,t){const n={};try{Wh(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,s=new ye("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Ms+"#cannot-parse-style-attribute",s}}return n;function r(a,i){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Xh,pp)),n[s]=i}}function Hs(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const u=Ra(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}r=s}else r=Ra(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return zr.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zt(e)}function Zt(e,t){const n=new ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ms+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dp(e){const t={};let n;for(n in e)zr.call(e,n)&&(t[hp(n)]=e[n]);return t}function hp(e){let t=e.replace(Qh,fp);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pp(e,t){return t.toUpperCase()}function fp(e){return"-"+e.toLowerCase()}const nr={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},mp={tokenize:gp};function gp(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ee(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return j(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),s)}}const bp={tokenize:Ep},qa={tokenize:xp};function Ep(e){const t=this,n=[];let r=0,a,i,s;return u;function u(O){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,l,c)(O)}return c(O)}function l(O){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&L();const P=t.events.length;let F=P,I;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){I=t.events[F][1].end;break}_(r);let H=P;for(;H<t.events.length;)t.events[H][1].end=Object.assign({},I),H++;return ve(t.events,F+1,0,t.events.slice(P)),t.events.length=H,c(O)}return u(O)}function c(O){if(r===n.length){if(!a)return b(O);if(a.currentConstruct&&a.currentConstruct.concrete)return E(O);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qa,h,d)(O)}function h(O){return a&&L(),_(r),b(O)}function d(O){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,E(O)}function b(O){return t.containerState={},e.attempt(qa,p,E)(O)}function p(O){return r++,n.push([t.currentConstruct,t.containerState]),b(O)}function E(O){if(O===null){a&&L(),_(0),e.consume(O);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),y(O)}function y(O){if(O===null){A(e.exit("chunkFlow"),!0),_(0),e.consume(O);return}return j(O)?(e.consume(O),A(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(O),y)}function A(O,P){const F=t.sliceStream(O);if(P&&F.push(null),O.previous=i,i&&(i.next=O),i=O,a.defineSkip(O.start),a.write(F),t.parser.lazy[O.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<s&&(!a.events[I][1].end||a.events[I][1].end.offset>s))return;const H=t.events.length;let U=H,Y,k;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(Y){k=t.events[U][1].end;break}Y=!0}for(_(r),I=H;I<t.events.length;)t.events[I][1].end=Object.assign({},k),I++;ve(t.events,U+1,0,t.events.slice(H)),t.events.length=I}}function _(O){let P=n.length;for(;P-- >O;){const F=n[P];t.containerState=F[1],F[0].exit.call(t,e)}n.length=O}function L(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function xp(e,t,n){return ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const wp={tokenize:Tp};function Tp(e){const t=this,n=e.attempt(nn,r,e.attempt(this.parser.constructs.flowInitial,a,ee(e,e.attempt(this.parser.constructs.flow,a,e.attempt(t0,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const yp={resolveAll:zs()},Cp=Us("string"),_p=Us("text");function Us(e){return{tokenize:t,resolveAll:zs(e==="text"?Ap:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,u);return s;function s(h){return c(h)?i(h):u(h)}function u(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),l}function l(h){return c(h)?(n.exit("data"),i(h)):(n.consume(h),l)}function c(h){if(h===null)return!0;const d=a[h];let b=-1;if(d)for(;++b<d.length;){const p=d[b];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function zs(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function Ap(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,u=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(c===-2)l=!0,u++;else if(c!==-1){i++;break}}if(u){const c={type:n===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+i,_bufferIndex:i?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function kp(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let s=[],u=[];const l={consume:L,enter:O,exit:P,attempt:H(F),check:H(I),interrupt:H(I,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:b,now:E,defineSkip:y,write:d};let h=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(z){return s=Re(s,z),A(),s[s.length-1]!==null?[]:(U(t,0),c.events=Mn(i,c.events,c),c.events)}function b(z,M){return Ip(p(z),M)}function p(z){return Np(s,z)}function E(){const{line:z,column:M,offset:te,_index:ne,_bufferIndex:J}=r;return{line:z,column:M,offset:te,_index:ne,_bufferIndex:J}}function y(z){a[z.line]=z.column,k()}function A(){let z;for(;r._index<s.length;){const M=s[r._index];if(typeof M=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<M.length;)_(M.charCodeAt(r._bufferIndex));else _(M)}}function _(z){h=h(z)}function L(z){j(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,k()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=z}function O(z,M){const te=M||{};return te.type=z,te.start=E(),c.events.push(["enter",te,c]),u.push(te),te}function P(z){const M=u.pop();return M.end=E(),c.events.push(["exit",M,c]),M}function F(z,M){U(z,M.from)}function I(z,M){M.restore()}function H(z,M){return te;function te(ne,J,ce){let fe,_e,Ae,w;return Array.isArray(ne)?We(ne):"tokenize"in ne?We([ne]):de(ne);function de(we){return Pt;function Pt(Je){const gt=Je!==null&&we[Je],bt=Je!==null&&we.null,dn=[...Array.isArray(gt)?gt:gt?[gt]:[],...Array.isArray(bt)?bt:bt?[bt]:[]];return We(dn)(Je)}}function We(we){return fe=we,_e=0,we.length===0?ce:T(we[_e])}function T(we){return Pt;function Pt(Je){return w=Y(),Ae=we,we.partial||(c.currentConstruct=we),we.name&&c.parser.constructs.disable.null.includes(we.name)?ot():we.tokenize.call(M?Object.assign(Object.create(c),M):c,l,Me,ot)(Je)}}function Me(we){return z(Ae,w),J}function ot(we){return w.restore(),++_e<fe.length?T(fe[_e]):ce}}}function U(z,M){z.resolveAll&&!i.includes(z)&&i.push(z),z.resolve&&ve(c.events,M,c.events.length-M,z.resolve(c.events.slice(M),c)),z.resolveTo&&(c.events=z.resolveTo(c.events,c))}function Y(){const z=E(),M=c.previous,te=c.currentConstruct,ne=c.events.length,J=Array.from(u);return{restore:ce,from:ne};function ce(){r=z,c.previous=M,c.currentConstruct=te,c.events.length=ne,u=J,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Np(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function Ip(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
17
17
|
`;break}case-3:{s=`\r
|
|
18
18
|
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}const Sp={42:Ie,43:Ie,45:Ie,48:Ie,49:Ie,50:Ie,51:Ie,52:Ie,53:Ie,54:Ie,55:Ie,56:Ie,57:Ie,62:gs},Lp={91:s0},Op={[-2]:Zn,[-1]:Zn,32:Zn},Rp={35:h0,42:bn,45:[Sa,bn],60:g0,61:Sa,95:bn,96:Na,126:Na},Dp={38:Es,92:bs},vp={[-5]:er,[-4]:er,[-3]:er,33:v0,38:Es,42:xr,60:[Md,C0],91:M0,92:[c0,bs],93:Hr,95:xr,96:Xd},Pp={null:[xr,yp]},Mp={null:[42,95]},Bp={null:[]},Fp=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Mp,contentInitial:Lp,disable:Bp,document:Sp,flow:Rp,flowInitial:Op,insideSpan:Pp,string:Dp,text:vp},Symbol.toStringTag,{value:"Module"}));function Hp(e){const n=os([Fp,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(mp),document:a(bp),flow:a(wp),string:a(Cp),text:a(_p)};return r;function a(i){return s;function s(u){return kp(r,i,u)}}}function Up(e){for(;!xs(e););return e}const Wa=/[\0\t\n\r]/g;function zp(){let e=1,t="",n=!0,r;return a;function a(i,s,u){const l=[];let c,h,d,b,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(Wa.lastIndex=d,c=Wa.exec(i),b=c&&c.index!==void 0?c.index:i.length,p=i.charCodeAt(b),!c){t=i.slice(d);break}if(p===10&&d===b&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<b&&(l.push(i.slice(d,b)),e+=b-d),p){case 0:{l.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,l.push(-2);e++<h;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=b+1}return u&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const js={}.hasOwnProperty;function jp(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Yp(n)(Up(Hp(n).document().write(zp()(e,t,!0))))}function Yp(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(oa),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:i(aa),blockQuote:i(bt),characterEscape:Y,characterReference:Y,codeFenced:i(dn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(dn,s),codeText:i(Xo,s),codeTextData:Y,data:Y,codeFlowValue:Y,definition:i(Ko),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i($o),hardBreakEscape:i(ia),hardBreakTrailing:i(ia),htmlFlow:i(sa,s),htmlFlowData:Y,htmlText:i(sa,s),htmlTextData:Y,image:i(Jo),label:s,link:i(oa),listItem:i(Zo),listItemValue:b,listOrdered:i(ua,d),listUnordered:i(ua),paragraph:i(eu),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(aa),strong:i(tu),thematicBreak:i(ru)},exit:{atxHeading:l(),atxHeadingSequence:F,autolink:l(),autolinkEmail:gt,autolinkProtocol:Je,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ot,characterReferenceMarkerNumeric:ot,characterReferenceValue:we,characterReference:Pt,codeFenced:l(A),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:E,codeFlowValue:k,codeIndented:l(_),codeText:l(J),codeTextData:k,data:k,definition:l(),definitionDestinationString:P,definitionLabelString:L,definitionTitleString:O,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(te),htmlFlowData:k,htmlText:l(ne),htmlTextData:k,image:l(fe),label:Ae,labelText:_e,lineEnding:z,link:l(ce),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Me,resourceDestinationString:w,resourceTitleString:de,resource:We,setextHeading:l(U),setextHeadingLineSequence:H,setextHeadingText:I,strong:l(),thematicBreak:l()}};Ys(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(S){let B={type:"root",children:[]};const W={stack:[B],tokenStack:[],config:t,enter:u,exit:c,buffer:s,resume:h,data:n},Z=[];let re=-1;for(;++re<S.length;)if(S[re][1].type==="listOrdered"||S[re][1].type==="listUnordered")if(S[re][0]==="enter")Z.push(re);else{const Be=Z.pop();re=a(S,Be,re)}for(re=-1;++re<S.length;){const Be=t[S[re][0]];js.call(Be,S[re][1].type)&&Be[S[re][1].type].call(Object.assign({sliceSerialize:S[re][2].sliceSerialize},W),S[re][1])}if(W.tokenStack.length>0){const Be=W.tokenStack[W.tokenStack.length-1];(Be[1]||Va).call(W,void 0,Be[0])}for(B.position={start:tt(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:tt(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re<t.transforms.length;)B=t.transforms[re](B)||B;return B}function a(S,B,W){let Z=B-1,re=-1,Be=!1,ut,Ve,Mt,Bt;for(;++Z<=W;){const Se=S[Z];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?re++:re--,Bt=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(ut&&!Bt&&!re&&!Mt&&(Mt=Z),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!re&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||re===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(ut){let Et=Z;for(Ve=void 0;Et--;){const Ge=S[Et];if(Ge[1].type==="lineEnding"||Ge[1].type==="lineEndingBlank"){if(Ge[0]==="exit")continue;Ve&&(S[Ve][1].type="lineEndingBlank",Be=!0),Ge[1].type="lineEnding",Ve=Et}else if(!(Ge[1].type==="linePrefix"||Ge[1].type==="blockQuotePrefix"||Ge[1].type==="blockQuotePrefixWhitespace"||Ge[1].type==="blockQuoteMarker"||Ge[1].type==="listItemIndent"))break}Mt&&(!Ve||Mt<Ve)&&(ut._spread=!0),ut.end=Object.assign({},Ve?S[Ve][1].start:Se[1].end),S.splice(Ve||Z,0,["exit",ut,Se[2]]),Z++,W++}if(Se[1].type==="listItemPrefix"){const Et={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};ut=Et,S.splice(Z,0,["enter",Et,Se[2]]),Z++,W++,Mt=void 0,Bt=!0}}}return S[B][1]._spread=Be,W}function i(S,B){return W;function W(Z){u.call(this,S(Z),Z),B&&B.call(this,Z)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(S,B,W){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([B,W]),S.position={start:tt(B.start),end:void 0}}function l(S){return B;function B(W){S&&S.call(this,W),c.call(this,W)}}function c(S,B){const W=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==S.type&&(B?B.call(this,S,Z[0]):(Z[1]||Va).call(this,S,Z[0]));else throw new Error("Cannot close `"+S.type+"` ("+Vt({start:S.start,end:S.end})+"): it’s not open");W.position.end=tt(S.end)}function h(){return Pr(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function b(S){if(this.data.expectingFirstListItemValue){const B=this.stack[this.stack.length-2];B.start=Number.parseInt(this.sliceSerialize(S),10),this.data.expectingFirstListItemValue=void 0}}function p(){const S=this.resume(),B=this.stack[this.stack.length-1];B.lang=S}function E(){const S=this.resume(),B=this.stack[this.stack.length-1];B.meta=S}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const S=this.resume(),B=this.stack[this.stack.length-1];B.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const S=this.resume(),B=this.stack[this.stack.length-1];B.value=S.replace(/(\r?\n|\r)$/g,"")}function L(S){const B=this.resume(),W=this.stack[this.stack.length-1];W.label=B,W.identifier=Fe(this.sliceSerialize(S)).toLowerCase()}function O(){const S=this.resume(),B=this.stack[this.stack.length-1];B.title=S}function P(){const S=this.resume(),B=this.stack[this.stack.length-1];B.url=S}function F(S){const B=this.stack[this.stack.length-1];if(!B.depth){const W=this.sliceSerialize(S).length;B.depth=W}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function H(S){const B=this.stack[this.stack.length-1];B.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(S){const W=this.stack[this.stack.length-1].children;let Z=W[W.length-1];(!Z||Z.type!=="text")&&(Z=nu(),Z.position={start:tt(S.start),end:void 0},W.push(Z)),this.stack.push(Z)}function k(S){const B=this.stack.pop();B.value+=this.sliceSerialize(S),B.position.end=tt(S.end)}function z(S){const B=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=B.children[B.children.length-1];W.position.end=tt(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(B.type)&&(Y.call(this,S),k.call(this,S))}function M(){this.data.atHardBreak=!0}function te(){const S=this.resume(),B=this.stack[this.stack.length-1];B.value=S}function ne(){const S=this.resume(),B=this.stack[this.stack.length-1];B.value=S}function J(){const S=this.resume(),B=this.stack[this.stack.length-1];B.value=S}function ce(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=B,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function fe(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const B=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=B,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function _e(S){const B=this.sliceSerialize(S),W=this.stack[this.stack.length-2];W.label=sd(B),W.identifier=Fe(B).toLowerCase()}function Ae(){const S=this.stack[this.stack.length-1],B=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const Z=S.children;W.children=Z}else W.alt=B}function w(){const S=this.resume(),B=this.stack[this.stack.length-1];B.url=S}function de(){const S=this.resume(),B=this.stack[this.stack.length-1];B.title=S}function We(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function Me(S){const B=this.resume(),W=this.stack[this.stack.length-1];W.label=B,W.identifier=Fe(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function ot(S){this.data.characterReferenceType=S.type}function we(S){const B=this.sliceSerialize(S),W=this.data.characterReferenceType;let Z;W?(Z=ss(B,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=Br(B);const re=this.stack[this.stack.length-1];re.value+=Z}function Pt(S){const B=this.stack.pop();B.position.end=tt(S.end)}function Je(S){k.call(this,S);const B=this.stack[this.stack.length-1];B.url=this.sliceSerialize(S)}function gt(S){k.call(this,S);const B=this.stack[this.stack.length-1];B.url="mailto:"+this.sliceSerialize(S)}function bt(){return{type:"blockquote",children:[]}}function dn(){return{type:"code",lang:null,meta:null,value:""}}function Xo(){return{type:"inlineCode",value:""}}function Ko(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $o(){return{type:"emphasis",children:[]}}function aa(){return{type:"heading",depth:0,children:[]}}function ia(){return{type:"break"}}function sa(){return{type:"html",value:""}}function Jo(){return{type:"image",title:null,url:"",alt:null}}function oa(){return{type:"link",title:null,url:"",children:[]}}function ua(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Zo(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function eu(){return{type:"paragraph",children:[]}}function tu(){return{type:"strong",children:[]}}function nu(){return{type:"text",value:""}}function ru(){return{type:"thematicBreak"}}}function tt(e){return{line:e.line,column:e.column,offset:e.offset}}function Ys(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ys(e,r):qp(e,r)}}function qp(e,t){let n;for(n in t)if(js.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Va(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vt({start:t.start,end:t.end})+") is still open")}function Wp(e){const t=this;t.parser=n;function n(r){return jp(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Vp(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Gp(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
19
19
|
`}]}function Qp(e,t){const n=t.value?t.value+`
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
26
26
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
27
27
|
`}),n}function Za(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ei(e,t){const n=Nf(e,t),r=n.one(e,void 0),a=Af(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
28
|
-
`},a),i}function Rf(e,t){return e&&"run"in e?async function(n,r){const a=ei(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ei(n,{file:r,...e||t})}}function ti(e){if(e)throw e}var En=Object.prototype.hasOwnProperty,Xs=Object.prototype.toString,ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ai=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Xs.call(t)==="[object Array]"},ii=function(t){if(!t||Xs.call(t)!=="[object Object]")return!1;var n=En.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&En.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||En.call(t,a)},si=function(t,n){ni&&n.name==="__proto__"?ni(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},oi=function(t,n){if(n==="__proto__")if(En.call(t,n)){if(ri)return ri(t,n).value}else return;return t[n]},Df=function e(){var t,n,r,a,i,s,u=arguments[0],l=1,c=arguments.length,h=!1;for(typeof u=="boolean"&&(h=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=oi(u,n),a=oi(t,n),u!==a&&(h&&a&&(ii(a)||(i=ai(a)))?(i?(i=!1,s=r&&ai(r)?r:[]):s=r&&ii(r)?r:{},si(u,{name:n,newValue:e(h,s,a)})):typeof a<"u"&&si(u,{name:n,newValue:a}));return u};const rr=X.getDefaultExportFromCjs(Df);function Cr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vf(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...a);function u(l,...c){const h=e[++i];let d=-1;if(l){s(l);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,h?Pf(h,u)(...c):s(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Pf(e,t){let n;return r;function r(...s){const u=e.length>s.length;let l;u&&s.push(a);try{l=e.apply(this,s)}catch(c){const h=c;if(u&&n)throw h;return a(h)}u||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...u){n||(n=!0,t(s,...u))}function i(s){a(null,s)}}const ze={basename:Mf,dirname:Bf,extname:Ff,join:Hf,sep:"/"};function Mf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(r=a):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Bf(e){if(sn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ff(e){sn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Hf(...e){let t=-1,n;for(;++t<e.length;)sn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Uf(n)}function Uf(e){sn(e);const t=e.codePointAt(0)===47;let n=zf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zf(e,t){let n="",r=0,a=-1,i=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else u===46&&i>-1?i++:i=-1}return n}function sn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jf={cwd:Yf};function Yf(){return"/"}function _r(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qf(e){if(typeof e=="string")e=new URL(e);else if(!_r(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Wf(e)}function Wf(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const ar=["history","path","basename","stem","extname","dirname"];class Ks{constructor(t){let n;t?_r(t)?n={path:t}:typeof t=="string"||Vf(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":jf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ar.length;){const i=ar[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)ar.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ze.basename(this.path):void 0}set basename(t){sr(t,"basename"),ir(t,"basename"),this.path=ze.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ze.dirname(this.path):void 0}set dirname(t){ui(this.basename,"dirname"),this.path=ze.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ze.extname(this.path):void 0}set extname(t){if(ir(t,"extname"),ui(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ze.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_r(t)&&(t=qf(t)),sr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ze.basename(this.path,this.extname):void 0}set stem(t){sr(t,"stem"),ir(t,"stem"),this.path=ze.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new ye(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ir(e,t){if(e&&e.includes(ze.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ze.sep+"`")}function sr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ui(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Vf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gf=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Qf={}.hasOwnProperty;class Qr extends Gf{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vf()}copy(){const t=new Qr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(rr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(lr("data",this.frozen),this.namespace[t]=n,this):Qf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(lr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=mn(t),r=this.parser||this.Parser;return or("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),or("process",this.parser||this.Parser),ur("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const u=mn(t),l=r.parse(u);r.run(l,u,function(h,d,b){if(h||!d||!b)return c(h);const p=d,E=r.stringify(p,b);$f(E)?b.value=E:b.result=E,c(h,b)});function c(h,d){h||!d?s(h):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),or("processSync",this.parser||this.Parser),ur("processSync",this.compiler||this.Compiler),this.process(t,a),ci("processSync","process",n),r;function a(i,s){n=!0,ti(i),r=s}}run(t,n,r){li(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,u){const l=mn(n);a.run(t,l,c);function c(h,d,b){const p=d||t;h?u(h):s?s(p):r(void 0,p,b)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),ci("runSync","run",r),a;function i(s,u){ti(s),a=u,r=!0}}stringify(t,n){this.freeze();const r=mn(n),a=this.compiler||this.Compiler;return ur("stringify",a),li(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(lr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;l(h,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(c.plugins),c.settings&&(a.settings=rr(!0,a.settings,c.settings))}function u(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,h){let d=-1,b=-1;for(;++d<r.length;)if(r[d][0]===c){b=d;break}if(b===-1)r.push([c,...h]);else if(h.length>0){let[p,...E]=h;const y=r[b][1];Cr(y)&&Cr(p)&&(p=rr(!0,y,p)),r[b]=[c,p,...E]}}}}const Xf=new Qr().freeze();function or(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ur(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function li(e){if(!Cr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ci(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mn(e){return Kf(e)?e:new Ks(e)}function Kf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $f(e){return typeof e=="string"||Jf(e)}function Jf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Zf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",di=[],hi={allowDangerousHtml:!0},em=/^(https?|ircs?|mailto|xmpp)$/i,tm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nm(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,s=e.disallowedElements,u=e.rehypePlugins||di,l=e.remarkPlugins||di,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hi}:hi,h=e.skipHtml,d=e.unwrapDisallowed,b=e.urlTransform||rm,p=Xf().use(Wp).use(l).use(Rf,c).use(u),E=new Ks;typeof r=="string"&&(E.value=r);for(const L of tm)Object.hasOwn(e,L.from)&&(""+L.from+(L.to?"use `"+L.to+"` instead":"remove it")+Zf+L.id,void 0);const y=p.parse(E);let A=p.runSync(y,E);return a&&(A={type:"element",tagName:"div",properties:{className:a},children:A.type==="root"?A.children:[A]}),Pn(A,_),Jh(A,{Fragment:f.Fragment,components:i,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function _(L,O,P){if(L.type==="raw"&&P&&typeof O=="number")return h?P.children.splice(O,1):P.children[O]={type:"text",value:L.value},O;if(L.type==="element"){let F;for(F in nr)if(Object.hasOwn(nr,F)&&Object.hasOwn(L.properties,F)){const I=L.properties[F],H=nr[F];(H===null||H.includes(L.tagName))&&(L.properties[F]=b(String(I||""),F,L))}}if(L.type==="element"){let F=t?!t.includes(L.tagName):s?s.includes(L.tagName):!1;if(!F&&n&&typeof O=="number"&&(F=!n(L,O,P)),F&&P&&typeof O=="number")return d&&L.children?P.children.splice(O,1,...L.children):P.children.splice(O,1),O}}}function rm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||em.test(e.slice(0,t))?e:""}const $s=K.memo(nm,(e,t)=>e.children===t.children&&e.className===t.className),pi=/[#.]/g;function am(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){pi.lastIndex=a;const u=pi.exec(n),l=n.slice(a,u?u.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),u&&(i=u[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}const Ar={}.hasOwnProperty;function Js(e,t,n){const r=n&&um(n);function a(i,s,...u){let l=-1,c;if(i==null){c={type:"root",children:[]};const h=s;u.unshift(h)}else if(c=am(i,t),c.tagName=c.tagName.toLowerCase(),r&&Ar.call(r,c.tagName)&&(c.tagName=r[c.tagName]),im(s))u.unshift(s);else{let h;for(h in s)Ar.call(s,h)&&sm(e,c.properties,h,s[h])}for(;++l<u.length;)kr(c.children,u[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function im(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function sm(e,t,n,r){const a=Bn(e,n);let i=-1,s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=Ma(r):a.commaSeparated?s=Oa(r):a.commaOrSpaceSeparated?s=Ma(Oa(r).join(" ")):s=fi(a,a.property,r):Array.isArray(r)?s=r.concat():s=a.property==="style"?om(r):String(r);if(Array.isArray(s)){const u=[];for(;++i<s.length;){const l=fi(a,a.property,s[i]);u[i]=l}s=u}if(a.property==="className"&&Array.isArray(t.className)){const u=s;s=t.className.concat(u)}t[a.property]=s}}function kr(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)kr(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?kr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function fi(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Jt(n)===Jt(t)))return!0}return n}function om(e){const t=[];let n;for(n in e)Ar.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function um(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const lm=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],cm=Js(an,"div"),dm=Js(st,"g",lm);function hm(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let u=n[s];if(u===void 0){const l=mi(t,n[s-1]);u=l===-1?t.length+1:l+1,n[s]=u}if(u>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const u=n[n.length-1],l=mi(t,u),c=l===-1?t.length+1:l+1;if(u===c)break;n.push(c)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function mi(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
29
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const dt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Zs={}.hasOwnProperty,pm=Object.prototype;function fm(e,t){const n=t||{};return Xr({file:n.file||void 0,location:!1,schema:n.space==="svg"?st:an,verbose:n.verbose||!1},e)}function Xr(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},xn(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:eo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=hm(i),u=s.toPoint(0),l=s.toPoint(i.length);n.position={start:u,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},xn(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},xn(e,r,n),n}default:return n=mm(e,t),n}}function eo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Xr(e,t[n]);r.push(a)}return r}function mm(e,t){const n=e.schema;e.schema=t.namespaceURI===dt.svg?st:an;let r=-1;const a={};for(;++r<t.attrs.length;){const u=t.attrs[r],l=(u.prefix?u.prefix+":":"")+u.name;Zs.call(pm,l)||(a[l]=u.value)}const s=(e.schema.space==="svg"?dm:cm)(t.tagName,a,eo(e,t.childNodes));if(xn(e,t,s),s.tagName==="template"){const u=t,l=u.sourceCodeLocation,c=l&&l.startTag&&Tt(l.startTag),h=l&&l.endTag&&Tt(l.endTag),d=Xr(e,u.content);c&&h&&e.file&&(d.position={start:c.end,end:h.start}),s.content=d}return e.schema=n,s}function xn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=gm(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function gm(e,t,n){const r=Tt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)Zs.call(n.attrs,s)&&(i[Bn(e.schema,s).property]=Tt(n.attrs[s]));n.startTag;const u=Tt(n.startTag),l=n.endTag?Tt(n.endTag):void 0,c={opening:u};l&&(c.closing=l),c.properties=i,t.data={position:c}}}return r}function Tt(e){const t=gi({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=gi({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function gi(e){return e.line&&e.column?e:void 0}const bm={},Em={}.hasOwnProperty,to=Gi("type",{handlers:{root:wm,element:Am,text:Cm,comment:_m,doctype:ym}});function xm(e,t){const r=(t||bm).space;return to(e,r==="svg"?st:an)}function wm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Kr(e.children,n,t),Rt(e,n),n}function Tm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Kr(e.children,n,t),Rt(e,n),n}function ym(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rt(e,t),t}function Cm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Rt(e,t),t}function _m(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Rt(e,t),t}function Am(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=st);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Em.call(e.properties,i)){const l=km(r,i,e.properties[i]);l&&a.push(l)}}const s=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:dt[s],childNodes:[],parentNode:null};return u.childNodes=Kr(e.children,u,r),Rt(e,u),e.tagName==="template"&&e.content&&(u.content=Tm(e.content,r)),u}function km(e,t,n){const r=Bn(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?_s(n):Ds(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=dt[r.space]}return a}function Kr(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=to(e[r],n);i.parentNode=t,a.push(i)}return a}function Rt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Nm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Im=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ue="�";var m;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(m||(m={}));const Ne={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function no(e){return e>=55296&&e<=57343}function Sm(e){return e>=56320&&e<=57343}function Lm(e,t){return(e-55296)*1024+9216+t}function ro(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ao(e){return e>=64976&&e<=65007||Im.has(e)}var N;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(N||(N={}));const Om=65536;class Rm{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Om,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,u=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Sm(n))return this.pos++,this._addGap(),Lm(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(N.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;const r=this.html.charCodeAt(n);return r===m.CARRIAGE_RETURN?m.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let t=this.html.charCodeAt(this.pos);return t===m.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED):t===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,no(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===m.LINE_FEED||t===m.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ro(t)?this._err(N.controlCharacterInInputStream):ao(t)&&this._err(N.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Q;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Q||(Q={}));function io(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const so=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Dm=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var cr;const vm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Pm=(cr=String.fromCodePoint)!==null&&cr!==void 0?cr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Mm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vm.get(e))!==null&&t!==void 0?t:e}var Ee;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ee||(Ee={}));const Bm=32;var at;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(at||(at={}));function Nr(e){return e>=Ee.ZERO&&e<=Ee.NINE}function Fm(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_F||e>=Ee.LOWER_A&&e<=Ee.LOWER_F}function Hm(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_Z||e>=Ee.LOWER_A&&e<=Ee.LOWER_Z||Nr(e)}function Um(e){return e===Ee.EQUALS||Hm(e)}var be;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(be||(be={}));var Xe;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Xe||(Xe={}));class oo{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=be.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Xe.Strict}startEntity(t){this.decodeMode=t,this.state=be.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case be.EntityStart:return t.charCodeAt(n)===Ee.NUM?(this.state=be.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=be.NamedEntity,this.stateNamedEntity(t,n));case be.NumericStart:return this.stateNumericStart(t,n);case be.NumericDecimal:return this.stateNumericDecimal(t,n);case be.NumericHex:return this.stateNumericHex(t,n);case be.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Bm)===Ee.LOWER_X?(this.state=be.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=be.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Nr(a)||Fm(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Nr(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ee.SEMI)this.consumed+=1;else if(this.decodeMode===Xe.Strict)return 0;return this.emitCodePoint(Mm(this.result),this.consumed),this.errors&&(t!==Ee.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&at.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=zm(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Xe.Attribute&&(i===0||Um(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&at.VALUE_LENGTH)>>14,i!==0){if(s===Ee.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Xe.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&at.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~at.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case be.NamedEntity:return this.result!==0&&(this.decodeMode!==Xe.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case be.NumericDecimal:return this.emitNumericEntity(0,2);case be.NumericHex:return this.emitNumericEntity(0,3);case be.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case be.EntityStart:return 0}}}function uo(e){let t="";const n=new oo(e,r=>t+=Pm(r));return function(a,i){let s=0,u=0;for(;(u=a.indexOf("&",u))>=0;){t+=a.slice(s,u),n.startEntity(i);const c=n.write(a,u+1);if(c<0){s=u+n.end();break}s=u+c,u=c===0?s+1:s}const l=t+a.slice(s);return t="",l}}function zm(e,t,n,r){const a=(t&at.BRANCH_LENGTH)>>7,i=t&at.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let s=n,u=s+a-1;for(;s<=u;){const l=s+u>>>1,c=e[l];if(c<r)s=l+1;else if(c>r)u=l-1;else return e[l+a]}return-1}uo(so);uo(Dm);var R;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(R||(R={}));var ht;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ht||(ht={}));var De;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(De||(De={}));var C;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(C||(C={}));var o;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(o||(o={}));const jm=new Map([[C.A,o.A],[C.ADDRESS,o.ADDRESS],[C.ANNOTATION_XML,o.ANNOTATION_XML],[C.APPLET,o.APPLET],[C.AREA,o.AREA],[C.ARTICLE,o.ARTICLE],[C.ASIDE,o.ASIDE],[C.B,o.B],[C.BASE,o.BASE],[C.BASEFONT,o.BASEFONT],[C.BGSOUND,o.BGSOUND],[C.BIG,o.BIG],[C.BLOCKQUOTE,o.BLOCKQUOTE],[C.BODY,o.BODY],[C.BR,o.BR],[C.BUTTON,o.BUTTON],[C.CAPTION,o.CAPTION],[C.CENTER,o.CENTER],[C.CODE,o.CODE],[C.COL,o.COL],[C.COLGROUP,o.COLGROUP],[C.DD,o.DD],[C.DESC,o.DESC],[C.DETAILS,o.DETAILS],[C.DIALOG,o.DIALOG],[C.DIR,o.DIR],[C.DIV,o.DIV],[C.DL,o.DL],[C.DT,o.DT],[C.EM,o.EM],[C.EMBED,o.EMBED],[C.FIELDSET,o.FIELDSET],[C.FIGCAPTION,o.FIGCAPTION],[C.FIGURE,o.FIGURE],[C.FONT,o.FONT],[C.FOOTER,o.FOOTER],[C.FOREIGN_OBJECT,o.FOREIGN_OBJECT],[C.FORM,o.FORM],[C.FRAME,o.FRAME],[C.FRAMESET,o.FRAMESET],[C.H1,o.H1],[C.H2,o.H2],[C.H3,o.H3],[C.H4,o.H4],[C.H5,o.H5],[C.H6,o.H6],[C.HEAD,o.HEAD],[C.HEADER,o.HEADER],[C.HGROUP,o.HGROUP],[C.HR,o.HR],[C.HTML,o.HTML],[C.I,o.I],[C.IMG,o.IMG],[C.IMAGE,o.IMAGE],[C.INPUT,o.INPUT],[C.IFRAME,o.IFRAME],[C.KEYGEN,o.KEYGEN],[C.LABEL,o.LABEL],[C.LI,o.LI],[C.LINK,o.LINK],[C.LISTING,o.LISTING],[C.MAIN,o.MAIN],[C.MALIGNMARK,o.MALIGNMARK],[C.MARQUEE,o.MARQUEE],[C.MATH,o.MATH],[C.MENU,o.MENU],[C.META,o.META],[C.MGLYPH,o.MGLYPH],[C.MI,o.MI],[C.MO,o.MO],[C.MN,o.MN],[C.MS,o.MS],[C.MTEXT,o.MTEXT],[C.NAV,o.NAV],[C.NOBR,o.NOBR],[C.NOFRAMES,o.NOFRAMES],[C.NOEMBED,o.NOEMBED],[C.NOSCRIPT,o.NOSCRIPT],[C.OBJECT,o.OBJECT],[C.OL,o.OL],[C.OPTGROUP,o.OPTGROUP],[C.OPTION,o.OPTION],[C.P,o.P],[C.PARAM,o.PARAM],[C.PLAINTEXT,o.PLAINTEXT],[C.PRE,o.PRE],[C.RB,o.RB],[C.RP,o.RP],[C.RT,o.RT],[C.RTC,o.RTC],[C.RUBY,o.RUBY],[C.S,o.S],[C.SCRIPT,o.SCRIPT],[C.SEARCH,o.SEARCH],[C.SECTION,o.SECTION],[C.SELECT,o.SELECT],[C.SOURCE,o.SOURCE],[C.SMALL,o.SMALL],[C.SPAN,o.SPAN],[C.STRIKE,o.STRIKE],[C.STRONG,o.STRONG],[C.STYLE,o.STYLE],[C.SUB,o.SUB],[C.SUMMARY,o.SUMMARY],[C.SUP,o.SUP],[C.TABLE,o.TABLE],[C.TBODY,o.TBODY],[C.TEMPLATE,o.TEMPLATE],[C.TEXTAREA,o.TEXTAREA],[C.TFOOT,o.TFOOT],[C.TD,o.TD],[C.TH,o.TH],[C.THEAD,o.THEAD],[C.TITLE,o.TITLE],[C.TR,o.TR],[C.TRACK,o.TRACK],[C.TT,o.TT],[C.U,o.U],[C.UL,o.UL],[C.SVG,o.SVG],[C.VAR,o.VAR],[C.WBR,o.WBR],[C.XMP,o.XMP]]);function Dt(e){var t;return(t=jm.get(e))!==null&&t!==void 0?t:o.UNKNOWN}const D=o,Ym={[R.HTML]:new Set([D.ADDRESS,D.APPLET,D.AREA,D.ARTICLE,D.ASIDE,D.BASE,D.BASEFONT,D.BGSOUND,D.BLOCKQUOTE,D.BODY,D.BR,D.BUTTON,D.CAPTION,D.CENTER,D.COL,D.COLGROUP,D.DD,D.DETAILS,D.DIR,D.DIV,D.DL,D.DT,D.EMBED,D.FIELDSET,D.FIGCAPTION,D.FIGURE,D.FOOTER,D.FORM,D.FRAME,D.FRAMESET,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HEADER,D.HGROUP,D.HR,D.HTML,D.IFRAME,D.IMG,D.INPUT,D.LI,D.LINK,D.LISTING,D.MAIN,D.MARQUEE,D.MENU,D.META,D.NAV,D.NOEMBED,D.NOFRAMES,D.NOSCRIPT,D.OBJECT,D.OL,D.P,D.PARAM,D.PLAINTEXT,D.PRE,D.SCRIPT,D.SECTION,D.SELECT,D.SOURCE,D.STYLE,D.SUMMARY,D.TABLE,D.TBODY,D.TD,D.TEMPLATE,D.TEXTAREA,D.TFOOT,D.TH,D.THEAD,D.TITLE,D.TR,D.TRACK,D.UL,D.WBR,D.XMP]),[R.MATHML]:new Set([D.MI,D.MO,D.MN,D.MS,D.MTEXT,D.ANNOTATION_XML]),[R.SVG]:new Set([D.TITLE,D.FOREIGN_OBJECT,D.DESC]),[R.XLINK]:new Set,[R.XML]:new Set,[R.XMLNS]:new Set},Ir=new Set([D.H1,D.H2,D.H3,D.H4,D.H5,D.H6]);C.STYLE,C.SCRIPT,C.XMP,C.IFRAME,C.NOEMBED,C.NOFRAMES,C.PLAINTEXT;var g;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(g||(g={}));const he={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function qm(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function qt(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function Wm(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z}function nt(e){return Wm(e)||qt(e)}function bi(e){return nt(e)||qm(e)}function gn(e){return e+32}function lo(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function Ei(e){return lo(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}function Vm(e){return e===m.NULL?N.nullCharacterReference:e>1114111?N.characterReferenceOutsideUnicodeRange:no(e)?N.surrogateCharacterReference:ao(e)?N.noncharacterCharacterReference:ro(e)||e===m.CARRIAGE_RETURN?N.controlCharacterReference:null}class Gm{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Rm(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new oo(so,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(N.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(N.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Vm(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Q.START_TAG,tagName:"",tagID:o.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Q.END_TAG,tagName:"",tagID:o.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Q.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Q.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(io(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(N.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Dt(t.tagName),t.type===Q.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(N.endTagWithAttributes),t.selfClosing&&this._err(N.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Q.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Q.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Q.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Q.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=lo(t)?Q.WHITESPACE_CHARACTER:t===m.NULL?Q.NULL_CHARACTER:Q.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Q.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Xe.Attribute:Xe.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case g.DATA:{this._stateData(t);break}case g.RCDATA:{this._stateRcdata(t);break}case g.RAWTEXT:{this._stateRawtext(t);break}case g.SCRIPT_DATA:{this._stateScriptData(t);break}case g.PLAINTEXT:{this._statePlaintext(t);break}case g.TAG_OPEN:{this._stateTagOpen(t);break}case g.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case g.TAG_NAME:{this._stateTagName(t);break}case g.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case g.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case g.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case g.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case g.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case g.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case g.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case g.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case g.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case g.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case g.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case g.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case g.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case g.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case g.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case g.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case g.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case g.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case g.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case g.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case g.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case g.BOGUS_COMMENT:{this._stateBogusComment(t);break}case g.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case g.COMMENT_START:{this._stateCommentStart(t);break}case g.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case g.COMMENT:{this._stateComment(t);break}case g.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case g.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case g.COMMENT_END:{this._stateCommentEnd(t);break}case g.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case g.DOCTYPE:{this._stateDoctype(t);break}case g.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case g.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case g.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case g.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case g.CDATA_SECTION:{this._stateCdataSection(t);break}case g.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case g.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case g.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case g.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case m.LESS_THAN_SIGN:{this.state=g.TAG_OPEN;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitCodePoint(t);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case m.AMPERSAND:{this._startCharacterReference();break}case m.LESS_THAN_SIGN:{this.state=g.RCDATA_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case m.LESS_THAN_SIGN:{this.state=g.RAWTEXT_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(nt(t))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case m.EXCLAMATION_MARK:{this.state=g.MARKUP_DECLARATION_OPEN;break}case m.SOLIDUS:{this.state=g.END_TAG_OPEN;break}case m.QUESTION_MARK:{this._err(N.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t);break}case m.EOF:{this._err(N.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(N.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(nt(t))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case m.GREATER_THAN_SIGN:{this._err(N.missingEndTagName),this.state=g.DATA;break}case m.EOF:{this._err(N.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(N.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_ATTRIBUTE_NAME;break}case m.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.tagName+=ue;break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(qt(t)?gn(t):t)}}_stateRcdataLessThanSign(t){t===m.SOLIDUS?this.state=g.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){nt(t)?(this.state=g.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=g.BEFORE_ATTRIBUTE_NAME,!1;case m.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=g.SELF_CLOSING_START_TAG,!1;case m.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=g.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===m.SOLIDUS?this.state=g.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){nt(t)?(this.state=g.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case m.SOLIDUS:{this.state=g.SCRIPT_DATA_END_TAG_OPEN;break}case m.EXCLAMATION_MARK:{this.state=g.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=g.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){nt(t)?(this.state=g.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case m.HYPHEN_MINUS:{this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===m.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:nt(t)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){nt(t)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ne.SCRIPT,!1)&&Ei(this.preprocessor.peek(Ne.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ne.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case m.HYPHEN_MINUS:{this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===m.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ne.SCRIPT,!1)&&Ei(this.preprocessor.peek(Ne.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ne.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:{this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.EQUALS_SIGN:{this._err(N.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=g.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:{this._leaveAttrName(),this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.EQUALS_SIGN:{this._leaveAttrName(),this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:{this._err(N.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.name+=ue;break}default:this.currentAttr.name+=String.fromCodePoint(qt(t)?gn(t):t)}}_stateAfterAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case m.EQUALS_SIGN:{this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{this.state=g.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this.state=g.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingAttributeValue),this.state=g.DATA,this.emitCurrentTagToken();break}default:this.state=g.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case m.QUOTATION_MARK:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.value+=ue;break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case m.APOSTROPHE:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.value+=ue;break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.value+=ue;break}case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:case m.EQUALS_SIGN:case m.GRAVE_ACCENT:{this._err(N.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case m.SOLIDUS:{this._leaveAttrValue(),this.state=g.SELF_CLOSING_START_TAG;break}case m.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this._err(N.missingWhitespaceBetweenAttributes),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case m.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this._err(N.unexpectedSolidusInTag),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(n);break}case m.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.data+=ue;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ne.DASH_DASH,!0)?(this._createCommentToken(Ne.DASH_DASH.length+1),this.state=g.COMMENT_START):this._consumeSequenceIfMatch(Ne.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ne.DOCTYPE.length+1),this.state=g.DOCTYPE):this._consumeSequenceIfMatch(Ne.CDATA_START,!0)?this.inForeignNode?this.state=g.CDATA_SECTION:(this._err(N.cdataInHtmlContent),this._createCommentToken(Ne.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=g.BOGUS_COMMENT):this._ensureHibernation()||(this._err(N.incorrectlyOpenedComment),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_START_DASH;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptClosingOfEmptyComment),this.state=g.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=g.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptClosingOfEmptyComment),this.state=g.DATA,this.emitCurrentComment(n);break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=g.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_END_DASH;break}case m.LESS_THAN_SIGN:{n.data+="<",this.state=g.COMMENT_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.data+=ue;break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case m.EXCLAMATION_MARK:{n.data+="!",this.state=g.COMMENT_LESS_THAN_SIGN_BANG;break}case m.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=g.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=g.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=g.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==m.GREATER_THAN_SIGN&&t!==m.EOF&&this._err(N.nestedComment),this.state=g.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=g.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(n);break}case m.EXCLAMATION_MARK:{this.state=g.COMMENT_END_BANG;break}case m.HYPHEN_MINUS:{n.data+="-";break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=g.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{n.data+="--!",this.state=g.COMMENT_END_DASH;break}case m.GREATER_THAN_SIGN:{this._err(N.incorrectlyClosedComment),this.state=g.DATA,this.emitCurrentComment(n);break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=g.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case m.EOF:{this._err(N.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingWhitespaceBeforeDoctypeName),this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(qt(t))this._createDoctypeToken(String.fromCharCode(gn(t))),this.state=g.DOCTYPE_NAME;else switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.NULL:{this._err(N.unexpectedNullCharacter),this._createDoctypeToken(ue),this.state=g.DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=g.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.AFTER_DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.name+=ue;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(qt(t)?gn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ne.PUBLIC,!1)?this.state=g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ne.SYSTEM,!1)?this.state=g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(N.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.QUOTATION_MARK:{this._err(N.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(N.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case m.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.publicId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case m.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.publicId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.QUOTATION_MARK:{this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.QUOTATION_MARK:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.QUOTATION_MARK:{this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case m.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.systemId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case m.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.systemId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.NULL:{this._err(N.unexpectedNullCharacter);break}case m.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case m.RIGHT_SQUARE_BRACKET:{this.state=g.CDATA_SECTION_BRACKET;break}case m.EOF:{this._err(N.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===m.RIGHT_SQUARE_BRACKET?this.state=g.CDATA_SECTION_END:(this._emitChars("]"),this.state=g.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case m.GREATER_THAN_SIGN:{this.state=g.DATA;break}case m.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=g.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&bi(this.preprocessor.peek(1))?g.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){bi(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===m.SEMICOLON&&this._err(N.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const co=new Set([o.DD,o.DT,o.LI,o.OPTGROUP,o.OPTION,o.P,o.RB,o.RP,o.RT,o.RTC]),xi=new Set([...co,o.CAPTION,o.COLGROUP,o.TBODY,o.TD,o.TFOOT,o.TH,o.THEAD,o.TR]),In=new Set([o.APPLET,o.CAPTION,o.HTML,o.MARQUEE,o.OBJECT,o.TABLE,o.TD,o.TEMPLATE,o.TH]),Qm=new Set([...In,o.OL,o.UL]),Xm=new Set([...In,o.BUTTON]),wi=new Set([o.ANNOTATION_XML,o.MI,o.MN,o.MO,o.MS,o.MTEXT]),Ti=new Set([o.DESC,o.FOREIGN_OBJECT,o.TITLE]),Km=new Set([o.TR,o.TEMPLATE,o.HTML]),$m=new Set([o.TBODY,o.TFOOT,o.THEAD,o.TEMPLATE,o.HTML]),Jm=new Set([o.TABLE,o.TEMPLATE,o.HTML]),Zm=new Set([o.TD,o.TH]);class e1{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=o.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===o.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===R.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==R.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ir,R.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Zm,R.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Jm,R.HTML)}clearBackToTableBodyContext(){this.clearBackTo($m,R.HTML)}clearBackToTableRowContext(){this.clearBackTo(Km,R.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===o.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===o.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case R.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case R.SVG:{if(Ti.has(a))return!1;break}case R.MATHML:{if(wi.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,In)}hasInListItemScope(t){return this.hasInDynamicScope(t,Qm)}hasInButtonScope(t){return this.hasInDynamicScope(t,Xm)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case R.HTML:{if(Ir.has(n))return!0;if(In.has(n))return!1;break}case R.SVG:{if(Ti.has(n))return!1;break}case R.MATHML:{if(wi.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===R.HTML)switch(this.tagIDs[n]){case t:return!0;case o.TABLE:case o.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===R.HTML)switch(this.tagIDs[t]){case o.TBODY:case o.THEAD:case o.TFOOT:return!0;case o.TABLE:case o.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===R.HTML)switch(this.tagIDs[n]){case t:return!0;case o.OPTION:case o.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;co.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;xi.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&xi.has(this.currentTagId);)this.pop()}}const dr=3;var je;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(je||(je={}));const yi={type:je.Marker};class t1{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===je.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===s){const h=this.treeAdapter.getAttrList(c);h.length===a&&r.push({idx:u,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<dr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<dr)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const u=r[s];u.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=dr&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(yi)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:je.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:je.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(yi);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===je.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===je.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===je.Element&&n.element===t)}}const rt={createDocument(){return{nodeName:"#document",mode:De.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};rt.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(rt.isTextNode(n)){n.value+=t;return}}rt.appendChild(e,rt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&rt.isTextNode(r)?r.value+=t:rt.insertBefore(e,rt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ho="html",n1="about:legacy-compat",r1="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",po=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a1=[...po,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],i1=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),fo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],s1=[...fo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ci(e,t){return t.some(n=>e.startsWith(n))}function o1(e){return e.name===ho&&e.publicId===null&&(e.systemId===null||e.systemId===n1)}function u1(e){if(e.name!==ho)return De.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===r1)return De.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),i1.has(n))return De.QUIRKS;let r=t===null?a1:po;if(Ci(n,r))return De.QUIRKS;if(r=t===null?fo:s1,Ci(n,r))return De.LIMITED_QUIRKS}return De.NO_QUIRKS}const _i={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},l1="definitionurl",c1="definitionURL",d1=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),h1=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:R.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:R.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:R.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:R.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:R.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:R.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:R.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:R.XML}],["xml:space",{prefix:"xml",name:"space",namespace:R.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:R.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:R.XMLNS}]]),p1=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),f1=new Set([o.B,o.BIG,o.BLOCKQUOTE,o.BODY,o.BR,o.CENTER,o.CODE,o.DD,o.DIV,o.DL,o.DT,o.EM,o.EMBED,o.H1,o.H2,o.H3,o.H4,o.H5,o.H6,o.HEAD,o.HR,o.I,o.IMG,o.LI,o.LISTING,o.MENU,o.META,o.NOBR,o.OL,o.P,o.PRE,o.RUBY,o.S,o.SMALL,o.SPAN,o.STRONG,o.STRIKE,o.SUB,o.SUP,o.TABLE,o.TT,o.U,o.UL,o.VAR]);function m1(e){const t=e.tagID;return t===o.FONT&&e.attrs.some(({name:r})=>r===ht.COLOR||r===ht.SIZE||r===ht.FACE)||f1.has(t)}function mo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===l1){e.attrs[t].name=c1;break}}function go(e){for(let t=0;t<e.attrs.length;t++){const n=d1.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function $r(e){for(let t=0;t<e.attrs.length;t++){const n=h1.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function g1(e){const t=p1.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Dt(e.tagName))}function b1(e,t){return t===R.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}function E1(e,t,n){if(t===R.MATHML&&e===o.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ht.ENCODING){const a=n[r].value.toLowerCase();return a===_i.TEXT_HTML||a===_i.APPLICATION_XML}}return t===R.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}function x1(e,t,n,r){return(!r||r===R.HTML)&&E1(e,t,n)||(!r||r===R.MATHML)&&b1(e,t)}const w1="hidden",T1=8,y1=3;var x;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(x||(x={}));const C1={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},bo=new Set([o.TABLE,o.TBODY,o.TFOOT,o.THEAD,o.TR]),Ai={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:rt,onParseError:null};class ki{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=x.INITIAL,this.originalInsertionMode=x.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Ai,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Gm(this.options,this),this.activeFormattingElements=new t1(this.treeAdapter),this.fragmentContextID=r?Dt(this.treeAdapter.getTagName(r)):o.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new e1(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Ai,...n};t??(t=r.treeAdapter.createElement(C.TEMPLATE,R.HTML,[]));const a=r.treeAdapter.createElement("documentmock",R.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===o.TEMPLATE&&i.tmplInsertionModeStack.unshift(x.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:C1,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===R.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,R.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=x.TEXT}switchToPlaintextParsing(){this.insertionMode=x.TEXT,this.originalInsertionMode=x.IN_BODY,this.tokenizer.state=he.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===C.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==R.HTML))switch(this.fragmentContextID){case o.TITLE:case o.TEXTAREA:{this.tokenizer.state=he.RCDATA;break}case o.STYLE:case o.XMP:case o.IFRAME:case o.NOEMBED:case o.NOFRAMES:case o.NOSCRIPT:{this.tokenizer.state=he.RAWTEXT;break}case o.SCRIPT:{this.tokenizer.state=he.SCRIPT_DATA;break}case o.PLAINTEXT:{this.tokenizer.state=he.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,R.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,R.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(C.HTML,R.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,o.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===Q.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===o.SVG&&this.treeAdapter.getTagName(n)===C.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===R.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===o.MGLYPH||t.tagID===o.MALIGNMARK)&&!this._isIntegrationPoint(r,n,R.HTML)}_processToken(t){switch(t.type){case Q.CHARACTER:{this.onCharacter(t);break}case Q.NULL_CHARACTER:{this.onNullCharacter(t);break}case Q.COMMENT:{this.onComment(t);break}case Q.DOCTYPE:{this.onDoctype(t);break}case Q.START_TAG:{this._processStartTag(t);break}case Q.END_TAG:{this.onEndTag(t);break}case Q.EOF:{this.onEof(t);break}case Q.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return x1(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===je.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=x.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(o.P),this.openElements.popUntilTagNamePopped(o.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case o.TR:{this.insertionMode=x.IN_ROW;return}case o.TBODY:case o.THEAD:case o.TFOOT:{this.insertionMode=x.IN_TABLE_BODY;return}case o.CAPTION:{this.insertionMode=x.IN_CAPTION;return}case o.COLGROUP:{this.insertionMode=x.IN_COLUMN_GROUP;return}case o.TABLE:{this.insertionMode=x.IN_TABLE;return}case o.BODY:{this.insertionMode=x.IN_BODY;return}case o.FRAMESET:{this.insertionMode=x.IN_FRAMESET;return}case o.SELECT:{this._resetInsertionModeForSelect(t);return}case o.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case o.HTML:{this.insertionMode=this.headElement?x.AFTER_HEAD:x.BEFORE_HEAD;return}case o.TD:case o.TH:{if(t>0){this.insertionMode=x.IN_CELL;return}break}case o.HEAD:{if(t>0){this.insertionMode=x.IN_HEAD;return}break}}this.insertionMode=x.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===o.TEMPLATE)break;if(r===o.TABLE){this.insertionMode=x.IN_SELECT_IN_TABLE;return}}this.insertionMode=x.IN_SELECT}_isElementCausesFosterParenting(t){return bo.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case o.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===R.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case o.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Ym[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zg(this,t);return}switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{Gt(this,t);break}case x.BEFORE_HEAD:{Qt(this,t);break}case x.IN_HEAD:{Xt(this,t);break}case x.IN_HEAD_NO_SCRIPT:{Kt(this,t);break}case x.AFTER_HEAD:{$t(this,t);break}case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:{xo(this,t);break}case x.TEXT:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{hr(this,t);break}case x.IN_TABLE_TEXT:{Ao(this,t);break}case x.IN_COLUMN_GROUP:{Sn(this,t);break}case x.AFTER_BODY:{Ln(this,t);break}case x.AFTER_AFTER_BODY:{wn(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Jg(this,t);return}switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{Gt(this,t);break}case x.BEFORE_HEAD:{Qt(this,t);break}case x.IN_HEAD:{Xt(this,t);break}case x.IN_HEAD_NO_SCRIPT:{Kt(this,t);break}case x.AFTER_HEAD:{$t(this,t);break}case x.TEXT:{this._insertCharacters(t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{hr(this,t);break}case x.IN_COLUMN_GROUP:{Sn(this,t);break}case x.AFTER_BODY:{Ln(this,t);break}case x.AFTER_AFTER_BODY:{wn(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Sr(this,t);return}switch(this.insertionMode){case x.INITIAL:case x.BEFORE_HTML:case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_TEMPLATE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:{Sr(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.AFTER_BODY:{L1(this,t);break}case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{O1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case x.INITIAL:{R1(this,t);break}case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:{this._err(t,N.misplacedDoctype);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,N.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?eb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{D1(this,t);break}case x.BEFORE_HEAD:{P1(this,t);break}case x.IN_HEAD:{Ue(this,t);break}case x.IN_HEAD_NO_SCRIPT:{F1(this,t);break}case x.AFTER_HEAD:{U1(this,t);break}case x.IN_BODY:{Ce(this,t);break}case x.IN_TABLE:{At(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.IN_CAPTION:{Mg(this,t);break}case x.IN_COLUMN_GROUP:{ea(this,t);break}case x.IN_TABLE_BODY:{jn(this,t);break}case x.IN_ROW:{Yn(this,t);break}case x.IN_CELL:{Hg(this,t);break}case x.IN_SELECT:{Io(this,t);break}case x.IN_SELECT_IN_TABLE:{zg(this,t);break}case x.IN_TEMPLATE:{Yg(this,t);break}case x.AFTER_BODY:{Wg(this,t);break}case x.IN_FRAMESET:{Vg(this,t);break}case x.AFTER_FRAMESET:{Qg(this,t);break}case x.AFTER_AFTER_BODY:{Kg(this,t);break}case x.AFTER_AFTER_FRAMESET:{$g(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?tb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{v1(this,t);break}case x.BEFORE_HEAD:{M1(this,t);break}case x.IN_HEAD:{B1(this,t);break}case x.IN_HEAD_NO_SCRIPT:{H1(this,t);break}case x.AFTER_HEAD:{z1(this,t);break}case x.IN_BODY:{zn(this,t);break}case x.TEXT:{kg(this,t);break}case x.IN_TABLE:{en(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.IN_CAPTION:{Bg(this,t);break}case x.IN_COLUMN_GROUP:{Fg(this,t);break}case x.IN_TABLE_BODY:{Lr(this,t);break}case x.IN_ROW:{No(this,t);break}case x.IN_CELL:{Ug(this,t);break}case x.IN_SELECT:{So(this,t);break}case x.IN_SELECT_IN_TABLE:{jg(this,t);break}case x.IN_TEMPLATE:{qg(this,t);break}case x.AFTER_BODY:{Oo(this,t);break}case x.IN_FRAMESET:{Gg(this,t);break}case x.AFTER_FRAMESET:{Xg(this,t);break}case x.AFTER_AFTER_BODY:{wn(this,t);break}}}onEof(t){switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{Gt(this,t);break}case x.BEFORE_HEAD:{Qt(this,t);break}case x.IN_HEAD:{Xt(this,t);break}case x.IN_HEAD_NO_SCRIPT:{Kt(this,t);break}case x.AFTER_HEAD:{$t(this,t);break}case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:{Co(this,t);break}case x.TEXT:{Ng(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.IN_TEMPLATE:{Lo(this,t);break}case x.AFTER_BODY:case x.IN_FRAMESET:case x.AFTER_FRAMESET:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{Zr(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===m.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.TEXT:case x.IN_COLUMN_GROUP:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:{this._insertCharacters(t);break}case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:case x.AFTER_BODY:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{Eo(this,t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{hr(this,t);break}case x.IN_TABLE_TEXT:{_o(this,t);break}}}}function _1(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):yo(e,t),n}function A1(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function k1(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),l=u&&i>=y1;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=N1(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function N1(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function I1(e,t,n){const r=e.treeAdapter.getTagName(t),a=Dt(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===o.TEMPLATE&&i===R.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function S1(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Jr(e,t){for(let n=0;n<T1;n++){const r=_1(e,t);if(!r)break;const a=A1(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=k1(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&I1(e,s,i),S1(e,a,r)}}function Sr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function L1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function O1(e,t){e._appendCommentNode(t,e.document)}function Zr(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function R1(e,t){e._setDocumentType(t);const n=t.forceQuirks?De.QUIRKS:u1(t);o1(t)||e._err(t,N.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x.BEFORE_HTML}function jt(e,t){e._err(t,N.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,De.QUIRKS),e.insertionMode=x.BEFORE_HTML,e._processToken(t)}function D1(e,t){t.tagID===o.HTML?(e._insertElement(t,R.HTML),e.insertionMode=x.BEFORE_HEAD):Gt(e,t)}function v1(e,t){const n=t.tagID;(n===o.HTML||n===o.HEAD||n===o.BODY||n===o.BR)&&Gt(e,t)}function Gt(e,t){e._insertFakeRootElement(),e.insertionMode=x.BEFORE_HEAD,e._processToken(t)}function P1(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.HEAD:{e._insertElement(t,R.HTML),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD;break}default:Qt(e,t)}}function M1(e,t){const n=t.tagID;n===o.HEAD||n===o.BODY||n===o.HTML||n===o.BR?Qt(e,t):e._err(t,N.endTagWithoutMatchingOpenElement)}function Qt(e,t){e._insertFakeElement(C.HEAD,o.HEAD),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD,e._processToken(t)}function Ue(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.BASE:case o.BASEFONT:case o.BGSOUND:case o.LINK:case o.META:{e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.TITLE:{e._switchToTextParsing(t,he.RCDATA);break}case o.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,he.RAWTEXT):(e._insertElement(t,R.HTML),e.insertionMode=x.IN_HEAD_NO_SCRIPT);break}case o.NOFRAMES:case o.STYLE:{e._switchToTextParsing(t,he.RAWTEXT);break}case o.SCRIPT:{e._switchToTextParsing(t,he.SCRIPT_DATA);break}case o.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=x.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(x.IN_TEMPLATE);break}case o.HEAD:{e._err(t,N.misplacedStartTagForHeadElement);break}default:Xt(e,t)}}function B1(e,t){switch(t.tagID){case o.HEAD:{e.openElements.pop(),e.insertionMode=x.AFTER_HEAD;break}case o.BODY:case o.BR:case o.HTML:{Xt(e,t);break}case o.TEMPLATE:{mt(e,t);break}default:e._err(t,N.endTagWithoutMatchingOpenElement)}}function mt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==o.TEMPLATE&&e._err(t,N.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(o.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,N.endTagWithoutMatchingOpenElement)}function Xt(e,t){e.openElements.pop(),e.insertionMode=x.AFTER_HEAD,e._processToken(t)}function F1(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.BASEFONT:case o.BGSOUND:case o.HEAD:case o.LINK:case o.META:case o.NOFRAMES:case o.STYLE:{Ue(e,t);break}case o.NOSCRIPT:{e._err(t,N.nestedNoscriptInHead);break}default:Kt(e,t)}}function H1(e,t){switch(t.tagID){case o.NOSCRIPT:{e.openElements.pop(),e.insertionMode=x.IN_HEAD;break}case o.BR:{Kt(e,t);break}default:e._err(t,N.endTagWithoutMatchingOpenElement)}}function Kt(e,t){const n=t.type===Q.EOF?N.openElementsLeftAfterEof:N.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=x.IN_HEAD,e._processToken(t)}function U1(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.BODY:{e._insertElement(t,R.HTML),e.framesetOk=!1,e.insertionMode=x.IN_BODY;break}case o.FRAMESET:{e._insertElement(t,R.HTML),e.insertionMode=x.IN_FRAMESET;break}case o.BASE:case o.BASEFONT:case o.BGSOUND:case o.LINK:case o.META:case o.NOFRAMES:case o.SCRIPT:case o.STYLE:case o.TEMPLATE:case o.TITLE:{e._err(t,N.abandonedHeadElementChild),e.openElements.push(e.headElement,o.HEAD),Ue(e,t),e.openElements.remove(e.headElement);break}case o.HEAD:{e._err(t,N.misplacedStartTagForHeadElement);break}default:$t(e,t)}}function z1(e,t){switch(t.tagID){case o.BODY:case o.HTML:case o.BR:{$t(e,t);break}case o.TEMPLATE:{mt(e,t);break}default:e._err(t,N.endTagWithoutMatchingOpenElement)}}function $t(e,t){e._insertFakeElement(C.BODY,o.BODY),e.insertionMode=x.IN_BODY,Un(e,t)}function Un(e,t){switch(t.type){case Q.CHARACTER:{xo(e,t);break}case Q.WHITESPACE_CHARACTER:{Eo(e,t);break}case Q.COMMENT:{Sr(e,t);break}case Q.START_TAG:{Ce(e,t);break}case Q.END_TAG:{zn(e,t);break}case Q.EOF:{Co(e,t);break}}}function Eo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function j1(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Y1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function q1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_FRAMESET)}function W1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML)}function V1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),Ir.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,R.HTML)}function G1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Q1(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),n||(e.formElement=e.openElements.current))}function X1(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===o.LI&&a===o.LI||(n===o.DD||n===o.DT)&&(a===o.DD||a===o.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==o.ADDRESS&&a!==o.DIV&&a!==o.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML)}function K1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),e.tokenizer.state=he.PLAINTEXT}function $1(e,t){e.openElements.hasInScope(o.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.framesetOk=!1}function J1(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(C.A);n&&(Jr(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Z1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function eg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(o.NOBR)&&(Jr(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,R.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ng(e,t){e.treeAdapter.getDocumentMode(e.document)!==De.QUIRKS&&e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),e.framesetOk=!1,e.insertionMode=x.IN_TABLE}function wo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,R.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function To(e){const t=io(e,ht.TYPE);return t!=null&&t.toLowerCase()===w1}function rg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,R.HTML),To(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function ag(e,t){e._appendElement(t,R.HTML),t.ackSelfClosing=!0}function ig(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._appendElement(t,R.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sg(e,t){t.tagName=C.IMG,t.tagID=o.IMG,wo(e,t)}function og(e,t){e._insertElement(t,R.HTML),e.skipNextNewLine=!0,e.tokenizer.state=he.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=x.TEXT}function ug(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,he.RAWTEXT)}function lg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,he.RAWTEXT)}function Ni(e,t){e._switchToTextParsing(t,he.RAWTEXT)}function cg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===x.IN_TABLE||e.insertionMode===x.IN_CAPTION||e.insertionMode===x.IN_TABLE_BODY||e.insertionMode===x.IN_ROW||e.insertionMode===x.IN_CELL?x.IN_SELECT_IN_TABLE:x.IN_SELECT}function dg(e,t){e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML)}function hg(e,t){e.openElements.hasInScope(o.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,R.HTML)}function pg(e,t){e.openElements.hasInScope(o.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(o.RTC),e._insertElement(t,R.HTML)}function fg(e,t){e._reconstructActiveFormattingElements(),mo(t),$r(t),t.selfClosing?e._appendElement(t,R.MATHML):e._insertElement(t,R.MATHML),t.ackSelfClosing=!0}function mg(e,t){e._reconstructActiveFormattingElements(),go(t),$r(t),t.selfClosing?e._appendElement(t,R.SVG):e._insertElement(t,R.SVG),t.ackSelfClosing=!0}function Ii(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML)}function Ce(e,t){switch(t.tagID){case o.I:case o.S:case o.B:case o.U:case o.EM:case o.TT:case o.BIG:case o.CODE:case o.FONT:case o.SMALL:case o.STRIKE:case o.STRONG:{Z1(e,t);break}case o.A:{J1(e,t);break}case o.H1:case o.H2:case o.H3:case o.H4:case o.H5:case o.H6:{V1(e,t);break}case o.P:case o.DL:case o.OL:case o.UL:case o.DIV:case o.DIR:case o.NAV:case o.MAIN:case o.MENU:case o.ASIDE:case o.CENTER:case o.FIGURE:case o.FOOTER:case o.HEADER:case o.HGROUP:case o.DIALOG:case o.DETAILS:case o.ADDRESS:case o.ARTICLE:case o.SEARCH:case o.SECTION:case o.SUMMARY:case o.FIELDSET:case o.BLOCKQUOTE:case o.FIGCAPTION:{W1(e,t);break}case o.LI:case o.DD:case o.DT:{X1(e,t);break}case o.BR:case o.IMG:case o.WBR:case o.AREA:case o.EMBED:case o.KEYGEN:{wo(e,t);break}case o.HR:{ig(e,t);break}case o.RB:case o.RTC:{hg(e,t);break}case o.RT:case o.RP:{pg(e,t);break}case o.PRE:case o.LISTING:{G1(e,t);break}case o.XMP:{ug(e,t);break}case o.SVG:{mg(e,t);break}case o.HTML:{j1(e,t);break}case o.BASE:case o.LINK:case o.META:case o.STYLE:case o.TITLE:case o.SCRIPT:case o.BGSOUND:case o.BASEFONT:case o.TEMPLATE:{Ue(e,t);break}case o.BODY:{Y1(e,t);break}case o.FORM:{Q1(e,t);break}case o.NOBR:{eg(e,t);break}case o.MATH:{fg(e,t);break}case o.TABLE:{ng(e,t);break}case o.INPUT:{rg(e,t);break}case o.PARAM:case o.TRACK:case o.SOURCE:{ag(e,t);break}case o.IMAGE:{sg(e,t);break}case o.BUTTON:{$1(e,t);break}case o.APPLET:case o.OBJECT:case o.MARQUEE:{tg(e,t);break}case o.IFRAME:{lg(e,t);break}case o.SELECT:{cg(e,t);break}case o.OPTION:case o.OPTGROUP:{dg(e,t);break}case o.NOEMBED:case o.NOFRAMES:{Ni(e,t);break}case o.FRAMESET:{q1(e,t);break}case o.TEXTAREA:{og(e,t);break}case o.NOSCRIPT:{e.options.scriptingEnabled?Ni(e,t):Ii(e,t);break}case o.PLAINTEXT:{K1(e,t);break}case o.COL:case o.TH:case o.TD:case o.TR:case o.HEAD:case o.FRAME:case o.TBODY:case o.TFOOT:case o.THEAD:case o.CAPTION:case o.COLGROUP:break;default:Ii(e,t)}}function gg(e,t){if(e.openElements.hasInScope(o.BODY)&&(e.insertionMode=x.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function bg(e,t){e.openElements.hasInScope(o.BODY)&&(e.insertionMode=x.AFTER_BODY,Oo(e,t))}function Eg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function xg(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(o.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(o.FORM):n&&e.openElements.remove(n))}function wg(e){e.openElements.hasInButtonScope(o.P)||e._insertFakeElement(C.P,o.P),e._closePElement()}function Tg(e){e.openElements.hasInListItemScope(o.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(o.LI),e.openElements.popUntilTagNamePopped(o.LI))}function yg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Cg(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _g(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Ag(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(C.BR,o.BR),e.openElements.pop(),e.framesetOk=!1}function yo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==o.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function zn(e,t){switch(t.tagID){case o.A:case o.B:case o.I:case o.S:case o.U:case o.EM:case o.TT:case o.BIG:case o.CODE:case o.FONT:case o.NOBR:case o.SMALL:case o.STRIKE:case o.STRONG:{Jr(e,t);break}case o.P:{wg(e);break}case o.DL:case o.UL:case o.OL:case o.DIR:case o.DIV:case o.NAV:case o.PRE:case o.MAIN:case o.MENU:case o.ASIDE:case o.BUTTON:case o.CENTER:case o.FIGURE:case o.FOOTER:case o.HEADER:case o.HGROUP:case o.DIALOG:case o.ADDRESS:case o.ARTICLE:case o.DETAILS:case o.SEARCH:case o.SECTION:case o.SUMMARY:case o.LISTING:case o.FIELDSET:case o.BLOCKQUOTE:case o.FIGCAPTION:{Eg(e,t);break}case o.LI:{Tg(e);break}case o.DD:case o.DT:{yg(e,t);break}case o.H1:case o.H2:case o.H3:case o.H4:case o.H5:case o.H6:{Cg(e);break}case o.BR:{Ag(e);break}case o.BODY:{gg(e,t);break}case o.HTML:{bg(e,t);break}case o.FORM:{xg(e);break}case o.APPLET:case o.OBJECT:case o.MARQUEE:{_g(e,t);break}case o.TEMPLATE:{mt(e,t);break}default:yo(e,t)}}function Co(e,t){e.tmplInsertionModeStack.length>0?Lo(e,t):Zr(e,t)}function kg(e,t){var n;t.tagID===o.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Ng(e,t){e._err(t,N.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function hr(e,t){if(bo.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=x.IN_TABLE_TEXT,t.type){case Q.CHARACTER:{Ao(e,t);break}case Q.WHITESPACE_CHARACTER:{_o(e,t);break}}else on(e,t)}function Ig(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_CAPTION}function Sg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_COLUMN_GROUP}function Lg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(C.COLGROUP,o.COLGROUP),e.insertionMode=x.IN_COLUMN_GROUP,ea(e,t)}function Og(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_TABLE_BODY}function Rg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(C.TBODY,o.TBODY),e.insertionMode=x.IN_TABLE_BODY,jn(e,t)}function Dg(e,t){e.openElements.hasInTableScope(o.TABLE)&&(e.openElements.popUntilTagNamePopped(o.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function vg(e,t){To(t)?e._appendElement(t,R.HTML):on(e,t),t.ackSelfClosing=!0}function Pg(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,R.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function At(e,t){switch(t.tagID){case o.TD:case o.TH:case o.TR:{Rg(e,t);break}case o.STYLE:case o.SCRIPT:case o.TEMPLATE:{Ue(e,t);break}case o.COL:{Lg(e,t);break}case o.FORM:{Pg(e,t);break}case o.TABLE:{Dg(e,t);break}case o.TBODY:case o.TFOOT:case o.THEAD:{Og(e,t);break}case o.INPUT:{vg(e,t);break}case o.CAPTION:{Ig(e,t);break}case o.COLGROUP:{Sg(e,t);break}default:on(e,t)}}function en(e,t){switch(t.tagID){case o.TABLE:{e.openElements.hasInTableScope(o.TABLE)&&(e.openElements.popUntilTagNamePopped(o.TABLE),e._resetInsertionMode());break}case o.TEMPLATE:{mt(e,t);break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:case o.TBODY:case o.TD:case o.TFOOT:case o.TH:case o.THEAD:case o.TR:break;default:on(e,t)}}function on(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Un(e,t),e.fosterParentingEnabled=n}function _o(e,t){e.pendingCharacterTokens.push(t)}function Ao(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yt(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)on(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ko=new Set([o.CAPTION,o.COL,o.COLGROUP,o.TBODY,o.TD,o.TFOOT,o.TH,o.THEAD,o.TR]);function Mg(e,t){const n=t.tagID;ko.has(n)?e.openElements.hasInTableScope(o.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,At(e,t)):Ce(e,t)}function Bg(e,t){const n=t.tagID;switch(n){case o.CAPTION:case o.TABLE:{e.openElements.hasInTableScope(o.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,n===o.TABLE&&en(e,t));break}case o.BODY:case o.COL:case o.COLGROUP:case o.HTML:case o.TBODY:case o.TD:case o.TFOOT:case o.TH:case o.THEAD:case o.TR:break;default:zn(e,t)}}function ea(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.COL:{e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.TEMPLATE:{Ue(e,t);break}default:Sn(e,t)}}function Fg(e,t){switch(t.tagID){case o.COLGROUP:{e.openElements.currentTagId===o.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE);break}case o.TEMPLATE:{mt(e,t);break}case o.COL:break;default:Sn(e,t)}}function Sn(e,t){e.openElements.currentTagId===o.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE,e._processToken(t))}function jn(e,t){switch(t.tagID){case o.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_ROW;break}case o.TH:case o.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(C.TR,o.TR),e.insertionMode=x.IN_ROW,Yn(e,t);break}case o.CAPTION:case o.COL:case o.COLGROUP:case o.TBODY:case o.TFOOT:case o.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE,At(e,t));break}default:At(e,t)}}function Lr(e,t){const n=t.tagID;switch(t.tagID){case o.TBODY:case o.TFOOT:case o.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE);break}case o.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE,en(e,t));break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:case o.TD:case o.TH:case o.TR:break;default:en(e,t)}}function Yn(e,t){switch(t.tagID){case o.TH:case o.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_CELL,e.activeFormattingElements.insertMarker();break}case o.CAPTION:case o.COL:case o.COLGROUP:case o.TBODY:case o.TFOOT:case o.THEAD:case o.TR:{e.openElements.hasInTableScope(o.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,jn(e,t));break}default:At(e,t)}}function No(e,t){switch(t.tagID){case o.TR:{e.openElements.hasInTableScope(o.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY);break}case o.TABLE:{e.openElements.hasInTableScope(o.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,Lr(e,t));break}case o.TBODY:case o.TFOOT:case o.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(o.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,Lr(e,t));break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:case o.TD:case o.TH:break;default:en(e,t)}}function Hg(e,t){const n=t.tagID;ko.has(n)?(e.openElements.hasInTableScope(o.TD)||e.openElements.hasInTableScope(o.TH))&&(e._closeTableCell(),Yn(e,t)):Ce(e,t)}function Ug(e,t){const n=t.tagID;switch(n){case o.TD:case o.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_ROW);break}case o.TABLE:case o.TBODY:case o.TFOOT:case o.THEAD:case o.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),No(e,t));break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:break;default:zn(e,t)}}function Io(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.OPTION:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e._insertElement(t,R.HTML);break}case o.OPTGROUP:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e.openElements.currentTagId===o.OPTGROUP&&e.openElements.pop(),e._insertElement(t,R.HTML);break}case o.HR:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e.openElements.currentTagId===o.OPTGROUP&&e.openElements.pop(),e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.INPUT:case o.KEYGEN:case o.TEXTAREA:case o.SELECT:{e.openElements.hasInSelectScope(o.SELECT)&&(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode(),t.tagID!==o.SELECT&&e._processStartTag(t));break}case o.SCRIPT:case o.TEMPLATE:{Ue(e,t);break}}}function So(e,t){switch(t.tagID){case o.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===o.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===o.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===o.OPTGROUP&&e.openElements.pop();break}case o.OPTION:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop();break}case o.SELECT:{e.openElements.hasInSelectScope(o.SELECT)&&(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode());break}case o.TEMPLATE:{mt(e,t);break}}}function zg(e,t){const n=t.tagID;n===o.CAPTION||n===o.TABLE||n===o.TBODY||n===o.TFOOT||n===o.THEAD||n===o.TR||n===o.TD||n===o.TH?(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Io(e,t)}function jg(e,t){const n=t.tagID;n===o.CAPTION||n===o.TABLE||n===o.TBODY||n===o.TFOOT||n===o.THEAD||n===o.TR||n===o.TD||n===o.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode(),e.onEndTag(t)):So(e,t)}function Yg(e,t){switch(t.tagID){case o.BASE:case o.BASEFONT:case o.BGSOUND:case o.LINK:case o.META:case o.NOFRAMES:case o.SCRIPT:case o.STYLE:case o.TEMPLATE:case o.TITLE:{Ue(e,t);break}case o.CAPTION:case o.COLGROUP:case o.TBODY:case o.TFOOT:case o.THEAD:{e.tmplInsertionModeStack[0]=x.IN_TABLE,e.insertionMode=x.IN_TABLE,At(e,t);break}case o.COL:{e.tmplInsertionModeStack[0]=x.IN_COLUMN_GROUP,e.insertionMode=x.IN_COLUMN_GROUP,ea(e,t);break}case o.TR:{e.tmplInsertionModeStack[0]=x.IN_TABLE_BODY,e.insertionMode=x.IN_TABLE_BODY,jn(e,t);break}case o.TD:case o.TH:{e.tmplInsertionModeStack[0]=x.IN_ROW,e.insertionMode=x.IN_ROW,Yn(e,t);break}default:e.tmplInsertionModeStack[0]=x.IN_BODY,e.insertionMode=x.IN_BODY,Ce(e,t)}}function qg(e,t){t.tagID===o.TEMPLATE&&mt(e,t)}function Lo(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(o.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Zr(e,t)}function Wg(e,t){t.tagID===o.HTML?Ce(e,t):Ln(e,t)}function Oo(e,t){var n;if(t.tagID===o.HTML){if(e.fragmentContext||(e.insertionMode=x.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===o.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Ln(e,t)}function Ln(e,t){e.insertionMode=x.IN_BODY,Un(e,t)}function Vg(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.FRAMESET:{e._insertElement(t,R.HTML);break}case o.FRAME:{e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.NOFRAMES:{Ue(e,t);break}}}function Gg(e,t){t.tagID===o.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==o.FRAMESET&&(e.insertionMode=x.AFTER_FRAMESET))}function Qg(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.NOFRAMES:{Ue(e,t);break}}}function Xg(e,t){t.tagID===o.HTML&&(e.insertionMode=x.AFTER_AFTER_FRAMESET)}function Kg(e,t){t.tagID===o.HTML?Ce(e,t):wn(e,t)}function wn(e,t){e.insertionMode=x.IN_BODY,Un(e,t)}function $g(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.NOFRAMES:{Ue(e,t);break}}}function Jg(e,t){t.chars=ue,e._insertCharacters(t)}function Zg(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ro(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==R.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function eb(e,t){if(m1(t))Ro(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===R.MATHML?mo(t):r===R.SVG&&(g1(t),go(t)),$r(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function tb(e,t){if(t.tagID===o.P||t.tagID===o.BR){Ro(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===R.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}C.AREA,C.BASE,C.BASEFONT,C.BGSOUND,C.BR,C.COL,C.EMBED,C.FRAME,C.HR,C.IMG,C.INPUT,C.KEYGEN,C.LINK,C.META,C.PARAM,C.SOURCE,C.TRACK,C.WBR;const nb=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,rb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Si={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Do(e,t){const n=pb(e),r=Gi("type",{handlers:{root:ab,element:ib,text:sb,comment:Po,doctype:ob,raw:lb},unknown:cb}),a={parser:n?new ki(Si):ki.getFragmentParser(void 0,Si),handle(u){r(u,a)},stitches:!1,options:t||{}};r(e,a),vt(a,qe());const i=n?a.parser.document:a.parser.getFragment(),s=fm(i,{file:a.options.file});return a.stitches&&Pn(s,"comment",function(u,l,c){const h=u;if(h.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=h.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function vo(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function ab(e,t){vo(e.children,t)}function ib(e,t){db(e,t),vo(e.children,t),hb(e,t)}function sb(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Q.CHARACTER,chars:e.value,location:un(e)};vt(t,qe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ob(e,t){const n={type:Q.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:un(e)};vt(t,qe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ub(e,t){t.stitches=!0;const n=fb(e);if("children"in e&&"children"in n){const r=Do({type:"root",children:e.children},t.options);n.children=r.children}Po({type:"comment",value:{stitch:n}},t)}function Po(e,t){const n=e.value,r={type:Q.COMMENT,data:n,location:un(e)};vt(t,qe(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function lb(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Mo(t,qe(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nb,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function cb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ub(n,t);else{let r="";throw rb.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function vt(e,t){Mo(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=he.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Mo(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function db(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===he.PLAINTEXT)return;vt(t,qe(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:dt.html;a===dt.html&&n==="svg"&&(a=dt.svg);const i=xm({...e,children:[]},{space:a===dt.svg?"svg":"html"}),s={type:Q.START_TAG,tagName:n,tagID:Dt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:un(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function hb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Nm.includes(n)||t.parser.tokenizer.state===he.PLAINTEXT)return;vt(t,Fn(e));const r={type:Q.END_TAG,tagName:n,tagID:Dt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:un(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===he.RCDATA||t.parser.tokenizer.state===he.RAWTEXT||t.parser.tokenizer.state===he.SCRIPT_DATA)&&(t.parser.tokenizer.state=he.DATA)}function pb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function un(e){const t=qe(e)||{line:void 0,column:void 0,offset:void 0},n=Fn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function fb(e){return"children"in e?_t({...e,children:[]}):_t(e)}function Bo(e){return function(t,n){return Do(t,{...e,file:n})}}function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(null,arguments)}function mb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Fo,Ho;typeof document<"u"&&(Fo=document);typeof window<"u"&&(Ho=window);var Uo=K.createContext({document:Fo,window:Ho}),gb=()=>K.useContext(Uo),bb=["children","head","initialContent","src","mountTarget"],ta=K.forwardRef((e,t)=>{var{children:n,head:r,initialContent:a,src:i,mountTarget:s}=e,u=mb(e,bb),[l,c]=K.useState(!1),[h,d]=K.useState(),b=P=>{P&&d(P)};K.useImperativeHandle(t,()=>h,[h]);var p=a||"<!DOCTYPE html><html><head></head><body></body></html>",E=()=>h?h.contentDocument:null,y=()=>{var P=E();return s?P==null?void 0:P.querySelector(s):P==null?void 0:P.body},A=K.useRef(),_=K.useCallback(P=>{A.current=P;var F=()=>setInterval(()=>_(P),500);clearInterval(F()),l||c(!0)},[l]);K.useMemo(()=>{!i&&u.onLoad&&l&&u.onLoad(A.current)},[l]),K.useEffect(()=>{if(h&&!i){var P;(P=h.contentWindow)==null||P.addEventListener("DOMContentLoaded",_)}return()=>{if(h&&!i){var F;(F=h.contentWindow)==null||F.removeEventListener("DOMContentLoaded",_)}}},[h,_]);var L=()=>{var P,F=E(),I=(P=E())==null?void 0:P.head,H=y(),U=(F==null?void 0:F.defaultView)||(F==null?void 0:F.parentView),Y=f.jsx(Uo.Provider,{value:{document:F,window:U},children:n});return[I&&r&&pr.createPortal(r,I),h&&H&&pr.createPortal(Y,H)]},O={};return i?(delete O.srcDoc,O.src=i,O.onLoad=u.onLoad):O.srcDoc=p,f.jsx("iframe",Or({title:u.title,ref:b},u,{onLoad:_},O,{children:l&&L()}))});ta.displayName="IFrame";const zo="opencx-widget-portal";function qn(){return null}function Eb({children:e}){var n,r;const t=(r=(n=gb())==null?void 0:n.document)==null?void 0:r.getElementById(zo);return t?pr.createPortal(e,t):(console.error("Portal container not found!"),null)}function xb(){return f.jsx("div",{id:zo,className:"absolute size-full top-0 left-0"})}qn.Portal=Eb;qn.Container=xb;const wb=He.Root,Tb=He.Trigger,jo=xe.forwardRef(({className:e,...t},n)=>f.jsx(He.Overlay,{ref:n,className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));jo.displayName=He.Overlay.displayName;const Yo=xe.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(qn.Portal,{children:[f.jsx(jo,{}),f.jsxs(He.Content,{ref:r,className:q("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsx(He.Close,{asChild:!0,className:"absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:f.jsxs(Oe,{size:"fit",variant:"outline",children:[f.jsx(le.X,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));Yo.displayName=He.Content.displayName;const qo=xe.forwardRef(({className:e,...t},n)=>f.jsx(He.Title,{ref:n,className:q("text-lg font-semibold leading-none tracking-tight",e),...t}));qo.displayName=He.Title.displayName;const yb=xe.forwardRef(({className:e,...t},n)=>f.jsx(He.Description,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));yb.displayName=He.Description.displayName;function Wo({attachment:e}){const{name:t,size:n,type:r,url:a}=e,i=r.startsWith("image/"),s=r.startsWith("video/"),u=r.startsWith("audio/");return u?f.jsx(Ke,{children:f.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:f.jsxs("audio",{controls:!0,className:"w-full",children:[f.jsx("source",{src:a,type:r}),"Your browser does not support the audio tag."]})})}):s?f.jsx(Ke,{children:f.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:f.jsxs("video",{controls:!0,children:[f.jsx("source",{src:a,type:r}),"Your browser does not support the video tag."]})})}):!i&&!s&&!u?f.jsx(Ke,{children:f.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:f.jsxs("div",{className:"flex items-end gap-2 p-2",children:[f.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:q("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),f.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})}):f.jsxs(wb,{children:[f.jsx(Ke,{children:f.jsx(Tb,{children:f.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:i&&f.jsx("img",{src:a,className:"object-cover size-16",alt:t})})})}),f.jsxs(Yo,{"aria-describedby":void 0,className:"size-full rounded-3xl flex items-center justify-center bg-transparent backdrop-blur border-none gap-0",children:[f.jsx(qo,{className:"sr-only",children:"Image preview"}),i&&f.jsx("div",{className:"size-fit shrink-0 rounded-2xl overflow-hidden max-h-full",children:f.jsx("img",{src:a,className:"object-cover size-auto",alt:t})})]})]})}function Rr({data:e,id:t,type:n,attachments:r}){const{message:a,variant:i="default"}=e;return i==="error"?f.jsx("div",{children:f.jsx("div",{className:"flex flex-row flex-wrap items-center justify-start",children:f.jsx("div",{className:"leading-snug text-sm text-destructive",children:a})})}):f.jsxs("div",{className:"w-5/6 flex flex-col items-start gap-1",children:[f.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(s=>f.jsx(Wo,{attachment:s},s.id))}),a.length>0&&f.jsx($s,{"data-type":n,"data-id":t,remarkPlugins:[Cs],rehypePlugins:[Bo],components:{a:({children:s,...u})=>f.jsx("a",{target:"_top",...u,children:s})},className:q("w-fit p-2 rounded-2xl bg-secondary border shadow-sm","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]"),children:a})]})}function Vo(e){const{componentStore:t}=X.useWidget();if(e.data.action){const r=t.getComponent(e.data.action.name);if(r)return f.jsx(r,{...e,id:e.id})}const n=t.getComponent(e.component);return n?f.jsx(n,{...e,id:e.id}):f.jsx(Rr,{...e})}const ln=xe.forwardRef(({className:e,...t},n)=>f.jsx(Nt.Root,{ref:n,className:q("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full border bg-secondary",e),...t}));ln.displayName=Nt.Root.displayName;const Wn=xe.forwardRef(({className:e,...t},n)=>f.jsx(Nt.Image,{ref:n,className:q("aspect-square h-full w-full",e),...t}));Wn.displayName=Nt.Image.displayName;const Vn=xe.forwardRef(({className:e,...t},n)=>f.jsx(Nt.Fallback,{ref:n,className:q("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Vn.displayName=Nt.Fallback.displayName;function Cb({message:e}){var t;return f.jsxs("div",{className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&f.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(t=e.attachments)==null?void 0:t.map(n=>f.jsx(Wo,{attachment:n},n.id))}),e.content.length>0&&f.jsx("div",{className:q("w-fit p-2 rounded-2xl text-sm","bg-primary text-primary-foreground border shadow-sm","break-words [word-break:break-word]","whitespace-pre-wrap"),children:e.content})]})}function _b({messages:e}){var n,r,a,i,s,u;const{user:t}=X.useConfig();return f.jsxs("div",{className:q("group","flex flex-col gap-2 justify-end items-end"),children:[f.jsxs(ln,{className:"bg-primary text-primary-foreground",children:[f.jsx(Wn,{src:(n=t==null?void 0:t.data)==null?void 0:n.avatarUrl,alt:((r=t==null?void 0:t.data)==null?void 0:r.name)||"User avatar"}),((a=t==null?void 0:t.data)==null?void 0:a.name)&&f.jsx(Vn,{children:(u=(s=(i=t==null?void 0:t.data)==null?void 0:i.name)==null?void 0:s.slice(0,1))==null?void 0:u.toUpperCase()})]}),e.map(l=>f.jsx(Cb,{message:l},l.id))]})}function Ab({messages:e,agent:t}){var n,r;return f.jsxs("div",{className:q("flex flex-col items-start gap-2"),children:[f.jsx(yn,{content:t==null?void 0:t.name,side:"right",align:"end",children:f.jsxs(ln,{children:[f.jsx(Wn,{src:(t==null?void 0:t.avatar)??"",alt:"Agent Icon"}),(t==null?void 0:t.name)&&f.jsx(Vn,{children:(r=(n=t==null?void 0:t.name)==null?void 0:n.slice(0,1))==null?void 0:r.toUpperCase()})]})}),e.map(a=>f.jsx(Vo,{...a},a.id))]})}function kb(){const{messagesState:{messages:e}}=X.useMessages(),{isAwaitingBotReply:t}=X.useIsAwaitingBotReply(),{componentStore:n}=X.useWidget(),r=X.useConfig(),a=K.useMemo(()=>Al(e),[e]),i=!r.initialMessages||r.initialMessages.length===0?["Hello, how can I help you?"]:r.initialMessages,s=n.getComponent("loading"),u=K.useRef(null);function l(){setTimeout(()=>{const c=u.current;c&&(c.scrollTop=c.scrollHeight)},0)}return K.useEffect(()=>{l()},[e]),f.jsxs("div",{"data-messages":!0,ref:u,className:"max-h-full scroll-smooth relative flex-1 p-2 space-y-2 overflow-auto",children:[e.length===0&&i.map(c=>f.jsx(Vo,{component:"bot_message",data:{message:c},id:c,type:"FROM_BOT",agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0,timestamp:Date.now().toString()},c)),a.map(c=>{var b,p,E;const h=(b=c==null?void 0:c[0])==null?void 0:b.type,d=(p=c[0])==null?void 0:p.id;if(!h||!d)return null;if(kl(c))return f.jsx(_b,{messages:c},d);if(Nl(c)||Il(c)){const y=(E=c[0])==null?void 0:E.agent;return f.jsx(Ab,{messages:c,agent:y},d)}return null}),t&&f.jsx(s,{})]})}function Go({className:e}){return f.jsx(le.LoaderIcon,{className:q("size-4 animate-spin",e)})}function cn(){var r,a,i,s,u,l,c,h,d,b,p,E,y,A,_,L,O,P,F,I,H;const{theme:e}=X.useWidget(),t={primaryColor:(e==null?void 0:e.primaryColor)||"hsl(0, 0%, 0%)",widgetTrigger:{offset:{bottom:((a=(r=e==null?void 0:e.widgetTrigger)==null?void 0:r.offset)==null?void 0:a.bottom)||"20px",right:((s=(i=e==null?void 0:e.widgetTrigger)==null?void 0:i.offset)==null?void 0:s.right)||"20px"},size:{button:((l=(u=e==null?void 0:e.widgetTrigger)==null?void 0:u.size)==null?void 0:l.button)||"48px",icon:((h=(c=e==null?void 0:e.widgetTrigger)==null?void 0:c.size)==null?void 0:h.icon)||"24px"}},widgetContentContainer:{offset:((d=e==null?void 0:e.widgetContentContainer)==null?void 0:d.offset)||10},screens:{welcome:{width:((p=(b=e==null?void 0:e.screens)==null?void 0:b.welcome)==null?void 0:p.width)||"375px",minHeight:((y=(E=e==null?void 0:e.screens)==null?void 0:E.welcome)==null?void 0:y.minHeight)||"1px"},sessions:{width:((_=(A=e==null?void 0:e.screens)==null?void 0:A.sessions)==null?void 0:_.width)||"450px",height:((O=(L=e==null?void 0:e.screens)==null?void 0:L.sessions)==null?void 0:O.height)||"600px"},chat:{width:((F=(P=e==null?void 0:e.screens)==null?void 0:P.chat)==null?void 0:F.width)||"525px",height:((H=(I=e==null?void 0:e.screens)==null?void 0:I.chat)==null?void 0:H.height)||"700px"}}},n={maxHeight:`
|
|
28
|
+
`},a),i}function Rf(e,t){return e&&"run"in e?async function(n,r){const a=ei(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ei(n,{file:r,...e||t})}}function ti(e){if(e)throw e}var En=Object.prototype.hasOwnProperty,Xs=Object.prototype.toString,ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ai=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Xs.call(t)==="[object Array]"},ii=function(t){if(!t||Xs.call(t)!=="[object Object]")return!1;var n=En.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&En.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||En.call(t,a)},si=function(t,n){ni&&n.name==="__proto__"?ni(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},oi=function(t,n){if(n==="__proto__")if(En.call(t,n)){if(ri)return ri(t,n).value}else return;return t[n]},Df=function e(){var t,n,r,a,i,s,u=arguments[0],l=1,c=arguments.length,h=!1;for(typeof u=="boolean"&&(h=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=oi(u,n),a=oi(t,n),u!==a&&(h&&a&&(ii(a)||(i=ai(a)))?(i?(i=!1,s=r&&ai(r)?r:[]):s=r&&ii(r)?r:{},si(u,{name:n,newValue:e(h,s,a)})):typeof a<"u"&&si(u,{name:n,newValue:a}));return u};const rr=Q.getDefaultExportFromCjs(Df);function Cr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vf(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...a);function u(l,...c){const h=e[++i];let d=-1;if(l){s(l);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,h?Pf(h,u)(...c):s(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Pf(e,t){let n;return r;function r(...s){const u=e.length>s.length;let l;u&&s.push(a);try{l=e.apply(this,s)}catch(c){const h=c;if(u&&n)throw h;return a(h)}u||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...u){n||(n=!0,t(s,...u))}function i(s){a(null,s)}}const ze={basename:Mf,dirname:Bf,extname:Ff,join:Hf,sep:"/"};function Mf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');sn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(r=a):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Bf(e){if(sn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ff(e){sn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Hf(...e){let t=-1,n;for(;++t<e.length;)sn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Uf(n)}function Uf(e){sn(e);const t=e.codePointAt(0)===47;let n=zf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zf(e,t){let n="",r=0,a=-1,i=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else u===46&&i>-1?i++:i=-1}return n}function sn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jf={cwd:Yf};function Yf(){return"/"}function _r(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qf(e){if(typeof e=="string")e=new URL(e);else if(!_r(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Wf(e)}function Wf(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const ar=["history","path","basename","stem","extname","dirname"];class Ks{constructor(t){let n;t?_r(t)?n={path:t}:typeof t=="string"||Vf(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":jf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ar.length;){const i=ar[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)ar.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ze.basename(this.path):void 0}set basename(t){sr(t,"basename"),ir(t,"basename"),this.path=ze.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ze.dirname(this.path):void 0}set dirname(t){ui(this.basename,"dirname"),this.path=ze.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ze.extname(this.path):void 0}set extname(t){if(ir(t,"extname"),ui(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ze.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_r(t)&&(t=qf(t)),sr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ze.basename(this.path,this.extname):void 0}set stem(t){sr(t,"stem"),ir(t,"stem"),this.path=ze.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new ye(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ir(e,t){if(e&&e.includes(ze.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ze.sep+"`")}function sr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ui(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Vf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gf=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},Qf={}.hasOwnProperty;class Qr extends Gf{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vf()}copy(){const t=new Qr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(rr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(lr("data",this.frozen),this.namespace[t]=n,this):Qf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(lr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=mn(t),r=this.parser||this.Parser;return or("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),or("process",this.parser||this.Parser),ur("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const u=mn(t),l=r.parse(u);r.run(l,u,function(h,d,b){if(h||!d||!b)return c(h);const p=d,E=r.stringify(p,b);$f(E)?b.value=E:b.result=E,c(h,b)});function c(h,d){h||!d?s(h):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),or("processSync",this.parser||this.Parser),ur("processSync",this.compiler||this.Compiler),this.process(t,a),ci("processSync","process",n),r;function a(i,s){n=!0,ti(i),r=s}}run(t,n,r){li(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,u){const l=mn(n);a.run(t,l,c);function c(h,d,b){const p=d||t;h?u(h):s?s(p):r(void 0,p,b)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),ci("runSync","run",r),a;function i(s,u){ti(s),a=u,r=!0}}stringify(t,n){this.freeze();const r=mn(n),a=this.compiler||this.Compiler;return ur("stringify",a),li(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(lr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;l(h,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(c.plugins),c.settings&&(a.settings=rr(!0,a.settings,c.settings))}function u(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,h){let d=-1,b=-1;for(;++d<r.length;)if(r[d][0]===c){b=d;break}if(b===-1)r.push([c,...h]);else if(h.length>0){let[p,...E]=h;const y=r[b][1];Cr(y)&&Cr(p)&&(p=rr(!0,y,p)),r[b]=[c,p,...E]}}}}const Xf=new Qr().freeze();function or(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ur(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function li(e){if(!Cr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ci(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mn(e){return Kf(e)?e:new Ks(e)}function Kf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $f(e){return typeof e=="string"||Jf(e)}function Jf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Zf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",di=[],hi={allowDangerousHtml:!0},em=/^(https?|ircs?|mailto|xmpp)$/i,tm=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nm(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,s=e.disallowedElements,u=e.rehypePlugins||di,l=e.remarkPlugins||di,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hi}:hi,h=e.skipHtml,d=e.unwrapDisallowed,b=e.urlTransform||rm,p=Xf().use(Wp).use(l).use(Rf,c).use(u),E=new Ks;typeof r=="string"&&(E.value=r);for(const L of tm)Object.hasOwn(e,L.from)&&(""+L.from+(L.to?"use `"+L.to+"` instead":"remove it")+Zf+L.id,void 0);const y=p.parse(E);let A=p.runSync(y,E);return a&&(A={type:"element",tagName:"div",properties:{className:a},children:A.type==="root"?A.children:[A]}),Pn(A,_),Jh(A,{Fragment:f.Fragment,components:i,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function _(L,O,P){if(L.type==="raw"&&P&&typeof O=="number")return h?P.children.splice(O,1):P.children[O]={type:"text",value:L.value},O;if(L.type==="element"){let F;for(F in nr)if(Object.hasOwn(nr,F)&&Object.hasOwn(L.properties,F)){const I=L.properties[F],H=nr[F];(H===null||H.includes(L.tagName))&&(L.properties[F]=b(String(I||""),F,L))}}if(L.type==="element"){let F=t?!t.includes(L.tagName):s?s.includes(L.tagName):!1;if(!F&&n&&typeof O=="number"&&(F=!n(L,O,P)),F&&P&&typeof O=="number")return d&&L.children?P.children.splice(O,1,...L.children):P.children.splice(O,1),O}}}function rm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||em.test(e.slice(0,t))?e:""}const $s=K.memo(nm,(e,t)=>e.children===t.children&&e.className===t.className),pi=/[#.]/g;function am(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){pi.lastIndex=a;const u=pi.exec(n),l=n.slice(a,u?u.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),u&&(i=u[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}const Ar={}.hasOwnProperty;function Js(e,t,n){const r=n&&um(n);function a(i,s,...u){let l=-1,c;if(i==null){c={type:"root",children:[]};const h=s;u.unshift(h)}else if(c=am(i,t),c.tagName=c.tagName.toLowerCase(),r&&Ar.call(r,c.tagName)&&(c.tagName=r[c.tagName]),im(s))u.unshift(s);else{let h;for(h in s)Ar.call(s,h)&&sm(e,c.properties,h,s[h])}for(;++l<u.length;)kr(c.children,u[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function im(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function sm(e,t,n,r){const a=Bn(e,n);let i=-1,s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=Ma(r):a.commaSeparated?s=Oa(r):a.commaOrSpaceSeparated?s=Ma(Oa(r).join(" ")):s=fi(a,a.property,r):Array.isArray(r)?s=r.concat():s=a.property==="style"?om(r):String(r);if(Array.isArray(s)){const u=[];for(;++i<s.length;){const l=fi(a,a.property,s[i]);u[i]=l}s=u}if(a.property==="className"&&Array.isArray(t.className)){const u=s;s=t.className.concat(u)}t[a.property]=s}}function kr(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)kr(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?kr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function fi(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Jt(n)===Jt(t)))return!0}return n}function om(e){const t=[];let n;for(n in e)Ar.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function um(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const lm=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],cm=Js(an,"div"),dm=Js(st,"g",lm);function hm(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let u=n[s];if(u===void 0){const l=mi(t,n[s-1]);u=l===-1?t.length+1:l+1,n[s]=u}if(u>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const u=n[n.length-1],l=mi(t,u),c=l===-1?t.length+1:l+1;if(u===c)break;n.push(c)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function mi(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
29
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const dt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Zs={}.hasOwnProperty,pm=Object.prototype;function fm(e,t){const n=t||{};return Xr({file:n.file||void 0,location:!1,schema:n.space==="svg"?st:an,verbose:n.verbose||!1},e)}function Xr(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},xn(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:eo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=hm(i),u=s.toPoint(0),l=s.toPoint(i.length);n.position={start:u,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},xn(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},xn(e,r,n),n}default:return n=mm(e,t),n}}function eo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Xr(e,t[n]);r.push(a)}return r}function mm(e,t){const n=e.schema;e.schema=t.namespaceURI===dt.svg?st:an;let r=-1;const a={};for(;++r<t.attrs.length;){const u=t.attrs[r],l=(u.prefix?u.prefix+":":"")+u.name;Zs.call(pm,l)||(a[l]=u.value)}const s=(e.schema.space==="svg"?dm:cm)(t.tagName,a,eo(e,t.childNodes));if(xn(e,t,s),s.tagName==="template"){const u=t,l=u.sourceCodeLocation,c=l&&l.startTag&&Tt(l.startTag),h=l&&l.endTag&&Tt(l.endTag),d=Xr(e,u.content);c&&h&&e.file&&(d.position={start:c.end,end:h.start}),s.content=d}return e.schema=n,s}function xn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=gm(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function gm(e,t,n){const r=Tt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)Zs.call(n.attrs,s)&&(i[Bn(e.schema,s).property]=Tt(n.attrs[s]));n.startTag;const u=Tt(n.startTag),l=n.endTag?Tt(n.endTag):void 0,c={opening:u};l&&(c.closing=l),c.properties=i,t.data={position:c}}}return r}function Tt(e){const t=gi({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=gi({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function gi(e){return e.line&&e.column?e:void 0}const bm={},Em={}.hasOwnProperty,to=Gi("type",{handlers:{root:wm,element:Am,text:Cm,comment:_m,doctype:ym}});function xm(e,t){const r=(t||bm).space;return to(e,r==="svg"?st:an)}function wm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Kr(e.children,n,t),Rt(e,n),n}function Tm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Kr(e.children,n,t),Rt(e,n),n}function ym(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rt(e,t),t}function Cm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Rt(e,t),t}function _m(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Rt(e,t),t}function Am(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=st);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Em.call(e.properties,i)){const l=km(r,i,e.properties[i]);l&&a.push(l)}}const s=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:dt[s],childNodes:[],parentNode:null};return u.childNodes=Kr(e.children,u,r),Rt(e,u),e.tagName==="template"&&e.content&&(u.content=Tm(e.content,r)),u}function km(e,t,n){const r=Bn(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?_s(n):Ds(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=dt[r.space]}return a}function Kr(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=to(e[r],n);i.parentNode=t,a.push(i)}return a}function Rt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Nm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Im=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ue="�";var m;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(m||(m={}));const Ne={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function no(e){return e>=55296&&e<=57343}function Sm(e){return e>=56320&&e<=57343}function Lm(e,t){return(e-55296)*1024+9216+t}function ro(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ao(e){return e>=64976&&e<=65007||Im.has(e)}var N;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(N||(N={}));const Om=65536;class Rm{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Om,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,u=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Sm(n))return this.pos++,this._addGap(),Lm(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(N.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;const r=this.html.charCodeAt(n);return r===m.CARRIAGE_RETURN?m.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let t=this.html.charCodeAt(this.pos);return t===m.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED):t===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,no(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===m.LINE_FEED||t===m.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ro(t)?this._err(N.controlCharacterInInputStream):ao(t)&&this._err(N.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var X;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(X||(X={}));function io(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const so=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Dm=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var cr;const vm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Pm=(cr=String.fromCodePoint)!==null&&cr!==void 0?cr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Mm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vm.get(e))!==null&&t!==void 0?t:e}var Ee;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ee||(Ee={}));const Bm=32;var at;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(at||(at={}));function Nr(e){return e>=Ee.ZERO&&e<=Ee.NINE}function Fm(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_F||e>=Ee.LOWER_A&&e<=Ee.LOWER_F}function Hm(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_Z||e>=Ee.LOWER_A&&e<=Ee.LOWER_Z||Nr(e)}function Um(e){return e===Ee.EQUALS||Hm(e)}var be;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(be||(be={}));var Xe;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Xe||(Xe={}));class oo{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=be.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Xe.Strict}startEntity(t){this.decodeMode=t,this.state=be.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case be.EntityStart:return t.charCodeAt(n)===Ee.NUM?(this.state=be.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=be.NamedEntity,this.stateNamedEntity(t,n));case be.NumericStart:return this.stateNumericStart(t,n);case be.NumericDecimal:return this.stateNumericDecimal(t,n);case be.NumericHex:return this.stateNumericHex(t,n);case be.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Bm)===Ee.LOWER_X?(this.state=be.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=be.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Nr(a)||Fm(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Nr(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ee.SEMI)this.consumed+=1;else if(this.decodeMode===Xe.Strict)return 0;return this.emitCodePoint(Mm(this.result),this.consumed),this.errors&&(t!==Ee.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&at.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=zm(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Xe.Attribute&&(i===0||Um(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&at.VALUE_LENGTH)>>14,i!==0){if(s===Ee.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Xe.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&at.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~at.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case be.NamedEntity:return this.result!==0&&(this.decodeMode!==Xe.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case be.NumericDecimal:return this.emitNumericEntity(0,2);case be.NumericHex:return this.emitNumericEntity(0,3);case be.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case be.EntityStart:return 0}}}function uo(e){let t="";const n=new oo(e,r=>t+=Pm(r));return function(a,i){let s=0,u=0;for(;(u=a.indexOf("&",u))>=0;){t+=a.slice(s,u),n.startEntity(i);const c=n.write(a,u+1);if(c<0){s=u+n.end();break}s=u+c,u=c===0?s+1:s}const l=t+a.slice(s);return t="",l}}function zm(e,t,n,r){const a=(t&at.BRANCH_LENGTH)>>7,i=t&at.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let s=n,u=s+a-1;for(;s<=u;){const l=s+u>>>1,c=e[l];if(c<r)s=l+1;else if(c>r)u=l-1;else return e[l+a]}return-1}uo(so);uo(Dm);var R;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(R||(R={}));var ht;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ht||(ht={}));var De;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(De||(De={}));var C;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(C||(C={}));var o;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(o||(o={}));const jm=new Map([[C.A,o.A],[C.ADDRESS,o.ADDRESS],[C.ANNOTATION_XML,o.ANNOTATION_XML],[C.APPLET,o.APPLET],[C.AREA,o.AREA],[C.ARTICLE,o.ARTICLE],[C.ASIDE,o.ASIDE],[C.B,o.B],[C.BASE,o.BASE],[C.BASEFONT,o.BASEFONT],[C.BGSOUND,o.BGSOUND],[C.BIG,o.BIG],[C.BLOCKQUOTE,o.BLOCKQUOTE],[C.BODY,o.BODY],[C.BR,o.BR],[C.BUTTON,o.BUTTON],[C.CAPTION,o.CAPTION],[C.CENTER,o.CENTER],[C.CODE,o.CODE],[C.COL,o.COL],[C.COLGROUP,o.COLGROUP],[C.DD,o.DD],[C.DESC,o.DESC],[C.DETAILS,o.DETAILS],[C.DIALOG,o.DIALOG],[C.DIR,o.DIR],[C.DIV,o.DIV],[C.DL,o.DL],[C.DT,o.DT],[C.EM,o.EM],[C.EMBED,o.EMBED],[C.FIELDSET,o.FIELDSET],[C.FIGCAPTION,o.FIGCAPTION],[C.FIGURE,o.FIGURE],[C.FONT,o.FONT],[C.FOOTER,o.FOOTER],[C.FOREIGN_OBJECT,o.FOREIGN_OBJECT],[C.FORM,o.FORM],[C.FRAME,o.FRAME],[C.FRAMESET,o.FRAMESET],[C.H1,o.H1],[C.H2,o.H2],[C.H3,o.H3],[C.H4,o.H4],[C.H5,o.H5],[C.H6,o.H6],[C.HEAD,o.HEAD],[C.HEADER,o.HEADER],[C.HGROUP,o.HGROUP],[C.HR,o.HR],[C.HTML,o.HTML],[C.I,o.I],[C.IMG,o.IMG],[C.IMAGE,o.IMAGE],[C.INPUT,o.INPUT],[C.IFRAME,o.IFRAME],[C.KEYGEN,o.KEYGEN],[C.LABEL,o.LABEL],[C.LI,o.LI],[C.LINK,o.LINK],[C.LISTING,o.LISTING],[C.MAIN,o.MAIN],[C.MALIGNMARK,o.MALIGNMARK],[C.MARQUEE,o.MARQUEE],[C.MATH,o.MATH],[C.MENU,o.MENU],[C.META,o.META],[C.MGLYPH,o.MGLYPH],[C.MI,o.MI],[C.MO,o.MO],[C.MN,o.MN],[C.MS,o.MS],[C.MTEXT,o.MTEXT],[C.NAV,o.NAV],[C.NOBR,o.NOBR],[C.NOFRAMES,o.NOFRAMES],[C.NOEMBED,o.NOEMBED],[C.NOSCRIPT,o.NOSCRIPT],[C.OBJECT,o.OBJECT],[C.OL,o.OL],[C.OPTGROUP,o.OPTGROUP],[C.OPTION,o.OPTION],[C.P,o.P],[C.PARAM,o.PARAM],[C.PLAINTEXT,o.PLAINTEXT],[C.PRE,o.PRE],[C.RB,o.RB],[C.RP,o.RP],[C.RT,o.RT],[C.RTC,o.RTC],[C.RUBY,o.RUBY],[C.S,o.S],[C.SCRIPT,o.SCRIPT],[C.SEARCH,o.SEARCH],[C.SECTION,o.SECTION],[C.SELECT,o.SELECT],[C.SOURCE,o.SOURCE],[C.SMALL,o.SMALL],[C.SPAN,o.SPAN],[C.STRIKE,o.STRIKE],[C.STRONG,o.STRONG],[C.STYLE,o.STYLE],[C.SUB,o.SUB],[C.SUMMARY,o.SUMMARY],[C.SUP,o.SUP],[C.TABLE,o.TABLE],[C.TBODY,o.TBODY],[C.TEMPLATE,o.TEMPLATE],[C.TEXTAREA,o.TEXTAREA],[C.TFOOT,o.TFOOT],[C.TD,o.TD],[C.TH,o.TH],[C.THEAD,o.THEAD],[C.TITLE,o.TITLE],[C.TR,o.TR],[C.TRACK,o.TRACK],[C.TT,o.TT],[C.U,o.U],[C.UL,o.UL],[C.SVG,o.SVG],[C.VAR,o.VAR],[C.WBR,o.WBR],[C.XMP,o.XMP]]);function Dt(e){var t;return(t=jm.get(e))!==null&&t!==void 0?t:o.UNKNOWN}const D=o,Ym={[R.HTML]:new Set([D.ADDRESS,D.APPLET,D.AREA,D.ARTICLE,D.ASIDE,D.BASE,D.BASEFONT,D.BGSOUND,D.BLOCKQUOTE,D.BODY,D.BR,D.BUTTON,D.CAPTION,D.CENTER,D.COL,D.COLGROUP,D.DD,D.DETAILS,D.DIR,D.DIV,D.DL,D.DT,D.EMBED,D.FIELDSET,D.FIGCAPTION,D.FIGURE,D.FOOTER,D.FORM,D.FRAME,D.FRAMESET,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HEADER,D.HGROUP,D.HR,D.HTML,D.IFRAME,D.IMG,D.INPUT,D.LI,D.LINK,D.LISTING,D.MAIN,D.MARQUEE,D.MENU,D.META,D.NAV,D.NOEMBED,D.NOFRAMES,D.NOSCRIPT,D.OBJECT,D.OL,D.P,D.PARAM,D.PLAINTEXT,D.PRE,D.SCRIPT,D.SECTION,D.SELECT,D.SOURCE,D.STYLE,D.SUMMARY,D.TABLE,D.TBODY,D.TD,D.TEMPLATE,D.TEXTAREA,D.TFOOT,D.TH,D.THEAD,D.TITLE,D.TR,D.TRACK,D.UL,D.WBR,D.XMP]),[R.MATHML]:new Set([D.MI,D.MO,D.MN,D.MS,D.MTEXT,D.ANNOTATION_XML]),[R.SVG]:new Set([D.TITLE,D.FOREIGN_OBJECT,D.DESC]),[R.XLINK]:new Set,[R.XML]:new Set,[R.XMLNS]:new Set},Ir=new Set([D.H1,D.H2,D.H3,D.H4,D.H5,D.H6]);C.STYLE,C.SCRIPT,C.XMP,C.IFRAME,C.NOEMBED,C.NOFRAMES,C.PLAINTEXT;var g;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(g||(g={}));const he={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function qm(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function qt(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function Wm(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z}function nt(e){return Wm(e)||qt(e)}function bi(e){return nt(e)||qm(e)}function gn(e){return e+32}function lo(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function Ei(e){return lo(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}function Vm(e){return e===m.NULL?N.nullCharacterReference:e>1114111?N.characterReferenceOutsideUnicodeRange:no(e)?N.surrogateCharacterReference:ao(e)?N.noncharacterCharacterReference:ro(e)||e===m.CARRIAGE_RETURN?N.controlCharacterReference:null}class Gm{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Rm(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new oo(so,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(N.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(N.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Vm(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:X.START_TAG,tagName:"",tagID:o.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:X.END_TAG,tagName:"",tagID:o.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:X.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:X.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(io(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(N.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Dt(t.tagName),t.type===X.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(N.endTagWithAttributes),t.selfClosing&&this._err(N.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case X.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case X.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case X.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:X.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=lo(t)?X.WHITESPACE_CHARACTER:t===m.NULL?X.NULL_CHARACTER:X.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(X.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Xe.Attribute:Xe.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case g.DATA:{this._stateData(t);break}case g.RCDATA:{this._stateRcdata(t);break}case g.RAWTEXT:{this._stateRawtext(t);break}case g.SCRIPT_DATA:{this._stateScriptData(t);break}case g.PLAINTEXT:{this._statePlaintext(t);break}case g.TAG_OPEN:{this._stateTagOpen(t);break}case g.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case g.TAG_NAME:{this._stateTagName(t);break}case g.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case g.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case g.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case g.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case g.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case g.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case g.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case g.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case g.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case g.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case g.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case g.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case g.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case g.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case g.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case g.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case g.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case g.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case g.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case g.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case g.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case g.BOGUS_COMMENT:{this._stateBogusComment(t);break}case g.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case g.COMMENT_START:{this._stateCommentStart(t);break}case g.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case g.COMMENT:{this._stateComment(t);break}case g.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case g.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case g.COMMENT_END:{this._stateCommentEnd(t);break}case g.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case g.DOCTYPE:{this._stateDoctype(t);break}case g.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case g.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case g.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case g.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case g.CDATA_SECTION:{this._stateCdataSection(t);break}case g.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case g.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case g.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case g.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case m.LESS_THAN_SIGN:{this.state=g.TAG_OPEN;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitCodePoint(t);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case m.AMPERSAND:{this._startCharacterReference();break}case m.LESS_THAN_SIGN:{this.state=g.RCDATA_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case m.LESS_THAN_SIGN:{this.state=g.RAWTEXT_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(nt(t))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case m.EXCLAMATION_MARK:{this.state=g.MARKUP_DECLARATION_OPEN;break}case m.SOLIDUS:{this.state=g.END_TAG_OPEN;break}case m.QUESTION_MARK:{this._err(N.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t);break}case m.EOF:{this._err(N.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(N.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(nt(t))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case m.GREATER_THAN_SIGN:{this._err(N.missingEndTagName),this.state=g.DATA;break}case m.EOF:{this._err(N.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(N.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_ATTRIBUTE_NAME;break}case m.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.tagName+=ue;break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(qt(t)?gn(t):t)}}_stateRcdataLessThanSign(t){t===m.SOLIDUS?this.state=g.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){nt(t)?(this.state=g.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=g.BEFORE_ATTRIBUTE_NAME,!1;case m.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=g.SELF_CLOSING_START_TAG,!1;case m.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=g.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===m.SOLIDUS?this.state=g.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){nt(t)?(this.state=g.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case m.SOLIDUS:{this.state=g.SCRIPT_DATA_END_TAG_OPEN;break}case m.EXCLAMATION_MARK:{this.state=g.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=g.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){nt(t)?(this.state=g.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case m.HYPHEN_MINUS:{this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===m.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:nt(t)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){nt(t)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ne.SCRIPT,!1)&&Ei(this.preprocessor.peek(Ne.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ne.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case m.HYPHEN_MINUS:{this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ue);break}case m.EOF:{this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===m.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ne.SCRIPT,!1)&&Ei(this.preprocessor.peek(Ne.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ne.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:{this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.EQUALS_SIGN:{this._err(N.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=g.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:{this._leaveAttrName(),this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.EQUALS_SIGN:{this._leaveAttrName(),this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:{this._err(N.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.name+=ue;break}default:this.currentAttr.name+=String.fromCodePoint(qt(t)?gn(t):t)}}_stateAfterAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case m.EQUALS_SIGN:{this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{this.state=g.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this.state=g.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingAttributeValue),this.state=g.DATA,this.emitCurrentTagToken();break}default:this.state=g.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case m.QUOTATION_MARK:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.value+=ue;break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case m.APOSTROPHE:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.value+=ue;break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case m.AMPERSAND:{this._startCharacterReference();break}case m.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case m.NULL:{this._err(N.unexpectedNullCharacter),this.currentAttr.value+=ue;break}case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:case m.EQUALS_SIGN:case m.GRAVE_ACCENT:{this._err(N.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case m.SOLIDUS:{this._leaveAttrValue(),this.state=g.SELF_CLOSING_START_TAG;break}case m.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this._err(N.missingWhitespaceBetweenAttributes),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case m.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(N.eofInTag),this._emitEOFToken();break}default:this._err(N.unexpectedSolidusInTag),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(n);break}case m.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.data+=ue;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ne.DASH_DASH,!0)?(this._createCommentToken(Ne.DASH_DASH.length+1),this.state=g.COMMENT_START):this._consumeSequenceIfMatch(Ne.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ne.DOCTYPE.length+1),this.state=g.DOCTYPE):this._consumeSequenceIfMatch(Ne.CDATA_START,!0)?this.inForeignNode?this.state=g.CDATA_SECTION:(this._err(N.cdataInHtmlContent),this._createCommentToken(Ne.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=g.BOGUS_COMMENT):this._ensureHibernation()||(this._err(N.incorrectlyOpenedComment),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_START_DASH;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptClosingOfEmptyComment),this.state=g.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=g.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptClosingOfEmptyComment),this.state=g.DATA,this.emitCurrentComment(n);break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=g.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_END_DASH;break}case m.LESS_THAN_SIGN:{n.data+="<",this.state=g.COMMENT_LESS_THAN_SIGN;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.data+=ue;break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case m.EXCLAMATION_MARK:{n.data+="!",this.state=g.COMMENT_LESS_THAN_SIGN_BANG;break}case m.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=g.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=g.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=g.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==m.GREATER_THAN_SIGN&&t!==m.EOF&&this._err(N.nestedComment),this.state=g.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=g.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(n);break}case m.EXCLAMATION_MARK:{this.state=g.COMMENT_END_BANG;break}case m.HYPHEN_MINUS:{n.data+="-";break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=g.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{n.data+="--!",this.state=g.COMMENT_END_DASH;break}case m.GREATER_THAN_SIGN:{this._err(N.incorrectlyClosedComment),this.state=g.DATA,this.emitCurrentComment(n);break}case m.EOF:{this._err(N.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=g.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case m.EOF:{this._err(N.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingWhitespaceBeforeDoctypeName),this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(qt(t))this._createDoctypeToken(String.fromCharCode(gn(t))),this.state=g.DOCTYPE_NAME;else switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.NULL:{this._err(N.unexpectedNullCharacter),this._createDoctypeToken(ue),this.state=g.DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=g.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.AFTER_DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.name+=ue;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(qt(t)?gn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ne.PUBLIC,!1)?this.state=g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ne.SYSTEM,!1)?this.state=g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(N.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.QUOTATION_MARK:{this._err(N.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(N.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case m.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.publicId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case m.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.publicId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case m.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.QUOTATION_MARK:{this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.QUOTATION_MARK:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.QUOTATION_MARK:{this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(N.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case m.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.systemId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case m.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.NULL:{this._err(N.unexpectedNullCharacter),n.systemId+=ue;break}case m.GREATER_THAN_SIGN:{this._err(N.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.EOF:{this._err(N.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(N.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case m.NULL:{this._err(N.unexpectedNullCharacter);break}case m.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case m.RIGHT_SQUARE_BRACKET:{this.state=g.CDATA_SECTION_BRACKET;break}case m.EOF:{this._err(N.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===m.RIGHT_SQUARE_BRACKET?this.state=g.CDATA_SECTION_END:(this._emitChars("]"),this.state=g.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case m.GREATER_THAN_SIGN:{this.state=g.DATA;break}case m.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=g.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&bi(this.preprocessor.peek(1))?g.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){bi(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===m.SEMICOLON&&this._err(N.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const co=new Set([o.DD,o.DT,o.LI,o.OPTGROUP,o.OPTION,o.P,o.RB,o.RP,o.RT,o.RTC]),xi=new Set([...co,o.CAPTION,o.COLGROUP,o.TBODY,o.TD,o.TFOOT,o.TH,o.THEAD,o.TR]),In=new Set([o.APPLET,o.CAPTION,o.HTML,o.MARQUEE,o.OBJECT,o.TABLE,o.TD,o.TEMPLATE,o.TH]),Qm=new Set([...In,o.OL,o.UL]),Xm=new Set([...In,o.BUTTON]),wi=new Set([o.ANNOTATION_XML,o.MI,o.MN,o.MO,o.MS,o.MTEXT]),Ti=new Set([o.DESC,o.FOREIGN_OBJECT,o.TITLE]),Km=new Set([o.TR,o.TEMPLATE,o.HTML]),$m=new Set([o.TBODY,o.TFOOT,o.THEAD,o.TEMPLATE,o.HTML]),Jm=new Set([o.TABLE,o.TEMPLATE,o.HTML]),Zm=new Set([o.TD,o.TH]);class e1{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=o.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===o.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===R.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==R.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ir,R.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Zm,R.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Jm,R.HTML)}clearBackToTableBodyContext(){this.clearBackTo($m,R.HTML)}clearBackToTableRowContext(){this.clearBackTo(Km,R.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===o.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===o.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case R.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case R.SVG:{if(Ti.has(a))return!1;break}case R.MATHML:{if(wi.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,In)}hasInListItemScope(t){return this.hasInDynamicScope(t,Qm)}hasInButtonScope(t){return this.hasInDynamicScope(t,Xm)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case R.HTML:{if(Ir.has(n))return!0;if(In.has(n))return!1;break}case R.SVG:{if(Ti.has(n))return!1;break}case R.MATHML:{if(wi.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===R.HTML)switch(this.tagIDs[n]){case t:return!0;case o.TABLE:case o.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===R.HTML)switch(this.tagIDs[t]){case o.TBODY:case o.THEAD:case o.TFOOT:return!0;case o.TABLE:case o.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===R.HTML)switch(this.tagIDs[n]){case t:return!0;case o.OPTION:case o.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;co.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;xi.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&xi.has(this.currentTagId);)this.pop()}}const dr=3;var je;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(je||(je={}));const yi={type:je.Marker};class t1{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===je.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===s){const h=this.treeAdapter.getAttrList(c);h.length===a&&r.push({idx:u,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<dr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<dr)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const u=r[s];u.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=dr&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(yi)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:je.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:je.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(yi);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===je.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===je.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===je.Element&&n.element===t)}}const rt={createDocument(){return{nodeName:"#document",mode:De.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};rt.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(rt.isTextNode(n)){n.value+=t;return}}rt.appendChild(e,rt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&rt.isTextNode(r)?r.value+=t:rt.insertBefore(e,rt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ho="html",n1="about:legacy-compat",r1="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",po=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a1=[...po,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],i1=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),fo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],s1=[...fo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ci(e,t){return t.some(n=>e.startsWith(n))}function o1(e){return e.name===ho&&e.publicId===null&&(e.systemId===null||e.systemId===n1)}function u1(e){if(e.name!==ho)return De.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===r1)return De.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),i1.has(n))return De.QUIRKS;let r=t===null?a1:po;if(Ci(n,r))return De.QUIRKS;if(r=t===null?fo:s1,Ci(n,r))return De.LIMITED_QUIRKS}return De.NO_QUIRKS}const _i={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},l1="definitionurl",c1="definitionURL",d1=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),h1=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:R.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:R.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:R.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:R.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:R.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:R.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:R.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:R.XML}],["xml:space",{prefix:"xml",name:"space",namespace:R.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:R.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:R.XMLNS}]]),p1=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),f1=new Set([o.B,o.BIG,o.BLOCKQUOTE,o.BODY,o.BR,o.CENTER,o.CODE,o.DD,o.DIV,o.DL,o.DT,o.EM,o.EMBED,o.H1,o.H2,o.H3,o.H4,o.H5,o.H6,o.HEAD,o.HR,o.I,o.IMG,o.LI,o.LISTING,o.MENU,o.META,o.NOBR,o.OL,o.P,o.PRE,o.RUBY,o.S,o.SMALL,o.SPAN,o.STRONG,o.STRIKE,o.SUB,o.SUP,o.TABLE,o.TT,o.U,o.UL,o.VAR]);function m1(e){const t=e.tagID;return t===o.FONT&&e.attrs.some(({name:r})=>r===ht.COLOR||r===ht.SIZE||r===ht.FACE)||f1.has(t)}function mo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===l1){e.attrs[t].name=c1;break}}function go(e){for(let t=0;t<e.attrs.length;t++){const n=d1.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function $r(e){for(let t=0;t<e.attrs.length;t++){const n=h1.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function g1(e){const t=p1.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Dt(e.tagName))}function b1(e,t){return t===R.MATHML&&(e===o.MI||e===o.MO||e===o.MN||e===o.MS||e===o.MTEXT)}function E1(e,t,n){if(t===R.MATHML&&e===o.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ht.ENCODING){const a=n[r].value.toLowerCase();return a===_i.TEXT_HTML||a===_i.APPLICATION_XML}}return t===R.SVG&&(e===o.FOREIGN_OBJECT||e===o.DESC||e===o.TITLE)}function x1(e,t,n,r){return(!r||r===R.HTML)&&E1(e,t,n)||(!r||r===R.MATHML)&&b1(e,t)}const w1="hidden",T1=8,y1=3;var x;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(x||(x={}));const C1={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},bo=new Set([o.TABLE,o.TBODY,o.TFOOT,o.THEAD,o.TR]),Ai={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:rt,onParseError:null};class ki{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=x.INITIAL,this.originalInsertionMode=x.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Ai,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Gm(this.options,this),this.activeFormattingElements=new t1(this.treeAdapter),this.fragmentContextID=r?Dt(this.treeAdapter.getTagName(r)):o.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new e1(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Ai,...n};t??(t=r.treeAdapter.createElement(C.TEMPLATE,R.HTML,[]));const a=r.treeAdapter.createElement("documentmock",R.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===o.TEMPLATE&&i.tmplInsertionModeStack.unshift(x.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:C1,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===R.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,R.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=x.TEXT}switchToPlaintextParsing(){this.insertionMode=x.TEXT,this.originalInsertionMode=x.IN_BODY,this.tokenizer.state=he.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===C.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==R.HTML))switch(this.fragmentContextID){case o.TITLE:case o.TEXTAREA:{this.tokenizer.state=he.RCDATA;break}case o.STYLE:case o.XMP:case o.IFRAME:case o.NOEMBED:case o.NOFRAMES:case o.NOSCRIPT:{this.tokenizer.state=he.RAWTEXT;break}case o.SCRIPT:{this.tokenizer.state=he.SCRIPT_DATA;break}case o.PLAINTEXT:{this.tokenizer.state=he.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,R.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,R.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(C.HTML,R.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,o.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===X.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===o.SVG&&this.treeAdapter.getTagName(n)===C.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===R.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===o.MGLYPH||t.tagID===o.MALIGNMARK)&&!this._isIntegrationPoint(r,n,R.HTML)}_processToken(t){switch(t.type){case X.CHARACTER:{this.onCharacter(t);break}case X.NULL_CHARACTER:{this.onNullCharacter(t);break}case X.COMMENT:{this.onComment(t);break}case X.DOCTYPE:{this.onDoctype(t);break}case X.START_TAG:{this._processStartTag(t);break}case X.END_TAG:{this.onEndTag(t);break}case X.EOF:{this.onEof(t);break}case X.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return x1(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===je.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=x.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(o.P),this.openElements.popUntilTagNamePopped(o.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case o.TR:{this.insertionMode=x.IN_ROW;return}case o.TBODY:case o.THEAD:case o.TFOOT:{this.insertionMode=x.IN_TABLE_BODY;return}case o.CAPTION:{this.insertionMode=x.IN_CAPTION;return}case o.COLGROUP:{this.insertionMode=x.IN_COLUMN_GROUP;return}case o.TABLE:{this.insertionMode=x.IN_TABLE;return}case o.BODY:{this.insertionMode=x.IN_BODY;return}case o.FRAMESET:{this.insertionMode=x.IN_FRAMESET;return}case o.SELECT:{this._resetInsertionModeForSelect(t);return}case o.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case o.HTML:{this.insertionMode=this.headElement?x.AFTER_HEAD:x.BEFORE_HEAD;return}case o.TD:case o.TH:{if(t>0){this.insertionMode=x.IN_CELL;return}break}case o.HEAD:{if(t>0){this.insertionMode=x.IN_HEAD;return}break}}this.insertionMode=x.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===o.TEMPLATE)break;if(r===o.TABLE){this.insertionMode=x.IN_SELECT_IN_TABLE;return}}this.insertionMode=x.IN_SELECT}_isElementCausesFosterParenting(t){return bo.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case o.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===R.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case o.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Ym[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zg(this,t);return}switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{Gt(this,t);break}case x.BEFORE_HEAD:{Qt(this,t);break}case x.IN_HEAD:{Xt(this,t);break}case x.IN_HEAD_NO_SCRIPT:{Kt(this,t);break}case x.AFTER_HEAD:{$t(this,t);break}case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:{xo(this,t);break}case x.TEXT:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{hr(this,t);break}case x.IN_TABLE_TEXT:{Ao(this,t);break}case x.IN_COLUMN_GROUP:{Sn(this,t);break}case x.AFTER_BODY:{Ln(this,t);break}case x.AFTER_AFTER_BODY:{wn(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Jg(this,t);return}switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{Gt(this,t);break}case x.BEFORE_HEAD:{Qt(this,t);break}case x.IN_HEAD:{Xt(this,t);break}case x.IN_HEAD_NO_SCRIPT:{Kt(this,t);break}case x.AFTER_HEAD:{$t(this,t);break}case x.TEXT:{this._insertCharacters(t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{hr(this,t);break}case x.IN_COLUMN_GROUP:{Sn(this,t);break}case x.AFTER_BODY:{Ln(this,t);break}case x.AFTER_AFTER_BODY:{wn(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Sr(this,t);return}switch(this.insertionMode){case x.INITIAL:case x.BEFORE_HTML:case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_TEMPLATE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:{Sr(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.AFTER_BODY:{L1(this,t);break}case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{O1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case x.INITIAL:{R1(this,t);break}case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:{this._err(t,N.misplacedDoctype);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,N.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?eb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{D1(this,t);break}case x.BEFORE_HEAD:{P1(this,t);break}case x.IN_HEAD:{Ue(this,t);break}case x.IN_HEAD_NO_SCRIPT:{F1(this,t);break}case x.AFTER_HEAD:{U1(this,t);break}case x.IN_BODY:{Ce(this,t);break}case x.IN_TABLE:{At(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.IN_CAPTION:{Mg(this,t);break}case x.IN_COLUMN_GROUP:{ea(this,t);break}case x.IN_TABLE_BODY:{jn(this,t);break}case x.IN_ROW:{Yn(this,t);break}case x.IN_CELL:{Hg(this,t);break}case x.IN_SELECT:{Io(this,t);break}case x.IN_SELECT_IN_TABLE:{zg(this,t);break}case x.IN_TEMPLATE:{Yg(this,t);break}case x.AFTER_BODY:{Wg(this,t);break}case x.IN_FRAMESET:{Vg(this,t);break}case x.AFTER_FRAMESET:{Qg(this,t);break}case x.AFTER_AFTER_BODY:{Kg(this,t);break}case x.AFTER_AFTER_FRAMESET:{$g(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?tb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{v1(this,t);break}case x.BEFORE_HEAD:{M1(this,t);break}case x.IN_HEAD:{B1(this,t);break}case x.IN_HEAD_NO_SCRIPT:{H1(this,t);break}case x.AFTER_HEAD:{z1(this,t);break}case x.IN_BODY:{zn(this,t);break}case x.TEXT:{kg(this,t);break}case x.IN_TABLE:{en(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.IN_CAPTION:{Bg(this,t);break}case x.IN_COLUMN_GROUP:{Fg(this,t);break}case x.IN_TABLE_BODY:{Lr(this,t);break}case x.IN_ROW:{No(this,t);break}case x.IN_CELL:{Ug(this,t);break}case x.IN_SELECT:{So(this,t);break}case x.IN_SELECT_IN_TABLE:{jg(this,t);break}case x.IN_TEMPLATE:{qg(this,t);break}case x.AFTER_BODY:{Oo(this,t);break}case x.IN_FRAMESET:{Gg(this,t);break}case x.AFTER_FRAMESET:{Xg(this,t);break}case x.AFTER_AFTER_BODY:{wn(this,t);break}}}onEof(t){switch(this.insertionMode){case x.INITIAL:{jt(this,t);break}case x.BEFORE_HTML:{Gt(this,t);break}case x.BEFORE_HEAD:{Qt(this,t);break}case x.IN_HEAD:{Xt(this,t);break}case x.IN_HEAD_NO_SCRIPT:{Kt(this,t);break}case x.AFTER_HEAD:{$t(this,t);break}case x.IN_BODY:case x.IN_TABLE:case x.IN_CAPTION:case x.IN_COLUMN_GROUP:case x.IN_TABLE_BODY:case x.IN_ROW:case x.IN_CELL:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:{Co(this,t);break}case x.TEXT:{Ng(this,t);break}case x.IN_TABLE_TEXT:{Yt(this,t);break}case x.IN_TEMPLATE:{Lo(this,t);break}case x.AFTER_BODY:case x.IN_FRAMESET:case x.AFTER_FRAMESET:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{Zr(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===m.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:case x.TEXT:case x.IN_COLUMN_GROUP:case x.IN_SELECT:case x.IN_SELECT_IN_TABLE:case x.IN_FRAMESET:case x.AFTER_FRAMESET:{this._insertCharacters(t);break}case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:case x.AFTER_BODY:case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{Eo(this,t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{hr(this,t);break}case x.IN_TABLE_TEXT:{_o(this,t);break}}}}function _1(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):yo(e,t),n}function A1(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function k1(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),l=u&&i>=y1;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=N1(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function N1(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function I1(e,t,n){const r=e.treeAdapter.getTagName(t),a=Dt(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===o.TEMPLATE&&i===R.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function S1(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Jr(e,t){for(let n=0;n<T1;n++){const r=_1(e,t);if(!r)break;const a=A1(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=k1(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&I1(e,s,i),S1(e,a,r)}}function Sr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function L1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function O1(e,t){e._appendCommentNode(t,e.document)}function Zr(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function R1(e,t){e._setDocumentType(t);const n=t.forceQuirks?De.QUIRKS:u1(t);o1(t)||e._err(t,N.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x.BEFORE_HTML}function jt(e,t){e._err(t,N.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,De.QUIRKS),e.insertionMode=x.BEFORE_HTML,e._processToken(t)}function D1(e,t){t.tagID===o.HTML?(e._insertElement(t,R.HTML),e.insertionMode=x.BEFORE_HEAD):Gt(e,t)}function v1(e,t){const n=t.tagID;(n===o.HTML||n===o.HEAD||n===o.BODY||n===o.BR)&&Gt(e,t)}function Gt(e,t){e._insertFakeRootElement(),e.insertionMode=x.BEFORE_HEAD,e._processToken(t)}function P1(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.HEAD:{e._insertElement(t,R.HTML),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD;break}default:Qt(e,t)}}function M1(e,t){const n=t.tagID;n===o.HEAD||n===o.BODY||n===o.HTML||n===o.BR?Qt(e,t):e._err(t,N.endTagWithoutMatchingOpenElement)}function Qt(e,t){e._insertFakeElement(C.HEAD,o.HEAD),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD,e._processToken(t)}function Ue(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.BASE:case o.BASEFONT:case o.BGSOUND:case o.LINK:case o.META:{e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.TITLE:{e._switchToTextParsing(t,he.RCDATA);break}case o.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,he.RAWTEXT):(e._insertElement(t,R.HTML),e.insertionMode=x.IN_HEAD_NO_SCRIPT);break}case o.NOFRAMES:case o.STYLE:{e._switchToTextParsing(t,he.RAWTEXT);break}case o.SCRIPT:{e._switchToTextParsing(t,he.SCRIPT_DATA);break}case o.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=x.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(x.IN_TEMPLATE);break}case o.HEAD:{e._err(t,N.misplacedStartTagForHeadElement);break}default:Xt(e,t)}}function B1(e,t){switch(t.tagID){case o.HEAD:{e.openElements.pop(),e.insertionMode=x.AFTER_HEAD;break}case o.BODY:case o.BR:case o.HTML:{Xt(e,t);break}case o.TEMPLATE:{mt(e,t);break}default:e._err(t,N.endTagWithoutMatchingOpenElement)}}function mt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==o.TEMPLATE&&e._err(t,N.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(o.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,N.endTagWithoutMatchingOpenElement)}function Xt(e,t){e.openElements.pop(),e.insertionMode=x.AFTER_HEAD,e._processToken(t)}function F1(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.BASEFONT:case o.BGSOUND:case o.HEAD:case o.LINK:case o.META:case o.NOFRAMES:case o.STYLE:{Ue(e,t);break}case o.NOSCRIPT:{e._err(t,N.nestedNoscriptInHead);break}default:Kt(e,t)}}function H1(e,t){switch(t.tagID){case o.NOSCRIPT:{e.openElements.pop(),e.insertionMode=x.IN_HEAD;break}case o.BR:{Kt(e,t);break}default:e._err(t,N.endTagWithoutMatchingOpenElement)}}function Kt(e,t){const n=t.type===X.EOF?N.openElementsLeftAfterEof:N.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=x.IN_HEAD,e._processToken(t)}function U1(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.BODY:{e._insertElement(t,R.HTML),e.framesetOk=!1,e.insertionMode=x.IN_BODY;break}case o.FRAMESET:{e._insertElement(t,R.HTML),e.insertionMode=x.IN_FRAMESET;break}case o.BASE:case o.BASEFONT:case o.BGSOUND:case o.LINK:case o.META:case o.NOFRAMES:case o.SCRIPT:case o.STYLE:case o.TEMPLATE:case o.TITLE:{e._err(t,N.abandonedHeadElementChild),e.openElements.push(e.headElement,o.HEAD),Ue(e,t),e.openElements.remove(e.headElement);break}case o.HEAD:{e._err(t,N.misplacedStartTagForHeadElement);break}default:$t(e,t)}}function z1(e,t){switch(t.tagID){case o.BODY:case o.HTML:case o.BR:{$t(e,t);break}case o.TEMPLATE:{mt(e,t);break}default:e._err(t,N.endTagWithoutMatchingOpenElement)}}function $t(e,t){e._insertFakeElement(C.BODY,o.BODY),e.insertionMode=x.IN_BODY,Un(e,t)}function Un(e,t){switch(t.type){case X.CHARACTER:{xo(e,t);break}case X.WHITESPACE_CHARACTER:{Eo(e,t);break}case X.COMMENT:{Sr(e,t);break}case X.START_TAG:{Ce(e,t);break}case X.END_TAG:{zn(e,t);break}case X.EOF:{Co(e,t);break}}}function Eo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function j1(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Y1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function q1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_FRAMESET)}function W1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML)}function V1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),Ir.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,R.HTML)}function G1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Q1(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),n||(e.formElement=e.openElements.current))}function X1(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===o.LI&&a===o.LI||(n===o.DD||n===o.DT)&&(a===o.DD||a===o.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==o.ADDRESS&&a!==o.DIV&&a!==o.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML)}function K1(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),e.tokenizer.state=he.PLAINTEXT}function $1(e,t){e.openElements.hasInScope(o.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.framesetOk=!1}function J1(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(C.A);n&&(Jr(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Z1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function eg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(o.NOBR)&&(Jr(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,R.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ng(e,t){e.treeAdapter.getDocumentMode(e.document)!==De.QUIRKS&&e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._insertElement(t,R.HTML),e.framesetOk=!1,e.insertionMode=x.IN_TABLE}function wo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,R.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function To(e){const t=io(e,ht.TYPE);return t!=null&&t.toLowerCase()===w1}function rg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,R.HTML),To(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function ag(e,t){e._appendElement(t,R.HTML),t.ackSelfClosing=!0}function ig(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._appendElement(t,R.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sg(e,t){t.tagName=C.IMG,t.tagID=o.IMG,wo(e,t)}function og(e,t){e._insertElement(t,R.HTML),e.skipNextNewLine=!0,e.tokenizer.state=he.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=x.TEXT}function ug(e,t){e.openElements.hasInButtonScope(o.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,he.RAWTEXT)}function lg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,he.RAWTEXT)}function Ni(e,t){e._switchToTextParsing(t,he.RAWTEXT)}function cg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===x.IN_TABLE||e.insertionMode===x.IN_CAPTION||e.insertionMode===x.IN_TABLE_BODY||e.insertionMode===x.IN_ROW||e.insertionMode===x.IN_CELL?x.IN_SELECT_IN_TABLE:x.IN_SELECT}function dg(e,t){e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML)}function hg(e,t){e.openElements.hasInScope(o.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,R.HTML)}function pg(e,t){e.openElements.hasInScope(o.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(o.RTC),e._insertElement(t,R.HTML)}function fg(e,t){e._reconstructActiveFormattingElements(),mo(t),$r(t),t.selfClosing?e._appendElement(t,R.MATHML):e._insertElement(t,R.MATHML),t.ackSelfClosing=!0}function mg(e,t){e._reconstructActiveFormattingElements(),go(t),$r(t),t.selfClosing?e._appendElement(t,R.SVG):e._insertElement(t,R.SVG),t.ackSelfClosing=!0}function Ii(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,R.HTML)}function Ce(e,t){switch(t.tagID){case o.I:case o.S:case o.B:case o.U:case o.EM:case o.TT:case o.BIG:case o.CODE:case o.FONT:case o.SMALL:case o.STRIKE:case o.STRONG:{Z1(e,t);break}case o.A:{J1(e,t);break}case o.H1:case o.H2:case o.H3:case o.H4:case o.H5:case o.H6:{V1(e,t);break}case o.P:case o.DL:case o.OL:case o.UL:case o.DIV:case o.DIR:case o.NAV:case o.MAIN:case o.MENU:case o.ASIDE:case o.CENTER:case o.FIGURE:case o.FOOTER:case o.HEADER:case o.HGROUP:case o.DIALOG:case o.DETAILS:case o.ADDRESS:case o.ARTICLE:case o.SEARCH:case o.SECTION:case o.SUMMARY:case o.FIELDSET:case o.BLOCKQUOTE:case o.FIGCAPTION:{W1(e,t);break}case o.LI:case o.DD:case o.DT:{X1(e,t);break}case o.BR:case o.IMG:case o.WBR:case o.AREA:case o.EMBED:case o.KEYGEN:{wo(e,t);break}case o.HR:{ig(e,t);break}case o.RB:case o.RTC:{hg(e,t);break}case o.RT:case o.RP:{pg(e,t);break}case o.PRE:case o.LISTING:{G1(e,t);break}case o.XMP:{ug(e,t);break}case o.SVG:{mg(e,t);break}case o.HTML:{j1(e,t);break}case o.BASE:case o.LINK:case o.META:case o.STYLE:case o.TITLE:case o.SCRIPT:case o.BGSOUND:case o.BASEFONT:case o.TEMPLATE:{Ue(e,t);break}case o.BODY:{Y1(e,t);break}case o.FORM:{Q1(e,t);break}case o.NOBR:{eg(e,t);break}case o.MATH:{fg(e,t);break}case o.TABLE:{ng(e,t);break}case o.INPUT:{rg(e,t);break}case o.PARAM:case o.TRACK:case o.SOURCE:{ag(e,t);break}case o.IMAGE:{sg(e,t);break}case o.BUTTON:{$1(e,t);break}case o.APPLET:case o.OBJECT:case o.MARQUEE:{tg(e,t);break}case o.IFRAME:{lg(e,t);break}case o.SELECT:{cg(e,t);break}case o.OPTION:case o.OPTGROUP:{dg(e,t);break}case o.NOEMBED:case o.NOFRAMES:{Ni(e,t);break}case o.FRAMESET:{q1(e,t);break}case o.TEXTAREA:{og(e,t);break}case o.NOSCRIPT:{e.options.scriptingEnabled?Ni(e,t):Ii(e,t);break}case o.PLAINTEXT:{K1(e,t);break}case o.COL:case o.TH:case o.TD:case o.TR:case o.HEAD:case o.FRAME:case o.TBODY:case o.TFOOT:case o.THEAD:case o.CAPTION:case o.COLGROUP:break;default:Ii(e,t)}}function gg(e,t){if(e.openElements.hasInScope(o.BODY)&&(e.insertionMode=x.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function bg(e,t){e.openElements.hasInScope(o.BODY)&&(e.insertionMode=x.AFTER_BODY,Oo(e,t))}function Eg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function xg(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(o.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(o.FORM):n&&e.openElements.remove(n))}function wg(e){e.openElements.hasInButtonScope(o.P)||e._insertFakeElement(C.P,o.P),e._closePElement()}function Tg(e){e.openElements.hasInListItemScope(o.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(o.LI),e.openElements.popUntilTagNamePopped(o.LI))}function yg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Cg(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _g(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Ag(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(C.BR,o.BR),e.openElements.pop(),e.framesetOk=!1}function yo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==o.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function zn(e,t){switch(t.tagID){case o.A:case o.B:case o.I:case o.S:case o.U:case o.EM:case o.TT:case o.BIG:case o.CODE:case o.FONT:case o.NOBR:case o.SMALL:case o.STRIKE:case o.STRONG:{Jr(e,t);break}case o.P:{wg(e);break}case o.DL:case o.UL:case o.OL:case o.DIR:case o.DIV:case o.NAV:case o.PRE:case o.MAIN:case o.MENU:case o.ASIDE:case o.BUTTON:case o.CENTER:case o.FIGURE:case o.FOOTER:case o.HEADER:case o.HGROUP:case o.DIALOG:case o.ADDRESS:case o.ARTICLE:case o.DETAILS:case o.SEARCH:case o.SECTION:case o.SUMMARY:case o.LISTING:case o.FIELDSET:case o.BLOCKQUOTE:case o.FIGCAPTION:{Eg(e,t);break}case o.LI:{Tg(e);break}case o.DD:case o.DT:{yg(e,t);break}case o.H1:case o.H2:case o.H3:case o.H4:case o.H5:case o.H6:{Cg(e);break}case o.BR:{Ag(e);break}case o.BODY:{gg(e,t);break}case o.HTML:{bg(e,t);break}case o.FORM:{xg(e);break}case o.APPLET:case o.OBJECT:case o.MARQUEE:{_g(e,t);break}case o.TEMPLATE:{mt(e,t);break}default:yo(e,t)}}function Co(e,t){e.tmplInsertionModeStack.length>0?Lo(e,t):Zr(e,t)}function kg(e,t){var n;t.tagID===o.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Ng(e,t){e._err(t,N.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function hr(e,t){if(bo.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=x.IN_TABLE_TEXT,t.type){case X.CHARACTER:{Ao(e,t);break}case X.WHITESPACE_CHARACTER:{_o(e,t);break}}else on(e,t)}function Ig(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_CAPTION}function Sg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_COLUMN_GROUP}function Lg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(C.COLGROUP,o.COLGROUP),e.insertionMode=x.IN_COLUMN_GROUP,ea(e,t)}function Og(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_TABLE_BODY}function Rg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(C.TBODY,o.TBODY),e.insertionMode=x.IN_TABLE_BODY,jn(e,t)}function Dg(e,t){e.openElements.hasInTableScope(o.TABLE)&&(e.openElements.popUntilTagNamePopped(o.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function vg(e,t){To(t)?e._appendElement(t,R.HTML):on(e,t),t.ackSelfClosing=!0}function Pg(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,R.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function At(e,t){switch(t.tagID){case o.TD:case o.TH:case o.TR:{Rg(e,t);break}case o.STYLE:case o.SCRIPT:case o.TEMPLATE:{Ue(e,t);break}case o.COL:{Lg(e,t);break}case o.FORM:{Pg(e,t);break}case o.TABLE:{Dg(e,t);break}case o.TBODY:case o.TFOOT:case o.THEAD:{Og(e,t);break}case o.INPUT:{vg(e,t);break}case o.CAPTION:{Ig(e,t);break}case o.COLGROUP:{Sg(e,t);break}default:on(e,t)}}function en(e,t){switch(t.tagID){case o.TABLE:{e.openElements.hasInTableScope(o.TABLE)&&(e.openElements.popUntilTagNamePopped(o.TABLE),e._resetInsertionMode());break}case o.TEMPLATE:{mt(e,t);break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:case o.TBODY:case o.TD:case o.TFOOT:case o.TH:case o.THEAD:case o.TR:break;default:on(e,t)}}function on(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Un(e,t),e.fosterParentingEnabled=n}function _o(e,t){e.pendingCharacterTokens.push(t)}function Ao(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yt(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)on(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ko=new Set([o.CAPTION,o.COL,o.COLGROUP,o.TBODY,o.TD,o.TFOOT,o.TH,o.THEAD,o.TR]);function Mg(e,t){const n=t.tagID;ko.has(n)?e.openElements.hasInTableScope(o.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,At(e,t)):Ce(e,t)}function Bg(e,t){const n=t.tagID;switch(n){case o.CAPTION:case o.TABLE:{e.openElements.hasInTableScope(o.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(o.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,n===o.TABLE&&en(e,t));break}case o.BODY:case o.COL:case o.COLGROUP:case o.HTML:case o.TBODY:case o.TD:case o.TFOOT:case o.TH:case o.THEAD:case o.TR:break;default:zn(e,t)}}function ea(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.COL:{e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.TEMPLATE:{Ue(e,t);break}default:Sn(e,t)}}function Fg(e,t){switch(t.tagID){case o.COLGROUP:{e.openElements.currentTagId===o.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE);break}case o.TEMPLATE:{mt(e,t);break}case o.COL:break;default:Sn(e,t)}}function Sn(e,t){e.openElements.currentTagId===o.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE,e._processToken(t))}function jn(e,t){switch(t.tagID){case o.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_ROW;break}case o.TH:case o.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(C.TR,o.TR),e.insertionMode=x.IN_ROW,Yn(e,t);break}case o.CAPTION:case o.COL:case o.COLGROUP:case o.TBODY:case o.TFOOT:case o.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE,At(e,t));break}default:At(e,t)}}function Lr(e,t){const n=t.tagID;switch(t.tagID){case o.TBODY:case o.TFOOT:case o.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE);break}case o.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE,en(e,t));break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:case o.TD:case o.TH:case o.TR:break;default:en(e,t)}}function Yn(e,t){switch(t.tagID){case o.TH:case o.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,R.HTML),e.insertionMode=x.IN_CELL,e.activeFormattingElements.insertMarker();break}case o.CAPTION:case o.COL:case o.COLGROUP:case o.TBODY:case o.TFOOT:case o.THEAD:case o.TR:{e.openElements.hasInTableScope(o.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,jn(e,t));break}default:At(e,t)}}function No(e,t){switch(t.tagID){case o.TR:{e.openElements.hasInTableScope(o.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY);break}case o.TABLE:{e.openElements.hasInTableScope(o.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,Lr(e,t));break}case o.TBODY:case o.TFOOT:case o.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(o.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,Lr(e,t));break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:case o.TD:case o.TH:break;default:en(e,t)}}function Hg(e,t){const n=t.tagID;ko.has(n)?(e.openElements.hasInTableScope(o.TD)||e.openElements.hasInTableScope(o.TH))&&(e._closeTableCell(),Yn(e,t)):Ce(e,t)}function Ug(e,t){const n=t.tagID;switch(n){case o.TD:case o.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_ROW);break}case o.TABLE:case o.TBODY:case o.TFOOT:case o.THEAD:case o.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),No(e,t));break}case o.BODY:case o.CAPTION:case o.COL:case o.COLGROUP:case o.HTML:break;default:zn(e,t)}}function Io(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.OPTION:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e._insertElement(t,R.HTML);break}case o.OPTGROUP:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e.openElements.currentTagId===o.OPTGROUP&&e.openElements.pop(),e._insertElement(t,R.HTML);break}case o.HR:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop(),e.openElements.currentTagId===o.OPTGROUP&&e.openElements.pop(),e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.INPUT:case o.KEYGEN:case o.TEXTAREA:case o.SELECT:{e.openElements.hasInSelectScope(o.SELECT)&&(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode(),t.tagID!==o.SELECT&&e._processStartTag(t));break}case o.SCRIPT:case o.TEMPLATE:{Ue(e,t);break}}}function So(e,t){switch(t.tagID){case o.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===o.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===o.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===o.OPTGROUP&&e.openElements.pop();break}case o.OPTION:{e.openElements.currentTagId===o.OPTION&&e.openElements.pop();break}case o.SELECT:{e.openElements.hasInSelectScope(o.SELECT)&&(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode());break}case o.TEMPLATE:{mt(e,t);break}}}function zg(e,t){const n=t.tagID;n===o.CAPTION||n===o.TABLE||n===o.TBODY||n===o.TFOOT||n===o.THEAD||n===o.TR||n===o.TD||n===o.TH?(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Io(e,t)}function jg(e,t){const n=t.tagID;n===o.CAPTION||n===o.TABLE||n===o.TBODY||n===o.TFOOT||n===o.THEAD||n===o.TR||n===o.TD||n===o.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(o.SELECT),e._resetInsertionMode(),e.onEndTag(t)):So(e,t)}function Yg(e,t){switch(t.tagID){case o.BASE:case o.BASEFONT:case o.BGSOUND:case o.LINK:case o.META:case o.NOFRAMES:case o.SCRIPT:case o.STYLE:case o.TEMPLATE:case o.TITLE:{Ue(e,t);break}case o.CAPTION:case o.COLGROUP:case o.TBODY:case o.TFOOT:case o.THEAD:{e.tmplInsertionModeStack[0]=x.IN_TABLE,e.insertionMode=x.IN_TABLE,At(e,t);break}case o.COL:{e.tmplInsertionModeStack[0]=x.IN_COLUMN_GROUP,e.insertionMode=x.IN_COLUMN_GROUP,ea(e,t);break}case o.TR:{e.tmplInsertionModeStack[0]=x.IN_TABLE_BODY,e.insertionMode=x.IN_TABLE_BODY,jn(e,t);break}case o.TD:case o.TH:{e.tmplInsertionModeStack[0]=x.IN_ROW,e.insertionMode=x.IN_ROW,Yn(e,t);break}default:e.tmplInsertionModeStack[0]=x.IN_BODY,e.insertionMode=x.IN_BODY,Ce(e,t)}}function qg(e,t){t.tagID===o.TEMPLATE&&mt(e,t)}function Lo(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(o.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Zr(e,t)}function Wg(e,t){t.tagID===o.HTML?Ce(e,t):Ln(e,t)}function Oo(e,t){var n;if(t.tagID===o.HTML){if(e.fragmentContext||(e.insertionMode=x.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===o.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Ln(e,t)}function Ln(e,t){e.insertionMode=x.IN_BODY,Un(e,t)}function Vg(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.FRAMESET:{e._insertElement(t,R.HTML);break}case o.FRAME:{e._appendElement(t,R.HTML),t.ackSelfClosing=!0;break}case o.NOFRAMES:{Ue(e,t);break}}}function Gg(e,t){t.tagID===o.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==o.FRAMESET&&(e.insertionMode=x.AFTER_FRAMESET))}function Qg(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.NOFRAMES:{Ue(e,t);break}}}function Xg(e,t){t.tagID===o.HTML&&(e.insertionMode=x.AFTER_AFTER_FRAMESET)}function Kg(e,t){t.tagID===o.HTML?Ce(e,t):wn(e,t)}function wn(e,t){e.insertionMode=x.IN_BODY,Un(e,t)}function $g(e,t){switch(t.tagID){case o.HTML:{Ce(e,t);break}case o.NOFRAMES:{Ue(e,t);break}}}function Jg(e,t){t.chars=ue,e._insertCharacters(t)}function Zg(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ro(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==R.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function eb(e,t){if(m1(t))Ro(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===R.MATHML?mo(t):r===R.SVG&&(g1(t),go(t)),$r(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function tb(e,t){if(t.tagID===o.P||t.tagID===o.BR){Ro(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===R.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}C.AREA,C.BASE,C.BASEFONT,C.BGSOUND,C.BR,C.COL,C.EMBED,C.FRAME,C.HR,C.IMG,C.INPUT,C.KEYGEN,C.LINK,C.META,C.PARAM,C.SOURCE,C.TRACK,C.WBR;const nb=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,rb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Si={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Do(e,t){const n=pb(e),r=Gi("type",{handlers:{root:ab,element:ib,text:sb,comment:Po,doctype:ob,raw:lb},unknown:cb}),a={parser:n?new ki(Si):ki.getFragmentParser(void 0,Si),handle(u){r(u,a)},stitches:!1,options:t||{}};r(e,a),vt(a,qe());const i=n?a.parser.document:a.parser.getFragment(),s=fm(i,{file:a.options.file});return a.stitches&&Pn(s,"comment",function(u,l,c){const h=u;if(h.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=h.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function vo(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function ab(e,t){vo(e.children,t)}function ib(e,t){db(e,t),vo(e.children,t),hb(e,t)}function sb(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:X.CHARACTER,chars:e.value,location:un(e)};vt(t,qe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ob(e,t){const n={type:X.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:un(e)};vt(t,qe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ub(e,t){t.stitches=!0;const n=fb(e);if("children"in e&&"children"in n){const r=Do({type:"root",children:e.children},t.options);n.children=r.children}Po({type:"comment",value:{stitch:n}},t)}function Po(e,t){const n=e.value,r={type:X.COMMENT,data:n,location:un(e)};vt(t,qe(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function lb(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Mo(t,qe(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nb,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function cb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ub(n,t);else{let r="";throw rb.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function vt(e,t){Mo(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=he.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Mo(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function db(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===he.PLAINTEXT)return;vt(t,qe(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:dt.html;a===dt.html&&n==="svg"&&(a=dt.svg);const i=xm({...e,children:[]},{space:a===dt.svg?"svg":"html"}),s={type:X.START_TAG,tagName:n,tagID:Dt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:un(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function hb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Nm.includes(n)||t.parser.tokenizer.state===he.PLAINTEXT)return;vt(t,Fn(e));const r={type:X.END_TAG,tagName:n,tagID:Dt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:un(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===he.RCDATA||t.parser.tokenizer.state===he.RAWTEXT||t.parser.tokenizer.state===he.SCRIPT_DATA)&&(t.parser.tokenizer.state=he.DATA)}function pb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function un(e){const t=qe(e)||{line:void 0,column:void 0,offset:void 0},n=Fn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function fb(e){return"children"in e?_t({...e,children:[]}):_t(e)}function Bo(e){return function(t,n){return Do(t,{...e,file:n})}}function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(null,arguments)}function mb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Fo,Ho;typeof document<"u"&&(Fo=document);typeof window<"u"&&(Ho=window);var Uo=K.createContext({document:Fo,window:Ho}),gb=()=>K.useContext(Uo),bb=["children","head","initialContent","src","mountTarget"],ta=K.forwardRef((e,t)=>{var{children:n,head:r,initialContent:a,src:i,mountTarget:s}=e,u=mb(e,bb),[l,c]=K.useState(!1),[h,d]=K.useState(),b=P=>{P&&d(P)};K.useImperativeHandle(t,()=>h,[h]);var p=a||"<!DOCTYPE html><html><head></head><body></body></html>",E=()=>h?h.contentDocument:null,y=()=>{var P=E();return s?P==null?void 0:P.querySelector(s):P==null?void 0:P.body},A=K.useRef(),_=K.useCallback(P=>{A.current=P;var F=()=>setInterval(()=>_(P),500);clearInterval(F()),l||c(!0)},[l]);K.useMemo(()=>{!i&&u.onLoad&&l&&u.onLoad(A.current)},[l]),K.useEffect(()=>{if(h&&!i){var P;(P=h.contentWindow)==null||P.addEventListener("DOMContentLoaded",_)}return()=>{if(h&&!i){var F;(F=h.contentWindow)==null||F.removeEventListener("DOMContentLoaded",_)}}},[h,_]);var L=()=>{var P,F=E(),I=(P=E())==null?void 0:P.head,H=y(),U=(F==null?void 0:F.defaultView)||(F==null?void 0:F.parentView),Y=f.jsx(Uo.Provider,{value:{document:F,window:U},children:n});return[I&&r&&pr.createPortal(r,I),h&&H&&pr.createPortal(Y,H)]},O={};return i?(delete O.srcDoc,O.src=i,O.onLoad=u.onLoad):O.srcDoc=p,f.jsx("iframe",Or({title:u.title,ref:b},u,{onLoad:_},O,{children:l&&L()}))});ta.displayName="IFrame";const zo="opencx-widget-portal";function qn(){return null}function Eb({children:e}){var n,r;const t=(r=(n=gb())==null?void 0:n.document)==null?void 0:r.getElementById(zo);return t?pr.createPortal(e,t):(console.error("Portal container not found!"),null)}function xb(){return f.jsx("div",{id:zo,className:"absolute size-full top-0 left-0"})}qn.Portal=Eb;qn.Container=xb;const wb=He.Root,Tb=He.Trigger,jo=xe.forwardRef(({className:e,...t},n)=>f.jsx(He.Overlay,{ref:n,className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));jo.displayName=He.Overlay.displayName;const Yo=xe.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(qn.Portal,{children:[f.jsx(jo,{}),f.jsxs(He.Content,{ref:r,className:q("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsx(He.Close,{asChild:!0,className:"absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:f.jsxs(Oe,{size:"fit",variant:"outline",children:[f.jsx(le.X,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));Yo.displayName=He.Content.displayName;const qo=xe.forwardRef(({className:e,...t},n)=>f.jsx(He.Title,{ref:n,className:q("text-lg font-semibold leading-none tracking-tight",e),...t}));qo.displayName=He.Title.displayName;const yb=xe.forwardRef(({className:e,...t},n)=>f.jsx(He.Description,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));yb.displayName=He.Description.displayName;function Wo({attachment:e}){const{name:t,size:n,type:r,url:a}=e,i=r.startsWith("image/"),s=r.startsWith("video/"),u=r.startsWith("audio/");return u?f.jsx(Ke,{children:f.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:f.jsxs("audio",{controls:!0,className:"w-full",children:[f.jsx("source",{src:a,type:r}),"Your browser does not support the audio tag."]})})}):s?f.jsx(Ke,{children:f.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:f.jsxs("video",{controls:!0,children:[f.jsx("source",{src:a,type:r}),"Your browser does not support the video tag."]})})}):!i&&!s&&!u?f.jsx(Ke,{children:f.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:f.jsxs("div",{className:"flex items-end gap-2 p-2",children:[f.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:q("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),f.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})}):f.jsxs(wb,{children:[f.jsx(Ke,{children:f.jsx(Tb,{children:f.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:i&&f.jsx("img",{src:a,className:"object-cover size-16",alt:t})})})}),f.jsxs(Yo,{"aria-describedby":void 0,className:"size-full rounded-3xl flex items-center justify-center bg-transparent backdrop-blur border-none gap-0",children:[f.jsx(qo,{className:"sr-only",children:"Image preview"}),i&&f.jsx("div",{className:"size-fit shrink-0 rounded-2xl overflow-hidden max-h-full",children:f.jsx("img",{src:a,className:"object-cover size-auto",alt:t})})]})]})}function Rr({data:e,id:t,type:n,attachments:r}){const{anchorTarget:a}=Q.useConfig(),{message:i,variant:s="default"}=e;return s==="error"?f.jsx("div",{children:f.jsx("div",{className:"flex flex-row flex-wrap items-center justify-start",children:f.jsx("div",{className:"leading-snug text-sm text-destructive",children:i})})}):f.jsxs("div",{className:"w-5/6 flex flex-col items-start gap-1",children:[f.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(u=>f.jsx(Wo,{attachment:u},u.id))}),i.length>0&&f.jsx($s,{"data-type":n,"data-id":t,remarkPlugins:[Cs],rehypePlugins:[Bo],components:{a:({children:u,...l})=>f.jsx("a",{target:a??"_top",...l,children:u})},className:q("w-fit p-2 rounded-2xl bg-secondary border shadow-sm","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]"),children:i})]})}function Vo(e){const{componentStore:t}=Q.useWidget();if(e.data.action){const r=t.getComponent(e.data.action.name);if(r)return f.jsx(r,{...e,id:e.id})}const n=t.getComponent(e.component);return n?f.jsx(n,{...e,id:e.id}):f.jsx(Rr,{...e})}const ln=xe.forwardRef(({className:e,...t},n)=>f.jsx(Nt.Root,{ref:n,className:q("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full border bg-secondary",e),...t}));ln.displayName=Nt.Root.displayName;const Wn=xe.forwardRef(({className:e,...t},n)=>f.jsx(Nt.Image,{ref:n,className:q("aspect-square h-full w-full",e),...t}));Wn.displayName=Nt.Image.displayName;const Vn=xe.forwardRef(({className:e,...t},n)=>f.jsx(Nt.Fallback,{ref:n,className:q("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Vn.displayName=Nt.Fallback.displayName;function Cb({message:e}){var t;return f.jsxs("div",{className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&f.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(t=e.attachments)==null?void 0:t.map(n=>f.jsx(Wo,{attachment:n},n.id))}),e.content.length>0&&f.jsx("div",{className:q("w-fit p-2 rounded-2xl text-sm","bg-primary text-primary-foreground border shadow-sm","break-words [word-break:break-word]","whitespace-pre-wrap"),children:e.content})]})}function _b({messages:e}){var n,r,a,i,s,u;const{user:t}=Q.useConfig();return f.jsxs("div",{className:q("group","flex flex-col gap-2 justify-end items-end"),children:[f.jsxs(ln,{className:"bg-primary text-primary-foreground",children:[f.jsx(Wn,{src:(n=t==null?void 0:t.data)==null?void 0:n.avatarUrl,alt:((r=t==null?void 0:t.data)==null?void 0:r.name)||"User avatar"}),((a=t==null?void 0:t.data)==null?void 0:a.name)&&f.jsx(Vn,{children:(u=(s=(i=t==null?void 0:t.data)==null?void 0:i.name)==null?void 0:s.slice(0,1))==null?void 0:u.toUpperCase()})]}),e.map(l=>f.jsx(Cb,{message:l},l.id))]})}function Ab({messages:e,agent:t}){var n,r;return f.jsxs("div",{className:q("flex flex-col items-start gap-2"),children:[f.jsx(yn,{content:t==null?void 0:t.name,side:"right",align:"end",children:f.jsxs(ln,{children:[f.jsx(Wn,{src:(t==null?void 0:t.avatar)??"",alt:"Agent Icon"}),(t==null?void 0:t.name)&&f.jsx(Vn,{children:(r=(n=t==null?void 0:t.name)==null?void 0:n.slice(0,1))==null?void 0:r.toUpperCase()})]})}),e.map(a=>f.jsx(Vo,{...a},a.id))]})}function kb(){const{messagesState:{messages:e}}=Q.useMessages(),{isAwaitingBotReply:t}=Q.useIsAwaitingBotReply(),{componentStore:n}=Q.useWidget(),r=Q.useConfig(),a=K.useMemo(()=>Al(e),[e]),i=!r.initialMessages||r.initialMessages.length===0?["Hello, how can I help you?"]:r.initialMessages,s=n.getComponent("loading"),u=K.useRef(null);function l(){setTimeout(()=>{const c=u.current;c&&(c.scrollTop=c.scrollHeight)},0)}return K.useEffect(()=>{l()},[e]),f.jsxs("div",{"data-messages":!0,ref:u,className:"max-h-full scroll-smooth relative flex-1 p-2 space-y-2 overflow-auto",children:[e.length===0&&i.map(c=>f.jsx(Vo,{component:"bot_message",data:{message:c},id:c,type:"FROM_BOT",agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0,timestamp:Date.now().toString()},c)),a.map(c=>{var b,p,E;const h=(b=c==null?void 0:c[0])==null?void 0:b.type,d=(p=c[0])==null?void 0:p.id;if(!h||!d)return null;if(kl(c))return f.jsx(_b,{messages:c},d);if(Nl(c)||Il(c)){const y=(E=c[0])==null?void 0:E.agent;return f.jsx(Ab,{messages:c,agent:y},d)}return null}),t&&f.jsx(s,{})]})}function Go({className:e}){return f.jsx(le.LoaderIcon,{className:q("size-4 animate-spin",e)})}function cn(){var r,a,i,s,u,l,c,h,d,b,p,E,y,A,_,L,O,P,F,I,H;const{theme:e}=Q.useWidget(),t={primaryColor:(e==null?void 0:e.primaryColor)||"hsl(0, 0%, 0%)",widgetTrigger:{offset:{bottom:((a=(r=e==null?void 0:e.widgetTrigger)==null?void 0:r.offset)==null?void 0:a.bottom)||"20px",right:((s=(i=e==null?void 0:e.widgetTrigger)==null?void 0:i.offset)==null?void 0:s.right)||"20px"},size:{button:((l=(u=e==null?void 0:e.widgetTrigger)==null?void 0:u.size)==null?void 0:l.button)||"48px",icon:((h=(c=e==null?void 0:e.widgetTrigger)==null?void 0:c.size)==null?void 0:h.icon)||"24px"}},widgetContentContainer:{offset:((d=e==null?void 0:e.widgetContentContainer)==null?void 0:d.offset)||10},screens:{welcome:{width:((p=(b=e==null?void 0:e.screens)==null?void 0:b.welcome)==null?void 0:p.width)||"375px",minHeight:((y=(E=e==null?void 0:e.screens)==null?void 0:E.welcome)==null?void 0:y.minHeight)||"1px"},sessions:{width:((_=(A=e==null?void 0:e.screens)==null?void 0:A.sessions)==null?void 0:_.width)||"450px",height:((O=(L=e==null?void 0:e.screens)==null?void 0:L.sessions)==null?void 0:O.height)||"600px"},chat:{width:((F=(P=e==null?void 0:e.screens)==null?void 0:P.chat)==null?void 0:F.width)||"525px",height:((H=(I=e==null?void 0:e.screens)==null?void 0:I.chat)==null?void 0:H.height)||"700px"}}},n={maxHeight:`
|
|
30
30
|
calc(100vh - ${t.widgetTrigger.offset.bottom}
|
|
31
31
|
- ${t.widgetTrigger.offset.bottom}
|
|
32
32
|
- ${t.widgetContentContainer.offset}px
|
|
33
33
|
- ${t.widgetTrigger.size.button}
|
|
34
34
|
- 4px)
|
|
35
|
-
`,maxWidth:`calc(100vw - ${t.widgetTrigger.offset.right} - ${t.widgetTrigger.offset.right})`,minHeight:`min(${t.screens.welcome.minHeight}, ${t.screens.sessions.height}, ${t.screens.chat.height})`,minWidth:`min(${t.screens.welcome.width}, ${t.screens.sessions.width}, ${t.screens.chat.width})`};return{theme:t,computed:n,cssVars:Nb({primary:t.primaryColor})}}function Nb({primary:e}){const t=la(e).toHsl(),n=la(e).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${t.h} ${t.s*100}% ${t.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%"}}const Ib="[data-opencx-widget-content-root]";function na({width:e,height:t}){K.useEffect(()=>{const n=document.querySelector(Ib);e&&(n==null||n.style.setProperty("--opencx-widget-width",e)),t&&(n==null||n.style.setProperty("--opencx-widget-height",t))},[])}function Sb(){const{messagesState:{isInitialFetchLoading:e}}=X.useMessages(),{sessionState:{session:t}}=X.useSessions(),{theme:n}=cn();na({width:n.screens.chat.width,height:n.screens.chat.height});const r=K.useRef((t==null?void 0:t.id)||"chat").current;return f.jsx("div",{className:q("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:f.jsxs("div",{className:"size-full justify-between flex flex-col",children:[f.jsx(zi,{}),f.jsx(ge.AnimatePresence,{mode:"wait",children:e?f.jsx(se,{className:"flex flex-col items-center justify-center w-full flex-1",children:f.jsx(Go,{})},"loading"):f.jsxs(se,{className:"flex flex-col w-full flex-1 overflow-auto",snapExit:!0,children:[f.jsx(kb,{}),f.jsx(fl,{})]},r)})]})})}const Lb="[data-opencx-widget-content-root]";function Ob(){const e=K.useRef(null);return K.useEffect(()=>{const t=document.querySelector(Lb);if(t&&e.current){const n=e.current;let r;const a=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{const i=n.offsetHeight;t.style.setProperty("--opencx-widget-height",`${i.toFixed(1)}px`)})});return a.observe(n),()=>{cancelAnimationFrame(r),a.unobserve(n)}}},[]),{observedElementRef:e}}const Tn=xe.forwardRef(({className:e,type:t,...n},r)=>{const a=On();return f.jsx(Ke,{ref:r,children:f.jsx("input",{dir:a,type:t,className:q("flex w-full rounded-xl border border-input bg-background p-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rtl:placeholder:text-right",e),...n})})});Tn.displayName="Input";function Rb({className:e}){return f.jsxs("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:q("text-primary-foreground",e),children:[f.jsx("title",{children:"Open Logo"}),f.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})]})}function Qo({className:e}){const{token:t}=X.useConfig();return f.jsx("div",{className:q("flex items-center justify-center gap-2 p-2 pt-0 bg-white text-muted-foreground/70 [&_svg]:text-muted-foreground/70",e),children:f.jsx(Ke,{children:f.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:"text-[10px] flex items-center",children:[f.jsx("span",{children:"Powered by"}),f.jsx("span",{children:" "}),f.jsxs("span",{className:"flex items-center gap-[1px]",children:[f.jsx("span",{children:f.jsx(Rb,{className:"size-3 inline-block"})}),f.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}const Db=Gn.z.object({name:Gn.z.string().min(2),email:Gn.z.string().email()});function vb(){var y,A,_,L,O,P,F,I,H;const{createUnverifiedContact:e}=X.useContact(),t=X.useConfig(),{theme:n}=cn(),r=St(),{data:a}=X.usePreludeData(),{observedElementRef:i}=Ob();na({height:void 0,width:n.screens.welcome.width});const[s,u]=K.useState(((y=t.prefillUserData)==null?void 0:y.name)||""),[l,c]=K.useState(((A=t.prefillUserData)==null?void 0:A.email)||""),h=(t.extraDataCollectionFields||[]).filter(U=>U!=="name"&&U!=="email"&&!!U),[d,b]=K.useState({}),[p,E]=X._default(async U=>{U.preventDefault();const Y=Db.safeParse({name:s,email:l});Y.success&&await e({email:Y.data.email,non_verified_name:Y.data.name},Object.values(d).filter(Boolean).length?d:void 0)},[s,l,d]);return f.jsx("div",{className:q("bg-primary"),style:{width:"100vw",maxWidth:"100vw",minHeight:n.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:f.jsxs("div",{ref:i,className:"flex flex-col",children:[f.jsxs("div",{dir:"auto",className:"flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",children:[f.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(_=t.assets)!=null&&_.organizationLogo?f.jsx("img",{src:(L=t.assets)==null?void 0:L.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):f.jsx("h2",{className:"font-bold text-xl text-primary-foreground",dir:"auto",children:(O=a==null?void 0:a.data)==null?void 0:O.organizationName})}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("h1",{className:"text-2xl font-bold text-primary-foreground",dir:"auto",children:((F=(P=t.textContent)==null?void 0:P.welcomeScreen)==null?void 0:F.title)||r.get("welcome-title")}),f.jsx("p",{className:"text-primary-foreground/90 text-sm max-w-[320px] leading-relaxed",dir:"auto",children:((H=(I=t.textContent)==null?void 0:I.welcomeScreen)==null?void 0:H.description)||r.get("welcome-description")})]})]}),f.jsxs("div",{className:"z-10 px-2 pt-2 bp-0 bg-background rounded-t-3xl space-y-2",dir:"auto",children:[f.jsxs("form",{onSubmit:E,className:"space-y-2",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx(Tn,{value:s,onChange:U=>u(U.target.value),required:!0,placeholder:r.get("your-name"),name:"name",className:"rounded-3xl pl-3"}),f.jsx(Tn,{required:!0,value:l,onChange:U=>c(U.target.value),type:"email",placeholder:r.get("your-email"),name:"email",className:"rounded-3xl pl-3"}),h.map(U=>f.jsx(Tn,{value:d[U],onChange:Y=>b(k=>({...k,[U]:Y.target.value})),placeholder:`${U} (${r.get("optional")})`,className:"rounded-3xl pl-3"},U))]}),f.jsxs(Oe,{disabled:p.loading,className:"w-full rounded-3xl",size:"lg",children:[p.loading?r.get("starting-chat"):r.get("start-chat"),f.jsx(le.SendHorizontal,{className:"size-4 rtl:-scale-100"})]})]}),f.jsx(Qo,{})]})]})})}function Pb({session:e}){const{bot:t}=X.useConfig(),{toChatScreen:n}=X.useWidgetRouter(),r=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(t==null?void 0:t.name)||"AI Support Agent",a=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(t==null?void 0:t.avatar)||"";return f.jsxs(Oe,{variant:"outline",size:"lg",className:"border-muted rounded-full p-2 flex text-start justify-between w-full whitespace-normal",onClick:()=>n(e.id),children:[f.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[f.jsx(ge.AnimatePresence,{mode:"wait",children:f.jsx(se,{snapExit:!0,children:f.jsx(ln,{className:"size-10",children:f.jsx(Wn,{src:a,alt:"Agent Icon"})})})}),f.jsxs("div",{className:"flex-1",children:[f.jsx(ge.AnimatePresence,{mode:"wait",children:f.jsx(se,{snapExit:!0,children:r},r)}),f.jsx(ge.AnimatePresence,{mode:"wait",children:e.lastMessage?f.jsx(se,{snapExit:!0,children:f.jsx($s,{remarkPlugins:[Cs],rehypePlugins:[Bo],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):f.jsx(se,{className:"w-1/2",snapExit:!0,children:f.jsx(Ui,{className:"h-4 w-full"})},"skeleton")})]})]}),f.jsx(le.ChevronRightIcon,{className:"size-4 text-muted-foreground shrink-0"})]})}function Mb(){const e=St(),{toChatScreen:t}=X.useWidgetRouter(),{sessionsState:{data:n,isInitialFetchLoading:r}}=X.useSessions();return f.jsx("div",{className:"flex-1 flex flex-col overflow-scroll p-2",children:f.jsx(ge.AnimatePresence,{mode:"wait",children:r?f.jsx(se,{className:"flex-1 flex items-center justify-center",children:f.jsx(Go,{})},"loading"):f.jsx(se,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?f.jsxs(f.Fragment,{children:[f.jsx(ge.AnimatePresence,{children:n.map((a,i)=>f.jsx(se,{snapExit:!0,children:f.jsx(Pb,{session:a})},`${a.id}-${i}`))}),f.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background",children:f.jsx(Oe,{size:"lg",className:"w-full rounded-3xl",onClick:()=>t(),children:e.get("new-conversation")},"new-session")})]}):f.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("p",{className:"text-muted-foreground",children:e.get("no-conversations-yet")})}),f.jsx(Oe,{size:"lg",className:"w-full rounded-3xl",onClick:()=>t(),children:e.get("new-conversation")},"new-session")]})},"sessions")})})}function Bb(){const{theme:e}=cn();return na({width:e.screens.sessions.width,height:e.screens.sessions.height}),f.jsxs("div",{className:q("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:[f.jsxs("div",{className:"size-full flex flex-col",children:[f.jsx(zi,{}),f.jsx(Mb,{})]}),f.jsx(Qo,{})]})}function Fb(){X.usePreludeData();const{routerState:{screen:e}}=X.useWidgetRouter();return f.jsxs("div",{className:"relative bg-background size-full",children:[f.jsx(qn.Container,{}),f.jsx(ge.AnimatePresence,{mode:"wait",children:(()=>{switch(e){case"welcome":return f.jsx(se,{fadeIn:"right",className:"size-full",snapExit:!0,children:f.jsx(vb,{})},e);case"sessions":return f.jsx(se,{fadeIn:"right",className:"size-full",snapExit:!0,children:f.jsx(Bb,{})},e);case"chat":return f.jsx(se,{fadeIn:"right",className:"size-full",snapExit:!0,children:f.jsx(Sb,{})},e);default:return null}})()})]})}const ra='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";[data-opencx-widget] *,[data-opencx-widget] :before,[data-opencx-widget] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-opencx-widget] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-opencx-widget] *,[data-opencx-widget] :before,[data-opencx-widget] :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[data-opencx-widget] :before,[data-opencx-widget] :after{--tw-content: ""}[data-opencx-widget] html,[data-opencx-widget] :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}[data-opencx-widget] body{margin:0;line-height:inherit}[data-opencx-widget] hr{height:0;color:inherit;border-top-width:1px}[data-opencx-widget] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-opencx-widget] h1,[data-opencx-widget] h2,[data-opencx-widget] h3,[data-opencx-widget] h4,[data-opencx-widget] h5,[data-opencx-widget] h6{font-size:inherit;font-weight:inherit}[data-opencx-widget] a{color:inherit;text-decoration:inherit}[data-opencx-widget] b,[data-opencx-widget] strong{font-weight:bolder}[data-opencx-widget] code,[data-opencx-widget] kbd,[data-opencx-widget] samp,[data-opencx-widget] pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}[data-opencx-widget] small{font-size:80%}[data-opencx-widget] sub,[data-opencx-widget] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-opencx-widget] sub{bottom:-.25em}[data-opencx-widget] sup{top:-.5em}[data-opencx-widget] table{text-indent:0;border-color:inherit;border-collapse:collapse}[data-opencx-widget] button,[data-opencx-widget] input,[data-opencx-widget] optgroup,[data-opencx-widget] select,[data-opencx-widget] textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}[data-opencx-widget] button,[data-opencx-widget] select{text-transform:none}[data-opencx-widget] button,[data-opencx-widget] input:where([type=button]),[data-opencx-widget] input:where([type=reset]),[data-opencx-widget] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-opencx-widget] :-moz-focusring{outline:auto}[data-opencx-widget] :-moz-ui-invalid{box-shadow:none}[data-opencx-widget] progress{vertical-align:baseline}[data-opencx-widget] ::-webkit-inner-spin-button,[data-opencx-widget] ::-webkit-outer-spin-button{height:auto}[data-opencx-widget] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-opencx-widget] ::-webkit-search-decoration{-webkit-appearance:none}[data-opencx-widget] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-opencx-widget] summary{display:list-item}[data-opencx-widget] blockquote,[data-opencx-widget] dl,[data-opencx-widget] dd,[data-opencx-widget] h1,[data-opencx-widget] h2,[data-opencx-widget] h3,[data-opencx-widget] h4,[data-opencx-widget] h5,[data-opencx-widget] h6,[data-opencx-widget] hr,[data-opencx-widget] figure,[data-opencx-widget] p,[data-opencx-widget] pre{margin:0}[data-opencx-widget] fieldset{margin:0;padding:0}[data-opencx-widget] legend{padding:0}[data-opencx-widget] ol,[data-opencx-widget] ul,[data-opencx-widget] menu{list-style:none;margin:0;padding:0}[data-opencx-widget] dialog{padding:0}[data-opencx-widget] textarea{resize:vertical}[data-opencx-widget] input::-moz-placeholder,[data-opencx-widget] textarea::-moz-placeholder{opacity:1;color:#9ca3af}[data-opencx-widget] input::placeholder,[data-opencx-widget] textarea::placeholder{opacity:1;color:#9ca3af}[data-opencx-widget] button,[data-opencx-widget] [role=button]{cursor:pointer}[data-opencx-widget] :disabled{cursor:default}[data-opencx-widget] img,[data-opencx-widget] svg,[data-opencx-widget] video,[data-opencx-widget] canvas,[data-opencx-widget] audio,[data-opencx-widget] iframe,[data-opencx-widget] embed,[data-opencx-widget] object{display:block;vertical-align:middle}[data-opencx-widget] img,[data-opencx-widget] video{max-width:100%;height:auto}[data-opencx-widget] [hidden]:where(:not([hidden=until-found])){display:none}[data-opencx-widget] *{-ms-overflow-style:none;scrollbar-width:none}[data-opencx-widget] *::-webkit-scrollbar{display:none}[data-opencx-widget] *{border-color:hsl(var(--opencx-border))}[data-opencx-widget] .container{width:100%}@media (min-width: 640px){[data-opencx-widget] .container{max-width:640px}}@media (min-width: 768px){[data-opencx-widget] .container{max-width:768px}}@media (min-width: 1024px){[data-opencx-widget] .container{max-width:1024px}}@media (min-width: 1280px){[data-opencx-widget] .container{max-width:1280px}}@media (min-width: 1536px){[data-opencx-widget] .container{max-width:1536px}}[data-opencx-widget] .prose{color:var(--tw-prose-body);max-width:65ch}[data-opencx-widget] .prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-opencx-widget] .prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}[data-opencx-widget] .prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}[data-opencx-widget] .prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}[data-opencx-widget] .prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-opencx-widget] .prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-opencx-widget] .prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-opencx-widget] .prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-opencx-widget] .prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-opencx-widget] .prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-opencx-widget] .prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-opencx-widget] .prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-opencx-widget] .prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-opencx-widget] .prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}[data-opencx-widget] .prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-opencx-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}[data-opencx-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}[data-opencx-widget] .prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}[data-opencx-widget] .prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}[data-opencx-widget] .prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}[data-opencx-widget] .prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}[data-opencx-widget] .prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}[data-opencx-widget] .prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}[data-opencx-widget] .prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}[data-opencx-widget] .prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}[data-opencx-widget] .prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}[data-opencx-widget] .prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}[data-opencx-widget] .prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-opencx-widget] .prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}[data-opencx-widget] .prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-opencx-widget] .prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}[data-opencx-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}[data-opencx-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}[data-opencx-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}[data-opencx-widget] .prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}[data-opencx-widget] .prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}[data-opencx-widget] .prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}[data-opencx-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}[data-opencx-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}[data-opencx-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}[data-opencx-widget] .prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}[data-opencx-widget] .prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}[data-opencx-widget] .prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-opencx-widget] .prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}[data-opencx-widget] .prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}[data-opencx-widget] .prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}[data-opencx-widget] .prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}[data-opencx-widget] .prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}[data-opencx-widget] .prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}[data-opencx-widget] .prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}[data-opencx-widget] .prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}[data-opencx-widget] .prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}[data-opencx-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-opencx-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-opencx-widget] .prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-opencx-widget] .prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-opencx-widget] .prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-opencx-widget] .prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-opencx-widget] .prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-opencx-widget] .prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-opencx-widget] .prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-opencx-widget] .prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}[data-opencx-widget] .prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-opencx-widget] .prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-opencx-widget] .prose-sm{font-size:.875rem;line-height:1.7142857}[data-opencx-widget] .prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}[data-opencx-widget] .prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}[data-opencx-widget] .prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}[data-opencx-widget] .prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}[data-opencx-widget] .prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}[data-opencx-widget] .prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}[data-opencx-widget] .prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}[data-opencx-widget] .prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}[data-opencx-widget] .prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}[data-opencx-widget] .prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}[data-opencx-widget] .prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-opencx-widget] .prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-opencx-widget] .prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-opencx-widget] .prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}[data-opencx-widget] .prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-opencx-widget] .prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-opencx-widget] .prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-opencx-widget] .prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-opencx-widget] .prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-opencx-widget] .prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-opencx-widget] .prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-opencx-widget] .prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}[data-opencx-widget] .prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}[data-opencx-widget] .prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}[data-opencx-widget] .prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-opencx-widget] .prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-opencx-widget] .prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}[data-opencx-widget] .prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-opencx-widget] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-opencx-widget] .pointer-events-none{pointer-events:none}[data-opencx-widget] .visible{visibility:visible}[data-opencx-widget] .invisible{visibility:hidden}[data-opencx-widget] .static{position:static}[data-opencx-widget] .fixed{position:fixed}[data-opencx-widget] .absolute{position:absolute}[data-opencx-widget] .relative{position:relative}[data-opencx-widget] .sticky{position:sticky}[data-opencx-widget] .inset-0{top:0;right:0;bottom:0;left:0}[data-opencx-widget] .bottom-0{bottom:0}[data-opencx-widget] .left-0{left:0}[data-opencx-widget] .left-2{left:.5rem}[data-opencx-widget] .left-\\[50\\%\\]{left:50%}[data-opencx-widget] .right-4{right:1rem}[data-opencx-widget] .top-0{top:0}[data-opencx-widget] .top-4{top:1rem}[data-opencx-widget] .top-\\[50\\%\\]{top:50%}[data-opencx-widget] .isolate{isolation:isolate}[data-opencx-widget] .z-10{z-index:10}[data-opencx-widget] .z-50{z-index:50}[data-opencx-widget] .-mx-1{margin-left:-.25rem;margin-right:-.25rem}[data-opencx-widget] .my-1{margin-top:.25rem;margin-bottom:.25rem}[data-opencx-widget] .mb-2{margin-bottom:.5rem}[data-opencx-widget] .ml-auto{margin-left:auto}[data-opencx-widget] .mt-0\\.5{margin-top:.125rem}[data-opencx-widget] .mt-auto{margin-top:auto}[data-opencx-widget] .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}[data-opencx-widget] .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}[data-opencx-widget] .block{display:block}[data-opencx-widget] .inline-block{display:inline-block}[data-opencx-widget] .inline{display:inline}[data-opencx-widget] .flex{display:flex}[data-opencx-widget] .inline-flex{display:inline-flex}[data-opencx-widget] .grid{display:grid}[data-opencx-widget] .contents{display:contents}[data-opencx-widget] .hidden{display:none}[data-opencx-widget] .aspect-square{aspect-ratio:1 / 1}[data-opencx-widget] .size-10{width:2.5rem;height:2.5rem}[data-opencx-widget] .size-12{width:3rem;height:3rem}[data-opencx-widget] .size-16{width:4rem;height:4rem}[data-opencx-widget] .size-3{width:.75rem;height:.75rem}[data-opencx-widget] .size-3\\.5{width:.875rem;height:.875rem}[data-opencx-widget] .size-4{width:1rem;height:1rem}[data-opencx-widget] .size-6{width:1.5rem;height:1.5rem}[data-opencx-widget] .size-8{width:2rem;height:2rem}[data-opencx-widget] .size-auto{width:auto;height:auto}[data-opencx-widget] .size-fit{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}[data-opencx-widget] .size-full{width:100%;height:100%}[data-opencx-widget] .h-10{height:2.5rem}[data-opencx-widget] .h-2{height:.5rem}[data-opencx-widget] .h-3\\.5{height:.875rem}[data-opencx-widget] .h-4{height:1rem}[data-opencx-widget] .h-5{height:1.25rem}[data-opencx-widget] .h-8{height:2rem}[data-opencx-widget] .h-full{height:100%}[data-opencx-widget] .h-px{height:1px}[data-opencx-widget] .max-h-full{max-height:100%}[data-opencx-widget] .min-h-12{min-height:3rem}[data-opencx-widget] .w-1\\/2{width:50%}[data-opencx-widget] .w-10{width:2.5rem}[data-opencx-widget] .w-2{width:.5rem}[data-opencx-widget] .w-3\\.5{width:.875rem}[data-opencx-widget] .w-4{width:1rem}[data-opencx-widget] .w-5\\/6{width:83.333333%}[data-opencx-widget] .w-60{width:15rem}[data-opencx-widget] .w-9{width:2.25rem}[data-opencx-widget] .w-auto{width:auto}[data-opencx-widget] .w-fit{width:-moz-fit-content;width:fit-content}[data-opencx-widget] .w-full{width:100%}[data-opencx-widget] .min-w-56{min-width:14rem}[data-opencx-widget] .min-w-\\[8rem\\]{min-width:8rem}[data-opencx-widget] .max-w-\\[320px\\]{max-width:320px}[data-opencx-widget] .max-w-full{max-width:100%}[data-opencx-widget] .max-w-lg{max-width:32rem}[data-opencx-widget] .max-w-xs{max-width:20rem}[data-opencx-widget] .flex-1{flex:1 1 0%}[data-opencx-widget] .shrink-0{flex-shrink:0}[data-opencx-widget] .translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .translate-x-\\[var\\(--opencx-wobble-x\\)\\]{--tw-translate-x: var(--opencx-wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .translate-y-\\[var\\(--opencx-wobble-y\\)\\]{--tw-translate-y: var(--opencx-wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\.01\\]{--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\.02\\]{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\.1\\]{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-opencx-widget] .animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}[data-opencx-widget] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}[data-opencx-widget] .animate-spin{animation:spin 1s linear infinite}[data-opencx-widget] .cursor-default{cursor:default}[data-opencx-widget] .cursor-not-allowed{cursor:not-allowed}[data-opencx-widget] .cursor-pointer{cursor:pointer}[data-opencx-widget] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-opencx-widget] .resize-none{resize:none}[data-opencx-widget] .flex-row{flex-direction:row}[data-opencx-widget] .flex-col{flex-direction:column}[data-opencx-widget] .flex-col-reverse{flex-direction:column-reverse}[data-opencx-widget] .flex-wrap{flex-wrap:wrap}[data-opencx-widget] .items-start{align-items:flex-start}[data-opencx-widget] .items-end{align-items:flex-end}[data-opencx-widget] .items-center{align-items:center}[data-opencx-widget] .justify-start{justify-content:flex-start}[data-opencx-widget] .justify-end{justify-content:flex-end}[data-opencx-widget] .justify-center{justify-content:center}[data-opencx-widget] .justify-between{justify-content:space-between}[data-opencx-widget] .gap-0{gap:0px}[data-opencx-widget] .gap-0\\.5{gap:.125rem}[data-opencx-widget] .gap-1{gap:.25rem}[data-opencx-widget] .gap-2{gap:.5rem}[data-opencx-widget] .gap-4{gap:1rem}[data-opencx-widget] .gap-\\[1px\\]{gap:1px}[data-opencx-widget] .space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}[data-opencx-widget] .space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}[data-opencx-widget] .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}[data-opencx-widget] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}[data-opencx-widget] .overflow-auto{overflow:auto}[data-opencx-widget] .overflow-hidden{overflow:hidden}[data-opencx-widget] .overflow-scroll{overflow:scroll}[data-opencx-widget] .scroll-smooth{scroll-behavior:smooth}[data-opencx-widget] .text-ellipsis{text-overflow:ellipsis}[data-opencx-widget] .whitespace-normal{white-space:normal}[data-opencx-widget] .whitespace-nowrap{white-space:nowrap}[data-opencx-widget] .whitespace-pre-wrap{white-space:pre-wrap}[data-opencx-widget] .break-words{overflow-wrap:break-word}[data-opencx-widget] .rounded-2xl{border-radius:1rem}[data-opencx-widget] .rounded-3xl{border-radius:1.5rem}[data-opencx-widget] .rounded-full{border-radius:9999px}[data-opencx-widget] .rounded-lg{border-radius:.5rem}[data-opencx-widget] .rounded-md{border-radius:.375rem}[data-opencx-widget] .rounded-sm{border-radius:.125rem}[data-opencx-widget] .rounded-xl{border-radius:.75rem}[data-opencx-widget] .rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}[data-opencx-widget] .border{border-width:1px}[data-opencx-widget] .border-2{border-width:2px}[data-opencx-widget] .border-b{border-bottom-width:1px}[data-opencx-widget] .border-none{border-style:none}[data-opencx-widget] .border-destructive{border-color:hsl(var(--opencx-destructive))}[data-opencx-widget] .border-input{border-color:hsl(var(--opencx-input))}[data-opencx-widget] .border-muted{border-color:hsl(var(--opencx-muted))}[data-opencx-widget] .border-primary{border-color:hsl(var(--opencx-primary))}[data-opencx-widget] .border-transparent{border-color:transparent}[data-opencx-widget] .bg-background{background-color:hsl(var(--opencx-background))}[data-opencx-widget] .bg-black\\/50{background-color:#00000080}[data-opencx-widget] .bg-black\\/80{background-color:#000c}[data-opencx-widget] .bg-destructive{background-color:hsl(var(--opencx-destructive))}[data-opencx-widget] .bg-muted{background-color:hsl(var(--opencx-muted))}[data-opencx-widget] .bg-primary{background-color:hsl(var(--opencx-primary))}[data-opencx-widget] .bg-secondary{background-color:hsl(var(--opencx-secondary))}[data-opencx-widget] .bg-transparent{background-color:transparent}[data-opencx-widget] .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}[data-opencx-widget] .fill-current{fill:currentColor}[data-opencx-widget] .object-contain{-o-object-fit:contain;object-fit:contain}[data-opencx-widget] .object-cover{-o-object-fit:cover;object-fit:cover}[data-opencx-widget] .p-0{padding:0}[data-opencx-widget] .p-1{padding:.25rem}[data-opencx-widget] .p-2{padding:.5rem}[data-opencx-widget] .p-4{padding:1rem}[data-opencx-widget] .p-6{padding:1.5rem}[data-opencx-widget] .px-2{padding-left:.5rem;padding-right:.5rem}[data-opencx-widget] .px-3{padding-left:.75rem;padding-right:.75rem}[data-opencx-widget] .px-4{padding-left:1rem;padding-right:1rem}[data-opencx-widget] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-opencx-widget] .py-12{padding-top:3rem;padding-bottom:3rem}[data-opencx-widget] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-opencx-widget] .pb-0{padding-bottom:0}[data-opencx-widget] .pl-2{padding-left:.5rem}[data-opencx-widget] .pl-3{padding-left:.75rem}[data-opencx-widget] .pl-8{padding-left:2rem}[data-opencx-widget] .pr-2{padding-right:.5rem}[data-opencx-widget] .pt-0{padding-top:0}[data-opencx-widget] .pt-2{padding-top:.5rem}[data-opencx-widget] .text-center{text-align:center}[data-opencx-widget] .text-start{text-align:start}[data-opencx-widget] .align-middle{vertical-align:middle}[data-opencx-widget] .font-inter{font-family:Inter,Rubik,serif,sans-serif}[data-opencx-widget] .text-2xl{font-size:1.5rem;line-height:2rem}[data-opencx-widget] .text-\\[10px\\]{font-size:10px}[data-opencx-widget] .text-lg{font-size:1.125rem;line-height:1.75rem}[data-opencx-widget] .text-sm{font-size:.875rem;line-height:1.25rem}[data-opencx-widget] .text-xl{font-size:1.25rem;line-height:1.75rem}[data-opencx-widget] .text-xs{font-size:.75rem;line-height:1rem}[data-opencx-widget] .font-bold{font-weight:700}[data-opencx-widget] .font-medium{font-weight:500}[data-opencx-widget] .font-semibold{font-weight:600}[data-opencx-widget] .leading-none{line-height:1}[data-opencx-widget] .leading-relaxed{line-height:1.625}[data-opencx-widget] .leading-snug{line-height:1.375}[data-opencx-widget] .leading-tight{line-height:1.25}[data-opencx-widget] .tracking-tight{letter-spacing:-.025em}[data-opencx-widget] .tracking-widest{letter-spacing:.1em}[data-opencx-widget] .text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}[data-opencx-widget] .text-destructive{color:hsl(var(--opencx-destructive))}[data-opencx-widget] .text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}[data-opencx-widget] .text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity))}[data-opencx-widget] .text-foreground{color:hsl(var(--opencx-foreground))}[data-opencx-widget] .text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}[data-opencx-widget] .text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}[data-opencx-widget] .text-primary{color:hsl(var(--opencx-primary))}[data-opencx-widget] .text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}[data-opencx-widget] .text-primary-foreground\\/90{color:hsl(var(--opencx-primary-foreground) / .9)}[data-opencx-widget] .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}[data-opencx-widget] .text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}[data-opencx-widget] .underline{text-decoration-line:underline}[data-opencx-widget] .underline-offset-4{text-underline-offset:4px}[data-opencx-widget] .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-opencx-widget] .opacity-0{opacity:0}[data-opencx-widget] .opacity-5{opacity:.05}[data-opencx-widget] .opacity-50{opacity:.5}[data-opencx-widget] .opacity-60{opacity:.6}[data-opencx-widget] .opacity-70{opacity:.7}[data-opencx-widget] .opacity-95{opacity:.95}[data-opencx-widget] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-opencx-widget] .outline{outline-style:solid}[data-opencx-widget] .outline-8{outline-width:8px}[data-opencx-widget] .outline-background{outline-color:hsl(var(--opencx-background))}[data-opencx-widget] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-opencx-widget] .ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-opencx-widget] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-opencx-widget] .backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-opencx-widget] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .duration-200{transition-duration:.2s}[data-opencx-widget] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}[data-opencx-widget] .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-opencx-widget] .fade-in-0{--tw-enter-opacity: 0}[data-opencx-widget] .zoom-in-95{--tw-enter-scale: .95}[data-opencx-widget] .duration-200{animation-duration:.2s}[data-opencx-widget] .ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}[data-opencx-widget] .\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}[data-opencx-widget] .\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}[data-opencx-widget] .\\[background\\:radial-gradient\\(50\\%_50\\%_at_50\\%_100\\%\\,hsl\\(var\\(--opencx-primary-foreground\\)\\)_-75\\%\\,hsl\\(var\\(--opencx-primary\\)\\)_100\\%\\)\\]{background:radial-gradient(50% 50% at 50% 100%,hsl(var(--opencx-primary-foreground)) -75%,hsl(var(--opencx-primary)))}[data-opencx-widget] .\\[word-break\\:break-word\\]{word-break:break-word}[data-opencx-widget] .required:after{content:" *";color:red}[data-opencx-widget] .file\\:border-0::file-selector-button{border-width:0px}[data-opencx-widget] .file\\:bg-transparent::file-selector-button{background-color:transparent}[data-opencx-widget] .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}[data-opencx-widget] .file\\:font-medium::file-selector-button{font-weight:500}[data-opencx-widget] .file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}[data-opencx-widget] .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .hover\\:bg-accent:hover{background-color:hsl(var(--opencx-accent))}[data-opencx-widget] .hover\\:bg-green-50\\/50:hover{background-color:#f0fdf480}[data-opencx-widget] .hover\\:bg-red-50\\/50:hover{background-color:#fef2f280}[data-opencx-widget] .hover\\:text-accent-foreground:hover{color:hsl(var(--opencx-accent-foreground))}[data-opencx-widget] .hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}[data-opencx-widget] .hover\\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}[data-opencx-widget] .hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}[data-opencx-widget] .hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}[data-opencx-widget] .hover\\:underline:hover{text-decoration-line:underline}[data-opencx-widget] .hover\\:opacity-100:hover{opacity:1}[data-opencx-widget] .focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}[data-opencx-widget] .focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}[data-opencx-widget] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-opencx-widget] .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-opencx-widget] .focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}[data-opencx-widget] .focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}[data-opencx-widget] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-opencx-widget] .focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-opencx-widget] .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}[data-opencx-widget] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-opencx-widget] .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-opencx-widget] .active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .active\\:shadow-none:active{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .disabled\\:pointer-events-none:disabled{pointer-events:none}[data-opencx-widget] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-opencx-widget] .disabled\\:opacity-50:disabled{opacity:.5}[data-opencx-widget] .group:hover .group-hover\\:opacity-100{opacity:1}[data-opencx-widget] .group:hover .group-hover\\:active\\:scale-90:active,[data-opencx-widget] .group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}[data-opencx-widget] .data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}[data-opencx-widget] .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}[data-opencx-widget] .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}[data-opencx-widget] .data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}[data-opencx-widget] .data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-opencx-widget] .data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}[data-opencx-widget] .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}[data-opencx-widget] .data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}[data-opencx-widget] .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}[data-opencx-widget] .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}[data-opencx-widget] .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}[data-opencx-widget] .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}[data-opencx-widget] .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}[data-opencx-widget] .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}[data-opencx-widget] .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}[data-opencx-widget] .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}[data-opencx-widget] .data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}[data-opencx-widget] .data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}[data-opencx-widget] .prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}[data-opencx-widget] .prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}@media (min-width: 640px){[data-opencx-widget] .sm\\:flex-row{flex-direction:row}[data-opencx-widget] .sm\\:justify-end{justify-content:flex-end}[data-opencx-widget] .sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}[data-opencx-widget] .sm\\:rounded-lg{border-radius:.5rem}[data-opencx-widget] .sm\\:text-left{text-align:left}}[data-opencx-widget] .rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .rtl\\:flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse}[data-opencx-widget] .rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}[data-opencx-widget] .rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::-moz-placeholder{text-align:right}[data-opencx-widget] .rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::placeholder{text-align:right}[data-opencx-widget] .\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}[data-opencx-widget] .\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}[data-opencx-widget] .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}[data-opencx-widget] .\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}[data-opencx-widget] .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}[data-opencx-widget] .\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}';function Hb({className:e,style:t}){return f.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:q("text-primary-foreground",e),style:t,children:[f.jsx("title",{children:"Chat Bubble"}),f.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}function Ub({className:e,style:t}){return f.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:q("text-primary-foreground",e),style:t,children:[f.jsx("title",{children:"Open Logo Pattern"}),f.jsx("path",{d:"M5.18154 12.7522L8.73348 14.8029C8.98814 14.961 9.17302 15.2102 9.25054 15.4998C9.32806 15.7894 9.29241 16.0977 9.15083 16.3621L7.09906 19.9159C6.95748 20.1803 6.92183 20.4886 6.99935 20.7782C7.07688 21.0678 7.26175 21.317 7.51641 21.4751L16.6659 26.7575C16.9301 26.899 17.2384 26.9345 17.5279 26.8569C17.8175 26.7792 18.0667 26.5942 18.2249 26.3394L20.2766 22.7856C20.4351 22.5303 20.685 22.3451 20.9752 22.2677C21.2655 22.1903 21.5743 22.2266 21.8386 22.3692L25.3755 24.4112C25.6397 24.5527 25.9479 24.5882 26.2375 24.5105C26.5271 24.4329 26.7763 24.2478 26.9344 23.993L35.4061 9.31978C35.5476 9.05541 35.5833 8.74709 35.5058 8.45747C35.4282 8.16786 35.2434 7.91868 34.9887 7.7606L31.4398 5.71162C31.1837 5.55365 30.9977 5.30371 30.9199 5.01297C30.842 4.72223 30.8783 4.41268 31.0212 4.14769L33.0712 0.596929C33.2118 0.33467 33.2482 0.0289995 33.173 -0.258845C33.0978 -0.54669 32.9167 -0.795451 32.6659 -0.955292L23.5164 -6.23775C23.2522 -6.37925 22.9439 -6.41477 22.6544 -6.3371C22.3648 -6.25942 22.1156 -6.07439 21.9574 -5.8196L19.9074 -2.26883C19.7497 -2.01308 19.5004 -1.8271 19.2104 -1.74884C18.9204 -1.67057 18.6115 -1.70592 18.3467 -1.84767L14.7948 -3.89838C14.5305 -4.03988 14.2223 -4.0754 13.9327 -3.99773C13.6432 -3.92005 13.394 -3.73502 13.2358 -3.48023L4.76419 11.193C4.62262 11.4574 4.58697 11.7657 4.66449 12.0553C4.74201 12.345 4.92689 12.5941 5.18154 12.7522ZM10.2924 14.3848L18.7641 -0.288487C18.9222 -0.543279 19.1714 -0.728316 19.461 -0.805987C19.7506 -0.883659 20.0588 -0.848137 20.323 -0.706641L29.4725 4.57582C29.7272 4.7339 29.912 4.98307 29.9896 5.27269C30.0671 5.56231 30.0314 5.87063 29.8899 6.13499L21.4182 20.8083C21.2601 21.063 21.0109 21.2481 20.7213 21.3258C20.4317 21.4034 20.1235 21.3679 19.8593 21.2264L10.7098 15.944C10.4551 15.7859 10.2703 15.5367 10.1927 15.2471C10.1152 14.9575 10.1509 14.6491 10.2924 14.3848Z",fill:"currentColor"}),f.jsx("path",{d:"M31.1815 27.7522L34.7335 29.8029C34.9881 29.961 35.173 30.2102 35.2505 30.4998C35.3281 30.7894 35.2924 31.0977 35.1508 31.3621L33.0991 34.9159C32.9575 35.1803 32.9218 35.4886 32.9994 35.7782C33.0769 36.0678 33.2618 36.317 33.5164 36.4751L42.6659 41.7575C42.9301 41.899 43.2384 41.9345 43.5279 41.8569C43.8175 41.7792 44.0667 41.5942 44.2249 41.3394L46.2766 37.7856C46.4351 37.5303 46.685 37.3451 46.9752 37.2677C47.2655 37.1903 47.5743 37.2266 47.8386 37.3692L51.3755 39.4112C51.6397 39.5527 51.9479 39.5882 52.2375 39.5105C52.5271 39.4329 52.7763 39.2478 52.9344 38.993L61.4061 24.3198C61.5476 24.0554 61.5833 23.7471 61.5058 23.4575C61.4282 23.1679 61.2434 22.9187 60.9887 22.7606L57.4398 20.7116C57.1837 20.5537 56.9977 20.3037 56.9199 20.013C56.842 19.7222 56.8783 19.4127 57.0212 19.1477L59.0712 15.5969C59.2118 15.3347 59.2482 15.029 59.173 14.7412C59.0978 14.4533 58.9167 14.2045 58.6659 14.0447L49.5164 8.76225C49.2522 8.62075 48.9439 8.58523 48.6544 8.6629C48.3648 8.74058 48.1156 8.92561 47.9574 9.1804L45.9074 12.7312C45.7497 12.9869 45.5004 13.1729 45.2104 13.2512C44.9204 13.3294 44.6115 13.2941 44.3467 13.1523L40.7948 11.1016C40.5305 10.9601 40.2223 10.9246 39.9327 11.0023C39.6432 11.0799 39.394 11.265 39.2358 11.5198L30.7642 26.193C30.6226 26.4574 30.587 26.7657 30.6645 27.0553C30.742 27.345 30.9269 27.5941 31.1815 27.7522ZM36.2924 29.3848L44.7641 14.7115C44.9222 14.4567 45.1714 14.2717 45.461 14.194C45.7506 14.1163 46.0588 14.1519 46.323 14.2934L55.4725 19.5758C55.7272 19.7339 55.912 19.9831 55.9896 20.2727C56.0671 20.5623 56.0314 20.8706 55.8899 21.135L47.4182 35.8083C47.2601 36.063 47.0109 36.2481 46.7213 36.3258C46.4317 36.4034 46.1235 36.3679 45.8593 36.2264L36.7098 30.944C36.4551 30.7859 36.2703 30.5367 36.1927 30.2471C36.1152 29.9575 36.1509 29.6491 36.2924 29.3848Z",fill:"currentColor"}),f.jsx("path",{d:"M4.18154 44.7522L7.73348 46.8029C7.98814 46.961 8.17302 47.2102 8.25054 47.4998C8.32806 47.7894 8.29241 48.0977 8.15083 48.3621L6.09906 51.9159C5.95748 52.1803 5.92183 52.4886 5.99935 52.7782C6.07688 53.0678 6.26175 53.317 6.51641 53.4751L15.6659 58.7575C15.9301 58.899 16.2384 58.9345 16.5279 58.8569C16.8175 58.7792 17.0667 58.5942 17.2249 58.3394L19.2766 54.7856C19.4351 54.5303 19.685 54.3451 19.9752 54.2677C20.2655 54.1903 20.5743 54.2266 20.8386 54.3692L24.3755 56.4112C24.6397 56.5527 24.9479 56.5882 25.2375 56.5105C25.5271 56.4329 25.7763 56.2478 25.9344 55.993L34.4061 41.3198C34.5476 41.0554 34.5833 40.7471 34.5058 40.4575C34.4282 40.1679 34.2434 39.9187 33.9887 39.7606L30.4398 37.7116C30.1837 37.5537 29.9977 37.3037 29.9199 37.013C29.842 36.7222 29.8783 36.4127 30.0212 36.1477L32.0712 32.5969C32.2118 32.3347 32.2482 32.029 32.173 31.7412C32.0978 31.4533 31.9167 31.2045 31.6659 31.0447L22.5164 25.7623C22.2522 25.6208 21.9439 25.5852 21.6544 25.6629C21.3648 25.7406 21.1156 25.9256 20.9574 26.1804L18.9074 29.7312C18.7497 29.9869 18.5004 30.1729 18.2104 30.2512C17.9204 30.3294 17.6115 30.2941 17.3467 30.1523L13.7948 28.1016C13.5305 27.9601 13.2223 27.9246 12.9327 28.0023C12.6432 28.0799 12.394 28.265 12.2358 28.5198L3.76419 43.193C3.62262 43.4574 3.58697 43.7657 3.66449 44.0553C3.74201 44.345 3.92689 44.5941 4.18154 44.7522ZM9.29245 46.3848L17.7641 31.7115C17.9222 31.4567 18.1714 31.2717 18.461 31.194C18.7506 31.1163 19.0588 31.1519 19.323 31.2934L28.4725 36.5758C28.7272 36.7339 28.912 36.9831 28.9896 37.2727C29.0671 37.5623 29.0314 37.8706 28.8899 38.135L20.4182 52.8083C20.2601 53.063 20.0109 53.2481 19.7213 53.3258C19.4317 53.4034 19.1235 53.3679 18.8593 53.2264L9.7098 47.944C9.45514 47.7859 9.27026 47.5367 9.19274 47.2471C9.11522 46.9575 9.15087 46.6491 9.29245 46.3848Z",fill:"currentColor"}),f.jsx("path",{d:"M30.1815 59.7522L33.7335 61.8029C33.9881 61.961 34.173 62.2102 34.2505 62.4998C34.3281 62.7894 34.2924 63.0977 34.1508 63.3621L32.0991 66.9159C31.9575 67.1803 31.9218 67.4886 31.9994 67.7782C32.0769 68.0678 32.2618 68.317 32.5164 68.4751L41.6659 73.7575C41.9301 73.899 42.2384 73.9345 42.5279 73.8569C42.8175 73.7792 43.0667 73.5942 43.2249 73.3394L45.2766 69.7856C45.4351 69.5303 45.685 69.3451 45.9752 69.2677C46.2655 69.1903 46.5743 69.2266 46.8386 69.3692L50.3755 71.4112C50.6397 71.5527 50.9479 71.5882 51.2375 71.5105C51.5271 71.4329 51.7763 71.2478 51.9344 70.993L60.4061 56.3198C60.5476 56.0554 60.5833 55.7471 60.5058 55.4575C60.4282 55.1679 60.2434 54.9187 59.9887 54.7606L56.4398 52.7116C56.1837 52.5537 55.9977 52.3037 55.9199 52.013C55.842 51.7222 55.8783 51.4127 56.0212 51.1477L58.0712 47.5969C58.2118 47.3347 58.2482 47.029 58.173 46.7412C58.0978 46.4533 57.9167 46.2045 57.6659 46.0447L48.5164 40.7623C48.2522 40.6208 47.9439 40.5852 47.6544 40.6629C47.3648 40.7406 47.1156 40.9256 46.9574 41.1804L44.9074 44.7312C44.7497 44.9869 44.5004 45.1729 44.2104 45.2512C43.9204 45.3294 43.6115 45.2941 43.3467 45.1523L39.7948 43.1016C39.5305 42.9601 39.2223 42.9246 38.9327 43.0023C38.6432 43.0799 38.394 43.265 38.2358 43.5198L29.7642 58.193C29.6226 58.4574 29.587 58.7657 29.6645 59.0553C29.742 59.345 29.9269 59.5941 30.1815 59.7522ZM35.2924 61.3848L43.7641 46.7115C43.9222 46.4567 44.1714 46.2717 44.461 46.194C44.7506 46.1163 45.0588 46.1519 45.323 46.2934L54.4725 51.5758C54.7272 51.7339 54.912 51.9831 54.9896 52.2727C55.0671 52.5623 55.0314 52.8706 54.8899 53.135L46.4182 67.8083C46.2601 68.063 46.0109 68.2481 45.7213 68.3258C45.4317 68.4034 45.1235 68.3679 44.8593 68.2264L35.7098 62.944C35.4551 62.7859 35.2703 62.5367 35.1927 62.2471C35.1152 61.9575 35.1509 61.6491 35.2924 61.3848Z",fill:"currentColor"})]})}const zb=`<!DOCTYPE html>
|
|
35
|
+
`,maxWidth:`calc(100vw - ${t.widgetTrigger.offset.right} - ${t.widgetTrigger.offset.right})`,minHeight:`min(${t.screens.welcome.minHeight}, ${t.screens.sessions.height}, ${t.screens.chat.height})`,minWidth:`min(${t.screens.welcome.width}, ${t.screens.sessions.width}, ${t.screens.chat.width})`};return{theme:t,computed:n,cssVars:Nb({primary:t.primaryColor})}}function Nb({primary:e}){const t=la(e).toHsl(),n=la(e).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${t.h} ${t.s*100}% ${t.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%"}}const Ib="[data-opencx-widget-content-root]";function na({width:e,height:t}){K.useEffect(()=>{const n=document.querySelector(Ib);e&&(n==null||n.style.setProperty("--opencx-widget-width",e)),t&&(n==null||n.style.setProperty("--opencx-widget-height",t))},[])}function Sb(){const{messagesState:{isInitialFetchLoading:e}}=Q.useMessages(),{sessionState:{session:t}}=Q.useSessions(),{theme:n}=cn();na({width:n.screens.chat.width,height:n.screens.chat.height});const r=K.useRef((t==null?void 0:t.id)||"chat").current;return f.jsx("div",{className:q("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:f.jsxs("div",{className:"size-full justify-between flex flex-col",children:[f.jsx(zi,{}),f.jsx(ge.AnimatePresence,{mode:"wait",children:e?f.jsx(se,{className:"flex flex-col items-center justify-center w-full flex-1",children:f.jsx(Go,{})},"loading"):f.jsxs(se,{className:"flex flex-col w-full flex-1 overflow-auto",snapExit:!0,children:[f.jsx(kb,{}),f.jsx(fl,{})]},r)})]})})}const Lb="[data-opencx-widget-content-root]";function Ob(){const e=K.useRef(null);return K.useEffect(()=>{const t=document.querySelector(Lb);if(t&&e.current){const n=e.current;let r;const a=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{const i=n.offsetHeight;t.style.setProperty("--opencx-widget-height",`${i.toFixed(1)}px`)})});return a.observe(n),()=>{cancelAnimationFrame(r),a.unobserve(n)}}},[]),{observedElementRef:e}}const Tn=xe.forwardRef(({className:e,type:t,...n},r)=>{const a=On();return f.jsx(Ke,{ref:r,children:f.jsx("input",{dir:a,type:t,className:q("flex w-full rounded-xl border border-input bg-background p-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rtl:placeholder:text-right",e),...n})})});Tn.displayName="Input";function Rb({className:e}){return f.jsxs("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:q("text-primary-foreground",e),children:[f.jsx("title",{children:"Open Logo"}),f.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})]})}function Qo({className:e}){const{token:t}=Q.useConfig();return f.jsx("div",{className:q("flex items-center justify-center gap-2 p-2 pt-0 bg-white text-muted-foreground/70 [&_svg]:text-muted-foreground/70",e),children:f.jsx(Ke,{children:f.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:"text-[10px] flex items-center",children:[f.jsx("span",{children:"Powered by"}),f.jsx("span",{children:" "}),f.jsxs("span",{className:"flex items-center gap-[1px]",children:[f.jsx("span",{children:f.jsx(Rb,{className:"size-3 inline-block"})}),f.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}const Db=Gn.z.object({name:Gn.z.string().min(2),email:Gn.z.string().email()});function vb(){var y,A,_,L,O,P,F,I,H;const{createUnverifiedContact:e}=Q.useContact(),t=Q.useConfig(),{theme:n}=cn(),r=St(),{data:a}=Q.usePreludeData(),{observedElementRef:i}=Ob();na({height:void 0,width:n.screens.welcome.width});const[s,u]=K.useState(((y=t.prefillUserData)==null?void 0:y.name)||""),[l,c]=K.useState(((A=t.prefillUserData)==null?void 0:A.email)||""),h=(t.extraDataCollectionFields||[]).filter(U=>U!=="name"&&U!=="email"&&!!U),[d,b]=K.useState({}),[p,E]=Q._default(async U=>{U.preventDefault();const Y=Db.safeParse({name:s,email:l});Y.success&&await e({email:Y.data.email,non_verified_name:Y.data.name},Object.values(d).filter(Boolean).length?d:void 0)},[s,l,d]);return f.jsx("div",{className:q("bg-primary"),style:{width:"100vw",maxWidth:"100vw",minHeight:n.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:f.jsxs("div",{ref:i,className:"flex flex-col",children:[f.jsxs("div",{dir:"auto",className:"flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",children:[f.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(_=t.assets)!=null&&_.organizationLogo?f.jsx("img",{src:(L=t.assets)==null?void 0:L.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):f.jsx("h2",{className:"font-bold text-xl text-primary-foreground",dir:"auto",children:(O=a==null?void 0:a.data)==null?void 0:O.organizationName})}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("h1",{className:"text-2xl font-bold text-primary-foreground",dir:"auto",children:((F=(P=t.textContent)==null?void 0:P.welcomeScreen)==null?void 0:F.title)||r.get("welcome-title")}),f.jsx("p",{className:"text-primary-foreground/90 text-sm max-w-[320px] leading-relaxed",dir:"auto",children:((H=(I=t.textContent)==null?void 0:I.welcomeScreen)==null?void 0:H.description)||r.get("welcome-description")})]})]}),f.jsxs("div",{className:"z-10 px-2 pt-2 bp-0 bg-background rounded-t-3xl space-y-2",dir:"auto",children:[f.jsxs("form",{onSubmit:E,className:"space-y-2",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx(Tn,{value:s,onChange:U=>u(U.target.value),required:!0,placeholder:r.get("your-name"),name:"name",className:"rounded-3xl pl-3"}),f.jsx(Tn,{required:!0,value:l,onChange:U=>c(U.target.value),type:"email",placeholder:r.get("your-email"),name:"email",className:"rounded-3xl pl-3"}),h.map(U=>f.jsx(Tn,{value:d[U],onChange:Y=>b(k=>({...k,[U]:Y.target.value})),placeholder:`${U} (${r.get("optional")})`,className:"rounded-3xl pl-3"},U))]}),f.jsxs(Oe,{disabled:p.loading,className:"w-full rounded-3xl",size:"lg",children:[p.loading?r.get("starting-chat"):r.get("start-chat"),f.jsx(le.SendHorizontal,{className:"size-4 rtl:-scale-100"})]})]}),f.jsx(Qo,{})]})]})})}function Pb({session:e}){const{bot:t}=Q.useConfig(),{toChatScreen:n}=Q.useWidgetRouter(),r=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(t==null?void 0:t.name)||"AI Support Agent",a=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(t==null?void 0:t.avatar)||"";return f.jsxs(Oe,{variant:"outline",size:"lg",className:"border-muted rounded-full p-2 flex text-start justify-between w-full whitespace-normal",onClick:()=>n(e.id),children:[f.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[f.jsx(ge.AnimatePresence,{mode:"wait",children:f.jsx(se,{snapExit:!0,children:f.jsx(ln,{className:"size-10",children:f.jsx(Wn,{src:a,alt:"Agent Icon"})})})}),f.jsxs("div",{className:"flex-1",children:[f.jsx(ge.AnimatePresence,{mode:"wait",children:f.jsx(se,{snapExit:!0,children:r},r)}),f.jsx(ge.AnimatePresence,{mode:"wait",children:e.lastMessage?f.jsx(se,{snapExit:!0,children:f.jsx($s,{remarkPlugins:[Cs],rehypePlugins:[Bo],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):f.jsx(se,{className:"w-1/2",snapExit:!0,children:f.jsx(Ui,{className:"h-4 w-full"})},"skeleton")})]})]}),f.jsx(le.ChevronRightIcon,{className:"size-4 text-muted-foreground shrink-0"})]})}function Mb(){const e=St(),{toChatScreen:t}=Q.useWidgetRouter(),{sessionsState:{data:n,isInitialFetchLoading:r}}=Q.useSessions();return f.jsx("div",{className:"flex-1 flex flex-col overflow-scroll p-2",children:f.jsx(ge.AnimatePresence,{mode:"wait",children:r?f.jsx(se,{className:"flex-1 flex items-center justify-center",children:f.jsx(Go,{})},"loading"):f.jsx(se,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?f.jsxs(f.Fragment,{children:[f.jsx(ge.AnimatePresence,{children:n.map((a,i)=>f.jsx(se,{snapExit:!0,children:f.jsx(Pb,{session:a})},`${a.id}-${i}`))}),f.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background",children:f.jsx(Oe,{size:"lg",className:"w-full rounded-3xl",onClick:()=>t(),children:e.get("new-conversation")},"new-session")})]}):f.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("p",{className:"text-muted-foreground",children:e.get("no-conversations-yet")})}),f.jsx(Oe,{size:"lg",className:"w-full rounded-3xl",onClick:()=>t(),children:e.get("new-conversation")},"new-session")]})},"sessions")})})}function Bb(){const{theme:e}=cn();return na({width:e.screens.sessions.width,height:e.screens.sessions.height}),f.jsxs("div",{className:q("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:[f.jsxs("div",{className:"size-full flex flex-col",children:[f.jsx(zi,{}),f.jsx(Mb,{})]}),f.jsx(Qo,{})]})}function Fb(){Q.usePreludeData();const{routerState:{screen:e}}=Q.useWidgetRouter();return f.jsxs("div",{className:"relative bg-background size-full",children:[f.jsx(qn.Container,{}),f.jsx(ge.AnimatePresence,{mode:"wait",children:(()=>{switch(e){case"welcome":return f.jsx(se,{fadeIn:"right",className:"size-full",snapExit:!0,children:f.jsx(vb,{})},e);case"sessions":return f.jsx(se,{fadeIn:"right",className:"size-full",snapExit:!0,children:f.jsx(Bb,{})},e);case"chat":return f.jsx(se,{fadeIn:"right",className:"size-full",snapExit:!0,children:f.jsx(Sb,{})},e);default:return null}})()})]})}const ra='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";[data-opencx-widget] *,[data-opencx-widget] :before,[data-opencx-widget] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-opencx-widget] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-opencx-widget] *,[data-opencx-widget] :before,[data-opencx-widget] :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[data-opencx-widget] :before,[data-opencx-widget] :after{--tw-content: ""}[data-opencx-widget] html,[data-opencx-widget] :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}[data-opencx-widget] body{margin:0;line-height:inherit}[data-opencx-widget] hr{height:0;color:inherit;border-top-width:1px}[data-opencx-widget] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-opencx-widget] h1,[data-opencx-widget] h2,[data-opencx-widget] h3,[data-opencx-widget] h4,[data-opencx-widget] h5,[data-opencx-widget] h6{font-size:inherit;font-weight:inherit}[data-opencx-widget] a{color:inherit;text-decoration:inherit}[data-opencx-widget] b,[data-opencx-widget] strong{font-weight:bolder}[data-opencx-widget] code,[data-opencx-widget] kbd,[data-opencx-widget] samp,[data-opencx-widget] pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}[data-opencx-widget] small{font-size:80%}[data-opencx-widget] sub,[data-opencx-widget] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-opencx-widget] sub{bottom:-.25em}[data-opencx-widget] sup{top:-.5em}[data-opencx-widget] table{text-indent:0;border-color:inherit;border-collapse:collapse}[data-opencx-widget] button,[data-opencx-widget] input,[data-opencx-widget] optgroup,[data-opencx-widget] select,[data-opencx-widget] textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}[data-opencx-widget] button,[data-opencx-widget] select{text-transform:none}[data-opencx-widget] button,[data-opencx-widget] input:where([type=button]),[data-opencx-widget] input:where([type=reset]),[data-opencx-widget] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-opencx-widget] :-moz-focusring{outline:auto}[data-opencx-widget] :-moz-ui-invalid{box-shadow:none}[data-opencx-widget] progress{vertical-align:baseline}[data-opencx-widget] ::-webkit-inner-spin-button,[data-opencx-widget] ::-webkit-outer-spin-button{height:auto}[data-opencx-widget] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-opencx-widget] ::-webkit-search-decoration{-webkit-appearance:none}[data-opencx-widget] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-opencx-widget] summary{display:list-item}[data-opencx-widget] blockquote,[data-opencx-widget] dl,[data-opencx-widget] dd,[data-opencx-widget] h1,[data-opencx-widget] h2,[data-opencx-widget] h3,[data-opencx-widget] h4,[data-opencx-widget] h5,[data-opencx-widget] h6,[data-opencx-widget] hr,[data-opencx-widget] figure,[data-opencx-widget] p,[data-opencx-widget] pre{margin:0}[data-opencx-widget] fieldset{margin:0;padding:0}[data-opencx-widget] legend{padding:0}[data-opencx-widget] ol,[data-opencx-widget] ul,[data-opencx-widget] menu{list-style:none;margin:0;padding:0}[data-opencx-widget] dialog{padding:0}[data-opencx-widget] textarea{resize:vertical}[data-opencx-widget] input::-moz-placeholder,[data-opencx-widget] textarea::-moz-placeholder{opacity:1;color:#9ca3af}[data-opencx-widget] input::placeholder,[data-opencx-widget] textarea::placeholder{opacity:1;color:#9ca3af}[data-opencx-widget] button,[data-opencx-widget] [role=button]{cursor:pointer}[data-opencx-widget] :disabled{cursor:default}[data-opencx-widget] img,[data-opencx-widget] svg,[data-opencx-widget] video,[data-opencx-widget] canvas,[data-opencx-widget] audio,[data-opencx-widget] iframe,[data-opencx-widget] embed,[data-opencx-widget] object{display:block;vertical-align:middle}[data-opencx-widget] img,[data-opencx-widget] video{max-width:100%;height:auto}[data-opencx-widget] [hidden]:where(:not([hidden=until-found])){display:none}[data-opencx-widget] *{-ms-overflow-style:none;scrollbar-width:none}[data-opencx-widget] *::-webkit-scrollbar{display:none}[data-opencx-widget] *{border-color:hsl(var(--opencx-border))}[data-opencx-widget] .container{width:100%}@media (min-width: 640px){[data-opencx-widget] .container{max-width:640px}}@media (min-width: 768px){[data-opencx-widget] .container{max-width:768px}}@media (min-width: 1024px){[data-opencx-widget] .container{max-width:1024px}}@media (min-width: 1280px){[data-opencx-widget] .container{max-width:1280px}}@media (min-width: 1536px){[data-opencx-widget] .container{max-width:1536px}}[data-opencx-widget] .prose{color:var(--tw-prose-body);max-width:65ch}[data-opencx-widget] .prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-opencx-widget] .prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}[data-opencx-widget] .prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}[data-opencx-widget] .prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}[data-opencx-widget] .prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-opencx-widget] .prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-opencx-widget] .prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-opencx-widget] .prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-opencx-widget] .prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-opencx-widget] .prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-opencx-widget] .prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-opencx-widget] .prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-opencx-widget] .prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-opencx-widget] .prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}[data-opencx-widget] .prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-opencx-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}[data-opencx-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}[data-opencx-widget] .prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}[data-opencx-widget] .prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}[data-opencx-widget] .prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}[data-opencx-widget] .prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}[data-opencx-widget] .prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}[data-opencx-widget] .prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}[data-opencx-widget] .prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}[data-opencx-widget] .prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}[data-opencx-widget] .prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}[data-opencx-widget] .prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}[data-opencx-widget] .prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-opencx-widget] .prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}[data-opencx-widget] .prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-opencx-widget] .prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}[data-opencx-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}[data-opencx-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}[data-opencx-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}[data-opencx-widget] .prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}[data-opencx-widget] .prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}[data-opencx-widget] .prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-opencx-widget] .prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}[data-opencx-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}[data-opencx-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}[data-opencx-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}[data-opencx-widget] .prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}[data-opencx-widget] .prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}[data-opencx-widget] .prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-opencx-widget] .prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}[data-opencx-widget] .prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}[data-opencx-widget] .prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}[data-opencx-widget] .prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}[data-opencx-widget] .prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}[data-opencx-widget] .prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}[data-opencx-widget] .prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}[data-opencx-widget] .prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}[data-opencx-widget] .prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}[data-opencx-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-opencx-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-opencx-widget] .prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-opencx-widget] .prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-opencx-widget] .prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-opencx-widget] .prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-opencx-widget] .prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-opencx-widget] .prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-opencx-widget] .prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-opencx-widget] .prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}[data-opencx-widget] .prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-opencx-widget] .prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-opencx-widget] .prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-opencx-widget] .prose-sm{font-size:.875rem;line-height:1.7142857}[data-opencx-widget] .prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}[data-opencx-widget] .prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}[data-opencx-widget] .prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}[data-opencx-widget] .prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}[data-opencx-widget] .prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}[data-opencx-widget] .prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}[data-opencx-widget] .prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}[data-opencx-widget] .prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}[data-opencx-widget] .prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}[data-opencx-widget] .prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}[data-opencx-widget] .prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-opencx-widget] .prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-opencx-widget] .prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-opencx-widget] .prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}[data-opencx-widget] .prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-opencx-widget] .prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-opencx-widget] .prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-opencx-widget] .prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-opencx-widget] .prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-opencx-widget] .prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-opencx-widget] .prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-opencx-widget] .prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-opencx-widget] .prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}[data-opencx-widget] .prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}[data-opencx-widget] .prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}[data-opencx-widget] .prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-opencx-widget] .prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-opencx-widget] .prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-opencx-widget] .prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-opencx-widget] .prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-opencx-widget] .prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-opencx-widget] .prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}[data-opencx-widget] .prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-opencx-widget] .prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-opencx-widget] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-opencx-widget] .pointer-events-none{pointer-events:none}[data-opencx-widget] .visible{visibility:visible}[data-opencx-widget] .invisible{visibility:hidden}[data-opencx-widget] .static{position:static}[data-opencx-widget] .fixed{position:fixed}[data-opencx-widget] .absolute{position:absolute}[data-opencx-widget] .relative{position:relative}[data-opencx-widget] .sticky{position:sticky}[data-opencx-widget] .inset-0{top:0;right:0;bottom:0;left:0}[data-opencx-widget] .bottom-0{bottom:0}[data-opencx-widget] .left-0{left:0}[data-opencx-widget] .left-2{left:.5rem}[data-opencx-widget] .left-\\[50\\%\\]{left:50%}[data-opencx-widget] .right-4{right:1rem}[data-opencx-widget] .top-0{top:0}[data-opencx-widget] .top-4{top:1rem}[data-opencx-widget] .top-\\[50\\%\\]{top:50%}[data-opencx-widget] .isolate{isolation:isolate}[data-opencx-widget] .z-10{z-index:10}[data-opencx-widget] .z-50{z-index:50}[data-opencx-widget] .-mx-1{margin-left:-.25rem;margin-right:-.25rem}[data-opencx-widget] .my-1{margin-top:.25rem;margin-bottom:.25rem}[data-opencx-widget] .mb-2{margin-bottom:.5rem}[data-opencx-widget] .ml-auto{margin-left:auto}[data-opencx-widget] .mt-0\\.5{margin-top:.125rem}[data-opencx-widget] .mt-auto{margin-top:auto}[data-opencx-widget] .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}[data-opencx-widget] .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}[data-opencx-widget] .block{display:block}[data-opencx-widget] .inline-block{display:inline-block}[data-opencx-widget] .inline{display:inline}[data-opencx-widget] .flex{display:flex}[data-opencx-widget] .inline-flex{display:inline-flex}[data-opencx-widget] .grid{display:grid}[data-opencx-widget] .contents{display:contents}[data-opencx-widget] .hidden{display:none}[data-opencx-widget] .aspect-square{aspect-ratio:1 / 1}[data-opencx-widget] .size-10{width:2.5rem;height:2.5rem}[data-opencx-widget] .size-12{width:3rem;height:3rem}[data-opencx-widget] .size-16{width:4rem;height:4rem}[data-opencx-widget] .size-3{width:.75rem;height:.75rem}[data-opencx-widget] .size-3\\.5{width:.875rem;height:.875rem}[data-opencx-widget] .size-4{width:1rem;height:1rem}[data-opencx-widget] .size-6{width:1.5rem;height:1.5rem}[data-opencx-widget] .size-8{width:2rem;height:2rem}[data-opencx-widget] .size-auto{width:auto;height:auto}[data-opencx-widget] .size-fit{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}[data-opencx-widget] .size-full{width:100%;height:100%}[data-opencx-widget] .h-10{height:2.5rem}[data-opencx-widget] .h-2{height:.5rem}[data-opencx-widget] .h-3\\.5{height:.875rem}[data-opencx-widget] .h-4{height:1rem}[data-opencx-widget] .h-5{height:1.25rem}[data-opencx-widget] .h-8{height:2rem}[data-opencx-widget] .h-full{height:100%}[data-opencx-widget] .h-px{height:1px}[data-opencx-widget] .max-h-full{max-height:100%}[data-opencx-widget] .min-h-12{min-height:3rem}[data-opencx-widget] .w-1\\/2{width:50%}[data-opencx-widget] .w-10{width:2.5rem}[data-opencx-widget] .w-2{width:.5rem}[data-opencx-widget] .w-3\\.5{width:.875rem}[data-opencx-widget] .w-4{width:1rem}[data-opencx-widget] .w-5\\/6{width:83.333333%}[data-opencx-widget] .w-60{width:15rem}[data-opencx-widget] .w-9{width:2.25rem}[data-opencx-widget] .w-auto{width:auto}[data-opencx-widget] .w-fit{width:-moz-fit-content;width:fit-content}[data-opencx-widget] .w-full{width:100%}[data-opencx-widget] .min-w-56{min-width:14rem}[data-opencx-widget] .min-w-\\[8rem\\]{min-width:8rem}[data-opencx-widget] .max-w-\\[320px\\]{max-width:320px}[data-opencx-widget] .max-w-full{max-width:100%}[data-opencx-widget] .max-w-lg{max-width:32rem}[data-opencx-widget] .max-w-xs{max-width:20rem}[data-opencx-widget] .flex-1{flex:1 1 0%}[data-opencx-widget] .shrink-0{flex-shrink:0}[data-opencx-widget] .translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .translate-x-\\[var\\(--opencx-wobble-x\\)\\]{--tw-translate-x: var(--opencx-wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .translate-y-\\[var\\(--opencx-wobble-y\\)\\]{--tw-translate-y: var(--opencx-wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\.01\\]{--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\.02\\]{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\.1\\]{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .scale-\\[1\\]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-opencx-widget] .animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}[data-opencx-widget] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}[data-opencx-widget] .animate-spin{animation:spin 1s linear infinite}[data-opencx-widget] .cursor-default{cursor:default}[data-opencx-widget] .cursor-not-allowed{cursor:not-allowed}[data-opencx-widget] .cursor-pointer{cursor:pointer}[data-opencx-widget] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-opencx-widget] .resize-none{resize:none}[data-opencx-widget] .flex-row{flex-direction:row}[data-opencx-widget] .flex-col{flex-direction:column}[data-opencx-widget] .flex-col-reverse{flex-direction:column-reverse}[data-opencx-widget] .flex-wrap{flex-wrap:wrap}[data-opencx-widget] .items-start{align-items:flex-start}[data-opencx-widget] .items-end{align-items:flex-end}[data-opencx-widget] .items-center{align-items:center}[data-opencx-widget] .justify-start{justify-content:flex-start}[data-opencx-widget] .justify-end{justify-content:flex-end}[data-opencx-widget] .justify-center{justify-content:center}[data-opencx-widget] .justify-between{justify-content:space-between}[data-opencx-widget] .gap-0{gap:0px}[data-opencx-widget] .gap-0\\.5{gap:.125rem}[data-opencx-widget] .gap-1{gap:.25rem}[data-opencx-widget] .gap-2{gap:.5rem}[data-opencx-widget] .gap-4{gap:1rem}[data-opencx-widget] .gap-\\[1px\\]{gap:1px}[data-opencx-widget] .space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}[data-opencx-widget] .space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}[data-opencx-widget] .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}[data-opencx-widget] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}[data-opencx-widget] .overflow-auto{overflow:auto}[data-opencx-widget] .overflow-hidden{overflow:hidden}[data-opencx-widget] .overflow-scroll{overflow:scroll}[data-opencx-widget] .scroll-smooth{scroll-behavior:smooth}[data-opencx-widget] .text-ellipsis{text-overflow:ellipsis}[data-opencx-widget] .whitespace-normal{white-space:normal}[data-opencx-widget] .whitespace-nowrap{white-space:nowrap}[data-opencx-widget] .whitespace-pre-wrap{white-space:pre-wrap}[data-opencx-widget] .break-words{overflow-wrap:break-word}[data-opencx-widget] .rounded-2xl{border-radius:1rem}[data-opencx-widget] .rounded-3xl{border-radius:1.5rem}[data-opencx-widget] .rounded-full{border-radius:9999px}[data-opencx-widget] .rounded-lg{border-radius:.5rem}[data-opencx-widget] .rounded-md{border-radius:.375rem}[data-opencx-widget] .rounded-sm{border-radius:.125rem}[data-opencx-widget] .rounded-xl{border-radius:.75rem}[data-opencx-widget] .rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}[data-opencx-widget] .border{border-width:1px}[data-opencx-widget] .border-2{border-width:2px}[data-opencx-widget] .border-b{border-bottom-width:1px}[data-opencx-widget] .border-none{border-style:none}[data-opencx-widget] .border-destructive{border-color:hsl(var(--opencx-destructive))}[data-opencx-widget] .border-input{border-color:hsl(var(--opencx-input))}[data-opencx-widget] .border-muted{border-color:hsl(var(--opencx-muted))}[data-opencx-widget] .border-primary{border-color:hsl(var(--opencx-primary))}[data-opencx-widget] .border-transparent{border-color:transparent}[data-opencx-widget] .bg-background{background-color:hsl(var(--opencx-background))}[data-opencx-widget] .bg-black\\/50{background-color:#00000080}[data-opencx-widget] .bg-black\\/80{background-color:#000c}[data-opencx-widget] .bg-destructive{background-color:hsl(var(--opencx-destructive))}[data-opencx-widget] .bg-muted{background-color:hsl(var(--opencx-muted))}[data-opencx-widget] .bg-primary{background-color:hsl(var(--opencx-primary))}[data-opencx-widget] .bg-secondary{background-color:hsl(var(--opencx-secondary))}[data-opencx-widget] .bg-transparent{background-color:transparent}[data-opencx-widget] .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}[data-opencx-widget] .fill-current{fill:currentColor}[data-opencx-widget] .object-contain{-o-object-fit:contain;object-fit:contain}[data-opencx-widget] .object-cover{-o-object-fit:cover;object-fit:cover}[data-opencx-widget] .p-0{padding:0}[data-opencx-widget] .p-1{padding:.25rem}[data-opencx-widget] .p-2{padding:.5rem}[data-opencx-widget] .p-4{padding:1rem}[data-opencx-widget] .p-6{padding:1.5rem}[data-opencx-widget] .px-2{padding-left:.5rem;padding-right:.5rem}[data-opencx-widget] .px-3{padding-left:.75rem;padding-right:.75rem}[data-opencx-widget] .px-4{padding-left:1rem;padding-right:1rem}[data-opencx-widget] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-opencx-widget] .py-12{padding-top:3rem;padding-bottom:3rem}[data-opencx-widget] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-opencx-widget] .pb-0{padding-bottom:0}[data-opencx-widget] .pl-2{padding-left:.5rem}[data-opencx-widget] .pl-3{padding-left:.75rem}[data-opencx-widget] .pl-8{padding-left:2rem}[data-opencx-widget] .pr-2{padding-right:.5rem}[data-opencx-widget] .pt-0{padding-top:0}[data-opencx-widget] .pt-2{padding-top:.5rem}[data-opencx-widget] .text-center{text-align:center}[data-opencx-widget] .text-start{text-align:start}[data-opencx-widget] .align-middle{vertical-align:middle}[data-opencx-widget] .font-inter{font-family:Inter,Rubik,serif,sans-serif}[data-opencx-widget] .text-2xl{font-size:1.5rem;line-height:2rem}[data-opencx-widget] .text-\\[10px\\]{font-size:10px}[data-opencx-widget] .text-lg{font-size:1.125rem;line-height:1.75rem}[data-opencx-widget] .text-sm{font-size:.875rem;line-height:1.25rem}[data-opencx-widget] .text-xl{font-size:1.25rem;line-height:1.75rem}[data-opencx-widget] .text-xs{font-size:.75rem;line-height:1rem}[data-opencx-widget] .font-bold{font-weight:700}[data-opencx-widget] .font-medium{font-weight:500}[data-opencx-widget] .font-semibold{font-weight:600}[data-opencx-widget] .leading-none{line-height:1}[data-opencx-widget] .leading-relaxed{line-height:1.625}[data-opencx-widget] .leading-snug{line-height:1.375}[data-opencx-widget] .leading-tight{line-height:1.25}[data-opencx-widget] .tracking-tight{letter-spacing:-.025em}[data-opencx-widget] .tracking-widest{letter-spacing:.1em}[data-opencx-widget] .text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}[data-opencx-widget] .text-destructive{color:hsl(var(--opencx-destructive))}[data-opencx-widget] .text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}[data-opencx-widget] .text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity))}[data-opencx-widget] .text-foreground{color:hsl(var(--opencx-foreground))}[data-opencx-widget] .text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}[data-opencx-widget] .text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}[data-opencx-widget] .text-primary{color:hsl(var(--opencx-primary))}[data-opencx-widget] .text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}[data-opencx-widget] .text-primary-foreground\\/90{color:hsl(var(--opencx-primary-foreground) / .9)}[data-opencx-widget] .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}[data-opencx-widget] .text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}[data-opencx-widget] .underline{text-decoration-line:underline}[data-opencx-widget] .underline-offset-4{text-underline-offset:4px}[data-opencx-widget] .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-opencx-widget] .opacity-0{opacity:0}[data-opencx-widget] .opacity-5{opacity:.05}[data-opencx-widget] .opacity-50{opacity:.5}[data-opencx-widget] .opacity-60{opacity:.6}[data-opencx-widget] .opacity-70{opacity:.7}[data-opencx-widget] .opacity-95{opacity:.95}[data-opencx-widget] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-opencx-widget] .outline{outline-style:solid}[data-opencx-widget] .outline-8{outline-width:8px}[data-opencx-widget] .outline-background{outline-color:hsl(var(--opencx-background))}[data-opencx-widget] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-opencx-widget] .ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-opencx-widget] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-opencx-widget] .backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-opencx-widget] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-opencx-widget] .duration-200{transition-duration:.2s}[data-opencx-widget] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}[data-opencx-widget] .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-opencx-widget] .fade-in-0{--tw-enter-opacity: 0}[data-opencx-widget] .zoom-in-95{--tw-enter-scale: .95}[data-opencx-widget] .duration-200{animation-duration:.2s}[data-opencx-widget] .ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}[data-opencx-widget] .\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}[data-opencx-widget] .\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}[data-opencx-widget] .\\[background\\:radial-gradient\\(50\\%_50\\%_at_50\\%_100\\%\\,hsl\\(var\\(--opencx-primary-foreground\\)\\)_-75\\%\\,hsl\\(var\\(--opencx-primary\\)\\)_100\\%\\)\\]{background:radial-gradient(50% 50% at 50% 100%,hsl(var(--opencx-primary-foreground)) -75%,hsl(var(--opencx-primary)))}[data-opencx-widget] .\\[word-break\\:break-word\\]{word-break:break-word}[data-opencx-widget] .required:after{content:" *";color:red}[data-opencx-widget] .file\\:border-0::file-selector-button{border-width:0px}[data-opencx-widget] .file\\:bg-transparent::file-selector-button{background-color:transparent}[data-opencx-widget] .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}[data-opencx-widget] .file\\:font-medium::file-selector-button{font-weight:500}[data-opencx-widget] .file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}[data-opencx-widget] .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .hover\\:bg-accent:hover{background-color:hsl(var(--opencx-accent))}[data-opencx-widget] .hover\\:bg-green-50\\/50:hover{background-color:#f0fdf480}[data-opencx-widget] .hover\\:bg-red-50\\/50:hover{background-color:#fef2f280}[data-opencx-widget] .hover\\:text-accent-foreground:hover{color:hsl(var(--opencx-accent-foreground))}[data-opencx-widget] .hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}[data-opencx-widget] .hover\\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}[data-opencx-widget] .hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}[data-opencx-widget] .hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}[data-opencx-widget] .hover\\:underline:hover{text-decoration-line:underline}[data-opencx-widget] .hover\\:opacity-100:hover{opacity:1}[data-opencx-widget] .focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}[data-opencx-widget] .focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}[data-opencx-widget] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-opencx-widget] .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-opencx-widget] .focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}[data-opencx-widget] .focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}[data-opencx-widget] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-opencx-widget] .focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-opencx-widget] .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}[data-opencx-widget] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-opencx-widget] .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-opencx-widget] .active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .active\\:shadow-none:active{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-opencx-widget] .hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .disabled\\:pointer-events-none:disabled{pointer-events:none}[data-opencx-widget] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-opencx-widget] .disabled\\:opacity-50:disabled{opacity:.5}[data-opencx-widget] .group:hover .group-hover\\:opacity-100{opacity:1}[data-opencx-widget] .group:hover .group-hover\\:active\\:scale-90:active,[data-opencx-widget] .group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}[data-opencx-widget] .data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}[data-opencx-widget] .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}[data-opencx-widget] .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}[data-opencx-widget] .data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}[data-opencx-widget] .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}[data-opencx-widget] .data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-opencx-widget] .data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}[data-opencx-widget] .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}[data-opencx-widget] .data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}[data-opencx-widget] .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}[data-opencx-widget] .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}[data-opencx-widget] .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}[data-opencx-widget] .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}[data-opencx-widget] .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}[data-opencx-widget] .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}[data-opencx-widget] .data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}[data-opencx-widget] .data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}[data-opencx-widget] .data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}[data-opencx-widget] .data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}[data-opencx-widget] .prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}[data-opencx-widget] .prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}@media (min-width: 640px){[data-opencx-widget] .sm\\:flex-row{flex-direction:row}[data-opencx-widget] .sm\\:justify-end{justify-content:flex-end}[data-opencx-widget] .sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}[data-opencx-widget] .sm\\:rounded-lg{border-radius:.5rem}[data-opencx-widget] .sm\\:text-left{text-align:left}}[data-opencx-widget] .rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-opencx-widget] .rtl\\:flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse}[data-opencx-widget] .rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}[data-opencx-widget] .rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::-moz-placeholder{text-align:right}[data-opencx-widget] .rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::placeholder{text-align:right}[data-opencx-widget] .\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}[data-opencx-widget] .\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}[data-opencx-widget] .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}[data-opencx-widget] .\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}[data-opencx-widget] .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}[data-opencx-widget] .\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}';function Hb({className:e,style:t}){return f.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:q("text-primary-foreground",e),style:t,children:[f.jsx("title",{children:"Chat Bubble"}),f.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}function Ub({className:e,style:t}){return f.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:q("text-primary-foreground",e),style:t,children:[f.jsx("title",{children:"Open Logo Pattern"}),f.jsx("path",{d:"M5.18154 12.7522L8.73348 14.8029C8.98814 14.961 9.17302 15.2102 9.25054 15.4998C9.32806 15.7894 9.29241 16.0977 9.15083 16.3621L7.09906 19.9159C6.95748 20.1803 6.92183 20.4886 6.99935 20.7782C7.07688 21.0678 7.26175 21.317 7.51641 21.4751L16.6659 26.7575C16.9301 26.899 17.2384 26.9345 17.5279 26.8569C17.8175 26.7792 18.0667 26.5942 18.2249 26.3394L20.2766 22.7856C20.4351 22.5303 20.685 22.3451 20.9752 22.2677C21.2655 22.1903 21.5743 22.2266 21.8386 22.3692L25.3755 24.4112C25.6397 24.5527 25.9479 24.5882 26.2375 24.5105C26.5271 24.4329 26.7763 24.2478 26.9344 23.993L35.4061 9.31978C35.5476 9.05541 35.5833 8.74709 35.5058 8.45747C35.4282 8.16786 35.2434 7.91868 34.9887 7.7606L31.4398 5.71162C31.1837 5.55365 30.9977 5.30371 30.9199 5.01297C30.842 4.72223 30.8783 4.41268 31.0212 4.14769L33.0712 0.596929C33.2118 0.33467 33.2482 0.0289995 33.173 -0.258845C33.0978 -0.54669 32.9167 -0.795451 32.6659 -0.955292L23.5164 -6.23775C23.2522 -6.37925 22.9439 -6.41477 22.6544 -6.3371C22.3648 -6.25942 22.1156 -6.07439 21.9574 -5.8196L19.9074 -2.26883C19.7497 -2.01308 19.5004 -1.8271 19.2104 -1.74884C18.9204 -1.67057 18.6115 -1.70592 18.3467 -1.84767L14.7948 -3.89838C14.5305 -4.03988 14.2223 -4.0754 13.9327 -3.99773C13.6432 -3.92005 13.394 -3.73502 13.2358 -3.48023L4.76419 11.193C4.62262 11.4574 4.58697 11.7657 4.66449 12.0553C4.74201 12.345 4.92689 12.5941 5.18154 12.7522ZM10.2924 14.3848L18.7641 -0.288487C18.9222 -0.543279 19.1714 -0.728316 19.461 -0.805987C19.7506 -0.883659 20.0588 -0.848137 20.323 -0.706641L29.4725 4.57582C29.7272 4.7339 29.912 4.98307 29.9896 5.27269C30.0671 5.56231 30.0314 5.87063 29.8899 6.13499L21.4182 20.8083C21.2601 21.063 21.0109 21.2481 20.7213 21.3258C20.4317 21.4034 20.1235 21.3679 19.8593 21.2264L10.7098 15.944C10.4551 15.7859 10.2703 15.5367 10.1927 15.2471C10.1152 14.9575 10.1509 14.6491 10.2924 14.3848Z",fill:"currentColor"}),f.jsx("path",{d:"M31.1815 27.7522L34.7335 29.8029C34.9881 29.961 35.173 30.2102 35.2505 30.4998C35.3281 30.7894 35.2924 31.0977 35.1508 31.3621L33.0991 34.9159C32.9575 35.1803 32.9218 35.4886 32.9994 35.7782C33.0769 36.0678 33.2618 36.317 33.5164 36.4751L42.6659 41.7575C42.9301 41.899 43.2384 41.9345 43.5279 41.8569C43.8175 41.7792 44.0667 41.5942 44.2249 41.3394L46.2766 37.7856C46.4351 37.5303 46.685 37.3451 46.9752 37.2677C47.2655 37.1903 47.5743 37.2266 47.8386 37.3692L51.3755 39.4112C51.6397 39.5527 51.9479 39.5882 52.2375 39.5105C52.5271 39.4329 52.7763 39.2478 52.9344 38.993L61.4061 24.3198C61.5476 24.0554 61.5833 23.7471 61.5058 23.4575C61.4282 23.1679 61.2434 22.9187 60.9887 22.7606L57.4398 20.7116C57.1837 20.5537 56.9977 20.3037 56.9199 20.013C56.842 19.7222 56.8783 19.4127 57.0212 19.1477L59.0712 15.5969C59.2118 15.3347 59.2482 15.029 59.173 14.7412C59.0978 14.4533 58.9167 14.2045 58.6659 14.0447L49.5164 8.76225C49.2522 8.62075 48.9439 8.58523 48.6544 8.6629C48.3648 8.74058 48.1156 8.92561 47.9574 9.1804L45.9074 12.7312C45.7497 12.9869 45.5004 13.1729 45.2104 13.2512C44.9204 13.3294 44.6115 13.2941 44.3467 13.1523L40.7948 11.1016C40.5305 10.9601 40.2223 10.9246 39.9327 11.0023C39.6432 11.0799 39.394 11.265 39.2358 11.5198L30.7642 26.193C30.6226 26.4574 30.587 26.7657 30.6645 27.0553C30.742 27.345 30.9269 27.5941 31.1815 27.7522ZM36.2924 29.3848L44.7641 14.7115C44.9222 14.4567 45.1714 14.2717 45.461 14.194C45.7506 14.1163 46.0588 14.1519 46.323 14.2934L55.4725 19.5758C55.7272 19.7339 55.912 19.9831 55.9896 20.2727C56.0671 20.5623 56.0314 20.8706 55.8899 21.135L47.4182 35.8083C47.2601 36.063 47.0109 36.2481 46.7213 36.3258C46.4317 36.4034 46.1235 36.3679 45.8593 36.2264L36.7098 30.944C36.4551 30.7859 36.2703 30.5367 36.1927 30.2471C36.1152 29.9575 36.1509 29.6491 36.2924 29.3848Z",fill:"currentColor"}),f.jsx("path",{d:"M4.18154 44.7522L7.73348 46.8029C7.98814 46.961 8.17302 47.2102 8.25054 47.4998C8.32806 47.7894 8.29241 48.0977 8.15083 48.3621L6.09906 51.9159C5.95748 52.1803 5.92183 52.4886 5.99935 52.7782C6.07688 53.0678 6.26175 53.317 6.51641 53.4751L15.6659 58.7575C15.9301 58.899 16.2384 58.9345 16.5279 58.8569C16.8175 58.7792 17.0667 58.5942 17.2249 58.3394L19.2766 54.7856C19.4351 54.5303 19.685 54.3451 19.9752 54.2677C20.2655 54.1903 20.5743 54.2266 20.8386 54.3692L24.3755 56.4112C24.6397 56.5527 24.9479 56.5882 25.2375 56.5105C25.5271 56.4329 25.7763 56.2478 25.9344 55.993L34.4061 41.3198C34.5476 41.0554 34.5833 40.7471 34.5058 40.4575C34.4282 40.1679 34.2434 39.9187 33.9887 39.7606L30.4398 37.7116C30.1837 37.5537 29.9977 37.3037 29.9199 37.013C29.842 36.7222 29.8783 36.4127 30.0212 36.1477L32.0712 32.5969C32.2118 32.3347 32.2482 32.029 32.173 31.7412C32.0978 31.4533 31.9167 31.2045 31.6659 31.0447L22.5164 25.7623C22.2522 25.6208 21.9439 25.5852 21.6544 25.6629C21.3648 25.7406 21.1156 25.9256 20.9574 26.1804L18.9074 29.7312C18.7497 29.9869 18.5004 30.1729 18.2104 30.2512C17.9204 30.3294 17.6115 30.2941 17.3467 30.1523L13.7948 28.1016C13.5305 27.9601 13.2223 27.9246 12.9327 28.0023C12.6432 28.0799 12.394 28.265 12.2358 28.5198L3.76419 43.193C3.62262 43.4574 3.58697 43.7657 3.66449 44.0553C3.74201 44.345 3.92689 44.5941 4.18154 44.7522ZM9.29245 46.3848L17.7641 31.7115C17.9222 31.4567 18.1714 31.2717 18.461 31.194C18.7506 31.1163 19.0588 31.1519 19.323 31.2934L28.4725 36.5758C28.7272 36.7339 28.912 36.9831 28.9896 37.2727C29.0671 37.5623 29.0314 37.8706 28.8899 38.135L20.4182 52.8083C20.2601 53.063 20.0109 53.2481 19.7213 53.3258C19.4317 53.4034 19.1235 53.3679 18.8593 53.2264L9.7098 47.944C9.45514 47.7859 9.27026 47.5367 9.19274 47.2471C9.11522 46.9575 9.15087 46.6491 9.29245 46.3848Z",fill:"currentColor"}),f.jsx("path",{d:"M30.1815 59.7522L33.7335 61.8029C33.9881 61.961 34.173 62.2102 34.2505 62.4998C34.3281 62.7894 34.2924 63.0977 34.1508 63.3621L32.0991 66.9159C31.9575 67.1803 31.9218 67.4886 31.9994 67.7782C32.0769 68.0678 32.2618 68.317 32.5164 68.4751L41.6659 73.7575C41.9301 73.899 42.2384 73.9345 42.5279 73.8569C42.8175 73.7792 43.0667 73.5942 43.2249 73.3394L45.2766 69.7856C45.4351 69.5303 45.685 69.3451 45.9752 69.2677C46.2655 69.1903 46.5743 69.2266 46.8386 69.3692L50.3755 71.4112C50.6397 71.5527 50.9479 71.5882 51.2375 71.5105C51.5271 71.4329 51.7763 71.2478 51.9344 70.993L60.4061 56.3198C60.5476 56.0554 60.5833 55.7471 60.5058 55.4575C60.4282 55.1679 60.2434 54.9187 59.9887 54.7606L56.4398 52.7116C56.1837 52.5537 55.9977 52.3037 55.9199 52.013C55.842 51.7222 55.8783 51.4127 56.0212 51.1477L58.0712 47.5969C58.2118 47.3347 58.2482 47.029 58.173 46.7412C58.0978 46.4533 57.9167 46.2045 57.6659 46.0447L48.5164 40.7623C48.2522 40.6208 47.9439 40.5852 47.6544 40.6629C47.3648 40.7406 47.1156 40.9256 46.9574 41.1804L44.9074 44.7312C44.7497 44.9869 44.5004 45.1729 44.2104 45.2512C43.9204 45.3294 43.6115 45.2941 43.3467 45.1523L39.7948 43.1016C39.5305 42.9601 39.2223 42.9246 38.9327 43.0023C38.6432 43.0799 38.394 43.265 38.2358 43.5198L29.7642 58.193C29.6226 58.4574 29.587 58.7657 29.6645 59.0553C29.742 59.345 29.9269 59.5941 30.1815 59.7522ZM35.2924 61.3848L43.7641 46.7115C43.9222 46.4567 44.1714 46.2717 44.461 46.194C44.7506 46.1163 45.0588 46.1519 45.323 46.2934L54.4725 51.5758C54.7272 51.7339 54.912 51.9831 54.9896 52.2727C55.0671 52.5623 55.0314 52.8706 54.8899 53.135L46.4182 67.8083C46.2601 68.063 46.0109 68.2481 45.7213 68.3258C45.4317 68.4034 45.1235 68.3679 44.8593 68.2264L35.7098 62.944C35.4551 62.7859 35.2703 62.5367 35.1927 62.2471C35.1152 61.9575 35.1509 61.6491 35.2924 61.3848Z",fill:"currentColor"})]})}const zb=`<!DOCTYPE html>
|
|
36
36
|
<html>
|
|
37
37
|
<head>
|
|
38
38
|
<style>
|
|
@@ -64,5 +64,5 @@ html, body {
|
|
|
64
64
|
</head>
|
|
65
65
|
<body>
|
|
66
66
|
</body>
|
|
67
|
-
</html>`;function Vb(){const e=
|
|
67
|
+
</html>`;function Vb(){const e=Q.useWidget(),t=On(),{theme:n,cssVars:r,computed:a}=cn(),[i,s]=K.useState(!1);return f.jsxs(fr.Root,{open:i,onOpenChange:s,children:[f.jsx("style",{children:ra}),f.jsx(jb,{isOpen:i}),f.jsx(fr.Content,{onInteractOutside:u=>u.preventDefault(),"data-aria-expanded":i,forceMount:!0,style:{zIndex:1e6,fontSize:"16px","--opencx-widget-width":a.minWidth,"--opencx-widget-height":a.minHeight},side:"top",sideOffset:n.widgetContentContainer.offset,"data-opencx-widget":!0,"data-opencx-widget-content-root":!0,align:t==="rtl"?"start":"end",asChild:!0,children:f.jsx(ge.motion.div,{animate:i?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block"}},children:f.jsx(ta,{initialContent:Wb,allowFullScreen:!0,"data-opencx-widget":!0,style:{minWidth:a.minWidth,width:"var(--opencx-widget-width)",maxWidth:a.maxWidth,minHeight:a.minHeight,height:"var(--opencx-widget-height)",maxHeight:a.maxHeight,overflow:"hidden",outline:"1px solid",outlineColor:"hsl(0 0% 50% / .5)",borderRadius:"32px",boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)",transitionProperty:"all",transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"800ms"},children:f.jsx(Yu,{delayDuration:200,disableHoverableContent:!0,children:f.jsx("div",{style:{display:"contents"},"data-opencx-widget":!0,children:f.jsx("div",{style:{...r},"data-version":e.version,"data-opencx-widget":!0,className:q("antialiased font-inter bg-primary size-full overflow-hidden isolate relative text-secondary-foreground"),children:f.jsx(Fb,{})})})})})})})]})}const Gb=[{key:"loading",component:Yb},{key:"fallback",component:qb},{key:"bot_message",component:Rr},{key:"agent_message",component:Rr}],Qb={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}};function Xb({options:e,components:t=[]}){return f.jsx(Q.WidgetProvider,{components:[...Gb,...t],options:e,storage:Qb,children:f.jsx(Vb,{})})}exports.Widget=Xb;
|
|
68
68
|
//# sourceMappingURL=designs.cjs.map
|