@chatsystem/client 1.1.64 → 1.1.66
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/index.cjs +64 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9827 -7957
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),I=require("react"),gn=require("react-dom"),vc=require("lottie-react"),wc=require("@lottiefiles/dotlottie-react");function Oc(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 ke=Oc(I),Lc=e=>ke.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},ke.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"}));function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lt={},mi;function Rc(){if(mi)return Lt;mi=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.AgentDisplayFacetRoleType=Lt.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(Lt.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(Lt.AgentDisplayFacetRoleType=t={})),Lt}var Ge=Rc();const wr=e=>({mode:Ge.AgentDisplayFacetModeType.SVG,role:e}),kc=()=>({agent:{display:{name:"",CSSRules:"",[Ge.AgentDisplayFacetRoleType.LAUNCHER]:wr(Ge.AgentDisplayFacetRoleType.LAUNCHER),[Ge.AgentDisplayFacetRoleType.ASSISTANT]:wr(Ge.AgentDisplayFacetRoleType.ASSISTANT),[Ge.AgentDisplayFacetRoleType.SEARCH]:wr(Ge.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}},api:{settings:{maxUserMessagesPerDiscussion:20},tracking:{queryParamToAppend:""}}}),sn=I.createContext({companySettings:kc(),setCompanySettings:()=>{}}),en=globalThis;en.__WIDGET_ASSET_CACHE__||(en.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});en.__WIDGET_PRELOAD_KEYS__||(en.__WIDGET_PRELOAD_KEYS__=new Set);const Or=en.__WIDGET_PRELOAD_KEYS__,It=en.__WIDGET_ASSET_CACHE__,Dc="widget-assets-v1";async function pr(e,t){try{const n=await caches.open(Dc),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}catch(n){return console.log("error while fetching",n),new Response(null,{status:520,statusText:"Error in client - Fetch failed"})}}async function au(e){const t=It.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const s=new DOMParser().parseFromString(a,"image/svg+xml"),o=new XMLSerializer().serializeToString(s.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(o,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return It.svg.set(e,{promise:n,ts:Date.now()}),n}function iu(e){const t=It.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return It.img.set(e,{promise:n,ts:Date.now()}),n}function su(e){const t=It.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).arrayBuffer(),i=new Uint8Array(a);if(i.length>=4&&i[0]===80&&i[1]===75&&i[2]===3&&i[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const o=new TextDecoder().decode(i);return{kind:"json",data:JSON.parse(o)}})();return It.lot.set(e,{promise:n,ts:Date.now()}),n}function uu(e){const t=It.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await pr(e)).blob();let i=null;try{i=await createImageBitmap(a)}catch{i=null}const{imgEl:s,width:o,height:c}=await new Promise((l,d)=>{const f=URL.createObjectURL(a),h=new Image;h.crossOrigin="anonymous",h.onload=()=>{const m=h.naturalWidth,x=h.naturalHeight;l({imgEl:h,width:m,height:x})},h.onerror=()=>{URL.revokeObjectURL(f),d(new Error("Spritesheet image decode failed"))},h.src=f,h.decode?.().catch(()=>{})});return{imgEl:s,bitmap:i,width:o,height:c}})();return It.spr.set(e,{promise:n,ts:Date.now()}),n}function Pc(e){e.images?.forEach(t=>void iu(t)),e.svgs?.forEach(t=>void au(t)),e.lotties?.forEach(t=>void su(t)),e.sprites?.forEach(t=>void uu(t))}function Mc(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function ou(e){return new URL(e,document.baseURI).toString()}function Bc(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function $n(e,t,n,r){const a=ou(n),i=`${e}|${t??""}|${a}`;if(Or.has(i))return;if(Bc(t,a)){Or.add(i);return}const s=document.createElement("link");s.rel=e,t&&(s.as=t),s.href=a,s.crossOrigin="anonymous",r&&(s.type=r),s.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(s),Or.add(i)}function Fc(e){const t=s=>Array.from(new Set((s??[]).map(ou))),n=t(e.images),r=t(e.svgs),a=t(e.lotties),i=t(e.sprites);n.forEach(s=>$n("preload","image",s)),r.forEach(s=>$n("preload","fetch",s,"image/svg+xml")),a.forEach(s=>$n("preload","fetch",s,"application/zip")),i.forEach(s=>$n("preload","fetch",s))}const Hc=({src:e})=>{const[t,n]=I.useState(null);return I.useEffect(()=>{let r=!1;return iu(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),C.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function Uc(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function jc({src:e,autoplay:t=!0,loop:n=!0,className:r,style:a,placeholder:i,fallback:s,onLoaded:o,onError:c}){const[l,d]=I.useState({kind:"loading"});return I.useEffect(()=>{let f=null,h=!1;return d({kind:"loading"}),su(e).then(async m=>{if(!h)if(m.kind==="zip"){const x=Uc(m)?m.blob:await(await fetch(m.blobUrl)).blob();f=URL.createObjectURL(x),d({kind:"lottieZip",blobUrl:f}),o?.(f)}else d({kind:"json",data:m.data}),o?.(m.data)}).catch(m=>!h&&(d({kind:"error",err:m}),c?.(m))),()=>{h=!0,f&&URL.revokeObjectURL(f)}},[e]),l.kind==="loading"?C.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...a},children:i??"Loading animation…"}):l.kind==="error"?C.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...a},children:s??"Failed to load animation"}):l.kind==="json"?C.jsx(vc,{animationData:l.data,loop:n,autoplay:t,className:r,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):C.jsx(wc.DotLottieReact,{src:l.blobUrl,loop:n,autoplay:t,className:r,style:a})}async function $c(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:i=!1}=t;if(e.width<n*2||e.height<n*2)return i&&console.warn("detectGrid: image too small"),null;const s=document.createElement("canvas");s.width=e.naturalWidth,s.height=e.naturalHeight;const o=s.getContext("2d");if(!o)return null;o.drawImage(e,0,0);const{data:c}=o.getImageData(0,0,s.width,s.height),l=s.width,d=s.height,f=new Uint8ClampedArray(l*d);for(let Y=0;Y<d;Y++){let $=Y*l;for(let F=0;F<l;F++){const z=($+F)*4;f[$+F]=.299*c[z]+.587*c[z+1]+.114*c[z+2]|0}}const h=new Float32Array(l),m=new Float32Array(d);for(let Y=1;Y<l-1;Y++){let $=0;for(let F=0;F<d;F++){const z=F*l+Y,j=f[z+1]-f[z-1];$+=Math.abs(j)}h[Y]=$}for(let Y=1;Y<d-1;Y++){let $=0;for(let F=0;F<l;F++){const z=Y*l+F,j=f[z+l]-f[z-l];$+=Math.abs(j)}m[Y]=$}const x=pi(h,n,Math.min(r,l/2)),A=pi(m,n,Math.min(r,d/2));if(!x||!A)return i&&console.warn("detectGrid: could not find periods"),null;const N=Math.max(1,Math.round(l/x)),y=Math.max(1,Math.round(d/A)),R=Ei(h,x,N,a),v=Ei(m,A,y,a),B=Math.max(1,x-R),S=Math.max(1,A-v);if(B*N>l+2||S*y>d+2)return i&&console.warn("detectGrid: sanity check failed"),null;const L=ua(h,60),K=ua(m,60),le=Math.max(0,gi(h,L)),se=Math.max(0,gi(m,K));return i&&console.log({periodX:x,periodY:A,columns:N,rows:y,gutterX:R,gutterY:v,frameWidth:B,frameHeight:S,originX:le,originY:se}),{columns:N,rows:y,frameWidth:B,frameHeight:S,gutterX:R,gutterY:v,originX:le,originY:se}}function pi(e,t,n){const r=cu(e);let a=0;for(let m=0;m<e.length;m++){const x=e[m]-r;a+=x*x}if(a===0)return null;const i=new Float32Array(n+1);let s=0,o=-1/0;for(let m=t;m<=n;m++){let x=0;for(let N=0;N+m<e.length;N++)x+=(e[N]-r)*(e[N+m]-r);const A=x/a;i[m]=A,A>o&&(o=A,s=m)}if(s<=t||s>=n)return s||null;const c=i[s-1],l=i[s],d=i[s+1],f=c-2*l+d,h=f===0?0:.5*(c-d)/f;return s+h}function Ei(e,t,n,r){const a=[];for(let o=1;o<n;o++){const c=o*t;let l=1/0,d=c;for(let f=-r;f<=r;f++){const h=c+f;if(h<=0||h>=e.length)continue;const m=e[h];m<l&&(l=m,d=h)}a.push(d)}if(a.length<1)return 0;let i=[];for(const o of a){const c=e[o]*1.5+ua(e,10)*.5;let l=o,d=o;for(;l>1&&e[l-1]<=c;)l--;for(;d<e.length-2&&e[d+1]<=c;)d++;i.push(Math.max(0,d-l+1))}const s=Math.round(cu(i));return Math.max(0,Math.min(s,Math.floor(t/4)))}function cu(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function ua(e,t){const n=Array.from(e);n.sort((a,i)=>a-i);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function gi(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function zc(e,t,n,r,a){const{data:i}=e.getImageData(t,n,r,a);let s=0;for(let o=3;o<i.length;o+=4)s+=i[o];return s/(255*(i.length/4))<.03}const Yc=I.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:a,rows:i,gutterX:s=0,gutterY:o=0,frameCount:c,atlasFrames:l,fps:d=12,autoplay:f=!0,loop:h=!0,startFrame:m=0,direction:x="forward",scale:A=1,backgroundColor:N,className:y,style:R,pauseWhenHidden:v=!1,originX:B,originY:S,onLoad:L,onEnd:K,onFrame:le},se){const Y=I.useRef(null),$=I.useRef(null),[F,z]=I.useState(null),[j,Z]=I.useState(null),[de,ye]=I.useState(null),[ve,De]=I.useState(!1),[p,H]=I.useState(!!f),[W,b]=I.useState(m),V=I.useRef(1),[ee,G]=I.useState(null),J=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));I.useEffect(()=>{let ce=!1;return De(!1),uu(t).then(({imgEl:Ce,bitmap:Ee})=>{ce||(z(Ce),Z(Ee),ye({w:Ce.naturalWidth,h:Ce.naturalHeight}),De(!0),L?.())}).catch(()=>{}),()=>{ce=!0}},[t,L]),I.useEffect(()=>{let ce=!1;return(async()=>{if(!F)return;if(l&&l.length){G(null);return}if(!(!n||!r||!a||!i)){G(null);return}const Ee=await $c(F,{debug:!0});ce||(Ee?G({frameWidth:Ee.frameWidth,frameHeight:Ee.frameHeight,columns:Ee.columns,rows:Ee.rows,gutterX:Ee.gutterX,gutterY:Ee.gutterY}):(G(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{ce=!0}},[F,l,n,r,a,i]);const te=ee?.frameWidth??n,re=ee?.frameHeight??r,X=ee?.columns??a,me=ee?.rows??i,U=ee?.gutterX??s,Le=ee?.gutterY??o,Qe=ee?.originX??B??0,Be=ee?.originY??S??0,Ot=I.useMemo(()=>{if(l&&l.length>0)return{cols:0,rows:0};if(!de||!te||!re)return{cols:0,rows:0};const ce=X??Math.floor((de.w+U)/(te+U)),Ce=me??Math.floor((de.h+Le)/(re+Le));return{cols:Math.max(0,ce),rows:Math.max(0,Ce)}},[l,de,te,re,X,me,U,Le]),Ue=I.useMemo(()=>{if(l?.length)return l;if(!te||!re)return[];const{cols:ce,rows:Ce}=Ot;if(!ce||!Ce)return[];const Ee=Math.min(c??ce*Ce,ce*Ce),xe=[];for(let we=0;we<Ee;we++){const O=we%ce,D=Math.floor(we/ce),Q=Qe+O*(te+U),ae=Be+D*(re+Le);xe.push({x:Q,y:ae,w:te,h:re})}if(F&&xe.length){const we=document.createElement("canvas");we.width=F.naturalWidth,we.height=F.naturalHeight;const O=we.getContext("2d");if(O){O.drawImage(F,0,0);let D=xe.length;for(;D>0&&zc(O,xe[D-1].x,xe[D-1].y,xe[D-1].w,xe[D-1].h);)D--;return xe.slice(0,D)}}return xe},[l,Ot,c,te,re,U,Le,F,Qe,Be]),bt=()=>{const ce=Y.current;if(!ce||Ue.length===0)return;const Ce=Ue[Math.max(0,Math.min(W,Ue.length-1))],Ee=Math.max(1,Math.round(Ce.w*A)),xe=Math.max(1,Math.round(Ce.h*A));ce.style.width=Ee+"px",ce.style.height=xe+"px",ce.width=Ee*J,ce.height=xe*J};I.useEffect(()=>{bt()},[ve,A,Ue.length,J,W]);const st=ce=>{const Ce=j??F??null,Ee=Y.current;if(!Ee||!Ce||Ue.length===0)return;const xe=Ee.getContext("2d");if(!xe)return;xe.save(),xe.setTransform(1,0,0,1,0,0),xe.clearRect(0,0,Ee.width,Ee.height),N&&(xe.fillStyle=N,xe.fillRect(0,0,Ee.width,Ee.height));const we=Ue[ce];xe.scale(J,J),xe.drawImage(Ce,we.x,we.y,we.w,we.h,0,0,Math.round(we.w*A),Math.round(we.h*A)),xe.restore()};return I.useEffect(()=>{if(!ve||Ue.length===0)return;let ce=performance.now();const Ce=1e3/Math.max(1,Math.min(120,d)),Ee=xe=>{if($.current=requestAnimationFrame(Ee),!p){st(W);return}const we=xe-ce;if(we<Ce){st(W);return}ce=xe-we%Ce,b(O=>{const D=Ue.length-1;let Q=O;return x==="forward"?Q=O+1:x==="backward"?Q=O-1:((O>=D&&V.current===1||O<=0&&V.current===-1)&&(V.current*=-1),Q=O+V.current),(Q>D||Q<0)&&(h?Q=x==="backward"?D:0:(Q=Math.max(0,Math.min(Q,D)),H(!1),K?.())),Q})};return $.current=requestAnimationFrame(Ee),()=>{$.current&&cancelAnimationFrame($.current)}},[ve,d,p,h,x,Ue.length,W]),I.useEffect(()=>{st(W),le?.(W)},[W,ve,A,J]),I.useEffect(()=>{if(!v)return;const ce=()=>{document.hidden&&H(!1)};return document.addEventListener("visibilitychange",ce),()=>document.removeEventListener("visibilitychange",ce)},[v]),I.useImperativeHandle(se,()=>({play:()=>H(!0),pause:()=>H(!1),toggle:()=>H(ce=>!ce),gotoFrame:ce=>b(()=>Math.max(0,Math.min(ce,Math.max(0,Ue.length-1)))),isPlaying:()=>p,currentFrame:()=>W}),[p,W,Ue.length]),C.jsx("div",{className:y,style:R,children:C.jsx("canvas",{ref:Y,"aria-label":"spritesheet animation"})})});function Gc({url:e,className:t}){const[n,r]=I.useState(""),[a,i]=I.useState(null);return I.useEffect(()=>{let s=!1;return au(e).then(({sanitized:o})=>{s||(r(o),i(null))}).catch(o=>!s&&i(o.message??"Failed to load")),()=>{s=!0}},[e]),a?C.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?C.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):C.jsx("div",{className:t})}function Vc({mobile:e=.6,tablet:t=.8,desktop:n=1}){const[r,a]=I.useState(n);return I.useEffect(()=>{if(typeof window>"u")return;const i=[{mq:window.matchMedia("(max-width: 639px)"),value:e},{mq:window.matchMedia("(min-width: 640px) and (max-width: 1023px)"),value:t},{mq:window.matchMedia("(min-width: 1024px)"),value:n}],s=()=>{for(const{mq:o,value:c}of i)if(o.matches){a(c);break}};return i.forEach(({mq:o})=>o.addEventListener("change",s)),s(),()=>{i.forEach(({mq:o})=>o.removeEventListener("change",s))}},[e,t,n]),r}const Ha=({facet:e})=>{const{mode:t,assetUrl:n,spr_columns:r,spr_fps:a,spr_frameCount:i,spr_frameHeight:s,spr_frameWidth:o,spr_gutterX:c,spr_gutterY:l,spr_rows:d,spr_originX:f,spr_originY:h,spr_scaleDesktop:m,spr_scaleMobile:x,spr_scaleTablet:A}=e,N=Vc({mobile:x??.6,tablet:A??.8,desktop:m??1});return C.jsxs("div",{className:"assetContainer",children:[t===Ge.AgentDisplayFacetModeType.LOTTIE&&C.jsx(jc,{src:n,autoplay:!0,onError:y=>console.error(y)}),t===Ge.AgentDisplayFacetModeType.SVG&&C.jsx("div",{children:C.jsx(Gc,{url:n})}),t===Ge.AgentDisplayFacetModeType.IMAGE&&C.jsx(Hc,{src:n}),t===Ge.AgentDisplayFacetModeType.SPRITESHEET&&C.jsx(Yc,{src:n,frameCount:i,columns:r,rows:d,fps:a,frameHeight:s,frameWidth:o,gutterX:c,gutterY:l,originX:f,originY:h,scale:N,autoplay:!0})]})},qc=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=I.useContext(sn);return C.jsxs("div",{className:`launcher
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),O=require("react"),An=require("react-dom"),Ac=require("lottie-react"),_c=require("@lottiefiles/dotlottie-react");function Cc(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 De=Cc(O),Sc=e=>De.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},De.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"}));function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dt={},Ra;function wc(){if(Ra)return Dt;Ra=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.AgentDisplayFacetRoleType=Dt.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(Dt.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(Dt.AgentDisplayFacetRoleType=t={})),Dt}var We=wc();const jr=e=>({mode:We.AgentDisplayFacetModeType.SVG,role:e}),Ic=()=>({agent:{display:{name:"",CSSRules:"",[We.AgentDisplayFacetRoleType.LAUNCHER]:jr(We.AgentDisplayFacetRoleType.LAUNCHER),[We.AgentDisplayFacetRoleType.ASSISTANT]:jr(We.AgentDisplayFacetRoleType.ASSISTANT),[We.AgentDisplayFacetRoleType.SEARCH]:jr(We.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}},api:{settings:{maxUserMessagesPerDiscussion:20},tracking:{queryParamToAppend:""}}}),fn=O.createContext({companySettings:Ic(),setCompanySettings:()=>{}}),sn=globalThis;sn.__WIDGET_ASSET_CACHE__||(sn.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});sn.__WIDGET_PRELOAD_KEYS__||(sn.__WIDGET_PRELOAD_KEYS__=new Set);const $r=sn.__WIDGET_PRELOAD_KEYS__,Nt=sn.__WIDGET_ASSET_CACHE__,vc="widget-assets-v1";async function Cr(e,t){try{const n=await caches.open(vc),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const i=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!i.ok)throw new Error(`HTTP ${i.status} for ${e}`);return n.put(e,i.clone()),i}catch(n){return console.log("error while fetching",n),new Response(null,{status:520,statusText:"Error in client - Fetch failed"})}}async function vu(e){const t=Nt.svg.get(e);if(t)return t.promise;const n=(async()=>{const i=await(await Cr(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const s=new DOMParser().parseFromString(i,"image/svg+xml"),u=new XMLSerializer().serializeToString(s.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(u,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(i,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:i}})();return Nt.svg.set(e,{promise:n,ts:Date.now()}),n}function Nu(e){const t=Nt.img.get(e);if(t)return t.promise;const n=(async()=>{const i=await(await Cr(e)).blob();return{blobUrl:URL.createObjectURL(i)}})();return Nt.img.set(e,{promise:n,ts:Date.now()}),n}function ku(e){const t=Nt.lot.get(e);if(t)return t.promise;const n=(async()=>{const i=await(await Cr(e)).arrayBuffer(),a=new Uint8Array(i);if(a.length>=4&&a[0]===80&&a[1]===75&&a[2]===3&&a[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([i],{type:"application/zip"}))};const u=new TextDecoder().decode(a);return{kind:"json",data:JSON.parse(u)}})();return Nt.lot.set(e,{promise:n,ts:Date.now()}),n}function Ou(e){const t=Nt.spr.get(e);if(t)return t.promise;const n=(async()=>{const i=await(await Cr(e)).blob();let a=null;try{a=await createImageBitmap(i)}catch{a=null}const{imgEl:s,width:u,height:o}=await new Promise((c,f)=>{const d=URL.createObjectURL(i),h=new Image;h.crossOrigin="anonymous",h.onload=()=>{const m=h.naturalWidth,E=h.naturalHeight;c({imgEl:h,width:m,height:E})},h.onerror=()=>{URL.revokeObjectURL(d),f(new Error("Spritesheet image decode failed"))},h.src=d,h.decode?.().catch(()=>{})});return{imgEl:s,bitmap:a,width:u,height:o}})();return Nt.spr.set(e,{promise:n,ts:Date.now()}),n}function Nc(e){e.images?.forEach(t=>void Nu(t)),e.svgs?.forEach(t=>void vu(t)),e.lotties?.forEach(t=>void ku(t)),e.sprites?.forEach(t=>void Ou(t))}function kc(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function Lu(e){return new URL(e,document.baseURI).toString()}function Oc(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function Wn(e,t,n,r){const i=Lu(n),a=`${e}|${t??""}|${i}`;if($r.has(a))return;if(Oc(t,i)){$r.add(a);return}const s=document.createElement("link");s.rel=e,t&&(s.as=t),s.href=i,s.crossOrigin="anonymous",r&&(s.type=r),s.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(s),$r.add(a)}function Lc(e){const t=s=>Array.from(new Set((s??[]).map(Lu))),n=t(e.images),r=t(e.svgs),i=t(e.lotties),a=t(e.sprites);n.forEach(s=>Wn("preload","image",s)),r.forEach(s=>Wn("preload","fetch",s,"image/svg+xml")),i.forEach(s=>Wn("preload","fetch",s,"application/zip")),a.forEach(s=>Wn("preload","fetch",s))}const Rc=({src:e})=>{const[t,n]=O.useState(null);return O.useEffect(()=>{let r=!1;return Nu(e).then(({blobUrl:i})=>{n(i)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),N.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function Dc(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function Pc({src:e,autoplay:t=!0,loop:n=!0,className:r,style:i,placeholder:a,fallback:s,onLoaded:u,onError:o}){const[c,f]=O.useState({kind:"loading"});return O.useEffect(()=>{let d=null,h=!1;return f({kind:"loading"}),ku(e).then(async m=>{if(!h)if(m.kind==="zip"){const E=Dc(m)?m.blob:await(await fetch(m.blobUrl)).blob();d=URL.createObjectURL(E),f({kind:"lottieZip",blobUrl:d}),u?.(d)}else f({kind:"json",data:m.data}),u?.(m.data)}).catch(m=>!h&&(f({kind:"error",err:m}),o?.(m))),()=>{h=!0,d&&URL.revokeObjectURL(d)}},[e]),c.kind==="loading"?N.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...i},children:a??"Loading animation…"}):c.kind==="error"?N.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...i},children:s??"Failed to load animation"}):c.kind==="json"?N.jsx(Ac,{animationData:c.data,loop:n,autoplay:t,className:r,style:i,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):N.jsx(_c.DotLottieReact,{src:c.blobUrl,loop:n,autoplay:t,className:r,style:i})}async function Mc(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:i=3,debug:a=!1}=t;if(e.width<n*2||e.height<n*2)return a&&console.warn("detectGrid: image too small"),null;const s=document.createElement("canvas");s.width=e.naturalWidth,s.height=e.naturalHeight;const u=s.getContext("2d");if(!u)return null;u.drawImage(e,0,0);const{data:o}=u.getImageData(0,0,s.width,s.height),c=s.width,f=s.height,d=new Uint8ClampedArray(c*f);for(let S=0;S<f;S++){let $=S*c;for(let H=0;H<c;H++){const Y=($+H)*4;d[$+H]=.299*o[Y]+.587*o[Y+1]+.114*o[Y+2]|0}}const h=new Float32Array(c),m=new Float32Array(f);for(let S=1;S<c-1;S++){let $=0;for(let H=0;H<f;H++){const Y=H*c+S,z=d[Y+1]-d[Y-1];$+=Math.abs(z)}h[S]=$}for(let S=1;S<f-1;S++){let $=0;for(let H=0;H<c;H++){const Y=S*c+H,z=d[Y+c]-d[Y-c];$+=Math.abs(z)}m[S]=$}const E=Da(h,n,Math.min(r,c/2)),A=Da(m,n,Math.min(r,f/2));if(!E||!A)return a&&console.warn("detectGrid: could not find periods"),null;const _=Math.max(1,Math.round(c/E)),y=Math.max(1,Math.round(f/A)),v=Pa(h,E,_,i),w=Pa(m,A,y,i),D=Math.max(1,E-v),C=Math.max(1,A-w);if(D*_>c+2||C*y>f+2)return a&&console.warn("detectGrid: sanity check failed"),null;const k=_i(h,60),q=_i(m,60),ue=Math.max(0,Ma(h,k)),ae=Math.max(0,Ma(m,q));return a&&console.log({periodX:E,periodY:A,columns:_,rows:y,gutterX:v,gutterY:w,frameWidth:D,frameHeight:C,originX:ue,originY:ae}),{columns:_,rows:y,frameWidth:D,frameHeight:C,gutterX:v,gutterY:w,originX:ue,originY:ae}}function Da(e,t,n){const r=Ru(e);let i=0;for(let m=0;m<e.length;m++){const E=e[m]-r;i+=E*E}if(i===0)return null;const a=new Float32Array(n+1);let s=0,u=-1/0;for(let m=t;m<=n;m++){let E=0;for(let _=0;_+m<e.length;_++)E+=(e[_]-r)*(e[_+m]-r);const A=E/i;a[m]=A,A>u&&(u=A,s=m)}if(s<=t||s>=n)return s||null;const o=a[s-1],c=a[s],f=a[s+1],d=o-2*c+f,h=d===0?0:.5*(o-f)/d;return s+h}function Pa(e,t,n,r){const i=[];for(let u=1;u<n;u++){const o=u*t;let c=1/0,f=o;for(let d=-r;d<=r;d++){const h=o+d;if(h<=0||h>=e.length)continue;const m=e[h];m<c&&(c=m,f=h)}i.push(f)}if(i.length<1)return 0;let a=[];for(const u of i){const o=e[u]*1.5+_i(e,10)*.5;let c=u,f=u;for(;c>1&&e[c-1]<=o;)c--;for(;f<e.length-2&&e[f+1]<=o;)f++;a.push(Math.max(0,f-c+1))}const s=Math.round(Ru(a));return Math.max(0,Math.min(s,Math.floor(t/4)))}function Ru(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function _i(e,t){const n=Array.from(e);n.sort((i,a)=>i-a);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function Ma(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function Bc(e,t,n,r,i){const{data:a}=e.getImageData(t,n,r,i);let s=0;for(let u=3;u<a.length;u+=4)s+=a[u];return s/(255*(a.length/4))<.03}const Fc=O.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:i,rows:a,gutterX:s=0,gutterY:u=0,frameCount:o,atlasFrames:c,fps:f=12,autoplay:d=!0,loop:h=!0,startFrame:m=0,direction:E="forward",scale:A=1,backgroundColor:_,className:y,style:v,pauseWhenHidden:w=!1,originX:D,originY:C,onLoad:k,onEnd:q,onFrame:ue},ae){const S=O.useRef(null),$=O.useRef(null),[H,Y]=O.useState(null),[z,Z]=O.useState(null),[de,ye]=O.useState(null),[Ne,Pe]=O.useState(!1),[p,U]=O.useState(!!d),[X,T]=O.useState(m),V=O.useRef(1),[te,G]=O.useState(null),J=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));O.useEffect(()=>{let ce=!1;return Pe(!1),Ou(t).then(({imgEl:we,bitmap:be})=>{ce||(Y(we),Z(be),ye({w:we.naturalWidth,h:we.naturalHeight}),Pe(!0),k?.())}).catch(()=>{}),()=>{ce=!0}},[t,k]),O.useEffect(()=>{let ce=!1;return(async()=>{if(!H)return;if(c&&c.length){G(null);return}if(!(!n||!r||!i||!a)){G(null);return}const be=await Mc(H,{debug:!0});ce||(be?G({frameWidth:be.frameWidth,frameHeight:be.frameHeight,columns:be.columns,rows:be.rows,gutterX:be.gutterX,gutterY:be.gutterY}):(G(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{ce=!0}},[H,c,n,r,i,a]);const ne=te?.frameWidth??n,re=te?.frameHeight??r,Q=te?.columns??i,ge=te?.rows??a,j=te?.gutterX??s,Le=te?.gutterY??u,Ze=te?.originX??D??0,Fe=te?.originY??C??0,Rt=O.useMemo(()=>{if(c&&c.length>0)return{cols:0,rows:0};if(!de||!ne||!re)return{cols:0,rows:0};const ce=Q??Math.floor((de.w+j)/(ne+j)),we=ge??Math.floor((de.h+Le)/(re+Le));return{cols:Math.max(0,ce),rows:Math.max(0,we)}},[c,de,ne,re,Q,ge,j,Le]),$e=O.useMemo(()=>{if(c?.length)return c;if(!ne||!re)return[];const{cols:ce,rows:we}=Rt;if(!ce||!we)return[];const be=Math.min(o??ce*we,ce*we),Ae=[];for(let ke=0;ke<be;ke++){const R=ke%ce,M=Math.floor(ke/ce),K=Ze+R*(ne+j),ie=Fe+M*(re+Le);Ae.push({x:K,y:ie,w:ne,h:re})}if(H&&Ae.length){const ke=document.createElement("canvas");ke.width=H.naturalWidth,ke.height=H.naturalHeight;const R=ke.getContext("2d");if(R){R.drawImage(H,0,0);let M=Ae.length;for(;M>0&&Bc(R,Ae[M-1].x,Ae[M-1].y,Ae[M-1].w,Ae[M-1].h);)M--;return Ae.slice(0,M)}}return Ae},[c,Rt,o,ne,re,j,Le,H,Ze,Fe]),xt=()=>{const ce=S.current;if(!ce||$e.length===0)return;const we=$e[Math.max(0,Math.min(X,$e.length-1))],be=Math.max(1,Math.round(we.w*A)),Ae=Math.max(1,Math.round(we.h*A));ce.style.width=be+"px",ce.style.height=Ae+"px",ce.width=be*J,ce.height=Ae*J};O.useEffect(()=>{xt()},[Ne,A,$e.length,J,X]);const ot=ce=>{const we=z??H??null,be=S.current;if(!be||!we||$e.length===0)return;const Ae=be.getContext("2d");if(!Ae)return;Ae.save(),Ae.setTransform(1,0,0,1,0,0),Ae.clearRect(0,0,be.width,be.height),_&&(Ae.fillStyle=_,Ae.fillRect(0,0,be.width,be.height));const ke=$e[ce];Ae.scale(J,J),Ae.drawImage(we,ke.x,ke.y,ke.w,ke.h,0,0,Math.round(ke.w*A),Math.round(ke.h*A)),Ae.restore()};return O.useEffect(()=>{if(!Ne||$e.length===0)return;let ce=performance.now();const we=1e3/Math.max(1,Math.min(120,f)),be=Ae=>{if($.current=requestAnimationFrame(be),!p){ot(X);return}const ke=Ae-ce;if(ke<we){ot(X);return}ce=Ae-ke%we,T(R=>{const M=$e.length-1;let K=R;return E==="forward"?K=R+1:E==="backward"?K=R-1:((R>=M&&V.current===1||R<=0&&V.current===-1)&&(V.current*=-1),K=R+V.current),(K>M||K<0)&&(h?K=E==="backward"?M:0:(K=Math.max(0,Math.min(K,M)),U(!1),q?.())),K})};return $.current=requestAnimationFrame(be),()=>{$.current&&cancelAnimationFrame($.current)}},[Ne,f,p,h,E,$e.length,X]),O.useEffect(()=>{ot(X),ue?.(X)},[X,Ne,A,J]),O.useEffect(()=>{if(!w)return;const ce=()=>{document.hidden&&U(!1)};return document.addEventListener("visibilitychange",ce),()=>document.removeEventListener("visibilitychange",ce)},[w]),O.useImperativeHandle(ae,()=>({play:()=>U(!0),pause:()=>U(!1),toggle:()=>U(ce=>!ce),gotoFrame:ce=>T(()=>Math.max(0,Math.min(ce,Math.max(0,$e.length-1)))),isPlaying:()=>p,currentFrame:()=>X}),[p,X,$e.length]),N.jsx("div",{className:y,style:v,children:N.jsx("canvas",{ref:S,"aria-label":"spritesheet animation"})})});function Hc({url:e,className:t}){const[n,r]=O.useState(""),[i,a]=O.useState(null);return O.useEffect(()=>{let s=!1;return vu(e).then(({sanitized:u})=>{s||(r(u),a(null))}).catch(u=>!s&&a(u.message??"Failed to load")),()=>{s=!0}},[e]),i?N.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",i]}):n?N.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):N.jsx("div",{className:t})}function Uc({mobile:e=.6,tablet:t=.8,desktop:n=1}){const[r,i]=O.useState(n);return O.useEffect(()=>{if(typeof window>"u")return;const a=[{mq:window.matchMedia("(max-width: 639px)"),value:e},{mq:window.matchMedia("(min-width: 640px) and (max-width: 1023px)"),value:t},{mq:window.matchMedia("(min-width: 1024px)"),value:n}],s=()=>{for(const{mq:u,value:o}of a)if(u.matches){i(o);break}};return a.forEach(({mq:u})=>u.addEventListener("change",s)),s(),()=>{a.forEach(({mq:u})=>u.removeEventListener("change",s))}},[e,t,n]),r}const na=({facet:e})=>{const{mode:t,assetUrl:n,spr_columns:r,spr_fps:i,spr_frameCount:a,spr_frameHeight:s,spr_frameWidth:u,spr_gutterX:o,spr_gutterY:c,spr_rows:f,spr_originX:d,spr_originY:h,spr_scaleDesktop:m,spr_scaleMobile:E,spr_scaleTablet:A}=e,_=Uc({mobile:E??.6,tablet:A??.8,desktop:m??1});return N.jsxs("div",{className:"assetContainer",children:[t===We.AgentDisplayFacetModeType.LOTTIE&&N.jsx(Pc,{src:n,autoplay:!0,onError:y=>console.error(y)}),t===We.AgentDisplayFacetModeType.SVG&&N.jsx("div",{children:N.jsx(Hc,{url:n})}),t===We.AgentDisplayFacetModeType.IMAGE&&N.jsx(Rc,{src:n}),t===We.AgentDisplayFacetModeType.SPRITESHEET&&N.jsx(Fc,{src:n,frameCount:a,columns:r,rows:f,fps:i,frameHeight:s,frameWidth:u,gutterX:o,gutterY:c,originX:d,originY:h,scale:_,autoplay:!0})]})},jc=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=O.useContext(fn);return N.jsxs("div",{className:`launcher
|
|
2
2
|
fixed
|
|
3
3
|
z-[999999999]
|
|
4
4
|
transition
|
|
@@ -9,56 +9,71 @@
|
|
|
9
9
|
flex
|
|
10
10
|
justify-center
|
|
11
11
|
items-center
|
|
12
|
-
`,onClick:()=>t(!e),children:[!e&&
|
|
12
|
+
`,onClick:()=>t(!e),children:[!e&&N.jsx(na,{facet:n.agent.display[We.AgentDisplayFacetRoleType.LAUNCHER]}),e&&N.jsx(Sc,{className:"w-6 h-6",fill:"white"})]})};var Ci=function(e,t){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ci(e,t)};function at(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ci(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var W=function(){return W=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},W.apply(this,arguments)};function Sr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function mt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Xn={exports:{}},Te={};/** @license React v16.13.1
|
|
13
13
|
* react-is.production.min.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
19
|
+
*/var Ba;function $c(){if(Ba)return Te;Ba=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,o=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case t:switch(C=C.type,C){case o:case c:case r:case a:case i:case d:return C;default:switch(C=C&&C.$$typeof,C){case u:case f:case E:case m:case s:return C;default:return k}}case n:return k}}}function D(C){return w(C)===c}return Te.AsyncMode=o,Te.ConcurrentMode=c,Te.ContextConsumer=u,Te.ContextProvider=s,Te.Element=t,Te.ForwardRef=f,Te.Fragment=r,Te.Lazy=E,Te.Memo=m,Te.Portal=n,Te.Profiler=a,Te.StrictMode=i,Te.Suspense=d,Te.isAsyncMode=function(C){return D(C)||w(C)===o},Te.isConcurrentMode=D,Te.isContextConsumer=function(C){return w(C)===u},Te.isContextProvider=function(C){return w(C)===s},Te.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Te.isForwardRef=function(C){return w(C)===f},Te.isFragment=function(C){return w(C)===r},Te.isLazy=function(C){return w(C)===E},Te.isMemo=function(C){return w(C)===m},Te.isPortal=function(C){return w(C)===n},Te.isProfiler=function(C){return w(C)===a},Te.isStrictMode=function(C){return w(C)===i},Te.isSuspense=function(C){return w(C)===d},Te.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===c||C===a||C===i||C===d||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===E||C.$$typeof===m||C.$$typeof===s||C.$$typeof===u||C.$$typeof===f||C.$$typeof===_||C.$$typeof===y||C.$$typeof===v||C.$$typeof===A)},Te.typeOf=w,Te}var xe={};/** @license React v16.13.1
|
|
20
20
|
* react-is.development.js
|
|
21
21
|
*
|
|
22
22
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Ti;function Xc(){return Ti||(Ti=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function v(U){return typeof U=="string"||typeof U=="function"||U===r||U===l||U===i||U===a||U===f||U===h||typeof U=="object"&&U!==null&&(U.$$typeof===x||U.$$typeof===m||U.$$typeof===s||U.$$typeof===o||U.$$typeof===d||U.$$typeof===N||U.$$typeof===y||U.$$typeof===R||U.$$typeof===A)}function B(U){if(typeof U=="object"&&U!==null){var Le=U.$$typeof;switch(Le){case t:var Qe=U.type;switch(Qe){case c:case l:case r:case i:case a:case f:return Qe;default:var Be=Qe&&Qe.$$typeof;switch(Be){case o:case d:case x:case m:case s:return Be;default:return Le}}case n:return Le}}}var S=c,L=l,K=o,le=s,se=t,Y=d,$=r,F=x,z=m,j=n,Z=i,de=a,ye=f,ve=!1;function De(U){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),p(U)||B(U)===c}function p(U){return B(U)===l}function H(U){return B(U)===o}function W(U){return B(U)===s}function b(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function V(U){return B(U)===d}function ee(U){return B(U)===r}function G(U){return B(U)===x}function J(U){return B(U)===m}function te(U){return B(U)===n}function re(U){return B(U)===i}function X(U){return B(U)===a}function me(U){return B(U)===f}Te.AsyncMode=S,Te.ConcurrentMode=L,Te.ContextConsumer=K,Te.ContextProvider=le,Te.Element=se,Te.ForwardRef=Y,Te.Fragment=$,Te.Lazy=F,Te.Memo=z,Te.Portal=j,Te.Profiler=Z,Te.StrictMode=de,Te.Suspense=ye,Te.isAsyncMode=De,Te.isConcurrentMode=p,Te.isContextConsumer=H,Te.isContextProvider=W,Te.isElement=b,Te.isForwardRef=V,Te.isFragment=ee,Te.isLazy=G,Te.isMemo=J,Te.isPortal=te,Te.isProfiler=re,Te.isStrictMode=X,Te.isSuspense=me,Te.isValidElementType=v,Te.typeOf=B})()),Te}var yi;function Ua(){return yi||(yi=1,process.env.NODE_ENV==="production"?zn.exports=Wc():zn.exports=Xc()),zn.exports}var Lr,xi;function Qc(){if(xi)return Lr;xi=1;var e=Ua(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(x){return e.isMemo(x)?a:i[x.$$typeof]||t}var o=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(x,A,N){if(typeof A!="string"){if(h){var y=f(A);y&&y!==h&&m(x,y,N)}var R=c(A);l&&(R=R.concat(l(A)));for(var v=s(x),B=s(A),S=0;S<R.length;++S){var L=R[S];if(!n[L]&&!(N&&N[L])&&!(B&&B[L])&&!(v&&v[L])){var K=d(A,L);try{o(x,L,K)}catch{}}}}return x}return Lr=m,Lr}Qc();function lu(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var fe;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(fe||(fe={}));var Ie;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ie||(Ie={}));var tn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tn||(tn={}));function Ai(e){return e.type===Ie.literal}function Kc(e){return e.type===Ie.argument}function du(e){return e.type===Ie.number}function fu(e){return e.type===Ie.date}function hu(e){return e.type===Ie.time}function mu(e){return e.type===Ie.select}function pu(e){return e.type===Ie.plural}function Zc(e){return e.type===Ie.pound}function Eu(e){return e.type===Ie.tag}function gu(e){return!!(e&&typeof e=="object"&&e.type===tn.number)}function ca(e){return!!(e&&typeof e=="object"&&e.type===tn.dateTime)}var bu=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Jc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function el(e){var t={};return e.replace(Jc,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var tl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function nl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(tl).filter(function(h){return h.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],c=s.slice(1),l=0,d=c;l<d.length;l++){var f=d[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:c})}return n}function rl(e){return e.replace(/^(.*?)-/,"")}var _i=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Tu=/^(@+)?(\+|#+)?[rs]?$/g,al=/(\*)(0+)|(#+)(0+)|(0+)/g,yu=/^(0+)$/;function Si(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Tu,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function xu(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function il(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!yu.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ci(e){var t={},n=xu(e);return n||t}function sl(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=rl(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),a.options.reduce(function(c,l){return q(q({},c),Ci(l))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),a.options.reduce(function(c,l){return q(q({},c),Ci(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(al,function(c,l,d,f,h,m){if(l)t.minimumIntegerDigits=d.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(yu.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(_i.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(_i,function(c,l,d,f,h,m){return d==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=a.options[0];i==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=q(q({},t),Si(i)));continue}if(Tu.test(a.stem)){t=q(q({},t),Si(a.stem));continue}var s=xu(a.stem);s&&(t=q(q({},t),s));var o=il(a.stem);o&&(t=q(q({},t),o))}return t}var Yn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ul(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var s=1+(i&1),o=i<2?1:3+(i>>1),c="a",l=ol(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)n+=c;for(;s-- >0;)n=l+n}else a==="J"?n+="H":n+=a}return n}function ol(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=Yn[r||""]||Yn[n||""]||Yn["".concat(n,"-001")]||Yn["001"];return a[0]}var Rr,cl=new RegExp("^".concat(bu.source,"*")),ll=new RegExp("".concat(bu.source,"*$"));function he(e,t){return{start:e,end:t}}var dl=!!String.prototype.startsWith&&"_a".startsWith("a",1),fl=!!String.fromCodePoint,hl=!!Object.fromEntries,ml=!!String.prototype.codePointAt,pl=!!String.prototype.trimStart,El=!!String.prototype.trimEnd,gl=!!Number.isSafeInteger,bl=gl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},la=!0;try{var Tl=_u("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");la=((Rr=Tl.exec("a"))===null||Rr===void 0?void 0:Rr[0])==="a"}catch{la=!1}var Ii=dl?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},da=fl?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,s;a>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Ni=hl?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],s=i[0],o=i[1];n[s]=o}return n},Au=ml?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},yl=pl?function(t){return t.trimStart()}:function(t){return t.replace(cl,"")},xl=El?function(t){return t.trimEnd()}:function(t){return t.replace(ll,"")};function _u(e,t){return new RegExp(e,t)}var fa;if(la){var vi=_u("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fa=function(t,n){var r;vi.lastIndex=n;var a=vi.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else fa=function(t,n){for(var r=[];;){var a=Au(t,n);if(a===void 0||Su(a)||Cl(a))break;r.push(a),n+=a>=65536?2:1}return da.apply(void 0,r)};var Al=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;a.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:Ie.pound,location:he(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(fe.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ha(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;a.push(s.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ie.literal,value:"<".concat(a,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ha(this.char()))return this.error(fe.INVALID_TAG,he(o,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(fe.UNMATCHED_CLOSING_TAG,he(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ie.tag,value:a,children:s,location:he(r,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,he(o,this.clonePosition())))}else return this.error(fe.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(fe.INVALID_TAG,he(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Sl(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){a+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var c=he(r,this.clonePosition());return{val:{type:Ie.literal,value:a,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_l(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return da.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),da(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(fe.EMPTY_ARGUMENT,he(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(fe.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ie.argument,value:a,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(fe.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fa(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),s=he(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(fe.EXPECT_ARGUMENT_TYPE,he(s,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=xl(f.val);if(h.length===0)return this.error(fe.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var m=he(d,this.clonePosition());l={style:h,styleLocation:m}}var x=this.tryParseArgumentClose(a);if(x.err)return x;var A=he(a,this.clonePosition());if(l&&Ii(l?.style,"::",0)){var N=yl(l.style.slice(2));if(o==="number"){var f=this.parseNumberSkeletonFromString(N,l.styleLocation);return f.err?f:{val:{type:Ie.number,value:r,location:A,style:f.val},err:null}}else{if(N.length===0)return this.error(fe.EXPECT_DATE_TIME_SKELETON,A);var y=N;this.locale&&(y=ul(N,this.locale));var h={type:tn.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?el(y):{}},R=o==="date"?Ie.date:Ie.time;return{val:{type:R,value:r,location:A,style:h},err:null}}}return{val:{type:o==="number"?Ie.number:o==="date"?Ie.date:Ie.time,value:r,location:A,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,he(v,q({},v)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),S=0;if(o!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),B=this.parseIdentifierIfPossible(),S=f.val}var L=this.tryParsePluralOrSelectOptions(t,o,n,B);if(L.err)return L;var x=this.tryParseArgumentClose(a);if(x.err)return x;var K=he(a,this.clonePosition());return o==="select"?{val:{type:Ie.select,value:r,options:Ni(L.val),location:K},err:null}:{val:{type:Ie.plural,value:r,options:Ni(L.val),offset:S,pluralType:o==="plural"?"cardinal":"ordinal",location:K},err:null}}default:return this.error(fe.INVALID_ARGUMENT_TYPE,he(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,he(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=nl(t)}catch{return this.error(fe.INVALID_NUMBER_SKELETON,n)}return{val:{type:tn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?sl(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,s=!1,o=[],c=new Set,l=a.value,d=a.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=he(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(n==="select"?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);l==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,n,r);if(x.err)return x;var A=this.tryParseArgumentClose(m);if(A.err)return A;o.push([l,{value:x.val,location:he(m,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,d=i.location}return o.length===0?this.error(n==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(fe.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,s=s*10+(o-48),this.bump();else break}var c=he(a,this.clonePosition());return i?(s*=r,bl(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Au(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ii(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Su(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function ha(e){return e>=97&&e<=122||e>=65&&e<=90}function _l(e){return ha(e)||e===47}function Sl(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Su(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Cl(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ma(e){e.forEach(function(t){if(delete t.location,mu(t)||pu(t))for(var n in t.options)delete t.options[n].location,ma(t.options[n].value);else du(t)&&gu(t.style)||(fu(t)||hu(t))&&ca(t.style)?delete t.style.location:Eu(t)&&ma(t.children)})}function Il(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Al(e,t).parse();if(n.err){var r=SyntaxError(fe[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ma(n.val),n.val}function ct(e,t){var n=t&&t.cache?t.cache:Rl,r=t&&t.serializer?t.serializer:Ll,a=t&&t.strategy?t.strategy:wl;return a(e,{cache:n,serializer:r})}function Nl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function vl(e,t,n,r){var a=Nl(r)?r:n(r),i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function Cu(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function Iu(e,t,n,r,a){return n.bind(t,e,r,a)}function wl(e,t){var n=e.length===1?vl:Cu;return Iu(e,this,n,t.cache.create(),t.serializer)}function Ol(e,t){return Iu(e,this,Cu,t.cache.create(),t.serializer)}var Ll=function(){return JSON.stringify(arguments)};function ja(){this.cache=Object.create(null)}ja.prototype.get=function(e){return this.cache[e]};ja.prototype.set=function(e,t){this.cache[e]=t};var Rl={create:function(){return new ja}},lt={variadic:Ol},mt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(mt||(mt={}));var Nt=(function(e){rt(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),wi=(function(e){rt(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),mt.INVALID_VALUE,i)||this}return t})(Nt),kl=(function(e){rt(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),mt.INVALID_VALUE,a)||this}return t})(Nt),Dl=(function(e){rt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),mt.MISSING_VALUE,r)||this}return t})(Nt),$e;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($e||($e={}));function Pl(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==$e.literal||n.type!==$e.literal?t.push(n):r.value+=n.value,t},[])}function Nu(e){return typeof e=="function"}function Jn(e,t,n,r,a,i,s){if(e.length===1&&Ai(e[0]))return[{type:$e.literal,value:e[0].value}];for(var o=[],c=0,l=e;c<l.length;c++){var d=l[c];if(Ai(d)){o.push({type:$e.literal,value:d.value});continue}if(Zc(d)){typeof i=="number"&&o.push({type:$e.literal,value:n.getNumberFormat(t).format(i)});continue}var f=d.value;if(!(a&&f in a))throw new Dl(f,s);var h=a[f];if(Kc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?$e.literal:$e.object,value:h});continue}if(fu(d)){var m=typeof d.style=="string"?r.date[d.style]:ca(d.style)?d.style.parsedOptions:void 0;o.push({type:$e.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(hu(d)){var m=typeof d.style=="string"?r.time[d.style]:ca(d.style)?d.style.parsedOptions:r.time.medium;o.push({type:$e.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(du(d)){var m=typeof d.style=="string"?r.number[d.style]:gu(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(h=h*(m.scale||1)),o.push({type:$e.literal,value:n.getNumberFormat(t,m).format(h)});continue}if(Eu(d)){var x=d.children,A=d.value,N=a[A];if(!Nu(N))throw new kl(A,"function",s);var y=Jn(x,t,n,r,a,i),R=N(y.map(function(S){return S.value}));Array.isArray(R)||(R=[R]),o.push.apply(o,R.map(function(S){return{type:typeof S=="string"?$e.literal:$e.object,value:S}}))}if(mu(d)){var v=d.options[h]||d.options.other;if(!v)throw new wi(d.value,h,Object.keys(d.options),s);o.push.apply(o,Jn(v.value,t,n,r,a));continue}if(pu(d)){var v=d.options["=".concat(h)];if(!v){if(!Intl.PluralRules)throw new Nt(`Intl.PluralRules is not available in this environment.
|
|
26
|
+
*/var Fa;function zc(){return Fa||(Fa=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,o=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(j){return typeof j=="string"||typeof j=="function"||j===r||j===c||j===a||j===i||j===d||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===E||j.$$typeof===m||j.$$typeof===s||j.$$typeof===u||j.$$typeof===f||j.$$typeof===_||j.$$typeof===y||j.$$typeof===v||j.$$typeof===A)}function D(j){if(typeof j=="object"&&j!==null){var Le=j.$$typeof;switch(Le){case t:var Ze=j.type;switch(Ze){case o:case c:case r:case a:case i:case d:return Ze;default:var Fe=Ze&&Ze.$$typeof;switch(Fe){case u:case f:case E:case m:case s:return Fe;default:return Le}}case n:return Le}}}var C=o,k=c,q=u,ue=s,ae=t,S=f,$=r,H=E,Y=m,z=n,Z=a,de=i,ye=d,Ne=!1;function Pe(j){return Ne||(Ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),p(j)||D(j)===o}function p(j){return D(j)===c}function U(j){return D(j)===u}function X(j){return D(j)===s}function T(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function V(j){return D(j)===f}function te(j){return D(j)===r}function G(j){return D(j)===E}function J(j){return D(j)===m}function ne(j){return D(j)===n}function re(j){return D(j)===a}function Q(j){return D(j)===i}function ge(j){return D(j)===d}xe.AsyncMode=C,xe.ConcurrentMode=k,xe.ContextConsumer=q,xe.ContextProvider=ue,xe.Element=ae,xe.ForwardRef=S,xe.Fragment=$,xe.Lazy=H,xe.Memo=Y,xe.Portal=z,xe.Profiler=Z,xe.StrictMode=de,xe.Suspense=ye,xe.isAsyncMode=Pe,xe.isConcurrentMode=p,xe.isContextConsumer=U,xe.isContextProvider=X,xe.isElement=T,xe.isForwardRef=V,xe.isFragment=te,xe.isLazy=G,xe.isMemo=J,xe.isPortal=ne,xe.isProfiler=re,xe.isStrictMode=Q,xe.isSuspense=ge,xe.isValidElementType=w,xe.typeOf=D})()),xe}var Ha;function ra(){return Ha||(Ha=1,process.env.NODE_ENV==="production"?Xn.exports=$c():Xn.exports=zc()),Xn.exports}var zr,Ua;function Yc(){if(Ua)return zr;Ua=1;var e=ra(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function s(E){return e.isMemo(E)?i:a[E.$$typeof]||t}var u=Object.defineProperty,o=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function m(E,A,_){if(typeof A!="string"){if(h){var y=d(A);y&&y!==h&&m(E,y,_)}var v=o(A);c&&(v=v.concat(c(A)));for(var w=s(E),D=s(A),C=0;C<v.length;++C){var k=v[C];if(!n[k]&&!(_&&_[k])&&!(D&&D[k])&&!(w&&w[k])){var q=f(A,k);try{u(E,k,q)}catch{}}}}return E}return zr=m,zr}Yc();function Du(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var he;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(he||(he={}));var Ie;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ie||(Ie={}));var un;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(un||(un={}));function ja(e){return e.type===Ie.literal}function Gc(e){return e.type===Ie.argument}function Pu(e){return e.type===Ie.number}function Mu(e){return e.type===Ie.date}function Bu(e){return e.type===Ie.time}function Fu(e){return e.type===Ie.select}function Hu(e){return e.type===Ie.plural}function Vc(e){return e.type===Ie.pound}function Uu(e){return e.type===Ie.tag}function ju(e){return!!(e&&typeof e=="object"&&e.type===un.number)}function Si(e){return!!(e&&typeof e=="object"&&e.type===un.dateTime)}var $u=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,qc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Wc(e){var t={};return e.replace(qc,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Xc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qc(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Xc).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var u=s[0],o=s.slice(1),c=0,f=o;c<f.length;c++){var d=f[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:u,options:o})}return n}function Kc(e){return e.replace(/^(.*?)-/,"")}var $a=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zu=/^(@+)?(\+|#+)?[rs]?$/g,Zc=/(\*)(0+)|(#+)(0+)|(0+)/g,Yu=/^(0+)$/;function za(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zu,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Gu(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Jc(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Yu.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ya(e){var t={},n=Gu(e);return n||t}function ef(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Kc(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=W(W(W({},t),{notation:"scientific"}),i.options.reduce(function(o,c){return W(W({},o),Ya(c))},{}));continue;case"engineering":t=W(W(W({},t),{notation:"engineering"}),i.options.reduce(function(o,c){return W(W({},o),Ya(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Zc,function(o,c,f,d,h,m){if(c)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Yu.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if($a.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace($a,function(o,c,f,d,h,m){return f==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var a=i.options[0];a==="w"?t=W(W({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=W(W({},t),za(a)));continue}if(zu.test(i.stem)){t=W(W({},t),za(i.stem));continue}var s=Gu(i.stem);s&&(t=W(W({},t),s));var u=Jc(i.stem);u&&(t=W(W({},t),u))}return t}var Qn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tf(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(a&1),u=a<2?1:3+(a>>1),o="a",c=nf(t);for((c=="H"||c=="k")&&(u=0);u-- >0;)n+=o;for(;s-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function nf(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Qn[r||""]||Qn[n||""]||Qn["".concat(n,"-001")]||Qn["001"];return i[0]}var Yr,rf=new RegExp("^".concat($u.source,"*")),af=new RegExp("".concat($u.source,"*$"));function me(e,t){return{start:e,end:t}}var sf=!!String.prototype.startsWith&&"_a".startsWith("a",1),uf=!!String.fromCodePoint,of=!!Object.fromEntries,lf=!!String.prototype.codePointAt,cf=!!String.prototype.trimStart,ff=!!String.prototype.trimEnd,df=!!Number.isSafeInteger,hf=df?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wi=!0;try{var mf=qu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wi=((Yr=mf.exec("a"))===null||Yr===void 0?void 0:Yr[0])==="a"}catch{wi=!1}var Ga=sf?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Ii=uf?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,s;i>a;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Va=of?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],s=a[0],u=a[1];n[s]=u}return n},Vu=lf?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},pf=cf?function(t){return t.trimStart()}:function(t){return t.replace(rf,"")},gf=ff?function(t){return t.trimEnd()}:function(t){return t.replace(af,"")};function qu(e,t){return new RegExp(e,t)}var vi;if(wi){var qa=qu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vi=function(t,n){var r;qa.lastIndex=n;var i=qa.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else vi=function(t,n){for(var r=[];;){var i=Vu(t,n);if(i===void 0||Wu(i)||xf(i))break;r.push(i),n+=i>=65536?2:1}return Ii.apply(void 0,r)};var bf=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var u=this.clonePosition();this.bump(),i.push({type:Ie.pound,location:me(u,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(he.UNMATCHED_CLOSING_TAG,me(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Ni(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ie.literal,value:"<".concat(i,"/>"),location:me(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ni(this.char()))return this.error(he.INVALID_TAG,me(u,this.clonePosition()));var o=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(he.UNMATCHED_CLOSING_TAG,me(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ie.tag,value:i,children:s,location:me(r,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,me(u,this.clonePosition())))}else return this.error(he.UNCLOSED_TAG,me(r,this.clonePosition()))}else return this.error(he.INVALID_TAG,me(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Tf(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var o=me(r,this.clonePosition());return{val:{type:Ie.literal,value:i,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ef(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Ii.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Ii(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,me(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(he.EMPTY_ARGUMENT,me(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(he.MALFORMED_ARGUMENT,me(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,me(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ie.argument,value:i,location:me(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,me(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(he.MALFORMED_ARGUMENT,me(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=vi(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),s=me(t,a);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,s=this.clonePosition(),u=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(u){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,me(s,o));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=gf(d.val);if(h.length===0)return this.error(he.EXPECT_ARGUMENT_STYLE,me(this.clonePosition(),this.clonePosition()));var m=me(f,this.clonePosition());c={style:h,styleLocation:m}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var A=me(i,this.clonePosition());if(c&&Ga(c?.style,"::",0)){var _=pf(c.style.slice(2));if(u==="number"){var d=this.parseNumberSkeletonFromString(_,c.styleLocation);return d.err?d:{val:{type:Ie.number,value:r,location:A,style:d.val},err:null}}else{if(_.length===0)return this.error(he.EXPECT_DATE_TIME_SKELETON,A);var y=_;this.locale&&(y=tf(_,this.locale));var h={type:un.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Wc(y):{}},v=u==="date"?Ie.date:Ie.time;return{val:{type:v,value:r,location:A,style:h},err:null}}}return{val:{type:u==="number"?Ie.number:u==="date"?Ie.date:Ie.time,value:r,location:A,style:(a=c?.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,me(w,W({},w)));this.bumpSpace();var D=this.parseIdentifierIfPossible(),C=0;if(u!=="select"&&D.value==="offset"){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),D=this.parseIdentifierIfPossible(),C=d.val}var k=this.tryParsePluralOrSelectOptions(t,u,n,D);if(k.err)return k;var E=this.tryParseArgumentClose(i);if(E.err)return E;var q=me(i,this.clonePosition());return u==="select"?{val:{type:Ie.select,value:r,options:Va(k.val),location:q},err:null}:{val:{type:Ie.plural,value:r,options:Va(k.val),offset:C,pluralType:u==="plural"?"cardinal":"ordinal",location:q},err:null}}default:return this.error(he.INVALID_ARGUMENT_TYPE,me(s,o))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,me(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,me(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Qc(t)}catch{return this.error(he.INVALID_NUMBER_SKELETON,n)}return{val:{type:un.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ef(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,s=!1,u=[],o=new Set,c=i.value,f=i.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=me(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(o.has(c))return this.error(n==="select"?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,me(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var A=this.tryParseArgumentClose(m);if(A.err)return A;u.push([c,{value:E.val,location:me(m,this.clonePosition())}]),o.add(c),this.bumpSpace(),a=this.parseIdentifierIfPossible(),c=a.value,f=a.location}return u.length===0?this.error(n==="select"?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(he.MISSING_OTHER_CLAUSE,me(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,s=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)a=!0,s=s*10+(u-48),this.bump();else break}var o=me(i,this.clonePosition());return a?(s*=r,hf(s)?{val:s,err:null}:this.error(n,o)):this.error(t,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Vu(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ga(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Wu(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function Ni(e){return e>=97&&e<=122||e>=65&&e<=90}function Ef(e){return Ni(e)||e===47}function Tf(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Wu(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function xf(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ki(e){e.forEach(function(t){if(delete t.location,Fu(t)||Hu(t))for(var n in t.options)delete t.options[n].location,ki(t.options[n].value);else Pu(t)&&ju(t.style)||(Mu(t)||Bu(t))&&Si(t.style)?delete t.style.location:Uu(t)&&ki(t.children)})}function yf(e,t){t===void 0&&(t={}),t=W({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new bf(e,t).parse();if(n.err){var r=SyntaxError(he[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ki(n.val),n.val}function dt(e,t){var n=t&&t.cache?t.cache:If,r=t&&t.serializer?t.serializer:wf,i=t&&t.strategy?t.strategy:Cf;return i(e,{cache:n,serializer:r})}function Af(e){return e==null||typeof e=="number"||typeof e=="boolean"}function _f(e,t,n,r){var i=Af(r)?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function Xu(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function Qu(e,t,n,r,i){return n.bind(t,e,r,i)}function Cf(e,t){var n=e.length===1?_f:Xu;return Qu(e,this,n,t.cache.create(),t.serializer)}function Sf(e,t){return Qu(e,this,Xu,t.cache.create(),t.serializer)}var wf=function(){return JSON.stringify(arguments)};function ia(){this.cache=Object.create(null)}ia.prototype.get=function(e){return this.cache[e]};ia.prototype.set=function(e,t){this.cache[e]=t};var If={create:function(){return new ia}},ht={variadic:Sf},gt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(gt||(gt={}));var kt=(function(e){at(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Wa=(function(e){at(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),gt.INVALID_VALUE,a)||this}return t})(kt),vf=(function(e){at(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),gt.INVALID_VALUE,i)||this}return t})(kt),Nf=(function(e){at(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),gt.MISSING_VALUE,r)||this}return t})(kt),Ye;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ye||(Ye={}));function kf(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Ye.literal||n.type!==Ye.literal?t.push(n):r.value+=n.value,t},[])}function Ku(e){return typeof e=="function"}function sr(e,t,n,r,i,a,s){if(e.length===1&&ja(e[0]))return[{type:Ye.literal,value:e[0].value}];for(var u=[],o=0,c=e;o<c.length;o++){var f=c[o];if(ja(f)){u.push({type:Ye.literal,value:f.value});continue}if(Vc(f)){typeof a=="number"&&u.push({type:Ye.literal,value:n.getNumberFormat(t).format(a)});continue}var d=f.value;if(!(i&&d in i))throw new Nf(d,s);var h=i[d];if(Gc(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),u.push({type:typeof h=="string"?Ye.literal:Ye.object,value:h});continue}if(Mu(f)){var m=typeof f.style=="string"?r.date[f.style]:Si(f.style)?f.style.parsedOptions:void 0;u.push({type:Ye.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(Bu(f)){var m=typeof f.style=="string"?r.time[f.style]:Si(f.style)?f.style.parsedOptions:r.time.medium;u.push({type:Ye.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(Pu(f)){var m=typeof f.style=="string"?r.number[f.style]:ju(f.style)?f.style.parsedOptions:void 0;m&&m.scale&&(h=h*(m.scale||1)),u.push({type:Ye.literal,value:n.getNumberFormat(t,m).format(h)});continue}if(Uu(f)){var E=f.children,A=f.value,_=i[A];if(!Ku(_))throw new vf(A,"function",s);var y=sr(E,t,n,r,i,a),v=_(y.map(function(C){return C.value}));Array.isArray(v)||(v=[v]),u.push.apply(u,v.map(function(C){return{type:typeof C=="string"?Ye.literal:Ye.object,value:C}}))}if(Fu(f)){var w=f.options[h]||f.options.other;if(!w)throw new Wa(f.value,h,Object.keys(f.options),s);u.push.apply(u,sr(w.value,t,n,r,i));continue}if(Hu(f)){var w=f.options["=".concat(h)];if(!w){if(!Intl.PluralRules)throw new kt(`Intl.PluralRules is not available in this environment.
|
|
27
27
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
28
|
-
`,
|
|
28
|
+
`,gt.MISSING_INTL_API,s);var D=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));w=f.options[D]||f.options.other}if(!w)throw new Wa(f.value,h,Object.keys(f.options),s);u.push.apply(u,sr(w.value,t,n,r,i,h-(f.offset||0)));continue}}return kf(u)}function Of(e,t){return t?W(W(W({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=W(W({},e[r]),t[r]||{}),n},{})):e}function Lf(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Of(e[r],t[r]),n},W({},e)):e}function Gr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Rf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:dt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,mt([void 0],n,!1)))},{cache:Gr(e.number),strategy:ht.variadic}),getDateTimeFormat:dt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,mt([void 0],n,!1)))},{cache:Gr(e.dateTime),strategy:ht.variadic}),getPluralRules:dt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,mt([void 0],n,!1)))},{cache:Gr(e.pluralRules),strategy:ht.variadic})}}var Zu=(function(){function e(t,n,r,i){var a=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(o){var c=a.formatToParts(o);if(c.length===1)return c[0].value;var f=c.reduce(function(d,h){return!d.length||h.type!==Ye.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(o){return sr(a.ast,a.locales,a.formatters,a.formats,o,void 0,a.message)},this.resolvedOptions=function(){var o;return{locale:((o=a.resolvedLocale)===null||o===void 0?void 0:o.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var u=Sr(s,["formatters"]);this.ast=e.__parse(t,W(W({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Lf(e.formats,r),this.formatters=i&&i.formatters||Rf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=yf,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),$t;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})($t||($t={}));var Fn=(function(e){at(t,e);function t(n,r,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
|
29
29
|
`).concat(s?`
|
|
30
30
|
`.concat(s.message,`
|
|
31
|
-
`).concat(s.stack):""))||this,
|
|
31
|
+
`).concat(s.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t})(Error),Df=(function(e){at(t,e);function t(n,r){return e.call(this,$t.UNSUPPORTED_FORMATTER,n,r)||this}return t})(Fn),Pf=(function(e){at(t,e);function t(n,r){return e.call(this,$t.INVALID_CONFIG,n,r)||this}return t})(Fn),Xa=(function(e){at(t,e);function t(n,r){return e.call(this,$t.MISSING_DATA,n,r)||this}return t})(Fn),st=(function(e){at(t,e);function t(n,r,i){var a=e.call(this,$t.FORMAT_ERROR,"".concat(n,`
|
|
32
32
|
Locale: `).concat(r,`
|
|
33
|
-
`),
|
|
34
|
-
MessageID: `).concat(
|
|
35
|
-
Default Message: `).concat(
|
|
36
|
-
Description: `).concat(
|
|
37
|
-
`),r,
|
|
33
|
+
`),i)||this;return a.locale=r,a}return t})(Fn),Vr=(function(e){at(t,e);function t(n,r,i,a){var s=e.call(this,"".concat(n,`
|
|
34
|
+
MessageID: `).concat(i?.id,`
|
|
35
|
+
Default Message: `).concat(i?.defaultMessage,`
|
|
36
|
+
Description: `).concat(i?.description,`
|
|
37
|
+
`),r,a)||this;return s.descriptor=i,s.locale=r,s}return t})(st),Mf=(function(e){at(t,e);function t(n,r){var i=e.call(this,$t.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t})(Fn);function Gt(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var Bf=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Ff=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Ju={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Bf,onWarn:Ff};function eo(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Pt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Hf(e){e===void 0&&(e=eo());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=dt(function(){for(var u,o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new((u=Intl.DateTimeFormat).bind.apply(u,mt([void 0],o,!1)))},{cache:Pt(e.dateTime),strategy:ht.variadic}),a=dt(function(){for(var u,o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new((u=Intl.NumberFormat).bind.apply(u,mt([void 0],o,!1)))},{cache:Pt(e.number),strategy:ht.variadic}),s=dt(function(){for(var u,o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];return new((u=Intl.PluralRules).bind.apply(u,mt([void 0],o,!1)))},{cache:Pt(e.pluralRules),strategy:ht.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:dt(function(u,o,c,f){return new Zu(u,o,c,W({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:s}},f||{}))},{cache:Pt(e.message),strategy:ht.variadic}),getRelativeTimeFormat:dt(function(){for(var u=[],o=0;o<arguments.length;o++)u[o]=arguments[o];return new(t.bind.apply(t,mt([void 0],u,!1)))},{cache:Pt(e.relativeTime),strategy:ht.variadic}),getPluralRules:s,getListFormat:dt(function(){for(var u=[],o=0;o<arguments.length;o++)u[o]=arguments[o];return new(n.bind.apply(n,mt([void 0],u,!1)))},{cache:Pt(e.list),strategy:ht.variadic}),getDisplayNames:dt(function(){for(var u=[],o=0;o<arguments.length;o++)u[o]=arguments[o];return new(r.bind.apply(r,mt([void 0],u,!1)))},{cache:Pt(e.displayNames),strategy:ht.variadic})}}function aa(e,t,n,r){var i=e&&e[t],a;if(i&&(a=i[n]),a)return a;r(new Df("No ".concat(t," format named: ").concat(n)))}function Kn(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=W({timeZone:t},e[r]),n},{})}function Qa(e,t){var n=Object.keys(W(W({},e),t));return n.reduce(function(r,i){return r[i]=W(W({},e[i]||{}),t[i]||{}),r},{})}function Ka(e,t){if(!t)return e;var n=Zu.formats;return W(W(W({},n),e),{date:Qa(Kn(n.date,t),Kn(e.date||{},t)),time:Qa(Kn(n.time,t),Kn(e.time||{},t))})}var Oi=function(e,t,n,r,i){var a=e.locale,s=e.formats,u=e.messages,o=e.defaultLocale,c=e.defaultFormats,f=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,m=e.defaultRichTextElements;n===void 0&&(n={id:""});var E=n.id,A=n.defaultMessage;Du(!!E,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(E),y=u&&Object.prototype.hasOwnProperty.call(u,_)&&u[_];if(Array.isArray(y)&&y.length===1&&y[0].type===Ie.literal)return y[0].value;if(!r&&y&&typeof y=="string"&&!m)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=W(W({},m),r||{}),s=Ka(s,h),c=Ka(c,h),!y){if(f===!1&&y==="")return y;if((!A||a&&a.toLowerCase()!==o.toLowerCase())&&d(new Mf(n,a)),A)try{var v=t.getMessageFormat(A,o,c,i);return v.format(r)}catch(w){return d(new Vr('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),a,n,w)),typeof A=="string"?A:_}return _}try{var v=t.getMessageFormat(y,a,s,W({formatters:t},i||{}));return v.format(r)}catch(w){d(new Vr('Error formatting message: "'.concat(_,'", using ').concat(A?"default message":"id"," as fallback."),a,n,w))}if(A)try{var v=t.getMessageFormat(A,o,c,i);return v.format(r)}catch(w){d(new Vr('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),a,n,w))}return typeof y=="string"?y:typeof A=="string"?A:_},to=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function wr(e,t,n,r){var i=e.locale,a=e.formats,s=e.onError,u=e.timeZone;r===void 0&&(r={});var o=r.format,c=W(W({},u&&{timeZone:u}),o&&aa(a,t,o,s)),f=Gt(r,to,c);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=W(W({},f),{hour:"numeric",minute:"numeric"})),n(i,f)}function Uf(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,u=typeof i=="string"?new Date(i||0):i;try{return wr(e,"date",t,s).format(u)}catch(o){e.onError(new st("Error formatting date.",e.locale,o))}return String(u)}function jf(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,u=typeof i=="string"?new Date(i||0):i;try{return wr(e,"time",t,s).format(u)}catch(o){e.onError(new st("Error formatting time.",e.locale,o))}return String(u)}function $f(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=n[2],u=s===void 0?{}:s,o=e.timeZone,c=e.locale,f=e.onError,d=Gt(u,to,o?{timeZone:o}:{});try{return t(c,d).formatRange(i,a)}catch(h){f(new st("Error formatting date time range.",e.locale,h))}return String(i)}function zf(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,u=typeof i=="string"?new Date(i||0):i;try{return wr(e,"date",t,s).formatToParts(u)}catch(o){e.onError(new st("Error formatting date.",e.locale,o))}return[]}function Yf(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],s=a===void 0?{}:a,u=typeof i=="string"?new Date(i||0):i;try{return wr(e,"time",t,s).formatToParts(u)}catch(o){e.onError(new st("Error formatting time.",e.locale,o))}return[]}var Gf=["style","type","fallback","languageDisplay"];function Vf(e,t,n,r){var i=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new kt(`Intl.DisplayNames is not available in this environment.
|
|
38
38
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
39
|
-
`,
|
|
39
|
+
`,gt.MISSING_INTL_API));var u=Gt(r,Gf);try{return t(i,u).of(n)}catch(o){a(new st("Error formatting display name.",i,o))}}var qf=["type","style"],Za=Date.now();function Wf(e){return"".concat(Za,"_").concat(e,"_").concat(Za)}function Xf(e,t,n,r){r===void 0&&(r={});var i=no(e,t,n,r).reduce(function(a,s){var u=s.value;return typeof u!="string"?a.push(u):typeof a[a.length-1]=="string"?a[a.length-1]+=u:a.push(u),a},[]);return i.length===1?i[0]:i.length===0?"":i}function no(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||a(new kt(`Intl.ListFormat is not available in this environment.
|
|
40
40
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
41
|
-
`,
|
|
41
|
+
`,gt.MISSING_INTL_API));var u=Gt(r,qf);try{var o={},c=n.map(function(f,d){if(typeof f=="object"){var h=Wf(d);return o[h]=f,h}return String(f)});return t(i,u).formatToParts(c).map(function(f){return f.type==="literal"?f:W(W({},f),{value:o[f.value]||f.value})})}catch(f){a(new st("Error formatting list.",i,f))}return n}var Qf=["type"];function Kf(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={}),Intl.PluralRules||a(new kt(`Intl.PluralRules is not available in this environment.
|
|
42
42
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
43
|
-
`,
|
|
43
|
+
`,gt.MISSING_INTL_API));var s=Gt(r,Qf);try{return t(i,s).select(n)}catch(u){a(new st("Error formatting plural.",i,u))}return"other"}var Zf=["numeric","style"];function Jf(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var s=n.format,u=!!s&&aa(i,"relative",s,a)||{},o=Gt(n,Zf,u);return t(r,o)}function ed(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var a=Intl.RelativeTimeFormat;a||e.onError(new kt(`Intl.RelativeTimeFormat is not available in this environment.
|
|
44
44
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
45
|
-
`,
|
|
45
|
+
`,gt.MISSING_INTL_API));try{return Jf(e,t,i).format(n,r)}catch(s){e.onError(new st("Error formatting relative time.",e.locale,s))}return String(n)}var td=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function ro(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var s=n.format,u=s&&aa(i,"number",s,a)||{},o=Gt(n,td,u);return t(r,o)}function nd(e,t,n,r){r===void 0&&(r={});try{return ro(e,t,r).format(n)}catch(i){e.onError(new st("Error formatting number.",e.locale,i))}return String(n)}function rd(e,t,n,r){r===void 0&&(r={});try{return ro(e,t,r).formatToParts(n)}catch(i){e.onError(new st("Error formatting number.",e.locale,i))}return[]}function id(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function ad(e){e.onWarn&&e.defaultRichTextElements&&id(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
46
46
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
47
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function dd(e,t){var n=Yl(t),r=q(q({},wu),e),a=r.locale,i=r.defaultLocale,s=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&s?s(new Oi('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&s&&s(new Oi('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Ul('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),ld(r),q(q({},r),{formatters:n,formatNumber:ud.bind(null,r,n.getNumberFormat),formatNumberToParts:od.bind(null,r,n.getNumberFormat),formatRelativeTime:id.bind(null,r,n.getRelativeTimeFormat),formatDate:Gl.bind(null,r,n.getDateTimeFormat),formatDateToParts:Wl.bind(null,r,n.getDateTimeFormat),formatTime:Vl.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ql.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Xl.bind(null,r,n.getDateTimeFormat),formatPlural:nd.bind(null,r,n.getPluralRules),formatMessage:pa.bind(null,r,n),$t:pa.bind(null,r,n),formatList:ed.bind(null,r,n.getListFormat),formatListToParts:Ru.bind(null,r,n.getListFormat),formatDisplayName:Kl.bind(null,r,n.getDisplayNames)})}function Du(e){lu(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Pu=q(q({},wu),{textComponent:ke.Fragment});function fd(e){return function(t){return e(ke.Children.toArray(t))}}function hd(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var za=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ke.createContext(null)):ke.createContext(null);za.Consumer;var md=za.Provider,pd=md,Ed=za;function Dn(){var e=ke.useContext(Ed);return Du(e),e}var Ea;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Ea||(Ea={}));var ga;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(ga||(ga={}));function Mu(e){var t=function(n){var r=Dn(),a=n.value,i=n.children,s=Er(n,["value","children"]),o=typeof a=="string"?new Date(a||0):a,c=e==="formatDate"?r.formatDateToParts(o,s):r.formatTimeToParts(o,s);return i(c)};return t.displayName=ga[e],t}function Pn(e){var t=function(n){var r=Dn(),a=n.value,i=n.children,s=Er(n,["value","children"]),o=r[e](a,s);if(typeof i=="function")return i(o);var c=r.textComponent||ke.Fragment;return ke.createElement(c,null,o)};return t.displayName=Ea[e],t}function Bu(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Nu(r)?fd(r):r,t},{})}var Di=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var s=Bu(r),o=pa.apply(void 0,dt([e,t,n,s],a,!1));return Array.isArray(o)?ke.Children.toArray(o):o},Pi=function(e,t){var n=e.defaultRichTextElements,r=Er(e,["defaultRichTextElements"]),a=Bu(n),i=dd(q(q(q({},Pu),r),{defaultRichTextElements:a}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return q(q({},i),{formatMessage:Di.bind(null,s,i.formatters),$t:Di.bind(null,s,i.formatters)})};function Pr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var gd=(function(e){rt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=Ou(),n.state={cache:n.cache,intl:Pi(Pr(n.props),n.cache),prevConfig:Pr(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,i=r.cache,s=Pr(n);return hd(a,s)?null:{intl:Pi(s,i),prevConfig:s}},t.prototype.render=function(){return Du(this.state.intl),ke.createElement(pd,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Pu,t})(ke.PureComponent);Pn("formatDate");Pn("formatTime");Pn("formatNumber");Pn("formatList");Pn("formatDisplayName");Mu("formatDate");Mu("formatTime");const Ya=()=>{const e=Dn(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"}),a=e.formatMessage({defaultMessage:"⏳ The chatbot is a little busy at the time. Please try again later.",id:"chatbot.error.api.429"}),i=e.formatMessage({defaultMessage:"Oops ! There has been an error. Please try again later.",id:"chatbot.error.api.500"}),s=e.formatMessage({defaultMessage:"Oups ! The discussion is full. Please start a new one.",id:"chatbot.error.api.409"}),o=e.formatMessage({defaultMessage:"See",id:"chatbot.infobanner.title"}),c=e.formatMessage({defaultMessage:"You have an archived discussion.",id:"chatbot.infobanner.cta"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r,tooManyRequestsTranslation:a,genericErrorTranslation:i,discussionFullErrorTranslation:s,infoBannerTitleTranslation:o,infoBannerExplainationTranslation:c}};function Mi(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 Fu(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Td=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yd={};function Bi(e,t){return(yd.jsx?Td:bd).test(e)}const xd=/[ \t\n\f\r]/g;function Ad(e){return typeof e=="object"?e.type==="text"?Fi(e.value):!1:Fi(e)}function Fi(e){return e.replace(xd,"")===""}class Mn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Mn.prototype.property={};Mn.prototype.normal={};Mn.prototype.space=null;function Hu(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 Mn(n,r,t)}function wn(e){return e.toLowerCase()}class it{constructor(t,n){this.property=t,this.attribute=n}}it.prototype.space=null;it.prototype.boolean=!1;it.prototype.booleanish=!1;it.prototype.overloadedBoolean=!1;it.prototype.number=!1;it.prototype.commaSeparated=!1;it.prototype.spaceSeparated=!1;it.prototype.commaOrSpaceSeparated=!1;it.prototype.mustUseProperty=!1;it.prototype.defined=!1;let _d=0;const ue=jt(),Re=jt(),Uu=jt(),M=jt(),_e=jt(),Zt=jt(),We=jt();function jt(){return 2**++_d}const ba=Object.freeze(Object.defineProperty({__proto__:null,boolean:ue,booleanish:Re,commaOrSpaceSeparated:We,commaSeparated:Zt,number:M,overloadedBoolean:Uu,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),Mr=Object.keys(ba);class Ga extends it{constructor(t,n,r,a){let i=-1;if(super(t,n),Hi(this,"space",a),typeof r=="number")for(;++i<Mr.length;){const s=Mr[i];Hi(this,Mr[i],(r&ba[s])===ba[s])}}}Ga.prototype.defined=!0;function Hi(e,t,n){n&&(e[t]=n)}const Sd={}.hasOwnProperty;function un(e){const t={},n={};let r;for(r in e.properties)if(Sd.call(e.properties,r)){const a=e.properties[r],i=new Ga(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[wn(r)]=r,n[wn(i.attribute)]=r}return new Mn(t,n,e.space)}const ju=un({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}}),$u=un({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zu(e,t){return t in e?e[t]:t}function Yu(e,t){return zu(e,t.toLowerCase())}const Gu=un({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yu,properties:{xmlns:null,xmlnsXLink:null}}),Vu=un({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:_e,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:M,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:_e,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Re,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),Cd=un({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Yu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zt,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:_e,autoFocus:ue,autoPlay:ue,blocking:_e,capture:null,charSet:null,checked:ue,cite:null,className:_e,cols:M,colSpan:null,content:null,contentEditable:Re,controls:ue,controlsList:_e,coords:M|Zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:Uu,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:_e,height:M,hidden:ue,high:M,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:_e,itemRef:_e,itemScope:ue,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,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:ue,optimum:M,pattern:null,ping:_e,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:_e,required:ue,reversed:ue,rows:M,rowSpan:M,sandbox:_e,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:Re,width:M,wrap:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:M,security:null,unselectable:null}}),Id=un({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:zu,properties:{about:We,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:_e,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Zt,g2:Zt,glyphName:Zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:We,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:We,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:We,rev:We,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:We,requiredFeatures:We,requiredFonts:We,requiredFormats:We,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:We,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:We,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:We,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Nd=/^data[-\w.:]+$/i,Ui=/-[a-z]/g,vd=/[A-Z]/g;function br(e,t){const n=wn(t);let r=t,a=it;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Nd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ui,Od);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ui.test(i)){let s=i.replace(vd,wd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Ga}return new a(r,t)}function wd(e){return"-"+e.toLowerCase()}function Od(e){return e.charAt(1).toUpperCase()}const Ld={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"},Bn=Hu([$u,ju,Gu,Vu,Cd],"html"),vt=Hu([$u,ju,Gu,Vu,Id],"svg");function ji(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qu(e){return e.join(" ").trim()}var Gt={},Br,$i;function Rd(){if($i)return Br;$i=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
48
|
-
`,l="/",d="*",f="",h="comment",m="declaration";Br=function(A,N){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];N=N||{};var y=1,R=1;function v(z){var j=z.match(t);j&&(y+=j.length);var Z=z.lastIndexOf(c);R=~Z?z.length-Z:R+z.length}function B(){var z={line:y,column:R};return function(j){return j.position=new S(z),le(),j}}function S(z){this.start=z,this.end={line:y,column:R},this.source=N.source}S.prototype.content=A;function L(z){var j=new Error(N.source+":"+y+":"+R+": "+z);if(j.reason=z,j.filename=N.source,j.line=y,j.column=R,j.source=A,!N.silent)throw j}function K(z){var j=z.exec(A);if(j){var Z=j[0];return v(Z),A=A.slice(Z.length),j}}function le(){K(n)}function se(z){var j;for(z=z||[];j=Y();)j!==!1&&z.push(j);return z}function Y(){var z=B();if(!(l!=A.charAt(0)||d!=A.charAt(1))){for(var j=2;f!=A.charAt(j)&&(d!=A.charAt(j)||l!=A.charAt(j+1));)++j;if(j+=2,f===A.charAt(j-1))return L("End of comment missing");var Z=A.slice(2,j-2);return R+=2,v(Z),A=A.slice(j),R+=2,z({type:h,comment:Z})}}function $(){var z=B(),j=K(r);if(j){if(Y(),!K(a))return L("property missing ':'");var Z=K(i),de=z({type:m,property:x(j[0].replace(e,f)),value:Z?x(Z[0].replace(e,f)):f});return K(s),de}}function F(){var z=[];se(z);for(var j;j=$();)j!==!1&&(z.push(j),se(z));return z}return le(),F()};function x(A){return A?A.replace(o,f):f}return Br}var zi;function kd(){if(zi)return Gt;zi=1;var e=Gt&&Gt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gt,"__esModule",{value:!0});var t=e(Rd());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),o=typeof a=="function";return s.forEach(function(c){if(c.type==="declaration"){var l=c.property,d=c.value;o?a(l,d,c):d&&(i=i||{},i[l]=d)}}),i}return Gt.default=n,Gt}var Dd=kd();const Yi=Fa(Dd),Pd=Yi.default||Yi,Tr=Wu("end"),Et=Wu("start");function Wu(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 Md(e){const t=Et(e),n=Tr(e);if(t&&n)return{start:t,end:n}}function xn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gi(e.position):"start"in e||"end"in e?Gi(e):"line"in e||"column"in e?Ta(e):""}function Ta(e){return Vi(e&&e.line)+":"+Vi(e&&e.column)}function Gi(e){return Ta(e&&e.start)+"-"+Ta(e&&e.end)}function Vi(e){return e&&typeof e=="number"?e:1}class Fe 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 c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const o=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=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=xn(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}}Fe.prototype.file="";Fe.prototype.name="";Fe.prototype.reason="";Fe.prototype.message="";Fe.prototype.stack="";Fe.prototype.column=void 0;Fe.prototype.line=void 0;Fe.prototype.ancestors=void 0;Fe.prototype.cause=void 0;Fe.prototype.fatal=void 0;Fe.prototype.place=void 0;Fe.prototype.ruleId=void 0;Fe.prototype.source=void 0;const Va={}.hasOwnProperty,Bd=new Map,Fd=/[A-Z]/g,Hd=/-([a-z])/g,Ud=new Set(["table","tbody","thead","tfoot","tr"]),jd=new Set(["td","th"]),Xu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $d(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=Qd(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=Xd(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"?vt:Bn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Qu(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Qu(e,t,n){if(t.type==="element")return zd(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Yd(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Vd(e,t,n);if(t.type==="mdxjsEsm")return Gd(e,t);if(t.type==="root")return qd(e,t,n);if(t.type==="text")return Wd(e,t)}function zd(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=vt,e.schema=a),e.ancestors.push(t);const i=Zu(e,t.tagName,!1),s=Kd(e,t);let o=Wa(e,t);return Ud.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!Ad(c):!0})),Ku(e,s,i,t),qa(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function Yd(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)}On(e,t.position)}function Gd(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);On(e,t.position)}function Vd(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=vt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Zu(e,t.name,!0),s=Zd(e,t),o=Wa(e,t);return Ku(e,s,i,t),qa(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function qd(e,t,n){const r={};return qa(r,Wa(e,t)),e.create(t,e.Fragment,r,n)}function Wd(e,t){return t.value}function Ku(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function qa(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Xd(e,t,n){return r;function r(a,i,s,o){const l=Array.isArray(s.children)?n:t;return o?l(i,s,o):l(i,s)}}function Qd(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),c=Et(r);return t(a,i,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Kd(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Va.call(t.properties,a)){const i=Jd(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&jd.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Zd(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 o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else On(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 o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else On(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Wa(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Bd;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const l=a.get(c)||0;s=c+"-"+l,a.set(c,l+1)}}const o=Qu(e,i,s);o!==void 0&&n.push(o)}return n}function Jd(e,t,n){const r=br(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Fu(n):qu(n)),r.property==="style"){let a=typeof n=="object"?n:e0(e,String(n));return e.stylePropertyNameCase==="css"&&(a=t0(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Ld[r.property]||r.property:r.attribute,n]}}function e0(e,t){const n={};try{Pd(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,s=new Fe("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=Xu+"#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(Hd,r0)),n[s]=i}}function Zu(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 o=Bi(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=Bi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Va.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);On(e)}function On(e,t){const n=new Fe("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=Xu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function t0(e){const t={};let n;for(n in e)Va.call(e,n)&&(t[n0(n)]=e[n]);return t}function n0(e){let t=e.replace(Fd,a0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function r0(e,t){return t.toUpperCase()}function a0(e){return"-"+e.toLowerCase()}const Fr={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"]},i0={};function s0(e,t){const n=i0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ju(e,r,a)}function Ju(e,t,n){if(u0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qi(e.children,t,n)}return Array.isArray(e)?qi(e,t,n):""}function qi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Ju(e[a],t,n);return r.join("")}function u0(e){return!!(e&&typeof e=="object")}const Wi=document.createElement("i");function Xa(e){const t="&"+e+";";Wi.innerHTML=t;const n=Wi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function pt(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 Je(e,t){return e.length>0?(pt(e,e.length,0,t),e):t}const Xi={}.hasOwnProperty;function o0(e){const t={};let n=-1;for(;++n<e.length;)c0(t,e[n]);return t}function c0(e,t){let n;for(n in t){const a=(Xi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Xi.call(a,s)||(a[s]=[]);const o=i[s];l0(a[s],Array.isArray(o)?o:o?[o]:[])}}}function l0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);pt(e,0,0,r)}function eo(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)}function Jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ht=wt(/[A-Za-z]/),Xe=wt(/[\dA-Za-z]/),d0=wt(/[#-'*+\--9=?A-Z^-~]/);function ya(e){return e!==null&&(e<32||e===127)}const xa=wt(/\d/),f0=wt(/[\dA-Fa-f]/),h0=wt(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function Ve(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}const m0=wt(new RegExp("\\p{P}|\\p{S}","u")),p0=wt(/\s/);function wt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function on(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Xe(e.charCodeAt(n+1))&&Xe(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 o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),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 Se(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(c){return pe(c)?(e.enter(n),o(c)):t(c)}function o(c){return pe(c)&&i++<a?(e.consume(c),o):(e.exit(n),t(c))}}const E0={tokenize:g0};function g0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ne(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const b0={tokenize:T0},Qi={tokenize:y0};function T0(e){const t=this,n=[];let r=0,a,i,s;return o;function o(v){if(r<n.length){const B=n[r];return t.containerState=B[1],e.attempt(B[0].continuation,c,l)(v)}return l(v)}function c(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&R();const B=t.events.length;let S=B,L;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){L=t.events[S][1].end;break}y(r);let K=B;for(;K<t.events.length;)t.events[K][1].end=Object.assign({},L),K++;return pt(t.events,S+1,0,t.events.slice(B)),t.events.length=K,l(v)}return o(v)}function l(v){if(r===n.length){if(!a)return h(v);if(a.currentConstruct&&a.currentConstruct.concrete)return x(v);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qi,d,f)(v)}function d(v){return a&&R(),y(r),h(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(v)}function h(v){return t.containerState={},e.attempt(Qi,m,x)(v)}function m(v){return r++,n.push([t.currentConstruct,t.containerState]),h(v)}function x(v){if(v===null){a&&R(),y(0),e.consume(v);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),A(v)}function A(v){if(v===null){N(e.exit("chunkFlow"),!0),y(0),e.consume(v);return}return ne(v)?(e.consume(v),N(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(v),A)}function N(v,B){const S=t.sliceStream(v);if(B&&S.push(null),v.previous=i,i&&(i.next=v),i=v,a.defineSkip(v.start),a.write(S),t.parser.lazy[v.start.line]){let L=a.events.length;for(;L--;)if(a.events[L][1].start.offset<s&&(!a.events[L][1].end||a.events[L][1].end.offset>s))return;const K=t.events.length;let le=K,se,Y;for(;le--;)if(t.events[le][0]==="exit"&&t.events[le][1].type==="chunkFlow"){if(se){Y=t.events[le][1].end;break}se=!0}for(y(r),L=K;L<t.events.length;)t.events[L][1].end=Object.assign({},Y),L++;pt(t.events,le+1,0,t.events.slice(K)),t.events.length=L}}function y(v){let B=n.length;for(;B-- >v;){const S=n[B];t.containerState=S[1],S[0].exit.call(t,e)}n.length=v}function R(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function y0(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ki(e){if(e===null||Ve(e)||p0(e))return 1;if(m0(e))return 2}function Qa(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 Aa={name:"attention",tokenize:A0,resolveAll:x0};function x0(e,t){let n=-1,r,a,i,s,o,c,l,d;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;c=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 f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Zi(f,-c),Zi(h,c),s={type:c>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:c>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Je(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Je(l,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=Je(l,Qa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Je(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,l=Je(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,pt(e,r-1,n-r+3,l),n=r+l.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function A0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Ki(r);let i;return s;function s(c){return i=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===i)return e.consume(c),o;const l=e.exit("attentionSequence"),d=Ki(c),f=!d||d===2&&a||n.includes(c),h=!a||a===2&&d||n.includes(r);return l._open=!!(i===42?f:f&&(a||!h)),l._close=!!(i===42?h:h&&(d||!f)),t(c)}}function Zi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _0={name:"autolink",tokenize:S0};function S0(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return ht(m)?(e.consume(m),s):l(m)}function s(m){return m===43||m===45||m===46||Xe(m)?(r=1,o(m)):l(m)}function o(m){return m===58?(e.consume(m),r=0,c):(m===43||m===45||m===46||Xe(m))&&r++<32?(e.consume(m),o):(r=0,l(m))}function c(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||ya(m)?n(m):(e.consume(m),c)}function l(m){return m===64?(e.consume(m),d):d0(m)?(e.consume(m),l):n(m)}function d(m){return Xe(m)?f(m):n(m)}function f(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||Xe(m))&&r++<63){const x=m===45?h:f;return e.consume(m),x}return n(m)}}const yr={tokenize:C0,partial:!0};function C0(e,t,n){return r;function r(i){return pe(i)?Se(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ne(i)?t(i):n(i)}}const to={name:"blockQuote",tokenize:I0,continuation:{tokenize:N0},exit:v0};function I0(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return pe(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function N0(e,t,n){const r=this;return a;function a(s){return pe(s)?Se(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(to,t,n)(s)}}function v0(e){e.exit("blockQuote")}const no={name:"characterEscape",tokenize:w0};function w0(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 h0(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const ro={name:"characterReference",tokenize:O0};function O0(e,t,n){const r=this;let a=0,i,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,s=Xe,d(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=f0,d):(e.enter("characterReferenceValue"),i=7,s=xa,d(f))}function d(f){if(f===59&&a){const h=e.exit("characterReferenceValue");return s===Xe&&!Xa(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<i?(e.consume(f),d):n(f)}}const Ji={tokenize:R0,partial:!0},es={name:"codeFenced",tokenize:L0,concrete:!0};function L0(e,t,n){const r=this,a={tokenize:S,partial:!0};let i=0,s=0,o;return c;function c(L){return l(L)}function l(L){const K=r.events[r.events.length-1];return i=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,o=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(L)}function d(L){return L===o?(s++,e.consume(L),d):s<3?n(L):(e.exit("codeFencedFenceSequence"),pe(L)?Se(e,f,"whitespace")(L):f(L))}function f(L){return L===null||ne(L)?(e.exit("codeFencedFence"),r.interrupt?t(L):e.check(Ji,A,B)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(L))}function h(L){return L===null||ne(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(L)):pe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,m,"whitespace")(L)):L===96&&L===o?n(L):(e.consume(L),h)}function m(L){return L===null||ne(L)?f(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||ne(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(L)):L===96&&L===o?n(L):(e.consume(L),x)}function A(L){return e.attempt(a,B,N)(L)}function N(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),y}function y(L){return i>0&&pe(L)?Se(e,R,"linePrefix",i+1)(L):R(L)}function R(L){return L===null||ne(L)?e.check(Ji,A,B)(L):(e.enter("codeFlowValue"),v(L))}function v(L){return L===null||ne(L)?(e.exit("codeFlowValue"),R(L)):(e.consume(L),v)}function B(L){return e.exit("codeFenced"),t(L)}function S(L,K,le){let se=0;return Y;function Y(Z){return L.enter("lineEnding"),L.consume(Z),L.exit("lineEnding"),$}function $(Z){return L.enter("codeFencedFence"),pe(Z)?Se(L,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):F(Z)}function F(Z){return Z===o?(L.enter("codeFencedFenceSequence"),z(Z)):le(Z)}function z(Z){return Z===o?(se++,L.consume(Z),z):se>=s?(L.exit("codeFencedFenceSequence"),pe(Z)?Se(L,j,"whitespace")(Z):j(Z)):le(Z)}function j(Z){return Z===null||ne(Z)?(L.exit("codeFencedFence"),K(Z)):le(Z)}}}function R0(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 Hr={name:"codeIndented",tokenize:D0},k0={tokenize:P0,partial:!0};function D0(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),Se(e,i,"linePrefix",5)(l)}function i(l){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?c(l):ne(l)?e.attempt(k0,s,c)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ne(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function c(l){return e.exit("codeIndented"),t(l)}}function P0(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Se(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ne(s)?a(s):n(s)}}const M0={name:"codeText",tokenize:H0,resolve:B0,previous:F0};function B0(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 F0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function H0(e,t,n){let r=0,a,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(i=e.enter("codeTextSequence"),a=0,d(f)):ne(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ne(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function d(f){return f===96?(e.consume(f),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",l(f))}}function ao(e){const t={};let n=-1,r,a,i,s,o,c,l;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,U0(e,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(s=e[i],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(a&&(e[a][1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},e[a][1].start),o=e.slice(a,n),o.unshift(r),pt(e,a,n-a+1,o))}}return!l}function U0(e,t){const n=e[t][1],r=e[t][2];let a=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),o=s.events,c=[],l={};let d,f,h=-1,m=n,x=0,A=0;const N=[A];for(;m;){for(;e[++a][1]!==m;);i.push(a),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),f&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(A=h+1,N.push(A),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):N.pop(),h=N.length;h--;){const y=o.slice(N[h],N[h+1]),R=i.pop();c.unshift([R,R+y.length-1]),pt(e,R,2,y)}for(h=-1;++h<c.length;)l[x+c[h][0]]=x+c[h][1],x+=c[h][1]-c[h][0]-1;return l}const j0={tokenize:Y0,resolve:z0},$0={tokenize:G0,partial:!0};function z0(e){return ao(e),e}function Y0(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ne(o)?e.check($0,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function G0(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Se(e,i,"linePrefix")}function i(s){if(s===null||ne(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function io(e,t,n,r,a,i,s,o,c){const l=c||Number.POSITIVE_INFINITY;let d=0;return f;function f(y){return y===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(y),e.exit(i),h):y===null||y===32||y===41||ya(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),A(y))}function h(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),h(y)):y===null||y===60||ne(y)?n(y):(e.consume(y),y===92?x:m)}function x(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function A(y){return!d&&(y===null||y===41||Ve(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):d<l&&y===40?(e.consume(y),d++,A):y===41?(e.consume(y),d--,A):y===null||y===32||y===40||ya(y)?n(y):(e.consume(y),y===92?N:A)}function N(y){return y===40||y===41||y===92?(e.consume(y),A):A(y)}}function so(e,t,n,r,a,i){const s=this;let o=0,c;return l;function l(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),d}function d(m){return o>999||m===null||m===91||m===93&&!c||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||ne(m)||o++>999?(e.exit("chunkString"),d(m)):(e.consume(m),c||(c=!pe(m)),m===92?h:f)}function h(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}}function uo(e,t,n,r,a,i){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(a),e.consume(h),e.exit(a),s=h===40?41:h,c):n(h)}function c(h){return h===s?(e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):(e.enter(i),l(h))}function l(h){return h===s?(e.exit(i),c(s)):h===null?n(h):ne(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Se(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===s||h===null||ne(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?f:d)}function f(h){return h===s||h===92?(e.consume(h),d):d(h)}}function An(e,t){let n;return r;function r(a){return ne(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):pe(a)?Se(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const V0={name:"definition",tokenize:W0},q0={tokenize:X0,partial:!0};function W0(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return so.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=Jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),c):n(m)}function c(m){return Ve(m)?An(e,l)(m):l(m)}function l(m){return io(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(q0,f,f)(m)}function f(m){return pe(m)?Se(e,h,"whitespace")(m):h(m)}function h(m){return m===null||ne(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function X0(e,t,n){return r;function r(o){return Ve(o)?An(e,a)(o):n(o)}function a(o){return uo(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return pe(o)?Se(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ne(o)?t(o):n(o)}}const Q0={name:"hardBreakEscape",tokenize:K0};function K0(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ne(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Z0={name:"headingAtx",tokenize:ef,resolve:J0};function J0(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"},pt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function ef(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Ve(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||ne(d)?(e.exit("atxHeading"),t(d)):pe(d)?Se(e,o,"whitespace")(d):(e.enter("atxHeadingText"),l(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),o(d))}function l(d){return d===null||d===35||Ve(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),l)}}const tf=["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"],ts=["pre","script","style","textarea"],nf={name:"htmlFlow",tokenize:uf,resolveTo:sf,concrete:!0},rf={tokenize:cf,partial:!0},af={tokenize:of,partial:!0};function sf(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 uf(e,t,n){const r=this;let a,i,s,o,c;return l;function l(b){return d(b)}function d(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),f}function f(b){return b===33?(e.consume(b),h):b===47?(e.consume(b),i=!0,A):b===63?(e.consume(b),a=3,r.interrupt?t:p):ht(b)?(e.consume(b),s=String.fromCharCode(b),N):n(b)}function h(b){return b===45?(e.consume(b),a=2,m):b===91?(e.consume(b),a=5,o=0,x):ht(b)?(e.consume(b),a=4,r.interrupt?t:p):n(b)}function m(b){return b===45?(e.consume(b),r.interrupt?t:p):n(b)}function x(b){const V="CDATA[";return b===V.charCodeAt(o++)?(e.consume(b),o===V.length?r.interrupt?t:F:x):n(b)}function A(b){return ht(b)?(e.consume(b),s=String.fromCharCode(b),N):n(b)}function N(b){if(b===null||b===47||b===62||Ve(b)){const V=b===47,ee=s.toLowerCase();return!V&&!i&&ts.includes(ee)?(a=1,r.interrupt?t(b):F(b)):tf.includes(s.toLowerCase())?(a=6,V?(e.consume(b),y):r.interrupt?t(b):F(b)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?R(b):v(b))}return b===45||Xe(b)?(e.consume(b),s+=String.fromCharCode(b),N):n(b)}function y(b){return b===62?(e.consume(b),r.interrupt?t:F):n(b)}function R(b){return pe(b)?(e.consume(b),R):Y(b)}function v(b){return b===47?(e.consume(b),Y):b===58||b===95||ht(b)?(e.consume(b),B):pe(b)?(e.consume(b),v):Y(b)}function B(b){return b===45||b===46||b===58||b===95||Xe(b)?(e.consume(b),B):S(b)}function S(b){return b===61?(e.consume(b),L):pe(b)?(e.consume(b),S):v(b)}function L(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),c=b,K):pe(b)?(e.consume(b),L):le(b)}function K(b){return b===c?(e.consume(b),c=null,se):b===null||ne(b)?n(b):(e.consume(b),K)}function le(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Ve(b)?S(b):(e.consume(b),le)}function se(b){return b===47||b===62||pe(b)?v(b):n(b)}function Y(b){return b===62?(e.consume(b),$):n(b)}function $(b){return b===null||ne(b)?F(b):pe(b)?(e.consume(b),$):n(b)}function F(b){return b===45&&a===2?(e.consume(b),de):b===60&&a===1?(e.consume(b),ye):b===62&&a===4?(e.consume(b),H):b===63&&a===3?(e.consume(b),p):b===93&&a===5?(e.consume(b),De):ne(b)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(rf,W,z)(b)):b===null||ne(b)?(e.exit("htmlFlowData"),z(b)):(e.consume(b),F)}function z(b){return e.check(af,j,W)(b)}function j(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Z}function Z(b){return b===null||ne(b)?z(b):(e.enter("htmlFlowData"),F(b))}function de(b){return b===45?(e.consume(b),p):F(b)}function ye(b){return b===47?(e.consume(b),s="",ve):F(b)}function ve(b){if(b===62){const V=s.toLowerCase();return ts.includes(V)?(e.consume(b),H):F(b)}return ht(b)&&s.length<8?(e.consume(b),s+=String.fromCharCode(b),ve):F(b)}function De(b){return b===93?(e.consume(b),p):F(b)}function p(b){return b===62?(e.consume(b),H):b===45&&a===2?(e.consume(b),p):F(b)}function H(b){return b===null||ne(b)?(e.exit("htmlFlowData"),W(b)):(e.consume(b),H)}function W(b){return e.exit("htmlFlow"),t(b)}}function of(e,t,n){const r=this;return a;function a(s){return ne(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 cf(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(yr,t,n)}}const lf={name:"htmlText",tokenize:df};function df(e,t,n){const r=this;let a,i,s;return o;function o(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),c}function c(p){return p===33?(e.consume(p),l):p===47?(e.consume(p),S):p===63?(e.consume(p),v):ht(p)?(e.consume(p),le):n(p)}function l(p){return p===45?(e.consume(p),d):p===91?(e.consume(p),i=0,x):ht(p)?(e.consume(p),R):n(p)}function d(p){return p===45?(e.consume(p),m):n(p)}function f(p){return p===null?n(p):p===45?(e.consume(p),h):ne(p)?(s=f,ye(p)):(e.consume(p),f)}function h(p){return p===45?(e.consume(p),m):f(p)}function m(p){return p===62?de(p):p===45?h(p):f(p)}function x(p){const H="CDATA[";return p===H.charCodeAt(i++)?(e.consume(p),i===H.length?A:x):n(p)}function A(p){return p===null?n(p):p===93?(e.consume(p),N):ne(p)?(s=A,ye(p)):(e.consume(p),A)}function N(p){return p===93?(e.consume(p),y):A(p)}function y(p){return p===62?de(p):p===93?(e.consume(p),y):A(p)}function R(p){return p===null||p===62?de(p):ne(p)?(s=R,ye(p)):(e.consume(p),R)}function v(p){return p===null?n(p):p===63?(e.consume(p),B):ne(p)?(s=v,ye(p)):(e.consume(p),v)}function B(p){return p===62?de(p):v(p)}function S(p){return ht(p)?(e.consume(p),L):n(p)}function L(p){return p===45||Xe(p)?(e.consume(p),L):K(p)}function K(p){return ne(p)?(s=K,ye(p)):pe(p)?(e.consume(p),K):de(p)}function le(p){return p===45||Xe(p)?(e.consume(p),le):p===47||p===62||Ve(p)?se(p):n(p)}function se(p){return p===47?(e.consume(p),de):p===58||p===95||ht(p)?(e.consume(p),Y):ne(p)?(s=se,ye(p)):pe(p)?(e.consume(p),se):de(p)}function Y(p){return p===45||p===46||p===58||p===95||Xe(p)?(e.consume(p),Y):$(p)}function $(p){return p===61?(e.consume(p),F):ne(p)?(s=$,ye(p)):pe(p)?(e.consume(p),$):se(p)}function F(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),a=p,z):ne(p)?(s=F,ye(p)):pe(p)?(e.consume(p),F):(e.consume(p),j)}function z(p){return p===a?(e.consume(p),a=void 0,Z):p===null?n(p):ne(p)?(s=z,ye(p)):(e.consume(p),z)}function j(p){return p===null||p===34||p===39||p===60||p===61||p===96?n(p):p===47||p===62||Ve(p)?se(p):(e.consume(p),j)}function Z(p){return p===47||p===62||Ve(p)?se(p):n(p)}function de(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),t):n(p)}function ye(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ve}function ve(p){return pe(p)?Se(e,De,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):De(p)}function De(p){return e.enter("htmlTextData"),s(p)}}const Ka={name:"labelEnd",tokenize:gf,resolveTo:Ef,resolveAll:pf},ff={tokenize:bf},hf={tokenize:Tf},mf={tokenize:yf};function pf(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 Ef(e,t){let n=e.length,r=0,a,i,s,o;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 c={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[s][1].end)},d={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[s-2][1].start)};return o=[["enter",c,t],["enter",l,t]],o=Je(o,e.slice(i+1,i+r+3)),o=Je(o,[["enter",d,t]]),o=Je(o,Qa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Je(o,[["exit",d,t],e[s-2],e[s-1],["exit",l,t]]),o=Je(o,e.slice(s+1)),o=Je(o,[["exit",c,t]]),pt(e,i,e.length,o),e}function gf(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 o;function o(h){return i?i._inactive?f(h):(s=r.parser.defined.includes(Jt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),c):n(h)}function c(h){return h===40?e.attempt(ff,d,s?d:f)(h):h===91?e.attempt(hf,d,s?l:f)(h):s?d(h):f(h)}function l(h){return e.attempt(mf,d,f)(h)}function d(h){return t(h)}function f(h){return i._balanced=!0,n(h)}}function bf(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return Ve(f)?An(e,i)(f):i(f)}function i(f){return f===41?d(f):io(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Ve(f)?An(e,c)(f):d(f)}function o(f){return n(f)}function c(f){return f===34||f===39||f===40?uo(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function l(f){return Ve(f)?An(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Tf(e,t,n){const r=this;return a;function a(o){return so.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function yf(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 xf={name:"labelStartImage",tokenize:Af,resolveAll:Ka.resolveAll};function Af(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const _f={name:"labelStartLink",tokenize:Sf,resolveAll:Ka.resolveAll};function Sf(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 Ur={name:"lineEnding",tokenize:Cf};function Cf(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const er={name:"thematicBreak",tokenize:If};function If(e,t,n){let r=0,a;return i;function i(l){return e.enter("thematicBreak"),s(l)}function s(l){return a=l,o(l)}function o(l){return l===a?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||ne(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===a?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),pe(l)?Se(e,o,"whitespace")(l):o(l))}}const Ye={name:"list",tokenize:wf,continuation:{tokenize:Of},exit:Rf},Nf={tokenize:kf,partial:!0},vf={tokenize:Lf,partial:!0};function wf(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 o;function o(m){const x=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:xa(m)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(er,n,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(m)}return n(m)}function c(m){return xa(m)&&++s<10?(e.consume(m),c):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):n(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(yr,r.interrupt?n:d,e.attempt(Nf,h,f))}function d(m){return r.containerState.initialBlankLine=!0,i++,h(m)}function f(m){return pe(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Of(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yr,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!pe(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(vf,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(Ye,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Lf(e,t,n){const r=this;return Se(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 Rf(e){e.exit(this.containerState.type)}function kf(e,t,n){const r=this;return Se(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!pe(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const ns={name:"setextUnderline",tokenize:Pf,resolveTo:Df};function Df(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 Pf(e,t,n){const r=this;let a;return i;function i(l){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===a?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),pe(l)?Se(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||ne(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Mf={tokenize:Bf};function Bf(e){const t=this,n=e.attempt(yr,r,e.attempt(this.parser.constructs.flowInitial,a,Se(e,e.attempt(this.parser.constructs.flow,a,e.attempt(j0,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 Ff={resolveAll:co()},Hf=oo("string"),Uf=oo("text");function oo(e){return{tokenize:t,resolveAll:co(e==="text"?jf:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(d){return l(d)?i(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return l(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function l(d){if(d===null)return!0;const f=a[d];let h=-1;if(f)for(;++h<f.length;){const m=f[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function co(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 jf(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,o=0,c;for(;i--;){const l=a[i];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)c=!0,o++;else if(l!==-1){i++;break}}if(o){const l={type:n===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},l.start),r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function $f(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=[],o=[];const c={consume:R,enter:v,exit:B,attempt:K(S),check:K(L),interrupt:K(L,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:h,now:x,defineSkip:A,write:f};let d=t.tokenize.call(l,c);return t.resolveAll&&i.push(t),l;function f($){return s=Je(s,$),N(),s[s.length-1]!==null?[]:(le(t,0),l.events=Qa(i,l.events,l),l.events)}function h($,F){return Yf(m($),F)}function m($){return zf(s,$)}function x(){const{line:$,column:F,offset:z,_index:j,_bufferIndex:Z}=r;return{line:$,column:F,offset:z,_index:j,_bufferIndex:Z}}function A($){a[$.line]=$.column,Y()}function N(){let $;for(;r._index<s.length;){const F=s[r._index];if(typeof F=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<F.length;)y(F.charCodeAt(r._bufferIndex));else y(F)}}function y($){d=d($)}function R($){ne($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,Y()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=$}function v($,F){const z=F||{};return z.type=$,z.start=x(),l.events.push(["enter",z,l]),o.push(z),z}function B($){const F=o.pop();return F.end=x(),l.events.push(["exit",F,l]),F}function S($,F){le($,F.from)}function L($,F){F.restore()}function K($,F){return z;function z(j,Z,de){let ye,ve,De,p;return Array.isArray(j)?W(j):"tokenize"in j?W([j]):H(j);function H(G){return J;function J(te){const re=te!==null&&G[te],X=te!==null&&G.null,me=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(X)?X:X?[X]:[]];return W(me)(te)}}function W(G){return ye=G,ve=0,G.length===0?de:b(G[ve])}function b(G){return J;function J(te){return p=se(),De=G,G.partial||(l.currentConstruct=G),G.name&&l.parser.constructs.disable.null.includes(G.name)?ee():G.tokenize.call(F?Object.assign(Object.create(l),F):l,c,V,ee)(te)}}function V(G){return $(De,p),Z}function ee(G){return p.restore(),++ve<ye.length?b(ye[ve]):de}}}function le($,F){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&pt(l.events,F,l.events.length-F,$.resolve(l.events.slice(F),l)),$.resolveTo&&(l.events=$.resolveTo(l.events,l))}function se(){const $=x(),F=l.previous,z=l.currentConstruct,j=l.events.length,Z=Array.from(o);return{restore:de,from:j};function de(){r=$,l.previous=F,l.currentConstruct=z,l.events.length=j,o=Z,Y()}}function Y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function zf(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 o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function Yf(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=`
|
|
47
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function sd(e,t){var n=Hf(t),r=W(W({},Ju),e),i=r.locale,a=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new Xa('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new Xa('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Pf('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),ad(r),W(W({},r),{formatters:n,formatNumber:nd.bind(null,r,n.getNumberFormat),formatNumberToParts:rd.bind(null,r,n.getNumberFormat),formatRelativeTime:ed.bind(null,r,n.getRelativeTimeFormat),formatDate:Uf.bind(null,r,n.getDateTimeFormat),formatDateToParts:zf.bind(null,r,n.getDateTimeFormat),formatTime:jf.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:$f.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Yf.bind(null,r,n.getDateTimeFormat),formatPlural:Kf.bind(null,r,n.getPluralRules),formatMessage:Oi.bind(null,r,n),$t:Oi.bind(null,r,n),formatList:Xf.bind(null,r,n.getListFormat),formatListToParts:no.bind(null,r,n.getListFormat),formatDisplayName:Vf.bind(null,r,n.getDisplayNames)})}function io(e){Du(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var ao=W(W({},Ju),{textComponent:De.Fragment});function ud(e){return function(t){return e(De.Children.toArray(t))}}function od(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a<i;a++){var s=n[a];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var sa=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=De.createContext(null)):De.createContext(null);sa.Consumer;var ld=sa.Provider,cd=ld,fd=sa;function Hn(){var e=De.useContext(fd);return io(e),e}var Li;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Li||(Li={}));var Ri;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ri||(Ri={}));function so(e){var t=function(n){var r=Hn(),i=n.value,a=n.children,s=Sr(n,["value","children"]),u=typeof i=="string"?new Date(i||0):i,o=e==="formatDate"?r.formatDateToParts(u,s):r.formatTimeToParts(u,s);return a(o)};return t.displayName=Ri[e],t}function Un(e){var t=function(n){var r=Hn(),i=n.value,a=n.children,s=Sr(n,["value","children"]),u=r[e](i,s);if(typeof a=="function")return a(u);var o=r.textComponent||De.Fragment;return De.createElement(o,null,u)};return t.displayName=Li[e],t}function uo(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=Ku(r)?ud(r):r,t},{})}var Ja=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=uo(r),u=Oi.apply(void 0,mt([e,t,n,s],i,!1));return Array.isArray(u)?De.Children.toArray(u):u},es=function(e,t){var n=e.defaultRichTextElements,r=Sr(e,["defaultRichTextElements"]),i=uo(n),a=sd(W(W(W({},ao),r),{defaultRichTextElements:i}),t),s={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i};return W(W({},a),{formatMessage:Ja.bind(null,s,a.formatters),$t:Ja.bind(null,s,a.formatters)})};function qr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var dd=(function(e){at(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=eo(),n.state={cache:n.cache,intl:es(qr(n.props),n.cache),prevConfig:qr(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,a=r.cache,s=qr(n);return od(i,s)?null:{intl:es(s,a),prevConfig:s}},t.prototype.render=function(){return io(this.state.intl),De.createElement(cd,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=ao,t})(De.PureComponent);Un("formatDate");Un("formatTime");Un("formatNumber");Un("formatList");Un("formatDisplayName");so("formatDate");so("formatTime");const ua=()=>{const e=Hn(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"}),i=e.formatMessage({defaultMessage:"⏳ The chatbot is a little busy at the time. Please try again later.",id:"chatbot.error.api.429"}),a=e.formatMessage({defaultMessage:"Oops ! There has been an error. Please try again later.",id:"chatbot.error.api.500"}),s=e.formatMessage({defaultMessage:"Oups ! The discussion is full. Please start a new one.",id:"chatbot.error.api.409"}),u=e.formatMessage({defaultMessage:"See",id:"chatbot.infobanner.title"}),o=e.formatMessage({defaultMessage:"You have an archived discussion.",id:"chatbot.infobanner.cta"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r,tooManyRequestsTranslation:i,genericErrorTranslation:a,discussionFullErrorTranslation:s,infoBannerTitleTranslation:u,infoBannerExplainationTranslation:o}};function ts(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function oo(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const hd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,md=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pd={};function ns(e,t){return(pd.jsx?md:hd).test(e)}const gd=/[ \t\n\f\r]/g;function bd(e){return typeof e=="object"?e.type==="text"?rs(e.value):!1:rs(e)}function rs(e){return e.replace(gd,"")===""}class jn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function lo(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new jn(n,r,t)}function Dn(e){return e.toLowerCase()}class ut{constructor(t,n){this.property=t,this.attribute=n}}ut.prototype.space=null;ut.prototype.boolean=!1;ut.prototype.booleanish=!1;ut.prototype.overloadedBoolean=!1;ut.prototype.number=!1;ut.prototype.commaSeparated=!1;ut.prototype.spaceSeparated=!1;ut.prototype.commaOrSpaceSeparated=!1;ut.prototype.mustUseProperty=!1;ut.prototype.defined=!1;let Ed=0;const oe=Vt(),Re=Vt(),co=Vt(),F=Vt(),Se=Vt(),an=Vt(),Qe=Vt();function Vt(){return 2**++Ed}const Di=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Re,commaOrSpaceSeparated:Qe,commaSeparated:an,number:F,overloadedBoolean:co,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Wr=Object.keys(Di);class oa extends ut{constructor(t,n,r,i){let a=-1;if(super(t,n),is(this,"space",i),typeof r=="number")for(;++a<Wr.length;){const s=Wr[a];is(this,Wr[a],(r&Di[s])===Di[s])}}}oa.prototype.defined=!0;function is(e,t,n){n&&(e[t]=n)}const Td={}.hasOwnProperty;function dn(e){const t={},n={};let r;for(r in e.properties)if(Td.call(e.properties,r)){const i=e.properties[r],a=new oa(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Dn(r)]=r,n[Dn(a.attribute)]=r}return new jn(t,n,e.space)}const fo=dn({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}}),ho=dn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function mo(e,t){return t in e?e[t]:t}function po(e,t){return mo(e,t.toLowerCase())}const go=dn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:po,properties:{xmlns:null,xmlnsXLink:null}}),bo=dn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:Se,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:F,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:Se,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:Re,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null}}),xd=dn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:po,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:an,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Se,autoFocus:oe,autoPlay:oe,blocking:Se,capture:null,charSet:null,checked:oe,cite:null,className:Se,cols:F,colSpan:null,content:null,contentEditable:Re,controls:oe,controlsList:Se,coords:F|an,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:co,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Se,height:F,hidden:oe,high:F,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Se,itemRef:Se,itemScope:oe,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:F,pattern:null,ping:Se,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Se,required:oe,reversed:oe,rows:F,rowSpan:F,sandbox:Se,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Re,width:F,wrap:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:F,security:null,unselectable:null}}),yd=dn({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:mo,properties:{about:Qe,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:Se,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:an,g2:an,glyphName:an,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,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:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ad=/^data[-\w.:]+$/i,as=/-[a-z]/g,_d=/[A-Z]/g;function Ir(e,t){const n=Dn(t);let r=t,i=ut;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ad.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(as,Sd);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!as.test(a)){let s=a.replace(_d,Cd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=oa}return new i(r,t)}function Cd(e){return"-"+e.toLowerCase()}function Sd(e){return e.charAt(1).toUpperCase()}const wd={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"},$n=lo([ho,fo,go,bo,xd],"html"),Ot=lo([ho,fo,go,bo,yd],"svg");function ss(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Eo(e){return e.join(" ").trim()}var Qt={},Xr,us;function Id(){if(us)return Xr;us=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,o=`
|
|
48
|
+
`,c="/",f="*",d="",h="comment",m="declaration";Xr=function(A,_){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];_=_||{};var y=1,v=1;function w(Y){var z=Y.match(t);z&&(y+=z.length);var Z=Y.lastIndexOf(o);v=~Z?Y.length-Z:v+Y.length}function D(){var Y={line:y,column:v};return function(z){return z.position=new C(Y),ue(),z}}function C(Y){this.start=Y,this.end={line:y,column:v},this.source=_.source}C.prototype.content=A;function k(Y){var z=new Error(_.source+":"+y+":"+v+": "+Y);if(z.reason=Y,z.filename=_.source,z.line=y,z.column=v,z.source=A,!_.silent)throw z}function q(Y){var z=Y.exec(A);if(z){var Z=z[0];return w(Z),A=A.slice(Z.length),z}}function ue(){q(n)}function ae(Y){var z;for(Y=Y||[];z=S();)z!==!1&&Y.push(z);return Y}function S(){var Y=D();if(!(c!=A.charAt(0)||f!=A.charAt(1))){for(var z=2;d!=A.charAt(z)&&(f!=A.charAt(z)||c!=A.charAt(z+1));)++z;if(z+=2,d===A.charAt(z-1))return k("End of comment missing");var Z=A.slice(2,z-2);return v+=2,w(Z),A=A.slice(z),v+=2,Y({type:h,comment:Z})}}function $(){var Y=D(),z=q(r);if(z){if(S(),!q(i))return k("property missing ':'");var Z=q(a),de=Y({type:m,property:E(z[0].replace(e,d)),value:Z?E(Z[0].replace(e,d)):d});return q(s),de}}function H(){var Y=[];ae(Y);for(var z;z=$();)z!==!1&&(Y.push(z),ae(Y));return Y}return ue(),H()};function E(A){return A?A.replace(u,d):d}return Xr}var os;function vd(){if(os)return Qt;os=1;var e=Qt&&Qt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qt,"__esModule",{value:!0});var t=e(Id());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),u=typeof i=="function";return s.forEach(function(o){if(o.type==="declaration"){var c=o.property,f=o.value;u?i(c,f,o):f&&(a=a||{},a[c]=f)}}),a}return Qt.default=n,Qt}var Nd=vd();const ls=ta(Nd),kd=ls.default||ls,vr=To("end"),bt=To("start");function To(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 Od(e){const t=bt(e),n=vr(e);if(t&&n)return{start:t,end:n}}function wn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cs(e.position):"start"in e||"end"in e?cs(e):"line"in e||"column"in e?Pi(e):""}function Pi(e){return fs(e&&e.line)+":"+fs(e&&e.column)}function cs(e){return Pi(e&&e.start)+"-"+Pi(e&&e.end)}function fs(e){return e&&typeof e=="number"?e:1}class Ue extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?a.ruleId=r:(a.source=r.slice(0,o),a.ruleId=r.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=u?u.line:void 0,this.name=wn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ue.prototype.file="";Ue.prototype.name="";Ue.prototype.reason="";Ue.prototype.message="";Ue.prototype.stack="";Ue.prototype.column=void 0;Ue.prototype.line=void 0;Ue.prototype.ancestors=void 0;Ue.prototype.cause=void 0;Ue.prototype.fatal=void 0;Ue.prototype.place=void 0;Ue.prototype.ruleId=void 0;Ue.prototype.source=void 0;const la={}.hasOwnProperty,Ld=new Map,Rd=/[A-Z]/g,Dd=/-([a-z])/g,Pd=new Set(["table","tbody","thead","tfoot","tr"]),Md=new Set(["td","th"]),xo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Bd(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=Gd(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=Yd(n,t.jsx,t.jsxs)}const i={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"?Ot:$n,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=yo(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function yo(e,t,n){if(t.type==="element")return Fd(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Hd(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jd(e,t,n);if(t.type==="mdxjsEsm")return Ud(e,t);if(t.type==="root")return $d(e,t,n);if(t.type==="text")return zd(e,t)}function Fd(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ot,e.schema=i),e.ancestors.push(t);const a=_o(e,t.tagName,!1),s=Vd(e,t);let u=fa(e,t);return Pd.has(t.tagName)&&(u=u.filter(function(o){return typeof o=="string"?!bd(o):!0})),Ao(e,s,a,t),ca(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Hd(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)}Pn(e,t.position)}function Ud(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Pn(e,t.position)}function jd(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ot,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:_o(e,t.name,!0),s=qd(e,t),u=fa(e,t);return Ao(e,s,a,t),ca(s,u),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function $d(e,t,n){const r={};return ca(r,fa(e,t)),e.create(t,e.Fragment,r,n)}function zd(e,t){return t.value}function Ao(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ca(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Yd(e,t,n){return r;function r(i,a,s,u){const c=Array.isArray(s.children)?n:t;return u?c(a,s,u):c(a,s)}}function Gd(e,t){return n;function n(r,i,a,s){const u=Array.isArray(a.children),o=bt(r);return t(i,a,s,u,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function Vd(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&la.call(t.properties,i)){const a=Wd(e,i,t.properties[i]);if(a){const[s,u]=a;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&Md.has(t.tagName)?r=u:n[s]=u}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function qd(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Pn(e,t.position);else{const i=r.name;let a;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,a=e.evaluater.evaluateExpression(u.expression)}else Pn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function fa(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ld;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const c=i.get(o)||0;s=o+"-"+c,i.set(o,c+1)}}const u=yo(e,a,s);u!==void 0&&n.push(u)}return n}function Wd(e,t,n){const r=Ir(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?oo(n):Eo(n)),r.property==="style"){let i=typeof n=="object"?n:Xd(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Qd(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?wd[r.property]||r.property:r.attribute,n]}}function Xd(e,t){const n={};try{kd(t,r)}catch(i){if(!e.ignoreInvalidStyle){const a=i,s=new Ue("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=xo+"#cannot-parse-style-attribute",s}}return n;function r(i,a){let s=i;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Dd,Zd)),n[s]=a}}function _o(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const u=ns(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}r=s}else r=ns(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return la.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Pn(e)}function Pn(e,t){const n=new Ue("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=xo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Qd(e){const t={};let n;for(n in e)la.call(e,n)&&(t[Kd(n)]=e[n]);return t}function Kd(e){let t=e.replace(Rd,Jd);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Zd(e,t){return t.toUpperCase()}function Jd(e){return"-"+e.toLowerCase()}const Qr={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"]},e0={};function da(e,t){const n=e0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Co(e,r,i)}function Co(e,t,n){if(t0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ds(e.children,t,n)}return Array.isArray(e)?ds(e,t,n):""}function ds(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Co(e[i],t,n);return r.join("")}function t0(e){return!!(e&&typeof e=="object")}const hs=document.createElement("i");function ha(e){const t="&"+e+";";hs.innerHTML=t;const n=hs.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ke(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i: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);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function tt(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const ms={}.hasOwnProperty;function So(e){const t={};let n=-1;for(;++n<e.length;)n0(t,e[n]);return t}function n0(e,t){let n;for(n in t){const i=(ms.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){ms.call(i,s)||(i[s]=[]);const u=a[s];r0(i[s],Array.isArray(u)?u:u?[u]:[])}}}function r0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}function wo(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)}function lt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ge=Lt(/[A-Za-z]/),He=Lt(/[\dA-Za-z]/),i0=Lt(/[#-'*+\--9=?A-Z^-~]/);function cr(e){return e!==null&&(e<32||e===127)}const Mi=Lt(/\d/),a0=Lt(/[\dA-Fa-f]/),s0=Lt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function Ce(e){return e!==null&&(e<0||e===32)}function fe(e){return e===-2||e===-1||e===32}const Nr=Lt(new RegExp("\\p{P}|\\p{S}","u")),zt=Lt(/\s/);function Lt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function hn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&He(e.charCodeAt(n+1))&&He(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(n+1);a<56320&&u>56319&&u<57344?(s=String.fromCharCode(a,u),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(o){return fe(o)?(e.enter(n),u(o)):t(o)}function u(o){return fe(o)&&a++<i?(e.consume(o),u):(e.exit(n),t(o))}}const u0={tokenize:o0};function o0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),a(u)}function a(u){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return ee(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}const l0={tokenize:c0},ps={tokenize:f0};function c0(e){const t=this,n=[];let r=0,i,a,s;return u;function u(w){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,o,c)(w)}return c(w)}function o(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const D=t.events.length;let C=D,k;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){k=t.events[C][1].end;break}y(r);let q=D;for(;q<t.events.length;)t.events[q][1].end=Object.assign({},k),q++;return Ke(t.events,C+1,0,t.events.slice(D)),t.events.length=q,c(w)}return u(w)}function c(w){if(r===n.length){if(!i)return h(w);if(i.currentConstruct&&i.currentConstruct.concrete)return E(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ps,f,d)(w)}function f(w){return i&&v(),y(r),h(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,E(w)}function h(w){return t.containerState={},e.attempt(ps,m,E)(w)}function m(w){return r++,n.push([t.currentConstruct,t.containerState]),h(w)}function E(w){if(w===null){i&&v(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),A(w)}function A(w){if(w===null){_(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return ee(w)?(e.consume(w),_(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(w),A)}function _(w,D){const C=t.sliceStream(w);if(D&&C.push(null),w.previous=a,a&&(a.next=w),a=w,i.defineSkip(w.start),i.write(C),t.parser.lazy[w.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<s&&(!i.events[k][1].end||i.events[k][1].end.offset>s))return;const q=t.events.length;let ue=q,ae,S;for(;ue--;)if(t.events[ue][0]==="exit"&&t.events[ue][1].type==="chunkFlow"){if(ae){S=t.events[ue][1].end;break}ae=!0}for(y(r),k=q;k<t.events.length;)t.events[k][1].end=Object.assign({},S),k++;Ke(t.events,ue+1,0,t.events.slice(q)),t.events.length=k}}function y(w){let D=n.length;for(;D-- >w;){const C=n[D];t.containerState=C[1],C[0].exit.call(t,e)}n.length=w}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function f0(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function fr(e){if(e===null||Ce(e)||zt(e))return 1;if(Nr(e))return 2}function kr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Bi={name:"attention",tokenize:h0,resolveAll:d0};function d0(e,t){let n=-1,r,i,a,s,u,o,c,f;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;o=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),h=Object.assign({},e[n][1].start);gs(d,-o),gs(h,o),s={type:o>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},u={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:o>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:o>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=tt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=tt(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=tt(c,kr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=tt(c,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=tt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ke(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function h0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=fr(r);let a;return s;function s(o){return a=o,e.enter("attentionSequence"),u(o)}function u(o){if(o===a)return e.consume(o),u;const c=e.exit("attentionSequence"),f=fr(o),d=!f||f===2&&i||n.includes(o),h=!i||i===2&&f||n.includes(r);return c._open=!!(a===42?d:d&&(i||!h)),c._close=!!(a===42?h:h&&(f||!d)),t(o)}}function gs(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const m0={name:"autolink",tokenize:p0};function p0(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(m){return Ge(m)?(e.consume(m),s):c(m)}function s(m){return m===43||m===45||m===46||He(m)?(r=1,u(m)):c(m)}function u(m){return m===58?(e.consume(m),r=0,o):(m===43||m===45||m===46||He(m))&&r++<32?(e.consume(m),u):(r=0,c(m))}function o(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||cr(m)?n(m):(e.consume(m),o)}function c(m){return m===64?(e.consume(m),f):i0(m)?(e.consume(m),c):n(m)}function f(m){return He(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||He(m))&&r++<63){const E=m===45?h:d;return e.consume(m),E}return n(m)}}const zn={tokenize:g0,partial:!0};function g0(e,t,n){return r;function r(a){return fe(a)?pe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ee(a)?t(a):n(a)}}const Io={name:"blockQuote",tokenize:b0,continuation:{tokenize:E0},exit:T0};function b0(e,t,n){const r=this;return i;function i(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"),a}return n(s)}function a(s){return fe(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function E0(e,t,n){const r=this;return i;function i(s){return fe(s)?pe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Io,t,n)(s)}}function T0(e){e.exit("blockQuote")}const vo={name:"characterEscape",tokenize:x0};function x0(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return s0(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const No={name:"characterReference",tokenize:y0};function y0(e,t,n){const r=this;let i=0,a,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),o}function o(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=He,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=a0,f):(e.enter("characterReferenceValue"),a=7,s=Mi,f(d))}function f(d){if(d===59&&i){const h=e.exit("characterReferenceValue");return s===He&&!ha(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),f):n(d)}}const bs={tokenize:_0,partial:!0},Es={name:"codeFenced",tokenize:A0,concrete:!0};function A0(e,t,n){const r=this,i={tokenize:C,partial:!0};let a=0,s=0,u;return o;function o(k){return c(k)}function c(k){const q=r.events[r.events.length-1];return a=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,u=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(k)}function f(k){return k===u?(s++,e.consume(k),f):s<3?n(k):(e.exit("codeFencedFenceSequence"),fe(k)?pe(e,d,"whitespace")(k):d(k))}function d(k){return k===null||ee(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(bs,A,D)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(k))}function h(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(k)):fe(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,m,"whitespace")(k)):k===96&&k===u?n(k):(e.consume(k),h)}function m(k){return k===null||ee(k)?d(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(k))}function E(k){return k===null||ee(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(k)):k===96&&k===u?n(k):(e.consume(k),E)}function A(k){return e.attempt(i,D,_)(k)}function _(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),y}function y(k){return a>0&&fe(k)?pe(e,v,"linePrefix",a+1)(k):v(k)}function v(k){return k===null||ee(k)?e.check(bs,A,D)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||ee(k)?(e.exit("codeFlowValue"),v(k)):(e.consume(k),w)}function D(k){return e.exit("codeFenced"),t(k)}function C(k,q,ue){let ae=0;return S;function S(Z){return k.enter("lineEnding"),k.consume(Z),k.exit("lineEnding"),$}function $(Z){return k.enter("codeFencedFence"),fe(Z)?pe(k,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):H(Z)}function H(Z){return Z===u?(k.enter("codeFencedFenceSequence"),Y(Z)):ue(Z)}function Y(Z){return Z===u?(ae++,k.consume(Z),Y):ae>=s?(k.exit("codeFencedFenceSequence"),fe(Z)?pe(k,z,"whitespace")(Z):z(Z)):ue(Z)}function z(Z){return Z===null||ee(Z)?(k.exit("codeFencedFence"),q(Z)):ue(Z)}}}function _0(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Kr={name:"codeIndented",tokenize:S0},C0={tokenize:w0,partial:!0};function S0(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),pe(e,a,"linePrefix",5)(c)}function a(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?o(c):ee(c)?e.attempt(C0,s,o)(c):(e.enter("codeFlowValue"),u(c))}function u(c){return c===null||ee(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),u)}function o(c){return e.exit("codeIndented"),t(c)}}function w0(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):pe(e,a,"linePrefix",5)(s)}function a(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):ee(s)?i(s):n(s)}}const I0={name:"codeText",tokenize:k0,resolve:v0,previous:N0};function v0(e){let t=e.length-4,n=3,r,i;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;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function N0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function k0(e,t,n){let r=0,i,a;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"),o(d))}function o(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),o):d===96?(a=e.enter("codeTextSequence"),i=0,f(d)):ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||ee(d)?(e.exit("codeTextData"),o(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}function ko(e){const t={};let n=-1,r,i,a,s,u,o,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,O0(e,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--&&(s=e[a],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},e[i][1].start),u=e.slice(i,n),u.unshift(r),Ke(e,i,n-i+1,u))}}return!c}function O0(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const a=[],s=n._tokenizer||r.parser[n.contentType](n.start),u=s.events,o=[],c={};let f,d,h=-1,m=n,E=0,A=0;const _=[A];for(;m;){for(;e[++i][1]!==m;);a.push(i),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++h<u.length;)u[h][0]==="exit"&&u[h-1][0]==="enter"&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(A=h+1,_.push(A),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):_.pop(),h=_.length;h--;){const y=u.slice(_[h],_[h+1]),v=a.pop();o.unshift([v,v+y.length-1]),Ke(e,v,2,y)}for(h=-1;++h<o.length;)c[E+o[h][0]]=E+o[h][1],E+=o[h][1]-o[h][0]-1;return c}const L0={tokenize:P0,resolve:D0},R0={tokenize:M0,partial:!0};function D0(e){return ko(e),e}function P0(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?a(u):ee(u)?e.check(R0,s,a)(u):(e.consume(u),i)}function a(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,i}}function M0(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,a,"linePrefix")}function a(s){if(s===null||ee(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 Oo(e,t,n,r,i,a,s,u,o){const c=o||Number.POSITIVE_INFINITY;let f=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),h):y===null||y===32||y===41||cr(y)?n(y):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),A(y))}function h(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(u),h(y)):y===null||y===60||ee(y)?n(y):(e.consume(y),y===92?E:m)}function E(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function A(y){return!f&&(y===null||y===41||Ce(y))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(y)):f<c&&y===40?(e.consume(y),f++,A):y===41?(e.consume(y),f--,A):y===null||y===32||y===40||cr(y)?n(y):(e.consume(y),y===92?_:A)}function _(y){return y===40||y===41||y===92?(e.consume(y),A):A(y)}}function Lo(e,t,n,r,i,a){const s=this;let u=0,o;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(a),f}function f(m){return u>999||m===null||m===91||m===93&&!o||m===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||ee(m)||u++>999?(e.exit("chunkString"),f(m)):(e.consume(m),o||(o=!fe(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),u++,d):d(m)}}function Ro(e,t,n,r,i,a){let s;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,o):n(h)}function o(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),c(h))}function c(h){return h===s?(e.exit(a),o(s)):h===null?n(h):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),pe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===s||h===null||ee(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:f)}function d(h){return h===s||h===92?(e.consume(h),f):f(h)}}function In(e,t){let n;return r;function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):fe(i)?pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const B0={name:"definition",tokenize:H0},F0={tokenize:U0,partial:!0};function H0(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return Lo.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function u(m){return i=lt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o):n(m)}function o(m){return Ce(m)?In(e,c)(m):c(m)}function c(m){return Oo(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(F0,d,d)(m)}function d(m){return fe(m)?pe(e,h,"whitespace")(m):h(m)}function h(m){return m===null||ee(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function U0(e,t,n){return r;function r(u){return Ce(u)?In(e,i)(u):n(u)}function i(u){return Ro(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return fe(u)?pe(e,s,"whitespace")(u):s(u)}function s(u){return u===null||ee(u)?t(u):n(u)}}const j0={name:"hardBreakEscape",tokenize:$0};function $0(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ee(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const z0={name:"headingAtx",tokenize:G0,resolve:Y0};function Y0(e,t){let n=e.length-2,r=3,i,a;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&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ke(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function G0(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||Ce(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),o(f)):f===null||ee(f)?(e.exit("atxHeading"),t(f)):fe(f)?pe(e,u,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function o(f){return f===35?(e.consume(f),o):(e.exit("atxHeadingSequence"),u(f))}function c(f){return f===null||f===35||Ce(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),c)}}const V0=["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"],Ts=["pre","script","style","textarea"],q0={name:"htmlFlow",tokenize:K0,resolveTo:Q0,concrete:!0},W0={tokenize:J0,partial:!0},X0={tokenize:Z0,partial:!0};function Q0(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 K0(e,t,n){const r=this;let i,a,s,u,o;return c;function c(T){return f(T)}function f(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),d}function d(T){return T===33?(e.consume(T),h):T===47?(e.consume(T),a=!0,A):T===63?(e.consume(T),i=3,r.interrupt?t:p):Ge(T)?(e.consume(T),s=String.fromCharCode(T),_):n(T)}function h(T){return T===45?(e.consume(T),i=2,m):T===91?(e.consume(T),i=5,u=0,E):Ge(T)?(e.consume(T),i=4,r.interrupt?t:p):n(T)}function m(T){return T===45?(e.consume(T),r.interrupt?t:p):n(T)}function E(T){const V="CDATA[";return T===V.charCodeAt(u++)?(e.consume(T),u===V.length?r.interrupt?t:H:E):n(T)}function A(T){return Ge(T)?(e.consume(T),s=String.fromCharCode(T),_):n(T)}function _(T){if(T===null||T===47||T===62||Ce(T)){const V=T===47,te=s.toLowerCase();return!V&&!a&&Ts.includes(te)?(i=1,r.interrupt?t(T):H(T)):V0.includes(s.toLowerCase())?(i=6,V?(e.consume(T),y):r.interrupt?t(T):H(T)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):a?v(T):w(T))}return T===45||He(T)?(e.consume(T),s+=String.fromCharCode(T),_):n(T)}function y(T){return T===62?(e.consume(T),r.interrupt?t:H):n(T)}function v(T){return fe(T)?(e.consume(T),v):S(T)}function w(T){return T===47?(e.consume(T),S):T===58||T===95||Ge(T)?(e.consume(T),D):fe(T)?(e.consume(T),w):S(T)}function D(T){return T===45||T===46||T===58||T===95||He(T)?(e.consume(T),D):C(T)}function C(T){return T===61?(e.consume(T),k):fe(T)?(e.consume(T),C):w(T)}function k(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),o=T,q):fe(T)?(e.consume(T),k):ue(T)}function q(T){return T===o?(e.consume(T),o=null,ae):T===null||ee(T)?n(T):(e.consume(T),q)}function ue(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ce(T)?C(T):(e.consume(T),ue)}function ae(T){return T===47||T===62||fe(T)?w(T):n(T)}function S(T){return T===62?(e.consume(T),$):n(T)}function $(T){return T===null||ee(T)?H(T):fe(T)?(e.consume(T),$):n(T)}function H(T){return T===45&&i===2?(e.consume(T),de):T===60&&i===1?(e.consume(T),ye):T===62&&i===4?(e.consume(T),U):T===63&&i===3?(e.consume(T),p):T===93&&i===5?(e.consume(T),Pe):ee(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(W0,X,Y)(T)):T===null||ee(T)?(e.exit("htmlFlowData"),Y(T)):(e.consume(T),H)}function Y(T){return e.check(X0,z,X)(T)}function z(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Z}function Z(T){return T===null||ee(T)?Y(T):(e.enter("htmlFlowData"),H(T))}function de(T){return T===45?(e.consume(T),p):H(T)}function ye(T){return T===47?(e.consume(T),s="",Ne):H(T)}function Ne(T){if(T===62){const V=s.toLowerCase();return Ts.includes(V)?(e.consume(T),U):H(T)}return Ge(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),Ne):H(T)}function Pe(T){return T===93?(e.consume(T),p):H(T)}function p(T){return T===62?(e.consume(T),U):T===45&&i===2?(e.consume(T),p):H(T)}function U(T){return T===null||ee(T)?(e.exit("htmlFlowData"),X(T)):(e.consume(T),U)}function X(T){return e.exit("htmlFlow"),t(T)}}function Z0(e,t,n){const r=this;return i;function i(s){return ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function J0(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(zn,t,n)}}const eh={name:"htmlText",tokenize:th};function th(e,t,n){const r=this;let i,a,s;return u;function u(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),o}function o(p){return p===33?(e.consume(p),c):p===47?(e.consume(p),C):p===63?(e.consume(p),w):Ge(p)?(e.consume(p),ue):n(p)}function c(p){return p===45?(e.consume(p),f):p===91?(e.consume(p),a=0,E):Ge(p)?(e.consume(p),v):n(p)}function f(p){return p===45?(e.consume(p),m):n(p)}function d(p){return p===null?n(p):p===45?(e.consume(p),h):ee(p)?(s=d,ye(p)):(e.consume(p),d)}function h(p){return p===45?(e.consume(p),m):d(p)}function m(p){return p===62?de(p):p===45?h(p):d(p)}function E(p){const U="CDATA[";return p===U.charCodeAt(a++)?(e.consume(p),a===U.length?A:E):n(p)}function A(p){return p===null?n(p):p===93?(e.consume(p),_):ee(p)?(s=A,ye(p)):(e.consume(p),A)}function _(p){return p===93?(e.consume(p),y):A(p)}function y(p){return p===62?de(p):p===93?(e.consume(p),y):A(p)}function v(p){return p===null||p===62?de(p):ee(p)?(s=v,ye(p)):(e.consume(p),v)}function w(p){return p===null?n(p):p===63?(e.consume(p),D):ee(p)?(s=w,ye(p)):(e.consume(p),w)}function D(p){return p===62?de(p):w(p)}function C(p){return Ge(p)?(e.consume(p),k):n(p)}function k(p){return p===45||He(p)?(e.consume(p),k):q(p)}function q(p){return ee(p)?(s=q,ye(p)):fe(p)?(e.consume(p),q):de(p)}function ue(p){return p===45||He(p)?(e.consume(p),ue):p===47||p===62||Ce(p)?ae(p):n(p)}function ae(p){return p===47?(e.consume(p),de):p===58||p===95||Ge(p)?(e.consume(p),S):ee(p)?(s=ae,ye(p)):fe(p)?(e.consume(p),ae):de(p)}function S(p){return p===45||p===46||p===58||p===95||He(p)?(e.consume(p),S):$(p)}function $(p){return p===61?(e.consume(p),H):ee(p)?(s=$,ye(p)):fe(p)?(e.consume(p),$):ae(p)}function H(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),i=p,Y):ee(p)?(s=H,ye(p)):fe(p)?(e.consume(p),H):(e.consume(p),z)}function Y(p){return p===i?(e.consume(p),i=void 0,Z):p===null?n(p):ee(p)?(s=Y,ye(p)):(e.consume(p),Y)}function z(p){return p===null||p===34||p===39||p===60||p===61||p===96?n(p):p===47||p===62||Ce(p)?ae(p):(e.consume(p),z)}function Z(p){return p===47||p===62||Ce(p)?ae(p):n(p)}function de(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),t):n(p)}function ye(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ne}function Ne(p){return fe(p)?pe(e,Pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):Pe(p)}function Pe(p){return e.enter("htmlTextData"),s(p)}}const ma={name:"labelEnd",tokenize:uh,resolveTo:sh,resolveAll:ah},nh={tokenize:oh},rh={tokenize:lh},ih={tokenize:ch};function ah(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 sh(e,t){let n=e.length,r=0,i,a,s,u;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const o={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[s][1].end)},f={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[s-2][1].start)};return u=[["enter",o,t],["enter",c,t]],u=tt(u,e.slice(a+1,a+r+3)),u=tt(u,[["enter",f,t]]),u=tt(u,kr(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),u=tt(u,[["exit",f,t],e[s-2],e[s-1],["exit",c,t]]),u=tt(u,e.slice(s+1)),u=tt(u,[["exit",o,t]]),Ke(e,a,e.length,u),e}function uh(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return u;function u(h){return a?a._inactive?d(h):(s=r.parser.defined.includes(lt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),o):n(h)}function o(h){return h===40?e.attempt(nh,f,s?f:d)(h):h===91?e.attempt(rh,f,s?c:d)(h):s?f(h):d(h)}function c(h){return e.attempt(ih,f,d)(h)}function f(h){return t(h)}function d(h){return a._balanced=!0,n(h)}}function oh(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Ce(d)?In(e,a)(d):a(d)}function a(d){return d===41?f(d):Oo(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Ce(d)?In(e,o)(d):f(d)}function u(d){return n(d)}function o(d){return d===34||d===39||d===40?Ro(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return Ce(d)?In(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function lh(e,t,n){const r=this;return i;function i(u){return Lo.call(r,e,a,s,"reference","referenceMarker","referenceString")(u)}function a(u){return r.parser.defined.includes(lt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function ch(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const fh={name:"labelStartImage",tokenize:dh,resolveAll:ma.resolveAll};function dh(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(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 hh={name:"labelStartLink",tokenize:mh,resolveAll:ma.resolveAll};function mh(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Zr={name:"lineEnding",tokenize:ph};function ph(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const ur={name:"thematicBreak",tokenize:gh};function gh(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,u(c)}function u(c){return c===i?(e.enter("thematicBreakSequence"),o(c)):r>=3&&(c===null||ee(c))?(e.exit("thematicBreak"),t(c)):n(c)}function o(c){return c===i?(e.consume(c),r++,o):(e.exit("thematicBreakSequence"),fe(c)?pe(e,u,"whitespace")(c):u(c))}}const qe={name:"list",tokenize:Th,continuation:{tokenize:xh},exit:Ah},bh={tokenize:_h,partial:!0},Eh={tokenize:yh,partial:!0};function Th(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(m){const E=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Mi(m)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(ur,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(m)}return n(m)}function o(m){return Mi(m)&&++s<10?(e.consume(m),o):(!r.interrupt||s<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(zn,r.interrupt?n:f,e.attempt(bh,h,d))}function f(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function d(m){return fe(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function xh(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(zn,i,a);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!fe(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(Eh,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function yh(e,t,n){const r=this;return pe(e,i,"listItemIndent",r.containerState.size+1);function i(a){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(a):n(a)}}function Ah(e){e.exit(this.containerState.type)}function _h(e,t,n){const r=this;return pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!fe(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const xs={name:"setextUnderline",tokenize:Sh,resolveTo:Ch};function Ch(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function Sh(e,t,n){const r=this;let i;return a;function a(c){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),u(c)}function u(c){return c===i?(e.consume(c),u):(e.exit("setextHeadingLineSequence"),fe(c)?pe(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||ee(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const wh={tokenize:Ih};function Ih(e){const t=this,n=e.attempt(zn,r,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(L0,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const vh={resolveAll:Po()},Nh=Do("string"),kh=Do("text");function Do(e){return{tokenize:t,resolveAll:Po(e==="text"?Oh:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,u);return s;function s(f){return c(f)?a(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),o}function o(f){return c(f)?(n.exit("data"),a(f)):(n.consume(f),o)}function c(f){if(f===null)return!0;const d=i[f];let h=-1;if(d)for(;++h<d.length;){const m=d[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Po(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function Oh(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],i=t.sliceStream(r);let a=i.length,s=-1,u=0,o;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(c===-2)o=!0,u++;else if(c!==-1){a++;break}}if(u){const c={type:n===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+a,_bufferIndex:a?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 Lh(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let s=[],u=[];const o={consume:v,enter:w,exit:D,attempt:q(C),check:q(k),interrupt:q(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:h,now:E,defineSkip:A,write:d};let f=t.tokenize.call(c,o);return t.resolveAll&&a.push(t),c;function d($){return s=tt(s,$),_(),s[s.length-1]!==null?[]:(ue(t,0),c.events=kr(a,c.events,c),c.events)}function h($,H){return Dh(m($),H)}function m($){return Rh(s,$)}function E(){const{line:$,column:H,offset:Y,_index:z,_bufferIndex:Z}=r;return{line:$,column:H,offset:Y,_index:z,_bufferIndex:Z}}function A($){i[$.line]=$.column,S()}function _(){let $;for(;r._index<s.length;){const H=s[r._index];if(typeof H=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<H.length;)y(H.charCodeAt(r._bufferIndex));else y(H)}}function y($){f=f($)}function v($){ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,S()):$!==-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=$}function w($,H){const Y=H||{};return Y.type=$,Y.start=E(),c.events.push(["enter",Y,c]),u.push(Y),Y}function D($){const H=u.pop();return H.end=E(),c.events.push(["exit",H,c]),H}function C($,H){ue($,H.from)}function k($,H){H.restore()}function q($,H){return Y;function Y(z,Z,de){let ye,Ne,Pe,p;return Array.isArray(z)?X(z):"tokenize"in z?X([z]):U(z);function U(G){return J;function J(ne){const re=ne!==null&&G[ne],Q=ne!==null&&G.null,ge=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return X(ge)(ne)}}function X(G){return ye=G,Ne=0,G.length===0?de:T(G[Ne])}function T(G){return J;function J(ne){return p=ae(),Pe=G,G.partial||(c.currentConstruct=G),G.name&&c.parser.constructs.disable.null.includes(G.name)?te():G.tokenize.call(H?Object.assign(Object.create(c),H):c,o,V,te)(ne)}}function V(G){return $(Pe,p),Z}function te(G){return p.restore(),++Ne<ye.length?T(ye[Ne]):de}}}function ue($,H){$.resolveAll&&!a.includes($)&&a.push($),$.resolve&&Ke(c.events,H,c.events.length-H,$.resolve(c.events.slice(H),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function ae(){const $=E(),H=c.previous,Y=c.currentConstruct,z=c.events.length,Z=Array.from(u);return{restore:de,from:z};function de(){r=$,c.previous=H,c.currentConstruct=Y,c.events.length=z,u=Z,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Rh(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function Dh(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
49
49
|
`;break}case-3:{s=`\r
|
|
50
|
-
`;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 Gf={42:Ye,43:Ye,45:Ye,48:Ye,49:Ye,50:Ye,51:Ye,52:Ye,53:Ye,54:Ye,55:Ye,56:Ye,57:Ye,62:to},Vf={91:V0},qf={[-2]:Hr,[-1]:Hr,32:Hr},Wf={35:Z0,42:er,45:[ns,er],60:nf,61:ns,95:er,96:es,126:es},Xf={38:ro,92:no},Qf={[-5]:Ur,[-4]:Ur,[-3]:Ur,33:xf,38:ro,42:Aa,60:[_0,lf],91:_f,92:[Q0,no],93:Ka,95:Aa,96:M0},Kf={null:[Aa,Ff]},Zf={null:[42,95]},Jf={null:[]},eh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Zf,contentInitial:Vf,disable:Jf,document:Gf,flow:Wf,flowInitial:qf,insideSpan:Kf,string:Xf,text:Qf},Symbol.toStringTag,{value:"Module"}));function th(e){const n=o0([eh,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(E0),document:a(b0),flow:a(Mf),string:a(Hf),text:a(Uf)};return r;function a(i){return s;function s(o){return $f(r,i,o)}}}function nh(e){for(;!ao(e););return e}const rs=/[\0\t\n\r]/g;function rh(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const c=[];let l,d,f,h,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(rs.lastIndex=f,l=rs.exec(i),h=l&&l.index!==void 0?l.index:i.length,m=i.charCodeAt(h),!l){t=i.slice(f);break}if(m===10&&f===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<h&&(c.push(i.slice(f,h)),e+=h-f),m){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return o&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const ah=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ih(e){return e.replace(ah,sh)}function sh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return eo(n.slice(i?2:1),i?16:10)}return Xa(n)||e}const lo={}.hasOwnProperty;function uh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),oh(n)(nh(th(n).document().write(rh()(e,t,!0))))}function oh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(bt),autolinkProtocol:se,autolinkEmail:se,atxHeading:i(Qe),blockQuote:i(re),characterEscape:se,characterReference:se,codeFenced:i(X),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(X,s),codeText:i(me,s),codeTextData:se,data:se,codeFlowValue:se,definition:i(U),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Le),hardBreakEscape:i(Be),hardBreakTrailing:i(Be),htmlFlow:i(Ot,s),htmlFlowData:se,htmlText:i(Ot,s),htmlTextData:se,image:i(Ue),label:s,link:i(bt),listItem:i(ce),listItemValue:h,listOrdered:i(st,f),listUnordered:i(st),paragraph:i(Ce),reference:b,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Qe),strong:i(Ee),thematicBreak:i(we)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:te,autolinkProtocol:J,blockQuote:c(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:G,codeFenced:c(N),codeFencedFence:A,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:Y,codeIndented:c(y),codeText:c(Z),codeTextData:Y,data:Y,definition:c(),definitionDestinationString:B,definitionLabelString:R,definitionTitleString:v,emphasis:c(),hardBreakEscape:c(F),hardBreakTrailing:c(F),htmlFlow:c(z),htmlFlowData:Y,htmlText:c(j),htmlTextData:Y,image:c(ye),label:De,labelText:ve,lineEnding:$,link:c(de),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:V,resourceDestinationString:p,resourceTitleString:H,resource:W,setextHeading:c(le),setextHeadingLineSequence:K,setextHeadingText:L,strong:c(),thematicBreak:c()}};fo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(O){let D={type:"root",children:[]};const Q={stack:[D],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:d,data:n},ae=[];let ge=-1;for(;++ge<O.length;)if(O[ge][1].type==="listOrdered"||O[ge][1].type==="listUnordered")if(O[ge][0]==="enter")ae.push(ge);else{const qe=ae.pop();ge=a(O,qe,ge)}for(ge=-1;++ge<O.length;){const qe=t[O[ge][0]];lo.call(qe,O[ge][1].type)&&qe[O[ge][1].type].call(Object.assign({sliceSerialize:O[ge][2].sliceSerialize},Q),O[ge][1])}if(Q.tokenStack.length>0){const qe=Q.tokenStack[Q.tokenStack.length-1];(qe[1]||as).call(Q,void 0,qe[0])}for(D.position={start:At(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:At(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)D=t.transforms[ge](D)||D;return D}function a(O,D,Q){let ae=D-1,ge=-1,qe=!1,Tt,Ke,Yt,je;for(;++ae<=Q;){const Ae=O[ae];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?ge++:ge--,je=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(Tt&&!je&&!ge&&!Yt&&(Yt=ae),je=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:je=void 0}if(!ge&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||ge===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(Tt){let xt=ae;for(Ke=void 0;xt--;){const Ze=O[xt];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;Ke&&(O[Ke][1].type="lineEndingBlank",qe=!0),Ze[1].type="lineEnding",Ke=xt}else if(!(Ze[1].type==="linePrefix"||Ze[1].type==="blockQuotePrefix"||Ze[1].type==="blockQuotePrefixWhitespace"||Ze[1].type==="blockQuoteMarker"||Ze[1].type==="listItemIndent"))break}Yt&&(!Ke||Yt<Ke)&&(Tt._spread=!0),Tt.end=Object.assign({},Ke?O[Ke][1].start:Ae[1].end),O.splice(Ke||ae,0,["exit",Tt,Ae[2]]),ae++,Q++}if(Ae[1].type==="listItemPrefix"){const xt={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};Tt=xt,O.splice(ae,0,["enter",xt,Ae[2]]),ae++,Q++,Yt=void 0,je=!0}}}return O[D][1]._spread=qe,Q}function i(O,D){return Q;function Q(ae){o.call(this,O(ae),ae),D&&D.call(this,ae)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(O,D,Q){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([D,Q]),O.position={start:At(D.start),end:void 0}}function c(O){return D;function D(Q){O&&O.call(this,Q),l.call(this,Q)}}function l(O,D){const Q=this.stack.pop(),ae=this.tokenStack.pop();if(ae)ae[0].type!==O.type&&(D?D.call(this,O,ae[0]):(ae[1]||as).call(this,O,ae[0]));else throw new Error("Cannot close `"+O.type+"` ("+xn({start:O.start,end:O.end})+"): it’s not open");Q.position.end=At(O.end)}function d(){return s0(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(O){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function m(){const O=this.resume(),D=this.stack[this.stack.length-1];D.lang=O}function x(){const O=this.resume(),D=this.stack[this.stack.length-1];D.meta=O}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const O=this.resume(),D=this.stack[this.stack.length-1];D.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const O=this.resume(),D=this.stack[this.stack.length-1];D.value=O.replace(/(\r?\n|\r)$/g,"")}function R(O){const D=this.resume(),Q=this.stack[this.stack.length-1];Q.label=D,Q.identifier=Jt(this.sliceSerialize(O)).toLowerCase()}function v(){const O=this.resume(),D=this.stack[this.stack.length-1];D.title=O}function B(){const O=this.resume(),D=this.stack[this.stack.length-1];D.url=O}function S(O){const D=this.stack[this.stack.length-1];if(!D.depth){const Q=this.sliceSerialize(O).length;D.depth=Q}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function K(O){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function le(){this.data.setextHeadingSlurpLineEnding=void 0}function se(O){const Q=this.stack[this.stack.length-1].children;let ae=Q[Q.length-1];(!ae||ae.type!=="text")&&(ae=xe(),ae.position={start:At(O.start),end:void 0},Q.push(ae)),this.stack.push(ae)}function Y(O){const D=this.stack.pop();D.value+=this.sliceSerialize(O),D.position.end=At(O.end)}function $(O){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=D.children[D.children.length-1];Q.position.end=At(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(se.call(this,O),Y.call(this,O))}function F(){this.data.atHardBreak=!0}function z(){const O=this.resume(),D=this.stack[this.stack.length-1];D.value=O}function j(){const O=this.resume(),D=this.stack[this.stack.length-1];D.value=O}function Z(){const O=this.resume(),D=this.stack[this.stack.length-1];D.value=O}function de(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=D,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function ye(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=D,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function ve(O){const D=this.sliceSerialize(O),Q=this.stack[this.stack.length-2];Q.label=ih(D),Q.identifier=Jt(D).toLowerCase()}function De(){const O=this.stack[this.stack.length-1],D=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const ae=O.children;Q.children=ae}else Q.alt=D}function p(){const O=this.resume(),D=this.stack[this.stack.length-1];D.url=O}function H(){const O=this.resume(),D=this.stack[this.stack.length-1];D.title=O}function W(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function V(O){const D=this.resume(),Q=this.stack[this.stack.length-1];Q.label=D,Q.identifier=Jt(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function ee(O){this.data.characterReferenceType=O.type}function G(O){const D=this.sliceSerialize(O),Q=this.data.characterReferenceType;let ae;Q?(ae=eo(D,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ae=Xa(D);const ge=this.stack.pop();ge.value+=ae,ge.position.end=At(O.end)}function J(O){Y.call(this,O);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(O)}function te(O){Y.call(this,O);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(O)}function re(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Le(){return{type:"emphasis",children:[]}}function Qe(){return{type:"heading",depth:0,children:[]}}function Be(){return{type:"break"}}function Ot(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function st(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function ce(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function Ce(){return{type:"paragraph",children:[]}}function Ee(){return{type:"strong",children:[]}}function xe(){return{type:"text",value:""}}function we(){return{type:"thematicBreak"}}}function At(e){return{line:e.line,column:e.column,offset:e.offset}}function fo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fo(e,r):ch(e,r)}}function ch(e,t){let n;for(n in t)if(lo.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 as(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+xn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+xn({start:t.start,end:t.end})+") is still open")}function lh(e){const t=this;t.parser=n;function n(r){return uh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dh(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 fh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
51
|
-
`}]}function
|
|
52
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let
|
|
53
|
-
`}),
|
|
54
|
-
`});const
|
|
55
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(
|
|
56
|
-
`}]}}const
|
|
50
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}const Ph={42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:Io},Mh={91:B0},Bh={[-2]:Kr,[-1]:Kr,32:Kr},Fh={35:z0,42:ur,45:[xs,ur],60:q0,61:xs,95:ur,96:Es,126:Es},Hh={38:No,92:vo},Uh={[-5]:Zr,[-4]:Zr,[-3]:Zr,33:fh,38:No,42:Bi,60:[m0,eh],91:hh,92:[j0,vo],93:ma,95:Bi,96:I0},jh={null:[Bi,vh]},$h={null:[42,95]},zh={null:[]},Yh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$h,contentInitial:Mh,disable:zh,document:Ph,flow:Fh,flowInitial:Bh,insideSpan:jh,string:Hh,text:Uh},Symbol.toStringTag,{value:"Module"}));function Gh(e){const n=So([Yh,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(u0),document:i(l0),flow:i(wh),string:i(Nh),text:i(kh)};return r;function i(a){return s;function s(u){return Lh(r,a,u)}}}function Vh(e){for(;!ko(e););return e}const ys=/[\0\t\n\r]/g;function qh(){let e=1,t="",n=!0,r;return i;function i(a,s,u){const o=[];let c,f,d,h,m;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(ys.lastIndex=d,c=ys.exec(a),h=c&&c.index!==void 0?c.index:a.length,m=a.charCodeAt(h),!c){t=a.slice(d);break}if(m===10&&d===h&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),d<h&&(o.push(a.slice(d,h)),e+=h-d),m){case 0:{o.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,o.push(-2);e++<f;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return u&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}const Wh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xh(e){return e.replace(Wh,Qh)}function Qh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return wo(n.slice(a?2:1),a?16:10)}return ha(n)||e}const Mo={}.hasOwnProperty;function Kh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Zh(n)(Vh(Gh(n).document().write(qh()(e,t,!0))))}function Zh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xt),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:a(Ze),blockQuote:a(re),characterEscape:ae,characterReference:ae,codeFenced:a(Q),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Q,s),codeText:a(ge,s),codeTextData:ae,data:ae,codeFlowValue:ae,definition:a(j),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Le),hardBreakEscape:a(Fe),hardBreakTrailing:a(Fe),htmlFlow:a(Rt,s),htmlFlowData:ae,htmlText:a(Rt,s),htmlTextData:ae,image:a($e),label:s,link:a(xt),listItem:a(ce),listItemValue:h,listOrdered:a(ot,d),listUnordered:a(ot),paragraph:a(we),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Ze),strong:a(be),thematicBreak:a(ke)},exit:{atxHeading:o(),atxHeadingSequence:C,autolink:o(),autolinkEmail:ne,autolinkProtocol:J,blockQuote:o(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:G,codeFenced:o(_),codeFencedFence:A,codeFencedFenceInfo:m,codeFencedFenceMeta:E,codeFlowValue:S,codeIndented:o(y),codeText:o(Z),codeTextData:S,data:S,definition:o(),definitionDestinationString:D,definitionLabelString:v,definitionTitleString:w,emphasis:o(),hardBreakEscape:o(H),hardBreakTrailing:o(H),htmlFlow:o(Y),htmlFlowData:S,htmlText:o(z),htmlTextData:S,image:o(ye),label:Pe,labelText:Ne,lineEnding:$,link:o(de),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:V,resourceDestinationString:p,resourceTitleString:U,resource:X,setextHeading:o(ue),setextHeadingLineSequence:q,setextHeadingText:k,strong:o(),thematicBreak:o()}};Bo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(R){let M={type:"root",children:[]};const K={stack:[M],tokenStack:[],config:t,enter:u,exit:c,buffer:s,resume:f,data:n},ie=[];let Ee=-1;for(;++Ee<R.length;)if(R[Ee][1].type==="listOrdered"||R[Ee][1].type==="listUnordered")if(R[Ee][0]==="enter")ie.push(Ee);else{const Xe=ie.pop();Ee=i(R,Xe,Ee)}for(Ee=-1;++Ee<R.length;){const Xe=t[R[Ee][0]];Mo.call(Xe,R[Ee][1].type)&&Xe[R[Ee][1].type].call(Object.assign({sliceSerialize:R[Ee][2].sliceSerialize},K),R[Ee][1])}if(K.tokenStack.length>0){const Xe=K.tokenStack[K.tokenStack.length-1];(Xe[1]||As).call(K,void 0,Xe[0])}for(M.position={start:St(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:St(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)M=t.transforms[Ee](M)||M;return M}function i(R,M,K){let ie=M-1,Ee=-1,Xe=!1,yt,Je,Xt,ze;for(;++ie<=K;){const _e=R[ie];switch(_e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_e[0]==="enter"?Ee++:Ee--,ze=void 0;break}case"lineEndingBlank":{_e[0]==="enter"&&(yt&&!ze&&!Ee&&!Xt&&(Xt=ie),ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ze=void 0}if(!Ee&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||Ee===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(yt){let Ct=ie;for(Je=void 0;Ct--;){const et=R[Ct];if(et[1].type==="lineEnding"||et[1].type==="lineEndingBlank"){if(et[0]==="exit")continue;Je&&(R[Je][1].type="lineEndingBlank",Xe=!0),et[1].type="lineEnding",Je=Ct}else if(!(et[1].type==="linePrefix"||et[1].type==="blockQuotePrefix"||et[1].type==="blockQuotePrefixWhitespace"||et[1].type==="blockQuoteMarker"||et[1].type==="listItemIndent"))break}Xt&&(!Je||Xt<Je)&&(yt._spread=!0),yt.end=Object.assign({},Je?R[Je][1].start:_e[1].end),R.splice(Je||ie,0,["exit",yt,_e[2]]),ie++,K++}if(_e[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start),end:void 0};yt=Ct,R.splice(ie,0,["enter",Ct,_e[2]]),ie++,K++,Xt=void 0,ze=!0}}}return R[M][1]._spread=Xe,K}function a(R,M){return K;function K(ie){u.call(this,R(ie),ie),M&&M.call(this,ie)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(R,M,K){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([M,K]),R.position={start:St(M.start),end:void 0}}function o(R){return M;function M(K){R&&R.call(this,K),c.call(this,K)}}function c(R,M){const K=this.stack.pop(),ie=this.tokenStack.pop();if(ie)ie[0].type!==R.type&&(M?M.call(this,R,ie[0]):(ie[1]||As).call(this,R,ie[0]));else throw new Error("Cannot close `"+R.type+"` ("+wn({start:R.start,end:R.end})+"): it’s not open");K.position.end=St(R.end)}function f(){return da(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(R){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function m(){const R=this.resume(),M=this.stack[this.stack.length-1];M.lang=R}function E(){const R=this.resume(),M=this.stack[this.stack.length-1];M.meta=R}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const R=this.resume(),M=this.stack[this.stack.length-1];M.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const R=this.resume(),M=this.stack[this.stack.length-1];M.value=R.replace(/(\r?\n|\r)$/g,"")}function v(R){const M=this.resume(),K=this.stack[this.stack.length-1];K.label=M,K.identifier=lt(this.sliceSerialize(R)).toLowerCase()}function w(){const R=this.resume(),M=this.stack[this.stack.length-1];M.title=R}function D(){const R=this.resume(),M=this.stack[this.stack.length-1];M.url=R}function C(R){const M=this.stack[this.stack.length-1];if(!M.depth){const K=this.sliceSerialize(R).length;M.depth=K}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function q(R){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(R){const K=this.stack[this.stack.length-1].children;let ie=K[K.length-1];(!ie||ie.type!=="text")&&(ie=Ae(),ie.position={start:St(R.start),end:void 0},K.push(ie)),this.stack.push(ie)}function S(R){const M=this.stack.pop();M.value+=this.sliceSerialize(R),M.position.end=St(R.end)}function $(R){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=M.children[M.children.length-1];K.position.end=St(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(ae.call(this,R),S.call(this,R))}function H(){this.data.atHardBreak=!0}function Y(){const R=this.resume(),M=this.stack[this.stack.length-1];M.value=R}function z(){const R=this.resume(),M=this.stack[this.stack.length-1];M.value=R}function Z(){const R=this.resume(),M=this.stack[this.stack.length-1];M.value=R}function de(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=M,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function ye(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=M,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function Ne(R){const M=this.sliceSerialize(R),K=this.stack[this.stack.length-2];K.label=Xh(M),K.identifier=lt(M).toLowerCase()}function Pe(){const R=this.stack[this.stack.length-1],M=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const ie=R.children;K.children=ie}else K.alt=M}function p(){const R=this.resume(),M=this.stack[this.stack.length-1];M.url=R}function U(){const R=this.resume(),M=this.stack[this.stack.length-1];M.title=R}function X(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function V(R){const M=this.resume(),K=this.stack[this.stack.length-1];K.label=M,K.identifier=lt(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function te(R){this.data.characterReferenceType=R.type}function G(R){const M=this.sliceSerialize(R),K=this.data.characterReferenceType;let ie;K?(ie=wo(M,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ie=ha(M);const Ee=this.stack.pop();Ee.value+=ie,Ee.position.end=St(R.end)}function J(R){S.call(this,R);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(R)}function ne(R){S.call(this,R);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(R)}function re(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function ge(){return{type:"inlineCode",value:""}}function j(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Le(){return{type:"emphasis",children:[]}}function Ze(){return{type:"heading",depth:0,children:[]}}function Fe(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function $e(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function ot(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function ce(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function we(){return{type:"paragraph",children:[]}}function be(){return{type:"strong",children:[]}}function Ae(){return{type:"text",value:""}}function ke(){return{type:"thematicBreak"}}}function St(e){return{line:e.line,column:e.column,offset:e.offset}}function Bo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Bo(e,r):Jh(e,r)}}function Jh(e,t){let n;for(n in t)if(Mo.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 As(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wn({start:t.start,end:t.end})+") is still open")}function em(e){const t=this;t.parser=n;function n(r){return Kh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tm(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 nm(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
51
|
+
`}]}function rm(e,t){const n=t.value?t.value+`
|
|
52
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function im(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function am(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sm(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=hn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,u+=1,e.footnoteCounts.set(r,u);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,o);const c={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,c),e.applyData(t,c)}function um(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function om(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Fo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function lm(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fo(e,t);const i={src:hn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function cm(e,t){const n={src:hn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function fm(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function dm(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fo(e,t);const i={href:hn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function hm(e,t){const n={href:hn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mm(e,t,n){const r=e.all(t),i=n?pm(n):Ho(t),a={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
|
|
53
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&s.push({type:"text",value:`
|
|
54
|
+
`});const c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)}function pm(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ho(n[r])}return t}function Ho(e){const t=e.spread;return t??e.children.length>1}function gm(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function bm(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Em(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Tm(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xm(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=bt(t.children[1]),o=vr(t.children[t.children.length-1]);u&&o&&(s.position={start:u,end:o}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function ym(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,u=s?s.length:t.children.length;let o=-1;const c=[];for(;++o<u;){const d=t.children[o],h={},m=s?s[o]:void 0;m&&(h.align=m);let E={type:"element",tagName:a,properties:h,children:[]};d&&(E.children=e.all(d),e.patch(d,E),E=e.applyData(d,E)),c.push(E)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function Am(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const _s=9,Cs=32;function _m(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Ss(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ss(t.slice(i),i>0,!1)),a.join("")}function Ss(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===_s||a===Cs;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===_s||a===Cs;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Cm(e,t){const n={type:"text",value:_m(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sm(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const wm={blockquote:tm,break:nm,code:rm,delete:im,emphasis:am,footnoteReference:sm,heading:um,html:om,imageReference:lm,image:cm,inlineCode:fm,linkReference:dm,link:hm,listItem:mm,list:gm,paragraph:bm,root:Em,strong:Tm,table:xm,tableCell:Am,tableRow:ym,text:Cm,thematicBreak:Sm,toml:Zn,yaml:Zn,definition:Zn,footnoteDefinition:Zn};function Zn(){}const Uo=-1,Or=0,dr=1,hr=2,pa=3,ga=4,ba=5,Ea=6,jo=7,$o=8,ws=typeof self=="object"?self:globalThis,Im=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Or:case Uo:return n(s,i);case dr:{const u=n([],i);for(const o of s)u.push(r(o));return u}case hr:{const u=n({},i);for(const[o,c]of s)u[r(o)]=r(c);return u}case pa:return n(new Date(s),i);case ga:{const{source:u,flags:o}=s;return n(new RegExp(u,o),i)}case ba:{const u=n(new Map,i);for(const[o,c]of s)u.set(r(o),r(c));return u}case Ea:{const u=n(new Set,i);for(const o of s)u.add(r(o));return u}case jo:{const{name:u,message:o}=s;return n(new ws[u](o),i)}case $o:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new ws[a](s),i)};return r},Is=e=>Im(new Map,e)(0),Kt="",{toString:vm}={},{keys:Nm}=Object,En=e=>{const t=typeof e;if(t!=="object"||!e)return[Or,t];const n=vm.call(e).slice(8,-1);switch(n){case"Array":return[dr,Kt];case"Object":return[hr,Kt];case"Date":return[pa,Kt];case"RegExp":return[ga,Kt];case"Map":return[ba,Kt];case"Set":return[Ea,Kt]}return n.includes("Array")?[dr,n]:n.includes("Error")?[jo,n]:[hr,n]},Jn=([e,t])=>e===Or&&(t==="function"||t==="symbol"),km=(e,t,n,r)=>{const i=(s,u)=>{const o=r.push(s)-1;return n.set(u,o),o},a=s=>{if(n.has(s))return n.get(s);let[u,o]=En(s);switch(u){case Or:{let f=s;switch(o){case"bigint":u=$o,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);f=null;break;case"undefined":return i([Uo],s)}return i([u,f],s)}case dr:{if(o)return i([o,[...s]],s);const f=[],d=i([u,f],s);for(const h of s)f.push(a(h));return d}case hr:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const f=[],d=i([u,f],s);for(const h of Nm(s))(e||!Jn(En(s[h])))&&f.push([a(h),a(s[h])]);return d}case pa:return i([u,s.toISOString()],s);case ga:{const{source:f,flags:d}=s;return i([u,{source:f,flags:d}],s)}case ba:{const f=[],d=i([u,f],s);for(const[h,m]of s)(e||!(Jn(En(h))||Jn(En(m))))&&f.push([a(h),a(m)]);return d}case Ea:{const f=[],d=i([u,f],s);for(const h of s)(e||!Jn(En(h)))&&f.push(a(h));return d}}const{message:c}=s;return i([u,{name:o,message:c}],s)};return a},vs=(e,{json:t,lossy:n}={})=>{const r=[];return km(!(t||n),!!t,new Map,r)(e),r},on=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Is(vs(e,t)):structuredClone(e):(e,t)=>Is(vs(e,t));function Om(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Lm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Rm(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Om,r=e.options.footnoteBackLabel||Lm,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let o=-1;for(;++o<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[o]);if(!c)continue;const f=e.all(c),d=String(c.identifier).toUpperCase(),h=hn(d.toLowerCase());let m=0;const E=[],A=e.footnoteCounts.get(d);for(;A!==void 0&&++m<=A;){E.length>0&&E.push({type:"text",value:" "});let v=typeof n=="string"?n:n(o,m);typeof v=="string"&&(v={type:"text",value:v}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,m),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const _=f[f.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const v=_.children[_.children.length-1];v&&v.type==="text"?v.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...E)}else f.push(...E);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(c,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...on(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
55
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
56
|
+
`}]}}const Lr=(function(e){if(e==null)return Bm;if(typeof e=="function")return Rr(e);if(typeof e=="object")return Array.isArray(e)?Dm(e):Pm(e);if(typeof e=="string")return Mm(e);throw new Error("Expected function, string, or object as test")});function Dm(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Lr(e[n]);return Rr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Pm(e){const t=e;return Rr(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Mm(e){return Rr(t);function t(n){return n&&n.type===e}}function Rr(e){return t;function t(n,r,i){return!!(Fm(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Bm(){return!0}function Fm(e){return e!==null&&typeof e=="object"&&"type"in e}const zo=[],Hm=!0,Fi=!1,Um="skip";function Yo(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Lr(i),s=r?-1:1;u(e,void 0,[])();function u(o,c,f){const d=o&&typeof o=="object"?o:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(o.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=zo,E,A,_;if((!t||a(o,c,f[f.length-1]||void 0))&&(m=jm(n(o,f)),m[0]===Fi))return m;if("children"in o&&o.children){const y=o;if(y.children&&m[0]!==Um)for(A=(r?y.children.length:-1)+s,_=f.concat(y);A>-1&&A<y.children.length;){const v=y.children[A];if(E=u(v,A,_)(),E[0]===Fi)return E;A=typeof E[1]=="number"?E[1]:A+s}}return m}}}function jm(e){return Array.isArray(e)?e:typeof e=="number"?[Hm,e]:e==null?zo:[e]}function Dr(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),Yo(e,a,u,i);function u(o,c){const f=c[c.length-1],d=f?f.children.indexOf(o):void 0;return s(o,d,f)}}const Hi={}.hasOwnProperty,$m={};function zm(e,t){const n=t||$m,r=new Map,i=new Map,a=new Map,s={...wm,...n.handlers},u={all:c,applyData:Gm,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:o,options:n,patch:Ym,wrap:qm};return Dr(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();d.has(h)||d.set(h,f)}}),u;function o(f,d){const h=f.type,m=u.handlers[h];if(Hi.call(u.handlers,h)&&m)return m(u,f,d);if(u.options.passThrough&&u.options.passThrough.includes(h)){if("children"in f){const{children:A,..._}=f,y=on(_);return y.children=u.all(f),y}return on(f)}return(u.options.unknownHandler||Vm)(u,f,d)}function c(f){const d=[];if("children"in f){const h=f.children;let m=-1;for(;++m<h.length;){const E=u.one(h[m],f);if(E){if(m&&h[m-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Ns(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=Ns(A.value))}Array.isArray(E)?d.push(...E):d.push(E)}}}return d}}function Ym(e,t){e.position&&(t.position=Od(e))}function Gm(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,on(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Vm(e,t){const n=t.data||{},r="value"in t&&!(Hi.call(n,"hProperties")||Hi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qm(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
57
57
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
58
58
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
59
|
-
`}),n}function
|
|
60
|
-
`},a),i}function im(e,t){return e&&"run"in e?async function(n,r){const a=hs(n,{file:r,...t});await e.run(a,r)}:function(n,r){return hs(n,{file:r,...t||e})}}function ms(e){if(e)throw e}var jr,ps;function sm(){if(ps)return jr;ps=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},i=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var d=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!f)return!1;var h;for(h in l);return typeof h>"u"||e.call(l,h)},s=function(l,d){n&&d.name==="__proto__"?n(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},o=function(l,d){if(d==="__proto__")if(e.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return jr=function c(){var l,d,f,h,m,x,A=arguments[0],N=1,y=arguments.length,R=!1;for(typeof A=="boolean"&&(R=A,A=arguments[1]||{},N=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});N<y;++N)if(l=arguments[N],l!=null)for(d in l)f=o(A,d),h=o(l,d),A!==h&&(R&&h&&(i(h)||(m=a(h)))?(m?(m=!1,x=f&&a(f)?f:[]):x=f&&i(f)?f:{},s(A,{name:d,newValue:c(R,x,h)})):typeof h<"u"&&s(A,{name:d,newValue:h}));return A},jr}var um=sm();const $r=Fa(um);function Sa(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 om(){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);o(null,...a);function o(c,...l){const d=e[++i];let f=-1;if(c){s(c);return}for(;++f<a.length;)(l[f]===null||l[f]===void 0)&&(l[f]=a[f]);a=l,d?cm(d,o)(...l):s(null,...l)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function cm(e,t){let n;return r;function r(...s){const o=e.length>s.length;let c;o&&s.push(a);try{c=e.apply(this,s)}catch(l){const d=l;if(o&&n)throw d;return a(d)}o||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const ot={basename:lm,dirname:dm,extname:fm,join:hm,sep:"/"};function lm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Fn(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,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function dm(e){if(Fn(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 fm(e){Fn(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===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 hm(...e){let t=-1,n;for(;++t<e.length;)Fn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":mm(n)}function mm(e){Fn(e);const t=e.codePointAt(0)===47;let n=pm(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pm(e,t){let n="",r=0,a=-1,i=0,s=-1,o,c;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===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(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),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 o===46&&i>-1?i++:i=-1}return n}function Fn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Em={cwd:gm};function gm(){return"/"}function Ca(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bm(e){if(typeof e=="string")e=new URL(e);else if(!Ca(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 Tm(e)}function Tm(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 zr=["history","path","basename","stem","extname","dirname"];class yo{constructor(t){let n;t?Ca(t)?n={path:t}:typeof t=="string"||ym(t)?n={value:t}:n=t:n={},this.cwd=Em.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zr.length;){const i=zr[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)zr.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ot.basename(this.path):void 0}set basename(t){Gr(t,"basename"),Yr(t,"basename"),this.path=ot.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ot.dirname(this.path):void 0}set dirname(t){Es(this.basename,"dirname"),this.path=ot.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ot.extname(this.path):void 0}set extname(t){if(Yr(t,"extname"),Es(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=ot.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ca(t)&&(t=bm(t)),Gr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ot.basename(this.path,this.extname):void 0}set stem(t){Gr(t,"stem"),Yr(t,"stem"),this.path=ot.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 Fe(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 Yr(e,t){if(e&&e.includes(ot.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ot.sep+"`")}function Gr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Es(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ym(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xm=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const s=Object.getOwnPropertyNames(a);for(const o of s){const c=Object.getOwnPropertyDescriptor(a,o);c&&Object.defineProperty(i,o,c)}return i}),Am={}.hasOwnProperty;class ri extends xm{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=om()}copy(){const t=new ri;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data($r(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wr("data",this.frozen),this.namespace[t]=n,this):Am.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wr("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=Wn(t),r=this.parser||this.Parser;return Vr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vr("process",this.parser||this.Parser),qr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=Wn(t),c=r.parse(o);r.run(c,o,function(d,f,h){if(d||!f||!h)return l(d);const m=f,x=r.stringify(m,h);Cm(x)?h.value=x:h.result=x,l(d,h)});function l(d,f){d||!f?s(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Vr("processSync",this.parser||this.Parser),qr("processSync",this.compiler||this.Compiler),this.process(t,a),bs("processSync","process",n),r;function a(i,s){n=!0,ms(i),r=s}}run(t,n,r){gs(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,o){const c=Wn(n);a.run(t,c,l);function l(d,f,h){const m=f||t;d?o(d):s?s(m):r(void 0,m,h)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),bs("runSync","run",r),a;function i(s,o){ms(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=Wn(n),a=this.compiler||this.Compiler;return qr("stringify",a),gs(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Wr("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...f]=l;c(d,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))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");o(l.plugins),l.settings&&(a.settings=$r(!0,a.settings,l.settings))}function o(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const f=l[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,d){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===l){h=f;break}if(h===-1)r.push([l,...d]);else if(d.length>0){let[m,...x]=d;const A=r[h][1];Sa(A)&&Sa(m)&&(m=$r(!0,A,m)),r[h]=[l,m,...x]}}}}const _m=new ri().freeze();function Vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wr(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 gs(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function bs(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wn(e){return Sm(e)?e:new yo(e)}function Sm(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cm(e){return typeof e=="string"||Im(e)}function Im(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Nm="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ts=[],ys={allowDangerousHtml:!0},vm=/^(https?|ircs?|mailto|xmpp)$/i,wm=[{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 xo(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,s=e.disallowedElements,o=e.rehypePlugins||Ts,c=e.remarkPlugins||Ts,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ys}:ys,d=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||Om,m=_m().use(lh).use(c).use(im,l).use(o),x=new yo;typeof r=="string"&&(x.value=r);for(const R of wm)Object.hasOwn(e,R.from)&&(""+R.from+(R.to?"use `"+R.to+"` instead":"remove it")+Nm+R.id,void 0);const A=m.parse(x);let N=m.runSync(A,x);return a&&(N={type:"element",tagName:"div",properties:{className:a},children:N.type==="root"?N.children:[N]}),ni(N,y),$d(N,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function y(R,v,B){if(R.type==="raw"&&B&&typeof v=="number")return d?B.children.splice(v,1):B.children[v]={type:"text",value:R.value},v;if(R.type==="element"){let S;for(S in Fr)if(Object.hasOwn(Fr,S)&&Object.hasOwn(R.properties,S)){const L=R.properties[S],K=Fr[S];(K===null||K.includes(R.tagName))&&(R.properties[S]=h(String(L||""),S,R))}}if(R.type==="element"){let S=t?!t.includes(R.tagName):s?s.includes(R.tagName):!1;if(!S&&n&&typeof v=="number"&&(S=!n(R,v,B)),S&&B&&typeof v=="number")return f&&R.children?B.children.splice(v,1,...R.children):B.children.splice(v,1),v}}}function Om(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||vm.test(e.slice(0,t))?e:""}const xs=/[#.]/g;function Lm(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){xs.lastIndex=a;const o=xs.exec(n),c=n.slice(a,o?o.index:n.length);c&&(i?i==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:s=c,a+=c.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}const Rm=new Set(["button","menu","reset","submit"]),Ia={}.hasOwnProperty;function Ao(e,t,n){const r=n&&Mm(n);function a(i,s,...o){let c=-1,l;if(i==null){l={type:"root",children:[]};const d=s;o.unshift(d)}else if(l=Lm(i,t),l.tagName=l.tagName.toLowerCase(),r&&Ia.call(r,l.tagName)&&(l.tagName=r[l.tagName]),km(s,l.tagName)){let d;for(d in s)Ia.call(s,d)&&Dm(e,l.properties,d,s[d])}else o.unshift(s);for(;++c<o.length;)Na(l.children,o[c]);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function km(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?Rm.has(e.type.toLowerCase()):!("value"in e)}function Dm(e,t,n,r){const a=br(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=ji(r):a.commaSeparated?s=Mi(r):a.commaOrSpaceSeparated?s=ji(Mi(r).join(" ")):s=As(a,a.property,r):Array.isArray(r)?s=r.concat():s=a.property==="style"?Pm(r):String(r);if(Array.isArray(s)){const o=[];for(;++i<s.length;){const c=As(a,a.property,s[i]);o[i]=c}s=o}if(a.property==="className"&&Array.isArray(t.className)){const o=s;s=t.className.concat(o)}t[a.property]=s}}function Na(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;)Na(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Na(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function As(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||wn(n)===wn(t)))return!0}return n}function Pm(e){const t=[];let n;for(n in e)Ia.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Mm(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Bm=["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"],Fm=Ao(Bn,"div"),Hm=Ao(vt,"g",Bm);function Um(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 o=n[s];if(o===void 0){const c=_s(t,n[s-1]);o=c===-1?t.length+1:c+1,n[s]=o}if(o>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 o=n[n.length-1],c=_s(t,o),l=c===-1?t.length+1:c+1;if(o===l)break;n.push(l)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function _s(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
61
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Pt={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/"},_o={}.hasOwnProperty,jm=Object.prototype;function $m(e,t){const n=t||{};return ai({file:n.file||void 0,location:!1,schema:n.space==="svg"?vt:Bn,verbose:n.verbose||!1},e)}function ai(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},tr(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:So(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=Um(i),o=s.toPoint(0),c=s.toPoint(i.length);n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},tr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},tr(e,r,n),n}default:return n=zm(e,t),n}}function So(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ai(e,t[n]);r.push(a)}return r}function zm(e,t){const n=e.schema;e.schema=t.namespaceURI===Pt.svg?vt:Bn;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;_o.call(jm,c)||(a[c]=o.value)}const s=(e.schema.space==="svg"?Hm:Fm)(t.tagName,a,So(e,t.childNodes));if(tr(e,t,s),s.tagName==="template"){const o=t,c=o.sourceCodeLocation,l=c&&c.startTag&&Kt(c.startTag),d=c&&c.endTag&&Kt(c.endTag),f=ai(e,o.content);l&&d&&e.file&&(f.position={start:l.end,end:d.start}),s.content=f}return e.schema=n,s}function tr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Ym(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ym(e,t,n){const r=Kt(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)_o.call(n.attrs,s)&&(i[br(e.schema,s).property]=Kt(n.attrs[s]));n.startTag;const o=Kt(n.startTag),c=n.endTag?Kt(n.endTag):void 0,l={opening:o};c&&(l.closing=c),l.properties=i,t.data={position:l}}}return r}function Kt(e){const t=Ss({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ss({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ss(e){return e.line&&e.column?e:void 0}const Cs={}.hasOwnProperty;function Co(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&Cs.call(a,e)){const c=String(a[e]);s=Cs.call(o,c)?o[c]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Gm={},Vm={}.hasOwnProperty,Io=Co("type",{handlers:{root:Wm,element:Jm,text:Km,comment:Zm,doctype:Qm}});function qm(e,t){const r=(t||Gm).space;return Io(e,r==="svg"?vt:Bn)}function Wm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ii(e.children,n,t),cn(e,n),n}function Xm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ii(e.children,n,t),cn(e,n),n}function Qm(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return cn(e,t),t}function Km(e){const t={nodeName:"#text",value:e.value,parentNode:null};return cn(e,t),t}function Zm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return cn(e,t),t}function Jm(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=vt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Vm.call(e.properties,i)){const c=ep(r,i,e.properties[i]);c&&a.push(c)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Pt[s],childNodes:[],parentNode:null};return o.childNodes=ii(e.children,o,r),cn(e,o),e.tagName==="template"&&e.content&&(o.content=Xm(e.content,r)),o}function ep(e,t,n){const r=br(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?Fu(n):qu(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=Pt[r.space]}return a}function ii(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Io(e[r],n);i.parentNode=t,a.push(i)}return a}function cn(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 tp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],np=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]),Ne="�";var E;(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"})(E||(E={}));const ze={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function No(e){return e>=55296&&e<=57343}function rp(e){return e>=56320&&e<=57343}function ap(e,t){return(e-55296)*1024+9216+t}function vo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function wo(e){return e>=64976&&e<=65007||np.has(e)}var w;(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"})(w||(w={}));const ip=65536;class sp{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=ip,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,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_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(rp(n))return this.pos++,this._addGap(),ap(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(w.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,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.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,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.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===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){vo(t)?this._err(w.controlCharacterInInputStream):wo(t)&&this._err(w.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var oe;(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"})(oe||(oe={}));function Oo(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 Lo=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))),up=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Xr;const op=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]]),cp=(Xr=String.fromCodePoint)!==null&&Xr!==void 0?Xr: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 lp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=op.get(e))!==null&&t!==void 0?t:e}var Me;(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"})(Me||(Me={}));const dp=32;var Ct;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ct||(Ct={}));function va(e){return e>=Me.ZERO&&e<=Me.NINE}function fp(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function hp(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||va(e)}function mp(e){return e===Me.EQUALS||hp(e)}var Pe;(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"})(Pe||(Pe={}));var yt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(yt||(yt={}));class Ro{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Pe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yt.Strict}startEntity(t){this.decodeMode=t,this.state=Pe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Pe.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=Pe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Pe.NamedEntity,this.stateNamedEntity(t,n));case Pe.NumericStart:return this.stateNumericStart(t,n);case Pe.NumericDecimal:return this.stateNumericDecimal(t,n);case Pe.NumericHex:return this.stateNumericHex(t,n);case Pe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|dp)===Me.LOWER_X?(this.state=Pe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Pe.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(va(a)||fp(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(va(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===Me.SEMI)this.consumed+=1;else if(this.decodeMode===yt.Strict)return 0;return this.emitCodePoint(lp(this.result),this.consumed),this.errors&&(t!==Me.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&Ct.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=pp(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===yt.Attribute&&(i===0||mp(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&Ct.VALUE_LENGTH)>>14,i!==0){if(s===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==yt.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]&Ct.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]&~Ct.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Pe.NamedEntity:return this.result!==0&&(this.decodeMode!==yt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pe.NumericDecimal:return this.emitNumericEntity(0,2);case Pe.NumericHex:return this.emitNumericEntity(0,3);case Pe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pe.EntityStart:return 0}}}function ko(e){let t="";const n=new Ro(e,r=>t+=cp(r));return function(a,i){let s=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(s,o),n.startEntity(i);const l=n.write(a,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+a.slice(s);return t="",c}}function pp(e,t,n,r){const a=(t&Ct.BRANCH_LENGTH)>>7,i=t&Ct.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const c=r-i;return c<0||c>=a?-1:e[n+c]-1}let s=n,o=s+a-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<r)s=c+1;else if(l>r)o=c-1;else return e[c+a]}return-1}ko(Lo);ko(up);var k;(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/"})(k||(k={}));var Mt;(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"})(Mt||(Mt={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var _;(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"})(_||(_={}));var u;(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"})(u||(u={}));const Ep=new Map([[_.A,u.A],[_.ADDRESS,u.ADDRESS],[_.ANNOTATION_XML,u.ANNOTATION_XML],[_.APPLET,u.APPLET],[_.AREA,u.AREA],[_.ARTICLE,u.ARTICLE],[_.ASIDE,u.ASIDE],[_.B,u.B],[_.BASE,u.BASE],[_.BASEFONT,u.BASEFONT],[_.BGSOUND,u.BGSOUND],[_.BIG,u.BIG],[_.BLOCKQUOTE,u.BLOCKQUOTE],[_.BODY,u.BODY],[_.BR,u.BR],[_.BUTTON,u.BUTTON],[_.CAPTION,u.CAPTION],[_.CENTER,u.CENTER],[_.CODE,u.CODE],[_.COL,u.COL],[_.COLGROUP,u.COLGROUP],[_.DD,u.DD],[_.DESC,u.DESC],[_.DETAILS,u.DETAILS],[_.DIALOG,u.DIALOG],[_.DIR,u.DIR],[_.DIV,u.DIV],[_.DL,u.DL],[_.DT,u.DT],[_.EM,u.EM],[_.EMBED,u.EMBED],[_.FIELDSET,u.FIELDSET],[_.FIGCAPTION,u.FIGCAPTION],[_.FIGURE,u.FIGURE],[_.FONT,u.FONT],[_.FOOTER,u.FOOTER],[_.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[_.FORM,u.FORM],[_.FRAME,u.FRAME],[_.FRAMESET,u.FRAMESET],[_.H1,u.H1],[_.H2,u.H2],[_.H3,u.H3],[_.H4,u.H4],[_.H5,u.H5],[_.H6,u.H6],[_.HEAD,u.HEAD],[_.HEADER,u.HEADER],[_.HGROUP,u.HGROUP],[_.HR,u.HR],[_.HTML,u.HTML],[_.I,u.I],[_.IMG,u.IMG],[_.IMAGE,u.IMAGE],[_.INPUT,u.INPUT],[_.IFRAME,u.IFRAME],[_.KEYGEN,u.KEYGEN],[_.LABEL,u.LABEL],[_.LI,u.LI],[_.LINK,u.LINK],[_.LISTING,u.LISTING],[_.MAIN,u.MAIN],[_.MALIGNMARK,u.MALIGNMARK],[_.MARQUEE,u.MARQUEE],[_.MATH,u.MATH],[_.MENU,u.MENU],[_.META,u.META],[_.MGLYPH,u.MGLYPH],[_.MI,u.MI],[_.MO,u.MO],[_.MN,u.MN],[_.MS,u.MS],[_.MTEXT,u.MTEXT],[_.NAV,u.NAV],[_.NOBR,u.NOBR],[_.NOFRAMES,u.NOFRAMES],[_.NOEMBED,u.NOEMBED],[_.NOSCRIPT,u.NOSCRIPT],[_.OBJECT,u.OBJECT],[_.OL,u.OL],[_.OPTGROUP,u.OPTGROUP],[_.OPTION,u.OPTION],[_.P,u.P],[_.PARAM,u.PARAM],[_.PLAINTEXT,u.PLAINTEXT],[_.PRE,u.PRE],[_.RB,u.RB],[_.RP,u.RP],[_.RT,u.RT],[_.RTC,u.RTC],[_.RUBY,u.RUBY],[_.S,u.S],[_.SCRIPT,u.SCRIPT],[_.SEARCH,u.SEARCH],[_.SECTION,u.SECTION],[_.SELECT,u.SELECT],[_.SOURCE,u.SOURCE],[_.SMALL,u.SMALL],[_.SPAN,u.SPAN],[_.STRIKE,u.STRIKE],[_.STRONG,u.STRONG],[_.STYLE,u.STYLE],[_.SUB,u.SUB],[_.SUMMARY,u.SUMMARY],[_.SUP,u.SUP],[_.TABLE,u.TABLE],[_.TBODY,u.TBODY],[_.TEMPLATE,u.TEMPLATE],[_.TEXTAREA,u.TEXTAREA],[_.TFOOT,u.TFOOT],[_.TD,u.TD],[_.TH,u.TH],[_.THEAD,u.THEAD],[_.TITLE,u.TITLE],[_.TR,u.TR],[_.TRACK,u.TRACK],[_.TT,u.TT],[_.U,u.U],[_.UL,u.UL],[_.SVG,u.SVG],[_.VAR,u.VAR],[_.WBR,u.WBR],[_.XMP,u.XMP]]);function ln(e){var t;return(t=Ep.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const P=u,gp={[k.HTML]:new Set([P.ADDRESS,P.APPLET,P.AREA,P.ARTICLE,P.ASIDE,P.BASE,P.BASEFONT,P.BGSOUND,P.BLOCKQUOTE,P.BODY,P.BR,P.BUTTON,P.CAPTION,P.CENTER,P.COL,P.COLGROUP,P.DD,P.DETAILS,P.DIR,P.DIV,P.DL,P.DT,P.EMBED,P.FIELDSET,P.FIGCAPTION,P.FIGURE,P.FOOTER,P.FORM,P.FRAME,P.FRAMESET,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HEADER,P.HGROUP,P.HR,P.HTML,P.IFRAME,P.IMG,P.INPUT,P.LI,P.LINK,P.LISTING,P.MAIN,P.MARQUEE,P.MENU,P.META,P.NAV,P.NOEMBED,P.NOFRAMES,P.NOSCRIPT,P.OBJECT,P.OL,P.P,P.PARAM,P.PLAINTEXT,P.PRE,P.SCRIPT,P.SECTION,P.SELECT,P.SOURCE,P.STYLE,P.SUMMARY,P.TABLE,P.TBODY,P.TD,P.TEMPLATE,P.TEXTAREA,P.TFOOT,P.TH,P.THEAD,P.TITLE,P.TR,P.TRACK,P.UL,P.WBR,P.XMP]),[k.MATHML]:new Set([P.MI,P.MO,P.MN,P.MS,P.MTEXT,P.ANNOTATION_XML]),[k.SVG]:new Set([P.TITLE,P.FOREIGN_OBJECT,P.DESC]),[k.XLINK]:new Set,[k.XML]:new Set,[k.XMLNS]:new Set},wa=new Set([P.H1,P.H2,P.H3,P.H4,P.H5,P.H6]);_.STYLE,_.SCRIPT,_.XMP,_.IFRAME,_.NOEMBED,_.NOFRAMES,_.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 Oe={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function bp(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function bn(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function Tp(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function _t(e){return Tp(e)||bn(e)}function Is(e){return _t(e)||bp(e)}function Xn(e){return e+32}function Do(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function Ns(e){return Do(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function yp(e){return e===E.NULL?w.nullCharacterReference:e>1114111?w.characterReferenceOutsideUnicodeRange:No(e)?w.surrogateCharacterReference:wo(e)?w.noncharacterCharacterReference:vo(e)||e===E.CARRIAGE_RETURN?w.controlCharacterReference:null}class xp{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 sp(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ro(Lo,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(w.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(w.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=yp(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?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||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:oe.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:oe.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:oe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:oe.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(Oo(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(w.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=ln(t.tagName),t.type===oe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(w.endTagWithAttributes),t.selfClosing&&this._err(w.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 oe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case oe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case oe.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:oe.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=Do(t)?oe.WHITESPACE_CHARACTER:t===E.NULL?oe.NULL_CHARACTER:oe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(oe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?yt.Attribute:yt.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 E.LESS_THAN_SIGN:{this.state=g.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=g.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=g.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_t(t))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=g.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=g.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(w.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(w.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(w.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_t(t))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(w.missingEndTagName),this.state=g.DATA;break}case E.EOF:{this._err(w.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(w.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=g.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.tagName+=Ne;break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(bn(t)?Xn(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=g.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_t(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 E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=g.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=g.SELF_CLOSING_START_TAG,!1;case E.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===E.SOLIDUS?this.state=g.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_t(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 E.SOLIDUS:{this.state=g.SCRIPT_DATA_END_TAG_OPEN;break}case E.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){_t(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===E.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.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 E.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_t(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){_t(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(ze.SCRIPT,!1)&&Ns(this.preprocessor.peek(ze.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ze.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 E.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=g.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.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(ze.SCRIPT,!1)&&Ns(this.preprocessor.peek(ze.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ze.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 E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(w.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 E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(w.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.name+=Ne;break}default:this.currentAttr.name+=String.fromCodePoint(bn(t)?Xn(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=g.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=g.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=g.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=g.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(w.missingAttributeValue),this.state=g.DATA,this.emitCurrentTagToken();break}default:this.state=g.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=Ne;break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=Ne;break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=Ne;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(w.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=g.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._err(w.missingWhitespaceBetweenAttributes),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=g.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._err(w.unexpectedSolidusInTag),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.data+=Ne;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ze.DASH_DASH,!0)?(this._createCommentToken(ze.DASH_DASH.length+1),this.state=g.COMMENT_START):this._consumeSequenceIfMatch(ze.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ze.DOCTYPE.length+1),this.state=g.DOCTYPE):this._consumeSequenceIfMatch(ze.CDATA_START,!0)?this.inForeignNode?this.state=g.CDATA_SECTION:(this._err(w.cdataInHtmlContent),this._createCommentToken(ze.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=g.BOGUS_COMMENT):this._ensureHibernation()||(this._err(w.incorrectlyOpenedComment),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=g.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(w.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 E.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(w.abruptClosingOfEmptyComment),this.state=g.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(w.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 E.HYPHEN_MINUS:{this.state=g.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=g.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.data+=Ne;break}case E.EOF:{this._err(w.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=g.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=g.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=g.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=g.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(w.nestedComment),this.state=g.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=g.COMMENT_END;break}case E.EOF:{this._err(w.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 E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=g.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(w.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 E.HYPHEN_MINUS:{n.data+="--!",this.state=g.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(w.incorrectlyClosedComment),this.state=g.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(w.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=g.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(w.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingWhitespaceBeforeDoctypeName),this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(bn(t))this._createDoctypeToken(String.fromCharCode(Xn(t))),this.state=g.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(w.unexpectedNullCharacter),this._createDoctypeToken(Ne),this.state=g.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(w.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.EOF:{this._err(w.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 E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=g.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.name+=Ne;break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(bn(t)?Xn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ze.PUBLIC,!1)?this.state=g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ze.SYSTEM,!1)?this.state=g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(w.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(w.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(w.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(w.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(w.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.publicId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(w.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.EOF:{this._err(w.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 E.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.publicId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(w.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.EOF:{this._err(w.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 E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(w.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(w.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(w.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(w.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.systemId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(w.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.EOF:{this._err(w.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 E.APOSTROPHE:{this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(w.unexpectedNullCharacter),n.systemId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(w.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.EOF:{this._err(w.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 E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.EOF:{this._err(w.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(w.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=g.DATA;break}case E.NULL:{this._err(w.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=g.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(w.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=g.CDATA_SECTION_END:(this._emitChars("]"),this.state=g.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=g.DATA;break}case E.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(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Is(this.preprocessor.peek(1))?g.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Is(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(w.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Po=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),vs=new Set([...Po,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),ir=new Set([u.APPLET,u.CAPTION,u.HTML,u.MARQUEE,u.OBJECT,u.TABLE,u.TD,u.TEMPLATE,u.TH]),Ap=new Set([...ir,u.OL,u.UL]),_p=new Set([...ir,u.BUTTON]),ws=new Set([u.ANNOTATION_XML,u.MI,u.MN,u.MO,u.MS,u.MTEXT]),Os=new Set([u.DESC,u.FOREIGN_OBJECT,u.TITLE]),Sp=new Set([u.TR,u.TEMPLATE,u.HTML]),Cp=new Set([u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML]),Ip=new Set([u.TABLE,u.TEMPLATE,u.HTML]),Np=new Set([u.TD,u.TH]);class vp{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=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===k.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])!==k.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(wa,k.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Np,k.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(Ip,k.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Cp,k.HTML)}clearBackToTableRowContext(){this.clearBackTo(Sp,k.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]===u.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]===u.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 k.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case k.SVG:{if(Os.has(a))return!1;break}case k.MATHML:{if(ws.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ir)}hasInListItemScope(t){return this.hasInDynamicScope(t,Ap)}hasInButtonScope(t){return this.hasInDynamicScope(t,_p)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case k.HTML:{if(wa.has(n))return!0;if(ir.has(n))return!1;break}case k.SVG:{if(Os.has(n))return!1;break}case k.MATHML:{if(ws.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===k.HTML)switch(this.tagIDs[n]){case t:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===k.HTML)switch(this.tagIDs[t]){case u.TBODY:case u.THEAD:case u.TFOOT:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===k.HTML)switch(this.tagIDs[n]){case t:return!0;case u.OPTION:case u.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Po.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;vs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&vs.has(this.currentTagId);)this.pop()}}const Qr=3;var ft;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ft||(ft={}));const Ls={type:ft.Marker};class wp{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 o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===ft.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===s){const d=this.treeAdapter.getAttrList(l);d.length===a&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Qr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Qr)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(c=>a.get(c.name)===c.value)&&(i+=1,i>=Qr&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ls)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ft.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ft.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(Ls);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ft.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ft.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ft.Element&&n.element===t)}}const St={createDocument(){return{nodeName:"#document",mode:et.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};St.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(St.isTextNode(n)){n.value+=t;return}}St.appendChild(e,St.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&St.isTextNode(r)?r.value+=t:St.insertBefore(e,St.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}}},Mo="html",Op="about:legacy-compat",Lp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Bo=["+//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//"],Rp=[...Bo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kp=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//"],Dp=[...Fo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Rs(e,t){return t.some(n=>e.startsWith(n))}function Pp(e){return e.name===Mo&&e.publicId===null&&(e.systemId===null||e.systemId===Op)}function Mp(e){if(e.name!==Mo)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Lp)return et.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),kp.has(n))return et.QUIRKS;let r=t===null?Rp:Bo;if(Rs(n,r))return et.QUIRKS;if(r=t===null?Fo:Dp,Rs(n,r))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const ks={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Bp="definitionurl",Fp="definitionURL",Hp=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])),Up=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:k.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:k.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:k.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:k.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:k.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:k.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:k.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:k.XML}],["xml:space",{prefix:"xml",name:"space",namespace:k.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:k.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:k.XMLNS}]]),jp=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])),$p=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function zp(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:r})=>r===Mt.COLOR||r===Mt.SIZE||r===Mt.FACE)||$p.has(t)}function Ho(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Bp){e.attrs[t].name=Fp;break}}function Uo(e){for(let t=0;t<e.attrs.length;t++){const n=Hp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function si(e){for(let t=0;t<e.attrs.length;t++){const n=Up.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 Yp(e){const t=jp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ln(e.tagName))}function Gp(e,t){return t===k.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function Vp(e,t,n){if(t===k.MATHML&&e===u.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Mt.ENCODING){const a=n[r].value.toLowerCase();return a===ks.TEXT_HTML||a===ks.APPLICATION_XML}}return t===k.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function qp(e,t,n,r){return(!r||r===k.HTML)&&Vp(e,t,n)||(!r||r===k.MATHML)&&Gp(e,t)}const Wp="hidden",Xp=8,Qp=3;var T;(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"})(T||(T={}));const Kp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jo=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),Ds={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:St,onParseError:null};class Ps{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=T.INITIAL,this.originalInsertionMode=T.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={...Ds,...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 xp(this.options,this),this.activeFormattingElements=new wp(this.treeAdapter),this.fragmentContextID=r?ln(this.treeAdapter.getTagName(r)):u.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new vp(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={...Ds,...n};t??(t=r.treeAdapter.createElement(_.TEMPLATE,k.HTML,[]));const a=r.treeAdapter.createElement("documentmock",k.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===u.TEMPLATE&&i.tmplInsertionModeStack.unshift(T.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:Kp,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)===k.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,k.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=Oe.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)===_.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==k.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=Oe.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=Oe.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=Oe.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=Oe.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(o=>this.treeAdapter.isDocumentTypeNode(o));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,k.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,k.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(_.HTML,k.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.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:c,endCol:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:l,endOffset:d})}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===oe.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===u.SVG&&this.treeAdapter.getTagName(n)===_.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===k.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(r,n,k.HTML)}_processToken(t){switch(t.type){case oe.CHARACTER:{this.onCharacter(t);break}case oe.NULL_CHARACTER:{this.onNullCharacter(t);break}case oe.COMMENT:{this.onComment(t);break}case oe.DOCTYPE:{this.onDoctype(t);break}case oe.START_TAG:{this._processStartTag(t);break}case oe.END_TAG:{this.onEndTag(t);break}case oe.EOF:{this.onEof(t);break}case oe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return qp(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ft.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=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=T.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=T.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=T.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=T.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=T.IN_TABLE;return}case u.BODY:{this.insertionMode=T.IN_BODY;return}case u.FRAMESET:{this.insertionMode=T.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=T.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=T.IN_HEAD;return}break}}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===u.TEMPLATE)break;if(r===u.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(t){return jo.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 u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===k.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case u.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 gp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){NE(this,t);return}switch(this.insertionMode){case T.INITIAL:{mn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{Sn(this,t);break}case T.IN_HEAD:{Cn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{In(this,t);break}case T.AFTER_HEAD:{Nn(this,t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:{zo(this,t);break}case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Xo(this,t);break}case T.IN_COLUMN_GROUP:{sr(this,t);break}case T.AFTER_BODY:{ur(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){IE(this,t);return}switch(this.insertionMode){case T.INITIAL:{mn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{Sn(this,t);break}case T.IN_HEAD:{Cn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{In(this,t);break}case T.AFTER_HEAD:{Nn(this,t);break}case T.TEXT:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_COLUMN_GROUP:{sr(this,t);break}case T.AFTER_BODY:{ur(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Oa(this,t);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{Oa(this,t);break}case T.IN_TABLE_TEXT:{pn(this,t);break}case T.AFTER_BODY:{a1(this,t);break}case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{i1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:{s1(this,t);break}case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:{this._err(t,w.misplacedDoctype);break}case T.IN_TABLE_TEXT:{pn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,w.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?vE(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{mn(this,t);break}case T.BEFORE_HTML:{u1(this,t);break}case T.BEFORE_HEAD:{c1(this,t);break}case T.IN_HEAD:{ut(this,t);break}case T.IN_HEAD_NO_SCRIPT:{f1(this,t);break}case T.AFTER_HEAD:{m1(this,t);break}case T.IN_BODY:{He(this,t);break}case T.IN_TABLE:{rn(this,t);break}case T.IN_TABLE_TEXT:{pn(this,t);break}case T.IN_CAPTION:{lE(this,t);break}case T.IN_COLUMN_GROUP:{ci(this,t);break}case T.IN_TABLE_BODY:{Cr(this,t);break}case T.IN_ROW:{Ir(this,t);break}case T.IN_CELL:{hE(this,t);break}case T.IN_SELECT:{Zo(this,t);break}case T.IN_SELECT_IN_TABLE:{pE(this,t);break}case T.IN_TEMPLATE:{gE(this,t);break}case T.AFTER_BODY:{TE(this,t);break}case T.IN_FRAMESET:{yE(this,t);break}case T.AFTER_FRAMESET:{AE(this,t);break}case T.AFTER_AFTER_BODY:{SE(this,t);break}case T.AFTER_AFTER_FRAMESET:{CE(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?wE(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{mn(this,t);break}case T.BEFORE_HTML:{o1(this,t);break}case T.BEFORE_HEAD:{l1(this,t);break}case T.IN_HEAD:{d1(this,t);break}case T.IN_HEAD_NO_SCRIPT:{h1(this,t);break}case T.AFTER_HEAD:{p1(this,t);break}case T.IN_BODY:{Sr(this,t);break}case T.TEXT:{eE(this,t);break}case T.IN_TABLE:{Ln(this,t);break}case T.IN_TABLE_TEXT:{pn(this,t);break}case T.IN_CAPTION:{dE(this,t);break}case T.IN_COLUMN_GROUP:{fE(this,t);break}case T.IN_TABLE_BODY:{La(this,t);break}case T.IN_ROW:{Ko(this,t);break}case T.IN_CELL:{mE(this,t);break}case T.IN_SELECT:{Jo(this,t);break}case T.IN_SELECT_IN_TABLE:{EE(this,t);break}case T.IN_TEMPLATE:{bE(this,t);break}case T.AFTER_BODY:{tc(this,t);break}case T.IN_FRAMESET:{xE(this,t);break}case T.AFTER_FRAMESET:{_E(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onEof(t){switch(this.insertionMode){case T.INITIAL:{mn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{Sn(this,t);break}case T.IN_HEAD:{Cn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{In(this,t);break}case T.AFTER_HEAD:{Nn(this,t);break}case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{qo(this,t);break}case T.TEXT:{tE(this,t);break}case T.IN_TABLE_TEXT:{pn(this,t);break}case T.IN_TEMPLATE:{ec(this,t);break}case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{oi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.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 T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{this._insertCharacters(t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{$o(this,t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Wo(this,t);break}}}}function Zp(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):Vo(e,t),n}function Jp(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 e1(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 o=e.activeFormattingElements.getElementEntry(s),c=o&&i>=Qp;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=t1(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function t1(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 n1(e,t,n){const r=e.treeAdapter.getTagName(t),a=ln(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===u.TEMPLATE&&i===k.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function r1(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 ui(e,t){for(let n=0;n<Xp;n++){const r=Zp(e,t);if(!r)break;const a=Jp(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=e1(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&n1(e,s,i),r1(e,a,r)}}function Oa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function a1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function i1(e,t){e._appendCommentNode(t,e.document)}function oi(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 s1(e,t){e._setDocumentType(t);const n=t.forceQuirks?et.QUIRKS:Mp(t);Pp(t)||e._err(t,w.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function mn(e,t){e._err(t,w.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function u1(e,t){t.tagID===u.HTML?(e._insertElement(t,k.HTML),e.insertionMode=T.BEFORE_HEAD):_n(e,t)}function o1(e,t){const n=t.tagID;(n===u.HTML||n===u.HEAD||n===u.BODY||n===u.BR)&&_n(e,t)}function _n(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function c1(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.HEAD:{e._insertElement(t,k.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break}default:Sn(e,t)}}function l1(e,t){const n=t.tagID;n===u.HEAD||n===u.BODY||n===u.HTML||n===u.BR?Sn(e,t):e._err(t,w.endTagWithoutMatchingOpenElement)}function Sn(e,t){e._insertFakeElement(_.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function ut(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,k.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,Oe.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Oe.RAWTEXT):(e._insertElement(t,k.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,Oe.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,Oe.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break}case u.HEAD:{e._err(t,w.misplacedStartTagForHeadElement);break}default:Cn(e,t)}}function d1(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{Cn(e,t);break}case u.TEMPLATE:{$t(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function $t(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,w.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,w.endTagWithoutMatchingOpenElement)}function Cn(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function f1(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{ut(e,t);break}case u.NOSCRIPT:{e._err(t,w.nestedNoscriptInHead);break}default:In(e,t)}}function h1(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=T.IN_HEAD;break}case u.BR:{In(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function In(e,t){const n=t.type===oe.EOF?w.openElementsLeftAfterEof:w.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function m1(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.BODY:{e._insertElement(t,k.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,k.HTML),e.insertionMode=T.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,w.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),ut(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,w.misplacedStartTagForHeadElement);break}default:Nn(e,t)}}function p1(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{Nn(e,t);break}case u.TEMPLATE:{$t(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function Nn(e,t){e._insertFakeElement(_.BODY,u.BODY),e.insertionMode=T.IN_BODY,_r(e,t)}function _r(e,t){switch(t.type){case oe.CHARACTER:{zo(e,t);break}case oe.WHITESPACE_CHARACTER:{$o(e,t);break}case oe.COMMENT:{Oa(e,t);break}case oe.START_TAG:{He(e,t);break}case oe.END_TAG:{Sr(e,t);break}case oe.EOF:{qo(e,t);break}}}function $o(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function zo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function E1(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function g1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function b1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,k.HTML),e.insertionMode=T.IN_FRAMESET)}function T1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,k.HTML)}function y1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),wa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,k.HTML)}function x1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,k.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function A1(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,k.HTML),n||(e.formElement=e.openElements.current))}function _1(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===u.LI&&a===u.LI||(n===u.DD||n===u.DT)&&(a===u.DD||a===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==u.ADDRESS&&a!==u.DIV&&a!==u.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,k.HTML)}function S1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,k.HTML),e.tokenizer.state=Oe.PLAINTEXT}function C1(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML),e.framesetOk=!1}function I1(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);n&&(ui(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function N1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function v1(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(ui(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,k.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function w1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function O1(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,k.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function Yo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,k.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Go(e){const t=Oo(e,Mt.TYPE);return t!=null&&t.toLowerCase()===Wp}function L1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,k.HTML),Go(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function R1(e,t){e._appendElement(t,k.HTML),t.ackSelfClosing=!0}function k1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,k.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function D1(e,t){t.tagName=_.IMG,t.tagID=u.IMG,Yo(e,t)}function P1(e,t){e._insertElement(t,k.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Oe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function M1(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}function B1(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}function Ms(e,t){e._switchToTextParsing(t,Oe.RAWTEXT)}function F1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function H1(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML)}function U1(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,k.HTML)}function j1(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,k.HTML)}function $1(e,t){e._reconstructActiveFormattingElements(),Ho(t),si(t),t.selfClosing?e._appendElement(t,k.MATHML):e._insertElement(t,k.MATHML),t.ackSelfClosing=!0}function z1(e,t){e._reconstructActiveFormattingElements(),Uo(t),si(t),t.selfClosing?e._appendElement(t,k.SVG):e._insertElement(t,k.SVG),t.ackSelfClosing=!0}function Bs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,k.HTML)}function He(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{N1(e,t);break}case u.A:{I1(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{y1(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{T1(e,t);break}case u.LI:case u.DD:case u.DT:{_1(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{Yo(e,t);break}case u.HR:{k1(e,t);break}case u.RB:case u.RTC:{U1(e,t);break}case u.RT:case u.RP:{j1(e,t);break}case u.PRE:case u.LISTING:{x1(e,t);break}case u.XMP:{M1(e,t);break}case u.SVG:{z1(e,t);break}case u.HTML:{E1(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{ut(e,t);break}case u.BODY:{g1(e,t);break}case u.FORM:{A1(e,t);break}case u.NOBR:{v1(e,t);break}case u.MATH:{$1(e,t);break}case u.TABLE:{O1(e,t);break}case u.INPUT:{L1(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{R1(e,t);break}case u.IMAGE:{D1(e,t);break}case u.BUTTON:{C1(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{w1(e,t);break}case u.IFRAME:{B1(e,t);break}case u.SELECT:{F1(e,t);break}case u.OPTION:case u.OPTGROUP:{H1(e,t);break}case u.NOEMBED:case u.NOFRAMES:{Ms(e,t);break}case u.FRAMESET:{b1(e,t);break}case u.TEXTAREA:{P1(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?Ms(e,t):Bs(e,t);break}case u.PLAINTEXT:{S1(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:Bs(e,t)}}function Y1(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function G1(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=T.AFTER_BODY,tc(e,t))}function V1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function q1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):n&&e.openElements.remove(n))}function W1(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(_.P,u.P),e._closePElement()}function X1(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function Q1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function K1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Z1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function J1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function Vo(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!==u.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 Sr(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{ui(e,t);break}case u.P:{W1(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{V1(e,t);break}case u.LI:{X1(e);break}case u.DD:case u.DT:{Q1(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{K1(e);break}case u.BR:{J1(e);break}case u.BODY:{Y1(e,t);break}case u.HTML:{G1(e,t);break}case u.FORM:{q1(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{Z1(e,t);break}case u.TEMPLATE:{$t(e,t);break}default:Vo(e,t)}}function qo(e,t){e.tmplInsertionModeStack.length>0?ec(e,t):oi(e,t)}function eE(e,t){var n;t.tagID===u.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function tE(e,t){e._err(t,w.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Kr(e,t){if(jo.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case oe.CHARACTER:{Xo(e,t);break}case oe.WHITESPACE_CHARACTER:{Wo(e,t);break}}else Hn(e,t)}function nE(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,k.HTML),e.insertionMode=T.IN_CAPTION}function rE(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,k.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function aE(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP,u.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,ci(e,t)}function iE(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,k.HTML),e.insertionMode=T.IN_TABLE_BODY}function sE(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY,u.TBODY),e.insertionMode=T.IN_TABLE_BODY,Cr(e,t)}function uE(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function oE(e,t){Go(t)?e._appendElement(t,k.HTML):Hn(e,t),t.ackSelfClosing=!0}function cE(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,k.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function rn(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{sE(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{ut(e,t);break}case u.COL:{aE(e,t);break}case u.FORM:{cE(e,t);break}case u.TABLE:{uE(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{iE(e,t);break}case u.INPUT:{oE(e,t);break}case u.CAPTION:{nE(e,t);break}case u.COLGROUP:{rE(e,t);break}default:Hn(e,t)}}function Ln(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{$t(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Hn(e,t)}}function Hn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_r(e,t),e.fosterParentingEnabled=n}function Wo(e,t){e.pendingCharacterTokens.push(t)}function Xo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function pn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Hn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Qo=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function lE(e,t){const n=t.tagID;Qo.has(n)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,rn(e,t)):He(e,t)}function dE(e,t){const n=t.tagID;switch(n){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,n===u.TABLE&&Ln(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Sr(e,t)}}function ci(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.COL:{e._appendElement(t,k.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{ut(e,t);break}default:sr(e,t)}}function fE(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case u.TEMPLATE:{$t(e,t);break}case u.COL:break;default:sr(e,t)}}function sr(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE,e._processToken(t))}function Cr(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,k.HTML),e.insertionMode=T.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_.TR,u.TR),e.insertionMode=T.IN_ROW,Ir(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,rn(e,t));break}default:rn(e,t)}}function La(e,t){const n=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,Ln(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:Ln(e,t)}}function Ir(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,k.HTML),e.insertionMode=T.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,Cr(e,t));break}default:rn(e,t)}}function Ko(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,La(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,La(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:Ln(e,t)}}function hE(e,t){const n=t.tagID;Qo.has(n)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),Ir(e,t)):He(e,t)}function mE(e,t){const n=t.tagID;switch(n){case u.TD:case u.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ko(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:Sr(e,t)}}function Zo(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,k.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,k.HTML);break}case u.HR:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._appendElement(t,k.HTML),t.ackSelfClosing=!0;break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{ut(e,t);break}}}function Jo(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{$t(e,t);break}}}function pE(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Zo(e,t)}function EE(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Jo(e,t)}function gE(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{ut(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,rn(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,ci(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,Cr(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,Ir(e,t);break}default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,He(e,t)}}function bE(e,t){t.tagID===u.TEMPLATE&&$t(e,t)}function ec(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oi(e,t)}function TE(e,t){t.tagID===u.HTML?He(e,t):ur(e,t)}function tc(e,t){var n;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.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 ur(e,t)}function ur(e,t){e.insertionMode=T.IN_BODY,_r(e,t)}function yE(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.FRAMESET:{e._insertElement(t,k.HTML);break}case u.FRAME:{e._appendElement(t,k.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{ut(e,t);break}}}function xE(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function AE(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.NOFRAMES:{ut(e,t);break}}}function _E(e,t){t.tagID===u.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function SE(e,t){t.tagID===u.HTML?He(e,t):nr(e,t)}function nr(e,t){e.insertionMode=T.IN_BODY,_r(e,t)}function CE(e,t){switch(t.tagID){case u.HTML:{He(e,t);break}case u.NOFRAMES:{ut(e,t);break}}}function IE(e,t){t.chars=Ne,e._insertCharacters(t)}function NE(e,t){e._insertCharacters(t),e.framesetOk=!1}function nc(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==k.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function vE(e,t){if(zp(t))nc(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===k.MATHML?Ho(t):r===k.SVG&&(Yp(t),Uo(t)),si(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function wE(e,t){if(t.tagID===u.P||t.tagID===u.BR){nc(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)===k.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}_.AREA,_.BASE,_.BASEFONT,_.BGSOUND,_.BR,_.COL,_.EMBED,_.FRAME,_.HR,_.IMG,_.INPUT,_.KEYGEN,_.LINK,_.META,_.PARAM,_.SOURCE,_.TRACK,_.WBR;const OE=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Fs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function rc(e,t){const n=UE(e),r=Co("type",{handlers:{root:LE,element:RE,text:kE,comment:ic,doctype:DE,raw:ME},unknown:BE}),a={parser:n?new Ps(Fs):Ps.getFragmentParser(void 0,Fs),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),dn(a,Et());const i=n?a.parser.document:a.parser.getFragment(),s=$m(i,{file:a.options.file});return a.stitches&&ni(s,"comment",function(o,c,l){const d=o;if(d.value.stitch&&l&&c!==void 0){const f=l.children;return f[c]=d.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function ac(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function LE(e,t){ac(e.children,t)}function RE(e,t){FE(e,t),ac(e.children,t),HE(e,t)}function kE(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:oe.CHARACTER,chars:e.value,location:Un(e)};dn(t,Et(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function DE(e,t){const n={type:oe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Un(e)};dn(t,Et(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function PE(e,t){t.stitches=!0;const n=jE(e);if("children"in e&&"children"in n){const r=rc({type:"root",children:e.children},t.options);n.children=r.children}ic({type:"comment",value:{stitch:n}},t)}function ic(e,t){const n=e.value,r={type:oe.COMMENT,data:n,location:Un(e)};dn(t,Et(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ME(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,sc(t,Et(e)),t.parser.tokenizer.write(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 BE(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))PE(n,t);else{let r="";throw OE.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 dn(e,t){sc(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=Oe.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 sc(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 FE(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Oe.PLAINTEXT)return;dn(t,Et(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Pt.html;a===Pt.html&&n==="svg"&&(a=Pt.svg);const i=qm({...e,children:[]},{space:a===Pt.svg?"svg":"html"}),s={type:oe.START_TAG,tagName:n,tagID:ln(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 HE(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&tp.includes(n)||t.parser.tokenizer.state===Oe.PLAINTEXT)return;dn(t,Tr(e));const r={type:oe.END_TAG,tagName:n,tagID:ln(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===Oe.RCDATA||t.parser.tokenizer.state===Oe.RAWTEXT||t.parser.tokenizer.state===Oe.SCRIPT_DATA)&&(t.parser.tokenizer.state=Oe.DATA)}function UE(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=Et(e)||{line:void 0,column:void 0,offset:void 0},n=Tr(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 jE(e){return"children"in e?nn({...e,children:[]}):nn(e)}function uc(e){return function(t,n){return rc(t,{...e,file:n})}}const $E=e=>ke.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},ke.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),zE=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=Ya();return C.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[C.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:C.jsx("div",{children:C.jsx($E,{fill:"#4564d6"})})}),C.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[C.jsx("p",{className:"font-bold",children:n}),C.jsx("div",{children:C.jsx(xo,{rehypePlugins:[uc],children:e&&e})})]})]})},YE=({})=>{const{companySettings:e}=I.useContext(sn);return C.jsx("div",{className:`assistant
|
|
59
|
+
`}),n}function Ns(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ks(e,t){const n=zm(e,t),r=n.one(e,void 0),i=Rm(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
60
|
+
`},i),a}function Wm(e,t){return e&&"run"in e?async function(n,r){const i=ks(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ks(n,{file:r,...t||e})}}function Os(e){if(e)throw e}var Jr,Ls;function Xm(){if(Ls)return Jr;Ls=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!d)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},s=function(c,f){n&&f.name==="__proto__"?n(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},u=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(r)return r(c,f).value}else return;return c[f]};return Jr=function o(){var c,f,d,h,m,E,A=arguments[0],_=1,y=arguments.length,v=!1;for(typeof A=="boolean"&&(v=A,A=arguments[1]||{},_=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});_<y;++_)if(c=arguments[_],c!=null)for(f in c)d=u(A,f),h=u(c,f),A!==h&&(v&&h&&(a(h)||(m=i(h)))?(m?(m=!1,E=d&&i(d)?d:[]):E=d&&a(d)?d:{},s(A,{name:f,newValue:o(v,E,h)})):typeof h<"u"&&s(A,{name:f,newValue:h}));return A},Jr}var Qm=Xm();const ei=ta(Qm);function Ui(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 Km(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(o,...c){const f=e[++a];let d=-1;if(o){s(o);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,f?Zm(f,u)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Zm(e,t){let n;return r;function r(...s){const u=e.length>s.length;let o;u&&s.push(i);try{o=e.apply(this,s)}catch(c){const f=c;if(u&&n)throw f;return i(f)}u||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(s,...u){n||(n=!0,t(s,...u))}function a(s){i(null,s)}}const ft={basename:Jm,dirname:ep,extname:tp,join:np,sep:"/"};function Jm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yn(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function ep(e){if(Yn(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 tp(e){Yn(e);let t=e.length,n=-1,r=0,i=-1,a=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?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function np(...e){let t=-1,n;for(;++t<e.length;)Yn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":rp(n)}function rp(e){Yn(e);const t=e.codePointAt(0)===47;let n=ip(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ip(e,t){let n="",r=0,i=-1,a=0,s=-1,u,o;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else u===46&&a>-1?a++:a=-1}return n}function Yn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ap={cwd:sp};function sp(){return"/"}function ji(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function up(e){if(typeof e=="string")e=new URL(e);else if(!ji(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 op(e)}function op(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 i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const ti=["history","path","basename","stem","extname","dirname"];class Go{constructor(t){let n;t?ji(t)?n={path:t}:typeof t=="string"||lp(t)?n={value:t}:n=t:n={},this.cwd=ap.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ti.length;){const a=ti[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)ti.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ft.basename(this.path):void 0}set basename(t){ri(t,"basename"),ni(t,"basename"),this.path=ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ft.dirname(this.path):void 0}set dirname(t){Rs(this.basename,"dirname"),this.path=ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ft.extname(this.path):void 0}set extname(t){if(ni(t,"extname"),Rs(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=ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ji(t)&&(t=up(t)),ri(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ft.basename(this.path,this.extname):void 0}set stem(t){ri(t,"stem"),ni(t,"stem"),this.path=ft.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ue(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ni(e,t){if(e&&e.includes(ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ft.sep+"`")}function ri(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Rs(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function lp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cp=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,r);const s=Object.getOwnPropertyNames(i);for(const u of s){const o=Object.getOwnPropertyDescriptor(i,u);o&&Object.defineProperty(a,u,o)}return a}),fp={}.hasOwnProperty;class Ta extends cp{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=Km()}copy(){const t=new Ta;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ei(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(si("data",this.frozen),this.namespace[t]=n,this):fp.call(this.namespace,t)&&this.namespace[t]||void 0:t?(si("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 i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=er(t),r=this.parser||this.Parser;return ii("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ii("process",this.parser||this.Parser),ai("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const u=er(t),o=r.parse(u);r.run(o,u,function(f,d,h){if(f||!d||!h)return c(f);const m=d,E=r.stringify(m,h);mp(E)?h.value=E:h.result=E,c(f,h)});function c(f,d){f||!d?s(f):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),ii("processSync",this.parser||this.Parser),ai("processSync",this.compiler||this.Compiler),this.process(t,i),Ps("processSync","process",n),r;function i(a,s){n=!0,Os(a),r=s}}run(t,n,r){Ds(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,u){const o=er(n);i.run(t,o,c);function c(f,d,h){const m=d||t;f?u(f):s?s(m):r(void 0,m,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Ps("runSync","run",r),i;function a(s,u){Os(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=er(n),i=this.compiler||this.Compiler;return ai("stringify",i),Ds(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(si("use",this.frozen),t!=null)if(typeof t=="function")o(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 a(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;o(f,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&&(i.settings=ei(!0,i.settings,c.settings))}function u(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,f){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===c){h=d;break}if(h===-1)r.push([c,...f]);else if(f.length>0){let[m,...E]=f;const A=r[h][1];Ui(A)&&Ui(m)&&(m=ei(!0,A,m)),r[h]=[c,m,...E]}}}}const dp=new Ta().freeze();function ii(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ai(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function si(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 Ds(e){if(!Ui(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ps(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function er(e){return hp(e)?e:new Go(e)}function hp(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mp(e){return typeof e=="string"||pp(e)}function pp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gp="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ms=[],Bs={allowDangerousHtml:!0},bp=/^(https?|ircs?|mailto|xmpp)$/i,Ep=[{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 Vo(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,u=e.rehypePlugins||Ms,o=e.remarkPlugins||Ms,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Bs}:Bs,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||Tp,m=dp().use(em).use(o).use(Wm,c).use(u),E=new Go;typeof r=="string"&&(E.value=r);for(const v of Ep)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+gp+v.id,void 0);const A=m.parse(E);let _=m.runSync(A,E);return i&&(_={type:"element",tagName:"div",properties:{className:i},children:_.type==="root"?_.children:[_]}),Dr(_,y),Bd(_,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function y(v,w,D){if(v.type==="raw"&&D&&typeof w=="number")return f?D.children.splice(w,1):D.children[w]={type:"text",value:v.value},w;if(v.type==="element"){let C;for(C in Qr)if(Object.hasOwn(Qr,C)&&Object.hasOwn(v.properties,C)){const k=v.properties[C],q=Qr[C];(q===null||q.includes(v.tagName))&&(v.properties[C]=h(String(k||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):s?s.includes(v.tagName):!1;if(!C&&n&&typeof w=="number"&&(C=!n(v,w,D)),C&&D&&typeof w=="number")return d&&v.children?D.children.splice(w,1,...v.children):D.children.splice(w,1),w}}}function Tp(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||bp.test(e.slice(0,t))?e:""}const Fs=/[#.]/g;function xp(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){Fs.lastIndex=i;const u=Fs.exec(n),o=n.slice(i,u?u.index:n.length);o&&(a?a==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:s=o,i+=o.length),u&&(a=u[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}const yp=new Set(["button","menu","reset","submit"]),$i={}.hasOwnProperty;function qo(e,t,n){const r=n&&Sp(n);function i(a,s,...u){let o=-1,c;if(a==null){c={type:"root",children:[]};const f=s;u.unshift(f)}else if(c=xp(a,t),c.tagName=c.tagName.toLowerCase(),r&&$i.call(r,c.tagName)&&(c.tagName=r[c.tagName]),Ap(s,c.tagName)){let f;for(f in s)$i.call(s,f)&&_p(e,c.properties,f,s[f])}else u.unshift(s);for(;++o<u.length;)zi(c.children,u[o]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return i}function Ap(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?yp.has(e.type.toLowerCase()):!("value"in e)}function _p(e,t,n,r){const i=Ir(e,n);let a=-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"?i.spaceSeparated?s=ss(r):i.commaSeparated?s=ts(r):i.commaOrSpaceSeparated?s=ss(ts(r).join(" ")):s=Hs(i,i.property,r):Array.isArray(r)?s=r.concat():s=i.property==="style"?Cp(r):String(r);if(Array.isArray(s)){const u=[];for(;++a<s.length;){const o=Hs(i,i.property,s[a]);u[a]=o}s=u}if(i.property==="className"&&Array.isArray(t.className)){const u=s;s=t.className.concat(u)}t[i.property]=s}}function zi(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;)zi(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?zi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Hs(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Dn(n)===Dn(t)))return!0}return n}function Cp(e){const t=[];let n;for(n in e)$i.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Sp(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const wp=["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"],Ip=qo($n,"div"),vp=qo(Ot,"g",wp);function Np(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let u=n[s];if(u===void 0){const o=Us(t,n[s-1]);u=o===-1?t.length+1:o+1,n[s]=u}if(u>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const u=n[n.length-1],o=Us(t,u),c=o===-1?t.length+1:o+1;if(u===c)break;n.push(c)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Us(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
61
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Ht={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/"},Wo={}.hasOwnProperty,kp=Object.prototype;function Op(e,t){const n=t||{};return xa({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ot:$n,verbose:n.verbose||!1},e)}function xa(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},or(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Xo(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=Np(a),u=s.toPoint(0),o=s.toPoint(a.length);n.position={start:u,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},or(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},or(e,r,n),n}default:return n=Lp(e,t),n}}function Xo(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=xa(e,t[n]);r.push(i)}return r}function Lp(e,t){const n=e.schema;e.schema=t.namespaceURI===Ht.svg?Ot:$n;let r=-1;const i={};for(;++r<t.attrs.length;){const u=t.attrs[r],o=(u.prefix?u.prefix+":":"")+u.name;Wo.call(kp,o)||(i[o]=u.value)}const s=(e.schema.space==="svg"?vp:Ip)(t.tagName,i,Xo(e,t.childNodes));if(or(e,t,s),s.tagName==="template"){const u=t,o=u.sourceCodeLocation,c=o&&o.startTag&&rn(o.startTag),f=o&&o.endTag&&rn(o.endTag),d=xa(e,u.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),s.content=d}return e.schema=n,s}function or(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Rp(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Rp(e,t,n){const r=rn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)Wo.call(n.attrs,s)&&(a[Ir(e.schema,s).property]=rn(n.attrs[s]));n.startTag;const u=rn(n.startTag),o=n.endTag?rn(n.endTag):void 0,c={opening:u};o&&(c.closing=o),c.properties=a,t.data={position:c}}}return r}function rn(e){const t=js({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=js({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function js(e){return e.line&&e.column?e:void 0}const $s={}.hasOwnProperty;function Qo(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const u=r.handlers;if(i&&$s.call(i,e)){const o=String(i[e]);s=$s.call(u,o)?u[o]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Dp={},Pp={}.hasOwnProperty,Ko=Qo("type",{handlers:{root:Bp,element:$p,text:Up,comment:jp,doctype:Hp}});function Mp(e,t){const r=(t||Dp).space;return Ko(e,r==="svg"?Ot:$n)}function Bp(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ya(e.children,n,t),mn(e,n),n}function Fp(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ya(e.children,n,t),mn(e,n),n}function Hp(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return mn(e,t),t}function Up(e){const t={nodeName:"#text",value:e.value,parentNode:null};return mn(e,t),t}function jp(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return mn(e,t),t}function $p(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ot);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Pp.call(e.properties,a)){const o=zp(r,a,e.properties[a]);o&&i.push(o)}}const s=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Ht[s],childNodes:[],parentNode:null};return u.childNodes=ya(e.children,u,r),mn(e,u),e.tagName==="template"&&e.content&&(u.content=Fp(e.content,r)),u}function zp(e,t,n){const r=Ir(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?oo(n):Eo(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Ht[r.space]}return i}function ya(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=Ko(e[r],n);a.parentNode=t,i.push(a)}return i}function mn(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 Yp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Gp=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]),ve="�";var g;(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"})(g||(g={}));const Ve={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Zo(e){return e>=55296&&e<=57343}function Vp(e){return e>=56320&&e<=57343}function qp(e,t){return(e-55296)*1024+9216+t}function Jo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function el(e){return e>=64976&&e<=65007||Gp.has(e)}var L;(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"})(L||(L={}));const Wp=65536;class Xp{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=Wp,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:i,offset:a}=this,s=i+n,u=a+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(Vp(n))return this.pos++,this._addGap(),qp(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,g.EOF;return this._err(L.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,g.EOF;const r=this.html.charCodeAt(n);return r===g.CARRIAGE_RETURN?g.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,g.EOF;let t=this.html.charCodeAt(this.pos);return t===g.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,g.LINE_FEED):t===g.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Zo(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===g.LINE_FEED||t===g.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Jo(t)?this._err(L.controlCharacterInInputStream):el(t)&&this._err(L.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var le;(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"})(le||(le={}));function tl(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 nl=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))),Qp=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ui;const Kp=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]]),Zp=(ui=String.fromCodePoint)!==null&&ui!==void 0?ui: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 Jp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Kp.get(e))!==null&&t!==void 0?t:e}var Be;(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"})(Be||(Be={}));const e1=32;var vt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(vt||(vt={}));function Yi(e){return e>=Be.ZERO&&e<=Be.NINE}function t1(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function n1(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||Yi(e)}function r1(e){return e===Be.EQUALS||n1(e)}var Me;(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"})(Me||(Me={}));var At;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(At||(At={}));class rl{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=At.Strict}startEntity(t){this.decodeMode=t,this.state=Me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Me.EntityStart:return t.charCodeAt(n)===Be.NUM?(this.state=Me.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Me.NamedEntity,this.stateNamedEntity(t,n));case Me.NumericStart:return this.stateNumericStart(t,n);case Me.NumericDecimal:return this.stateNumericDecimal(t,n);case Me.NumericHex:return this.stateNumericHex(t,n);case Me.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|e1)===Be.LOWER_X?(this.state=Me.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Me.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Yi(i)||t1(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Yi(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,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===Be.SEMI)this.consumed+=1;else if(this.decodeMode===At.Strict)return 0;return this.emitCodePoint(Jp(this.result),this.consumed),this.errors&&(t!==Be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&vt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=i1(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===At.Attribute&&(a===0||r1(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&vt.VALUE_LENGTH)>>14,a!==0){if(s===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==At.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&vt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~vt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Me.NamedEntity:return this.result!==0&&(this.decodeMode!==At.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Me.NumericDecimal:return this.emitNumericEntity(0,2);case Me.NumericHex:return this.emitNumericEntity(0,3);case Me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Me.EntityStart:return 0}}}function il(e){let t="";const n=new rl(e,r=>t+=Zp(r));return function(i,a){let s=0,u=0;for(;(u=i.indexOf("&",u))>=0;){t+=i.slice(s,u),n.startEntity(a);const c=n.write(i,u+1);if(c<0){s=u+n.end();break}s=u+c,u=c===0?s+1:s}const o=t+i.slice(s);return t="",o}}function i1(e,t,n,r){const i=(t&vt.BRANCH_LENGTH)>>7,a=t&vt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const o=r-a;return o<0||o>=i?-1:e[n+o]-1}let s=n,u=s+i-1;for(;s<=u;){const o=s+u>>>1,c=e[o];if(c<r)s=o+1;else if(c>r)u=o-1;else return e[o+i]}return-1}il(nl);il(Qp);var P;(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/"})(P||(P={}));var Ut;(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"})(Ut||(Ut={}));var nt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(nt||(nt={}));var I;(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"})(I||(I={}));var l;(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"})(l||(l={}));const a1=new Map([[I.A,l.A],[I.ADDRESS,l.ADDRESS],[I.ANNOTATION_XML,l.ANNOTATION_XML],[I.APPLET,l.APPLET],[I.AREA,l.AREA],[I.ARTICLE,l.ARTICLE],[I.ASIDE,l.ASIDE],[I.B,l.B],[I.BASE,l.BASE],[I.BASEFONT,l.BASEFONT],[I.BGSOUND,l.BGSOUND],[I.BIG,l.BIG],[I.BLOCKQUOTE,l.BLOCKQUOTE],[I.BODY,l.BODY],[I.BR,l.BR],[I.BUTTON,l.BUTTON],[I.CAPTION,l.CAPTION],[I.CENTER,l.CENTER],[I.CODE,l.CODE],[I.COL,l.COL],[I.COLGROUP,l.COLGROUP],[I.DD,l.DD],[I.DESC,l.DESC],[I.DETAILS,l.DETAILS],[I.DIALOG,l.DIALOG],[I.DIR,l.DIR],[I.DIV,l.DIV],[I.DL,l.DL],[I.DT,l.DT],[I.EM,l.EM],[I.EMBED,l.EMBED],[I.FIELDSET,l.FIELDSET],[I.FIGCAPTION,l.FIGCAPTION],[I.FIGURE,l.FIGURE],[I.FONT,l.FONT],[I.FOOTER,l.FOOTER],[I.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[I.FORM,l.FORM],[I.FRAME,l.FRAME],[I.FRAMESET,l.FRAMESET],[I.H1,l.H1],[I.H2,l.H2],[I.H3,l.H3],[I.H4,l.H4],[I.H5,l.H5],[I.H6,l.H6],[I.HEAD,l.HEAD],[I.HEADER,l.HEADER],[I.HGROUP,l.HGROUP],[I.HR,l.HR],[I.HTML,l.HTML],[I.I,l.I],[I.IMG,l.IMG],[I.IMAGE,l.IMAGE],[I.INPUT,l.INPUT],[I.IFRAME,l.IFRAME],[I.KEYGEN,l.KEYGEN],[I.LABEL,l.LABEL],[I.LI,l.LI],[I.LINK,l.LINK],[I.LISTING,l.LISTING],[I.MAIN,l.MAIN],[I.MALIGNMARK,l.MALIGNMARK],[I.MARQUEE,l.MARQUEE],[I.MATH,l.MATH],[I.MENU,l.MENU],[I.META,l.META],[I.MGLYPH,l.MGLYPH],[I.MI,l.MI],[I.MO,l.MO],[I.MN,l.MN],[I.MS,l.MS],[I.MTEXT,l.MTEXT],[I.NAV,l.NAV],[I.NOBR,l.NOBR],[I.NOFRAMES,l.NOFRAMES],[I.NOEMBED,l.NOEMBED],[I.NOSCRIPT,l.NOSCRIPT],[I.OBJECT,l.OBJECT],[I.OL,l.OL],[I.OPTGROUP,l.OPTGROUP],[I.OPTION,l.OPTION],[I.P,l.P],[I.PARAM,l.PARAM],[I.PLAINTEXT,l.PLAINTEXT],[I.PRE,l.PRE],[I.RB,l.RB],[I.RP,l.RP],[I.RT,l.RT],[I.RTC,l.RTC],[I.RUBY,l.RUBY],[I.S,l.S],[I.SCRIPT,l.SCRIPT],[I.SEARCH,l.SEARCH],[I.SECTION,l.SECTION],[I.SELECT,l.SELECT],[I.SOURCE,l.SOURCE],[I.SMALL,l.SMALL],[I.SPAN,l.SPAN],[I.STRIKE,l.STRIKE],[I.STRONG,l.STRONG],[I.STYLE,l.STYLE],[I.SUB,l.SUB],[I.SUMMARY,l.SUMMARY],[I.SUP,l.SUP],[I.TABLE,l.TABLE],[I.TBODY,l.TBODY],[I.TEMPLATE,l.TEMPLATE],[I.TEXTAREA,l.TEXTAREA],[I.TFOOT,l.TFOOT],[I.TD,l.TD],[I.TH,l.TH],[I.THEAD,l.THEAD],[I.TITLE,l.TITLE],[I.TR,l.TR],[I.TRACK,l.TRACK],[I.TT,l.TT],[I.U,l.U],[I.UL,l.UL],[I.SVG,l.SVG],[I.VAR,l.VAR],[I.WBR,l.WBR],[I.XMP,l.XMP]]);function pn(e){var t;return(t=a1.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const B=l,s1={[P.HTML]:new Set([B.ADDRESS,B.APPLET,B.AREA,B.ARTICLE,B.ASIDE,B.BASE,B.BASEFONT,B.BGSOUND,B.BLOCKQUOTE,B.BODY,B.BR,B.BUTTON,B.CAPTION,B.CENTER,B.COL,B.COLGROUP,B.DD,B.DETAILS,B.DIR,B.DIV,B.DL,B.DT,B.EMBED,B.FIELDSET,B.FIGCAPTION,B.FIGURE,B.FOOTER,B.FORM,B.FRAME,B.FRAMESET,B.H1,B.H2,B.H3,B.H4,B.H5,B.H6,B.HEAD,B.HEADER,B.HGROUP,B.HR,B.HTML,B.IFRAME,B.IMG,B.INPUT,B.LI,B.LINK,B.LISTING,B.MAIN,B.MARQUEE,B.MENU,B.META,B.NAV,B.NOEMBED,B.NOFRAMES,B.NOSCRIPT,B.OBJECT,B.OL,B.P,B.PARAM,B.PLAINTEXT,B.PRE,B.SCRIPT,B.SECTION,B.SELECT,B.SOURCE,B.STYLE,B.SUMMARY,B.TABLE,B.TBODY,B.TD,B.TEMPLATE,B.TEXTAREA,B.TFOOT,B.TH,B.THEAD,B.TITLE,B.TR,B.TRACK,B.UL,B.WBR,B.XMP]),[P.MATHML]:new Set([B.MI,B.MO,B.MN,B.MS,B.MTEXT,B.ANNOTATION_XML]),[P.SVG]:new Set([B.TITLE,B.FOREIGN_OBJECT,B.DESC]),[P.XLINK]:new Set,[P.XML]:new Set,[P.XMLNS]:new Set},Gi=new Set([B.H1,B.H2,B.H3,B.H4,B.H5,B.H6]);I.STYLE,I.SCRIPT,I.XMP,I.IFRAME,I.NOEMBED,I.NOFRAMES,I.PLAINTEXT;var b;(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"})(b||(b={}));const Oe={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function u1(e){return e>=g.DIGIT_0&&e<=g.DIGIT_9}function _n(e){return e>=g.LATIN_CAPITAL_A&&e<=g.LATIN_CAPITAL_Z}function o1(e){return e>=g.LATIN_SMALL_A&&e<=g.LATIN_SMALL_Z}function wt(e){return o1(e)||_n(e)}function zs(e){return wt(e)||u1(e)}function tr(e){return e+32}function al(e){return e===g.SPACE||e===g.LINE_FEED||e===g.TABULATION||e===g.FORM_FEED}function Ys(e){return al(e)||e===g.SOLIDUS||e===g.GREATER_THAN_SIGN}function l1(e){return e===g.NULL?L.nullCharacterReference:e>1114111?L.characterReferenceOutsideUnicodeRange:Zo(e)?L.surrogateCharacterReference:el(e)?L.noncharacterCharacterReference:Jo(e)||e===g.CARRIAGE_RETURN?L.controlCharacterReference:null}class c1{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=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Xp(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new rl(nl,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(L.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(L.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=l1(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.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?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||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:le.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:le.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:le.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:le.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(tl(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.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=pn(t.tagName),t.type===le.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.endTagWithAttributes),t.selfClosing&&this._err(L.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 le.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case le.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case le.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:le.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=al(t)?le.WHITESPACE_CHARACTER:t===g.NULL?le.NULL_CHARACTER:le.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(le.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?At.Attribute:At.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case g.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitCodePoint(t);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case g.AMPERSAND:{this._startCharacterReference();break}case g.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ve);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case g.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ve);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ve);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ve);break}case g.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(wt(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case g.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case g.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case g.QUESTION_MARK:{this._err(L.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case g.EOF:{this._err(L.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(wt(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case g.GREATER_THAN_SIGN:{this._err(L.missingEndTagName),this.state=b.DATA;break}case g.EOF:{this._err(L.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.tagName+=ve;break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(_n(t)?tr(t):t)}}_stateRcdataLessThanSign(t){t===g.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){wt(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.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 g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case g.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case g.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===g.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){wt(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case g.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case g.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){wt(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===g.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===g.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case g.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ve);break}case g.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case g.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case g.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case g.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case g.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===g.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:wt(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){wt(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&Ys(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case g.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ve);break}case g.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case g.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case g.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case g.HYPHEN_MINUS:{this._emitChars("-");break}case g.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case g.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case g.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===g.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&Ys(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case g.EQUALS_SIGN:{this._err(L.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:case g.SOLIDUS:case g.GREATER_THAN_SIGN:case g.EOF:{this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case g.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:{this._err(L.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.name+=ve;break}default:this.currentAttr.name+=String.fromCodePoint(_n(t)?tr(t):t)}}_stateAfterAttributeName(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case g.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(L.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case g.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case g.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case g.AMPERSAND:{this._startCharacterReference();break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case g.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case g.QUOTATION_MARK:case g.APOSTROPHE:case g.LESS_THAN_SIGN:case g.EQUALS_SIGN:case g.GRAVE_ACCENT:{this._err(L.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case g.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case g.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case g.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case g.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case g.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.data+=ve;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ve.DASH_DASH,!0)?(this._createCommentToken(Ve.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(Ve.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ve.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(Ve.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(L.cdataInHtmlContent),this._createCommentToken(Ve.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case g.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case g.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case g.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case g.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.data+=ve;break}case g.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case g.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case g.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===g.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===g.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==g.GREATER_THAN_SIGN&&t!==g.EOF&&this._err(L.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case g.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case g.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case g.HYPHEN_MINUS:{n.data+="-";break}case g.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case g.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case g.GREATER_THAN_SIGN:{this._err(L.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case g.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case g.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(_n(t))this._createDoctypeToken(String.fromCharCode(tr(t))),this.state=b.DOCTYPE_NAME;else switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.NULL:{this._err(L.unexpectedNullCharacter),this._createDoctypeToken(ve),this.state=b.DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this._err(L.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.EOF:{this._err(L.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=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.name+=ve;break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(_n(t)?tr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ve.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ve.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case g.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=ve;break}case g.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.EOF:{this._err(L.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 g.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=ve;break}case g.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.EOF:{this._err(L.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 g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case g.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.QUOTATION_MARK:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case g.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case g.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case g.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=ve;break}case g.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.EOF:{this._err(L.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 g.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case g.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=ve;break}case g.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.EOF:{this._err(L.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 g.SPACE:case g.LINE_FEED:case g.TABULATION:case g.FORM_FEED:break;case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case g.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case g.NULL:{this._err(L.unexpectedNullCharacter);break}case g.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case g.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case g.EOF:{this._err(L.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===g.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case g.GREATER_THAN_SIGN:{this.state=b.DATA;break}case g.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.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(g.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&zs(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){zs(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===g.SEMICOLON&&this._err(L.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const sl=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),Gs=new Set([...sl,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),mr=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),f1=new Set([...mr,l.OL,l.UL]),d1=new Set([...mr,l.BUTTON]),Vs=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),qs=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),h1=new Set([l.TR,l.TEMPLATE,l.HTML]),m1=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),p1=new Set([l.TABLE,l.TEMPLATE,l.HTML]),g1=new Set([l.TD,l.TH]);class b1{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=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===P.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 i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===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])!==P.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(Gi,P.HTML)}popUntilTableCellPopped(){this.popUntilPopped(g1,P.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(p1,P.HTML)}clearBackToTableBodyContext(){this.clearBackTo(m1,P.HTML)}clearBackToTableRowContext(){this.clearBackTo(h1,P.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]===l.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]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case P.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case P.SVG:{if(qs.has(i))return!1;break}case P.MATHML:{if(Vs.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,mr)}hasInListItemScope(t){return this.hasInDynamicScope(t,f1)}hasInButtonScope(t){return this.hasInDynamicScope(t,d1)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case P.HTML:{if(Gi.has(n))return!0;if(mr.has(n))return!1;break}case P.SVG:{if(qs.has(n))return!1;break}case P.MATHML:{if(Vs.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===P.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;sl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Gs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Gs.has(this.currentTagId);)this.pop()}}const oi=3;var pt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pt||(pt={}));const Ws={type:pt.Marker};class E1{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const o=this.entries[u];if(o.type===pt.Marker)break;const{element:c}=o;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const f=this.treeAdapter.getAttrList(c);f.length===i&&r.push({idx:u,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<oi)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<oi)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const u=r[s];u.attrs.every(o=>i.get(o.name)===o.value)&&(a+=1,a>=oi&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Ws)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:pt.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(Ws);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===pt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===pt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pt.Element&&n.element===t)}}const It={createDocument(){return{nodeName:"#document",mode:nt.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 i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};It.appendChild(e,a)}},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(It.isTextNode(n)){n.value+=t;return}}It.appendChild(e,It.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&It.isTextNode(r)?r.value+=t:It.insertBefore(e,It.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}}},ul="html",T1="about:legacy-compat",x1="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ol=["+//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//"],y1=[...ol,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],A1=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ll=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],_1=[...ll,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Xs(e,t){return t.some(n=>e.startsWith(n))}function C1(e){return e.name===ul&&e.publicId===null&&(e.systemId===null||e.systemId===T1)}function S1(e){if(e.name!==ul)return nt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===x1)return nt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),A1.has(n))return nt.QUIRKS;let r=t===null?y1:ol;if(Xs(n,r))return nt.QUIRKS;if(r=t===null?ll:_1,Xs(n,r))return nt.LIMITED_QUIRKS}return nt.NO_QUIRKS}const Qs={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},w1="definitionurl",I1="definitionURL",v1=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])),N1=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:P.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:P.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:P.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:P.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:P.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:P.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:P.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:P.XML}],["xml:space",{prefix:"xml",name:"space",namespace:P.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:P.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:P.XMLNS}]]),k1=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])),O1=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function L1(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===Ut.COLOR||r===Ut.SIZE||r===Ut.FACE)||O1.has(t)}function cl(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===w1){e.attrs[t].name=I1;break}}function fl(e){for(let t=0;t<e.attrs.length;t++){const n=v1.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Aa(e){for(let t=0;t<e.attrs.length;t++){const n=N1.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 R1(e){const t=k1.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=pn(e.tagName))}function D1(e,t){return t===P.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function P1(e,t,n){if(t===P.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ut.ENCODING){const i=n[r].value.toLowerCase();return i===Qs.TEXT_HTML||i===Qs.APPLICATION_XML}}return t===P.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function M1(e,t,n,r){return(!r||r===P.HTML)&&P1(e,t,n)||(!r||r===P.MATHML)&&D1(e,t)}const B1="hidden",F1=8,H1=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 U1={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},dl=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),Ks={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:It,onParseError:null};class Zs{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,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={...Ks,...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 c1(this.options,this),this.activeFormattingElements=new E1(this.treeAdapter),this.fragmentContextID=r?pn(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new b1(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={...Ks,...n};t??(t=r.treeAdapter.createElement(I.TEMPLATE,P.HTML,[]));const i=r.treeAdapter.createElement("documentmock",P.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===l.TEMPLATE&&a.tmplInsertionModeStack.unshift(x.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:U1,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===P.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,P.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=Oe.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)===I.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==P.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=Oe.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=Oe.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=Oe.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=Oe.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),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,P.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,P.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(I.HTML,P.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.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 i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:o,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:o,endCol:c,endOffset:f})}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,i=this.treeAdapter.getTagName(t),a=n.type===le.END_TAG&&i===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,a)}}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===l.SVG&&this.treeAdapter.getTagName(n)===I.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===P.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&!this._isIntegrationPoint(r,n,P.HTML)}_processToken(t){switch(t.type){case le.CHARACTER:{this.onCharacter(t);break}case le.NULL_CHARACTER:{this.onNullCharacter(t);break}case le.COMMENT:{this.onComment(t);break}case le.DOCTYPE:{this.onDoctype(t);break}case le.START_TAG:{this._processStartTag(t);break}case le.END_TAG:{this.onEndTag(t);break}case le.EOF:{this.onEof(t);break}case le.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return M1(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===pt.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=x.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=x.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=x.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=x.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=x.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=x.IN_TABLE;return}case l.BODY:{this.insertionMode=x.IN_BODY;return}case l.FRAMESET:{this.insertionMode=x.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?x.AFTER_HEAD:x.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=x.IN_CELL;return}break}case l.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===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=x.IN_SELECT_IN_TABLE;return}}this.insertionMode=x.IN_SELECT}_isElementCausesFosterParenting(t){return dl.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 l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===P.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.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 s1[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gb(this,t);return}switch(this.insertionMode){case x.INITIAL:{Tn(this,t);break}case x.BEFORE_HTML:{vn(this,t);break}case x.BEFORE_HEAD:{Nn(this,t);break}case x.IN_HEAD:{kn(this,t);break}case x.IN_HEAD_NO_SCRIPT:{On(this,t);break}case x.AFTER_HEAD:{Ln(this,t);break}case x.IN_BODY:case x.IN_CAPTION:case x.IN_CELL:case x.IN_TEMPLATE:{ml(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:{li(this,t);break}case x.IN_TABLE_TEXT:{xl(this,t);break}case x.IN_COLUMN_GROUP:{pr(this,t);break}case x.AFTER_BODY:{gr(this,t);break}case x.AFTER_AFTER_BODY:{lr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pb(this,t);return}switch(this.insertionMode){case x.INITIAL:{Tn(this,t);break}case x.BEFORE_HTML:{vn(this,t);break}case x.BEFORE_HEAD:{Nn(this,t);break}case x.IN_HEAD:{kn(this,t);break}case x.IN_HEAD_NO_SCRIPT:{On(this,t);break}case x.AFTER_HEAD:{Ln(this,t);break}case x.TEXT:{this._insertCharacters(t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{li(this,t);break}case x.IN_COLUMN_GROUP:{pr(this,t);break}case x.AFTER_BODY:{gr(this,t);break}case x.AFTER_AFTER_BODY:{lr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Vi(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:{Vi(this,t);break}case x.IN_TABLE_TEXT:{xn(this,t);break}case x.AFTER_BODY:{q1(this,t);break}case x.AFTER_AFTER_BODY:case x.AFTER_AFTER_FRAMESET:{W1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case x.INITIAL:{X1(this,t);break}case x.BEFORE_HEAD:case x.IN_HEAD:case x.IN_HEAD_NO_SCRIPT:case x.AFTER_HEAD:{this._err(t,L.misplacedDoctype);break}case x.IN_TABLE_TEXT:{xn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,L.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?bb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case x.INITIAL:{Tn(this,t);break}case x.BEFORE_HTML:{Q1(this,t);break}case x.BEFORE_HEAD:{Z1(this,t);break}case x.IN_HEAD:{ct(this,t);break}case x.IN_HEAD_NO_SCRIPT:{tg(this,t);break}case x.AFTER_HEAD:{rg(this,t);break}case x.IN_BODY:{je(this,t);break}case x.IN_TABLE:{ln(this,t);break}case x.IN_TABLE_TEXT:{xn(this,t);break}case x.IN_CAPTION:{Jg(this,t);break}case x.IN_COLUMN_GROUP:{Sa(this,t);break}case x.IN_TABLE_BODY:{Br(this,t);break}case x.IN_ROW:{Fr(this,t);break}case x.IN_CELL:{nb(this,t);break}case x.IN_SELECT:{_l(this,t);break}case x.IN_SELECT_IN_TABLE:{ib(this,t);break}case x.IN_TEMPLATE:{sb(this,t);break}case x.AFTER_BODY:{ob(this,t);break}case x.IN_FRAMESET:{lb(this,t);break}case x.AFTER_FRAMESET:{fb(this,t);break}case x.AFTER_AFTER_BODY:{hb(this,t);break}case x.AFTER_AFTER_FRAMESET:{mb(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Eb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case x.INITIAL:{Tn(this,t);break}case x.BEFORE_HTML:{K1(this,t);break}case x.BEFORE_HEAD:{J1(this,t);break}case x.IN_HEAD:{eg(this,t);break}case x.IN_HEAD_NO_SCRIPT:{ng(this,t);break}case x.AFTER_HEAD:{ig(this,t);break}case x.IN_BODY:{Mr(this,t);break}case x.TEXT:{zg(this,t);break}case x.IN_TABLE:{Mn(this,t);break}case x.IN_TABLE_TEXT:{xn(this,t);break}case x.IN_CAPTION:{eb(this,t);break}case x.IN_COLUMN_GROUP:{tb(this,t);break}case x.IN_TABLE_BODY:{qi(this,t);break}case x.IN_ROW:{Al(this,t);break}case x.IN_CELL:{rb(this,t);break}case x.IN_SELECT:{Cl(this,t);break}case x.IN_SELECT_IN_TABLE:{ab(this,t);break}case x.IN_TEMPLATE:{ub(this,t);break}case x.AFTER_BODY:{wl(this,t);break}case x.IN_FRAMESET:{cb(this,t);break}case x.AFTER_FRAMESET:{db(this,t);break}case x.AFTER_AFTER_BODY:{lr(this,t);break}}}onEof(t){switch(this.insertionMode){case x.INITIAL:{Tn(this,t);break}case x.BEFORE_HTML:{vn(this,t);break}case x.BEFORE_HEAD:{Nn(this,t);break}case x.IN_HEAD:{kn(this,t);break}case x.IN_HEAD_NO_SCRIPT:{On(this,t);break}case x.AFTER_HEAD:{Ln(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:{El(this,t);break}case x.TEXT:{Yg(this,t);break}case x.IN_TABLE_TEXT:{xn(this,t);break}case x.IN_TEMPLATE:{Sl(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:{Ca(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===g.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:{hl(this,t);break}case x.IN_TABLE:case x.IN_TABLE_BODY:case x.IN_ROW:{li(this,t);break}case x.IN_TABLE_TEXT:{Tl(this,t);break}}}}function j1(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):bl(e,t),n}function $1(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function z1(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),o=u&&a>=H1;!u||o?(o&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=Y1(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Y1(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 G1(e,t,n){const r=e.treeAdapter.getTagName(t),i=pn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&a===P.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function V1(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function _a(e,t){for(let n=0;n<F1;n++){const r=j1(e,t);if(!r)break;const i=$1(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=z1(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&G1(e,s,a),V1(e,i,r)}}function Vi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function q1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function W1(e,t){e._appendCommentNode(t,e.document)}function Ca(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],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function X1(e,t){e._setDocumentType(t);const n=t.forceQuirks?nt.QUIRKS:S1(t);C1(t)||e._err(t,L.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=x.BEFORE_HTML}function Tn(e,t){e._err(t,L.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,nt.QUIRKS),e.insertionMode=x.BEFORE_HTML,e._processToken(t)}function Q1(e,t){t.tagID===l.HTML?(e._insertElement(t,P.HTML),e.insertionMode=x.BEFORE_HEAD):vn(e,t)}function K1(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&vn(e,t)}function vn(e,t){e._insertFakeRootElement(),e.insertionMode=x.BEFORE_HEAD,e._processToken(t)}function Z1(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.HEAD:{e._insertElement(t,P.HTML),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD;break}default:Nn(e,t)}}function J1(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?Nn(e,t):e._err(t,L.endTagWithoutMatchingOpenElement)}function Nn(e,t){e._insertFakeElement(I.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=x.IN_HEAD,e._processToken(t)}function ct(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,Oe.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Oe.RAWTEXT):(e._insertElement(t,P.HTML),e.insertionMode=x.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,Oe.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,Oe.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=x.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(x.IN_TEMPLATE);break}case l.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:kn(e,t)}}function eg(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=x.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{kn(e,t);break}case l.TEMPLATE:{qt(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function qt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,L.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.endTagWithoutMatchingOpenElement)}function kn(e,t){e.openElements.pop(),e.insertionMode=x.AFTER_HEAD,e._processToken(t)}function tg(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{ct(e,t);break}case l.NOSCRIPT:{e._err(t,L.nestedNoscriptInHead);break}default:On(e,t)}}function ng(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=x.IN_HEAD;break}case l.BR:{On(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function On(e,t){const n=t.type===le.EOF?L.openElementsLeftAfterEof:L.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=x.IN_HEAD,e._processToken(t)}function rg(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.BODY:{e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=x.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,P.HTML),e.insertionMode=x.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,L.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),ct(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:Ln(e,t)}}function ig(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Ln(e,t);break}case l.TEMPLATE:{qt(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Ln(e,t){e._insertFakeElement(I.BODY,l.BODY),e.insertionMode=x.IN_BODY,Pr(e,t)}function Pr(e,t){switch(t.type){case le.CHARACTER:{ml(e,t);break}case le.WHITESPACE_CHARACTER:{hl(e,t);break}case le.COMMENT:{Vi(e,t);break}case le.START_TAG:{je(e,t);break}case le.END_TAG:{Mr(e,t);break}case le.EOF:{El(e,t);break}}}function hl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ml(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ag(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function sg(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function ug(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,P.HTML),e.insertionMode=x.IN_FRAMESET)}function og(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML)}function lg(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),Gi.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,P.HTML)}function cg(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function fg(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),n||(e.formElement=e.openElements.current))}function dg(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML)}function hg(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.tokenizer.state=Oe.PLAINTEXT}function mg(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1}function pg(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(I.A);n&&(_a(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(_a(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Eg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Tg(e,t){e.treeAdapter.getDocumentMode(e.document)!==nt.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=x.IN_TABLE}function pl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gl(e){const t=tl(e,Ut.TYPE);return t!=null&&t.toLowerCase()===B1}function xg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),gl(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function yg(e,t){e._appendElement(t,P.HTML),t.ackSelfClosing=!0}function Ag(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _g(e,t){t.tagName=I.IMG,t.tagID=l.IMG,pl(e,t)}function Cg(e,t){e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Oe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=x.TEXT}function Sg(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}function wg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}function Js(e,t){e._switchToTextParsing(t,Oe.RAWTEXT)}function Ig(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.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 vg(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}function Ng(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,P.HTML)}function kg(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,P.HTML)}function Og(e,t){e._reconstructActiveFormattingElements(),cl(t),Aa(t),t.selfClosing?e._appendElement(t,P.MATHML):e._insertElement(t,P.MATHML),t.ackSelfClosing=!0}function Lg(e,t){e._reconstructActiveFormattingElements(),fl(t),Aa(t),t.selfClosing?e._appendElement(t,P.SVG):e._insertElement(t,P.SVG),t.ackSelfClosing=!0}function eu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}function je(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{gg(e,t);break}case l.A:{pg(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{lg(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{og(e,t);break}case l.LI:case l.DD:case l.DT:{dg(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{pl(e,t);break}case l.HR:{Ag(e,t);break}case l.RB:case l.RTC:{Ng(e,t);break}case l.RT:case l.RP:{kg(e,t);break}case l.PRE:case l.LISTING:{cg(e,t);break}case l.XMP:{Sg(e,t);break}case l.SVG:{Lg(e,t);break}case l.HTML:{ag(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{ct(e,t);break}case l.BODY:{sg(e,t);break}case l.FORM:{fg(e,t);break}case l.NOBR:{bg(e,t);break}case l.MATH:{Og(e,t);break}case l.TABLE:{Tg(e,t);break}case l.INPUT:{xg(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{yg(e,t);break}case l.IMAGE:{_g(e,t);break}case l.BUTTON:{mg(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{Eg(e,t);break}case l.IFRAME:{wg(e,t);break}case l.SELECT:{Ig(e,t);break}case l.OPTION:case l.OPTGROUP:{vg(e,t);break}case l.NOEMBED:case l.NOFRAMES:{Js(e,t);break}case l.FRAMESET:{ug(e,t);break}case l.TEXTAREA:{Cg(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?Js(e,t):eu(e,t);break}case l.PLAINTEXT:{hg(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:eu(e,t)}}function Rg(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=x.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Dg(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=x.AFTER_BODY,wl(e,t))}function Pg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Mg(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function Bg(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(I.P,l.P),e._closePElement()}function Fg(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function Hg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Ug(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jg(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function $g(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(I.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function bl(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Mr(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{_a(e,t);break}case l.P:{Bg(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Pg(e,t);break}case l.LI:{Fg(e);break}case l.DD:case l.DT:{Hg(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{Ug(e);break}case l.BR:{$g(e);break}case l.BODY:{Rg(e,t);break}case l.HTML:{Dg(e,t);break}case l.FORM:{Mg(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{jg(e,t);break}case l.TEMPLATE:{qt(e,t);break}default:bl(e,t)}}function El(e,t){e.tmplInsertionModeStack.length>0?Sl(e,t):Ca(e,t)}function zg(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Yg(e,t){e._err(t,L.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function li(e,t){if(dl.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 le.CHARACTER:{xl(e,t);break}case le.WHITESPACE_CHARACTER:{Tl(e,t);break}}else Gn(e,t)}function Gg(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,P.HTML),e.insertionMode=x.IN_CAPTION}function Vg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=x.IN_COLUMN_GROUP}function qg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(I.COLGROUP,l.COLGROUP),e.insertionMode=x.IN_COLUMN_GROUP,Sa(e,t)}function Wg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=x.IN_TABLE_BODY}function Xg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(I.TBODY,l.TBODY),e.insertionMode=x.IN_TABLE_BODY,Br(e,t)}function Qg(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Kg(e,t){gl(t)?e._appendElement(t,P.HTML):Gn(e,t),t.ackSelfClosing=!0}function Zg(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,P.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ln(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{Xg(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{ct(e,t);break}case l.COL:{qg(e,t);break}case l.FORM:{Zg(e,t);break}case l.TABLE:{Qg(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{Wg(e,t);break}case l.INPUT:{Kg(e,t);break}case l.CAPTION:{Gg(e,t);break}case l.COLGROUP:{Vg(e,t);break}default:Gn(e,t)}}function Mn(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{qt(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Gn(e,t)}}function Gn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Pr(e,t),e.fosterParentingEnabled=n}function Tl(e,t){e.pendingCharacterTokens.push(t)}function xl(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function xn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Gn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const yl=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function Jg(e,t){const n=t.tagID;yl.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,ln(e,t)):je(e,t)}function eb(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_TABLE,n===l.TABLE&&Mn(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Mr(e,t)}}function Sa(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.COL:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{ct(e,t);break}default:pr(e,t)}}function tb(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE);break}case l.TEMPLATE:{qt(e,t);break}case l.COL:break;default:pr(e,t)}}function pr(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=x.IN_TABLE,e._processToken(t))}function Br(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,P.HTML),e.insertionMode=x.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(I.TR,l.TR),e.insertionMode=x.IN_ROW,Fr(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE,ln(e,t));break}default:ln(e,t)}}function qi(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE,Mn(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:Mn(e,t)}}function Fr(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,P.HTML),e.insertionMode=x.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,Br(e,t));break}default:ln(e,t)}}function Al(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,qi(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=x.IN_TABLE_BODY,qi(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:Mn(e,t)}}function nb(e,t){const n=t.tagID;yl.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),Fr(e,t)):je(e,t)}function rb(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Al(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:Mr(e,t)}}function _l(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{ct(e,t);break}}}function Cl(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{qt(e,t);break}}}function ib(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_l(e,t)}function ab(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Cl(e,t)}function sb(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{ct(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=x.IN_TABLE,e.insertionMode=x.IN_TABLE,ln(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=x.IN_COLUMN_GROUP,e.insertionMode=x.IN_COLUMN_GROUP,Sa(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=x.IN_TABLE_BODY,e.insertionMode=x.IN_TABLE_BODY,Br(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=x.IN_ROW,e.insertionMode=x.IN_ROW,Fr(e,t);break}default:e.tmplInsertionModeStack[0]=x.IN_BODY,e.insertionMode=x.IN_BODY,je(e,t)}}function ub(e,t){t.tagID===l.TEMPLATE&&qt(e,t)}function Sl(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ca(e,t)}function ob(e,t){t.tagID===l.HTML?je(e,t):gr(e,t)}function wl(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=x.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.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 gr(e,t)}function gr(e,t){e.insertionMode=x.IN_BODY,Pr(e,t)}function lb(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.FRAMESET:{e._insertElement(t,P.HTML);break}case l.FRAME:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{ct(e,t);break}}}function cb(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=x.AFTER_FRAMESET))}function fb(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.NOFRAMES:{ct(e,t);break}}}function db(e,t){t.tagID===l.HTML&&(e.insertionMode=x.AFTER_AFTER_FRAMESET)}function hb(e,t){t.tagID===l.HTML?je(e,t):lr(e,t)}function lr(e,t){e.insertionMode=x.IN_BODY,Pr(e,t)}function mb(e,t){switch(t.tagID){case l.HTML:{je(e,t);break}case l.NOFRAMES:{ct(e,t);break}}}function pb(e,t){t.chars=ve,e._insertCharacters(t)}function gb(e,t){e._insertCharacters(t),e.framesetOk=!1}function Il(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==P.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function bb(e,t){if(L1(t))Il(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===P.MATHML?cl(t):r===P.SVG&&(R1(t),fl(t)),Aa(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Eb(e,t){if(t.tagID===l.P||t.tagID===l.BR){Il(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)===P.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}I.AREA,I.BASE,I.BASEFONT,I.BGSOUND,I.BR,I.COL,I.EMBED,I.FRAME,I.HR,I.IMG,I.INPUT,I.KEYGEN,I.LINK,I.META,I.PARAM,I.SOURCE,I.TRACK,I.WBR;const Tb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function vl(e,t){const n=Nb(e),r=Qo("type",{handlers:{root:xb,element:yb,text:Ab,comment:kl,doctype:_b,raw:Sb},unknown:wb}),i={parser:n?new Zs(tu):Zs.getFragmentParser(void 0,tu),handle(u){r(u,i)},stitches:!1,options:t||{}};r(e,i),gn(i,bt());const a=n?i.parser.document:i.parser.getFragment(),s=Op(a,{file:i.options.file});return i.stitches&&Dr(s,"comment",function(u,o,c){const f=u;if(f.value.stitch&&c&&o!==void 0){const d=c.children;return d[o]=f.value.stitch,o}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Nl(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function xb(e,t){Nl(e.children,t)}function yb(e,t){Ib(e,t),Nl(e.children,t),vb(e,t)}function Ab(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:le.CHARACTER,chars:e.value,location:Vn(e)};gn(t,bt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function _b(e,t){const n={type:le.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Vn(e)};gn(t,bt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Cb(e,t){t.stitches=!0;const n=kb(e);if("children"in e&&"children"in n){const r=vl({type:"root",children:e.children},t.options);n.children=r.children}kl({type:"comment",value:{stitch:n}},t)}function kl(e,t){const n=e.value,r={type:le.COMMENT,data:n,location:Vn(e)};gn(t,bt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Sb(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,Ol(t,bt(e)),t.parser.tokenizer.write(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 wb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Cb(n,t);else{let r="";throw Tb.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 gn(e,t){Ol(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=Oe.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 Ol(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 Ib(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Oe.PLAINTEXT)return;gn(t,bt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Ht.html;i===Ht.html&&n==="svg"&&(i=Ht.svg);const a=Mp({...e,children:[]},{space:i===Ht.svg?"svg":"html"}),s={type:le.START_TAG,tagName:n,tagID:pn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Vn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function vb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Yp.includes(n)||t.parser.tokenizer.state===Oe.PLAINTEXT)return;gn(t,vr(e));const r={type:le.END_TAG,tagName:n,tagID:pn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Vn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Oe.RCDATA||t.parser.tokenizer.state===Oe.RAWTEXT||t.parser.tokenizer.state===Oe.SCRIPT_DATA)&&(t.parser.tokenizer.state=Oe.DATA)}function Nb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Vn(e){const t=bt(e)||{line:void 0,column:void 0,offset:void 0},n=vr(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 kb(e){return"children"in e?on({...e,children:[]}):on(e)}function Ll(e){return function(t,n){return vl(t,{...e,file:n})}}const Ob=e=>De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},De.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),Lb=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=ua();return N.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[N.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:N.jsx("div",{children:N.jsx(Ob,{fill:"#4564d6"})})}),N.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[N.jsx("p",{className:"font-bold",children:n}),N.jsx("div",{children:N.jsx(Vo,{rehypePlugins:[Ll],children:e&&e})})]})]})};function nu(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Rb(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Db(e,t,n){const i=Lr((n||{}).ignore||[]),a=Pb(t);let s=-1;for(;++s<a.length;)Yo(e,"text",u);function u(c,f){let d=-1,h;for(;++d<f.length;){const m=f[d],E=h?h.children:void 0;if(i(m,E?E.indexOf(m):void 0,h))return;h=m}if(h)return o(c,f)}function o(c,f){const d=f[f.length-1],h=a[s][0],m=a[s][1];let E=0;const _=d.children.indexOf(c);let y=!1,v=[];h.lastIndex=0;let w=h.exec(c.value);for(;w;){const D=w.index,C={index:w.index,input:w.input,stack:[...f,c]};let k=m(...w,C);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?h.lastIndex=D+1:(E!==D&&v.push({type:"text",value:c.value.slice(E,D)}),Array.isArray(k)?v.push(...k):k&&v.push(k),E=D+w[0].length,y=!0),!h.global)break;w=h.exec(c.value)}return y?(E<c.value.length&&v.push({type:"text",value:c.value.slice(E)}),d.children.splice(_,1,...v)):v=[c],_+v.length}}function Pb(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 i=n[r];t.push([Mb(i[0]),Bb(i[1])])}return t}function Mb(e){return typeof e=="string"?new RegExp(Rb(e),"g"):e}function Bb(e){return typeof e=="function"?e:function(){return e}}const ci="phrasing",fi=["autolink","link","image","label"];function Fb(){return{transforms:[Gb],enter:{literalAutolink:Ub,literalAutolinkEmail:di,literalAutolinkHttp:di,literalAutolinkWww:di},exit:{literalAutolink:Yb,literalAutolinkEmail:zb,literalAutolinkHttp:jb,literalAutolinkWww:$b}}}function Hb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ci,notInConstruct:fi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ci,notInConstruct:fi},{character:":",before:"[ps]",after:"\\/",inConstruct:ci,notInConstruct:fi}]}}function Ub(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function di(e){this.config.enter.autolinkProtocol.call(this,e)}function jb(e){this.config.exit.autolinkProtocol.call(this,e)}function $b(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 zb(e){this.config.exit.autolinkEmail.call(this,e)}function Yb(e){this.exit(e)}function Gb(e){Db(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Vb],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),qb]],{ignore:["link","linkReference"]})}function Vb(e,t,n,r,i){let a="";if(!Rl(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Wb(n)))return!1;const s=Xb(n+r);if(!s[0])return!1;const u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function qb(e,t,n,r){return!Rl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Wb(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 Xb(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 i=nu(e,"(");let a=nu(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Rl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||zt(n)||Nr(n))&&(!t||n!==47)}Dl.peek=iE;function Qb(){this.buffer()}function Kb(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Zb(){this.buffer()}function Jb(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=lt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function tE(e){this.exit(e)}function nE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=lt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rE(e){this.exit(e)}function iE(){return"["}function Dl(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),u=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),u(),s(),a+=i.move("]"),a}function aE(){return{enter:{gfmFootnoteCallString:Qb,gfmFootnoteCall:Kb,gfmFootnoteDefinitionLabelString:Zb,gfmFootnoteDefinition:Jb},exit:{gfmFootnoteCallString:eE,gfmFootnoteCall:tE,gfmFootnoteDefinitionLabelString:nE,gfmFootnoteDefinition:rE}}}function sE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Dl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const u=a.createTracker(s);let o=u.move("[^");const c=a.enter("footnoteDefinition"),f=a.enter("label");return o+=u.move(a.safe(a.associationId(r),{before:o,after:"]"})),f(),o+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),o+=u.move((t?`
|
|
62
|
+
`:" ")+a.indentLines(a.containerFlow(r,u.current()),t?Pl:uE))),c(),o}}function uE(e,t,n){return t===0?e:Pl(e,t,n)}function Pl(e,t,n){return(n?"":" ")+e}const oE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ml.peek=hE;function lE(){return{canContainEols:["delete"],enter:{strikethrough:fE},exit:{strikethrough:dE}}}function cE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oE}],handlers:{delete:Ml}}}function fE(e){this.enter({type:"delete",children:[]},e)}function dE(e){this.exit(e)}function Ml(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function hE(){return"~"}function mE(e){return e.length}function pE(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||mE,a=[],s=[],u=[],o=[];let c=0,f=-1;for(;++f<e.length;){const A=[],_=[];let y=-1;for(e[f].length>c&&(c=e[f].length);++y<e[f].length;){const v=gE(e[f][y]);if(n.alignDelimiters!==!1){const w=i(v);_[y]=w,(o[y]===void 0||w>o[y])&&(o[y]=w)}A.push(v)}s[f]=A,u[f]=_}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)a[d]=ru(r[d]);else{const A=ru(r);for(;++d<c;)a[d]=A}d=-1;const h=[],m=[];for(;++d<c;){const A=a[d];let _="",y="";A===99?(_=":",y=":"):A===108?_=":":A===114&&(y=":");let v=n.alignDelimiters===!1?1:Math.max(1,o[d]-_.length-y.length);const w=_+"-".repeat(v)+y;n.alignDelimiters!==!1&&(v=_.length+v+y.length,v>o[d]&&(o[d]=v),m[d]=v),h[d]=w}s.splice(1,0,h),u.splice(1,0,m),f=-1;const E=[];for(;++f<s.length;){const A=s[f],_=u[f];d=-1;const y=[];for(;++d<c;){const v=A[d]||"";let w="",D="";if(n.alignDelimiters!==!1){const C=o[d]-(_[d]||0),k=a[d];k===114?w=" ".repeat(C):k===99?C%2?(w=" ".repeat(C/2+.5),D=" ".repeat(C/2-.5)):(w=" ".repeat(C/2),D=w):D=" ".repeat(C)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(w),y.push(v),n.alignDelimiters!==!1&&y.push(D),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&y.push("|")}E.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return E.join(`
|
|
63
|
+
`)}function gE(e){return e==null?"":String(e)}function ru(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}function bE(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),EE);return i(),s}function EE(e,t,n){return">"+(n?"":" ")+e}function TE(e,t){return iu(e,t.inConstruct,!0)&&!iu(e,t.notInConstruct,!1)}function iu(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 au(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
64
|
+
`&&TE(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
65
|
+
`}function xE(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function yE(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 AE(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 _E(e,t,n,r){const i=AE(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(yE(e,n)){const d=n.enter("codeIndented"),h=n.indentLines(a,CE);return d(),h}const u=n.createTracker(r),o=i.repeat(Math.max(xE(a,i)+1,3)),c=n.enter("codeFenced");let f=u.move(o);if(e.lang){const d=n.enter(`codeFencedLang${s}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
|
|
66
|
+
`,encode:["`"],...u.current()})),d()}return f+=u.move(`
|
|
67
|
+
`),a&&(f+=u.move(a+`
|
|
68
|
+
`)),f+=u.move(o),c(),f}function CE(e,t,n){return(n?"":" ")+e}function wa(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function SE(e,t,n,r){const i=wa(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let u=n.enter("label");const o=n.createTracker(r);let c=o.move("[");return c+=o.move(n.safe(n.associationId(e),{before:c,after:"]",...o.current()})),c+=o.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
69
|
+
`,...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),s(),c}function wE(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Bl.peek=IE;function Bl(e,t,n,r){const i=wE(n),a=n.enter("emphasis"),s=n.createTracker(r);let u=s.move(i);return u+=s.move(n.containerPhrasing(e,{before:u,after:i,...s.current()})),u+=s.move(i),a(),u}function IE(e,t,n){return n.options.emphasis||"*"}function vE(e,t){let n=!1;return Dr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Fi}),!!((!e.depth||e.depth<3)&&da(e)&&(t.options.setext||n))}function NE(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(vE(e,n)){const f=n.enter("headingSetext"),d=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:`
|
|
70
|
+
`,after:`
|
|
71
|
+
`});return d(),f(),h+`
|
|
72
|
+
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
73
|
+
`))+1))}const s="#".repeat(i),u=n.enter("headingAtx"),o=n.enter("phrasing");a.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
74
|
+
`,...a.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),o(),u(),c}Fl.peek=kE;function Fl(e){return e.value||""}function kE(){return"<"}Hl.peek=OE;function Hl(e,t,n,r){const i=wa(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let u=n.enter("label");const o=n.createTracker(r);let c=o.move("![");return c+=o.move(n.safe(e.alt,{before:c,after:"]",...o.current()})),c+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),s(),c}function OE(){return"!"}Ul.peek=LE;function Ul(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const u=n.createTracker(r);let o=u.move("![");const c=n.safe(e.alt,{before:o,after:"]",...u.current()});o+=u.move(c+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return s(),n.stack=f,a(),i==="full"||!c||c!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function LE(){return"!"}jl.peek=RE;function jl(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],u=n.compilePattern(s);let o;if(s.atBreak)for(;o=u.exec(r);){let c=o.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(o.index+1)}}return i+r+i}function RE(){return"`"}function $l(e,t){const n=da(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))}zl.peek=DE;function zl(e,t,n,r){const i=wa(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let u,o;if($l(e,n)){const f=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=f,d}u=n.enter("link"),o=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),o()),c+=s.move(")"),u(),c}function DE(e,t,n){return $l(e,n)?"<":"["}Yl.peek=PE;function Yl(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const u=n.createTracker(r);let o=u.move("[");const c=n.containerPhrasing(e,{before:o,after:"]",...u.current()});o+=u.move(c+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:o,after:"]",...u.current()});return s(),n.stack=f,a(),i==="full"||!c||c!==d?o+=u.move(d+"]"):i==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function PE(){return"["}function Ia(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 ME(e){const t=Ia(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 BE(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 Gl(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 FE(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?BE(n):Ia(n);const u=e.ordered?s==="."?")":".":ME(n);let o=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.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&&(o=!0),Gl(n)===s&&f){let d=-1;for(;++d<e.children.length;){const h=e.children[d];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(s=u),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),c}function HE(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 UE(e,t,n,r){const i=HE(n);let a=n.bulletCurrent||Ia(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=n.createTracker(r);u.move(a+" ".repeat(s-a.length)),u.shift(s);const o=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,u.current()),f);return o(),c;function f(d,h,m){return h?(m?"":" ".repeat(s))+d:(m?a:a+" ".repeat(s-a.length))+d}}function jE(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const $E=Lr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zE(e,t,n,r){return(e.children.some(function(s){return $E(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function YE(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Vl.peek=GE;function Vl(e,t,n,r){const i=YE(n),a=n.enter("strong"),s=n.createTracker(r);let u=s.move(i+i);return u+=s.move(n.containerPhrasing(e,{before:u,after:i,...s.current()})),u+=s.move(i+i),a(),u}function GE(e,t,n){return n.options.strong||"*"}function VE(e,t,n,r){return n.safe(e.value,r)}function qE(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 WE(e,t,n){const r=(Gl(n)+(n.options.ruleSpaces?" ":"")).repeat(qE(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ql={blockquote:bE,break:au,code:_E,definition:SE,emphasis:Bl,hardBreak:au,heading:NE,html:Fl,image:Hl,imageReference:Ul,inlineCode:jl,link:zl,linkReference:Yl,list:FE,listItem:UE,paragraph:jE,root:zE,strong:Vl,text:VE,thematicBreak:WE};function XE(){return{enter:{table:QE,tableData:su,tableHeader:su,tableRow:ZE},exit:{codeText:JE,table:KE,tableData:hi,tableHeader:hi,tableRow:hi}}}function QE(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 KE(e){this.exit(e),this.data.inTable=void 0}function ZE(e){this.enter({type:"tableRow",children:[]},e)}function hi(e){this.exit(e)}function su(e){this.enter({type:"tableCell",children:[]},e)}function JE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eT));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function eT(e,t){return t==="|"?t:e}function tT(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
75
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:o,tableRow:u}};function s(m,E,A,_){return c(f(m,A,_),m.align)}function u(m,E,A,_){const y=d(m,A,_),v=c([y]);return v.slice(0,v.indexOf(`
|
|
76
|
+
`))}function o(m,E,A,_){const y=A.enter("tableCell"),v=A.enter("phrasing"),w=A.containerPhrasing(m,{..._,before:a,after:a});return v(),y(),w}function c(m,E){return pE(m,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function f(m,E,A){const _=m.children;let y=-1;const v=[],w=E.enter("table");for(;++y<_.length;)v[y]=d(_[y],E,A);return w(),v}function d(m,E,A){const _=m.children;let y=-1;const v=[],w=E.enter("tableRow");for(;++y<_.length;)v[y]=o(_[y],m,E,A);return w(),v}function h(m,E,A){let _=ql.inlineCode(m,E,A);return A.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function nT(){return{exit:{taskListCheckValueChecked:uu,taskListCheckValueUnchecked:uu,paragraph:iT}}}function rT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aT}}}function uu(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function iT(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 i=t.children;let a=-1,s;for(;++a<i.length;){const u=i[a];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 aT(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);a&&u.move(s);let o=ql.listItem(e,t,n,{...r,...u.current()});return a&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),o;function c(f){return f+s}}function sT(){return[Fb(),aE(),lE(),XE(),nT()]}function uT(e){return{extensions:[Hb(),sE(e),cE(),tT(e),rT()]}}const oT={tokenize:mT,partial:!0},Wl={tokenize:pT,partial:!0},Xl={tokenize:gT,partial:!0},Ql={tokenize:bT,partial:!0},lT={tokenize:ET,partial:!0},Kl={name:"wwwAutolink",tokenize:dT,previous:Jl},Zl={name:"protocolAutolink",tokenize:hT,previous:ec},_t={name:"emailAutolink",tokenize:fT,previous:tc},Et={};function cT(){return{text:Et}}let Mt=48;for(;Mt<123;)Et[Mt]=_t,Mt++,Mt===58?Mt=65:Mt===91&&(Mt=97);Et[43]=_t;Et[45]=_t;Et[46]=_t;Et[95]=_t;Et[72]=[_t,Zl];Et[104]=[_t,Zl];Et[87]=[_t,Kl];Et[119]=[_t,Kl];function fT(e,t,n){const r=this;let i,a;return s;function s(d){return!Wi(d)||!tc.call(r,r.previous)||va(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return Wi(d)?(e.consume(d),u):d===64?(e.consume(d),o):n(d)}function o(d){return d===46?e.check(lT,f,c)(d):d===45||d===95||He(d)?(a=!0,e.consume(d),o):f(d)}function c(d){return e.consume(d),i=!0,o}function f(d){return a&&i&&Ge(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function dT(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Jl.call(r,r.previous)||va(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(oT,e.attempt(Wl,e.attempt(Xl,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function hT(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&ec.call(r,r.previous)&&!va(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),u):n(d)}function u(d){if(Ge(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),o}return n(d)}function o(d){return d===47?(e.consume(d),a?c:(a=!0,o)):n(d)}function c(d){return d===null||cr(d)||Ce(d)||zt(d)||Nr(d)?n(d):e.attempt(Wl,e.attempt(Xl,f),n)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function mT(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function pT(e,t,n){let r,i,a;return s;function s(c){return c===46||c===95?e.check(Ql,o,u)(c):c===null||Ce(c)||zt(c)||c!==45&&Nr(c)?o(c):(a=!0,e.consume(c),s)}function u(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function o(c){return i||r||!a?n(c):t(c)}}function gT(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(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(Ql,t,a)(s):s===null||Ce(s)||zt(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function bT(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),a):u===93?(e.consume(u),i):u===60||u===null||Ce(u)||zt(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||Ce(u)||zt(u)?t(u):r(u)}function a(u){return Ge(u)?s(u):n(u)}function s(u){return u===59?(e.consume(u),r):Ge(u)?(e.consume(u),s):n(u)}}function ET(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return He(a)?n(a):t(a)}}function Jl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ce(e)}function ec(e){return!Ge(e)}function tc(e){return!(e===47||Wi(e))}function Wi(e){return e===43||e===45||e===46||e===95||He(e)}function va(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}const TT={tokenize:IT,partial:!0};function xT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:CT,continuation:{tokenize:ST},exit:wT}},text:{91:{name:"gfmFootnoteCall",tokenize:_T},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yT,resolveTo:AT}}}}function yT(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){s=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!s||!s._balanced)return n(o);const c=lt(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function AT(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)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function _T(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return u;function u(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),o}function o(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(a>999||d===93&&!s||d===null||d===91||Ce(d))return n(d);if(d===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(lt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ce(d)||(s=!0),a++,e.consume(d),d===92?f:c}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function CT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,u;return o;function o(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",f):n(E)}function f(E){if(s>999||E===93&&!u||E===null||E===91||Ce(E))return n(E);if(E===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return a=lt(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Ce(E)||(u=!0),s++,e.consume(E),E===92?d:f}function d(E){return E===91||E===92||E===93?(e.consume(E),s++,f):f(E)}function h(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),pe(e,m,"gfmFootnoteDefinitionWhitespace")):n(E)}function m(E){return t(E)}}function ST(e,t,n){return e.check(zn,t,e.attempt(TT,t,n))}function wT(e){e.exit("gfmFootnoteDefinition")}function IT(e,t,n){const r=this;return pe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function vT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,u){let o=-1;for(;++o<s.length;)if(s[o][0]==="enter"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._close){let c=o;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[o][1].end.offset-s[o][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[o][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[o][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[o][1].start)},h=[["enter",f,u],["enter",s[c][1],u],["exit",s[c][1],u],["enter",d,u]],m=u.parser.constructs.insideSpan.null;m&&Ke(h,h.length,0,kr(m,s.slice(c+1,o),u)),Ke(h,h.length,0,[["exit",d,u],["enter",s[o][1],u],["exit",s[o][1],u],["exit",f,u]]),Ke(s,c-1,o-c+3,h),o=c+h.length-2;break}}for(o=-1;++o<s.length;)s[o][1].type==="strikethroughSequenceTemporary"&&(s[o][1].type="data");return s}function a(s,u,o){const c=this.previous,f=this.events;let d=0;return h;function h(E){return c===126&&f[f.length-1][1].type!=="characterEscape"?o(E):(s.enter("strikethroughSequenceTemporary"),m(E))}function m(E){const A=fr(c);if(E===126)return d>1?o(E):(s.consume(E),d++,m);if(d<2&&!n)return o(E);const _=s.exit("strikethroughSequenceTemporary"),y=fr(E);return _._open=!y||y===2&&!!A,_._close=!A||A===2&&!!y,u(E)}}}class NT{constructor(){this.map=[]}add(t,n,r){kT(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[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.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function kT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function OT(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function LT(){return{flow:{null:{name:"table",tokenize:RT,resolveAll:DT}}}}function RT(e,t,n){const r=this;let i=0,a=0,s;return u;function u(S){let $=r.events.length-1;for(;$>-1;){const z=r.events[$][1].type;if(z==="lineEnding"||z==="linePrefix")$--;else break}const H=$>-1?r.events[$][1].type:null,Y=H==="tableHead"||H==="tableRow"?k:o;return Y===k&&r.parser.lazy[r.now().line]?n(S):Y(S)}function o(S){return e.enter("tableHead"),e.enter("tableRow"),c(S)}function c(S){return S===124||(s=!0,a+=1),f(S)}function f(S){return S===null?n(S):ee(S)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),m):n(S):fe(S)?pe(e,f,"whitespace")(S):(a+=1,s&&(s=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),d(S)))}function d(S){return S===null||S===124||Ce(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?h:d)}function h(S){return S===92||S===124?(e.consume(S),d):d(S)}function m(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),s=!1,fe(S)?pe(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):E(S))}function E(S){return S===45||S===58?_(S):S===124?(s=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),A):C(S)}function A(S){return fe(S)?pe(e,_,"whitespace")(S):_(S)}function _(S){return S===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):S===45?(a+=1,y(S)):S===null||ee(S)?D(S):C(S)}function y(S){return S===45?(e.enter("tableDelimiterFiller"),v(S)):C(S)}function v(S){return S===45?(e.consume(S),v):S===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(S))}function w(S){return fe(S)?pe(e,D,"whitespace")(S):D(S)}function D(S){return S===124?E(S):S===null||ee(S)?!s||i!==a?C(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):C(S)}function C(S){return n(S)}function k(S){return e.enter("tableRow"),q(S)}function q(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),q):S===null||ee(S)?(e.exit("tableRow"),t(S)):fe(S)?pe(e,q,"whitespace")(S):(e.enter("data"),ue(S))}function ue(S){return S===null||S===124||Ce(S)?(e.exit("data"),q(S)):(e.consume(S),S===92?ae:ue)}function ae(S){return S===92||S===124?(e.consume(S),ue):ue(S)}}function DT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],u=!1,o=0,c,f,d;const h=new NT;for(;++n<e.length;){const m=e[n],E=m[1];m[0]==="enter"?E.type==="tableHead"?(u=!1,o!==0&&(ou(h,t,o,c,f),f=void 0,o=0),c={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},h.add(n,0,[["enter",c,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},h.add(n,0,[["enter",f,t]])),i=E.type==="tableDelimiterRow"?2:f?3:1):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=nr(h,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=nr(h,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):E.type==="tableHead"?(u=!0,o=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(o=n,a[1]!==0?(s[0]=s[1],d=nr(h,t,a,i,n,d)):s[1]!==0&&(d=nr(h,t,s,i,n,d)),i=0):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=n)}for(o!==0&&ou(h,t,o,c,f),h.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=OT(t.events,n))}return e}function nr(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(a.end=Object.assign({},en(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const o=en(t.events,n[1]);if(a={type:s,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=en(t.events,n[2]),f=en(t.events,n[3]),d={type:u,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const h=t.events[n[2]],m=t.events[n[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,A=n[3]-n[2]-1;e.add(E,A,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},en(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ou(e,t,n,r,i){const a=[],s=en(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function en(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const PT={name:"tasklistCheck",tokenize:BT};function MT(){return{text:{91:PT}}}function BT(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return Ce(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),s):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),s):n(o)}function s(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(o)}function u(o){return ee(o)?t(o):fe(o)?e.check({tokenize:FT},t,n)(o):n(o)}}function FT(e,t,n){return pe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function HT(e){return So([cT(),xT(),vT(e),LT(),MT()])}const UT={};function jT(e){const t=this,n=e||UT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(HT(n)),a.push(sT()),s.push(uT(n))}const $T=({})=>{const{companySettings:e}=O.useContext(fn);return N.jsx("div",{className:`assistant
|
|
62
77
|
transition
|
|
63
78
|
ease-in-out
|
|
64
79
|
delay-50
|
|
@@ -66,8 +81,8 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
66
81
|
flex
|
|
67
82
|
justify-center
|
|
68
83
|
items-center
|
|
69
|
-
`,children:C.jsx(Ha,{facet:e.agent.display[Ge.AgentDisplayFacetRoleType.ASSISTANT]})})},Hs=new Set;function GE(e){return Hs.has(e)?!1:(Hs.add(e),!0)}function VE(e,{root:t,rootSelector:n,rootMargin:r="0px",threshold:a=0,dedupeKey:i}={}){const s=I.useRef(!1),o=I.useRef();return I.useCallback(l=>{if(o.current?.(),o.current=void 0,!l||s.current)return;const d=t??(n?document.querySelector(n):null),f=()=>{i&&!GE(i)||(s.current=!0,e())};if(typeof window>"u"||!("IntersectionObserver"in window)){f();return}const h=new IntersectionObserver((m,x)=>{m[0]?.isIntersecting&&(x.disconnect(),f())},{root:d,rootMargin:r,threshold:a});h.observe(l),o.current=()=>h.disconnect()},[t,n,r,a,i,e])}class Rn{constructor(){}static getApiUrl=()=>typeof document<"u"&&new URL(document.URL)?.host.includes("localhost:3080")?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:a={}})=>{const i={method:n,headers:this.getHeaders({contentType:t}),...a};return r&&(i.body=JSON.stringify(r)),i}}function qE(e,t){if(!t||!e)return e;const n=t.replace(/^[?&]+/,""),[r,a]=e.split("#"),i=r.includes("?")?"&":"?",s=`${r}${i}${n}`;return a?`${s}#${a}`:s}function WE({href:e="",queryParamToAppend:t="",children:n,context:r,onClick:a,seenRootEl:i,...s}){const{companySettings:o}=I.useContext(sn),c=e.startsWith("/")||typeof window<"u"&&e.startsWith(window.location.origin),l=Rn.getApiUrl(),d=qE(e,o.api.tracking?.queryParamToAppend),f=()=>{const y=`${l}/tracking/clicked/${r.appToken}`,R={discussionId:r.discussionId,urlClicked:e};try{fetch(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(R),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},h=()=>{const y=`${l}/tracking/displayed/${r.appToken}`,R={discussionId:r.discussionId,urlSeen:e};try{fetch(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(R),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},m=I.useMemo(()=>`${r.appToken}::${r.discussionId}::${e}`,[r.appToken,r.discussionId,e]),x=VE(h,{root:i,threshold:0,rootMargin:"0px 0px -10% 0px",dedupeKey:m}),A=y=>{f(),a?.(y)},N=c?{}:{target:"_blank",rel:"noopener noreferrer"};return c?C.jsx("a",{ref:x,href:d,...s,onClick:A,className:"customLinkInternal",children:n}):C.jsx("a",{ref:x,href:d,...N,...s,onClick:A,className:"customLinkExternal",children:n})}const XE=({content:e,metaData:t,context:n,seenRootEl:r})=>{const{chatlineLabelAssistantTranslation:a}=Ya();return C.jsxs("div",{className:"flex justify-between mt-8 px-3 chatLineAssistant",children:[C.jsx("div",{className:"w-10 mr-3 mt-6",children:C.jsx("div",{children:C.jsx(YE,{})})}),C.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[C.jsx("p",{className:"font-bold",children:a}),C.jsx("div",{children:C.jsx(xo,{rehypePlugins:[uc],components:{a:({node:i,href:s,children:o,...c})=>C.jsx(WE,{href:s??"",...c,context:n,seenRootEl:r,children:o})},children:e&&e})})]})]})},QE=({userType:e,content:t,metaData:n,context:r,seenRootEl:a})=>{const i=e==="user",s=e==="assistant";return C.jsxs(C.Fragment,{children:[i&&C.jsx(zE,{content:t,metaData:n}),s&&C.jsx(XE,{content:t,metaData:n,context:r,seenRootEl:a})]})};function KE(e,t,n){let[r,a]=I.useState(e||t),i=I.useRef(e!==void 0),s=e!==void 0;I.useEffect(()=>{let l=i.current;l!==s&&console.warn(`WARN: A component changed from ${l?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let o=s?e:r,c=I.useCallback((l,...d)=>{let f=(h,...m)=>{n&&(Object.is(o,h)||n(h,...m)),s||(o=h)};typeof l=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((m,...x)=>{let A=l(s?o:m,...x);return f(A,...d),s?m:A})):(s||a(l),f(l,...d))},[s,o,n]);return[o,c]}const or={prefix:String(Math.round(Math.random()*1e10)),current:0},oc=I.createContext(or),ZE=I.createContext(!1);let JE=!!(typeof window<"u"&&window.document&&window.document.createElement),Zr=new WeakMap;function eg(e=!1){let t=I.useContext(oc),n=I.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Zr.get(i);s==null?Zr.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Zr.delete(i))}n.current=++t.current}return n.current}function tg(e){let t=I.useContext(oc);t===or&&!JE&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=eg(!!e),r=t===or&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function ng(e){let t=I.useId(),[n]=I.useState(ug()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${or.prefix}`;return e||`${r}-${t}`}const rg=typeof I.useId=="function"?ng:tg;function ag(){return!1}function ig(){return!0}function sg(e){return()=>{}}function ug(){return typeof I.useSyncExternalStore=="function"?I.useSyncExternalStore(sg,ag,ig):I.useContext(ZE)}function cc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=cc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function og(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=cc(e))&&(r&&(r+=" "),r+=t);return r}const zt=typeof document<"u"?I.useLayoutEffect:()=>{};function Bt(e){const t=I.useRef(null);return zt(()=>{t.current=e},[e]),I.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function cg(e){let[t,n]=I.useState(e),r=I.useRef(null),a=Bt(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?a():n(s.value)});zt(()=>{r.current&&a()});let i=Bt(s=>{r.current=s(t),a()});return[t,i]}let lg=!!(typeof window<"u"&&window.document&&window.document.createElement),cr=new Map;function lr(e){let[t,n]=I.useState(e),r=I.useRef(null),a=rg(t),i=I.useCallback(s=>{r.current=s},[]);return lg&&cr.set(a,i),zt(()=>{let s=a;return()=>{cr.delete(s)}},[a]),I.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),a}function dg(e,t){if(e===t)return e;let n=cr.get(e);if(n)return n(t),t;let r=cr.get(t);return r?(r(e),e):t}function Us(e=[]){let t=lr(),[n,r]=cg(t),a=I.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(a,[t,a,...e]),n}function fg(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const jn=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},dr=e=>e&&"window"in e&&e.window===e?e:jn(e).defaultView||window;function fr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let i=t[a],s=r[a];typeof i=="function"&&typeof s=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=fg(i,s):(a==="className"||a==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[a]=og(i,s):a==="id"&&i&&s?t.id=dg(i,s):t[a]=s!==void 0?s:i}}return t}const hg=new Set(["id"]),mg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),pg=new Set(["href","target","rel","download","ping","referrerPolicy"]),Eg=/^(data-.*)$/;function gg(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(hg.has(s)||n&&mg.has(s)||r&&pg.has(s)||a?.has(s)||Eg.test(s))&&(i[s]=e[s]);return i}function js(e){if(bg())e.focus({preventScroll:!0});else{let t=Tg(e);e.focus(),yg(t)}}let Qn=null;function bg(){if(Qn==null){Qn=!1;try{document.createElement("div").focus({get preventScroll(){return Qn=!0,!0}})}catch{}}return Qn}function Tg(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function yg(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function xg(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Ag(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _g(){return Ag(/^Mac/i)}function Sg(){return xg(/Android/i)}let Xt=new Map,Ra=new Set;function $s(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=Xt.get(r.target);a||(a=new Set,Xt.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=Xt.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),Xt.delete(r.target)),Xt.size===0)){for(let i of Ra)i();Ra.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?$s():document.addEventListener("DOMContentLoaded",$s));function Cg(e){requestAnimationFrame(()=>{Xt.size===0?e():Ra.add(e)})}function Ig(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=lr(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function Ng(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function vg(e){return e.mozInputSource===0&&e.isTrusted?!0:Sg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function wg(e,t,n){let r=I.useRef(t),a=Bt(()=>{n&&n(r.current)});I.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s?.addEventListener("reset",a),()=>{s?.removeEventListener("reset",a)}},[e,a])}const Og=I.createContext({register:()=>{}});Og.displayName="PressResponderContext";class Lg{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Rg(e){let t=I.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Bt(r=>{e?.(r)});return I.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,i=s=>{t.current.isFocused=!1,a.disabled&&n(new Lg("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function kg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const i=I.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),a&&a(!1),!0},[r,a]),s=Rg(i),o=I.useCallback(c=>{c.target===c.currentTarget&&document.activeElement===c.target&&(n&&n(c),a&&a(!0),s(c))},[a,n,s]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?i:void 0}}}let fn=null,Dg=new Set,vn=new Map,Ht=!1,ka=!1;function Nr(e,t){for(let n of Dg)n(e,t)}function Pg(e){return!(e.metaKey||!_g()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hr(e){Ht=!0,Pg(e)&&(fn="keyboard",Nr("keyboard",e))}function tt(e){fn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ht=!0,Nr("pointer",e))}function lc(e){vg(e)&&(Ht=!0,fn="virtual")}function dc(e){e.target===window||e.target===document||(!Ht&&!ka&&(fn="virtual",Nr("virtual",e)),Ht=!1,ka=!1)}function fc(){Ht=!1,ka=!0}function zs(e){if(typeof window>"u"||vn.get(dr(e)))return;const t=dr(e),n=jn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ht=!0,r.apply(this,arguments)},n.addEventListener("keydown",hr,!0),n.addEventListener("keyup",hr,!0),n.addEventListener("click",lc,!0),t.addEventListener("focus",dc,!0),t.addEventListener("blur",fc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",tt,!0),n.addEventListener("pointermove",tt,!0),n.addEventListener("pointerup",tt,!0)):(n.addEventListener("mousedown",tt,!0),n.addEventListener("mousemove",tt,!0),n.addEventListener("mouseup",tt,!0)),t.addEventListener("beforeunload",()=>{hc(e)},{once:!0}),vn.set(t,{focus:r})}const hc=(e,t)=>{const n=dr(e),r=jn(e);t&&r.removeEventListener("DOMContentLoaded",t),vn.has(n)&&(n.HTMLElement.prototype.focus=vn.get(n).focus,r.removeEventListener("keydown",hr,!0),r.removeEventListener("keyup",hr,!0),r.removeEventListener("click",lc,!0),n.removeEventListener("focus",dc,!0),n.removeEventListener("blur",fc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",tt,!0),r.removeEventListener("pointermove",tt,!0),r.removeEventListener("pointerup",tt,!0)):(r.removeEventListener("mousedown",tt,!0),r.removeEventListener("mousemove",tt,!0),r.removeEventListener("mouseup",tt,!0)),vn.delete(n))};function Mg(e){const t=jn(e);let n;return t.readyState!=="loading"?zs(e):(n=()=>{zs(e)},t.addEventListener("DOMContentLoaded",n)),()=>hc(e,n)}typeof document<"u"&&Mg();function Bg(){return fn}function Fg(e){fn=e,Nr(e,null)}function Ys(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Hg(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ys(e.onKeyDown),onKeyUp:Ys(e.onKeyUp)}}}function Ug(e){const t=jn(e);if(Bg()==="virtual"){let n=t.activeElement;Cg(()=>{t.activeElement===n&&e.isConnected&&js(e)})}else js(e)}function jg(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class li{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let i=new Gs({scopeRef:t});a.addChild(i),i.parent=a,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&jg(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new li;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Gs({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gs{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new li;let $g=I.createContext(null);function zg(e){let t=I.useContext($g)||{};Ng(t,e);let{ref:n,...r}=t;return r}function Yg(e,t){let{focusProps:n}=kg(e),{keyboardProps:r}=Hg(e),a=fr(n,r),i=zg(t),s=e.isDisabled?{}:i,o=I.useRef(e.autoFocus);return I.useEffect(()=>{o.current&&t.current&&Ug(t.current),o.current=!1},[t]),{focusableProps:fr({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Gg(e,t,n){let{validationBehavior:r,focus:a}=e;zt(()=>{if(r==="native"&&n?.current){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(qg(n.current))}});let i=Bt(()=>{t.resetValidation()}),s=Bt(c=>{var l;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(l=n.current)===null||l===void 0?void 0:l.form;if(!c.defaultPrevented&&n&&d&&Wg(d)===n.current){var f;a?a():(f=n.current)===null||f===void 0||f.focus(),Fg("keyboard")}c.preventDefault()}),o=Bt(()=>{t.commitValidation()});I.useEffect(()=>{let c=n?.current;if(!c)return;let l=c.form;return c.addEventListener("invalid",s),c.addEventListener("change",o),l?.addEventListener("reset",i),()=>{c.removeEventListener("invalid",s),c.removeEventListener("change",o),l?.removeEventListener("reset",i)}},[n,s,o,i,r])}function Vg(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function qg(e){return{isInvalid:!e.validity.valid,validationDetails:Vg(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Wg(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const mc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},pc={...mc,customError:!0,valid:!1},En={isInvalid:!1,validationDetails:mc,validationErrors:[]},Xg=I.createContext({}),Vs="__formValidationState"+Date.now();function Qg(e){if(e[Vs]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[Vs];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return Kg(e)}function Kg(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let c=t?{isInvalid:!0,validationErrors:[],validationDetails:pc}:null,l=I.useMemo(()=>qs(Zg(s,a)),[s,a]);i?.validationDetails.valid&&(i=null);let d=I.useContext(Xg),f=I.useMemo(()=>r?Array.isArray(r)?r.flatMap(Y=>Da(d[Y])):Da(d[r]):[],[d,r]),[h,m]=I.useState(d),[x,A]=I.useState(!1);d!==h&&(m(d),A(!1));let N=I.useMemo(()=>qs(x?[]:f),[x,f]),y=I.useRef(En),[R,v]=I.useState(En),B=I.useRef(En),S=()=>{if(!L)return;K(!1);let Y=l||i||y.current;Jr(Y,B.current)||(B.current=Y,v(Y))},[L,K]=I.useState(!1);return I.useEffect(S),{realtimeValidation:c||N||l||i||En,displayValidation:o==="native"?c||N||R:c||N||l||i||R,updateValidation(Y){o==="aria"&&!Jr(R,Y)?v(Y):y.current=Y},resetValidation(){let Y=En;Jr(Y,B.current)||(B.current=Y,v(Y)),o==="native"&&K(!1),A(!0)},commitValidation(){o==="native"&&K(!0),A(!0)}}}function Da(e){return e?Array.isArray(e)?e:[e]:[]}function Zg(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Da(n)}return[]}function qs(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:pc}:null}function Jr(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Jg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=lr(t);let s=lr(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:i==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Ig({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:c}}function eb(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:s}=Jg(e),o=Us([!!t,!!n,r,a]),c=Us([!!t,!!n,r,a]);return s=fr(s,{"aria-describedby":[o,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:c}}}function tb(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:s="text",validationBehavior:o="aria"}=e,[c,l]=KE(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=Yg(e,t),f=Qg({...e,value:c}),{isInvalid:h,validationErrors:m,validationDetails:x}=f.displayValidation,{labelProps:A,fieldProps:N,descriptionProps:y,errorMessageProps:R}=eb({...e,isInvalid:h,errorMessage:e.errorMessage||m}),v=gg(e,{labelable:!0});const B={type:s,pattern:e.pattern};return wg(t,c,l),Gg(e,f,t),I.useEffect(()=>{if(t.current instanceof dr(t.current).HTMLTextAreaElement){let S=t.current;Object.defineProperty(S,"defaultValue",{get:()=>S.value,set:()=>{},configurable:!0})}},[t]),{labelProps:A,inputProps:fr(v,n==="input"&&B,{disabled:r,readOnly:i,required:a&&o==="native","aria-required":a&&o==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:S=>l(S.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...N}),descriptionProps:y,errorMessageProps:R,isInvalid:h,validationErrors:m,validationDetails:x}}const nb=e=>e.charCodeAt(e.length-1)===10,rb=e=>{const[t,n]=I.useState(""),r=()=>{h.current&&(h.current.style.height=h.current.scrollHeight+"px")},a=()=>{h.current&&(h.current.style.height="48px")},i=S=>{n(S)};I.useEffect(r,[t]);let{label:s,SubmitComponent:o,onSubmit:c,isLoadingStream:l,LoadingComponent:d,onPressLoadingButton:f}=e,h=I.useRef(null),{labelProps:m,inputProps:x}=tb({...e,inputElementType:"textarea"},h);const A=S=>{nb(S.target.value)||i(S.target.value)},N=S=>{if(S.key==="Enter"||S.code==="Enter"||S.keyCode===13||S.code==="NumpadEnter"){if(S.shiftKey)i(t+`
|
|
70
|
-
`);else if(!
|
|
84
|
+
`,children:N.jsx(na,{facet:e.agent.display[We.AgentDisplayFacetRoleType.ASSISTANT]})})},lu=new Set;function zT(e){return lu.has(e)?!1:(lu.add(e),!0)}function YT(e,{root:t,rootSelector:n,rootMargin:r="0px",threshold:i=0,dedupeKey:a}={}){const s=O.useRef(!1),u=O.useRef();return O.useCallback(c=>{if(u.current?.(),u.current=void 0,!c||s.current)return;const f=t??(n?document.querySelector(n):null),d=()=>{a&&!zT(a)||(s.current=!0,e())};if(typeof window>"u"||!("IntersectionObserver"in window)){d();return}const h=new IntersectionObserver((m,E)=>{m[0]?.isIntersecting&&(E.disconnect(),d())},{root:f,rootMargin:r,threshold:i});h.observe(c),u.current=()=>h.disconnect()},[t,n,r,i,a,e])}class Bn{constructor(){}static getApiUrl=()=>typeof document<"u"&&new URL(document.URL)?.host.includes("localhost:3080")?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:i={}})=>{const a={method:n,headers:this.getHeaders({contentType:t}),...i};return r&&(a.body=JSON.stringify(r)),a}}function GT(e,t){if(!t||!e)return e;const n=t.replace(/^[?&]+/,""),[r,i]=e.split("#"),a=r.includes("?")?"&":"?",s=`${r}${a}${n}`;return i?`${s}#${i}`:s}function VT({href:e="",queryParamToAppend:t="",children:n,context:r,onClick:i,seenRootEl:a,...s}){const{companySettings:u}=O.useContext(fn),o=e.startsWith("/")||typeof window<"u"&&e.startsWith(window.location.origin),c=Bn.getApiUrl(),f=GT(e,u.api.tracking?.queryParamToAppend),d=()=>{const y=`${c}/tracking/clicked/${r.appToken}`,v={discussionId:r.discussionId,urlClicked:e};try{fetch(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(v),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},h=()=>{const y=`${c}/tracking/displayed/${r.appToken}`,v={discussionId:r.discussionId,urlSeen:e};try{fetch(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(v),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},m=O.useMemo(()=>`${r.appToken}::${r.discussionId}::${e}`,[r.appToken,r.discussionId,e]),E=YT(h,{root:a,threshold:0,rootMargin:"0px 0px -10% 0px",dedupeKey:m}),A=y=>{d(),i?.(y)},_=o?{}:{target:"_blank",rel:"noopener noreferrer"};return o?N.jsx("a",{ref:E,href:f,...s,onClick:A,className:"customLinkInternal",children:n}):N.jsx("a",{ref:E,href:f,..._,...s,onClick:A,className:"customLinkExternal",children:n})}const qT=({content:e,metaData:t,context:n,seenRootEl:r})=>{const{chatlineLabelAssistantTranslation:i}=ua();return N.jsxs("div",{className:"flex justify-between mt-8 px-3 chatLineAssistant",children:[N.jsx("div",{className:"w-10 mr-3 mt-6",children:N.jsx("div",{children:N.jsx($T,{})})}),N.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[N.jsx("p",{className:"font-bold",children:i}),N.jsx("div",{children:N.jsx(Vo,{remarkPlugins:[jT],remarkRehypeOptions:{passThrough:["link"]},rehypePlugins:[Ll],components:{a:({node:a,href:s,children:u,...o})=>N.jsx(VT,{href:s??"",...o,context:n,seenRootEl:r,children:u})},children:e&&e})})]})]})},WT=({userType:e,content:t,metaData:n,context:r,seenRootEl:i})=>{const a=e==="user",s=e==="assistant";return N.jsxs(N.Fragment,{children:[a&&N.jsx(Lb,{content:t,metaData:n}),s&&N.jsx(qT,{content:t,metaData:n,context:r,seenRootEl:i})]})};function XT(e,t,n){let[r,i]=O.useState(e||t),a=O.useRef(e!==void 0),s=e!==void 0;O.useEffect(()=>{let c=a.current;c!==s&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let u=s?e:r,o=O.useCallback((c,...f)=>{let d=(h,...m)=>{n&&(Object.is(u,h)||n(h,...m)),s||(u=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((m,...E)=>{let A=c(s?u:m,...E);return d(A,...f),s?m:A})):(s||i(c),d(c,...f))},[s,u,n]);return[u,o]}const br={prefix:String(Math.round(Math.random()*1e10)),current:0},nc=O.createContext(br),QT=O.createContext(!1);let KT=!!(typeof window<"u"&&window.document&&window.document.createElement),mi=new WeakMap;function ZT(e=!1){let t=O.useContext(nc),n=O.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let s=mi.get(a);s==null?mi.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,mi.delete(a))}n.current=++t.current}return n.current}function JT(e){let t=O.useContext(nc);t===br&&!KT&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=ZT(!!e),r=t===br&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function e2(e){let t=O.useId(),[n]=O.useState(a2()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${br.prefix}`;return e||`${r}-${t}`}const t2=typeof O.useId=="function"?e2:JT;function n2(){return!1}function r2(){return!0}function i2(e){return()=>{}}function a2(){return typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore(i2,n2,r2):O.useContext(QT)}function rc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=rc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function s2(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=rc(e))&&(r&&(r+=" "),r+=t);return r}const Wt=typeof document<"u"?O.useLayoutEffect:()=>{};function jt(e){const t=O.useRef(null);return Wt(()=>{t.current=e},[e]),O.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function u2(e){let[t,n]=O.useState(e),r=O.useRef(null),i=jt(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});Wt(()=>{r.current&&i()});let a=jt(s=>{r.current=s(t),i()});return[t,a]}let o2=!!(typeof window<"u"&&window.document&&window.document.createElement),Er=new Map;function Tr(e){let[t,n]=O.useState(e),r=O.useRef(null),i=t2(t),a=O.useCallback(s=>{r.current=s},[]);return o2&&Er.set(i,a),Wt(()=>{let s=i;return()=>{Er.delete(s)}},[i]),O.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function l2(e,t){if(e===t)return e;let n=Er.get(e);if(n)return n(t),t;let r=Er.get(t);return r?(r(e),e):t}function cu(e=[]){let t=Tr(),[n,r]=u2(t),i=O.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Wt(i,[t,i,...e]),n}function c2(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const qn=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},xr=e=>e&&"window"in e&&e.window===e?e:qn(e).defaultView||window;function yr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=c2(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=s2(a,s):i==="id"&&a&&s?t.id=l2(a,s):t[i]=s!==void 0?s:a}}return t}const f2=new Set(["id"]),d2=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),h2=new Set(["href","target","rel","download","ping","referrerPolicy"]),m2=/^(data-.*)$/;function p2(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(f2.has(s)||n&&d2.has(s)||r&&h2.has(s)||i?.has(s)||m2.test(s))&&(a[s]=e[s]);return a}function fu(e){if(g2())e.focus({preventScroll:!0});else{let t=b2(e);e.focus(),E2(t)}}let rr=null;function g2(){if(rr==null){rr=!1;try{document.createElement("div").focus({get preventScroll(){return rr=!0,!0}})}catch{}}return rr}function b2(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function E2(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function T2(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function x2(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function y2(){return x2(/^Mac/i)}function A2(){return T2(/Android/i)}let tn=new Map,Xi=new Set;function du(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=tn.get(r.target);i||(i=new Set,tn.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=tn.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),tn.delete(r.target)),tn.size===0)){for(let a of Xi)a();Xi.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?du():document.addEventListener("DOMContentLoaded",du));function _2(e){requestAnimationFrame(()=>{tn.size===0?e():Xi.add(e)})}function C2(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Tr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function S2(e,t){Wt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function w2(e){return e.mozInputSource===0&&e.isTrusted?!0:A2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function I2(e,t,n){let r=O.useRef(t),i=jt(()=>{n&&n(r.current)});O.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s?.addEventListener("reset",i),()=>{s?.removeEventListener("reset",i)}},[e,i])}const v2=O.createContext({register:()=>{}});v2.displayName="PressResponderContext";class N2{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function k2(e){let t=O.useRef({isFocused:!1,observer:null});Wt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=jt(r=>{e?.(r)});return O.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=s=>{t.current.isFocused=!1,i.disabled&&n(new N2("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function O2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=O.useCallback(o=>{if(o.target===o.currentTarget)return r&&r(o),i&&i(!1),!0},[r,i]),s=k2(a),u=O.useCallback(o=>{o.target===o.currentTarget&&document.activeElement===o.target&&(n&&n(o),i&&i(!0),s(o))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?a:void 0}}}let bn=null,L2=new Set,Rn=new Map,Yt=!1,Qi=!1;function Hr(e,t){for(let n of L2)n(e,t)}function R2(e){return!(e.metaKey||!y2()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ar(e){Yt=!0,R2(e)&&(bn="keyboard",Hr("keyboard",e))}function rt(e){bn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Yt=!0,Hr("pointer",e))}function ic(e){w2(e)&&(Yt=!0,bn="virtual")}function ac(e){e.target===window||e.target===document||(!Yt&&!Qi&&(bn="virtual",Hr("virtual",e)),Yt=!1,Qi=!1)}function sc(){Yt=!1,Qi=!0}function hu(e){if(typeof window>"u"||Rn.get(xr(e)))return;const t=xr(e),n=qn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Yt=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ar,!0),n.addEventListener("keyup",Ar,!0),n.addEventListener("click",ic,!0),t.addEventListener("focus",ac,!0),t.addEventListener("blur",sc,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",rt,!0),n.addEventListener("pointermove",rt,!0),n.addEventListener("pointerup",rt,!0)):(n.addEventListener("mousedown",rt,!0),n.addEventListener("mousemove",rt,!0),n.addEventListener("mouseup",rt,!0)),t.addEventListener("beforeunload",()=>{uc(e)},{once:!0}),Rn.set(t,{focus:r})}const uc=(e,t)=>{const n=xr(e),r=qn(e);t&&r.removeEventListener("DOMContentLoaded",t),Rn.has(n)&&(n.HTMLElement.prototype.focus=Rn.get(n).focus,r.removeEventListener("keydown",Ar,!0),r.removeEventListener("keyup",Ar,!0),r.removeEventListener("click",ic,!0),n.removeEventListener("focus",ac,!0),n.removeEventListener("blur",sc,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",rt,!0),r.removeEventListener("pointermove",rt,!0),r.removeEventListener("pointerup",rt,!0)):(r.removeEventListener("mousedown",rt,!0),r.removeEventListener("mousemove",rt,!0),r.removeEventListener("mouseup",rt,!0)),Rn.delete(n))};function D2(e){const t=qn(e);let n;return t.readyState!=="loading"?hu(e):(n=()=>{hu(e)},t.addEventListener("DOMContentLoaded",n)),()=>uc(e,n)}typeof document<"u"&&D2();function P2(){return bn}function M2(e){bn=e,Hr(e,null)}function mu(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function B2(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:mu(e.onKeyDown),onKeyUp:mu(e.onKeyUp)}}}function F2(e){const t=qn(e);if(P2()==="virtual"){let n=t.activeElement;_2(()=>{t.activeElement===n&&e.isConnected&&fu(e)})}else fu(e)}function H2(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class Na{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new pu({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&H2(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Na;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new pu({scopeRef:null}),this.fastMap.set(null,this.root)}}class pu{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new Na;let U2=O.createContext(null);function j2(e){let t=O.useContext(U2)||{};S2(t,e);let{ref:n,...r}=t;return r}function $2(e,t){let{focusProps:n}=O2(e),{keyboardProps:r}=B2(e),i=yr(n,r),a=j2(t),s=e.isDisabled?{}:a,u=O.useRef(e.autoFocus);return O.useEffect(()=>{u.current&&t.current&&F2(t.current),u.current=!1},[t]),{focusableProps:yr({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function z2(e,t,n){let{validationBehavior:r,focus:i}=e;Wt(()=>{if(r==="native"&&n?.current){let o=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(o),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(G2(n.current))}});let a=jt(()=>{t.resetValidation()}),s=jt(o=>{var c;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!o.defaultPrevented&&n&&f&&V2(f)===n.current){var d;i?i():(d=n.current)===null||d===void 0||d.focus(),M2("keyboard")}o.preventDefault()}),u=jt(()=>{t.commitValidation()});O.useEffect(()=>{let o=n?.current;if(!o)return;let c=o.form;return o.addEventListener("invalid",s),o.addEventListener("change",u),c?.addEventListener("reset",a),()=>{o.removeEventListener("invalid",s),o.removeEventListener("change",u),c?.removeEventListener("reset",a)}},[n,s,u,a,r])}function Y2(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function G2(e){return{isInvalid:!e.validity.valid,validationDetails:Y2(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function V2(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const oc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},lc={...oc,customError:!0,valid:!1},yn={isInvalid:!1,validationDetails:oc,validationErrors:[]},q2=O.createContext({}),gu="__formValidationState"+Date.now();function W2(e){if(e[gu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[gu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return X2(e)}function X2(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let o=t?{isInvalid:!0,validationErrors:[],validationDetails:lc}:null,c=O.useMemo(()=>bu(Q2(s,i)),[s,i]);a?.validationDetails.valid&&(a=null);let f=O.useContext(q2),d=O.useMemo(()=>r?Array.isArray(r)?r.flatMap(S=>Ki(f[S])):Ki(f[r]):[],[f,r]),[h,m]=O.useState(f),[E,A]=O.useState(!1);f!==h&&(m(f),A(!1));let _=O.useMemo(()=>bu(E?[]:d),[E,d]),y=O.useRef(yn),[v,w]=O.useState(yn),D=O.useRef(yn),C=()=>{if(!k)return;q(!1);let S=c||a||y.current;pi(S,D.current)||(D.current=S,w(S))},[k,q]=O.useState(!1);return O.useEffect(C),{realtimeValidation:o||_||c||a||yn,displayValidation:u==="native"?o||_||v:o||_||c||a||v,updateValidation(S){u==="aria"&&!pi(v,S)?w(S):y.current=S},resetValidation(){let S=yn;pi(S,D.current)||(D.current=S,w(S)),u==="native"&&q(!1),A(!0)},commitValidation(){u==="native"&&q(!0),A(!0)}}}function Ki(e){return e?Array.isArray(e)?e:[e]:[]}function Q2(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ki(n)}return[]}function bu(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:lc}:null}function pi(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function K2(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Tr(t);let s=Tr(),u={};n?(r=r?`${s} ${r}`:s,u={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let o=C2({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:o}}function Z2(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=K2(e),u=cu([!!t,!!n,r,i]),o=cu([!!t,!!n,r,i]);return s=yr(s,{"aria-describedby":[u,o,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:u},errorMessageProps:{id:o}}}function J2(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:s="text",validationBehavior:u="aria"}=e,[o,c]=XT(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=$2(e,t),d=W2({...e,value:o}),{isInvalid:h,validationErrors:m,validationDetails:E}=d.displayValidation,{labelProps:A,fieldProps:_,descriptionProps:y,errorMessageProps:v}=Z2({...e,isInvalid:h,errorMessage:e.errorMessage||m}),w=p2(e,{labelable:!0});const D={type:s,pattern:e.pattern};return I2(t,o,c),z2(e,d,t),O.useEffect(()=>{if(t.current instanceof xr(t.current).HTMLTextAreaElement){let C=t.current;Object.defineProperty(C,"defaultValue",{get:()=>C.value,set:()=>{},configurable:!0})}},[t]),{labelProps:A,inputProps:yr(w,n==="input"&&D,{disabled:r,readOnly:a,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:o,onChange:C=>c(C.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,..._}),descriptionProps:y,errorMessageProps:v,isInvalid:h,validationErrors:m,validationDetails:E}}const ex=e=>e.charCodeAt(e.length-1)===10,tx=e=>{const[t,n]=O.useState(""),r=()=>{h.current&&(h.current.style.height=h.current.scrollHeight+"px")},i=()=>{h.current&&(h.current.style.height="48px")},a=C=>{n(C)};O.useEffect(r,[t]);let{label:s,SubmitComponent:u,onSubmit:o,isLoadingStream:c,LoadingComponent:f,onPressLoadingButton:d}=e,h=O.useRef(null),{labelProps:m,inputProps:E}=J2({...e,inputElementType:"textarea"},h);const A=C=>{ex(C.target.value)||a(C.target.value)},_=C=>{if(C.key==="Enter"||C.code==="Enter"||C.keyCode===13||C.code==="NumpadEnter"){if(C.shiftKey)a(t+`
|
|
85
|
+
`);else if(!C.shiftKey){C.preventDefault(),C.stopPropagation(),c||w();return}}},y=C=>{(C.key==="Enter"||C.code==="Enter"||C.keyCode===13||C.code==="NumpadEnter")&&(C.preventDefault(),C.stopPropagation())};let v=e.isDisabled;e.shouldDisableIfInputIsEmpty&&(v=e.isDisabled||t.length===0);const w=()=>{i(),o&&o(t),a("")},D=()=>{d&&d()};return N.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:`${e.classNameContainer} w-full`,children:[N.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[N.jsx("label",{...m,className:e.classNameLabel,children:s}),N.jsx("textarea",{...E,ref:h,className:`${e.classNameTextarea} p-3`,onChange:A,value:t,rows:1,style:{overflow:"hidden",outlineColor:"#a8a8a8",border:"none",outline:"none",width:"calc(100% - 30px)",resize:"none"},onKeyDown:_,onKeyUp:y})]}),!c&&u&&N.jsx("div",{className:"relative",children:N.jsx(u,{onSubmitButton:w,isDisabled:v})}),c&&f&&N.jsx("div",{className:"relative",children:N.jsx(f,{onPressLoadingButton:D})})]})},nx=({onSubmitButton:e,isDisabled:t})=>N.jsx("div",{children:N.jsx("button",{className:`absolute
|
|
71
86
|
bg-violet-600
|
|
72
87
|
md:bottom-2
|
|
73
88
|
md:right-3
|
|
@@ -83,25 +98,25 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
83
98
|
rounded-lg
|
|
84
99
|
dark:border-white
|
|
85
100
|
dark:bg-white
|
|
86
|
-
transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,type:"button","aria-label":"Send message",children:
|
|
101
|
+
transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,type:"button","aria-label":"Send message",children:N.jsx("span",{className:"","data-state":"closed",children:N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",className:"text-white dark:text-black",children:[N.jsx("path",{d:"M3 20L21 12L3 4L7.5 12L3 20Z",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linejoin":"round"}),N.jsx("path",{d:"M7.5 12H14.75",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round"})]})})})});var it=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(it||{});const rx={"generic.language.english":"English","generic.language.french":"French","chatbot.placeholder.content":"Message the assistant...","chatbot.DiscussionLimitReached.title":"Discussion limit reached","chatbot.DiscussionLimitReached.explaination":"The discussion has reached its maximum number of messages. Please start a new one.","chatbot.DiscussionLimitReached.cta":"Restart","chatbot.error.api.409":"Oups ! The discussion if full. Please start a new one.","chatbot.error.api.429":"⏳ The chatbot is a little busy at the time. Please try again later.","chatbot.error.api.500":"Oops ! There has been an error. Please try again later.","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","chatbot.chatline.seeRecentMessages":"see recent messages","chatbot.infobanner.title":"You have an archived discussion.","chatbot.infobanner.cta":"See"},ix={"generic.language.english":"Anglais","generic.language.french":"Français","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.DiscussionLimitReached.title":"Maximum de messages envoyés atteint.","chatbot.DiscussionLimitReached.explaination":"Le robot est à son maximum et ne peut plus envoyer de message. Merci de relancer une conversation.","chatbot.DiscussionLimitReached.cta":"Relancer une nouvelle conversation","chatbot.error.api.409":"Oups ! La discussion est à son maximum. Merci d'en commencer une nouvelle.","chatbot.error.api.429":"⏳ Le robot est un peu occupé actuellement. Merci de réessayer plus tard.","chatbot.error.api.500":"Oups ! Une erreur est survenue. Merci de réessayer plus tard !","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","chatbot.chatline.seeRecentMessages":"voir les messages plus récents","chatbot.infobanner.title":"Vous avez une conversation archivée.","chatbot.infobanner.cta":"Voir"},Ur={[it.ENGLISH]:{translatedText:rx,pictureName:it.ENGLISH,langID:0,locale:it.ENGLISH},[it.FRENCH]:{translatedText:ix,pictureName:it.FRENCH,langID:1,locale:it.FRENCH}},ax=Object.keys(Ur);ax.reduce((e,t)=>{const n=Ur[t];return[...e,n]},[]);const sx="languageSettings",cc=O.createContext({appCurrentLang:Ur[it.ENGLISH],setAppCurrentLang:()=>{}}),ux=e=>/(\[.*|\!\[.*)$/.test(e),ox=e=>/\)/.test(e),lx=e=>e.filter(t=>t.userType==="user").length;var Zi=(e=>(e.GET_DISCUSSION_ID="/id",e.RESET_DISCUSSION="/delete",e))(Zi||{});const cx=e=>!!e.startsWith("/"),fx=(e,t,n,r)=>e===Zi.GET_DISCUSSION_ID?t?`Votre ID de discussion est ${t}`:"Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas.":e===Zi.RESET_DISCUSSION?(n(r),null):`La commande ${e} n'est pas prise en compte.`;var Cn=(e=>(e.OUTPUT_STREAM_TEXT_TYPE="text",e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE="number_of_steps",e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE="current_step_number",e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE="current_step_name",e))(Cn||{});class Zt{constructor(){}static transformStringifiedObjectIntoArrayOfObjects=t=>{const r=t.split("}").map(s=>s.startsWith("{")?s+="}":null),i=r.filter(s=>!!s);let a;try{a=i.map(s=>JSON.parse(s))}catch{console.warn("Could not parse the objects. Objects received :"),console.warn("Initial objects :",t),console.warn("objectsCompleted :",r),console.warn("objectsCleaned :",i)}return a};static isObjectOutputstreamTextDTO=t=>t.type===Cn.OUTPUT_STREAM_TEXT_TYPE;static isObjectOutputstreamLoadingNumberOfStepsDTO=t=>t.type===Cn.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE;static isObjectOutputstreamLoadingCurrentStepNumberDTO=t=>t.type===Cn.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE;static isObjectOutputstreamLoadingCurrentStepNameDTO=t=>t.type===Cn.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE;static containsObjectWithLastAnswerToTrue=t=>{for(const n of t)if(this.isObjectOutputstreamTextDTO(n)&&n.isLastAnswer)return!0;return!1}}const fc=()=>{const e=Hn(),t=e.formatMessage({defaultMessage:"Search",id:"chatbot.chatline.loading.function.search"}),n=e.formatMessage({defaultMessage:"Looking into the cavern",id:"chatbot.chatline.loading.function.extractProductName"}),r=e.formatMessage({defaultMessage:"Consulting the shadocks",id:"chatbot.chatline.loading.function.suggestProductName"}),i=e.formatMessage({defaultMessage:"Looking for ziboublis",id:"chatbot.chatline.loading.function.criteriaDefinition"}),a=e.formatMessage({defaultMessage:"Searching Stock",id:"chatbot.chatline.loading.function.searchStock"}),s=e.formatMessage({defaultMessage:"Step",id:"chatbot.chatline.loading.function.step"}),u=e.formatMessage({defaultMessage:"I'm looking for products",id:"chatbot.chatline.loading.function.genericSearchMessage"}),o=e.formatMessage({defaultMessage:"Cancel",id:"chatbot.chatline.loading.cancel"}),c=e.formatMessage({defaultMessage:"see recent messages",id:"chatbot.chatline.seeRecentMessages"}),f=h=>h?h.includes("ExtractProductNames")?n:h.includes("SuggestProductNames")?r:h.includes("CreateCriteriasFromProductNames")||h.includes("CreateCriteriasOrProductNamesFromDiscussion")?i:h.includes("SearchStock")?a:"":t,d=f();return{searchTranslation:t,extractProductNameTranslation:n,criteriaDefinitionTranslation:i,searchStockTranslation:a,stepTranslation:s,getFunctionTranslated:f,defaultStartingStep:d,lookingForProductTranslation:u,cancelTranslation:o,recentMessagesTranslation:c}},dx=({})=>{const{companySettings:e}=O.useContext(fn);return N.jsx("div",{className:`search
|
|
87
102
|
transition
|
|
88
103
|
ease-in-out
|
|
89
104
|
delay-50
|
|
90
105
|
flex
|
|
91
106
|
justify-center
|
|
92
107
|
items-center
|
|
93
|
-
`,children:
|
|
108
|
+
`,children:N.jsx(na,{facet:e.agent.display[We.AgentDisplayFacetRoleType.SEARCH]})})},hx=({loadingStatus:e,currentStepName:t,currentStepNumber:n,numberOfSteps:r})=>{const{getFunctionTranslated:i,stepTranslation:a,lookingForProductTranslation:s}=fc();return N.jsx(N.Fragment,{children:e==="loadingIntermediaryStates"&&N.jsxs("div",{children:[N.jsxs("div",{children:[N.jsxs("p",{className:"text-center my-2 text-lg",children:[s,"..."]}),N.jsx("p",{className:"text-center my-1 text-md",children:t&&`${i(t)}`}),n&&N.jsxs("p",{className:"text-center my-2",children:[a,N.jsx("span",{children:" "}),n,"/",r]})]}),N.jsx("div",{className:"flex justify-center",children:N.jsx(dx,{})})]})})},mx=({onPressLoadingButton:e})=>N.jsx("div",{children:N.jsx("button",{className:"absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors","data-testid":"send-button",onClick:e,type:"button",style:{outline:"none"},tabIndex:-1,onMouseDown:t=>t.preventDefault(),onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&t.preventDefault()},onKeyUp:t=>{(t.key==="Enter"||t.key===" ")&&t.preventDefault()},children:N.jsx("span",{className:"","data-state":"closed",children:N.jsxs("svg",{fill:"#000000",height:"24",width:"24",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 297 297",children:[N.jsx("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),N.jsx("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),N.jsxs("g",{id:"SVGRepo_iconCarrier",children:[" ",N.jsx("path",{d:"M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z"})," "]})]})})})}),px=e=>{const t=O.useRef(null),[n,r]=O.useState(!1),i=O.useRef(!0),a=O.useRef(!1),s=O.useRef(0),u=()=>{const f=t.current,d=4;if(f){f.scrollTop<s.current-1&&(a.current=!1);const m=f.scrollHeight>f.clientHeight,E=f.scrollHeight-f.scrollTop<=f.clientHeight+d;r(m&&!E),i.current=E,s.current=f.scrollTop}},o=({smooth:f=!1,sticky:d=!1})=>{const h=t.current;d?(a.current=!0,i.current=!0):h&&h.scrollTo({top:h.scrollHeight,behavior:f?"smooth":"auto"}),h&&a.current&&h.scrollTo({top:h.scrollHeight,behavior:f?"smooth":"auto"})};return O.useEffect(()=>{u()},[e.length]),O.useEffect(()=>{const f=t.current;if(f)return f.addEventListener("scroll",u),u(),()=>{f.removeEventListener("scroll",u)}},[]),O.useLayoutEffect(()=>{a.current&&o({smooth:!1})},[e.length]),{scrollToBottom:o,removeStickyNess:()=>{a.current=!1},messagesContainerRef:t,showScrollButton:n}},gx=()=>{const e=Hn(),t=e.formatMessage({defaultMessage:"Discussion limit reached",id:"chatbot.DiscussionLimitReached.title"}),n=e.formatMessage({defaultMessage:"The discussion has reached its maximum number of messages. Please start a new one.",id:"chatbot.DiscussionLimitReached.explaination"}),r=e.formatMessage({defaultMessage:"Restart",id:"chatbot.DiscussionLimitReached.cta"});return{DiscussionLimitReachedTitleTranslation:t,DiscussionLimitReachedExplainationTranslation:n,DiscussionLimitReachedCtaTranslation:r}},bx=e=>De.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},De.createElement("g",{clipPath:"url(#clip0_1276_7761)"},De.createElement("path",{d:"M19.7285 10.9288C20.4413 13.5978 19.7507 16.5635 17.6569 18.6573C15.1798 21.1344 11.4826 21.6475 8.5 20.1966M18.364 8.05071L17.6569 7.3436C14.5327 4.21941 9.46736 4.21941 6.34316 7.3436C3.42964 10.2571 3.23318 14.8588 5.75376 18M18.364 8.05071H14.1213M18.364 8.05071V3.80807",stroke:"#1C274C",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),De.createElement("defs",null,De.createElement("clipPath",{id:"clip0_1276_7761"},De.createElement("rect",{width:24,height:24,fill:"white"})))),Ex=({resetDiscussion:e,companySettings:t})=>{const{DiscussionLimitReachedCtaTranslation:n,DiscussionLimitReachedExplainationTranslation:r,DiscussionLimitReachedTitleTranslation:i}=gx();return N.jsx(N.Fragment,{children:N.jsx("div",{className:"px-3 mt-4",children:N.jsxs("div",{role:"status","aria-live":"polite",className:"info-banner not-prose flex items-start gap-3 rounded-lg bg-blue-50 border-l-4 border-blue-500 p-4 shadow-sm",children:[N.jsx("div",{className:"flex flex-col justify-center items-center mx-3",children:N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"!w-5 !h-5 mt-0.5 flex-shrink-0 pointer-events-none",children:N.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16Zm.75-11.5a.75.75 0 10-1.5 0 .75.75 0 001.5 0ZM9 8.75A.75.75 0 019.75 8h.5a.75.75 0 01.75.75v5a.75.75 0 01-.75.75h-.5A.75.75 0 019 13.75v-5Z",clipRule:"evenodd"})})}),N.jsxs("div",{className:"flex-1 min-w-0",children:[N.jsx("p",{className:"font-semibold",children:i}),N.jsx("p",{className:"text-sm break-words",children:r}),N.jsx("div",{className:"my-2",children:N.jsxs("button",{type:"button",onClick:()=>e(t),title:n,"aria-label":n,className:`group inline-flex items-center gap-2 rounded-full px-3 py-1.5
|
|
94
109
|
font-medium text-blue-700 dark:text-blue-300
|
|
95
110
|
bg-blue-50/70 hover:bg-blue-100 dark:bg-blue-900/20 dark:hover:bg-blue-900/30
|
|
96
111
|
ring-1 ring-inset ring-blue-600/20 hover:ring-blue-600/30
|
|
97
112
|
shadow-sm transition-all duration-200
|
|
98
113
|
focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/50
|
|
99
|
-
active:scale-[0.98]`,children:[
|
|
114
|
+
active:scale-[0.98]`,children:[N.jsx(bx,{"aria-hidden":"true",className:"w-5 h-5 transition-transform duration-200 group-hover:rotate-180"}),N.jsx("span",{children:n})]})})]})]})})})},Tx=({onClick:e,label:t="voir les messages plus récents",className:n})=>{const[r,i]=O.useState(!1);return O.useEffect(()=>{const a=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(a)},[]),N.jsx("button",{onClick:e,className:["absolute z-10 select-none outline-none","left-1/2 -translate-x-1/2 right-auto","bottom-[80px]","transition-all duration-300 ease-out",r?"opacity-100 translate-y-0":"opacity-0 translate-y-2",n??""].join(" "),"aria-label":t,title:t,children:N.jsx("span",{className:["inline-block text-center leading-tight","text-sm px-3 py-1.5","bg-violet-600/90 text-white rounded-full shadow-md backdrop-blur-[2px]","break-words max-w-[min(22rem,calc(100vw-4rem))]"].join(" "),children:t})})},dc="chatsystem-widget",xx=1440*60*1e3;function yx(e){return!(typeof e!="object"||e===null||e.userType!=="user"&&e.userType!=="assistant"||"content"in e&&e.content!==void 0&&typeof e.content!="string"||"metaData"in e&&e.metaData!==void 0&&(typeof e.metaData!="object"||e.metaData===null||"isErrorMessage"in e.metaData&&e.metaData.isErrorMessage!==void 0&&typeof e.metaData.isErrorMessage!="boolean"))}function Ax(e){return!(typeof e!="object"||e===null||!Array.isArray(e.items)||!e.items.every(yx)||e.discussionId!==null&&typeof e.discussionId!="number"||typeof e.updatedAt!="string"||Number.isNaN(Date.parse(e.updatedAt)))}function _x(e){if(typeof window>"u")return;const t=e.key??dc,n={items:e.conversation.items,discussionId:e.conversation.discussionId,updatedAt:new Date().toISOString()};try{const r=JSON.stringify(n);console.log("saving",r),window.localStorage.setItem(t,r)}catch(r){console.error("Failed to save chat state to localStorage",r)}}function Cx(e){if(typeof window>"u")return null;const t=e?.key,n=window.localStorage.getItem(t);if(!n)return null;try{const r=JSON.parse(n);return Ax(r)?r:(console.warn("Chat state in localStorage has unexpected shape, ignoring."),null)}catch(r){return console.error("Failed to parse chat state from localStorage",r),null}}const hc=O.createContext({currentConversation:{items:[],discussionId:null},setCurrentConversation:()=>{},archivedConversation:{items:[],discussionId:null},setArchivedConversation:()=>{}}),Sx=()=>{const e=O.useContext(hc);if(!e)throw new Error("useChatbotConversation must be used within ChatbotInitialtextContext.Provider");const{currentConversation:t,setCurrentConversation:n,archivedConversation:r,setArchivedConversation:i}=e,a=_=>{n(y=>({...y,discussionId:_}))},s=_=>{n(y=>({...y,items:_}))},u=_=>{n(y=>({...y,items:[...y.items,_]}))},o=()=>{n(_=>({..._,items:[..._.items,{userType:"assistant",content:""}]}))},c=()=>{n(_=>({..._,items:_.items.filter(y=>!(y.content?.length===0&&y.userType==="assistant"))}))},f=()=>{n(_=>{const y=[..._.items];return y.pop(),{..._,items:y}})},d=_=>{n(y=>({...y,updatedAt:_.updatedAt}))},h=_=>{n({discussionId:null,items:[{userType:"assistant",content:_?.agent?.text?.initialText}],updatedAt:null})},m=()=>{i({discussionId:null,items:[],updatedAt:null})};return{currentConversation:t,setCurrentConversation:n,setCurrentConversationId:a,setCurrentConversationMetadata:d,resetConversation:h,setCurrentConversationItems:s,addMessageToCurrentConversation:u,removeEmptyAssistantMessageFromCurrentConversation:c,addEmptyAssistantMessageToCurrentConversation:o,removeLastMessageFromCurrentConversation:f,updateCurrentConversationLastMessage:(_,y)=>{n(v=>{const w=[...v.items],D=w.length-1,C=w[D];return w[D]={...C,content:C.content=_,metaData:{isErrorMessage:y}},{...v,items:w}})},archivedConversation:r,setArchivedConversationAsMain:()=>{n(r),m()}}},wx=({message:e,actionLabel:t,onClick:n})=>N.jsxs("div",{className:"mt-3 mb-2 flex items-start gap-2 rounded-md border border-sky-100 bg-sky-50 px-3 py-2 text-xs text-sky-900 shadow-sm",children:[N.jsx("div",{className:"mt-0.5 inline-flex h-4 w-4 items-center justify-center rounded-full bg-sky-500 text-[10px] font-semibold text-white",children:"i"}),N.jsxs("div",{className:"flex-1",children:[N.jsx("p",{className:"leading-snug",children:e}),N.jsx("button",{type:"button",onClick:n,className:"mt-1 inline-flex items-center text-[11px] font-medium text-sky-700 hover:text-sky-900 hover:underline",children:t})]})]});let ir=new AbortController;const mc=({appToken:e,containerClassName:t})=>{e||console.log("Dev - Admin settings");const n=O.useRef(null),{placeholderTranslation:r,genericErrorTranslation:i,tooManyRequestsTranslation:a,discussionFullErrorTranslation:s,infoBannerExplainationTranslation:u,infoBannerTitleTranslation:o}=ua(),{currentConversation:c,addEmptyAssistantMessageToCurrentConversation:f,addMessageToCurrentConversation:d,removeEmptyAssistantMessageFromCurrentConversation:h,removeLastMessageFromCurrentConversation:m,resetConversation:E,setCurrentConversationId:A,updateCurrentConversationLastMessage:_,archivedConversation:y,setArchivedConversationAsMain:v}=Sx(),[w,D]=O.useState("notLoading"),{defaultStartingStep:C,recentMessagesTranslation:k}=fc(),[q,ue]=O.useState(null),[ae,S]=O.useState(C),[$,H]=O.useState(null),[Y,z]=O.useState(!1),{companySettings:Z}=O.useContext(fn),{appCurrentLang:de}=O.useContext(cc),ye=w!=="notLoading"||(c?.items?.length??0)>0,[Ne,Pe]=O.useState(!0),p=!!y&&(y.items?.length??0)>0,U=()=>{v(),Pe(!1)},X=O.useRef(w);O.useEffect(()=>{const Q=X.current,ge=w;Q!=="notLoading"&&ge==="notLoading"&&c.discussionId!==null&&c?.items.length>0&&_x({conversation:c}),X.current=ge},[w,c?.items.length,c.discussionId]);const T={...ye?{maxHeight:"100vh"}:{height:"250px"}};O.useEffect(()=>{lx(c.items)>=Z?.api?.settings?.maxUserMessagesPerDiscussion&&z(!0)},[c.items.length]);const{scrollToBottom:V,showScrollButton:te,messagesContainerRef:G,removeStickyNess:J}=px(c.items),ne=()=>{ir.abort("Cancelling stream on purpose."),console.log("Stream request aborted"),D("notLoading"),h()},re=async Q=>{D("loadingIntermediaryStates");const ge=Bn.getApiUrl(),j={query:Q,language:de.locale};f(),requestAnimationFrame(()=>V({smooth:!1,sticky:!1})),c?.discussionId&&(j.discussionId=c.discussionId);const Le=ir.signal,Ze=Bn.getFetchConfig({httpVerb:"POST",body:j,contentType:"application/json",options:{signal:Le}});fetch(`${ge}/ai/prompt/${e}`,Ze).then(async Fe=>{const Rt=Fe?.body?.getReader(),$e=new TextDecoder;let xt="",ot="",ce=!1,we=!1,be=null;const Ae=Fe.headers.get("discussionId"),ke=parseInt(Ae,10);A(ke),await new ReadableStream({start(M){return K();async function K(){if(!Fe.ok){D("notLoading");let ie=i;Fe.status===409?(ie=s,z(!0)):Fe.status===429?ie=a:(Fe.status,ie=i),m(),d({userType:"assistant",content:ie,metaData:{isErrorMessage:!0}}),ir=new AbortController;return}return Rt?.read().then(ie=>{const{done:Ee,value:Xe}=ie,yt=$e.decode(Xe),Je=Zt.transformStringifiedObjectIntoArrayOfObjects(yt);Zt.containsObjectWithLastAnswerToTrue(Je)&&D("loadingFinalAnswer");for(const ze of Je)if(Zt.isObjectOutputstreamTextDTO(ze)){const{content:_e,isLastAnswer:Ct,streamSourceUuid:et,shouldStopStream:La}=ze;be&&be!==et&&(xt+='<span style="display:block;height:1rem;"></span>'),be=et,(Ct||La)&&(we=!0),M.enqueue(_e),ox(_e)?(ot+=_e,xt+=ot,ot="",ce=!1):ce||ux(_e)?(ot+=_e,ce=!0):xt+=_e,_(xt,La)}else if(Zt.isObjectOutputstreamLoadingCurrentStepNumberDTO(ze)){const{content:_e}=ze;M.enqueue(_e),H(_e)}else if(Zt.isObjectOutputstreamLoadingCurrentStepNameDTO(ze)){const{content:_e}=ze;M.enqueue(_e),S(_e)}else if(Zt.isObjectOutputstreamLoadingNumberOfStepsDTO(ze)){const{content:_e}=ze;M.enqueue(_e),ue(_e)}else console.warn(`Object not handled - ${ze}`);if(Ee&&we){M.close(),D("notLoading"),S(C),H(null);return}return K()})}}}).pipeTo(new WritableStream)}).catch(Fe=>{console.error(Fe),console.log("Cancelling stream"),D("notLoading"),ir=new AbortController})};return N.jsxs("div",{className:["relative p-2","flex flex-col min-h-0 overflow-hidden","h-auto",t??"max-w-[90%] mx-auto"].join(" "),ref:n,style:T,children:[N.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 messagesContainer",ref:G,children:[c.items.map((Q,ge)=>N.jsx(WT,{content:Q.content,userType:Q.userType,metaData:Q.metaData,context:{discussionId:c?.discussionId,messageIndex:ge,appToken:e},seenRootEl:G.current},ge)),N.jsx(hx,{currentStepName:ae,currentStepNumber:$,loadingStatus:w,numberOfSteps:q})]}),te&&N.jsx(Tx,{label:k,onClick:()=>V({smooth:!0,sticky:!0})}),Y&&N.jsx(Ex,{resetDiscussion:Q=>{z(!1),E(Q)},companySettings:Z}),p&&Ne&&N.jsx(wx,{actionLabel:o,message:u,onClick:U}),N.jsx("div",{className:"flex-shrink-0",children:N.jsx(tx,{classNameTextarea:"",classNameContainer:"relative mt-6 mt-3 border-slate-400 border-[1px] rounded-lg p-1",SubmitComponent:nx,isDisabled:w!=="notLoading"||Y,shouldDisableIfInputIsEmpty:!0,"aria-label":"TextArea For Bot Conversation",onSubmit:Q=>{if(Pe(!1),cx(Q)){const ge=fx(Q,c.discussionId,E,Z);ge&&d({userType:"user",content:ge}),J(),V({smooth:!0,sticky:!1})}else d({userType:"user",content:Q}),J(),V({smooth:!0,sticky:!1}),re(Q)},placeholder:r,autoFocus:!0,isLoadingStream:w==="loadingFinalAnswer"||w==="loadingIntermediaryStates",LoadingComponent:mx,onPressLoadingButton:ne})})]})};function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_r.apply(this,arguments)}function pc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ji(e,t){return Ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ji(e,t)}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ji(e,t)}var ar={exports:{}};/*
|
|
100
115
|
object-assign
|
|
101
116
|
(c) Sindre Sorhus
|
|
102
117
|
@license MIT
|
|
103
|
-
*/var
|
|
104
|
-
Valid keys: `+JSON.stringify(Object.keys(p),null," "));var U=me(J,X,V,ee,G+"."+X,n);if(U)return U}return null}return N(H)}function j(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every(j);if(p===null||o(p))return!0;var H=f(p);if(H){var W=H.call(p),b;if(H!==p.entries){for(;!(b=W.next()).done;)if(!j(b.value))return!1}else for(;!(b=W.next()).done;){var V=b.value;if(V&&!j(V[1]))return!1}}else return!1;return!0;default:return!1}}function Z(p,H){return p==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function de(p){var H=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":Z(H,p)?"symbol":H}function ye(p){if(typeof p>"u"||p===null)return""+p;var H=de(p);if(H==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return H}function ve(p){var H=ye(p);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function De(p){return!p.constructor||!p.constructor.name?h:p.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},aa}var ia,Js;function Rb(){if(Js)return ia;Js=1;var e=di();function t(){}function n(){}return n.resetWarningCache=t,ia=function(){function r(s,o,c,l,d,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ia}var eu;function kb(){if(eu)return Zn.exports;if(eu=1,process.env.NODE_ENV!=="production"){var e=Ua(),t=!0;Zn.exports=Lb()(e.isElement,t)}else Zn.exports=Rb()();return Zn.exports}var Db=kb();const ie=Fa(Db);function Pb(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Mb(e,t){e.classList?e.classList.add(t):Pb(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function tu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Bb(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=tu(e.className,t):e.setAttribute("class",tu(e.className&&e.className.baseVal||"",t))}const nu={disabled:!1};var Fb=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null,Hb=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]):null;const Sc=I.createContext(null);var Cc=function(t){return t.scrollTop},yn="unmounted",kt="exited",Dt="entering",Qt="entered",Ba="exiting",gt=(function(e){Ac(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var s=a,o=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?o?(c=kt,i.appearStatus=Dt):c=Qt:r.unmountOnExit||r.mountOnEnter?c=yn:c=kt,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===yn?{status:kt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Dt&&s!==Qt&&(i=Dt):(s===Dt||s===Qt)&&(i=Ba)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,o;return i=s=o=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Dt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:gn.findDOMNode(this);s&&Cc(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kt&&this.setState({status:yn})},n.performEnter=function(a){var i=this,s=this.props.enter,o=this.context?this.context.isMounting:a,c=this.props.nodeRef?[o]:[gn.findDOMNode(this),o],l=c[0],d=c[1],f=this.getTimeouts(),h=o?f.appear:f.enter;if(!a&&!s||nu.disabled){this.safeSetState({status:Qt},function(){i.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:Dt},function(){i.props.onEntering(l,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Qt},function(){i.props.onEntered(l,d)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:gn.findDOMNode(this);if(!i||nu.disabled){this.safeSetState({status:kt},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ba},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:kt},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:gn.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=c[0],d=c[1];this.props.addEndListener(l,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===yn)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=xc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(Sc.Provider,{value:null},typeof s=="function"?s(a,o):I.cloneElement(I.Children.only(s),o))},t})(I.Component);gt.contextType=Sc;gt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,r,a,i){var s=e[t];return ie.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(t){var n=Fb;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{};function Wt(){}gt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wt,onEntering:Wt,onEntered:Wt,onExit:Wt,onExiting:Wt,onExited:Wt};gt.UNMOUNTED=yn;gt.EXITED=kt;gt.ENTERING=Dt;gt.ENTERED=Qt;gt.EXITING=Ba;var Ub=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Mb(t,r)})},sa=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Bb(t,r)})},fi=(function(e){Ac(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(o,c){var l=r.resolveArguments(o,c),d=l[0],f=l[1];r.removeClasses(d,"exit"),r.addClass(d,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(o,c)},r.onEntering=function(o,c){var l=r.resolveArguments(o,c),d=l[0],f=l[1],h=f?"appear":"enter";r.addClass(d,h,"active"),r.props.onEntering&&r.props.onEntering(o,c)},r.onEntered=function(o,c){var l=r.resolveArguments(o,c),d=l[0],f=l[1],h=f?"appear":"enter";r.removeClasses(d,h),r.addClass(d,h,"done"),r.props.onEntered&&r.props.onEntered(o,c)},r.onExit=function(o){var c=r.resolveArguments(o),l=c[0];r.removeClasses(l,"appear"),r.removeClasses(l,"enter"),r.addClass(l,"exit","base"),r.props.onExit&&r.props.onExit(o)},r.onExiting=function(o){var c=r.resolveArguments(o),l=c[0];r.addClass(l,"exit","active"),r.props.onExiting&&r.props.onExiting(o)},r.onExited=function(o){var c=r.resolveArguments(o),l=c[0];r.removeClasses(l,"exit"),r.addClass(l,"exit","done"),r.props.onExited&&r.props.onExited(o)},r.resolveArguments=function(o,c){return r.props.nodeRef?[r.props.nodeRef.current,o]:[o,c]},r.getClassNames=function(o){var c=r.props.classNames,l=typeof c=="string",d=l&&c?c+"-":"",f=l?""+d+o:c[o],h=l?f+"-active":c[o+"Active"],m=l?f+"-done":c[o+"Done"];return{baseClassName:f,activeClassName:h,doneClassName:m}},r}var n=t.prototype;return n.addClass=function(a,i,s){var o=this.getClassNames(i)[s+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;i==="appear"&&s==="done"&&l&&(o+=" "+l),s==="active"&&a&&Cc(a),o&&(this.appliedClasses[i][s]=o,Ub(a,o))},n.removeClasses=function(a,i){var s=this.appliedClasses[i],o=s.base,c=s.active,l=s.done;this.appliedClasses[i]={},o&&sa(a,o),c&&sa(a,c),l&&sa(a,l)},n.render=function(){var a=this.props;a.classNames;var i=xc(a,["classNames"]);return I.createElement(gt,mr({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(I.Component);fi.defaultProps={classNames:""};fi.propTypes=process.env.NODE_ENV!=="production"?mr({},gt.propTypes,{classNames:Hb,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}):{};const jb=({setIsWidgetOpen:e})=>C.jsx(C.Fragment,{children:C.jsx("button",{type:"button","aria-label":"Close chat",onClick:()=>e(!1),className:`absolute right-2 top-1/2 -translate-y-1/2
|
|
118
|
+
*/var gi,Eu;function Ix(){if(Eu)return gi;Eu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var o=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(o.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gi=i()?Object.assign:function(a,s){for(var u,o=r(a),c,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var d in u)t.call(u,d)&&(o[d]=u[d]);if(e){c=e(u);for(var h=0;h<c.length;h++)n.call(u,c[h])&&(o[c[h]]=u[c[h]])}}return o},gi}var bi,Tu;function ka(){if(Tu)return bi;Tu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bi=e,bi}var Ei,xu;function bc(){return xu||(xu=1,Ei=Function.call.bind(Object.prototype.hasOwnProperty)),Ei}var Ti,yu;function vx(){if(yu)return Ti;yu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ka(),n={},r=bc();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,u,o,c){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var d;try{if(typeof a[f]!="function"){var h=Error((o||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=a[f](s,f,o,u,null,t)}catch(E){d=E}if(d&&!(d instanceof Error)&&e((o||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var m=c?c():"";e("Failed "+u+" type: "+d.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ti=i,Ti}var xi,Au;function Nx(){if(Au)return xi;Au=1;var e=ra(),t=Ix(),n=ka(),r=bc(),i=vx(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var o="Warning: "+u;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}});function s(){return null}return xi=function(u,o){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(p){var U=p&&(c&&p[c]||p[f]);if(typeof U=="function")return U}var h="<<anonymous>>",m={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:w,element:D(),elementType:C(),instanceOf:k,node:S(),objectOf:ue,oneOf:q,oneOfType:ae,shape:H,exact:Y};function E(p,U){return p===U?p!==0||1/p===1/U:p!==p&&U!==U}function A(p,U){this.message=p,this.data=U&&typeof U=="object"?U:{},this.stack=""}A.prototype=Error.prototype;function _(p){if(process.env.NODE_ENV!=="production")var U={},X=0;function T(te,G,J,ne,re,Q,ge){if(ne=ne||h,Q=Q||J,ge!==n){if(o){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=ne+":"+J;!U[Le]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[Le]=!0,X++)}}return G[J]==null?te?G[J]===null?new A("The "+re+" `"+Q+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new A("The "+re+" `"+Q+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:p(G,J,ne,re,Q)}var V=T.bind(null,!1);return V.isRequired=T.bind(null,!0),V}function y(p){function U(X,T,V,te,G,J){var ne=X[T],re=de(ne);if(re!==p){var Q=ye(ne);return new A("Invalid "+te+" `"+G+"` of type "+("`"+Q+"` supplied to `"+V+"`, expected ")+("`"+p+"`."),{expectedType:p})}return null}return _(U)}function v(){return _(s)}function w(p){function U(X,T,V,te,G){if(typeof p!="function")return new A("Property `"+G+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var J=X[T];if(!Array.isArray(J)){var ne=de(J);return new A("Invalid "+te+" `"+G+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected an array."))}for(var re=0;re<J.length;re++){var Q=p(J,re,V,te,G+"["+re+"]",n);if(Q instanceof Error)return Q}return null}return _(U)}function D(){function p(U,X,T,V,te){var G=U[X];if(!u(G)){var J=de(G);return new A("Invalid "+V+" `"+te+"` of type "+("`"+J+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return _(p)}function C(){function p(U,X,T,V,te){var G=U[X];if(!e.isValidElementType(G)){var J=de(G);return new A("Invalid "+V+" `"+te+"` of type "+("`"+J+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return _(p)}function k(p){function U(X,T,V,te,G){if(!(X[T]instanceof p)){var J=p.name||h,ne=Pe(X[T]);return new A("Invalid "+te+" `"+G+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected ")+("instance of `"+J+"`."))}return null}return _(U)}function q(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function U(X,T,V,te,G){for(var J=X[T],ne=0;ne<p.length;ne++)if(E(J,p[ne]))return null;var re=JSON.stringify(p,function(ge,j){var Le=ye(j);return Le==="symbol"?String(j):j});return new A("Invalid "+te+" `"+G+"` of value `"+String(J)+"` "+("supplied to `"+V+"`, expected one of "+re+"."))}return _(U)}function ue(p){function U(X,T,V,te,G){if(typeof p!="function")return new A("Property `"+G+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var J=X[T],ne=de(J);if(ne!=="object")return new A("Invalid "+te+" `"+G+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected an object."));for(var re in J)if(r(J,re)){var Q=p(J,re,V,te,G+"."+re,n);if(Q instanceof Error)return Q}return null}return _(U)}function ae(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var U=0;U<p.length;U++){var X=p[U];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ne(X)+" at index "+U+"."),s}function T(V,te,G,J,ne){for(var re=[],Q=0;Q<p.length;Q++){var ge=p[Q],j=ge(V,te,G,J,ne,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&re.push(j.data.expectedType)}var Le=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new A("Invalid "+J+" `"+ne+"` supplied to "+("`"+G+"`"+Le+"."))}return _(T)}function S(){function p(U,X,T,V,te){return z(U[X])?null:new A("Invalid "+V+" `"+te+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return _(p)}function $(p,U,X,T,V){return new A((p||"React class")+": "+U+" type `"+X+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function H(p){function U(X,T,V,te,G){var J=X[T],ne=de(J);if(ne!=="object")return new A("Invalid "+te+" `"+G+"` of type `"+ne+"` "+("supplied to `"+V+"`, expected `object`."));for(var re in p){var Q=p[re];if(typeof Q!="function")return $(V,te,G,re,ye(Q));var ge=Q(J,re,V,te,G+"."+re,n);if(ge)return ge}return null}return _(U)}function Y(p){function U(X,T,V,te,G){var J=X[T],ne=de(J);if(ne!=="object")return new A("Invalid "+te+" `"+G+"` of type `"+ne+"` "+("supplied to `"+V+"`, expected `object`."));var re=t({},X[T],p);for(var Q in re){var ge=p[Q];if(r(p,Q)&&typeof ge!="function")return $(V,te,G,Q,ye(ge));if(!ge)return new A("Invalid "+te+" `"+G+"` key `"+Q+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(X[T],null," ")+`
|
|
119
|
+
Valid keys: `+JSON.stringify(Object.keys(p),null," "));var j=ge(J,Q,V,te,G+"."+Q,n);if(j)return j}return null}return _(U)}function z(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every(z);if(p===null||u(p))return!0;var U=d(p);if(U){var X=U.call(p),T;if(U!==p.entries){for(;!(T=X.next()).done;)if(!z(T.value))return!1}else for(;!(T=X.next()).done;){var V=T.value;if(V&&!z(V[1]))return!1}}else return!1;return!0;default:return!1}}function Z(p,U){return p==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function de(p){var U=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":Z(U,p)?"symbol":U}function ye(p){if(typeof p>"u"||p===null)return""+p;var U=de(p);if(U==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return U}function Ne(p){var U=ye(p);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Pe(p){return!p.constructor||!p.constructor.name?h:p.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},xi}var yi,_u;function kx(){if(_u)return yi;_u=1;var e=ka();function t(){}function n(){}return n.resetWarningCache=t,yi=function(){function r(s,u,o,c,f,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},yi}var Cu;function Ox(){if(Cu)return ar.exports;if(Cu=1,process.env.NODE_ENV!=="production"){var e=ra(),t=!0;ar.exports=Nx()(e.isElement,t)}else ar.exports=kx()();return ar.exports}var Lx=Ox();const se=ta(Lx);function Rx(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Dx(e,t){e.classList?e.classList.add(t):Rx(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Su(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Px(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Su(e.className,t):e.setAttribute("class",Su(e.className&&e.className.baseVal||"",t))}const wu={disabled:!1};var Mx=process.env.NODE_ENV!=="production"?se.oneOfType([se.number,se.shape({enter:se.number,exit:se.number,appear:se.number}).isRequired]):null,Bx=process.env.NODE_ENV!=="production"?se.oneOfType([se.string,se.shape({enter:se.string,exit:se.string,active:se.string}),se.shape({enter:se.string,enterDone:se.string,enterActive:se.string,exit:se.string,exitDone:se.string,exitActive:se.string})]):null;const Ec=O.createContext(null);var Tc=function(t){return t.scrollTop},Sn="unmounted",Bt="exited",Ft="entering",nn="entered",ea="exiting",Tt=(function(e){gc(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,u=s&&!s.isMounting?r.enter:r.appear,o;return a.appearStatus=null,r.in?u?(o=Bt,a.appearStatus=Ft):o=nn:r.unmountOnExit||r.mountOnEnter?o=Sn:o=Bt,a.state={status:o},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Sn?{status:Bt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ft&&s!==nn&&(a=Ft):(s===Ft||s===nn)&&(a=ea)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,u;return a=s=u=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,u=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:u}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ft){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:An.findDOMNode(this);s&&Tc(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bt&&this.setState({status:Sn})},n.performEnter=function(i){var a=this,s=this.props.enter,u=this.context?this.context.isMounting:i,o=this.props.nodeRef?[u]:[An.findDOMNode(this),u],c=o[0],f=o[1],d=this.getTimeouts(),h=u?d.appear:d.enter;if(!i&&!s||wu.disabled){this.safeSetState({status:nn},function(){a.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Ft},function(){a.props.onEntering(c,f),a.onTransitionEnd(h,function(){a.safeSetState({status:nn},function(){a.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:An.findDOMNode(this);if(!a||wu.disabled){this.safeSetState({status:Bt},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:ea},function(){i.props.onExiting(u),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Bt},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,a.nextCallback=null,i(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:An.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=o[0],f=o[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Sn)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=pc(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(Ec.Provider,{value:null},typeof s=="function"?s(i,u):O.cloneElement(O.Children.only(s),u))},t})(O.Component);Tt.contextType=Ec;Tt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:se.shape({current:typeof Element>"u"?se.any:function(e,t,n,r,i,a){var s=e[t];return se.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:se.oneOfType([se.func.isRequired,se.element.isRequired]).isRequired,in:se.bool,mountOnEnter:se.bool,unmountOnExit:se.bool,appear:se.bool,enter:se.bool,exit:se.bool,timeout:function(t){var n=Mx;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:se.func,onEnter:se.func,onEntering:se.func,onEntered:se.func,onExit:se.func,onExiting:se.func,onExited:se.func}:{};function Jt(){}Tt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jt,onEntering:Jt,onEntered:Jt,onExit:Jt,onExiting:Jt,onExited:Jt};Tt.UNMOUNTED=Sn;Tt.EXITED=Bt;Tt.ENTERING=Ft;Tt.ENTERED=nn;Tt.EXITING=ea;var Fx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Dx(t,r)})},Ai=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Px(t,r)})},Oa=(function(e){gc(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(u,o){var c=r.resolveArguments(u,o),f=c[0],d=c[1];r.removeClasses(f,"exit"),r.addClass(f,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(u,o)},r.onEntering=function(u,o){var c=r.resolveArguments(u,o),f=c[0],d=c[1],h=d?"appear":"enter";r.addClass(f,h,"active"),r.props.onEntering&&r.props.onEntering(u,o)},r.onEntered=function(u,o){var c=r.resolveArguments(u,o),f=c[0],d=c[1],h=d?"appear":"enter";r.removeClasses(f,h),r.addClass(f,h,"done"),r.props.onEntered&&r.props.onEntered(u,o)},r.onExit=function(u){var o=r.resolveArguments(u),c=o[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(u)},r.onExiting=function(u){var o=r.resolveArguments(u),c=o[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(u)},r.onExited=function(u){var o=r.resolveArguments(u),c=o[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(u)},r.resolveArguments=function(u,o){return r.props.nodeRef?[r.props.nodeRef.current,u]:[u,o]},r.getClassNames=function(u){var o=r.props.classNames,c=typeof o=="string",f=c&&o?o+"-":"",d=c?""+f+u:o[u],h=c?d+"-active":o[u+"Active"],m=c?d+"-done":o[u+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:m}},r}var n=t.prototype;return n.addClass=function(i,a,s){var u=this.getClassNames(a)[s+"ClassName"],o=this.getClassNames("enter"),c=o.doneClassName;a==="appear"&&s==="done"&&c&&(u+=" "+c),s==="active"&&i&&Tc(i),u&&(this.appliedClasses[a][s]=u,Fx(i,u))},n.removeClasses=function(i,a){var s=this.appliedClasses[a],u=s.base,o=s.active,c=s.done;this.appliedClasses[a]={},u&&Ai(i,u),o&&Ai(i,o),c&&Ai(i,c)},n.render=function(){var i=this.props;i.classNames;var a=pc(i,["classNames"]);return O.createElement(Tt,_r({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(O.Component);Oa.defaultProps={classNames:""};Oa.propTypes=process.env.NODE_ENV!=="production"?_r({},Tt.propTypes,{classNames:Bx,onEnter:se.func,onEntering:se.func,onEntered:se.func,onExit:se.func,onExiting:se.func,onExited:se.func}):{};const Hx=({setIsWidgetOpen:e})=>N.jsx(N.Fragment,{children:N.jsx("button",{type:"button","aria-label":"Close chat",onClick:()=>e(!1),className:`absolute right-2 top-1/2 -translate-y-1/2
|
|
105
120
|
inline-flex items-center justify-center
|
|
106
121
|
rounded-full p-1.5
|
|
107
122
|
text-white
|
|
@@ -112,7 +127,7 @@ Valid keys: `+JSON.stringify(Object.keys(p),null," "));var U=me(J,X,V,ee,G+"."+
|
|
|
112
127
|
focus-visible:ring-white/80
|
|
113
128
|
focus-visible:ring-offset-2
|
|
114
129
|
focus-visible:ring-offset-violet-700
|
|
115
|
-
`,"data-testid":"close-button",children:
|
|
130
|
+
`,"data-testid":"close-button",children:N.jsx("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"none","aria-hidden":"true",className:"select-none outline-none",children:N.jsx("path",{d:"M6 6L18 18M6 18L18 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})}),Ux=O.forwardRef(({props:e},t)=>N.jsxs("div",{ref:t,className:`
|
|
116
131
|
chatBox
|
|
117
132
|
fixed z-[2147483647]
|
|
118
133
|
inset-0 w-screen h-[100svh] rounded-none
|
|
@@ -121,7 +136,7 @@ Valid keys: `+JSON.stringify(Object.keys(p),null," "));var U=me(J,X,V,ee,G+"."+
|
|
|
121
136
|
md:h-[clamp(420px,70dvh,640px)]
|
|
122
137
|
md:rounded-xl
|
|
123
138
|
bg-white shadow-xl flex flex-col overflow-hidden
|
|
124
|
-
`,children:[
|
|
139
|
+
`,children:[N.jsxs("div",{className:"relative bg-violet-700 py-2 text-white text-center flex justify-center items-center",children:[N.jsx("span",{className:"font-medium",children:"Assistant"}),N.jsx(Hx,{setIsWidgetOpen:e.setIsWidgetOpen})]}),N.jsx(mc,{appToken:e.appToken})]})),jx=({isWidgetOpen:e,appToken:t,setIsWidgetOpen:n})=>{const r=O.useRef(null);return N.jsx("div",{children:N.jsx(Oa,{nodeRef:r,in:e,timeout:200,classNames:"menuTransition",unmountOnExit:!0,children:N.jsx(Ux,{ref:r,props:{appToken:t,setIsWidgetOpen:n}})})})},xc=()=>({hasFetchedSettings:!1,hasDisplayedCSS:!1}),$x=()=>{const[e,t]=O.useState(xc());return{appInternalContext:e,setAppInternalContext:t,setHasFetchedSettings:()=>{t(i=>({...i,hasFetchedSettings:!0}))},setHasDisplayedCss:()=>{t(i=>({...i,hasDisplayedCSS:!0}))}}},yc=O.createContext({appInternalContext:xc(),setAppInternalContext:()=>{},setHasFetchedSettings:()=>{}}),zx=({displayMode:e,appToken:t})=>{const[n,r]=O.useState(!1),{appInternalContext:i}=O.useContext(yc);return N.jsxs(N.Fragment,{children:[e===cn.LAUNCHER&&i.hasFetchedSettings&&N.jsxs(N.Fragment,{children:[N.jsx(jc,{isWidgetOpen:n,setIsWidgetOpen:r}),N.jsx(jx,{isWidgetOpen:n,appToken:t,setIsWidgetOpen:r})]}),e===cn.CHATBOX&&i.hasFetchedSettings&&N.jsx("div",{className:"chatBox",children:N.jsx(mc,{appToken:t})})]})},Yx=e=>Object.values(cn).includes(e),Gx=e=>Yx(e)?e:(console.warn(`Display mode not valid. Using ${cn.LAUNCHER} as default.`),cn.LAUNCHER),Vx=(e,t)=>{let n,r;return typeof window<"u"&&(r=window.localStorage.getItem(sx)),r&&e?.[r]!==void 0?n=e[r]:(n=e[t],n.isDefault=!0),n},qx=(e,t)=>{const[n,r]=O.useState(e[t]),i=a=>{Object.keys(e).includes(a?.locale)?r(a):r(e[it.ENGLISH])};return O.useEffect(()=>{let a=Vx(e,t);a.locale!==t&&r(e[a.locale])},[]),{appCurrentLang:n,handleSetContextCurrentLang:i}},Wx=e=>Object.values(it).includes(e),Xx=e=>Wx(e)?e:(console.log(`Language ${e} not handled for now. Using ${it.ENGLISH}.`),it.ENGLISH);function Qx(e,t=Date.now()){return t-e}function Kx(e,t=Date.now()){return Qx(new Date(e).getTime(),t)<=xx}function Zx({settings:e,setCurrentConversation:t,setArchivedConversation:n}){const r=Cx({key:dc});if(!r){t({discussionId:null,items:[{userType:"assistant",content:e.agent.text.initialText}]});return}Kx(r.updatedAt)?t({discussionId:r.discussionId,items:r.items,updatedAt:r.updatedAt}):(t({discussionId:null,items:[{userType:"assistant",content:e.agent.text.initialText}]}),n({discussionId:r.discussionId,items:r.items,updatedAt:r.updatedAt}))}const Jx=({agentId:e,appToken:t,onFetched:n})=>{const[r,i]=O.useState({}),a={companySettings:r,setCompanySettings:i},[s,u]=O.useState({discussionId:null,items:[],updatedAt:null}),[o,c]=O.useState({discussionId:null,items:[],updatedAt:null}),f={currentConversation:s,setCurrentConversation:u,archivedConversation:o,setArchivedConversation:c};return O.useEffect(()=>{const d=Bn.getApiUrl(),h=Bn.getFetchConfig({httpVerb:"GET",contentType:"application/json"});fetch(`${d}/company/settings/${t}/${e}`,h).then(async m=>{const E=await m.json();i(E),Zx({settings:E,setCurrentConversation:u,setArchivedConversation:c}),n?.()}).catch(m=>console.log("error in settings fetch",m))},[t,e]),{contextCompanySettings:a,contextInitialConversationState:f}};function ey(e,t={},n,r){const{id:i,nonce:a,target:s,disableConstructable:u}=t,o=s,c=O.useRef(null),f=O.useRef(null);O.useEffect(()=>{if(!s)return;if(!e){n&&(console.log("No custom css found."),r?.());return}if(!u&&"adoptedStyleSheets"in o&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)return c.current||(c.current=new CSSStyleSheet,o.adoptedStyleSheets=[...o.adoptedStyleSheets,c.current]),c.current.replaceSync(e),console.log("Loading custom css via stylesheet."),r?.(),()=>{const h=o.adoptedStyleSheets||[],m=h.indexOf(c.current);if(m>=0){const E=h.slice();E.splice(m,1),o.adoptedStyleSheets=E}c.current=null};if(!f.current){const h=document.createElement("style");h.type="text/css",i&&(h.id=i),a&&(h.nonce=a),(o instanceof Document&&o.head||o).appendChild(h),f.current=h}return f.current.textContent=e,console.log("Loading custom css via style tag."),r?.(),()=>{f.current?.parentNode?.removeChild(f.current),f.current=null}},[e,i,a,s,u])}function ty(e){const{manifest:t,origins:n}=ny(e);n.forEach(kc),Lc(t),Nc(t)}function ny(e){const t=ry(e),n=new Set,r=new Set,i=new Set,a=new Set;for(const{url:o,mode:c}of t)switch(iy(c,o)){case"svg":r.add(o);break;case"lottie":i.add(o);break;case"spritesheet":a.add(o);break;case"image":n.add(o);break}const s={images:Array.from(n),svgs:Array.from(r),lotties:Array.from(i),sprites:Array.from(a)},u=ay(s);return{manifest:s,origins:u}}function ry(e){if(!e?.agent?.display)return[];const t=e.agent.display,n=[t.launcher,t.assistant,t.search].filter(Boolean),r=[];for(const i of n)i?.assetUrl&&r.push({url:i.assetUrl,mode:i.mode});return r}function iy(e,t){if(e)switch(e){case"svg":return"svg";case"lottie":return"lottie";case"spritesheet":return"spritesheet";case"image":return"image";case"video":return"video"}try{const r=new URL(t,document.baseURI).pathname.toLowerCase();if(r.endsWith(".svg"))return"svg";if(r.endsWith(".lottie")||r.endsWith(".zip")||r.endsWith(".json"))return r.endsWith(".json"),"lottie";if(/\.(png|webp|jpg|jpeg|gif|avi,ef)$/.test(r))return"image";if(/\.(mp4|webm|mov|m4v|ogg)$/.test(r))return"video"}catch(n){console.log("error in normalizeKind:",n)}return"unknown"}function ay(e){const t=new Set,n=r=>{if(r)try{const i=new URL(r,document.baseURI);t.add(`${i.protocol}//${i.host}`)}catch(i){console.log("error in uniqueOriginsFromManifest",i)}};return(e.images??[]).forEach(n),(e.svgs??[]).forEach(n),(e.lotties??[]).forEach(n),(e.sprites??[]).forEach(n),Array.from(t)}const sy=({children:e,appToken:t,agentId:n,appRoot:r})=>{var i=navigator.language;console.log("Brower language",i);const a=Xx(i),{appCurrentLang:s,handleSetContextCurrentLang:u}=qx(Ur,a),o={appCurrentLang:s,setAppCurrentLang:u},c=$x(),{contextCompanySettings:f,contextInitialConversationState:d}=Jx({agentId:n,appToken:t,onFetched:c.setHasFetchedSettings});return ty(f.companySettings),ey(f.companySettings?.agent?.display?.CSSRules,{id:`${n}`,target:r},c.appInternalContext.hasFetchedSettings,c.setHasDisplayedCss),N.jsx(N.Fragment,{children:N.jsx(dd,{locale:s?.locale,messages:s?.translatedText,children:N.jsx(cc.Provider,{value:o,children:N.jsx(yc.Provider,{value:c,children:N.jsx(fn.Provider,{value:f,children:N.jsx(hc.Provider,{value:d,children:c.appInternalContext.hasDisplayedCSS&&e})})})})})})};var cn=(e=>(e.LAUNCHER="launcher",e.CHATBOX="chatbox",e))(cn||{});function uy({appToken:e,displayMode:t="launcher",agentId:n,appRoot:r}){e||console.warn("appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC");const i=Gx(t);return console.log(`App boot in ${i} mode.`),N.jsx("div",{className:"chatSystemWidget app-root",id:"chatSystemWidget",children:N.jsx(sy,{appToken:e,agentId:n,appRoot:r,children:N.jsx(zx,{displayMode:i,appToken:e})})})}const oy=`*, ::before, ::after {
|
|
125
140
|
--tw-border-spacing-x: 0;
|
|
126
141
|
--tw-border-spacing-y: 0;
|
|
127
142
|
--tw-translate-x: 0;
|
|
@@ -1680,7 +1695,7 @@ video {
|
|
|
1680
1695
|
border-radius: 0.75rem;
|
|
1681
1696
|
}
|
|
1682
1697
|
}
|
|
1683
|
-
`,
|
|
1698
|
+
`,ly=`
|
|
1684
1699
|
.chatBox {
|
|
1685
1700
|
overflow-x: hidden; /* Hide horizontal scrollbar */
|
|
1686
1701
|
}
|
|
@@ -1721,7 +1736,13 @@ video {
|
|
|
1721
1736
|
.chatBox hr {
|
|
1722
1737
|
margin: 1.5rem 0;
|
|
1723
1738
|
}
|
|
1724
|
-
|
|
1739
|
+
|
|
1740
|
+
.chatBox table {
|
|
1741
|
+
margin: 1rem 0;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
`,cy=`/* React-Css Transitions */
|
|
1725
1746
|
.menuTransition-enter {
|
|
1726
1747
|
opacity: 0;
|
|
1727
1748
|
transform: scale(0.9) translateX(200px);
|
|
@@ -1784,7 +1805,7 @@ textarea::placeholder {
|
|
|
1784
1805
|
|
|
1785
1806
|
.messagesContainer {
|
|
1786
1807
|
outline:none
|
|
1787
|
-
}`,
|
|
1808
|
+
}`,fy=`/* 1) Remove UA outline on the shadow host */
|
|
1788
1809
|
:host(:focus),
|
|
1789
1810
|
:host(:focus-visible) { outline: none; }
|
|
1790
1811
|
|
|
@@ -1796,8 +1817,8 @@ textarea::placeholder {
|
|
|
1796
1817
|
|
|
1797
1818
|
/* Ensure the wrapper itself doesn't get a default outline either */
|
|
1798
1819
|
.app-root:focus { outline: none; }
|
|
1799
|
-
`,
|
|
1800
|
-
${
|
|
1801
|
-
${
|
|
1802
|
-
${
|
|
1820
|
+
`,Iu=`${oy}
|
|
1821
|
+
${ly}
|
|
1822
|
+
${cy}
|
|
1823
|
+
${fy}`;function dy({cssHref:e,appToken:t,agentId:n,displayMode:r,...i}){const a=r==="launcher"?"body":"inline",s=O.useRef(null),u=O.useRef(null),[o,c]=O.useState(null),[f,d]=O.useState(null);return O.useEffect(()=>{if(typeof document>"u")return;const h=a==="inline"?s.current:document.body;if(!h)return;const m=document.createElement("div");h.appendChild(m),u.current=m;const E=m.attachShadow({mode:"open",delegatesFocus:!0});d(E);let A=!1;try{if("adoptedStyleSheets"in E&&!e){const y=new CSSStyleSheet;y.replaceSync(Iu),E.adoptedStyleSheets=[...E.adoptedStyleSheets??[],y],A=!0}}catch{}if(!A)if(e){const y=document.createElement("link");y.rel="stylesheet",y.href=e,E.appendChild(y)}else{const y=document.createElement("style");y.textContent=Iu,E.appendChild(y)}const _=document.createElement("div");return E.appendChild(_),c(_),()=>{c(null),m.remove(),u.current=null}},[a,e]),N.jsxs(N.Fragment,{children:[a==="inline"&&N.jsx("div",{ref:s})," ",o&&An.createPortal(N.jsx(uy,{...i,appToken:t,agentId:n,displayMode:r,appRoot:f}),o)]})}exports.App=dy;
|
|
1803
1824
|
//# sourceMappingURL=index.cjs.map
|