bi-components-library 1.2.19 → 1.2.20
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.es.js +15509 -9882
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +56 -56
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(Ee,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react/jsx-runtime"),require("react"),require("antd"),require("@ant-design/icons"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","antd","@ant-design/icons","react-dom"],q):(Ee=typeof globalThis<"u"?globalThis:Ee||self,q(Ee.SealSeekBIComponents={},Ee.React,Ee.React,Ee.antd,Ee.AntdIcons,Ee.ReactDOM))})(this,function(Ee,q,I,ce,gt,$t){"use strict";const yi=({variant:e="primary",loading:t=!1,children:n,...r})=>{const a=i=>{switch(i){case"primary":return"primary";case"ghost":return"default";case"dashed":return"dashed";case"link":return"link";case"text":return"text";default:return"primary"}};return q.jsx(ce.Button,{...r,type:a(e),loading:t,ghost:e==="ghost",children:n})};yi.__docgenInfo={displayName:"Button",description:"基础按钮,用于触发操作",props:{variant:{name:"variant",required:!1,description:"视觉风格",type:{name:"ButtonVariant",raw:'"primary" | "ghost" | "dashed" | "link" | "text"'},defaultValue:{value:'"primary"'}},loading:{name:"loading",required:!1,description:"是否加载中",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},children:{name:"children",required:!1,description:"按钮内容",type:{name:"ReactNode",raw:"React.ReactNode"}},size:{name:"size",required:!1,description:"按钮大小",type:{name:"ButtonSize",raw:'"small" | "middle" | "large"'}},disabled:{name:"disabled",required:!1,description:"是否禁用",type:{name:"boolean",raw:"boolean"}},onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"(event: MouseEvent) => void"}}}};const Ti=({title:e,children:t,bordered:n=!0,hoverable:r=!1,size:a="default",...i})=>q.jsx(ce.Card,{...i,title:e,bordered:n,hoverable:r,size:a,children:t});Ti.__docgenInfo={displayName:"Card",description:"卡片容器,用于分组内容",props:{title:{name:"title",required:!1,description:"标题",type:{name:"ReactNode",raw:"React.ReactNode"}},children:{name:"children",required:!1,description:"内容区域",type:{name:"ReactNode",raw:"React.ReactNode"}},bordered:{name:"bordered",required:!1,description:"是否显示边框",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},hoverable:{name:"hoverable",required:!1,description:"是否可悬停",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},size:{name:"size",required:!1,description:"卡片大小",type:{name:"CardSize",raw:'"default" | "small"'},defaultValue:{value:'"default"'}},loading:{name:"loading",required:!1,description:"是否加载中",type:{name:"boolean",raw:"boolean"}},actions:{name:"actions",required:!1,description:"卡片操作组",type:{name:"ReactNode[]",raw:"React.ReactNode[]"}}}};const xi=({showDefaultFooter:e=!0,...t})=>{const n=t.footer!==void 0?t.footer:e?(r,{OkBtn:a,CancelBtn:i})=>q.jsxs(q.Fragment,{children:[q.jsx(a,{}),q.jsx(i,{})]}):null;return q.jsx(ce.Modal,{...t,footer:n})};xi.__docgenInfo={displayName:"AppModal",description:"应用级模态框组件,基于 Ant Design Modal 封装",props:{showDefaultFooter:{name:"showDefaultFooter",required:!1,description:"是否显示默认的确定和取消按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},title:{name:"title",required:!1,description:"模态框标题",type:{name:"ReactNode",raw:"React.ReactNode"}},open:{name:"open",required:!1,description:"是否显示模态框",type:{name:"boolean",raw:"boolean"}},onCancel:{name:"onCancel",required:!1,description:"取消按钮点击事件",type:{name:"function",raw:"(e: React.MouseEvent<HTMLElement>) => void"}},onOk:{name:"onOk",required:!1,description:"确定按钮点击事件",type:{name:"function",raw:"(e: React.MouseEvent<HTMLElement>) => void"}},children:{name:"children",required:!1,description:"模态框内容",type:{name:"ReactNode",raw:"React.ReactNode"}},width:{name:"width",required:!1,description:"模态框宽度",type:{name:"string | number",raw:"string | number"}},centered:{name:"centered",required:!1,description:"是否居中显示",type:{name:"boolean",raw:"boolean"}},maskClosable:{name:"maskClosable",required:!1,description:"点击蒙层是否允许关闭",type:{name:"boolean",raw:"boolean"}}}};const Ci=({scrollX:e,showPagination:t=!0,defaultPageSize:n=10,...r})=>q.jsx(ce.Table,{...r,scroll:{x:e||"max-content",y:"50vh"},pagination:t?{hideOnSinglePage:!0,showSizeChanger:!0,showQuickJumper:!0,defaultPageSize:n,...r.pagination}:!1});Ci.__docgenInfo={displayName:"PageTable",description:"页面级表格组件,高度铺满容器,自动滚动",props:{scrollX:{name:"scrollX",required:!1,description:"水平滚动宽度",type:{name:"number",raw:"number"}},showPagination:{name:"showPagination",required:!1,description:"是否显示分页器",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},defaultPageSize:{name:"defaultPageSize",required:!1,description:"默认页面大小",type:{name:"number",raw:"number"},defaultValue:{value:"10"}},columns:{name:"columns",required:!1,description:"表格列配置",type:{name:"ColumnType[]",raw:"ColumnType<any>[]"}},dataSource:{name:"dataSource",required:!1,description:"数据源",type:{name:"any[]",raw:"any[]"}},loading:{name:"loading",required:!1,description:"是否加载中",type:{name:"boolean",raw:"boolean"}},rowKey:{name:"rowKey",required:!1,description:"行数据的 Key",type:{name:"string | function",raw:"string | ((record: any) => string)"}}}};const Tl=gt.createFromIconfontCN({scriptUrl:["//at.alicdn.com/t/c/font_5037819_a72xy7yjoj.js"]}),Si=({name:e,size:t,color:n,style:r,...a})=>{const i={fontSize:t,color:n,...r};return q.jsx(Tl,{...a,type:e,style:i})};Si.__docgenInfo={displayName:"XcIcon",description:"自定义图标组件,基于 iconfont",props:{name:{name:"name",required:!0,description:"图标名称",type:{name:"string",raw:"string"}},size:{name:"size",required:!1,description:"图标大小",type:{name:"number | string",raw:"number | string"}},color:{name:"color",required:!1,description:"图标颜色",type:{name:"string",raw:"string"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},style:{name:"style",required:!1,description:"自定义样式",type:{name:"CSSProperties",raw:"React.CSSProperties"}}}};const Ai=({loading:e,description:t="暂无数据",className:n,emptyChildren:r,loadingText:a,emptyImage:i})=>e?q.jsxs(ce.Flex,{className:`pt-10 w-full ${n||""}`,align:"center",justify:"center",vertical:!0,children:[q.jsx(ce.Spin,{size:"large"}),a&&q.jsx("div",{className:"mt-4 text-gray-500",children:a})]}):q.jsx(ce.Flex,{className:`pt-10 w-full ${n||""}`,align:"center",justify:"center",children:q.jsx(ce.Empty,{image:i,description:t,imageStyle:{height:180},children:r})});Ai.__docgenInfo={displayName:"EmptyAndSpin",description:"空状态和加载状态组合组件",props:{loading:{name:"loading",required:!0,description:"是否加载中",type:{name:"boolean",raw:"boolean"}},description:{name:"description",required:!1,description:"空状态描述",type:{name:"ReactNode",raw:"React.ReactNode"},defaultValue:{value:'"暂无数据"'}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},emptyChildren:{name:"emptyChildren",required:!1,description:"空状态额外内容",type:{name:"ReactNode",raw:"React.ReactNode"}},loadingText:{name:"loadingText",required:!1,description:"加载中提示文字",type:{name:"string",raw:"string"}},emptyImage:{name:"emptyImage",required:!1,description:"空状态图片",type:{name:"string",raw:"string"}}}};const vi=({onClick:e,showText:t=!1,className:n,size:r="small",type:a="default"})=>q.jsx(ce.Button,{size:r,type:a,icon:q.jsx(gt.LeftOutlined,{}),className:`cursor-pointer ${n||""}`,onClick:e,children:t&&"返回"});vi.__docgenInfo={displayName:"BackButton",description:"返回按钮组件",props:{onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"() => void"}},showText:{name:"showText",required:!1,description:"是否显示文字",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},size:{name:"size",required:!1,description:"按钮大小",type:{name:"ButtonSize",raw:'"small" | "middle" | "large"'},defaultValue:{value:'"small"'}},type:{name:"type",required:!1,description:"按钮类型",type:{name:"ButtonType",raw:'"primary" | "default" | "dashed" | "link" | "text"'},defaultValue:{value:'"default"'}}}};const _i=({removePadding:e=!0,className:t,...n})=>{const r=e?`px-0 h-auto ${t||""}`:t;return q.jsx(ce.Button,{type:"link",...n,className:r,children:n.children})};_i.__docgenInfo={displayName:"LinkButton",description:"链接样式按钮组件,适用于表格操作列",props:{removePadding:{name:"removePadding",required:!1,description:"是否去除默认内边距",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},children:{name:"children",required:!1,description:"按钮内容",type:{name:"ReactNode",raw:"React.ReactNode"}},onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"(event: React.MouseEvent<HTMLButtonElement>) => void"}},disabled:{name:"disabled",required:!1,description:"是否禁用",type:{name:"boolean",raw:"boolean"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}}}};const{Option:xl}=ce.Select,wi=({columns:e,request:t,searchFields:n=[],showSearch:r=!0,showRefresh:a=!0,defaultPageSize:i=10,pageSizeOptions:s=["10","20","50","100"],autoLoad:o=!0,externalParams:u={},...l})=>{const[c,f]=I.useState([]),[g,p]=I.useState(!1),[T,h]=I.useState({current:1,pageSize:i,total:0}),[m,b]=I.useState({}),[E,y]=I.useState({}),[_]=ce.Form.useForm(),w=I.useRef(T);w.current=T;const S=I.useRef(u);S.current=u;const M=I.useRef(!1),A=I.useMemo(()=>e.map(N=>{const{sortable:C,render:F,...U}=N;return{...U,sorter:C?!0:void 0,render:F||($=>$)}}),[e]),x=I.useCallback(async(N={})=>{if(t){p(!0);try{const C={page:w.current.current,pageSize:w.current.pageSize,sortField:E.field,sortOrder:E.order,searchParams:{...m,...S.current},...N},F=await t(C);F.success&&(f(F.data),h(U=>({...U,total:F.total,current:C.page||U.current})))}catch(C){console.error("加载数据失败:",C)}finally{p(!1)}}},[t,E,m]),v=I.useCallback(N=>{b(N),h(C=>({...C,current:1}))},[]),k=I.useCallback(()=>{_.resetFields(),b({}),h(N=>({...N,current:1}))},[_]),D=I.useCallback(()=>{x()},[x]),P=I.useCallback((N,C,F)=>{const U={current:N.current||1,pageSize:N.pageSize||i,total:N.total||0},$={field:F?.field,order:F?.order};h(U),y($)},[i]);return I.useEffect(()=>{const N=Object.keys(u).length>0;(o&&!M.current||N)&&(x(),M.current=!0)},[o,u,x]),q.jsxs("div",{children:[r&&n.length>0&&q.jsx(ce.Card,{size:"small",style:{marginBottom:16},children:q.jsxs(ce.Form,{form:_,layout:"inline",onFinish:v,initialValues:n.reduce((N,C)=>(C.defaultValue!==void 0&&(N[C.key]=C.defaultValue),N),{}),children:[n.map(N=>q.jsx(ce.Form.Item,{name:N.key,label:N.label,children:N.type==="input"?q.jsx(ce.Input,{placeholder:N.placeholder||`请输入${N.label}`,style:{width:200}}):q.jsx(ce.Select,{placeholder:N.placeholder||`请选择${N.label}`,style:{width:200},allowClear:!0,children:N.options?.map(C=>q.jsx(xl,{value:C.value,children:C.label},C.value))})},N.key)),q.jsx(ce.Form.Item,{children:q.jsxs(ce.Space,{children:[q.jsx(ce.Button,{type:"primary",htmlType:"submit",icon:q.jsx(gt.SearchOutlined,{}),children:"查询"}),q.jsx(ce.Button,{onClick:k,children:"重置"}),a&&q.jsx(ce.Button,{icon:q.jsx(gt.ReloadOutlined,{}),onClick:D,children:"刷新"})]})})]})}),q.jsx(ce.Table,{...l,columns:A,dataSource:c,loading:g,pagination:{...T,showSizeChanger:!0,showQuickJumper:!0,showTotal:(N,C)=>`第 ${C[0]}-${C[1]} 条/共 ${N} 条`,pageSizeOptions:s},onChange:P,scroll:{x:"max-content",y:"50vh"}})]})};wi.__docgenInfo={displayName:"AdvancedTable",description:"高阶表格组件,支持异步请求、搜索、排序等功能",props:{columns:{name:"columns",required:!0,description:"列配置",type:{name:"AdvancedColumnType[]",raw:"AdvancedColumnType<any>[]"}},request:{name:"request",required:!1,description:"异步请求函数",type:{name:"function",raw:"(params: RequestParams) => Promise<RequestResponse>"}},searchFields:{name:"searchFields",required:!1,description:"搜索字段配置",type:{name:"SearchFieldConfig[]",raw:"SearchFieldConfig[]"},defaultValue:{value:"[]"}},showSearch:{name:"showSearch",required:!1,description:"是否显示搜索区域",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},showRefresh:{name:"showRefresh",required:!1,description:"是否显示刷新按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},defaultPageSize:{name:"defaultPageSize",required:!1,description:"默认页面大小",type:{name:"number",raw:"number"},defaultValue:{value:"10"}},pageSizeOptions:{name:"pageSizeOptions",required:!1,description:"页面大小选项",type:{name:"string[]",raw:"string[]"},defaultValue:{value:'["10", "20", "50", "100"]'}},autoLoad:{name:"autoLoad",required:!1,description:"是否自动加载",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},externalParams:{name:"externalParams",required:!1,description:"外部请求参数",type:{name:"Record<string, any>",raw:"Record<string, any>"},defaultValue:{value:"{}"}}}};const Cl=({host:e,onChange:t})=>{const n=e.dataset.key,r=e.dataset.placeholder,a=e.dataset.options?decodeURIComponent(e.dataset.options):"[]",i=e.dataset.required==="true",s=e.dataset.value||"",o=I.useMemo(()=>{try{return JSON.parse(a)}catch{return[]}},[a]),[u,l]=I.useState(s||void 0),[c,f]=I.useState(64),g=I.useRef(null),p=m=>{l(m),e.setAttribute("data-value",m),t(n,m)};I.useEffect(()=>{l(s||void 0)},[s]);const T=I.useCallback(()=>{if(u!=null&&u!==""){const m=o.find(b=>String(b.value)===String(u));return m?typeof m.label=="string"?m.label:String(m.label??u):String(u)}return r||"请选择"},[u,o,r]),h=I.useCallback(()=>{const m=g.current;if(!m)return;const b=m.querySelector(".ant-select-selection-item"),E=m.querySelector(".ant-select-selection-placeholder"),y=b||E,_=(y?.textContent||"").trim()||T(),w=m.querySelector(".ant-select-selector"),S=y||w||m,M=window.getComputedStyle(S),A=y?M.fontSize:"16px",x=M.fontFamily||"sans-serif",v=M.fontWeight||"400",D=`${M.fontStyle||"normal"} ${v} ${A} ${x}`,N=document.createElement("canvas").getContext("2d"),C=N?Math.ceil((N.font=D,N.measureText(_).width||0)):0;let F=0;if(w){const V=window.getComputedStyle(w);F=(Number.parseFloat(V.paddingLeft)||0)+(Number.parseFloat(V.paddingRight)||0)}const U=m.querySelector(".ant-select-arrow"),$=U?Math.ceil(U.getBoundingClientRect().width):12,G=m.querySelector(".ant-select-clear");let L=0;if(G){const V=window.getComputedStyle(G);V.display!=="none"&&V.visibility!=="hidden"&&(L=Math.ceil(G.getBoundingClientRect().width))}const W=Math.max(36,C+F+$+L+6);f(V=>V===W?V:W)},[T]);return I.useLayoutEffect(()=>{const m=window.requestAnimationFrame(()=>{h()}),b=window.setTimeout(()=>{h()},60);return()=>{window.cancelAnimationFrame(m),window.clearTimeout(b)}},[h]),I.useEffect(()=>{if(!("fonts"in document))return;let m=!1;const b=document.fonts;if(b?.ready)return b.ready.then(()=>{m||h()}),()=>{m=!0}},[h]),$t.createPortal(q.jsx("div",{className:"rte-select-wrapper",contentEditable:!1,ref:g,style:{display:"inline-block",width:c},children:q.jsx(ce.Select,{value:u,onChange:p,placeholder:r||"请选择",style:{width:"100%"},options:o,allowClear:!i,size:"small",dropdownClassName:"rte-select-dropdown",getPopupContainer:()=>document.body,dropdownMatchSelectWidth:!1,suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})})}),e)},Sl=e=>{const[t,n]=I.useState([]);return I.useEffect(()=>{const r=e.current;if(!r)return;const a=()=>{const s=r.querySelectorAll(".rte-select-host"),o=[];s.forEach(u=>{const l=u.getAttribute("data-key");l&&o.push(q.jsx(Cl,{host:u,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`select-${l}`))}),n(o)};a();const i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){let l=!1;if(u.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-select-host")||f.querySelector?.(".rte-select-host"))&&(l=!0)}}),u.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-select-host")||f.querySelector?.(".rte-select-host"))&&(l=!0)}}),l){o=!0;break}}o&&a()});return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[e]),t},Al=({host:e,onChange:t})=>{const n=e.dataset.key,r=e.dataset.placeholder,a=e.dataset.options?decodeURIComponent(e.dataset.options):"[]",i=e.dataset.required==="true",s=e.dataset.value||"",o=I.useMemo(()=>{try{return JSON.parse(a)}catch{return[]}},[a]),[u,l]=I.useState(s||void 0),[c,f]=I.useState(""),[g,p]=I.useState(null),[T,h]=I.useState(64),m=I.useRef(null),b=I.useMemo(()=>{const x=[...o];return g&&!o.some(v=>v.value===g)&&x.unshift({label:g,value:g}),x},[o,g]),E=I.useMemo(()=>{const x=c.trim();if(!x)return b;const v=x.toLowerCase(),k=b.filter(P=>P.label.toLowerCase().includes(v)||P.value.toLowerCase().includes(v));return b.some(P=>P.label===x||P.value===x)?k:[{label:x,value:x,isCustom:!0},...k]},[b,c]),y=x=>{if(x==null)return;o.some(k=>k.value===x)?g&&p(null):p(x),l(x),f(""),e.setAttribute("data-value",x),t(n,x)},_=x=>{f(x)},w=x=>{if(x.key==="Enter"&&c.trim()){x.preventDefault(),x.stopPropagation();const v=c.trim(),k=o.find(D=>D.label===v||D.value===v);k?y(k.value):(p(v),l(v),f(""),e.setAttribute("data-value",v),t(n,v))}},S=()=>{p(null),l(void 0),f(""),e.setAttribute("data-value",""),t(n,"")};I.useEffect(()=>{l(s||void 0)},[s]);const M=I.useCallback(()=>{if(u!=null&&u!==""){const x=b.find(v=>String(v.value)===String(u));return x?typeof x.label=="string"?x.label:String(x.label??u):String(u)}return r||"请选择"},[u,b,r]),A=I.useCallback(()=>{const x=m.current;if(!x)return;const v=x.querySelector(".ant-select-selection-item"),k=x.querySelector(".ant-select-selection-placeholder"),D=v||k,P=(D?.textContent||"").trim()||M(),N=x.querySelector(".ant-select-selector"),C=D||N||x,F=window.getComputedStyle(C),U=D?F.fontSize:"16px",$=F.fontFamily||"sans-serif",G=F.fontWeight||"400",W=`${F.fontStyle||"normal"} ${G} ${U} ${$}`,R=document.createElement("canvas").getContext("2d"),K=R?Math.ceil((R.font=W,R.measureText(P).width||0)):0;let ae=0;if(N){const se=window.getComputedStyle(N);ae=(Number.parseFloat(se.paddingLeft)||0)+(Number.parseFloat(se.paddingRight)||0)}const ne=x.querySelector(".ant-select-arrow");ne&&Math.ceil(ne.getBoundingClientRect().width);const X=x.querySelector(".ant-select-clear");if(X){const se=window.getComputedStyle(X);se.display!=="none"&&se.visibility!=="hidden"&&Math.ceil(X.getBoundingClientRect().width)}const re=Math.min(240,Math.max(80,K+ae+4));h(se=>se===re?se:re)},[M]);return I.useLayoutEffect(()=>{const x=window.requestAnimationFrame(()=>{A()}),v=window.setTimeout(()=>{A()},60);return()=>{window.cancelAnimationFrame(x),window.clearTimeout(v)}},[A]),I.useEffect(()=>{if(!("fonts"in document))return;let x=!1;const v=document.fonts;if(v?.ready)return v.ready.then(()=>{x||A()}),()=>{x=!0}},[A]),$t.createPortal(q.jsx("div",{className:`rte-searchable-select-wrapper ${u?"rte-searchable-has-value":""}`,contentEditable:!1,ref:m,style:{display:"inline-block",width:T},children:q.jsx(ce.Select,{showSearch:!0,value:u,searchValue:c,onChange:y,onSearch:_,onClear:S,onInputKeyDown:w,filterOption:!1,placeholder:r||"搜索或输入",style:{width:"100%"},options:E,allowClear:!i,size:"small",popupClassName:"rte-searchable-select-dropdown",getPopupContainer:()=>document.body,dropdownMatchSelectWidth:!1,notFoundContent:q.jsx("span",{style:{color:"#999",fontSize:13},children:"暂无数据"}),suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})})}),e)},vl=e=>{const[t,n]=I.useState([]);return I.useEffect(()=>{const r=e.current;if(!r)return;const a=()=>{const s=r.querySelectorAll(".rte-searchable-select-host"),o=[];s.forEach(u=>{const l=u.getAttribute("data-key");l&&o.push(q.jsx(Al,{host:u,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`searchable-select-${l}`))}),n(o)};a();const i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){let l=!1;if(u.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-searchable-select-host")||f.querySelector?.(".rte-searchable-select-host"))&&(l=!0)}}),u.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-searchable-select-host")||f.querySelector?.(".rte-searchable-select-host"))&&(l=!0)}}),l){o=!0;break}}o&&a()});return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[e]),t},_l=({host:e,onChange:t})=>{const n=e.dataset.key,r=e.dataset.placeholder,a=e.dataset.options?decodeURIComponent(e.dataset.options):"[]",i=e.dataset.value||"",s=I.useMemo(()=>{try{return JSON.parse(a)}catch{return[]}},[a]),o=I.useCallback(S=>S?S.split("-"):[],[]),[u,l]=I.useState(()=>o(i)),[c,f]=I.useState(100),[g,p]=I.useState(0),T=I.useRef(o(i)),h=I.useRef(null),m=u.length>=2,b=S=>{l(S),T.current=S;const M=S.join("-");e.setAttribute("data-value",M),t(n,M)},E=S=>{if(!S||S.length===0){b([]);return}S.length<2||b(S.map(String))},y=S=>{S||(l(T.current),p(M=>M+1))};I.useEffect(()=>{l(o(i))},[i,o]);const _=I.useCallback(()=>u.length>=2?u.join("-"):r||"请选择省市区",[u,r]),w=I.useCallback(()=>{const S=h.current;if(!S)return;const M=_(),A=S.querySelector(".ant-select-selector"),x=S.querySelector(".ant-select-selection-item")||S.querySelector(".ant-select-selection-placeholder"),v=x||A||S,k=window.getComputedStyle(v),D=x?k.fontSize:"16px",P=k.fontFamily||"sans-serif",N=k.fontWeight||"400",F=`${k.fontStyle||"normal"} ${N} ${D} ${P}`,$=document.createElement("canvas").getContext("2d"),G=$?Math.ceil(($.font=F,$.measureText(M).width||0)):0;let L=0;if(A){const R=window.getComputedStyle(A);L=(Number.parseFloat(R.paddingLeft)||0)+(Number.parseFloat(R.paddingRight)||0)}const V=Math.max(80,G+L+16+10);f(R=>R===V?R:V)},[_]);return I.useLayoutEffect(()=>{const S=window.requestAnimationFrame(()=>{w()}),M=window.setTimeout(()=>{w()},60);return()=>{window.cancelAnimationFrame(S),window.clearTimeout(M)}},[w]),I.useEffect(()=>{if(!("fonts"in document))return;let S=!1;const M=document.fonts;if(M?.ready)return M.ready.then(()=>{S||w()}),()=>{S=!0}},[w]),$t.createPortal(q.jsx("div",{className:"rte-cascader-wrapper",contentEditable:!1,ref:h,"data-has-value":m?"true":"false",style:{display:"inline-block",width:c},children:q.jsx(ce.Cascader,{value:m?u:void 0,onChange:E,onDropdownVisibleChange:y,options:s,placeholder:r||"请选择省市区",style:{width:"100%"},size:"small",allowClear:!0,changeOnSelect:!0,showSearch:{filter:(S,M)=>M.some(A=>A.label.toLowerCase().includes(S.toLowerCase()))},popupClassName:"rte-cascader-dropdown",getPopupContainer:()=>document.body,displayRender:S=>S.join("-"),suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})},g)}),e)},wl=e=>{const[t,n]=I.useState([]);return I.useEffect(()=>{const r=e.current;if(!r)return;const a=()=>{const s=r.querySelectorAll(".rte-cascader-host"),o=[];s.forEach(u=>{const l=u.getAttribute("data-key");l&&o.push(q.jsx(_l,{host:u,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`cascader-${l}`))}),n(o)};a();const i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){let l=!1;if(u.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-cascader-host")||f.querySelector?.(".rte-cascader-host"))&&(l=!0)}}),u.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-cascader-host")||f.querySelector?.(".rte-cascader-host"))&&(l=!0)}}),l){o=!0;break}}o&&a()});return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[e]),t};function kl(e){if(!e)return"";try{return decodeURIComponent(e)}catch{return e}}function Nl(e){if(!e)return"";try{return encodeURIComponent(e)}catch{return e}}function Il(e,t,n,r,a){const s=document.createElement("canvas").getContext("2d");if(!s)return 0;s.font=t;const o=e.split(`
|
|
2
|
-
`);let
|
|
3
|
-
`);I.useEffect(()=>{
|
|
1
|
+
(function(ge,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react/jsx-runtime"),require("react"),require("antd"),require("@ant-design/icons"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","antd","@ant-design/icons","react-dom"],q):(ge=typeof globalThis<"u"?globalThis:ge||self,q(ge.SealSeekBIComponents={},ge.React,ge.React,ge.antd,ge.AntdIcons,ge.ReactDOM))})(this,function(ge,q,I,ce,mt,$t){"use strict";const Er=({variant:e="primary",loading:t=!1,children:a,...l})=>{const n=r=>{switch(r){case"primary":return"primary";case"ghost":return"default";case"dashed":return"dashed";case"link":return"link";case"text":return"text";default:return"primary"}};return q.jsx(ce.Button,{...l,type:n(e),loading:t,ghost:e==="ghost",children:a})};Er.__docgenInfo={displayName:"Button",description:"基础按钮,用于触发操作",props:{variant:{name:"variant",required:!1,description:"视觉风格",type:{name:"ButtonVariant",raw:'"primary" | "ghost" | "dashed" | "link" | "text"'},defaultValue:{value:'"primary"'}},loading:{name:"loading",required:!1,description:"是否加载中",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},children:{name:"children",required:!1,description:"按钮内容",type:{name:"ReactNode",raw:"React.ReactNode"}},size:{name:"size",required:!1,description:"按钮大小",type:{name:"ButtonSize",raw:'"small" | "middle" | "large"'}},disabled:{name:"disabled",required:!1,description:"是否禁用",type:{name:"boolean",raw:"boolean"}},onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"(event: MouseEvent) => void"}}}};const yr=({title:e,children:t,bordered:a=!0,hoverable:l=!1,size:n="default",...r})=>q.jsx(ce.Card,{...r,title:e,bordered:a,hoverable:l,size:n,children:t});yr.__docgenInfo={displayName:"Card",description:"卡片容器,用于分组内容",props:{title:{name:"title",required:!1,description:"标题",type:{name:"ReactNode",raw:"React.ReactNode"}},children:{name:"children",required:!1,description:"内容区域",type:{name:"ReactNode",raw:"React.ReactNode"}},bordered:{name:"bordered",required:!1,description:"是否显示边框",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},hoverable:{name:"hoverable",required:!1,description:"是否可悬停",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},size:{name:"size",required:!1,description:"卡片大小",type:{name:"CardSize",raw:'"default" | "small"'},defaultValue:{value:'"default"'}},loading:{name:"loading",required:!1,description:"是否加载中",type:{name:"boolean",raw:"boolean"}},actions:{name:"actions",required:!1,description:"卡片操作组",type:{name:"ReactNode[]",raw:"React.ReactNode[]"}}}};const Tr=({showDefaultFooter:e=!0,...t})=>{const a=t.footer!==void 0?t.footer:e?(l,{OkBtn:n,CancelBtn:r})=>q.jsxs(q.Fragment,{children:[q.jsx(n,{}),q.jsx(r,{})]}):null;return q.jsx(ce.Modal,{...t,footer:a})};Tr.__docgenInfo={displayName:"AppModal",description:"应用级模态框组件,基于 Ant Design Modal 封装",props:{showDefaultFooter:{name:"showDefaultFooter",required:!1,description:"是否显示默认的确定和取消按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},title:{name:"title",required:!1,description:"模态框标题",type:{name:"ReactNode",raw:"React.ReactNode"}},open:{name:"open",required:!1,description:"是否显示模态框",type:{name:"boolean",raw:"boolean"}},onCancel:{name:"onCancel",required:!1,description:"取消按钮点击事件",type:{name:"function",raw:"(e: React.MouseEvent<HTMLElement>) => void"}},onOk:{name:"onOk",required:!1,description:"确定按钮点击事件",type:{name:"function",raw:"(e: React.MouseEvent<HTMLElement>) => void"}},children:{name:"children",required:!1,description:"模态框内容",type:{name:"ReactNode",raw:"React.ReactNode"}},width:{name:"width",required:!1,description:"模态框宽度",type:{name:"string | number",raw:"string | number"}},centered:{name:"centered",required:!1,description:"是否居中显示",type:{name:"boolean",raw:"boolean"}},maskClosable:{name:"maskClosable",required:!1,description:"点击蒙层是否允许关闭",type:{name:"boolean",raw:"boolean"}}}};const xr=({scrollX:e,showPagination:t=!0,defaultPageSize:a=10,...l})=>q.jsx(ce.Table,{...l,scroll:{x:e||"max-content",y:"50vh"},pagination:t?{hideOnSinglePage:!0,showSizeChanger:!0,showQuickJumper:!0,defaultPageSize:a,...l.pagination}:!1});xr.__docgenInfo={displayName:"PageTable",description:"页面级表格组件,高度铺满容器,自动滚动",props:{scrollX:{name:"scrollX",required:!1,description:"水平滚动宽度",type:{name:"number",raw:"number"}},showPagination:{name:"showPagination",required:!1,description:"是否显示分页器",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},defaultPageSize:{name:"defaultPageSize",required:!1,description:"默认页面大小",type:{name:"number",raw:"number"},defaultValue:{value:"10"}},columns:{name:"columns",required:!1,description:"表格列配置",type:{name:"ColumnType[]",raw:"ColumnType<any>[]"}},dataSource:{name:"dataSource",required:!1,description:"数据源",type:{name:"any[]",raw:"any[]"}},loading:{name:"loading",required:!1,description:"是否加载中",type:{name:"boolean",raw:"boolean"}},rowKey:{name:"rowKey",required:!1,description:"行数据的 Key",type:{name:"string | function",raw:"string | ((record: any) => string)"}}}};const yo=mt.createFromIconfontCN({scriptUrl:["//at.alicdn.com/t/c/font_5037819_a72xy7yjoj.js"]}),Cr=({name:e,size:t,color:a,style:l,...n})=>{const r={fontSize:t,color:a,...l};return q.jsx(yo,{...n,type:e,style:r})};Cr.__docgenInfo={displayName:"XcIcon",description:"自定义图标组件,基于 iconfont",props:{name:{name:"name",required:!0,description:"图标名称",type:{name:"string",raw:"string"}},size:{name:"size",required:!1,description:"图标大小",type:{name:"number | string",raw:"number | string"}},color:{name:"color",required:!1,description:"图标颜色",type:{name:"string",raw:"string"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},style:{name:"style",required:!1,description:"自定义样式",type:{name:"CSSProperties",raw:"React.CSSProperties"}}}};const Sr=({loading:e,description:t="暂无数据",className:a,emptyChildren:l,loadingText:n,emptyImage:r})=>e?q.jsxs(ce.Flex,{className:`pt-10 w-full ${a||""}`,align:"center",justify:"center",vertical:!0,children:[q.jsx(ce.Spin,{size:"large"}),n&&q.jsx("div",{className:"mt-4 text-gray-500",children:n})]}):q.jsx(ce.Flex,{className:`pt-10 w-full ${a||""}`,align:"center",justify:"center",children:q.jsx(ce.Empty,{image:r,description:t,imageStyle:{height:180},children:l})});Sr.__docgenInfo={displayName:"EmptyAndSpin",description:"空状态和加载状态组合组件",props:{loading:{name:"loading",required:!0,description:"是否加载中",type:{name:"boolean",raw:"boolean"}},description:{name:"description",required:!1,description:"空状态描述",type:{name:"ReactNode",raw:"React.ReactNode"},defaultValue:{value:'"暂无数据"'}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},emptyChildren:{name:"emptyChildren",required:!1,description:"空状态额外内容",type:{name:"ReactNode",raw:"React.ReactNode"}},loadingText:{name:"loadingText",required:!1,description:"加载中提示文字",type:{name:"string",raw:"string"}},emptyImage:{name:"emptyImage",required:!1,description:"空状态图片",type:{name:"string",raw:"string"}}}};const Ar=({onClick:e,showText:t=!1,className:a,size:l="small",type:n="default"})=>q.jsx(ce.Button,{size:l,type:n,icon:q.jsx(mt.LeftOutlined,{}),className:`cursor-pointer ${a||""}`,onClick:e,children:t&&"返回"});Ar.__docgenInfo={displayName:"BackButton",description:"返回按钮组件",props:{onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"() => void"}},showText:{name:"showText",required:!1,description:"是否显示文字",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},size:{name:"size",required:!1,description:"按钮大小",type:{name:"ButtonSize",raw:'"small" | "middle" | "large"'},defaultValue:{value:'"small"'}},type:{name:"type",required:!1,description:"按钮类型",type:{name:"ButtonType",raw:'"primary" | "default" | "dashed" | "link" | "text"'},defaultValue:{value:'"default"'}}}};const _r=({removePadding:e=!0,className:t,...a})=>{const l=e?`px-0 h-auto ${t||""}`:t;return q.jsx(ce.Button,{type:"link",...a,className:l,children:a.children})};_r.__docgenInfo={displayName:"LinkButton",description:"链接样式按钮组件,适用于表格操作列",props:{removePadding:{name:"removePadding",required:!1,description:"是否去除默认内边距",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},children:{name:"children",required:!1,description:"按钮内容",type:{name:"ReactNode",raw:"React.ReactNode"}},onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"(event: React.MouseEvent<HTMLButtonElement>) => void"}},disabled:{name:"disabled",required:!1,description:"是否禁用",type:{name:"boolean",raw:"boolean"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}}}};const{Option:To}=ce.Select,wr=({columns:e,request:t,searchFields:a=[],showSearch:l=!0,showRefresh:n=!0,defaultPageSize:r=10,pageSizeOptions:i=["10","20","50","100"],autoLoad:u=!0,externalParams:s={},...o})=>{const[c,f]=I.useState([]),[m,p]=I.useState(!1),[y,h]=I.useState({current:1,pageSize:r,total:0}),[b,v]=I.useState({}),[g,E]=I.useState({}),[_]=ce.Form.useForm(),w=I.useRef(y);w.current=y;const C=I.useRef(s);C.current=s;const M=I.useRef(!1),S=I.useMemo(()=>e.map(N=>{const{sortable:x,render:F,...U}=N;return{...U,sorter:x?!0:void 0,render:F||($=>$)}}),[e]),T=I.useCallback(async(N={})=>{if(t){p(!0);try{const x={page:w.current.current,pageSize:w.current.pageSize,sortField:g.field,sortOrder:g.order,searchParams:{...b,...C.current},...N},F=await t(x);F.success&&(f(F.data),h(U=>({...U,total:F.total,current:x.page||U.current})))}catch(x){console.error("加载数据失败:",x)}finally{p(!1)}}},[t,g,b]),A=I.useCallback(N=>{v(N),h(x=>({...x,current:1}))},[]),k=I.useCallback(()=>{_.resetFields(),v({}),h(N=>({...N,current:1}))},[_]),D=I.useCallback(()=>{T()},[T]),P=I.useCallback((N,x,F)=>{const U={current:N.current||1,pageSize:N.pageSize||r,total:N.total||0},$={field:F?.field,order:F?.order};h(U),E($)},[r]);return I.useEffect(()=>{const N=Object.keys(s).length>0;(u&&!M.current||N)&&(T(),M.current=!0)},[u,s,T]),q.jsxs("div",{children:[l&&a.length>0&&q.jsx(ce.Card,{size:"small",style:{marginBottom:16},children:q.jsxs(ce.Form,{form:_,layout:"inline",onFinish:A,initialValues:a.reduce((N,x)=>(x.defaultValue!==void 0&&(N[x.key]=x.defaultValue),N),{}),children:[a.map(N=>q.jsx(ce.Form.Item,{name:N.key,label:N.label,children:N.type==="input"?q.jsx(ce.Input,{placeholder:N.placeholder||`请输入${N.label}`,style:{width:200}}):q.jsx(ce.Select,{placeholder:N.placeholder||`请选择${N.label}`,style:{width:200},allowClear:!0,children:N.options?.map(x=>q.jsx(To,{value:x.value,children:x.label},x.value))})},N.key)),q.jsx(ce.Form.Item,{children:q.jsxs(ce.Space,{children:[q.jsx(ce.Button,{type:"primary",htmlType:"submit",icon:q.jsx(mt.SearchOutlined,{}),children:"查询"}),q.jsx(ce.Button,{onClick:k,children:"重置"}),n&&q.jsx(ce.Button,{icon:q.jsx(mt.ReloadOutlined,{}),onClick:D,children:"刷新"})]})})]})}),q.jsx(ce.Table,{...o,columns:S,dataSource:c,loading:m,pagination:{...y,showSizeChanger:!0,showQuickJumper:!0,showTotal:(N,x)=>`第 ${x[0]}-${x[1]} 条/共 ${N} 条`,pageSizeOptions:i},onChange:P,scroll:{x:"max-content",y:"50vh"}})]})};wr.__docgenInfo={displayName:"AdvancedTable",description:"高阶表格组件,支持异步请求、搜索、排序等功能",props:{columns:{name:"columns",required:!0,description:"列配置",type:{name:"AdvancedColumnType[]",raw:"AdvancedColumnType<any>[]"}},request:{name:"request",required:!1,description:"异步请求函数",type:{name:"function",raw:"(params: RequestParams) => Promise<RequestResponse>"}},searchFields:{name:"searchFields",required:!1,description:"搜索字段配置",type:{name:"SearchFieldConfig[]",raw:"SearchFieldConfig[]"},defaultValue:{value:"[]"}},showSearch:{name:"showSearch",required:!1,description:"是否显示搜索区域",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},showRefresh:{name:"showRefresh",required:!1,description:"是否显示刷新按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},defaultPageSize:{name:"defaultPageSize",required:!1,description:"默认页面大小",type:{name:"number",raw:"number"},defaultValue:{value:"10"}},pageSizeOptions:{name:"pageSizeOptions",required:!1,description:"页面大小选项",type:{name:"string[]",raw:"string[]"},defaultValue:{value:'["10", "20", "50", "100"]'}},autoLoad:{name:"autoLoad",required:!1,description:"是否自动加载",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},externalParams:{name:"externalParams",required:!1,description:"外部请求参数",type:{name:"Record<string, any>",raw:"Record<string, any>"},defaultValue:{value:"{}"}}}};const xo=({host:e,onChange:t})=>{const a=e.dataset.key,l=e.dataset.placeholder,n=e.dataset.options?decodeURIComponent(e.dataset.options):"[]",r=e.dataset.required==="true",i=e.dataset.value||"",u=I.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),[s,o]=I.useState(i||void 0),[c,f]=I.useState(64),m=I.useRef(null),p=b=>{o(b),e.setAttribute("data-value",b),t(a,b)};I.useEffect(()=>{o(i||void 0)},[i]);const y=I.useCallback(()=>{if(s!=null&&s!==""){const b=u.find(v=>String(v.value)===String(s));return b?typeof b.label=="string"?b.label:String(b.label??s):String(s)}return l||"请选择"},[s,u,l]),h=I.useCallback(()=>{const b=m.current;if(!b)return;const v=b.querySelector(".ant-select-selection-item"),g=b.querySelector(".ant-select-selection-placeholder"),E=v||g,_=(E?.textContent||"").trim()||y(),w=b.querySelector(".ant-select-selector"),C=E||w||b,M=window.getComputedStyle(C),S=E?M.fontSize:"16px",T=M.fontFamily||"sans-serif",A=M.fontWeight||"400",D=`${M.fontStyle||"normal"} ${A} ${S} ${T}`,N=document.createElement("canvas").getContext("2d"),x=N?Math.ceil((N.font=D,N.measureText(_).width||0)):0;let F=0;if(w){const V=window.getComputedStyle(w);F=(Number.parseFloat(V.paddingLeft)||0)+(Number.parseFloat(V.paddingRight)||0)}const U=b.querySelector(".ant-select-arrow"),$=U?Math.ceil(U.getBoundingClientRect().width):12,G=b.querySelector(".ant-select-clear");let L=0;if(G){const V=window.getComputedStyle(G);V.display!=="none"&&V.visibility!=="hidden"&&(L=Math.ceil(G.getBoundingClientRect().width))}const W=Math.max(36,x+F+$+L+6);f(V=>V===W?V:W)},[y]);return I.useLayoutEffect(()=>{const b=window.requestAnimationFrame(()=>{h()}),v=window.setTimeout(()=>{h()},60);return()=>{window.cancelAnimationFrame(b),window.clearTimeout(v)}},[h]),I.useEffect(()=>{if(!("fonts"in document))return;let b=!1;const v=document.fonts;if(v?.ready)return v.ready.then(()=>{b||h()}),()=>{b=!0}},[h]),$t.createPortal(q.jsx("div",{className:"rte-select-wrapper",contentEditable:!1,ref:m,style:{display:"inline-block",width:c},children:q.jsx(ce.Select,{value:s,onChange:p,placeholder:l||"请选择",style:{width:"100%"},options:u,allowClear:!r,size:"small",dropdownClassName:"rte-select-dropdown",getPopupContainer:()=>document.body,dropdownMatchSelectWidth:!1,suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})})}),e)},Co=e=>{const[t,a]=I.useState([]);return I.useEffect(()=>{const l=e.current;if(!l)return;const n=()=>{const i=l.querySelectorAll(".rte-select-host"),u=[];i.forEach(s=>{const o=s.getAttribute("data-key");o&&u.push(q.jsx(xo,{host:s,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`select-${o}`))}),a(u)};n();const r=new MutationObserver(i=>{let u=!1;for(const s of i)if(s.type==="childList"){let o=!1;if(s.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-select-host")||f.querySelector?.(".rte-select-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-select-host")||f.querySelector?.(".rte-select-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},So=({host:e,onChange:t})=>{const a=e.dataset.key,l=e.dataset.placeholder,n=e.dataset.options?decodeURIComponent(e.dataset.options):"[]",r=e.dataset.required==="true",i=e.dataset.value||"",u=I.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),[s,o]=I.useState(i||void 0),[c,f]=I.useState(""),[m,p]=I.useState(null),[y,h]=I.useState(64),b=I.useRef(null),v=I.useMemo(()=>{const T=[...u];return m&&!u.some(A=>A.value===m)&&T.unshift({label:m,value:m}),T},[u,m]),g=I.useMemo(()=>{const T=c.trim();if(!T)return v;const A=T.toLowerCase(),k=v.filter(P=>P.label.toLowerCase().includes(A)||P.value.toLowerCase().includes(A));return v.some(P=>P.label===T||P.value===T)?k:[{label:T,value:T,isCustom:!0},...k]},[v,c]),E=T=>{if(T==null)return;u.some(k=>k.value===T)?m&&p(null):p(T),o(T),f(""),e.setAttribute("data-value",T),t(a,T)},_=T=>{f(T)},w=T=>{if(T.key==="Enter"&&c.trim()){T.preventDefault(),T.stopPropagation();const A=c.trim(),k=u.find(D=>D.label===A||D.value===A);k?E(k.value):(p(A),o(A),f(""),e.setAttribute("data-value",A),t(a,A))}},C=()=>{p(null),o(void 0),f(""),e.setAttribute("data-value",""),t(a,"")};I.useEffect(()=>{o(i||void 0)},[i]);const M=I.useCallback(()=>{if(s!=null&&s!==""){const T=v.find(A=>String(A.value)===String(s));return T?typeof T.label=="string"?T.label:String(T.label??s):String(s)}return l||"请选择"},[s,v,l]),S=I.useCallback(()=>{const T=b.current;if(!T)return;const A=T.querySelector(".ant-select-selection-item"),k=T.querySelector(".ant-select-selection-placeholder"),D=A||k,P=(D?.textContent||"").trim()||M(),N=T.querySelector(".ant-select-selector"),x=D||N||T,F=window.getComputedStyle(x),U=D?F.fontSize:"16px",$=F.fontFamily||"sans-serif",G=F.fontWeight||"400",W=`${F.fontStyle||"normal"} ${G} ${U} ${$}`,R=document.createElement("canvas").getContext("2d"),K=R?Math.ceil((R.font=W,R.measureText(P).width||0)):0;let ne=0;if(N){const ie=window.getComputedStyle(N);ne=(Number.parseFloat(ie.paddingLeft)||0)+(Number.parseFloat(ie.paddingRight)||0)}const ae=T.querySelector(".ant-select-arrow");ae&&Math.ceil(ae.getBoundingClientRect().width);const X=T.querySelector(".ant-select-clear");if(X){const ie=window.getComputedStyle(X);ie.display!=="none"&&ie.visibility!=="hidden"&&Math.ceil(X.getBoundingClientRect().width)}const le=Math.min(240,Math.max(80,K+ne+4));h(ie=>ie===le?ie:le)},[M]);return I.useLayoutEffect(()=>{const T=window.requestAnimationFrame(()=>{S()}),A=window.setTimeout(()=>{S()},60);return()=>{window.cancelAnimationFrame(T),window.clearTimeout(A)}},[S]),I.useEffect(()=>{if(!("fonts"in document))return;let T=!1;const A=document.fonts;if(A?.ready)return A.ready.then(()=>{T||S()}),()=>{T=!0}},[S]),$t.createPortal(q.jsx("div",{className:`rte-searchable-select-wrapper ${s?"rte-searchable-has-value":""}`,contentEditable:!1,ref:b,style:{display:"inline-block",width:y},children:q.jsx(ce.Select,{showSearch:!0,value:s,searchValue:c,onChange:E,onSearch:_,onClear:C,onInputKeyDown:w,filterOption:!1,placeholder:l||"搜索或输入",style:{width:"100%"},options:g,allowClear:!r,size:"small",popupClassName:"rte-searchable-select-dropdown",getPopupContainer:()=>document.body,dropdownMatchSelectWidth:!1,notFoundContent:q.jsx("span",{style:{color:"#999",fontSize:13},children:"暂无数据"}),suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})})}),e)},Ao=e=>{const[t,a]=I.useState([]);return I.useEffect(()=>{const l=e.current;if(!l)return;const n=()=>{const i=l.querySelectorAll(".rte-searchable-select-host"),u=[];i.forEach(s=>{const o=s.getAttribute("data-key");o&&u.push(q.jsx(So,{host:s,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`searchable-select-${o}`))}),a(u)};n();const r=new MutationObserver(i=>{let u=!1;for(const s of i)if(s.type==="childList"){let o=!1;if(s.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-searchable-select-host")||f.querySelector?.(".rte-searchable-select-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-searchable-select-host")||f.querySelector?.(".rte-searchable-select-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},_o=({host:e,onChange:t})=>{const a=e.dataset.key,l=e.dataset.placeholder,n=e.dataset.options?decodeURIComponent(e.dataset.options):"[]",r=e.dataset.value||"",i=I.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),u=I.useCallback(C=>C?C.split("-"):[],[]),[s,o]=I.useState(()=>u(r)),[c,f]=I.useState(100),[m,p]=I.useState(0),y=I.useRef(u(r)),h=I.useRef(null),b=s.length>=2,v=C=>{o(C),y.current=C;const M=C.join("-");e.setAttribute("data-value",M),t(a,M)},g=C=>{if(!C||C.length===0){v([]);return}C.length<2||v(C.map(String))},E=C=>{C||(o(y.current),p(M=>M+1))};I.useEffect(()=>{o(u(r))},[r,u]);const _=I.useCallback(()=>s.length>=2?s.join("-"):l||"请选择省市区",[s,l]),w=I.useCallback(()=>{const C=h.current;if(!C)return;const M=_(),S=C.querySelector(".ant-select-selector"),T=C.querySelector(".ant-select-selection-item")||C.querySelector(".ant-select-selection-placeholder"),A=T||S||C,k=window.getComputedStyle(A),D=T?k.fontSize:"16px",P=k.fontFamily||"sans-serif",N=k.fontWeight||"400",F=`${k.fontStyle||"normal"} ${N} ${D} ${P}`,$=document.createElement("canvas").getContext("2d"),G=$?Math.ceil(($.font=F,$.measureText(M).width||0)):0;let L=0;if(S){const R=window.getComputedStyle(S);L=(Number.parseFloat(R.paddingLeft)||0)+(Number.parseFloat(R.paddingRight)||0)}const V=Math.max(80,G+L+16+10);f(R=>R===V?R:V)},[_]);return I.useLayoutEffect(()=>{const C=window.requestAnimationFrame(()=>{w()}),M=window.setTimeout(()=>{w()},60);return()=>{window.cancelAnimationFrame(C),window.clearTimeout(M)}},[w]),I.useEffect(()=>{if(!("fonts"in document))return;let C=!1;const M=document.fonts;if(M?.ready)return M.ready.then(()=>{C||w()}),()=>{C=!0}},[w]),$t.createPortal(q.jsx("div",{className:"rte-cascader-wrapper",contentEditable:!1,ref:h,"data-has-value":b?"true":"false",style:{display:"inline-block",width:c},children:q.jsx(ce.Cascader,{value:b?s:void 0,onChange:g,onDropdownVisibleChange:E,options:i,placeholder:l||"请选择省市区",style:{width:"100%"},size:"small",allowClear:!0,changeOnSelect:!0,showSearch:{filter:(C,M)=>M.some(S=>S.label.toLowerCase().includes(C.toLowerCase()))},popupClassName:"rte-cascader-dropdown",getPopupContainer:()=>document.body,displayRender:C=>C.join("-"),suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})},m)}),e)},wo=e=>{const[t,a]=I.useState([]);return I.useEffect(()=>{const l=e.current;if(!l)return;const n=()=>{const i=l.querySelectorAll(".rte-cascader-host"),u=[];i.forEach(s=>{const o=s.getAttribute("data-key");o&&u.push(q.jsx(_o,{host:s,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`cascader-${o}`))}),a(u)};n();const r=new MutationObserver(i=>{let u=!1;for(const s of i)if(s.type==="childList"){let o=!1;if(s.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-cascader-host")||f.querySelector?.(".rte-cascader-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-cascader-host")||f.querySelector?.(".rte-cascader-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t};function ko(e){if(!e)return"";try{return decodeURIComponent(e)}catch{return e}}function No(e){if(!e)return"";try{return encodeURIComponent(e)}catch{return e}}function Io(e,t,a,l,n){const i=document.createElement("canvas").getContext("2d");if(!i)return 0;i.font=t;const u=e.split(`
|
|
2
|
+
`);let s=0;for(const p of u){const y=i.measureText(p||" ").width||0;s=Math.max(s,y)}const o=Number.parseFloat(a),c=Number.isFinite(o)?o:0,f=u.reduce((p,y)=>p.length>=y.length?p:y,""),m=c>0?c*Math.max(0,(f||"").length-1):0;return Math.ceil(s+m+l+n)}const Lo=({host:e,onChange:t})=>{const a=e.dataset.key||"",l=e.dataset.placeholder||"",n=e.dataset.tooltip||"",r=e.dataset.allowNewline!=="0",i=I.useMemo(()=>ko(e.dataset.value||""),[e]),[u,s]=I.useState(i),o=I.useRef(i),c=I.useMemo(()=>{const _=Number.parseFloat(e.dataset.estimatedWidth||"");return Number.isFinite(_)&&_>0?_:64},[e]),[f,m]=I.useState(c),p=I.useRef(null),y=(u||"").trim().length>0,h=!!n&&!y,b=(u||"").includes(`
|
|
3
|
+
`);I.useEffect(()=>{s(i),o.current=i},[i]),I.useEffect(()=>{o.current=u},[u]),I.useEffect(()=>{e.classList.toggle("rte-variable-multiline",b)},[e,b]);const v=I.useCallback(()=>{const _=p.current;if(!_)return;const w=_.querySelector("textarea");if(!w)return;const C=window.getComputedStyle(w),M=C.fontStyle||"normal",S=C.fontWeight||"400",T=C.fontSize||"16px",A=C.fontFamily||"sans-serif",k=`${M} ${S} ${T} ${A}`,D=Number.parseFloat(C.paddingLeft)||0,P=Number.parseFloat(C.paddingRight)||0,N=(u&&u.length>0?u:l)||" ",x=Io(N,k,C.letterSpacing||"0",D,P),U=Math.max(24,Math.min(600,x+2));m($=>$===U?$:U)},[l,u]);I.useEffect(()=>{const _=p.current;if(!_||typeof ResizeObserver>"u")return;let w=0;const C=new ResizeObserver(()=>{w&&window.cancelAnimationFrame(w),w=window.requestAnimationFrame(()=>{t(a,o.current)})});return C.observe(_),()=>{w&&window.cancelAnimationFrame(w),C.disconnect()}},[a,t]),I.useLayoutEffect(()=>{const _=window.requestAnimationFrame(()=>{v()});return()=>{window.cancelAnimationFrame(_)}},[v]),I.useEffect(()=>{if(!("fonts"in document))return;let _=!1;const w=document.fonts;if(w?.ready)return w.ready.then(()=>{_||v()}),()=>{_=!0}},[v]);const g=_=>{const w=_.target.value??"";s(w),e.setAttribute("data-value",No(w)),t(a,w)},E=_=>{_.key==="Enter"&&!r&&_.preventDefault()};return $t.createPortal(q.jsxs("div",{className:`rte-variable-v2-wrapper ${h?"rte-variable-v2-with-icon":""}`,contentEditable:!1,ref:p,"data-placeholder":l,"data-has-value":y?"1":"0",style:{verticalAlign:"middle",width:b?"100%":f,lineHeight:"30px"},children:[q.jsx(ce.Input.TextArea,{value:u,onChange:g,onKeyDown:E,placeholder:l,autoSize:{minRows:1,maxRows:8},className:"rte-variable-v2-textarea"}),n?q.jsx("i",{contentEditable:!1,style:{fontWeight:100},className:`iconfont icon-tishi variable-info-icon ${h?"":"hidden"}`,"data-variable-key":a,"data-tooltip":n}):null]}),e)},Oo=e=>{const[t,a]=I.useState([]);return I.useEffect(()=>{const l=e.current;if(!l)return;const n=()=>{const i=l.querySelectorAll('[data-variable-render="antd-textarea"]'),u=[];i.forEach(s=>{const o=s.getAttribute("data-key");o&&u.push(q.jsx(Lo,{host:s,onChange:()=>{const c=()=>{if(!e.current)return;const f=new Event("input",{bubbles:!0});e.current.dispatchEvent(f)};c(),window.requestAnimationFrame(c)}},`variable-v2-${o}`))}),a(u)};n();const r=new MutationObserver(i=>{let u=!1;for(const s of i){if(s.type!=="childList")continue;const o=c=>{c.forEach(f=>{if(f.nodeType!==Node.ELEMENT_NODE)return;const m=f;(m.matches?.('[data-variable-render="antd-textarea"]')||m.querySelector?.('[data-variable-render="antd-textarea"]'))&&(u=!0)})};if(o(s.addedNodes),o(s.removedNodes),u)break}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t};function Do(e,t=[]){I.useLayoutEffect(()=>{if(!e.current)return;const a=new Map,l=new Map,n=f=>{const m=f.value||f.placeholder||"",p=window.getComputedStyle(f),y=Number.parseFloat(p.paddingLeft)||0,h=Number.parseFloat(p.paddingRight)||0,b=document.createElement("span");b.style.cssText=`
|
|
4
4
|
position: absolute;
|
|
5
5
|
visibility: hidden;
|
|
6
6
|
white-space: nowrap;
|
|
@@ -8,70 +8,70 @@
|
|
|
8
8
|
font-family: ${p.fontFamily||"inherit"};
|
|
9
9
|
font-weight: ${p.fontWeight||"inherit"};
|
|
10
10
|
letter-spacing: ${p.letterSpacing||"normal"};
|
|
11
|
-
padding-left: ${
|
|
11
|
+
padding-left: ${y}px;
|
|
12
12
|
padding-right: ${h}px;
|
|
13
|
-
`,
|
|
13
|
+
`,b.textContent=m||"0",document.body.appendChild(b);const g=Math.max(24,Math.min(600,Math.ceil(b.offsetWidth)+2));return document.body.removeChild(b),g},r=f=>{const m=f.target;if(!m)return;let p=m.value;p=p.replace(/[^\d.]/g,"");const y=p.indexOf(".");y!==-1&&(p=p.slice(0,y+1)+p.slice(y+1).replace(/\./g,"")),y!==-1&&p.length-y-1>2&&(p=p.slice(0,y+3));const h=p.endsWith(".")||y!==-1&&p.length-y-1<2&&p.length-y-1>0;if(p!==""&&!h){const v=parseFloat(p);if(Number.isNaN(v))m.value="";else{const g=m.getAttribute("min"),E=m.getAttribute("max"),_=g!==null?parseFloat(g):0,w=E!==null?parseFloat(E):1/0;if(v===0&&0<_)m.value="";else{const C=Math.min(Math.max(v,_),w);m.value=y!==-1?C.toFixed(p.length-y-1):String(C)}}}else p===""?m.value="":m.value=p;m.style.width=`${n(m)}px`;const b=m.closest(".rte-number-input-wrap");b&&(b.dataset.hasValue=m.value?"1":"0")},i=f=>{const m=f.key;m==="Backspace"||m==="Delete"||m==="Tab"||m==="ArrowLeft"||m==="ArrowRight"||m==="ArrowUp"||m==="ArrowDown"||m==="Home"||m==="End"||m==="Enter"||f.ctrlKey||f.metaKey||/^[\d.]$/.test(m)||f.preventDefault()},u=()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="number-input"]').forEach(m=>{const p=m.closest(".rte-number-input-wrap");p&&(p.dataset.hasValue=m.value?"1":"0",p.dataset.placeholder===void 0&&(p.dataset.placeholder=m.placeholder||""));const y=document.activeElement===m,h=n(m),b=Number.parseFloat(m.style.width||""),v=Number.isFinite(b),g=v?Math.abs(b-h):1/0;m.dataset.rteWidthInited==="1"?!y&&(!v||g>8)&&(m.style.width=`${h}px`):(m.dataset.rteWidthInited="1",!y&&(!v||g>2)&&(m.style.width=`${h}px`)),a.has(m)||(m.addEventListener("input",r,!1),m.addEventListener("keydown",i,!1),a.set(m,r),l.set(m,i))})};u();let s=!1;const o=()=>{s||(s=!0,queueMicrotask(()=>{s=!1,u()}))},c=new MutationObserver(f=>{let m=!1;f.forEach(p=>{p.type==="childList"&&p.addedNodes.forEach(y=>{if(y.nodeType===Node.ELEMENT_NODE){const h=y;h.matches&&(h.matches('[data-type="number-input"]')||h.querySelector('[data-type="number-input"]'))&&(m=!0)}})}),m&&o()});return e.current&&c.observe(e.current,{childList:!0,subtree:!0}),()=>{s=!1,c.disconnect(),a.forEach((f,m)=>{m.removeEventListener("input",f,!1)}),a.clear(),l.forEach((f,m)=>{m.removeEventListener("keydown",f,!1)}),l.clear()}},[e,...t])}function Po(e,t,a=[]){I.useLayoutEffect(()=>{if(!e.current)return;const l=new Map,n=window.setTimeout(()=>{if(!e.current)return;l.forEach((u,s)=>s.removeEventListener("blur",u,!1)),l.clear();const r=e.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]'),i=u=>{u.stopPropagation(),u.stopImmediatePropagation();const s=u.target?.closest('[data-type="variable"][data-node-type="report-url"]');if(!s||!e.current||!e.current.contains(s))return;const o=s.dataset.key;if(!o)return;const c=s.innerText.replace(/[\u200B\n]/g,"").trim();t(o,c)};r.forEach(u=>{u.addEventListener("blur",i,!1),l.set(u,i)})},0);return()=>{window.clearTimeout(n),l.forEach((r,i)=>i.removeEventListener("blur",r,!1)),l.clear()}},[e,t,...a])}function Mo(e,t,a=[]){const l=I.useRef(t);I.useEffect(()=>{l.current=t},[t]),I.useEffect(()=>{const n=e.current;if(!n)return;const r=i=>{const u=i.target?.closest?.('[data-type="variable"][data-node-type="markdown-name"]');if(!u||!n.contains(u))return;const s=u.dataset.key;if(!s)return;const o=u.innerText.replace(/[\u200B\n]/g,"").trim();requestAnimationFrame(()=>{u.isConnected&&l.current(s,o)})};return n.addEventListener("focusout",r,!1),()=>{n.removeEventListener("focusout",r,!1)}},[e])}function Bo(e,t,a=[]){I.useLayoutEffect(()=>{if(!e.current)return;const l=new Map,n=window.setTimeout(()=>{if(!e.current)return;l.forEach((u,s)=>s.removeEventListener("blur",u,!1)),l.clear();const r=e.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]'),i=u=>{u.stopPropagation(),u.stopImmediatePropagation();const s=u.target?.closest('[data-type="variable"][data-node-type="markdown"]');if(!s||!e.current||!e.current.contains(s))return;const o=s.dataset.key;if(!o)return;const c=s.innerText.replace(/[\u200B\n]/g,"").trim();t(o,c)};r.forEach(u=>{u.addEventListener("blur",i,!1),l.set(u,i)})},0);return()=>{window.clearTimeout(n),l.forEach((r,i)=>i.removeEventListener("blur",r,!1)),l.clear()}},[e,t,...a])}const ue=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Je=e=>e?typeof e=="string"?e:JSON.stringify(e):"",Ro=e=>{const t=(e?.name||"").toLowerCase(),a=/\.(png|jpe?g|gif|webp|bmp|svg)$/.test(t),l=(e?.type||"").toLowerCase();return a||(l==="image/png"||l==="image/jpeg"||l==="image/gif"||l==="image/webp"||l==="image/bmp"||l==="image/svg+xml")},qa=e=>{const t=(e||"").trim()||" ";let a=0;for(let l=0;l<t.length;l++){const n=t.charCodeAt(l);n>19968||n>=65280&&n<=65519?a+=16:a+=8}return Math.max(24,Math.min(600,a+22))},kr=e=>`\`\`\`
|
|
14
14
|
${(e||"").replace(/\r\n/g,`
|
|
15
15
|
`)}
|
|
16
|
-
\`\`\``,
|
|
17
|
-
`).trim(),
|
|
18
|
-
`).trim();
|
|
19
|
-
`).trim();if(
|
|
20
|
-
(reportId=${D.reportId||"unknown"}, agentId=${D.agentId||"1"})`},{title:"第2张:痛点放大对比图",content:"左侧:杂乱堆放、难清理;右侧:分区收纳、拿取方便。文案≤15字,绑定人群+场景+需求。"}]})))(
|
|
21
|
-
`)?(
|
|
22
|
-
`}),
|
|
23
|
-
`}),
|
|
24
|
-
`}))}if(
|
|
25
|
-
`});else if(
|
|
26
|
-
`)&&(
|
|
27
|
-
`});else
|
|
28
|
-
`}):
|
|
29
|
-
`}),
|
|
30
|
-
`})}if(
|
|
31
|
-
`}),
|
|
32
|
-
`}),
|
|
16
|
+
\`\`\``,Nr=e=>{const t=(e||"").replace(/\r\n/g,`
|
|
17
|
+
`).trim(),a=t.match(/^```[a-zA-Z0-9_-]*\n([\s\S]*?)\n```$/);return a?`<pre><code>${ue(a[1]||"")}</code></pre>`:`<div style="white-space:pre-wrap;">${ue(t)}</div>`},Fo=({config:e,messageApi:t,activeBatchKey:a,activeFileKey:l,activeBatchStartIndex:n,setActiveFileKey:r,setActiveBatchKey:i,setActiveBatchStartIndex:u,setFiles:s})=>{const o=I.useCallback(f=>{if(!f.target.files){f.target&&(f.target.value=""),r(null),i(null),u(null);return}const m=10*1024*1024,p=h=>h.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(h.name||""),y=h=>p(h)&&h.size>m;if(a&&f.target.files&&f.target.files.length>0){const h=a,b=e.find(_=>_.type==="upload"&&_.key===h),v=Array.from(f.target.files),g=v.filter(_=>!y(_)),E=v.length-g.length;if(E>0&&t.error(`已自动过滤 ${E} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`),b&&typeof b.maxCount=="number"&&typeof b.minCount=="number"){const _=b.maxCount,w=typeof n=="number"?n:0;s(C=>{const M={...C};let S=Math.min(Math.max(w,0),_-1);for(const T of g){for(;S<_&&M[`${h}-${S}`]!=null;)S+=1;if(S>=_)break;M[`${h}-${S}`]=T,S+=1}return M})}}else if(l&&f.target.files[0]){const h=f.target.files[0],b=l;y(h)?t.error("图片大小不能超过 10MB(仅允许上传 10MB 以内图片)"):s(v=>({...v,[b]:h}))}f.target&&(f.target.value=""),r(null),i(null),u(null)},[a,n,l,e,t,i,u,r,s]),c=I.useCallback(f=>{s(m=>{const p={...m};return delete p[f],p})},[s]);return{handleFileChange:o,handleRemoveFile:c}};function Ho(e){const t=e.trim();try{const l=new URL(t);if(l.protocol==="http:"||l.protocol==="https:")return t}catch{}const a=t.match(/https?:\/\/[^\s\u4e00-\u9fff\u3000-\u303f\uff00-\uffef]+/);return a?a[0]:t}function $o(e){return new Promise((t,a)=>{const l=document.createElement("video"),n=URL.createObjectURL(e);l.preload="auto",l.muted=!0,l.src=n,l.onloadeddata=()=>{l.currentTime=0},l.onseeked=()=>{try{const r=document.createElement("canvas");r.width=l.videoWidth,r.height=l.videoHeight;const i=r.getContext("2d");if(!i)return URL.revokeObjectURL(n),a(new Error("canvas context unavailable"));i.drawImage(l,0,0,r.width,r.height);const u=r.toDataURL("image/jpeg",.7);URL.revokeObjectURL(n),t(u)}catch(r){URL.revokeObjectURL(n),a(r)}},l.onerror=()=>{URL.revokeObjectURL(n),a(new Error("video load error"))}})}function Uo(e){return new Promise(t=>{const a=document.createElement("video");a.crossOrigin="anonymous",a.preload="auto",a.muted=!0,a.playsInline=!0,a.src=e;const l=setTimeout(()=>{n(),t("")},1e4),n=()=>{clearTimeout(l),a.onloadeddata=null,a.onseeked=null,a.onerror=null};a.onloadeddata=()=>{a.currentTime=0},a.onseeked=()=>{try{const r=document.createElement("canvas");r.width=a.videoWidth||320,r.height=a.videoHeight||180;const i=r.getContext("2d");if(i){i.drawImage(a,0,0,r.width,r.height);const u=r.toDataURL("image/jpeg",.7);n(),t(u)}else n(),t("")}catch{n(),t("")}},a.onerror=()=>{n(),t("")}})}function qo(e,t,a,l,n=[]){const r=I.useRef(a);r.current=a;const i=I.useCallback(async(u,s)=>{if(!t||!s.trim())return;const o=Ho(s);l(p=>({...p,[u]:{status:"loading",progress:0}}));const c=2*Math.PI*6.5;let f=0;const m=setInterval(()=>{f=Math.min(f+Math.random()*15+5,90);const p=e.current?.querySelector(`[data-type="video-url"][data-key="${u}"] .video-upload-progress-ring circle:last-child`);p&&p.setAttribute("stroke-dashoffset",String(c*(1-f/100)))},400);try{const p=await t({url:o});if(clearInterval(m),l(y=>({...y,[u]:{status:"success",videoUrl:p.videoUrl,thumbnail:p.thumbnail||"",fileName:o}})),!p.thumbnail&&p.videoUrl){const y=`/api/download-report-pdf?url=${encodeURIComponent(p.videoUrl)}`;Uo(y).then(h=>{h&&l(b=>{const v=b[u];return!v||v.status!=="success"?b:{...b,[u]:{...v,thumbnail:h}}})})}}catch(p){clearInterval(m),l(y=>({...y,[u]:{status:"error",errorMsg:p instanceof Error?p.message:"解析失败"}}))}},[t,l,e]);I.useEffect(()=>{const u=e.current;if(!u||!t)return;const s=c=>{const f=c.target?.closest?.('[data-node-type="video-url"]');if(!f)return;const m=f.dataset.key;m&&setTimeout(()=>{const p=(f.innerText||"").replace(/\u200B/g,"").trim();p&&i(m,p)},0)},o=c=>{const f=c.target?.closest?.('[data-node-type="video-url"]');if(!f)return;const m=f.dataset.key;if(!m)return;const p=r.current[m];if(p?.status==="success"||p?.status==="loading")return;const y=(f.innerText||"").replace(/\u200B/g,"").trim();y&&i(m,y)};return u.addEventListener("paste",s,!0),u.addEventListener("focusout",o,!0),()=>{u.removeEventListener("paste",s,!0),u.removeEventListener("focusout",o,!0)}},[e,t,i,...n])}function zo(e,t){return I.useCallback(async(a,l)=>{if(!e)return;t(i=>({...i,[a]:{status:"loading",file:l,fileName:l.name,progress:0}}));const n=await $o(l).catch(()=>"");n&&t(i=>{const u=i[a];return!u||u.status!=="loading"?i:{...i,[a]:{...u,thumbnail:n}}});const r=i=>{t(u=>{const s=u[a];return!s||s.status!=="loading"?u:{...u,[a]:{...s,progress:i}}})};try{const i=await e(l,r);t(u=>({...u,[a]:{status:"success",videoUrl:i.videoUrl,thumbnail:i.thumbnail||n,file:l,fileName:l.name}}))}catch(i){t(u=>({...u,[a]:{status:"error",file:l,fileName:l.name,errorMsg:i instanceof Error?i.message:"上传失败"}}))}},[e,t])}function Vo(e,t,a,l){I.useEffect(()=>{const n=e.current;if(!n)return;const r=u=>{const s=u.target?.closest?.('[data-type="video-url"], [data-type="video-upload"]');if(!s)return;const o=s.dataset.key;if(!o)return;const c=t[o];c?.status==="success"&&c.videoUrl&&a({key:o,anchorEl:s,type:"video-preview"})},i=u=>{if(l)return;const s=u.target?.closest?.('[data-type="video-url"], [data-type="video-upload"]');if(!s)return;const o=u.relatedTarget;o?.closest?.(".rte-tooltip-overlay")||o&&s.contains(o)||a(null)};return n.addEventListener("mouseover",r,!0),n.addEventListener("mouseout",i,!0),()=>{n.removeEventListener("mouseover",r,!0),n.removeEventListener("mouseout",i,!0)}},[e,t,a,l])}const Go=e=>{const t=e.trim();if(!t)return{url:""};let a=null;try{a=new URL(t)}catch{try{a=new URL(`https://${t}`)}catch{return{url:t}}}const l=a.pathname.split("/").filter(Boolean),n=l.findIndex(s=>s==="report"),r=n>=0?l[n+1]:void 0,i=l[0]&&l[0].length<=5?l[0]:void 0,u=a.searchParams.get("agentId")||void 0;return{url:t,reportId:r,agentId:u,lang:i}},Yo=e=>(e?.modules||[]).map((t,a)=>{const l=(t?.title||`模块${a+1}`).trim()||`模块${a+1}`,n=(t?.content||"").trim();return{title:l,content:n.length>0?n:`请补充:${l}`}}),Ll=e=>(e?.modules||[]).map((t,a)=>{const l=(t?.title||`模块${a+1}`).trim()||`模块${a+1}`,n=(t?.markdown||"").trim(),r=(t?.content||"").trim()||(n?Nr(n):"");return{title:l,content:r.length>0?r:`请补充:${l}`,markdown:n}}),Wo=({config:e,editorRef:t,files:a,setFiles:l,multiVariableCounts:n,setMultiVariableCounts:r,reportAnalyzeState:i,setReportAnalyzeState:u,markdownAnalyzeState:s,setMarkdownAnalyzeState:o,markdownNameAnalyzeState:c,setMarkdownNameAnalyzeState:f,nodeValues:m})=>{const p=I.useRef({}),y=I.useRef({}),h=I.useRef({}),b=I.useRef(i),v=I.useRef(s),g=I.useRef(c),E=I.useCallback(C=>C.find(S=>S.type==="tag")?.text||null,[]),_=I.useRef(e),w=I.useRef(null);I.useEffect(()=>{y.current=a},[a]),I.useEffect(()=>{h.current=n},[n]),I.useEffect(()=>{b.current=i},[i]),I.useEffect(()=>{v.current=s},[s]),I.useEffect(()=>{g.current=c},[c]),I.useEffect(()=>{const C=E(_.current),M=E(e);if(C&&C!==M&&t.current){const S={};t.current.querySelectorAll('[data-type="variable"]').forEach(P=>{const N=P.dataset.key;if(N){const x=P.innerText.replace(/[\u200B\n]/g,"").trim();x&&(S[N]=x)}}),t.current.querySelectorAll('[data-type="select"]').forEach(P=>{const N=P.dataset.key;if(N){const x=(P.getAttribute("data-value")||"").trim();x&&(S[N]=x)}}),t.current.querySelectorAll('[data-type="searchable-select"]').forEach(P=>{const N=P.dataset.key;if(N){const x=(P.getAttribute("data-value")||"").trim();x&&(S[N]=x)}}),t.current.querySelectorAll('[data-type="textarea"]').forEach(P=>{const N=P.dataset.key;if(N){const x=P.value.replace(/[\u200B]/g,"").trim();x&&(S[N]=x)}}),p.current[C]={variableValues:S,files:{...y.current},multiVariableCounts:{...h.current},reportAnalyzeState:{...b.current},markdownAnalyzeState:{...v.current},markdownNameAnalyzeState:{...g.current}}}if(M&&p.current[M]){const S=p.current[M];w.current=S,l(S.files),r(S.multiVariableCounts),u(S.reportAnalyzeState),o(S.markdownAnalyzeState),f(S.markdownNameAnalyzeState)}else if(M){w.current=null;const S={};e.forEach(T=>{if(T.type==="multi-variable"&&T.key){const A=m?.[T.key];Array.isArray(A)&&A.length>0?S[T.key]=Math.min(A.length+1,T.maxCount??9):S[T.key]=1}}),r(S),l({}),u({}),o({}),f({})}else w.current=null,r({}),l({}),u({}),o({}),f({});_.current=e},[e,t,E,l,r,u,o,f]),I.useLayoutEffect(()=>{w.current&&t.current&&(t.current.__tempVariableValues=w.current.variableValues,setTimeout(()=>{w.current&&(w.current=null)},0))})},jo=e=>{const t={},a=e.current;return a&&(a.querySelectorAll('[data-type="variable"]').forEach(l=>{const n=l.dataset.key;if(!n)return;if(l.dataset.variableRender==="antd-textarea"){const i=(l.getAttribute("data-value")||"").trim();if(!i)return;try{const s=(decodeURIComponent(i)||"").replace(/\r\n/g,`
|
|
18
|
+
`).trim();s&&(t[n]=s)}catch{const u=i.trim();u&&(t[n]=u)}return}const r=(l.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
19
|
+
`).trim();if(r){const i=l.getAttribute("data-node-type")||"";i==="report-url"?t[`${n}__url`]=r:i==="markdown-name"?t[`${n}__name`]=r:t[n]=r}}),a.querySelectorAll('[data-type="select"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=(l.getAttribute("data-value")||"").trim();r&&(t[n]=r)}),a.querySelectorAll('[data-type="textarea"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=l.value.replace(/[\u200B]/g,"").trim();r&&(t[n]=r)}),a.querySelectorAll('[data-type="richtext"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=l.getAttribute("data-node-type")||"";if(r==="report-module"||r==="markdown-module"){const u=Number.parseInt(l.getAttribute("data-module-index")||"0",10),s=(l.innerHTML||"").replace(/[\u200B]/g,"").trim();t[`${n}__module_${Number.isFinite(u)?u:0}`]=s;return}const i=(l.textContent||"").replace(/[\u200B]/g,"").trim();i&&(t[n]=i)}),a.querySelectorAll('[data-type="datepicker"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=(l.getAttribute("data-value")||"").trim();r&&(t[n]=r)}),a.querySelectorAll('[data-type="number-input"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=(l.value||"").trim();r&&(t[n]=r)}),a.querySelectorAll('[data-type="searchable-select"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=(l.getAttribute("data-value")||"").trim();r&&(t[n]=r)}),a.querySelectorAll('[data-type="cascader"]').forEach(l=>{const n=l.dataset.key;if(!n)return;const r=(l.getAttribute("data-value")||"").trim();r&&(t[n]=r)})),t},Xo=({reportAnalyze:e,markdownAnalyze:t,markdownNameAnalyze:a,reportAnalyzeState:l,setReportAnalyzeState:n,markdownAnalyzeState:r,setMarkdownAnalyzeState:i,markdownNameAnalyzeState:u,setMarkdownNameAnalyzeState:s,editorRef:o,reportAnalyzeRef:c,markdownAnalyzeRef:f,markdownNameAnalyzeRef:m,markdownAnalyzeStateRef:p,markdownNameAnalyzeStateRef:y})=>{const h=I.useCallback(()=>jo(o),[o]),b=I.useCallback((C,M)=>{const S=(M||"").trim();if(!C)return;if(!S){n(D=>({...D,[C]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}));return}const T=l[C];if(T?.lastParsedUrl&&T.lastParsedUrl===S&&(T.status==="loading"||T.status==="success"))return;n(D=>({...D,[C]:{...D[C],status:"loading",error:void 0,lastParsedUrl:S}}));const A=Go(S);(e||(async D=>({modules:[{title:"第1张:人群+场景直击图",content:`视觉要求:养宠人在客厅场景中,宠物(猫/狗)自然趴在旁;画面聚焦“人+宠+整洁氛围”。
|
|
20
|
+
(reportId=${D.reportId||"unknown"}, agentId=${D.agentId||"1"})`},{title:"第2张:痛点放大对比图",content:"左侧:杂乱堆放、难清理;右侧:分区收纳、拿取方便。文案≤15字,绑定人群+场景+需求。"}]})))(A).then(D=>{const P=Yo(D);if(o.current){const N=h();P.forEach((x,F)=>{N[`${C}__module_${F}`]=x.content}),o.current.__tempVariableValues=N}n(N=>({...N,[C]:{status:"success",error:void 0,lastParsedUrl:S,modules:P}}))}).catch(D=>{const P=D instanceof Error?D.message:String(D);n(N=>({...N,[C]:{...N[C]||{modules:[]},status:"error",error:P||"解析失败",lastParsedUrl:S,modules:[]}}))})},[h,o,e,l,n]),v=I.useCallback((C,M)=>{const S=(M||"").trim();if(!C)return;if(!S){i(N=>({...N,[C]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}));return}const T=r[C];if(T?.lastParsedText&&T.lastParsedText===S&&T.status==="success")return;if(!t){const N=kr(S),x=Ll({modules:[{title:"内容",content:Nr(N),markdown:N}]});if(o.current){const F=h();x.forEach((U,$)=>{F[`${C}__module_${$}`]=U.content}),o.current.__tempVariableValues=F}i(F=>({...F,[C]:{status:"success",error:void 0,lastParsedText:S,modules:x}}));return}const A=p.current[C]?.status==="loading";A||i(N=>({...N,[C]:{...N[C],status:"loading",error:void 0,lastParsedText:S}}));const k=500,D=Date.now();setTimeout(()=>{t({text:S}).then(x=>{const F=Ll(x),U=Date.now()-D,$=Math.max(0,k-U);setTimeout(()=>{if(o.current){const G=h();F.forEach((L,W)=>{G[`${C}__module_${W}`]=L.content}),o.current.__tempVariableValues=G}i(G=>({...G,[C]:{status:"success",error:void 0,lastParsedText:S,modules:F}}))},$)}).catch(x=>{const F=x instanceof Error?x.message:String(x);i(U=>({...U,[C]:{...U[C]||{modules:[]},status:"error",error:F,lastParsedText:S}}))})},A?0:50)},[h,o,t,r,p,i]),g=I.useCallback((C,M)=>{const S=(M||"").trim();if(!C)return;if(!S){s(N=>({...N,[C]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}));return}const T=y.current[C];if(T?.lastParsedText&&T.lastParsedText===S&&T.status==="success"||!a)return;const A=y.current[C]?.status==="loading";A||s(N=>({...N,[C]:{...N[C],status:"loading",error:void 0,lastParsedText:S}}));const k=500,D=Date.now();setTimeout(()=>{a({text:S}).then(x=>{const F=Ll(x),U=Date.now()-D,$=Math.max(0,k-U);setTimeout(()=>{if(o.current){const G=h();F.forEach((L,W)=>{G[`${C}__module_${W}`]=L.content}),o.current.__tempVariableValues=G}s(G=>({...G,[C]:{status:"success",error:void 0,lastParsedText:S,modules:F}}))},$)}).catch(x=>{const F=x instanceof Error?x.message:String(x);s(U=>({...U,[C]:{...U[C]||{modules:[]},status:"error",error:F,lastParsedText:S}}))})},A?0:50)},[h,o,a,y,s]);I.useEffect(()=>{c.current=b},[c,b]),I.useEffect(()=>{f.current=v},[f,v]),I.useLayoutEffect(()=>{m.current=g},[m,g]);const E=I.useCallback((C,M)=>{c.current(C,M)},[c]),_=I.useCallback((C,M)=>{f.current(C,M)},[f]),w=I.useCallback((C,M)=>{m.current(C,M)},[m]);return{handleReportUrlBlur:E,handleMarkdownBlur:_,handleMarkdownNameBlur:w}},Ko=({collapsed:e,collapseTransitionMs:t,contentRef:a,contentBodyRef:l,editorRef:n,debugIdRef:r,setCollapsedContentMaxHeightPx:i,setExpandedContentMaxHeightPx:u,setIsCollapseAnimating:s,effectiveConfig:o,files:c,multiVariableCounts:f,selectPortalsLength:m,datePickerPortalsLength:p,variablePortalsLength:y})=>{const h=I.useRef(""),b=I.useCallback(()=>{const g=l.current;if(!g)return;const E=Math.max(0,Math.ceil(g.scrollHeight||0));!Number.isFinite(E)||E<=0||u(_=>_===E?_:E)},[l,u]);I.useLayoutEffect(()=>{if(!e)return;const g=a.current,E=n.current;if(!(!g||!E))try{const _=E.getBoundingClientRect(),w=document.createRange();w.selectNodeContents(E);const C=Array.from(w.getClientRects());let M;if(C.length>0){const S=Math.min(...C.map(k=>k.top)),T=2;let A=0;for(const k of C)Math.abs(k.top-S)<=T&&(A=Math.max(A,k.bottom));M=A>0?Math.max(0,Math.ceil(A-_.top)):58}else{const S=window.getComputedStyle(E),T=Number.parseFloat(S.paddingTop)||0,A=Number.parseFloat(S.lineHeight)||34;M=Math.max(0,Math.ceil(T+A))||58}if(!Number.isFinite(M)||M<=0)return;i(S=>S===M?S:M)}catch{}},[e,a,n,o,c,f,m,p,y,i]),I.useLayoutEffect(()=>{if(!e)return;const g=a.current,E=l.current,_=n.current;if(!g)return;const w=()=>{g.scrollTop=0,g.scrollLeft=0,E&&(E.scrollTop=0,E.scrollLeft=0),_&&(_.scrollTop=0,_.scrollLeft=0)},M=(typeof t=="number"&&Number.isFinite(t)&&t>=0?t:260)+220;w();const S=P=>{P.preventDefault(),P.stopPropagation(),w()};g.addEventListener("wheel",S,{passive:!1}),g.addEventListener("touchmove",S,{passive:!1}),E&&(E.addEventListener("wheel",S,{passive:!1}),E.addEventListener("touchmove",S,{passive:!1}));const T=performance.now();let A=0;const k=P=>{w(),P-T<M&&(A=window.requestAnimationFrame(k))};A=window.requestAnimationFrame(k);const D=window.setTimeout(()=>{w()},M);return()=>{g.removeEventListener("wheel",S),g.removeEventListener("touchmove",S),E&&(E.removeEventListener("wheel",S),E.removeEventListener("touchmove",S)),window.cancelAnimationFrame(A),window.clearTimeout(D)}},[e,t,l,a,r,n]);const v=o.filter(g=>g.key&&g.type!=="report-module"&&g.type!=="markdown-module").map(g=>`${g.type}:${g.key}`).join("|");return v!==""&&h.current!==v&&(e||u(9999)),h.current=v,I.useEffect(()=>{if(e)return;const g=window.requestAnimationFrame(()=>{b();const E=window.setTimeout(()=>{b()},150);window.__rteSecondMeasureTimer=E});return()=>{window.cancelAnimationFrame(g);const E=window.__rteSecondMeasureTimer;E&&window.clearTimeout(E)}},[e,o,c,f,m,p,y,b]),I.useEffect(()=>{const g=typeof t=="number"&&Number.isFinite(t)&&t>=0?t:260;if(g<=0){s(!1);return}s(!0);const E=window.setTimeout(()=>s(!1),g);return()=>window.clearTimeout(E)},[e,t,s]),{measureExpandedContentHeight:b}},Qo=({config:e,editorRef:t,setIsEmpty:a,setIsFormValid:l})=>{I.useEffect(()=>{if(e.length>0){a(!1);return}const n=()=>{if(!t.current){a(!0);return}const i=t.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"",u=t.current.querySelectorAll('[data-type="variable"]'),s=t.current.querySelectorAll('[data-type="upload"]');let o=!1;u.forEach(f=>{(f.textContent?.replace(/[\u200B\n]/g,"").trim()||"")&&(o=!0)}),s.forEach(f=>{f.querySelector(".upload-inner-wrapper.has-file")&&(o=!0)});const c=!i&&!o;a(c),e.length===0&&l(!c)};n();const r=new MutationObserver(n);return t.current&&r.observe(t.current,{childList:!0,subtree:!0,characterData:!0}),()=>{r.disconnect()}},[e,t,a,l])},Jo=({config:e,reportAnalyzeState:t,markdownAnalyzeState:a,markdownNameAnalyzeState:l})=>I.useMemo(()=>{if(e.length===0)return e;const n=[];let r=!1;for(const i of e){if(i.type==="markdown"&&i.key==="tableData"||(r&&i.type==="text"&&i.text?.startsWith(`
|
|
21
|
+
`)?(n.push({...i,text:i.text.slice(1)}),r=!1):n.push(i)),i.type==="report-url"&&i.key){const u=t[i.key],s=u?.status??"idle",o=u?.modules??[];s==="loading"&&n.push({type:"text",className:"rte-report-parsing",text:`解析中...
|
|
22
|
+
`}),s==="error"&&u?.error&&n.push({type:"text",className:"rte-report-error",text:`解析失败:${ue(u.error)}
|
|
23
|
+
`}),o.length>0&&(o.forEach((c,f)=>{n.push({type:"report-module",key:i.key,moduleIndex:f,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:c.content})}),n.push({type:"text",text:`
|
|
24
|
+
`}))}if(i.type==="markdown"&&i.key){const u=a[i.key],s=u?.status??"idle",o=u?.modules??[];if(i.key==="tableData")if(s==="loading")n.push({type:"text",className:"rte-markdown-parsing",text:"解析中..."}),n.push({type:"text",text:`
|
|
25
|
+
`});else if(s==="success"&&o.length>0){const f=n[n.length-1];f?.type==="text"&&f.text?.endsWith(`
|
|
26
|
+
`)&&(n[n.length-1]={...f,text:f.text.slice(0,-1)}),o.forEach((m,p)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:p,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:m.content,exclusionGroup:i.exclusionGroup})}),r=!0}else n.push(i),s==="error"&&u?.error&&n.push({type:"text",className:"rte-markdown-error",text:`解析失败:${ue(u.error)}
|
|
27
|
+
`});else s==="loading"?n.push({type:"text",className:"rte-markdown-parsing",text:`解析中...
|
|
28
|
+
`}):s==="error"&&u?.error&&n.push({type:"text",className:"rte-markdown-error",text:`解析失败:${ue(u.error)}
|
|
29
|
+
`}),o.length>0&&s!=="loading"&&o.forEach((f,m)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:m,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:f.content})}),s!=="loading"&&n.push({type:"text",text:`
|
|
30
|
+
`})}if(i.type==="markdown-name"&&i.key){const u=l[i.key],s=u?.status??"idle",o=u?.modules??[];s==="loading"&&n.push({type:"text",className:"rte-markdown-parsing",text:`解析中...
|
|
31
|
+
`}),s==="error"&&u?.error&&n.push({type:"text",className:"rte-markdown-error",text:`解析失败:${ue(u.error)}
|
|
32
|
+
`}),o.length>0&&s!=="loading"&&(o.forEach((c,f)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:f,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:c.content})}),r=!0)}}return n},[e,a,l,t]);function Zo(e,t){const l=document.createElement("canvas").getContext("2d");if(!l)return 0;const n=window.getComputedStyle(t),r=n.fontStyle||"normal",i=n.fontWeight||"400",u=n.fontSize||"16px",s=n.fontFamily||"sans-serif";l.font=`${r} ${i} ${u} ${s}`;const c=(e||"").replace(/\r\n/g,`
|
|
33
33
|
`).split(`
|
|
34
|
-
`);let f=0;for(const
|
|
35
|
-
`),
|
|
36
|
-
`).trim()||b},s=h=>h?!!h.closest('[data-rte-force-hidden="1"]'):!1,o=[];for(let h=0;h<t.length;h++){const m=t[h];if((m.type==="variable"||m.type==="report-url"||m.type==="markdown"||m.type==="markdown-name"||m.type==="upload"||m.type==="multi-variable"||m.type==="select"||m.type==="textarea"||m.type==="richtext"||m.type==="report-module"||m.type==="markdown-module"||m.type==="datepicker"||m.type==="number-input"||m.type==="video-url"||m.type==="video-upload")&&m.required&&m.key){o.push({exclusionGroup:m.exclusionGroup||"",key:m.key,type:m.type==="multi-variable"||m.type==="report-url"||m.type==="markdown"||m.type==="markdown-name"?"variable":m.type==="report-module"||m.type==="markdown-module"?"richtext":m.type==="video-url"?"video-url":m.type==="video-upload"?"video-upload":m.type,isMultiVariable:m.type==="multi-variable",minCount:m.type==="multi-variable"||m.type==="upload"&&typeof m.minCount=="number"?m.minCount:void 0,moduleIndex:m.type==="report-module"||m.type==="markdown-module"?m.moduleIndex:void 0,__index:h});continue}if(m.type==="text"&&m.className?.includes("rte-text-required"))if(m.exclusionGroup)for(let b=h+1;b<t.length;b++){const E=t[b];if(E.exclusionGroup===m.exclusionGroup&&(E.type==="variable"||E.type==="markdown"||E.type==="upload"||E.type==="select"||E.type==="textarea"||E.type==="richtext"||E.type==="datepicker"||E.type==="number-input")&&E.key){o.push({exclusionGroup:m.exclusionGroup,key:E.key,type:E.type==="markdown"?"variable":E.type,__index:b});break}}else for(let b=h+1;b<t.length;b++){const E=t[b];if((E.type==="variable"||E.type==="markdown"||E.type==="upload"||E.type==="select"||E.type==="textarea"||E.type==="richtext"||E.type==="datepicker"||E.type==="number-input")&&E.key){o.push({exclusionGroup:E.exclusionGroup||"",key:E.key,type:E.type==="markdown"?"variable":E.type,__index:b});break}}}const u=t.some(h=>h.exclusionGroup==="separator"),l=[];if(u&&o.length>1){const h=[];t.forEach((m,b)=>{m.exclusionGroup==="separator"&&h.push(b)});for(const m of h){const E=o.filter(w=>typeof w.__index=="number"&&w.__index<m).sort((w,S)=>(S.__index??0)-(w.__index??0))[0],_=o.filter(w=>typeof w.__index=="number"&&w.__index>m).sort((w,S)=>(w.__index??0)-(S.__index??0))[0];E&&_&&l.push([E,_])}}if(o.length===0){if(t.length===0){if(!e.current){r(!1);return}const h=e.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";r(h.length>0);return}r(!0);return}const c=o.filter(h=>{if(!e.current)return!1;if(h.exclusionGroup){const m=e.current.querySelectorAll(`[data-group="${h.exclusionGroup}"]`);if(m.length>0){const b=m[0];return s(b)?!0:b.style.display!=="none"}}if(h.type==="upload"&&h.key){const m=e.current.querySelector(`[data-type="upload"][data-key="${h.key}"]`)||e.current.querySelector(`[data-type="upload"][data-batch-key="${h.key}"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}else if(h.type==="variable"&&h.key)if(h.isMultiVariable){const m=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${h.key}"]`);if(m.length>0){const b=m[0],E=b.closest("[data-group]")||b.parentElement;return s(E)?!0:E?E.style.display!=="none":!0}}else{const m=e.current.querySelector(`[data-type="variable"][data-key="${h.key}"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}else if(h.type==="select"&&h.key){const m=e.current.querySelector(`[data-type="select"][data-key="${h.key}"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}else if(h.type==="textarea"&&h.key){const m=e.current.querySelector(`[data-type="textarea"][data-key="${h.key}"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}else if(h.type==="richtext"&&h.key){const m=typeof h.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"]`:`[data-type="richtext"][data-key="${h.key}"]`,b=e.current.querySelector(m);if(b){const E=b.closest("[data-group]")||b.parentElement;return s(E)?!0:E?E.style.display!=="none":!0}}else if(h.type==="datepicker"&&h.key){const m=e.current.querySelector(`[data-type="datepicker"][data-key="${h.key}"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}else if(h.type==="number-input"&&h.key){const m=e.current.querySelector(`[data-type="number-input"][data-key="${h.key}"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}else if((h.type==="video-url"||h.type==="video-upload")&&h.key){const m=e.current.querySelector(`[data-type="${h.type}"][data-key="${h.key}"], [data-type="variable"][data-key="${h.key}"][data-node-type="video-url"]`);if(m){const b=m.closest("[data-group]")||m.parentElement;return s(b)?!0:b?b.style.display!=="none":!0}}return!1});if(c.length===0){r(!0);return}const f=new Set;l.forEach(h=>{h.forEach(m=>{m.key&&f.add(m.key)})});const g=c.filter(h=>!h.key||!f.has(h.key));let p=(l.length===0,!0);for(const h of l){const m=h.filter(E=>{if(!e.current)return!1;if(E.exclusionGroup){const y=e.current.querySelectorAll(`[data-group="${E.exclusionGroup}"]`);if(y.length>0){const _=y[0];return s(_)?!0:_.style.display!=="none"}}return!0});if(m.length===0)continue;let b=!1;for(const E of m)if(E.type==="upload"&&E.key){if(E.minCount&&E.minCount>0){let y=0;const _=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${E.key}"]`);if(_.length===0)continue;for(let w=0;w<_.length;w++){const M=_[w].dataset.key;M&&n[M]!=null&&(y+=1)}if(y>=E.minCount){b=!0;break}}else if(n[E.key]!==null&&n[E.key]!==void 0){b=!0;break}}else if(E.type==="variable"&&E.key)if(E.isMultiVariable){const y=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${E.key}"]`);let _=0;for(const S of Array.from(y)){if(S.classList.contains("show-placeholder"))continue;S.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(_+=1)}const w=E.minCount&&E.minCount>0?E.minCount:1;if(_>=w){b=!0;break}}else{const y=e.current.querySelector(`[data-type="variable"][data-key="${E.key}"]`);if(y){if(y.classList.contains("show-placeholder"))continue;if(y.innerText.replace(/[\u200B\n]/g,"").trim().length>0){const w=y.dataset.nodeType;if((w==="markdown"||w==="markdown-name")&&!!!e.current.querySelector(`[data-node-type="markdown-module"][data-key="${E.key}"]`))continue;b=!0;break}}}else if(E.type==="select"&&E.key){const y=e.current.querySelector(`[data-type="select"][data-key="${E.key}"]`);if(y&&(y.getAttribute("data-value")||"").trim().length>0){b=!0;break}}else if(E.type==="textarea"&&E.key){const y=e.current.querySelector(`[data-type="textarea"][data-key="${E.key}"]`);if(y&&(y.value||"").trim().length>0){b=!0;break}}else if(E.type==="richtext"&&E.key){const y=typeof E.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${E.key}"][data-module-index="${E.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${E.key}"][data-module-index="${E.moduleIndex}"]`:`[data-type="richtext"][data-key="${E.key}"]`,_=e.current.querySelector(y);if(_){if(_.getAttribute("data-is-placeholder")==="true")continue;if(i(_).length>0){b=!0;break}}}else if(E.type==="datepicker"&&E.key){const y=e.current.querySelector(`[data-type="datepicker"][data-key="${E.key}"]`);if(y&&(y.getAttribute("data-value")||"").trim().length>0){b=!0;break}}else if(E.type==="number-input"&&E.key){const y=e.current.querySelector(`[data-type="number-input"][data-key="${E.key}"]`);if(y&&(y.value||"").trim().length>0){b=!0;break}}else if((E.type==="video-url"||E.type==="video-upload")&&E.key&&a?.[E.key]?.status==="success"){b=!0;break}if(!b){p=!1;break}}let T=!0;for(const h of g)if(h.type==="upload"&&h.key){if(h.minCount&&h.minCount>0){let m=0;const b=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${h.key}"]`);if(b.length===0){T=!1;break}for(let E=0;E<b.length;E++){const _=b[E].dataset.key;_&&n[_]!=null&&(m+=1)}if(m<h.minCount){T=!1;break}}else if(n[h.key]===null||n[h.key]===void 0){T=!1;break}}else if(h.type==="variable"&&h.key)if(h.isMultiVariable){const m=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${h.key}"]`);let b=0;for(const y of Array.from(m)){if(y.classList.contains("show-placeholder"))continue;y.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(b+=1)}const E=h.minCount&&h.minCount>0?h.minCount:1;if(b<E){T=!1;break}}else{const m=e.current.querySelector(`[data-type="variable"][data-key="${h.key}"]`);if(!m){T=!1;break}if(m.classList.contains("show-placeholder")){T=!1;break}if(m.innerText.replace(/[\u200B\n]/g,"").trim().length===0){T=!1;break}const E=m.dataset.nodeType;if((E==="markdown"||E==="markdown-name")&&!!!e.current.querySelector(`[data-node-type="markdown-module"][data-key="${h.key}"]`)){T=!1;break}}else if(h.type==="select"&&h.key){const m=e.current.querySelector(`[data-type="select"][data-key="${h.key}"]`);if(!m||(m.getAttribute("data-value")||"").trim().length===0){T=!1;break}}else if(h.type==="textarea"&&h.key){const m=e.current.querySelector(`[data-type="textarea"][data-key="${h.key}"]`);if(!m||(m.value||"").trim().length===0){T=!1;break}}else if(h.type==="richtext"&&h.key){const m=typeof h.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"]`:`[data-type="richtext"][data-key="${h.key}"]`,b=e.current.querySelector(m);if(b&&b.getAttribute("data-is-placeholder")==="true"){T=!1;break}if(!b||i(b).length===0){T=!1;break}}else if(h.type==="datepicker"&&h.key){const m=e.current.querySelector(`[data-type="datepicker"][data-key="${h.key}"]`);if(!m||(m.getAttribute("data-value")||"").trim().length===0){T=!1;break}}else if(h.type==="number-input"&&h.key){const m=e.current.querySelector(`[data-type="number-input"][data-key="${h.key}"]`);if(!m||(m.value||"").trim().length===0){T=!1;break}}else if((h.type==="video-url"||h.type==="video-upload")&&h.key&&a?.[h.key]?.status!=="success"){T=!1;break}r(p&&T)}const ec=({config:e,effectiveConfig:t,files:n,editorRef:r,setIsFormValid:a,multiVariableCounts:i,setMultiVariableCounts:s,videoState:o})=>{I.useLayoutEffect(()=>{const u=r.current;if(!u)return;const l=new Map,c=p=>{const T=p.target,h=p.relatedTarget;!T||!r.current||!r.current.contains(T)||h&&r.current.contains(h)||setTimeout(()=>{if(r.current){if(e.length===0){const m=r.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";a(m.length>0);return}Vn(r),Dr(r,t,n,o),Pr(r,t,n,a,o)}},0)};u.addEventListener("blur",c,!0);const f=()=>{if(!r.current)return;l.forEach((h,m)=>{m.removeEventListener("blur",h,!1)}),l.clear();const p=r.current.querySelectorAll('[data-type="variable"][data-multi-key]'),T=h=>{h.stopPropagation(),h.stopImmediatePropagation();const m=h.target;if(!m||!r.current||!r.current.contains(m))return;const b=m.closest('[data-type="variable"][data-multi-key]');if(!b||!r.current.contains(b))return;let E=!1;if(l.forEach((v,k)=>{(k===b||k.contains(m))&&(E=!0)}),!E)return;const y=b.dataset.multiKey,_=b.dataset.key,w=b.dataset.index;if(!y||!_||w===void 0)return;const S=h.relatedTarget;if(!(!S||!r.current.contains(S)))return;const A=b.innerText.replace(/[\u200B\n]/g,"").trim(),x=/[、,,\s]+/;if(x.test(A)){const D=A.split(x).map(P=>P.trim()).filter(P=>P.length>0).slice(0,9);if(D.length>1){const P=e.find(N=>N.type==="multi-variable"&&N.key===y);if(P){const N=i[y]||1,C=parseInt(w,10),F=P.maxCount||9,U=[];for(let V=0;V<N;V++){const R=`${y}_${V}`,K=r.current.querySelector(`[data-type="variable"][data-key="${R}"][data-multi-key="${y}"]`);if(K){const ae=K.innerText.replace(/[\u200B\n]/g,"").trim();U.push(ae)}}U.splice(C,1,...D);const $=U.slice(0,F);$.length>0&&$[$.length-1]!==""&&$.length<F&&$.push("");const G=Math.max($.length,1),L={};$.forEach((V,R)=>{V&&(L[`${y}_${R}`]=V)}),r.current.querySelectorAll('[data-type="variable"]').forEach(V=>{const R=V.dataset.key,K=V.dataset.multiKey;if(R&&K!==y){const ae=V.innerText.replace(/[\u200B\n]/g,"").trim();ae&&(L[R]=ae)}}),r.current.__tempVariableValues=L,s(V=>({...V,[y]:G}))}}}};p.forEach(h=>{h.addEventListener("blur",T,!1),l.set(h,T)})},g=setTimeout(()=>{f()},0);return()=>{clearTimeout(g),u.removeEventListener("blur",c,!0),l.forEach((p,T)=>{T.removeEventListener("blur",p,!1)}),l.clear()}},[e,t,r,n,i,a,s])},tc=({disabled:e,collapsed:t,onCollapsedChange:n,config:r,lockStructure:a,editorRef:i,containerRef:s,fileInputRef:o,onBeforeFilePickerOpen:u,files:l,setFiles:c,handleRemoveFile:f,setActiveBatchKey:g,setActiveBatchStartIndex:p,setActiveFileKey:T,isDraggingRef:h,richtextPrevScrollTopRef:m,videoState:b,setVideoState:E,videoFileInputRef:y,activeVideoKeyRef:_,onImagePreview:w})=>{const S=(...A)=>{},M=A=>{try{const x=window.getSelection();if(!x)return S(A,"no selection");const v=x.rangeCount>0?x.getRangeAt(0):null;S(A,{rangeCount:x.rangeCount,isCollapsed:x.isCollapsed,anchorNode:x.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":x.anchorNode?.nodeName,anchorOffset:x.anchorOffset,focusNode:x.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":x.focusNode?.nodeName,focusOffset:x.focusOffset,range:v?{startContainer:v.startContainer.nodeType===Node.TEXT_NODE?"TEXT":v.startContainer.nodeName,startOffset:v.startOffset,endContainer:v.endContainer.nodeType===Node.TEXT_NODE?"TEXT":v.endContainer.nodeName,endOffset:v.endOffset}:null})}catch{}};return I.useCallback(A=>{if(e)return;t&&n?.(!1);const x=A.target;if(S("click",{tag:x.tagName,cls:x.className}),M("before click"),x.closest('[data-type="datepicker"]'))return;if(x.closest(".tag-close-btn")){A.preventDefault(),A.stopPropagation();return}if(r.length===0)return;const D=(W,V)=>{if(!i.current)return;Array.from(i.current.children).forEach(K=>{if(K!==W)if(V)K.dataset.prevDisplay===void 0&&(K.dataset.prevDisplay=K.style.display||""),K.dataset.rteForceHidden="1",K.style.setProperty("display","none","important");else{if(K.dataset.prevDisplay!==void 0){const ae=K.dataset.prevDisplay;ae?K.style.display=ae:K.style.removeProperty("display"),delete K.dataset.prevDisplay}else K.style.removeProperty("display");delete K.dataset.rteForceHidden}})},P=x.closest(".rte-textarea-toggle");if(P){A.preventDefault(),A.stopPropagation();const W=P.closest(".rte-textarea-wrapper"),V=W?.querySelector('[data-type="textarea"]'),K=!(P.getAttribute("data-expanded")==="true");P.setAttribute("data-expanded",String(K)),P.textContent=K?"收起":"展开",W&&W.classList.toggle("rte-textarea-expanded",K);const ae=W?.closest(".rte-textarea-required");if(ae?ae.classList.toggle("rte-textarea-overlay",K):W&&W.classList.toggle("rte-textarea-overlay",K),V)if(K)V.classList.add("rte-textarea-expanded"),V.style.maxHeight="none",V.style.height="100%";else{V.classList.remove("rte-textarea-expanded");const ne=V.dataset.maxHeight||"252";V.style.maxHeight=`${ne}px`,V.style.height="auto"}i.current&&(K?i.current.classList.add("rte-overlay-active"):i.current.classList.remove("rte-overlay-active"));return}const N=x.closest(".rte-richtext-toggle");if(N){A.preventDefault(),A.stopPropagation();const W=N.closest(".rte-richtext-wrapper"),V=W?.querySelector('[data-type="richtext"]'),K=!(N.getAttribute("data-expanded")==="true");((re,se)=>{re.setAttribute("data-expanded",String(se)),re.innerHTML=se?'<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>':'<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>'})(N,K);const ne=W?.closest(".rte-richtext-required");ne?ne.classList.toggle("rte-richtext-expanded",K):W&&W.classList.toggle("rte-richtext-expanded",K);const X=W?.closest(".exclusion-wrapper")||W?.parentElement;if(V&&(K?(V.style.height="100%",V.style.overflow="auto"):(V.style.height="",V.style.overflow="")),X&&(X.classList.toggle("rte-richtext-host-expanded",K),D(X,K)),i.current){if(i.current.classList.toggle("rte-richtext-fullscreen-active",K),s.current?.classList.toggle("rte-richtext-container-expanded",K),s.current)if(K){const re=Math.ceil(s.current.getBoundingClientRect().height||0);re>0&&s.current.style.setProperty("--rte-richtext-fullscreen-height",`${re}px`)}else s.current.style.removeProperty("--rte-richtext-fullscreen-height");if(K)m.current=i.current.scrollTop||0,setTimeout(()=>{i.current&&(i.current.scrollTop=0,i.current.scrollLeft=0)},0);else{const re=m.current||0;setTimeout(()=>{i.current&&(i.current.scrollTop=re)},0)}}return}if(x.closest('[data-type="text"]')){A.preventDefault(),A.stopPropagation();const W=window.getSelection();W&&W.removeAllRanges();return}if(a&&x.closest(".tag-node")){A.preventDefault(),A.stopPropagation();const V=window.getSelection();V&&V.removeAllRanges();return}const F=x.closest('[data-type="variable"]');if(F){if(h.current)return;if(F.dataset.variableRender!=="antd-textarea"){const W=!!x.closest(".variable-info-icon"),V=F.classList.contains("show-placeholder")||(F.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(S("v1 variable click",{key:F.dataset.key,isPlaceholder:V,isOnIcon:W,classes:F.className,innerText:F.innerText}),V&&!W){A.preventDefault();const R=()=>{try{F.focus();const K=window.getSelection();if(!K)return;const ae=document.createTreeWalker(F,NodeFilter.SHOW_TEXT),ne=ae.nextNode()?ae.currentNode:null,X=document.createRange();ne?(X.setStart(ne,0),X.collapse(!0)):(X.selectNodeContents(F),X.collapse(!0)),K.removeAllRanges(),K.addRange(X),M("after placeCaretLeft()")}catch{}};setTimeout(()=>{window.requestAnimationFrame(R),window.requestAnimationFrame(()=>M("post-raf (click)"))},0)}}setTimeout(()=>{const W=window.getSelection();W&&!W.isCollapsed||Vn(i)},10);return}const U=x.closest(".video-remove-btn");if(U){A.preventDefault(),A.stopPropagation();const V=U.closest('[data-type="video-url"], [data-type="video-upload"]')?.dataset.key;V&&E&&E(R=>{const K={...R};return delete K[V],K});return}const $=x.closest('[data-type="video-upload"]');if($){A.preventDefault(),A.stopPropagation();const W=$.dataset.key;W&&y?.current&&_&&(_.current=W,y.current.value="",y.current.click());return}const G=x.closest(".file-remove-btn");if(G){A.preventDefault(),A.stopPropagation();const W=G.closest('[data-type="upload"]'),V=W?.dataset.key,R=W?.dataset.batchKey;if(V)if(R){const K=r.find(ae=>ae.type==="upload"&&ae.key===R);if(K&&typeof K.maxCount=="number"&&typeof K.minCount=="number"){const ae=K.maxCount;c(ne=>{const X={...ne},re=[];for(let se=0;se<ae;se++){const he=`${R}-${se}`,_e=X[he];_e!=null&&he!==V&&re.push(_e)}for(let se=0;se<ae;se++)delete X[`${R}-${se}`];return re.forEach((se,he)=>{X[`${R}-${he}`]=se}),X})}else f(V)}else f(V);return}const L=x.closest('[data-type="upload"]');if(L){const W=L.dataset.key,V=L.dataset.batchKey,R=L.dataset.batchIndex;if(W){const K=l[W];if(K&&w&&(typeof K=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(K):K.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(K.name||""))){A.preventDefault(),A.stopPropagation();const re=typeof K=="string"?K:URL.createObjectURL(K);w(re);return}const ae=V||W,ne=r.find(X=>X.type==="upload"&&X.key===ae);if(o.current&&(ne?.accept?o.current.accept=ne.accept:ne?.acceptType==="image"?o.current.accept="image/*":ne?.acceptType==="file"?o.current.accept=".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json":o.current.accept=""),V){const X=r.find(re=>re.type==="upload"&&re.key===V);if(X&&typeof X.maxCount=="number"&&typeof X.minCount=="number"){const re=X.maxCount,se=l[W]!=null,he=R!=null?Number.parseInt(R,10):NaN;if(se){o.current&&(o.current.multiple=!1),g(null),p(null),T(W),u?.(),o.current?.click();return}let _e=0;for(let Ge=0;Ge<re;Ge++)l[`${V}-${Ge}`]!=null&&(_e+=1);_e<re&&o.current?(o.current.multiple=!0,g(V),p(Number.isFinite(he)?he:null),T(null),u?.(),o.current.click()):(o.current&&(o.current.multiple=!1),g(null),p(null),T(W),u?.(),o.current?.click())}else o.current&&(o.current.multiple=!1),g(null),p(null),T(W),u?.(),o.current?.click()}else o.current&&(o.current.multiple=!1),g(null),p(null),T(W),u?.(),o.current?.click()}return}},[t,r,s,e,i,o,u,l,f,h,a,n,m,g,p,T,c,E,y,_,w])},nc=({config:e,editorRef:t,setIsEmpty:n,setIsFormValid:r,setReportAnalyzeState:a,setMarkdownAnalyzeState:i,setMarkdownNameAnalyzeState:s,collapsed:o,measureExpandedContentHeight:u,effectiveConfig:l,files:c,multiVariableCounts:f,setMultiVariableCounts:g,savedCursorRef:p,videoState:T})=>I.useCallback(()=>{if(e.length===0){if(t.current){const b=!(t.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"");n(b),r(!b)}return}if(Vn(t),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]').forEach(b=>{const E=b.dataset.key;if(!E)return;b.innerText.replace(/[\u200B\n]/g,"").trim()||a(_=>{const w=_[E];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[E]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]').forEach(b=>{const E=b.dataset.key;if(!E)return;b.innerText.replace(/[\u200B\n]/g,"").trim()||i(_=>{const w=_[E];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[E]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown-name"]').forEach(b=>{const E=b.dataset.key;if(!E)return;b.innerText.replace(/[\u200B\n]/g,"").trim()||s(_=>{const w=_[E];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[E]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="richtext"][data-node-type="markdown-module"]').forEach(b=>{const E=b.dataset.key;if(!E)return;const y=b.innerText.replace(/[\u200B\n]/g,"").trim();b.getAttribute("data-is-placeholder")==="true"&&y&&!y.startsWith("请补充:")&&b.removeAttribute("data-is-placeholder"),y||(i(_=>{const w=_[E];return!w||w.status==="idle"?_:{..._,[E]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}),s(_=>{const w=_[E];return!w||w.status==="idle"?_:{..._,[E]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}))}),t.current&&t.current.querySelectorAll('[data-type="variable"]').forEach(b=>{if(b.dataset.variableRender==="antd-textarea")return;const E=b.innerText||"",y=!!b.querySelector("br")||E.includes(`
|
|
37
|
-
`),_=
|
|
38
|
-
`).trim();
|
|
39
|
-
`).trim();F&&(
|
|
40
|
-
`).trim().length>0&&
|
|
41
|
-
`).replace(/\n+$/g,""),
|
|
42
|
-
`);for(let V=0;V<L.length;V++)$.appendChild(document.createTextNode(L[V])),C&&V<L.length-1&&$.appendChild(document.createElement("br"));U.insertNode($),F.removeAllRanges();const W=document.createRange();W.selectNodeContents(k),W.collapse(!1),F.addRange(W)}i();return}}}}let M=!1,A="";const x=window.getSelection();if(x&&x.rangeCount>0){const v=x.anchorNode;if(v){let k=null;if(v.nodeType===Node.ELEMENT_NODE?k=v.closest('[data-type="variable"]'):v.nodeType===Node.TEXT_NODE&&v.parentElement&&(k=v.parentElement.closest('[data-type="variable"]')),k){const D=k.getAttribute("data-node-type")||"",P=k.dataset.key;if(D==="markdown"&&P&&/20\d{2}-\d{2}-\d{2}/.test(w))M=!0,A=P,c.current[P]=w,f(N=>({...N,[P]:{...N[P],status:"loading",error:void 0}}));else if(D==="report-url"&&P){document.execCommand("insertText",!1,w),i(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();o.current(P,N)},0);return}else if(D==="markdown-name"&&P){document.execCommand("insertText",!1,w),i(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();u.current(P,N)},0);return}}}}if(M&&A){setTimeout(()=>{s.current(A,w)},0);return}document.execCommand("insertText",!1,w),i(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(w)&&l.current.tableData?.status==="success"&&(f(k=>({...k,tableData:{status:"loading",modules:[],lastParsedText:w,error:void 0}})),setTimeout(()=>{c.current.tableData=w,s.current("tableData",w)},0))},0)},[t,e,a,i,s,l,c,n,h,o,g,p,T,f,r]);async function Ii(e){const t=e.split("/").pop()?.split("?")[0]||"file",n=decodeURIComponent(t),r=async a=>{const i=await a.blob();return new File([i],n,{type:i.type||"application/octet-stream"})};try{const a=`/api/image-proxy?url=${encodeURIComponent(e)}`,i=await fetch(a);if(i.ok)return r(i)}catch{}return null}const sc=({config:e,files:t,footerFiles:n,onFooterFilesClear:r,onSend:a,isProcessing:i,disabled:s,loading:o,isFormValid:u,editorRef:l,markdownAnalyzeState:c,markdownNameAnalyzeState:f,videoState:g})=>I.useCallback(()=>{if(i||s||o||!u||!l.current)return;if(e.length===0){const E=l.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!E&&n.length===0)return;if(n.length>0){const y=new FormData;y.append("fullPrompt",E),n.forEach(_=>{y.append("fileUrls",_)}),a(y,E),r()}else a(E,E);if(l.current){l.current.textContent="";const y=new Event("input",{bubbles:!0});l.current.dispatchEvent(y)}return}const p=l.current;let T="";const h={},m=E=>{if(!(E.nodeType===Node.ELEMENT_NODE&&E.style.display==="none")){if(E.nodeType===Node.TEXT_NODE)T+=(E.textContent||"").replace(/\u200B/g,"");else if(E.nodeType===Node.ELEMENT_NODE){const y=E,_=y.dataset.type,w=y.dataset.key;if(_==="variable"&&w){let S="";const M=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:x=>{const v=y.querySelector(".variable-info-icon");return v&&v.contains(x)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;M.nextNode();)S+=M.currentNode.textContent||"";const A=S.replace(/[\u200B\n]/g,"").trim();if(A){const x=y.dataset.multiKey;if(x){(!h[x]||!Array.isArray(h[x]))&&(h[x]=[]);const v=h[x];v.push(A),v.length>1&&(T+=" "),T+=A}else h[w]=A,T+=A;if(y.dataset.nodeType==="report-url")if(h.url===void 0)h.url=A;else{const v=h.url;Array.isArray(v)?v.push(A):h.url=[String(v),A]}if(y.dataset.nodeType==="markdown-name"){const v=`${w}__sourceText`;h[v]===void 0&&(h[v]=A)}if(y.dataset.nodeType==="markdown"){const v=y.dataset.sourceTextKey||`${w}__sourceText`;if(h[v]===void 0)h[v]=A;else{const D=h[v];Array.isArray(D)?D.push(A):h[v]=[String(D),A]}const k=`${w}__markdown`;h[k]===void 0&&(h[k]=[ki(A)])}}}else if((_==="select"||_==="searchable-select"||_==="cascader")&&w){const S=(y.getAttribute("data-value")||"").trim();S&&(h[w]=S,T+=S)}else if(_==="textarea"&&w){const M=(y.value||"").replace(/\u200B/g,"").trim();M&&(h[w]=M,T+=M)}else if(_==="richtext"&&w){const S=y,M=S.dataset.nodeType,A=(S.textContent||"").replace(/\u200B/g,"").trim();if(A)if(M==="report-module"||M==="markdown-module"){(!h[w]||!Array.isArray(h[w]))&&(h[w]=[]);const x=h[w];x.push(A),x.length>1&&(T+=" "),T+=A}else h[w]=A,T+=A}else if(_==="datepicker"&&w){const M=(y.getAttribute("data-value")||"").trim();if(M)if(M.includes(",")){const A=M.split(",");A.length===2?(h[w]=A,T+=`[${A[0]}, ${A[1]}]`):(h[w]=M,T+=M)}else h[w]=M,T+=M}else if(_==="number-input"&&w){const M=(y.value||"").trim();M&&(h[w]=M,T+=M)}else if(_==="upload"&&w){const S=y.dataset.batchKey;if(S){const M=e.find(A=>A.type==="upload"&&A.key===S);if(M&&typeof M.maxCount=="number"&&typeof M.minCount=="number"){const A=[];for(let x=0;x<M.maxCount;x++){const v=`${S}-${x}`,k=t[v];k&&A.push(k)}h[S]||(h[S]=A.length>0?A:null,A.length>0&&(T+=` [附带${A.length}个文件: ${A.map(x=>typeof x=="string"?x.split("/").pop()||"file":x.name).join(", ")}] `))}else if(h[w]=t[w]??null,t[w]){const A=t[w];T+=` [附带文件: ${typeof A=="string"?A.split("/").pop()||"file":A.name}] `}}else if(h[w]=t[w]??null,t[w]){const M=t[w];T+=` [附带文件: ${typeof M=="string"?M.split("/").pop()||"file":M.name}] `}}else if((_==="video-url"||_==="video-upload")&&w){const S=g?.[w];if(S?.status==="success"&&S.videoUrl){h[w]=S.videoUrl,S.file&&(h[`${w}__file`]=S.file);const M=S.fileName||"视频";T+=` [附带视频: ${M}] `}}else{if(y.classList.contains("tag-close-btn")||y.classList.contains("file-remove-btn")||y.classList.contains("video-remove-btn"))return;y.getAttribute("contenteditable")==="false"&&!_&&y.classList.contains("tag-node")?T+=y.innerText:y.childNodes.forEach(m)}}}};if(p.childNodes.forEach(m),T=T.trim(),!T)return;Object.keys(c).forEach(E=>{const y=c[E];if(!y||!y.modules||y.modules.length===0)return;const _=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${E}__markdown`]=_)}),Object.keys(f).forEach(E=>{const y=f[E];if(!y||!y.modules||y.modules.length===0)return;const _=y.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${E}__markdown`]=_)}),(async()=>{for(const y of Object.keys(h)){const _=h[y];if(typeof _=="string"&&_.startsWith("http")){if(e.find(S=>S.type==="upload"&&S.key===y)){const S=await Ii(_);S&&(h[y]=S)}}else if(Array.isArray(_)&&e.find(S=>S.type==="upload"&&S.key===y)){for(let S=0;S<_.length;S++)if(typeof _[S]=="string"&&_[S].startsWith("http")){const M=await Ii(_[S]);M&&(_[S]=M)}}}const E=new FormData;E.append("fullPrompt",T),Object.keys(h).forEach(y=>{const _=h[y];if(_!=null)if(_ instanceof File)E.append(y,_);else if(Array.isArray(_)){const w=e.some(x=>x.type==="multi-variable"&&x.key===y),S=e.some(x=>x.type==="report-url"&&x.key===y),M=y.endsWith("__markdown");w||S||M||y==="url"?_.forEach(x=>{x!=null&&x!==""&&E.append(y,String(x))}):_.forEach((x,v)=>{x!=null&&(x instanceof File?E.append(`${y}[${v}]`,x):typeof x=="string"?E.append(`${y}[${v}]`,x):E.append(`${y}[${v}]`,String(x)))})}else typeof _=="string"?E.append(y,_):E.append(y,String(_))}),n.length>0&&n.forEach(y=>{E.append("fileUrls",y)}),a(E,T),n.length>0&&r()})()},[e,t,n,r,a,i,s,o,u,l,c,f,g]);function Li(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Mr(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Li(t[r])&&Li(e[r])&&Object.keys(t[r]).length>0&&Mr(e[r],t[r])})}const Oi={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wt(){const e=typeof document<"u"?document:{};return Mr(e,Oi),e}const oc={document:Oi,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function $e(){const e=typeof window<"u"?window:{};return Mr(e,oc),e}function uc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function lc(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Di(e,t=0){return setTimeout(e,t)}function Gn(){return Date.now()}function cc(e){const t=$e();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function dc(e,t="x"){const n=$e();let r,a,i;const s=cc(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(o=>o.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function Yn(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function fc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function We(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!fc(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,o=i.length;s<o;s+=1){const u=i[s],l=Object.getOwnPropertyDescriptor(a,u);l!==void 0&&l.enumerable&&(Yn(t[u])&&Yn(a[u])?a[u].__swiper__?t[u]=a[u]:We(t[u],a[u]):!Yn(t[u])&&Yn(a[u])?(t[u]={},a[u].__swiper__?t[u]=a[u]:We(t[u],a[u])):t[u]=a[u])}}}return t}function Ut(e,t,n){e.style.setProperty(t,n)}function Pi({swiper:e,targetPosition:t,side:n}){const r=$e(),a=-e.translate;let i=null,s;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=t>a?"next":"prev",l=(f,g)=>u==="next"&&f>=g||u==="prev"&&f<=g,c=()=>{s=new Date().getTime(),i===null&&(i=s);const f=Math.max(Math.min((s-i)/o,1),0),g=.5-Math.cos(f*Math.PI)/2;let p=a+g*(t-a);if(l(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),l(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function it(e,t=""){const n=$e(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(a=>a.matches(t)):r}function pc(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function hc(e,t){const n=$e();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=pc(e,t))),r}function Wn(e){try{console.warn(e);return}catch{}}function jn(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:uc(t)),n}function mc(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function gc(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function bt(e,t){return $e().getComputedStyle(e,null).getPropertyValue(t)}function Xn(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Mi(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Br(e,t,n){const r=$e();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Me(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function rn(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}let Rr;function bc(){const e=$e(),t=wt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Bi(){return Rr||(Rr=bc()),Rr}let Fr;function Ec({userAgent:e}={}){const t=Bi(),n=$e(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,o=n.screen.height,u=a.match(/(Android);?[\s\/]+([\d.]+)?/);let l=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g=r==="Win32";let p=r==="MacIntel";const T=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!l&&p&&t.touch&&T.indexOf(`${s}x${o}`)>=0&&(l=a.match(/(Version)\/([\d.]+)/),l||(l=[0,1,"13_0_0"]),p=!1),u&&!g&&(i.os="android",i.android=!0),(l||f||c)&&(i.os="ios",i.ios=!0),i}function Ri(e={}){return Fr||(Fr=Ec(e)),Fr}let Hr;function yc(){const e=$e(),t=Ri();let n=!1;function r(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(r()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[u,l]=o.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));n=u<16||u===16&&l<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),i=r(),s=i||a&&t.ios;return{isSafari:n||i,needPerspectiveFix:n,need3dFix:s,isWebView:a}}function Fi(){return Hr||(Hr=yc()),Hr}function Tc({swiper:e,on:t,emit:n}){const r=$e();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(c=>{i=r.requestAnimationFrame(()=>{const{width:f,height:g}=e;let p=f,T=g;c.forEach(({contentBoxSize:h,contentRect:m,target:b})=>{b&&b!==e.el||(p=m?m.width:(h[0]||h).inlineSize,T=m?m.height:(h[0]||h).blockSize)}),(p!==f||T!==g)&&s()})}),a.observe(e.el))},u=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},l=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){o();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",l)}),t("destroy",()=>{u(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",l)})}function xc({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=$e(),s=(l,c={})=>{const f=i.MutationObserver||i.WebkitMutationObserver,g=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const T=function(){r("observerUpdate",p[0])};i.requestAnimationFrame?i.requestAnimationFrame(T):i.setTimeout(T,0)});g.observe(l,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),a.push(g)},o=()=>{if(e.params.observer){if(e.params.observeParents){const l=Mi(e.hostEl);for(let c=0;c<l.length;c+=1)s(l[c])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},u=()=>{a.forEach(l=>{l.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",o),n("destroy",u)}var Cc={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(o=>{o.apply(a,r)})}),t}};function Sc(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(bt(r,"padding-left")||0,10)-parseInt(bt(r,"padding-right")||0,10),n=n-parseInt(bt(r,"padding-top")||0,10)-parseInt(bt(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Ac(){const e=this;function t(v,k){return parseFloat(v.getPropertyValue(e.getDirectionLabel(k))||0)}const n=e.params,{wrapperEl:r,slidesEl:a,rtlTranslate:i,wrongRTL:s}=e,o=e.virtual&&n.virtual.enabled,u=o?e.virtual.slides.length:e.slides.length,l=it(a,`.${e.params.slideClass}, swiper-slide`),c=o?e.virtual.slides.length:l.length;let f=[];const g=[],p=[];let T=n.slidesOffsetBefore;typeof T=="function"&&(T=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h=="function"&&(h=n.slidesOffsetAfter.call(e));const m=e.snapGrid.length,b=e.slidesGrid.length,E=e.size-T-h;let y=n.spaceBetween,_=-T,w=0,S=0;if(typeof E>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*E:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-T-h,l.forEach(v=>{i?v.style.marginLeft="":v.style.marginRight="",v.style.marginBottom="",v.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Ut(r,"--swiper-centered-offset-before",""),Ut(r,"--swiper-centered-offset-after","")),n.cssMode&&(Ut(r,"--swiper-slides-offset-before",`${T}px`),Ut(r,"--swiper-slides-offset-after",`${h}px`));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let A;const x=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(v=>typeof n.breakpoints[v].slidesPerView<"u").length>0;for(let v=0;v<c;v+=1){A=0;const k=l[v];if(!(k&&(M&&e.grid.updateSlide(v,k,l),bt(k,"display")==="none"))){if(o&&n.slidesPerView==="auto")n.virtual.slidesPerViewAutoSlideSize&&(A=n.virtual.slidesPerViewAutoSlideSize),A&&k&&(n.roundLengths&&(A=Math.floor(A)),k.style[e.getDirectionLabel("width")]=`${A}px`);else if(n.slidesPerView==="auto"){x&&(k.style[e.getDirectionLabel("width")]="");const D=getComputedStyle(k),P=k.style.transform,N=k.style.webkitTransform;if(P&&(k.style.transform="none"),N&&(k.style.webkitTransform="none"),n.roundLengths)A=e.isHorizontal()?Br(k,"width"):Br(k,"height");else{const C=t(D,"width"),F=t(D,"padding-left"),U=t(D,"padding-right"),$=t(D,"margin-left"),G=t(D,"margin-right"),L=D.getPropertyValue("box-sizing");if(L&&L==="border-box")A=C+$+G;else{const{clientWidth:W,offsetWidth:V}=k;A=C+F+U+$+G+(V-W)}}P&&(k.style.transform=P),N&&(k.style.webkitTransform=N),n.roundLengths&&(A=Math.floor(A))}else A=(E-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(A=Math.floor(A)),k&&(k.style[e.getDirectionLabel("width")]=`${A}px`);k&&(k.swiperSlideSize=A),p.push(A),n.centeredSlides?(_=_+A/2+w/2+y,w===0&&v!==0&&(_=_-E/2-y),v===0&&(_=_-E/2-y),Math.abs(_)<1/1e3&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup===0&&f.push(_),g.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&f.push(_),g.push(_),_=_+A+y),e.virtualSize+=A+y,w=A,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,E)+h,i&&s&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),M&&e.grid.updateWrapperSize(A,f),!n.centeredSlides){const v=n.slidesPerView!=="auto"&&n.slidesPerView%1!==0,k=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView==="auto"||v);let D=f.length;if(k){let N;if(n.slidesPerView==="auto"){N=1;let C=0;for(let F=p.length-1;F>=0&&(C+=p[F]+(F<p.length-1?y:0),C<=E);F-=1)N=p.length-F}else N=Math.floor(n.slidesPerView);D=Math.max(c-N,0)}const P=[];for(let N=0;N<f.length;N+=1){let C=f[N];n.roundLengths&&(C=Math.floor(C)),k?N<=D&&P.push(C):f[N]<=e.virtualSize-E&&P.push(C)}f=P,Math.floor(e.virtualSize-E)-Math.floor(f[f.length-1])>1&&(k||f.push(e.virtualSize-E))}if(o&&n.loop){const v=p[0]+y;if(n.slidesPerGroup>1){const k=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),D=v*n.slidesPerGroup;for(let P=0;P<k;P+=1)f.push(f[f.length-1]+D)}for(let k=0;k<e.virtual.slidesBefore+e.virtual.slidesAfter;k+=1)n.slidesPerGroup===1&&f.push(f[f.length-1]+v),g.push(g[g.length-1]+v),e.virtualSize+=v}if(f.length===0&&(f=[0]),y!==0){const v=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");l.filter((k,D)=>!n.cssMode||n.loop?!0:D!==l.length-1).forEach(k=>{k.style[v]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let v=0;p.forEach(D=>{v+=D+(y||0)}),v-=y;const k=v>E?v-E:0;f=f.map(D=>D<=0?-T:D>k?k+h:D)}if(n.centerInsufficientSlides){let v=0;p.forEach(D=>{v+=D+(y||0)}),v-=y;const k=(T||0)+(h||0);if(v+k<E){const D=(E-v-k)/2;f.forEach((P,N)=>{f[N]=P-D}),g.forEach((P,N)=>{g[N]=P+D})}}if(Object.assign(e,{slides:l,snapGrid:f,slidesGrid:g,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ut(r,"--swiper-centered-offset-before",`${-f[0]}px`),Ut(r,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const v=-e.snapGrid[0],k=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(D=>D+v),e.slidesGrid=e.slidesGrid.map(D=>D+k)}if(c!==u&&e.emit("slidesLengthChange"),f.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!o&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const v=`${n.containerModifierClass}backface-hidden`,k=e.el.classList.contains(v);c<=n.maxBackfaceHiddenSlides?k||e.el.classList.add(v):k&&e.el.classList.remove(v)}}function vc(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=o=>r?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{n.push(o)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const o=t.activeIndex+i;if(o>t.slides.length&&!r)break;n.push(s(o))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const o=n[i].offsetHeight;a=o>a?o:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function _c(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const Hi=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function wc(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let u=0;u<r.length;u+=1){const l=r[u];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(s+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),g=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),p=-(s-c),T=p+t.slidesSizesGrid[u],h=p>=0&&p<=t.size-t.slidesSizesGrid[u],m=p>=0&&p<t.size-1||T>1&&T<=t.size||p<=0&&T>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(u)),Hi(l,m,n.slideVisibleClass),Hi(l,h,n.slideFullyVisibleClass),l.progress=a?-f:f,l.originalProgress=a?-g:g}}function kc(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:o}=t;const u=i,l=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=c||a<=0,s=f||a>=1,c&&(a=0),f&&(a=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),g=t.slidesGrid[c],p=t.slidesGrid[f],T=t.slidesGrid[t.slidesGrid.length-1],h=Math.abs(e);h>=g?o=(h-g)/T:o=(h+T-p)/T,o>1&&(o-=1)}Object.assign(t,{progress:a,progressLoop:o,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!u&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(u&&!i||l&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}const $r=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Nc(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,o=f=>it(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let u,l,c;if(i)if(n.loop){let f=a-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),u=o(`[data-swiper-slide-index="${f}"]`)}else u=o(`[data-swiper-slide-index="${a}"]`);else s?(u=t.find(f=>f.column===a),c=t.find(f=>f.column===a+1),l=t.find(f=>f.column===a-1)):u=t[a];u&&(s||(c=gc(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c&&(c=t[0]),l=mc(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!l===0&&(l=t[t.length-1]))),t.forEach(f=>{$r(f,f===u,n.slideActiveClass),$r(f,f===c,n.slideNextClass),$r(f,f===l,n.slidePrevClass)}),e.emitSlidesClasses()}const Kn=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let a=r.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(r.shadowRoot?a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(a=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&!a.lazyPreloaderManaged&&a.remove())})),a&&!a.lazyPreloaderManaged&&a.remove()}},Ur=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},qr=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=a,o=[s-t];o.push(...Array.from({length:t}).map((u,l)=>s+r+l)),e.slides.forEach((u,l)=>{o.includes(u.column)&&Ur(e,l)});return}const i=a+r-1;if(e.params.rewind||e.params.loop)for(let s=a-t;s<=i+t;s+=1){const o=(s%n+n)%n;(o<a||o>i)&&Ur(e,o)}else for(let s=Math.max(a-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&(s>i||s<a)&&Ur(e,s)};function Ic(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function Lc(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:o}=t;let u=e,l;const c=p=>{let T=p-t.virtual.slidesBefore;return T<0&&(T=t.virtual.slides.length+T),T>=t.virtual.slides.length&&(T-=t.virtual.slides.length),T};if(typeof u>"u"&&(u=Ic(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{const p=Math.min(a.slidesPerGroupSkip,u);l=p+Math.floor((u-p)/a.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),u===i&&!t.params.loop){l!==o&&(t.snapIndex=l,t.emit("snapIndexChange"));return}if(u===i&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(u);return}const f=t.grid&&a.grid&&a.grid.rows>1;let g;if(t.virtual&&a.virtual.enabled)a.loop?g=c(u):g=u;else if(f){const p=t.slides.find(h=>h.column===u);let T=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(T)&&(T=Math.max(t.slides.indexOf(p),0)),g=Math.floor(T/a.grid.rows)}else if(t.slides[u]){const p=t.slides[u].getAttribute("data-swiper-slide-index");p?g=parseInt(p,10):g=u}else g=u;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:s,realIndex:g,previousIndex:i,activeIndex:u}),t.initialized&&qr(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==g&&t.emit("realIndexChange"),t.emit("slideChange"))}function Oc(e,t){const n=this,r=n.params;let a=e.closest(`.${r.slideClass}, swiper-slide`);!a&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!a&&o.matches&&o.matches(`.${r.slideClass}, swiper-slide`)&&(a=o)});let i=!1,s;if(a){for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===a){i=!0,s=o;break}}if(a&&i)n.clickedSlide=a,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=s;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var Dc={updateSize:Sc,updateSlides:Ac,updateAutoHeight:vc,updateSlidesOffset:_c,updateSlidesProgress:wc,updateProgress:kc,updateSlidesClasses:Nc,updateActiveIndex:Lc,updateClickedSlide:Oc};function Pc(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=dc(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function Mc(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let o=0,u=0;const l=0;n.isHorizontal()?o=r?-e:e:u=e,a.roundLengths&&(o=Math.floor(o),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:u,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-u:a.virtualTranslate||(n.isHorizontal()?o-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${o}px, ${u}px, ${l}px)`);let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function Bc(){return-this.snapGrid[0]}function Rc(){return-this.snapGrid[this.snapGrid.length-1]}function Fc(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:o}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const u=i.minTranslate(),l=i.maxTranslate();let c;if(r&&e>u?c=u:r&&e<l?c=l:c=e,i.updateProgress(c),s.cssMode){const f=i.isHorizontal();if(t===0)o[f?"scrollLeft":"scrollTop"]=-c;else{if(!i.support.smoothScroll)return Pi({swiper:i,targetPosition:-c,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(g){!i||i.destroyed||g.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var Hc={getTranslate:Pc,setTranslate:Mc,minTranslate:Bc,maxTranslate:Rc,translateTo:Fc};function $c(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function $i({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&s==="reset"?e.emit(`slideResetTransition${r}`):t&&a!==i&&(e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Uc(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),$i({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function qc(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),$i({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var zc={setTransition:$c,transitionStart:Uc,transitionEnd:qc};function Vc(e=0,t,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:o,snapGrid:u,slidesGrid:l,previousIndex:c,activeIndex:f,rtlTranslate:g,wrapperEl:p,enabled:T}=i;if(!T&&!r&&!a||i.destroyed||i.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=i.params.speed);const h=Math.min(i.params.slidesPerGroupSkip,s);let m=h+Math.floor((s-h)/i.params.slidesPerGroup);m>=u.length&&(m=u.length-1);const b=-u[m];if(o.normalizeSlideIndex)for(let M=0;M<l.length;M+=1){const A=-Math.floor(b*100),x=Math.floor(l[M]*100),v=Math.floor(l[M+1]*100);typeof l[M+1]<"u"?A>=x&&A<v-(v-x)/2?s=M:A>=x&&A<v&&(s=M+1):A>=x&&(s=M)}if(i.initialized&&s!==f&&(!i.allowSlideNext&&(g?b>i.translate&&b>i.minTranslate():b<i.translate&&b<i.minTranslate())||!i.allowSlidePrev&&b>i.translate&&b>i.maxTranslate()&&(f||0)!==s))return!1;s!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(b);let E;s>f?E="next":s<f?E="prev":E="reset";const y=i.virtual&&i.params.virtual.enabled;if(!(y&&a)&&(g&&-b===i.translate||!g&&b===i.translate))return i.updateActiveIndex(s),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),o.effect!=="slide"&&i.setTranslate(b),E!=="reset"&&(i.transitionStart(n,E),i.transitionEnd(n,E)),!1;if(o.cssMode){const M=i.isHorizontal(),A=g?b:-b;if(t===0)y&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),y&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[M?"scrollLeft":"scrollTop"]=A})):p[M?"scrollLeft":"scrollTop"]=A,y&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return Pi({swiper:i,targetPosition:A,side:M?"left":"top"}),!0;p.scrollTo({[M?"left":"top"]:A,behavior:"smooth"})}return!0}const S=Fi().isSafari;return y&&!a&&S&&i.isElement&&i.virtual.update(!1,!1,s),i.setTransition(t),i.setTranslate(b),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,E),t===0?i.transitionEnd(n,E):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,E))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function Gc(e=0,t,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const i=a.grid&&a.params.grid&&a.params.grid.rows>1;let s=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)s=s+a.virtual.slidesBefore;else{let o;if(i){const h=s*a.params.grid.rows;o=a.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===h).column}else o=a.getSlideIndexByData(s);const u=i?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:l,slidesOffsetBefore:c,slidesOffsetAfter:f}=a.params,g=l||!!c||!!f;let p=a.params.slidesPerView;p==="auto"?p=a.slidesPerViewDynamic():(p=Math.ceil(parseFloat(a.params.slidesPerView,10)),g&&p%2===0&&(p=p+1));let T=u-o<p;if(g&&(T=T||o<Math.ceil(p/2)),r&&g&&a.params.slidesPerView!=="auto"&&!i&&(T=!1),T){const h=g?o<a.activeIndex?"prev":"next":o-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?o+1:o-u+1,slideRealIndex:h==="next"?a.realIndex:void 0})}if(i){const h=s*a.params.grid.rows;s=a.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===h).column}else s=a.getSlideIndexByData(s)}return requestAnimationFrame(()=>{a.slideTo(s,t,n,r)}),a}function Yc(e,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let o=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const u=r.activeIndex<i.slidesPerGroupSkip?1:o,l=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!l&&i.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+u,e,t,n)}),!0}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+u,e,t,n)}function Wc(e,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:o,enabled:u,animating:l}=r;if(!u||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const c=r.virtual&&a.virtual.enabled;if(a.loop){if(l&&!c&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=o?r.translate:-r.translate;function g(E){return E<0?-Math.floor(Math.abs(E)):Math.floor(E)}const p=g(f),T=i.map(E=>g(E)),h=a.freeMode&&a.freeMode.enabled;let m=i[T.indexOf(p)-1];if(typeof m>"u"&&(a.cssMode||h)){let E;i.forEach((y,_)=>{p>=y&&(E=_)}),typeof E<"u"&&(m=h?i[E]:i[E>0?E-1:E])}let b=0;if(typeof m<"u"&&(b=s.indexOf(m),b<0&&(b=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),a.rewind&&r.isBeginning){const E=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(E,e,t,n)}else if(a.loop&&r.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(b,e,t,n)}),!0;return r.slideTo(b,e,t,n)}function jc(e,t=!0,n){const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Xc(e,t=!0,n,r=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),o=s+Math.floor((i-s)/a.params.slidesPerGroup),u=a.rtlTranslate?a.translate:-a.translate;if(u>=a.snapGrid[o]){const l=a.snapGrid[o],c=a.snapGrid[o+1];u-l>(c-l)*r&&(i+=a.params.slidesPerGroup)}else{const l=a.snapGrid[o-1],c=a.snapGrid[o];u-l<=(c-l)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function Kc(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):a>(o?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),a=e.getSlideIndex(it(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Di(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var Qc={slideTo:Vc,slideToLoop:Gc,slideNext:Yc,slidePrev:Wc,slideReset:jc,slideToClosest:Xc,slideToClickedSlide:Kc};function Jc(e,t){const n=this,{params:r,slidesEl:a}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const i=()=>{it(a,`.${r.slideClass}, swiper-slide`).forEach((T,h)=>{T.setAttribute("data-swiper-slide-index",h)})},s=()=>{const p=it(a,`.${r.slideBlankClass}`);p.forEach(T=>{T.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},o=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||o)&&s();const u=r.slidesPerGroup*(o?r.grid.rows:1),l=n.slides.length%u!==0,c=o&&n.slides.length%r.grid.rows!==0,f=p=>{for(let T=0;T<p;T+=1){const h=n.isElement?jn("swiper-slide",[r.slideBlankClass]):jn("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(h)}};if(l){if(r.loopAddBlankSlides){const p=u-n.slides.length%u;f(p),n.recalcSlides(),n.updateSlides()}else Wn("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(c){if(r.loopAddBlankSlides){const p=r.grid.rows-n.slides.length%r.grid.rows;f(p),n.recalcSlides(),n.updateSlides()}else Wn("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();const g=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:g?void 0:"next",initial:t})}function Zc({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,initial:i,byController:s,byMousewheel:o}={}){const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:f,slidesEl:g,params:p}=u,{centeredSlides:T,slidesOffsetBefore:h,slidesOffsetAfter:m,initialSlide:b}=p,E=T||!!h||!!m;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&p.virtual.enabled){t&&(!E&&u.snapIndex===0?u.slideTo(u.virtual.slides.length,0,!1,!0):E&&u.snapIndex<p.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0)),u.allowSlidePrev=c,u.allowSlideNext=f,u.emit("loopFix");return}let y=p.slidesPerView;y==="auto"?y=u.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),E&&y%2===0&&(y=y+1));const _=p.slidesPerGroupAuto?y:p.slidesPerGroup;let w=E?Math.max(_,Math.ceil(y/2)):_;w%_!==0&&(w+=_-w%_),w+=p.loopAdditionalSlides,u.loopedSlides=w;const S=u.grid&&p.grid&&p.grid.rows>1;l.length<y+w||u.params.effect==="cards"&&l.length<y+w*2?Wn("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&p.grid.fill==="row"&&Wn("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const M=[],A=[],x=S?Math.ceil(l.length/p.grid.rows):l.length,v=i&&x-b<y&&!E;let k=v?b:u.activeIndex;typeof a>"u"?a=u.getSlideIndex(l.find($=>$.classList.contains(p.slideActiveClass))):k=a;const D=n==="next"||!n,P=n==="prev"||!n;let N=0,C=0;const U=(S?l[a].column:a)+(E&&typeof r>"u"?-y/2+.5:0);if(U<w){N=Math.max(w-U,_);for(let $=0;$<w-U;$+=1){const G=$-Math.floor($/x)*x;if(S){const L=x-G-1;for(let W=l.length-1;W>=0;W-=1)l[W].column===L&&M.push(W)}else M.push(x-G-1)}}else if(U+y>x-w){C=Math.max(U-(x-w*2),_),v&&(C=Math.max(C,y-x+b+1));for(let $=0;$<C;$+=1){const G=$-Math.floor($/x)*x;S?l.forEach((L,W)=>{L.column===G&&A.push(W)}):A.push(G)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),u.params.effect==="cards"&&l.length<y+w*2&&(A.includes(a)&&A.splice(A.indexOf(a),1),M.includes(a)&&M.splice(M.indexOf(a),1)),P&&M.forEach($=>{l[$].swiperLoopMoveDOM=!0,g.prepend(l[$]),l[$].swiperLoopMoveDOM=!1}),D&&A.forEach($=>{l[$].swiperLoopMoveDOM=!0,g.append(l[$]),l[$].swiperLoopMoveDOM=!1}),u.recalcSlides(),p.slidesPerView==="auto"?u.updateSlides():S&&(M.length>0&&P||A.length>0&&D)&&u.slides.forEach(($,G)=>{u.grid.updateSlide(G,$,u.slides)}),p.watchSlidesProgress&&u.updateSlidesOffset(),t){if(M.length>0&&P){if(typeof e>"u"){const $=u.slidesGrid[k],L=u.slidesGrid[k+N]-$;o?u.setTranslate(u.translate-L):(u.slideTo(k+Math.ceil(N),0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-L,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-L))}else if(r){const $=S?M.length/p.grid.rows:M.length;u.slideTo(u.activeIndex+$,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(A.length>0&&D)if(typeof e>"u"){const $=u.slidesGrid[k],L=u.slidesGrid[k-C]-$;o?u.setTranslate(u.translate-L):(u.slideTo(k-C,0,!1,!0),r&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-L,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-L))}else{const $=S?A.length/p.grid.rows:A.length;u.slideTo(u.activeIndex-$,0,!1,!0)}}if(u.allowSlidePrev=c,u.allowSlideNext=f,u.controller&&u.controller.control&&!s){const $={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(G=>{!G.destroyed&&G.params.loop&&G.loopFix({...$,slideTo:G.params.slidesPerView===p.slidesPerView?t:!1})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...$,slideTo:u.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}u.emit("loopFix")}function ed(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var td={loopCreate:Jc,loopFix:Zc,loopDestroy:ed};function nd(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function rd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var ad={setGrabCursor:nd,unsetGrabCursor:rd};function id(e,t=this){function n(r){if(!r||r===wt()||r===$e())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function Ui(e,t,n){const r=$e(),{params:a}=e,i=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return i&&(n<=s||n>=r.innerWidth-s)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function sd(e){const t=this,n=wt();let r=e;r.originalEvent&&(r=r.originalEvent);const a=t.touchEventsData;if(r.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==r.pointerId)return;a.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(a.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){Ui(t,r,r.targetTouches[0].pageX);return}const{params:i,touches:s,enabled:o}=t;if(!o||!i.simulateTouch&&r.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let u=r.target;if(i.touchEventsTarget==="wrapper"&&!hc(u,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||a.isTouched&&a.isMoved)return;const l=!!i.noSwipingClass&&i.noSwipingClass!=="",c=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&c&&(u=c[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,g=!!(r.target&&r.target.shadowRoot);if(i.noSwiping&&(g?id(f,u):u.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const p=s.currentX,T=s.currentY;if(!Ui(t,r,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=p,s.startY=T,a.touchStartTime=Gn(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let h=!0;u.matches(a.focusableElements)&&(h=!1,u.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==u&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!u.matches(a.focusableElements))&&n.activeElement.blur();const m=h&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||m)&&!u.isContentEditable&&r.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function od(e){const t=wt(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:o}=n;if(!o||!a.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),u.type==="pointermove"&&(r.touchId!==null||u.pointerId!==r.pointerId))return;let l;if(u.type==="touchmove"){if(l=[...u.changedTouches].find(w=>w.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=u;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",u);return}const c=l.pageX,f=l.pageY;if(u.preventedByNestedSwiper){i.startX=c,i.startY=f;return}if(!n.allowTouchMove){u.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f}),r.touchStartTime=Gn());return}if(a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(f<i.startY&&n.translate<=n.maxTranslate()||f>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(s&&(c>i.startX&&-n.translate<=n.maxTranslate()||c<i.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(c<i.startX&&n.translate<=n.maxTranslate()||c>i.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u.target&&u.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",u),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=c,i.currentY=f;const g=i.currentX-i.startX,p=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(g**2+p**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let w;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:g*g+p*p>=25&&(w=Math.atan2(Math.abs(p),Math.abs(g))*180/Math.PI,r.isScrolling=n.isHorizontal()?w>a.touchAngle:90-w>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",u),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||u.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&u.cancelable&&u.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&u.stopPropagation();let T=n.isHorizontal()?g:p,h=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(T=Math.abs(T)*(s?1:-1),h=Math.abs(h)*(s?1:-1)),i.diff=T,T*=a.touchRatio,s&&(T=-T,h=-h);const m=n.touchesDirection;n.swipeDirection=T>0?"prev":"next",n.touchesDirection=h>0?"prev":"next";const b=n.params.loop&&!a.cssMode,E=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(b&&E&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(w)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}if(new Date().getTime(),a._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&m!==n.touchesDirection&&b&&E&&Math.abs(T)>=1){Object.assign(i,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",u),r.isMoved=!0,r.currentTranslate=T+r.startTranslate;let y=!0,_=a.resistanceRatio;if(a.touchReleaseOnEdges&&(_=0),T>0?(b&&E&&r.allowThresholdMove&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+T)**_))):T<0&&(b&&E&&r.allowThresholdMove&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-T)**_))),y&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(T)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function ud(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let a;if(r.type==="touchend"||r.type==="touchcancel"){if(a=[...r.changedTouches].find(w=>w.identifier===n.touchId),!a||a.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;a=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:s,touches:o,rtlTranslate:u,slidesGrid:l,enabled:c}=t;if(!c||!s.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=Gn(),g=f-n.touchStartTime;if(t.allowClick){const w=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(w&&w[0]||r.target,w),t.emit("tap click",r),g<300&&f-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Gn(),Di(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=u?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const T=p>=-t.maxTranslate()&&!t.params.loop;let h=0,m=t.slidesSizesGrid[0];for(let w=0;w<l.length;w+=w<s.slidesPerGroupSkip?1:s.slidesPerGroup){const S=w<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof l[w+S]<"u"?(T||p>=l[w]&&p<l[w+S])&&(h=w,m=l[w+S]-l[w]):(T||p>=l[w])&&(h=w,m=l[l.length-1]-l[l.length-2])}let b=null,E=null;s.rewind&&(t.isBeginning?E=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(p-l[h])/m,_=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(g>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(y>1-s.longSwipesRatio?t.slideTo(h+_):E!==null&&y<0&&Math.abs(y)>s.longSwipesRatio?t.slideTo(E):t.slideTo(h))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:h+_),t.swipeDirection==="prev"&&t.slideTo(E!==null?E:h))}}function qi(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function ld(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function cd(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function dd(e){const t=this;Kn(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function fd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const zi=(e,t)=>{const n=wt(),{params:r,el:a,wrapperEl:i,device:s}=e,o=!!r.nested,u=t==="on"?"addEventListener":"removeEventListener",l=t;!a||typeof a=="string"||(n[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),a[u]("touchstart",e.onTouchStart,{passive:!1}),a[u]("pointerdown",e.onTouchStart,{passive:!1}),n[u]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[u]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[u]("touchend",e.onTouchEnd,{passive:!0}),n[u]("pointerup",e.onTouchEnd,{passive:!0}),n[u]("pointercancel",e.onTouchEnd,{passive:!0}),n[u]("touchcancel",e.onTouchEnd,{passive:!0}),n[u]("pointerout",e.onTouchEnd,{passive:!0}),n[u]("pointerleave",e.onTouchEnd,{passive:!0}),n[u]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[u]("click",e.onClick,!0),r.cssMode&&i[u]("scroll",e.onScroll),r.updateOnWindowResize?e[l](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",qi,!0):e[l]("observerUpdate",qi,!0),a[u]("load",e.onLoad,{capture:!0}))};function pd(){const e=this,{params:t}=e;e.onTouchStart=sd.bind(e),e.onTouchMove=od.bind(e),e.onTouchEnd=ud.bind(e),e.onDocumentTouchStart=fd.bind(e),t.cssMode&&(e.onScroll=cd.bind(e)),e.onClick=ld.bind(e),e.onLoad=dd.bind(e),zi(e,"on")}function hd(){zi(this,"off")}var md={attachEvents:pd,detachEvents:hd};const Vi=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function gd(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=wt(),o=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",u=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:s.querySelector(r.breakpointsBase),l=e.getBreakpoint(i,o,u);if(!l||e.currentBreakpoint===l)return;const f=(l in i?i[l]:void 0)||e.originalParams,g=Vi(e,r),p=Vi(e,f),T=e.params.grabCursor,h=f.grabCursor,m=r.enabled;g&&!p?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!g&&p&&(a.classList.add(`${r.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),T&&!h?e.unsetGrabCursor():!T&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(S=>{if(typeof f[S]>"u")return;const M=r[S]&&r[S].enabled,A=f[S]&&f[S].enabled;M&&!A&&e[S].disable(),!M&&A&&e[S].enable()});const b=f.direction&&f.direction!==r.direction,E=r.loop&&(f.slidesPerView!==r.slidesPerView||b),y=r.loop;b&&n&&e.changeDirection(),We(e.params,f);const _=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!_?e.disable():!m&&_&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",f),n&&(E?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",f)}function bd(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=$e(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const u=parseFloat(o.substr(1));return{value:i*u,point:o}}return{value:o,point:o}});s.sort((o,u)=>parseInt(o.value,10)-parseInt(u.value,10));for(let o=0;o<s.length;o+=1){const{point:u,value:l}=s[o];t==="window"?a.matchMedia(`(min-width: ${l}px)`).matches&&(r=u):l<=n.clientWidth&&(r=u)}return r||"max"}var Ed={setBreakpoint:gd,getBreakpoint:bd};function yd(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function Td(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=yd(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function xd(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var Cd={addClasses:Td,removeClasses:xd};function Sd(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Ad={checkOverflow:Sd},zr={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function vd(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){We(t,r);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in i)){We(t,r);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),We(t,r)}}const Vr={eventsEmitter:Cc,update:Dc,translate:Hc,transition:zc,slide:Qc,loop:td,grabCursor:ad,events:md,breakpoints:Ed,checkOverflow:Ad,classes:Cd},Gr={};let Yr=class mt{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=We({},r),n&&!r.el&&(r.el=n);const a=wt();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const u=[];return a.querySelectorAll(r.el).forEach(l=>{const c=We({},r,{el:l});u.push(new mt(c))}),u}const i=this;i.__swiper__=!0,i.support=Bi(),i.device=Ri({userAgent:r.userAgent}),i.browser=Fi(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(u=>{u({params:r,swiper:i,extendParams:vd(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=We({},zr,s);return i.params=We({},o,Gr,r),i.originalParams=We({},i.params),i.passedParams=We({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(u=>{i.on(u,i.params.on[u])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=it(n,`.${r.slideClass}, swiper-slide`),i=Xn(a[0]);return Xn(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=it(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:o,size:u,activeIndex:l}=r;let c=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let f=i[l]?Math.ceil(i[l].swiperSlideSize):0,g;for(let p=l+1;p<i.length;p+=1)i[p]&&!g&&(f+=Math.ceil(i[p].swiperSlideSize),c+=1,f>u&&(g=!0));for(let p=l-1;p>=0;p-=1)i[p]&&!g&&(f+=i[p].swiperSlideSize,c+=1,f>u&&(g=!0))}else if(t==="current")for(let f=l+1;f<i.length;f+=1)(n?s[f]+o[f]-s[l]<u:s[f]-s[l]<u)&&(c+=1);else for(let f=l-1;f>=0;f-=1)s[l]-s[f]<u&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Kn(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):it(r,a())[0];return!s&&n.params.createElements&&(s=jn("div",n.params.wrapperClass),r.append(s),it(r,`.${n.params.slideClass}`).forEach(o=>{s.append(o)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||bt(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||bt(r,"direction")==="rtl"),wrongRTL:bt(s,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const a=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&a.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(i=>{i.complete?Kn(n,i):i.addEventListener("load",s=>{Kn(n,s.target)})}),qr(n),n.initialized=!0,qr(n),n.emit("init"),n.emit("afterInit"),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:o}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),s&&s.removeAttribute("style"),o&&o.length&&o.forEach(u=>{u.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(u=>{r.off(u)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),lc(r)),r.destroyed=!0),null}static extendDefaults(t){We(Gr,t)}static get extendedDefaults(){return Gr}static get defaults(){return zr}static installModule(t){mt.prototype.__modules__||(mt.prototype.__modules__=[]);const n=mt.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>mt.installModule(n)),mt):(mt.installModule(t),mt)}};Object.keys(Vr).forEach(e=>{Object.keys(Vr[e]).forEach(t=>{Yr.prototype[t]=Vr[e][t]})}),Yr.use([Tc,xc]);const Gi=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function kt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function qt(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:kt(t[r])&&kt(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:qt(e[r],t[r]):e[r]=t[r]})}function Yi(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Wi(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ji(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Xi(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function _d(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function wd({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:o}){const u=r.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:l,pagination:c,navigation:f,scrollbar:g,virtual:p,thumbs:T}=e;let h,m,b,E,y,_,w,S;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(h=!0),r.includes("controller")&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(m=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||o)&&(l.pagination||l.pagination===!1)&&c&&!c.el&&(b=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(l.scrollbar||l.scrollbar===!1)&&g&&!g.el&&(E=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const M=A=>{e[A]&&(e[A].destroy(),A==="navigation"?(e.isElement&&(e[A].prevEl.remove(),e[A].nextEl.remove()),l[A].prevEl=void 0,l[A].nextEl=void 0,e[A].prevEl=void 0,e[A].nextEl=void 0):(e.isElement&&e[A].el.remove(),l[A].el=void 0,e[A].el=void 0))};r.includes("loop")&&e.isElement&&(l.loop&&!n.loop?_=!0:!l.loop&&n.loop?w=!0:S=!0),u.forEach(A=>{if(kt(l[A])&&kt(n[A]))Object.assign(l[A],n[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in n[A]&&!n[A].enabled&&M(A);else{const x=n[A];(x===!0||x===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?x===!1&&M(A):l[A]=n[A]}}),u.includes("controller")&&!m&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes("children")&&t&&p&&l.virtual.enabled?(p.slides=t,p.update(!0)):r.includes("virtual")&&p&&l.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes("children")&&t&&l.loop&&(S=!0),h&&T.init()&&T.update(!0),m&&(e.controller.control=l.controller.control),b&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(l.pagination.el=o),c.init(),c.render(),c.update()),E&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),e.el.appendChild(s)),s&&(l.scrollbar.el=s),g.init(),g.updateSize(),g.setTranslate()),y&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),rn(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),rn(i,e.navigation.arrowSvg),i.part.add("button-prev"),e.el.appendChild(i))),a&&(l.navigation.nextEl=a),i&&(l.navigation.prevEl=i),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(_||S)&&e.loopDestroy(),(w||S)&&e.loopCreate(),e.update()}function kd(e={},t=!0){const n={on:{}},r={},a={};qt(n,zr),n._emitClasses=!0,n.init=!1;const i={},s=Gi.map(u=>u.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(u=>{typeof e[u]>"u"||(s.indexOf(u)>=0?kt(e[u])?(n[u]={},a[u]={},qt(n[u],e[u]),qt(a[u],e[u])):(n[u]=e[u],a[u]=e[u]):u.search(/on[A-Z]/)===0&&typeof e[u]=="function"?t?r[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:n.on[`${u[2].toLowerCase()}${u.substr(3)}`]=e[u]:i[u]=e[u])}),["navigation","pagination","scrollbar"].forEach(u=>{n[u]===!0&&(n[u]={}),n[u]===!1&&delete n[u]}),{params:n,passedParams:a,rest:i,events:r}}function Nd({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){Yi(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),Wi(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),ji(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function Id(e,t,n,r,a){const i=[];if(!t)return i;const s=u=>{i.indexOf(u)<0&&i.push(u)};if(n&&r){const u=r.map(a),l=n.map(a);u.join("")!==l.join("")&&s("children"),r.length!==n.length&&s("children")}return Gi.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in e&&u in t)if(kt(e[u])&&kt(t[u])){const l=Object.keys(e[u]),c=Object.keys(t[u]);l.length!==c.length?s(u):(l.forEach(f=>{e[u][f]!==t[u][f]&&s(u)}),c.forEach(f=>{e[u][f]!==t[u][f]&&s(u)}))}else e[u]!==t[u]&&s(u)}),i}const Ld=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Qn(){return Qn=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},Qn.apply(this,arguments)}function Ki(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Qi(e){const t=[];return I.Children.toArray(e).forEach(n=>{Ki(n)?t.push(n):n.props&&n.props.children&&Qi(n.props.children).forEach(r=>t.push(r))}),t}function Od(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return I.Children.toArray(e).forEach(r=>{if(Ki(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const a=Qi(r.props.children);a.length>0?a.forEach(i=>t.push(i)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function Dd(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,o=e.params.loop?-t.length:0,u=e.params.loop?t.length*2:t.length,l=[];for(let c=o;c<u;c+=1)c>=i&&c<=s&&l.push(t[r(c)]);return l.map((c,f)=>I.cloneElement(c,{swiper:e,style:a,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function an(e,t){return typeof window>"u"?I.useEffect(e,t):I.useLayoutEffect(e,t)}const Ji=I.createContext(null),Pd=I.createContext(null),Zi=I.forwardRef(({className:e,tag:t="div",wrapperTag:n="div",children:r,onSwiper:a,...i}={},s)=>{let o=!1;const[u,l]=I.useState("swiper"),[c,f]=I.useState(null),[g,p]=I.useState(!1),T=I.useRef(!1),h=I.useRef(null),m=I.useRef(null),b=I.useRef(null),E=I.useRef(null),y=I.useRef(null),_=I.useRef(null),w=I.useRef(null),S=I.useRef(null),{params:M,passedParams:A,rest:x,events:v}=kd(i),{slides:k,slots:D}=Od(r),P=()=>{p(!g)};Object.assign(M.on,{_containerClasses($,G){l(G)}});const N=()=>{Object.assign(M.on,v),o=!0;const $={...M};if(delete $.wrapperClass,m.current=new Yr($),m.current.virtual&&m.current.params.virtual.enabled){m.current.virtual.slides=k;const G={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};qt(m.current.params.virtual,G),qt(m.current.originalParams.virtual,G)}};h.current||N(),m.current&&m.current.on("_beforeBreakpoint",P);const C=()=>{o||!v||!m.current||Object.keys(v).forEach($=>{m.current.on($,v[$])})},F=()=>{!v||!m.current||Object.keys(v).forEach($=>{m.current.off($,v[$])})};I.useEffect(()=>()=>{m.current&&m.current.off("_beforeBreakpoint",P)}),I.useEffect(()=>{!T.current&&m.current&&(m.current.emitSlidesClasses(),T.current=!0)}),an(()=>{if(s&&(s.current=h.current),!!h.current)return m.current.destroyed&&N(),Nd({el:h.current,nextEl:y.current,prevEl:_.current,paginationEl:w.current,scrollbarEl:S.current,swiper:m.current},M),a&&!m.current.destroyed&&a(m.current),()=>{m.current&&!m.current.destroyed&&m.current.destroy(!0,!1)}},[]),an(()=>{C();const $=Id(A,b.current,k,E.current,G=>G.key);return b.current=A,E.current=k,$.length&&m.current&&!m.current.destroyed&&wd({swiper:m.current,slides:k,passedParams:A,changedParams:$,nextEl:y.current,prevEl:_.current,scrollbarEl:S.current,paginationEl:w.current}),()=>{F()}}),an(()=>{Ld(m.current)},[c]);function U(){return M.virtual?Dd(m.current,k,c):k.map(($,G)=>I.cloneElement($,{swiper:m.current,swiperSlideIndex:G}))}return I.createElement(t,Qn({ref:h,className:Xi(`${u}${e?` ${e}`:""}`)},x),I.createElement(Pd.Provider,{value:m.current},D["container-start"],I.createElement(n,{className:_d(M.wrapperClass)},D["wrapper-start"],U(),D["wrapper-end"]),Yi(M)&&I.createElement(I.Fragment,null,I.createElement("div",{ref:_,className:"swiper-button-prev"}),I.createElement("div",{ref:y,className:"swiper-button-next"})),ji(M)&&I.createElement("div",{ref:S,className:"swiper-scrollbar"}),Wi(M)&&I.createElement("div",{ref:w,className:"swiper-pagination"}),D["container-end"]))});Zi.displayName="Swiper";const es=I.forwardRef(({tag:e="div",children:t,className:n="",swiper:r,zoom:a,lazy:i,virtualIndex:s,swiperSlideIndex:o,...u}={},l)=>{const c=I.useRef(null),[f,g]=I.useState("swiper-slide"),[p,T]=I.useState(!1);function h(y,_,w){_===c.current&&g(w)}an(()=>{if(typeof o<"u"&&(c.current.swiperSlideIndex=o),l&&(l.current=c.current),!(!c.current||!r)){if(r.destroyed){f!=="swiper-slide"&&g("swiper-slide");return}return r.on("_slideClass",h),()=>{r&&r.off("_slideClass",h)}}}),an(()=>{r&&c.current&&!r.destroyed&&g(r.getSlideClasses(c.current))},[r]);const m={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof t=="function"?t(m):t,E=()=>{T(!0)};return I.createElement(e,Qn({ref:c,className:Xi(`${f}${n?` ${n}`:""}`),"data-swiper-slide-index":s,onLoad:E},u),a&&I.createElement(Ji.Provider,{value:m},I.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),i&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!a&&I.createElement(Ji.Provider,{value:m},b(),i&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});es.displayName="SwiperSlide";function ts(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=it(e.el,`.${r[a]}`)[0];i||(i=jn("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}const ns='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Md({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:ns};function a(p){let T;return p&&typeof p=="string"&&e.isElement&&(T=e.el.querySelector(p)||e.hostEl.querySelector(p),T)?T:(p&&(typeof p=="string"&&(T=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&T&&T.length>1&&e.el.querySelectorAll(p).length===1?T=e.el.querySelector(p):T&&T.length===1&&(T=T[0])),p&&!T?p:T)}function i(p,T){const h=e.params.navigation;p=Me(p),p.forEach(m=>{m&&(m.classList[T?"add":"remove"](...h.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=T),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](h.lockClass))})}function s(){const{nextEl:p,prevEl:T}=e.navigation;if(e.params.loop){i(T,!1),i(p,!1);return}i(T,e.isBeginning&&!e.params.rewind),i(p,e.isEnd&&!e.params.rewind)}function o(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function l(){const p=e.params.navigation;if(e.params.navigation=ts(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let T=a(p.nextEl),h=a(p.prevEl);Object.assign(e.navigation,{nextEl:T,prevEl:h}),T=Me(T),h=Me(h);const m=(b,E)=>{if(b){if(p.addIcons&&b.matches(".swiper-button-next,.swiper-button-prev")&&!b.querySelector("svg")){const y=document.createElement("div");rn(y,ns),b.appendChild(y.querySelector("svg")),y.remove()}b.addEventListener("click",E==="next"?u:o)}!e.enabled&&b&&b.classList.add(...p.lockClass.split(" "))};T.forEach(b=>m(b,"next")),h.forEach(b=>m(b,"prev"))}function c(){let{nextEl:p,prevEl:T}=e.navigation;p=Me(p),T=Me(T);const h=(m,b)=>{m.removeEventListener("click",b==="next"?u:o),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(m=>h(m,"next")),T.forEach(m=>h(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(l(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{c()}),n("enable disable",()=>{let{nextEl:p,prevEl:T}=e.navigation;if(p=Me(p),T=Me(T),e.enabled){s();return}[...p,...T].filter(h=>!!h).forEach(h=>h.classList.add(e.params.navigation.lockClass))}),n("click",(p,T)=>{let{nextEl:h,prevEl:m}=e.navigation;h=Me(h),m=Me(m);const b=T.target;let E=m.includes(b)||h.includes(b);if(e.isElement&&!E){const y=T.path||T.composedPath&&T.composedPath();y&&(E=y.find(_=>h.includes(_)||m.includes(_)))}if(e.params.navigation.hideOnClick&&!E){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let y;h.length?y=h[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(y=m[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...h,...m].filter(_=>!!_).forEach(_=>_.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),l(),s()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:f,disable:g,update:s,init:l,destroy:c})}function sn(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Bd({swiper:e,extendParams:t,on:n,emit:r}){const a="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:b=>b,formatFractionTotal:b=>b,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let i,s=0;function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(b,E){const{bulletActiveClass:y}=e.params.pagination;b&&(b=b[`${E==="prev"?"previous":"next"}ElementSibling`],b&&(b.classList.add(`${y}-${E}`),b=b[`${E==="prev"?"previous":"next"}ElementSibling`],b&&b.classList.add(`${y}-${E}-${E}`)))}function l(b,E,y){if(b=b%y,E=E%y,E===b+1)return"next";if(E===b-1)return"previous"}function c(b){const E=b.target.closest(sn(e.params.pagination.bulletClass));if(!E)return;b.preventDefault();const y=Xn(E)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const _=l(e.realIndex,y,e.slides.length);_==="next"?e.slideNext():_==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function f(){const b=e.rtl,E=e.params.pagination;if(o())return;let y=e.pagination.el;y=Me(y);let _,w;const S=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,M=e.params.loop?Math.ceil(S/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(w=e.previousRealIndex||0,_=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(_=e.snapIndex,w=e.previousSnapIndex):(w=e.previousIndex||0,_=e.activeIndex||0),E.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const A=e.pagination.bullets;let x,v,k;if(E.dynamicBullets&&(i=Br(A[0],e.isHorizontal()?"width":"height"),y.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${i*(E.dynamicMainBullets+4)}px`}),E.dynamicMainBullets>1&&w!==void 0&&(s+=_-(w||0),s>E.dynamicMainBullets-1?s=E.dynamicMainBullets-1:s<0&&(s=0)),x=Math.max(_-s,0),v=x+(Math.min(A.length,E.dynamicMainBullets)-1),k=(v+x)/2),A.forEach(D=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${E.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();D.classList.remove(...P)}),y.length>1)A.forEach(D=>{const P=Xn(D);P===_?D.classList.add(...E.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),E.dynamicBullets&&(P>=x&&P<=v&&D.classList.add(...`${E.bulletActiveClass}-main`.split(" ")),P===x&&u(D,"prev"),P===v&&u(D,"next"))});else{const D=A[_];if(D&&D.classList.add(...E.bulletActiveClass.split(" ")),e.isElement&&A.forEach((P,N)=>{P.setAttribute("part",N===_?"bullet-active":"bullet")}),E.dynamicBullets){const P=A[x],N=A[v];for(let C=x;C<=v;C+=1)A[C]&&A[C].classList.add(...`${E.bulletActiveClass}-main`.split(" "));u(P,"prev"),u(N,"next")}}if(E.dynamicBullets){const D=Math.min(A.length,E.dynamicMainBullets+4),P=(i*D-i)/2-k*i,N=b?"right":"left";A.forEach(C=>{C.style[e.isHorizontal()?N:"top"]=`${P}px`})}}y.forEach((A,x)=>{if(E.type==="fraction"&&(A.querySelectorAll(sn(E.currentClass)).forEach(v=>{v.textContent=E.formatFractionCurrent(_+1)}),A.querySelectorAll(sn(E.totalClass)).forEach(v=>{v.textContent=E.formatFractionTotal(M)})),E.type==="progressbar"){let v;E.progressbarOpposite?v=e.isHorizontal()?"vertical":"horizontal":v=e.isHorizontal()?"horizontal":"vertical";const k=(_+1)/M;let D=1,P=1;v==="horizontal"?D=k:P=k,A.querySelectorAll(sn(E.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${P})`,N.style.transitionDuration=`${e.params.speed}ms`})}E.type==="custom"&&E.renderCustom?(rn(A,E.renderCustom(e,_+1,M)),x===0&&r("paginationRender",A)):(x===0&&r("paginationRender",A),r("paginationUpdate",A)),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](E.lockClass)})}function g(){const b=e.params.pagination;if(o())return;const E=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let y=e.pagination.el;y=Me(y);let _="";if(b.type==="bullets"){let w=e.params.loop?Math.ceil(E/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&w>E&&(w=E);for(let S=0;S<w;S+=1)b.renderBullet?_+=b.renderBullet.call(e,S,b.bulletClass):_+=`<${b.bulletElement} ${e.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?_=b.renderFraction.call(e,b.currentClass,b.totalClass):_=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?_=b.renderProgressbar.call(e,b.progressbarFillClass):_=`<span class="${b.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(w=>{b.type!=="custom"&&rn(w,_||""),b.type==="bullets"&&e.pagination.bullets.push(...w.querySelectorAll(sn(b.bulletClass)))}),b.type!=="custom"&&r("paginationRender",y[0])}function p(){e.params.pagination=ts(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const b=e.params.pagination;if(!b.el)return;let E;typeof b.el=="string"&&e.isElement&&(E=e.el.querySelector(b.el)),!E&&typeof b.el=="string"&&(E=[...document.querySelectorAll(b.el)]),E||(E=b.el),!(!E||E.length===0)&&(e.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(E)&&E.length>1&&(E=[...e.el.querySelectorAll(b.el)],E.length>1&&(E=E.find(y=>Mi(y,".swiper")[0]===e.el))),Array.isArray(E)&&E.length===1&&(E=E[0]),Object.assign(e.pagination,{el:E}),E=Me(E),E.forEach(y=>{b.type==="bullets"&&b.clickable&&y.classList.add(...(b.clickableClass||"").split(" ")),y.classList.add(b.modifierClass+b.type),y.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(y.classList.add(`${b.modifierClass}${b.type}-dynamic`),s=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&y.classList.add(b.progressbarOppositeClass),b.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(b.lockClass)}))}function T(){const b=e.params.pagination;if(o())return;let E=e.pagination.el;E&&(E=Me(E),E.forEach(y=>{y.classList.remove(b.hiddenClass),y.classList.remove(b.modifierClass+b.type),y.classList.remove(e.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(y.classList.remove(...(b.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...b.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const b=e.params.pagination;let{el:E}=e.pagination;E=Me(E),E.forEach(y=>{y.classList.remove(b.horizontalClass,b.verticalClass),y.classList.add(e.isHorizontal()?b.horizontalClass:b.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?m():(p(),g(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{g(),f()}),n("destroy",()=>{T()}),n("enable disable",()=>{let{el:b}=e.pagination;b&&(b=Me(b),b.forEach(E=>E.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(b,E)=>{const y=E.target,_=Me(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&_&&_.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const w=_[0].classList.contains(e.params.pagination.hiddenClass);r(w===!0?"paginationShow":"paginationHide"),_.forEach(S=>S.classList.toggle(e.params.pagination.hiddenClass))}});const h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=Me(b),b.forEach(E=>E.classList.remove(e.params.pagination.paginationDisabledClass))),p(),g(),f()},m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:b}=e.pagination;b&&(b=Me(b),b.forEach(E=>E.classList.add(e.params.pagination.paginationDisabledClass))),T()};Object.assign(e.pagination,{enable:h,disable:m,render:g,update:f,init:p,destroy:T})}function Vy(){}function Gy(){}function rs(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 as(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Rd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hd={};function is(e,t){return(Hd.jsx?Fd:Rd).test(e)}const $d=/[ \t\n\f\r]/g;function Ud(e){return typeof e=="object"?e.type==="text"?ss(e.value):!1:ss(e)}function ss(e){return e.replace($d,"")===""}class on{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}on.prototype.normal={},on.prototype.property={},on.prototype.space=void 0;function os(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new on(n,r,t)}function un(e){return e.toLowerCase()}class qe{constructor(t,n){this.attribute=n,this.property=t}}qe.prototype.attribute="",qe.prototype.booleanish=!1,qe.prototype.boolean=!1,qe.prototype.commaOrSpaceSeparated=!1,qe.prototype.commaSeparated=!1,qe.prototype.defined=!1,qe.prototype.mustUseProperty=!1,qe.prototype.number=!1,qe.prototype.overloadedBoolean=!1,qe.prototype.property="",qe.prototype.spaceSeparated=!1,qe.prototype.space=void 0;let qd=0;const de=Nt(),Oe=Nt(),Wr=Nt(),Z=Nt(),Se=Nt(),zt=Nt(),je=Nt();function Nt(){return 2**++qd}const jr=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Oe,commaOrSpaceSeparated:je,commaSeparated:zt,number:Z,overloadedBoolean:Wr,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Xr=Object.keys(jr);class Kr extends qe{constructor(t,n,r,a){let i=-1;if(super(t,n),us(this,"space",a),typeof r=="number")for(;++i<Xr.length;){const s=Xr[i];us(this,Xr[i],(r&jr[s])===jr[s])}}}Kr.prototype.defined=!0;function us(e,t,n){n&&(e[t]=n)}function Vt(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Kr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[un(r)]=r,n[un(i.attribute)]=r}return new on(t,n,e.space)}const ls=Vt({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:Se,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:Z,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:Se,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Oe,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cs(e,t){return t in e?e[t]:t}function ds(e,t){return cs(e,t.toLowerCase())}const zd=Vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Se,autoFocus:de,autoPlay:de,blocking:Se,capture:null,charSet:null,checked:de,cite:null,className:Se,cols:Z,colSpan:null,content:null,contentEditable:Oe,controls:de,controlsList:Se,coords:Z|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Wr,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Se,height:Z,hidden:Wr,high:Z,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Se,itemRef:Se,itemScope:de,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:Z,pattern:null,ping:Se,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Se,required:de,reversed:de,rows:Z,rowSpan:Z,sandbox:Se,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:Oe,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:ds}),Vd=Vt({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"},properties:{about:je,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:je,rev:je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:je,requiredFeatures:je,requiredFonts:je,requiredFormats:je,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:je,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cs}),fs=Vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ps=Vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ds}),hs=Vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gd={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"},Yd=/[A-Z]/g,ms=/-[a-z]/g,Wd=/^data[-\w.:]+$/i;function Jn(e,t){const n=un(t);let r=t,a=qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Wd.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ms,Xd);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ms.test(i)){let s=i.replace(Yd,jd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Kr}return new a(r,t)}function jd(e){return"-"+e.toLowerCase()}function Xd(e){return e.charAt(1).toUpperCase()}const ln=os([ls,zd,fs,ps,hs],"html"),Et=os([ls,Vd,fs,ps,hs],"svg");function gs(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bs(e){return e.join(" ").trim()}function Qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={},Jr,Es;function Kd(){if(Es)return Jr;Es=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
43
|
-
`,l="/",c="*",f="",g="comment",p="declaration";function T(m,b){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];b=b||{};var E=1,y=1;function _(N){var C=N.match(t);C&&(E+=C.length);var F=N.lastIndexOf(u);y=~F?N.length-F:y+N.length}function w(){var N={line:E,column:y};return function(C){return C.position=new S(N),x(),C}}function S(N){this.start=N,this.end={line:E,column:y},this.source=b.source}S.prototype.content=m;function M(N){var C=new Error(b.source+":"+E+":"+y+": "+N);if(C.reason=N,C.filename=b.source,C.line=E,C.column=y,C.source=m,!b.silent)throw C}function A(N){var C=N.exec(m);if(C){var F=C[0];return _(F),m=m.slice(F.length),C}}function x(){A(n)}function v(N){var C;for(N=N||[];C=k();)C!==!1&&N.push(C);return N}function k(){var N=w();if(!(l!=m.charAt(0)||c!=m.charAt(1))){for(var C=2;f!=m.charAt(C)&&(c!=m.charAt(C)||l!=m.charAt(C+1));)++C;if(C+=2,f===m.charAt(C-1))return M("End of comment missing");var F=m.slice(2,C-2);return y+=2,_(F),m=m.slice(C),y+=2,N({type:g,comment:F})}}function D(){var N=w(),C=A(r);if(C){if(k(),!A(a))return M("property missing ':'");var F=A(i),U=N({type:p,property:h(C[0].replace(e,f)),value:F?h(F[0].replace(e,f)):f});return A(s),U}}function P(){var N=[];v(N);for(var C;C=D();)C!==!1&&(N.push(C),v(N));return N}return x(),P()}function h(m){return m?m.replace(o,f):f}return Jr=T,Jr}var ys;function Qd(){if(ys)return Gt;ys=1;var e=Gt&&Gt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=n;const t=e(Kd());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const s=(0,t.default)(r),o=typeof a=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:l,value:c}=u;o?a(l,c,u):c&&(i=i||{},i[l]=c)}),i}return Gt}var cn={},Ts;function Jd(){if(Ts)return cn;Ts=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),i(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(a,o):l=l.replace(r,o),l.replace(t,s))};return cn.camelCase=u,cn}var dn,xs;function Zd(){if(xs)return dn;xs=1;var e=dn&&dn.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Qd()),n=Jd();function r(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,u){o&&u&&(s[(0,n.camelCase)(o,i)]=u)}),s}return r.default=r,dn=r,dn}var ef=Zd();const tf=Qr(ef),Zn=Cs("end"),st=Cs("start");function Cs(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 Ss(e){const t=st(e),n=Zn(e);if(t&&n)return{start:t,end:n}}function fn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?As(e.position):"start"in e||"end"in e?As(e):"line"in e||"column"in e?Zr(e):""}function Zr(e){return vs(e&&e.line)+":"+vs(e&&e.column)}function As(e){return Zr(e&&e.start)+"-"+Zr(e&&e.end)}function vs(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 u=r.indexOf(":");u===-1?i.ruleId=r:(i.source=r.slice(0,u),i.ruleId=r.slice(u+1))}if(!i.place&&i.ancestors&&i.ancestors){const u=i.ancestors[i.ancestors.length-1];u&&(i.place=u.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=fn(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=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}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 ea={}.hasOwnProperty,nf=new Map,rf=/[A-Z]/g,af=new Set(["table","tbody","thead","tfoot","tr"]),sf=new Set(["td","th"]),_s="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function of(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=mf(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=hf(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"?Et:ln,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=ws(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function ws(e,t,n){if(t.type==="element")return uf(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return lf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return df(e,t,n);if(t.type==="mdxjsEsm")return cf(e,t);if(t.type==="root")return ff(e,t,n);if(t.type==="text")return pf(e,t)}function uf(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Et,e.schema=a),e.ancestors.push(t);const i=Ns(e,t.tagName,!1),s=gf(e,t);let o=na(e,t);return af.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Ud(u):!0})),ks(e,s,i,t),ta(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function lf(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 cf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pn(e,t.position)}function df(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Et,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Ns(e,t.name,!0),s=bf(e,t),o=na(e,t);return ks(e,s,i,t),ta(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function ff(e,t,n){const r={};return ta(r,na(e,t)),e.create(t,e.Fragment,r,n)}function pf(e,t){return t.value}function ks(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ta(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function hf(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 mf(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),u=st(r);return t(a,i,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function gf(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ea.call(t.properties,a)){const i=Ef(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&sf.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 bf(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 pn(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 pn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function na(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:nf;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const u=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(u){const l=a.get(u)||0;s=u+"-"+l,a.set(u,l+1)}}const o=ws(e,i,s);o!==void 0&&n.push(o)}return n}function Ef(e,t,n){const r=Jn(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?as(n):bs(n)),r.property==="style"){let a=typeof n=="object"?n:yf(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Tf(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Gd[r.property]||r.property:r.attribute,n]}}function yf(e,t){try{return tf(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=_s+"#cannot-parse-style-attribute",a}}function Ns(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=is(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=is(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return ea.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);pn(e)}function pn(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=_s+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Tf(e){const t={};let n;for(n in e)ea.call(e,n)&&(t[xf(n)]=e[n]);return t}function xf(e){let t=e.replace(rf,Cf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Cf(e){return"-"+e.toLowerCase()}const ra={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"]},Sf={};function Af(e,t){const n=Sf,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Is(e,r,a)}function Is(e,t,n){if(vf(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 Ls(e.children,t,n)}return Array.isArray(e)?Ls(e,t,n):""}function Ls(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Is(e[a],t,n);return r.join("")}function vf(e){return!!(e&&typeof e=="object")}const Os=document.createElement("i");function hn(e){const t="&"+e+";";Os.innerHTML=t;const n=Os.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ot(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 Ze(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const Ds={}.hasOwnProperty;function _f(e){const t={};let n=-1;for(;++n<e.length;)wf(t,e[n]);return t}function wf(e,t){let n;for(n in t){const a=(Ds.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Ds.call(a,s)||(a[s]=[]);const o=i[s];kf(a[s],Array.isArray(o)?o:o?[o]:[])}}}function kf(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ot(e,0,0,r)}function Ps(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 Yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ut=yt(/[A-Za-z]/),Xe=yt(/[\dA-Za-z]/),Nf=yt(/[#-'*+\--9=?A-Z^-~]/);function aa(e){return e!==null&&(e<32||e===127)}const ia=yt(/\d/),If=yt(/[\dA-Fa-f]/),Lf=yt(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Ne(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const mn=yt(new RegExp("\\p{P}|\\p{S}","u")),gn=yt(/\s/);function yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Wt(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 be(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(u){return ge(u)?(e.enter(n),o(u)):t(u)}function o(u){return ge(u)&&i++<a?(e.consume(u),o):(e.exit(n),t(u))}}const Of={tokenize:Df};function Df(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"),be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ie(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const Pf={tokenize:Mf},Ms={tokenize:Bf};function Mf(e){const t=this,n=[];let r=0,a,i,s;return o;function o(y){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,u,l)(y)}return l(y)}function u(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&E();const _=t.events.length;let w=_,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}b(r);let M=_;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return ot(t.events,w+1,0,t.events.slice(_)),t.events.length=M,l(y)}return o(y)}function l(y){if(r===n.length){if(!a)return g(y);if(a.currentConstruct&&a.currentConstruct.concrete)return T(y);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ms,c,f)(y)}function c(y){return a&&E(),b(r),g(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,T(y)}function g(y){return t.containerState={},e.attempt(Ms,p,T)(y)}function p(y){return r++,n.push([t.currentConstruct,t.containerState]),g(y)}function T(y){if(y===null){a&&E(),b(0),e.consume(y);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),h(y)}function h(y){if(y===null){m(e.exit("chunkFlow"),!0),b(0),e.consume(y);return}return ie(y)?(e.consume(y),m(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),h)}function m(y,_){const w=t.sliceStream(y);if(_&&w.push(null),y.previous=i,i&&(i.next=y),i=y,a.defineSkip(y.start),a.write(w),t.parser.lazy[y.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const M=t.events.length;let A=M,x,v;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(x){v=t.events[A][1].end;break}x=!0}for(b(r),S=M;S<t.events.length;)t.events[S][1].end={...v},S++;ot(t.events,A+1,0,t.events.slice(M)),t.events.length=S}}function b(y){let _=n.length;for(;_-- >y;){const w=n[_];t.containerState=w[1],w[0].exit.call(t,e)}n.length=y}function E(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Bf(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bs(e){if(e===null||Ne(e)||gn(e))return 1;if(mn(e))return 2}function sa(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 oa={name:"attention",resolveAll:Rf,tokenize:Ff};function Rf(e,t){let n=-1,r,a,i,s,o,u,l,c;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;u=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={...e[r][1].end},g={...e[n][1].start};Rs(f,-u),Rs(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},i={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ze(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Ze(l,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=Ze(l,sa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ze(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=Ze(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ot(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ff(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Bs(r);let i;return s;function s(u){return i=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===i)return e.consume(u),o;const l=e.exit("attentionSequence"),c=Bs(u),f=!c||c===2&&a||n.includes(u),g=!a||a===2&&c||n.includes(r);return l._open=!!(i===42?f:f&&(a||!g)),l._close=!!(i===42?g:g&&(c||!f)),t(u)}}function Rs(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Hf={name:"autolink",tokenize:$f};function $f(e,t,n){let r=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return ut(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||Xe(p)?(r=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||Xe(p))&&r++<32?(e.consume(p),o):(r=0,l(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||aa(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),c):Nf(p)?(e.consume(p),l):n(p)}function c(p){return Xe(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):g(p)}function g(p){if((p===45||Xe(p))&&r++<63){const T=p===45?g:f;return e.consume(p),T}return n(p)}}const er={partial:!0,tokenize:Uf};function Uf(e,t,n){return r;function r(i){return ge(i)?be(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ie(i)?t(i):n(i)}}const Fs={continuation:{tokenize:zf},exit:Vf,name:"blockQuote",tokenize:qf};function qf(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 ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function zf(e,t,n){const r=this;return a;function a(s){return ge(s)?be(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Fs,t,n)(s)}}function Vf(e){e.exit("blockQuote")}const Hs={name:"characterEscape",tokenize:Gf};function Gf(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 Lf(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const $s={name:"characterReference",tokenize:Yf};function Yf(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"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,s=Xe,c(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=If,c):(e.enter("characterReferenceValue"),i=7,s=ia,c(f))}function c(f){if(f===59&&a){const g=e.exit("characterReferenceValue");return s===Xe&&!hn(r.sliceSerialize(g))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<i?(e.consume(f),c):n(f)}}const Us={partial:!0,tokenize:jf},qs={concrete:!0,name:"codeFenced",tokenize:Wf};function Wf(e,t,n){const r=this,a={partial:!0,tokenize:w};let i=0,s=0,o;return u;function u(S){return l(S)}function l(S){const M=r.events[r.events.length-1];return i=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===o?(s++,e.consume(S),c):s<3?n(S):(e.exit("codeFencedFenceSequence"),ge(S)?be(e,f,"whitespace")(S):f(S))}function f(S){return S===null||ie(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Us,h,_)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||ie(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):ge(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,p,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),g)}function p(S){return S===null||ie(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(S))}function T(S){return S===null||ie(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===o?n(S):(e.consume(S),T)}function h(S){return e.attempt(a,_,m)(S)}function m(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),b}function b(S){return i>0&&ge(S)?be(e,E,"linePrefix",i+1)(S):E(S)}function E(S){return S===null||ie(S)?e.check(Us,h,_)(S):(e.enter("codeFlowValue"),y(S))}function y(S){return S===null||ie(S)?(e.exit("codeFlowValue"),E(S)):(e.consume(S),y)}function _(S){return e.exit("codeFenced"),t(S)}function w(S,M,A){let x=0;return v;function v(C){return S.enter("lineEnding"),S.consume(C),S.exit("lineEnding"),k}function k(C){return S.enter("codeFencedFence"),ge(C)?be(S,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):D(C)}function D(C){return C===o?(S.enter("codeFencedFenceSequence"),P(C)):A(C)}function P(C){return C===o?(x++,S.consume(C),P):x>=s?(S.exit("codeFencedFenceSequence"),ge(C)?be(S,N,"whitespace")(C):N(C)):A(C)}function N(C){return C===null||ie(C)?(S.exit("codeFencedFence"),M(C)):A(C)}}}function jf(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 ua={name:"codeIndented",tokenize:Kf},Xf={partial:!0,tokenize:Qf};function Kf(e,t,n){const r=this;return a;function a(l){return e.enter("codeIndented"),be(e,i,"linePrefix",5)(l)}function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):ie(l)?e.attempt(Xf,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ie(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function Qf(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):ie(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):be(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):ie(s)?a(s):n(s)}}const Jf={name:"codeText",previous:ep,resolve:Zf,tokenize:tp};function Zf(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 ep(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tp(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"),u(f))}function u(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(i=e.enter("codeTextSequence"),a=0,c(f)):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||ie(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),l)}function c(f){return f===96?(e.consume(f),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",l(f))}}class np{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&bn(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),bn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);bn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bn(this.left,n.reverse())}}}function bn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function zs(e){const t={};let n=-1,r,a,i,s,o,u,l;const c=new np(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,i=0,i<u.length&&u[i][1].type==="lineEndingBlank"&&(i+=2),i<u.length&&u[i][1].type==="content"))for(;++i<u.length&&u[i][1].type!=="content";)u[i][1].type==="chunkText"&&(u[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,rp(c,n)),n=t[n],l=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(r),c.splice(a,n-a+1,o))}}return ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function rp(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],l={};let c,f,g=-1,p=n,T=0,h=0;const m=[h];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++g<o.length;)o[g][0]==="exit"&&o[g-1][0]==="enter"&&o[g][1].type===o[g-1][1].type&&o[g][1].start.line!==o[g][1].end.line&&(h=g+1,m.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),g=m.length;g--;){const b=o.slice(m[g],m[g+1]),E=i.pop();u.push([E,E+b.length-1]),e.splice(E,2,b)}for(u.reverse(),g=-1;++g<u.length;)l[T+u[g][0]]=T+u[g][1],T+=u[g][1]-u[g][0]-1;return l}const ap={resolve:sp,tokenize:op},ip={partial:!0,tokenize:up};function sp(e){return zs(e),e}function op(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):ie(o)?e.check(ip,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 up(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,i,"linePrefix")}function i(s){if(s===null||ie(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 Vs(e,t,n,r,a,i,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(b),e.exit(i),g):b===null||b===32||b===41||aa(b)?n(b):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function g(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(o),g(b)):b===null||b===60||ie(b)?n(b):(e.consume(b),b===92?T:p)}function T(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function h(b){return!c&&(b===null||b===41||Ne(b))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(b)):c<l&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||aa(b)?n(b):(e.consume(b),b===92?m:h)}function m(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function Gs(e,t,n,r,a,i){const s=this;let o=0,u;return l;function l(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):ie(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||ie(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!ge(p)),p===92?g:f)}function g(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function Ys(e,t,n,r,a,i){let s;return o;function o(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(i),l(g))}function l(g){return g===s?(e.exit(i),u(s)):g===null?n(g):ie(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),be(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===s||g===null||ie(g)?(e.exit("chunkString"),l(g)):(e.consume(g),g===92?f:c)}function f(g){return g===s||g===92?(e.consume(g),c):c(g)}}function pt(e,t){let n;return r;function r(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ge(a)?be(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const lp={name:"definition",tokenize:dp},cp={partial:!0,tokenize:fp};function dp(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return Gs.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return a=Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ne(p)?pt(e,l)(p):l(p)}function l(p){return Vs(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(cp,f,f)(p)}function f(p){return ge(p)?be(e,g,"whitespace")(p):g(p)}function g(p){return p===null||ie(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function fp(e,t,n){return r;function r(o){return Ne(o)?pt(e,a)(o):n(o)}function a(o){return Ys(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return ge(o)?be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ie(o)?t(o):n(o)}}const pp={name:"hardBreakEscape",tokenize:hp};function hp(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ie(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const mp={name:"headingAtx",resolve:gp,tokenize:bp};function gp(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"},ot(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function bp(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ne(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):ge(c)?be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ne(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const Ep=["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"],Ws=["pre","script","style","textarea"],yp={concrete:!0,name:"htmlFlow",resolveTo:Cp,tokenize:Sp},Tp={partial:!0,tokenize:vp},xp={partial:!0,tokenize:Ap};function Cp(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 Sp(e,t,n){const r=this;let a,i,s,o,u;return l;function l(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),g):R===47?(e.consume(R),i=!0,h):R===63?(e.consume(R),a=3,r.interrupt?t:L):ut(R)?(e.consume(R),s=String.fromCharCode(R),m):n(R)}function g(R){return R===45?(e.consume(R),a=2,p):R===91?(e.consume(R),a=5,o=0,T):ut(R)?(e.consume(R),a=4,r.interrupt?t:L):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:L):n(R)}function T(R){const K="CDATA[";return R===K.charCodeAt(o++)?(e.consume(R),o===K.length?r.interrupt?t:D:T):n(R)}function h(R){return ut(R)?(e.consume(R),s=String.fromCharCode(R),m):n(R)}function m(R){if(R===null||R===47||R===62||Ne(R)){const K=R===47,ae=s.toLowerCase();return!K&&!i&&Ws.includes(ae)?(a=1,r.interrupt?t(R):D(R)):Ep.includes(s.toLowerCase())?(a=6,K?(e.consume(R),b):r.interrupt?t(R):D(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?E(R):y(R))}return R===45||Xe(R)?(e.consume(R),s+=String.fromCharCode(R),m):n(R)}function b(R){return R===62?(e.consume(R),r.interrupt?t:D):n(R)}function E(R){return ge(R)?(e.consume(R),E):v(R)}function y(R){return R===47?(e.consume(R),v):R===58||R===95||ut(R)?(e.consume(R),_):ge(R)?(e.consume(R),y):v(R)}function _(R){return R===45||R===46||R===58||R===95||Xe(R)?(e.consume(R),_):w(R)}function w(R){return R===61?(e.consume(R),S):ge(R)?(e.consume(R),w):y(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),u=R,M):ge(R)?(e.consume(R),S):A(R)}function M(R){return R===u?(e.consume(R),u=null,x):R===null||ie(R)?n(R):(e.consume(R),M)}function A(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Ne(R)?w(R):(e.consume(R),A)}function x(R){return R===47||R===62||ge(R)?y(R):n(R)}function v(R){return R===62?(e.consume(R),k):n(R)}function k(R){return R===null||ie(R)?D(R):ge(R)?(e.consume(R),k):n(R)}function D(R){return R===45&&a===2?(e.consume(R),F):R===60&&a===1?(e.consume(R),U):R===62&&a===4?(e.consume(R),W):R===63&&a===3?(e.consume(R),L):R===93&&a===5?(e.consume(R),G):ie(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Tp,V,P)(R)):R===null||ie(R)?(e.exit("htmlFlowData"),P(R)):(e.consume(R),D)}function P(R){return e.check(xp,N,V)(R)}function N(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),C}function C(R){return R===null||ie(R)?P(R):(e.enter("htmlFlowData"),D(R))}function F(R){return R===45?(e.consume(R),L):D(R)}function U(R){return R===47?(e.consume(R),s="",$):D(R)}function $(R){if(R===62){const K=s.toLowerCase();return Ws.includes(K)?(e.consume(R),W):D(R)}return ut(R)&&s.length<8?(e.consume(R),s+=String.fromCharCode(R),$):D(R)}function G(R){return R===93?(e.consume(R),L):D(R)}function L(R){return R===62?(e.consume(R),W):R===45&&a===2?(e.consume(R),L):D(R)}function W(R){return R===null||ie(R)?(e.exit("htmlFlowData"),V(R)):(e.consume(R),W)}function V(R){return e.exit("htmlFlow"),t(R)}}function Ap(e,t,n){const r=this;return a;function a(s){return ie(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 vp(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(er,t,n)}}const _p={name:"htmlText",tokenize:wp};function wp(e,t,n){const r=this;let a,i,s;return o;function o(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),u}function u(L){return L===33?(e.consume(L),l):L===47?(e.consume(L),w):L===63?(e.consume(L),y):ut(L)?(e.consume(L),A):n(L)}function l(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),i=0,T):ut(L)?(e.consume(L),E):n(L)}function c(L){return L===45?(e.consume(L),p):n(L)}function f(L){return L===null?n(L):L===45?(e.consume(L),g):ie(L)?(s=f,U(L)):(e.consume(L),f)}function g(L){return L===45?(e.consume(L),p):f(L)}function p(L){return L===62?F(L):L===45?g(L):f(L)}function T(L){const W="CDATA[";return L===W.charCodeAt(i++)?(e.consume(L),i===W.length?h:T):n(L)}function h(L){return L===null?n(L):L===93?(e.consume(L),m):ie(L)?(s=h,U(L)):(e.consume(L),h)}function m(L){return L===93?(e.consume(L),b):h(L)}function b(L){return L===62?F(L):L===93?(e.consume(L),b):h(L)}function E(L){return L===null||L===62?F(L):ie(L)?(s=E,U(L)):(e.consume(L),E)}function y(L){return L===null?n(L):L===63?(e.consume(L),_):ie(L)?(s=y,U(L)):(e.consume(L),y)}function _(L){return L===62?F(L):y(L)}function w(L){return ut(L)?(e.consume(L),S):n(L)}function S(L){return L===45||Xe(L)?(e.consume(L),S):M(L)}function M(L){return ie(L)?(s=M,U(L)):ge(L)?(e.consume(L),M):F(L)}function A(L){return L===45||Xe(L)?(e.consume(L),A):L===47||L===62||Ne(L)?x(L):n(L)}function x(L){return L===47?(e.consume(L),F):L===58||L===95||ut(L)?(e.consume(L),v):ie(L)?(s=x,U(L)):ge(L)?(e.consume(L),x):F(L)}function v(L){return L===45||L===46||L===58||L===95||Xe(L)?(e.consume(L),v):k(L)}function k(L){return L===61?(e.consume(L),D):ie(L)?(s=k,U(L)):ge(L)?(e.consume(L),k):x(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),a=L,P):ie(L)?(s=D,U(L)):ge(L)?(e.consume(L),D):(e.consume(L),N)}function P(L){return L===a?(e.consume(L),a=void 0,C):L===null?n(L):ie(L)?(s=P,U(L)):(e.consume(L),P)}function N(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ne(L)?x(L):(e.consume(L),N)}function C(L){return L===47||L===62||Ne(L)?x(L):n(L)}function F(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function U(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return ge(L)?be(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):G(L)}function G(L){return e.enter("htmlTextData"),s(L)}}const la={name:"labelEnd",resolveAll:Lp,resolveTo:Op,tokenize:Dp},kp={tokenize:Pp},Np={tokenize:Mp},Ip={tokenize:Bp};function Lp(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ot(e,0,e.length,n),e}function Op(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 u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",l,t]],o=Ze(o,e.slice(i+1,i+r+3)),o=Ze(o,[["enter",c,t]]),o=Ze(o,sa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Ze(o,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),o=Ze(o,e.slice(s+1)),o=Ze(o,[["exit",u,t]]),ot(e,i,e.length,o),e}function Dp(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(g){return i?i._inactive?f(g):(s=r.parser.defined.includes(Yt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(kp,c,s?c:f)(g):g===91?e.attempt(Np,c,s?l:f)(g):s?c(g):f(g)}function l(g){return e.attempt(Ip,c,f)(g)}function c(g){return t(g)}function f(g){return i._balanced=!0,n(g)}}function Pp(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 Ne(f)?pt(e,i)(f):i(f)}function i(f){return f===41?c(f):Vs(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Ne(f)?pt(e,u)(f):c(f)}function o(f){return n(f)}function u(f){return f===34||f===39||f===40?Ys(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function l(f){return Ne(f)?pt(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Mp(e,t,n){const r=this;return a;function a(o){return Gs.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Bp(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 Rp={name:"labelStartImage",resolveAll:la.resolveAll,tokenize:Fp};function Fp(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 Hp={name:"labelStartLink",resolveAll:la.resolveAll,tokenize:$p};function $p(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 ca={name:"lineEnding",tokenize:Up};function Up(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const tr={name:"thematicBreak",tokenize:qp};function qp(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"),u(l)):r>=3&&(l===null||ie(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===a?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),ge(l)?be(e,o,"whitespace")(l):o(l))}}const ze={continuation:{tokenize:Yp},exit:jp,name:"list",tokenize:Gp},zp={partial:!0,tokenize:Xp},Vp={partial:!0,tokenize:Wp};function Gp(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(p){const T=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ia(p)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(tr,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return ia(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(er,r.interrupt?n:c,e.attempt(zp,g,f))}function c(p){return r.containerState.initialBlankLine=!0,i++,g(p)}function f(p){return ge(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),g):n(p)}function g(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Yp(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(er,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!ge(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(Vp,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Wp(e,t,n){const r=this;return be(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 jp(e){e.exit(this.containerState.type)}function Xp(e,t,n){const r=this;return be(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!ge(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const js={name:"setextUnderline",resolveTo:Kp,tokenize:Qp};function Kp(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:{...e[r][1].start},end:{...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={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Qp(e,t,n){const r=this;let a;return i;function i(l){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][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"),ge(l)?be(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||ie(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Jp={tokenize:Zp};function Zp(e){const t=this,n=e.attempt(er,r,e.attempt(this.parser.constructs.flowInitial,a,be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ap,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 eh={resolveAll:Ks()},th=Xs("string"),nh=Xs("text");function Xs(e){return{resolveAll:Ks(e==="text"?rh:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(c){return l(c)?i(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),i(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const f=a[c];let g=-1;if(f)for(;++g<f.length;){const p=f[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Ks(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 rh(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,u;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)u=!0,o++;else if(l!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const l={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...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}const ah=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:lp},disable:{null:[]},document:{42:ze,43:ze,45:ze,48:ze,49:ze,50:ze,51:ze,52:ze,53:ze,54:ze,55:ze,56:ze,57:ze,62:Fs},flow:{35:mp,42:tr,45:[js,tr],60:yp,61:js,95:tr,96:qs,126:qs},flowInitial:{[-2]:ua,[-1]:ua,32:ua},insideSpan:{null:[oa,eh]},string:{38:$s,92:Hs},text:{[-5]:ca,[-4]:ca,[-3]:ca,33:Rp,38:$s,42:oa,60:[Hf,_p],91:Hp,92:[pp,Hs],93:la,95:oa,96:Jf}},Symbol.toStringTag,{value:"Module"}));function ih(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let s=[],o=[];const u={attempt:M(w),check:M(S),consume:E,enter:y,exit:_,interrupt:M(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:T,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:f};let c=t.tokenize.call(l,u);return t.resolveAll&&i.push(t),l;function f(k){return s=Ze(s,k),m(),s[s.length-1]!==null?[]:(A(t,0),l.events=sa(i,l.events,l),l.events)}function g(k,D){return oh(p(k),D)}function p(k){return sh(s,k)}function T(){const{_bufferIndex:k,_index:D,line:P,column:N,offset:C}=r;return{_bufferIndex:k,_index:D,line:P,column:N,offset:C}}function h(k){a[k.line]=k.column,v()}function m(){let k;for(;r._index<s.length;){const D=s[r._index];if(typeof D=="string")for(k=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===k&&r._bufferIndex<D.length;)b(D.charCodeAt(r._bufferIndex));else b(D)}}function b(k){c=c(k)}function E(k){ie(k)?(r.line++,r.column=1,r.offset+=k===-3?2:1,v()):k!==-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=k}function y(k,D){const P=D||{};return P.type=k,P.start=T(),l.events.push(["enter",P,l]),o.push(P),P}function _(k){const D=o.pop();return D.end=T(),l.events.push(["exit",D,l]),D}function w(k,D){A(k,D.from)}function S(k,D){D.restore()}function M(k,D){return P;function P(N,C,F){let U,$,G,L;return Array.isArray(N)?V(N):"tokenize"in N?V([N]):W(N);function W(ne){return X;function X(re){const se=re!==null&&ne[re],he=re!==null&&ne.null,_e=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(he)?he:he?[he]:[]];return V(_e)(re)}}function V(ne){return U=ne,$=0,ne.length===0?F:R(ne[$])}function R(ne){return X;function X(re){return L=x(),G=ne,ne.partial||(l.currentConstruct=ne),ne.name&&l.parser.constructs.disable.null.includes(ne.name)?ae():ne.tokenize.call(D?Object.assign(Object.create(l),D):l,u,K,ae)(re)}}function K(ne){return k(G,L),C}function ae(ne){return L.restore(),++$<U.length?R(U[$]):F}}}function A(k,D){k.resolveAll&&!i.includes(k)&&i.push(k),k.resolve&&ot(l.events,D,l.events.length-D,k.resolve(l.events.slice(D),l)),k.resolveTo&&(l.events=k.resolveTo(l.events,l))}function x(){const k=T(),D=l.previous,P=l.currentConstruct,N=l.events.length,C=Array.from(o);return{from:N,restore:F};function F(){r=k,l.previous=D,l.currentConstruct=P,l.events.length=N,o=C,v()}}function v(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function sh(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 oh(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=`
|
|
44
|
-
`;break}case-3:{
|
|
45
|
-
`;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("")}function uh(e){const r={constructs:_f([ah,...(e||{}).extensions||[]]),content:a(Of),defined:[],document:a(Pf),flow:a(Jp),lazy:{},string:a(th),text:a(nh)};return r;function a(i){return s;function s(o){return ih(r,i,o)}}}function lh(e){for(;!zs(e););return e}const Qs=/[\0\t\n\r]/g;function ch(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const u=[];let l,c,f,g,p;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(Qs.lastIndex=f,l=Qs.exec(i),g=l&&l.index!==void 0?l.index:i.length,p=i.charCodeAt(g),!l){t=i.slice(f);break}if(p===10&&f===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<g&&(u.push(i.slice(f,g)),e+=g-f),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=g+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const dh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fh(e){return e.replace(dh,ph)}function ph(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Ps(n.slice(i?2:1),i?16:10)}return hn(n)||e}const Js={}.hasOwnProperty;function hh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mh(n)(lh(uh(n).document().write(ch()(e,t,!0))))}function mh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(vr),autolinkProtocol:x,autolinkEmail:x,atxHeading:i(Ar),blockQuote:i(he),characterEscape:x,characterReference:x,codeFenced:i(_e),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(_e,s),codeText:i(Ge,s),codeTextData:x,data:x,codeFlowValue:x,definition:i(vt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Sr),hardBreakEscape:i(Bn),hardBreakTrailing:i(Bn),htmlFlow:i(tt,s),htmlFlowData:x,htmlText:i(tt,s),htmlTextData:x,image:i(Rn),label:s,link:i(vr),listItem:i(ui),listItemValue:g,listOrdered:i(_r,f),listUnordered:i(_r),paragraph:i(wr),reference:R,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ar),strong:i(nn),thematicBreak:i(li)},exit:{atxHeading:u(),atxHeadingSequence:w,autolink:u(),autolinkEmail:se,autolinkProtocol:re,blockQuote:u(),characterEscapeValue:v,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:ne,characterReference:X,codeFenced:u(m),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:T,codeFlowValue:v,codeIndented:u(b),codeText:u(C),codeTextData:v,data:v,definition:u(),definitionDestinationString:_,definitionLabelString:E,definitionTitleString:y,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(P),htmlFlowData:v,htmlText:u(N),htmlTextData:v,image:u(U),label:G,labelText:$,lineEnding:k,link:u(F),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:K,resourceDestinationString:L,resourceTitleString:W,resource:V,setextHeading:u(A),setextHeadingLineSequence:M,setextHeadingText:S,strong:u(),thematicBreak:u()}};Zs(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(j){let te={type:"root",children:[]};const le={stack:[te],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:c,data:n},fe=[];let ye=-1;for(;++ye<j.length;)if(j[ye][1].type==="listOrdered"||j[ye][1].type==="listUnordered")if(j[ye][0]==="enter")fe.push(ye);else{const Ke=fe.pop();ye=a(j,Ke,ye)}for(ye=-1;++ye<j.length;){const Ke=t[j[ye][0]];Js.call(Ke,j[ye][1].type)&&Ke[j[ye][1].type].call(Object.assign({sliceSerialize:j[ye][2].sliceSerialize},le),j[ye][1])}if(le.tokenStack.length>0){const Ke=le.tokenStack[le.tokenStack.length-1];(Ke[1]||eo).call(le,void 0,Ke[0])}for(te.position={start:Tt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Tt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)te=t.transforms[ye](te)||te;return te}function a(j,te,le){let fe=te-1,ye=-1,Ke=!1,Qe,rt,Mt,Bt;for(;++fe<=le;){const Ue=j[fe];switch(Ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ue[0]==="enter"?ye++:ye--,Bt=void 0;break}case"lineEndingBlank":{Ue[0]==="enter"&&(Qe&&!Bt&&!ye&&!Mt&&(Mt=fe),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!ye&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||ye===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(Qe){let dt=fe;for(rt=void 0;dt--;){const at=j[dt];if(at[1].type==="lineEnding"||at[1].type==="lineEndingBlank"){if(at[0]==="exit")continue;rt&&(j[rt][1].type="lineEndingBlank",Ke=!0),at[1].type="lineEnding",rt=dt}else if(!(at[1].type==="linePrefix"||at[1].type==="blockQuotePrefix"||at[1].type==="blockQuotePrefixWhitespace"||at[1].type==="blockQuoteMarker"||at[1].type==="listItemIndent"))break}Mt&&(!rt||Mt<rt)&&(Qe._spread=!0),Qe.end=Object.assign({},rt?j[rt][1].start:Ue[1].end),j.splice(rt||fe,0,["exit",Qe,Ue[2]]),fe++,le++}if(Ue[1].type==="listItemPrefix"){const dt={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0};Qe=dt,j.splice(fe,0,["enter",dt,Ue[2]]),fe++,le++,Mt=void 0,Bt=!0}}}return j[te][1]._spread=Ke,le}function i(j,te){return le;function le(fe){o.call(this,j(fe),fe),te&&te.call(this,fe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,te,le){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([te,le||void 0]),j.position={start:Tt(te.start),end:void 0}}function u(j){return te;function te(le){j&&j.call(this,le),l.call(this,le)}}function l(j,te){const le=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==j.type&&(te?te.call(this,j,fe[0]):(fe[1]||eo).call(this,j,fe[0]));else throw new Error("Cannot close `"+j.type+"` ("+fn({start:j.start,end:j.end})+"): it’s not open");le.position.end=Tt(j.end)}function c(){return Af(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function g(j){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),te=this.stack[this.stack.length-1];te.lang=j}function T(){const j=this.resume(),te=this.stack[this.stack.length-1];te.meta=j}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/(\r?\n|\r)$/g,"")}function E(j){const te=this.resume(),le=this.stack[this.stack.length-1];le.label=te,le.identifier=Yt(this.sliceSerialize(j)).toLowerCase()}function y(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function _(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function w(j){const te=this.stack[this.stack.length-1];if(!te.depth){const le=this.sliceSerialize(j).length;te.depth=le}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function x(j){const le=this.stack[this.stack.length-1].children;let fe=le[le.length-1];(!fe||fe.type!=="text")&&(fe=Fn(),fe.position={start:Tt(j.start),end:void 0},le.push(fe)),this.stack.push(fe)}function v(j){const te=this.stack.pop();te.value+=this.sliceSerialize(j),te.position.end=Tt(j.end)}function k(j){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=te.children[te.children.length-1];le.position.end=Tt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(x.call(this,j),v.call(this,j))}function D(){this.data.atHardBreak=!0}function P(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function N(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function C(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function U(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function $(j){const te=this.sliceSerialize(j),le=this.stack[this.stack.length-2];le.label=fh(te),le.identifier=Yt(te).toLowerCase()}function G(){const j=this.stack[this.stack.length-1],te=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const fe=j.children;le.children=fe}else le.alt=te}function L(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function W(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function V(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function K(j){const te=this.resume(),le=this.stack[this.stack.length-1];le.label=te,le.identifier=Yt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ae(j){this.data.characterReferenceType=j.type}function ne(j){const te=this.sliceSerialize(j),le=this.data.characterReferenceType;let fe;le?(fe=Ps(te,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=hn(te);const ye=this.stack[this.stack.length-1];ye.value+=fe}function X(j){const te=this.stack.pop();te.position.end=Tt(j.end)}function re(j){v.call(this,j);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(j)}function se(j){v.call(this,j);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(j)}function he(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function Ge(){return{type:"inlineCode",value:""}}function vt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Sr(){return{type:"emphasis",children:[]}}function Ar(){return{type:"heading",depth:0,children:[]}}function Bn(){return{type:"break"}}function tt(){return{type:"html",value:""}}function Rn(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function _r(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function ui(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function wr(){return{type:"paragraph",children:[]}}function nn(){return{type:"strong",children:[]}}function Fn(){return{type:"text",value:""}}function li(){return{type:"thematicBreak"}}}function Tt(e){return{line:e.line,column:e.column,offset:e.offset}}function Zs(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Zs(e,r):gh(e,r)}}function gh(e,t){let n;for(n in t)if(Js.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function eo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is still open")}function bh(e){const t=this;t.parser=n;function n(r){return hh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Eh(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 yh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
46
|
-
`}]}function
|
|
47
|
-
`:"",
|
|
48
|
-
`}),c.type==="element"&&c.tagName==="p"&&!
|
|
49
|
-
`});const
|
|
50
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(
|
|
51
|
-
`}]}}const
|
|
52
|
-
`});++
|
|
53
|
-
`}),
|
|
54
|
-
`}),
|
|
55
|
-
`},a),i}function d0(e,t){return e&&"run"in e?async function(n,r){const a=Eo(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Eo(n,{file:r,...e||t})}}function yo(e){if(e)throw e}var ga,To;function f0(){if(To)return ga;To=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 c=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!f)return!1;var g;for(g in l);return typeof g>"u"||e.call(l,g)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return ga=function u(){var l,c,f,g,p,T,h=arguments[0],m=1,b=arguments.length,E=!1;for(typeof h=="boolean"&&(E=h,h=arguments[1]||{},m=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});m<b;++m)if(l=arguments[m],l!=null)for(c in l)f=o(h,c),g=o(l,c),h!==g&&(E&&g&&(i(g)||(p=a(g)))?(p?(p=!1,T=f&&a(f)?f:[]):T=f&&i(f)?f:{},s(h,{name:c,newValue:u(E,T,g)})):typeof g<"u"&&s(h,{name:c,newValue:g}));return h},ga}var p0=f0();const ba=Qr(p0);function Ea(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 h0(){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(u,...l){const c=e[++i];let f=-1;if(u){s(u);return}for(;++f<a.length;)(l[f]===null||l[f]===void 0)&&(l[f]=a[f]);a=l,c?m0(c,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 m0(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(a);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return a(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(i,a):u instanceof Error?a(u):i(u))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const lt={basename:g0,dirname:b0,extname:E0,join:y0,sep:"/"};function g0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Tn(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 b0(e){if(Tn(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 E0(e){Tn(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 y0(...e){let t=-1,n;for(;++t<e.length;)Tn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":T0(n)}function T0(e){Tn(e);const t=e.codePointAt(0)===47;let n=x0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function x0(e,t){let n="",r=0,a=-1,i=0,s=-1,o,u;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(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),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 Tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const C0={cwd:S0};function S0(){return"/"}function ya(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function A0(e){if(typeof e=="string")e=new URL(e);else if(!ya(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 v0(e)}function v0(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 Ta=["history","path","basename","stem","extname","dirname"];class xo{constructor(t){let n;t?ya(t)?n={path:t}:typeof t=="string"||_0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":C0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ta.length;){const i=Ta[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)Ta.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){Ca(t,"basename"),xa(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){Co(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(xa(t,"extname"),Co(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=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ya(t)&&(t=A0(t)),Ca(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){Ca(t,"stem"),xa(t,"stem"),this.path=lt.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 xa(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function Ca(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Co(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w0=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},k0={}.hasOwnProperty;class Sa extends w0{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=h0()}copy(){const t=new Sa;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ba(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(_a("data",this.frozen),this.namespace[t]=n,this):k0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_a("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=ur(t),r=this.parser||this.Parser;return Aa("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Aa("process",this.parser||this.Parser),va("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=ur(t),u=r.parse(o);r.run(u,o,function(c,f,g){if(c||!f||!g)return l(c);const p=f,T=r.stringify(p,g);L0(T)?g.value=T:g.result=T,l(c,g)});function l(c,f){c||!f?s(c):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Aa("processSync",this.parser||this.Parser),va("processSync",this.compiler||this.Compiler),this.process(t,a),Ao("processSync","process",n),r;function a(i,s){n=!0,yo(i),r=s}}run(t,n,r){So(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 u=ur(n);a.run(t,u,l);function l(c,f,g){const p=f||t;c?o(c):s?s(p):r(void 0,p,g)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Ao("runSync","run",r),a;function i(s,o){yo(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=ur(n),a=this.compiler||this.Compiler;return va("stringify",a),So(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(_a("use",this.frozen),t!=null)if(typeof t=="function")u(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")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...f]=l;u(c,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=ba(!0,a.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const f=l[c];i(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let f=-1,g=-1;for(;++f<r.length;)if(r[f][0]===l){g=f;break}if(g===-1)r.push([l,...c]);else if(c.length>0){let[p,...T]=c;const h=r[g][1];Ea(h)&&Ea(p)&&(p=ba(!0,h,p)),r[g]=[l,p,...T]}}}}const N0=new Sa().freeze();function Aa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function va(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _a(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 So(e){if(!Ea(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ao(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ur(e){return I0(e)?e:new xo(e)}function I0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function L0(e){return typeof e=="string"||O0(e)}function O0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const D0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vo=[],_o={allowDangerousHtml:!0},P0=/^(https?|ircs?|mailto|xmpp)$/i,M0=[{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:"className",id:"remove-classname"},{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 wa(e){const t=B0(e),n=R0(e);return F0(t.runSync(t.parse(n),n),e)}function B0(e){const t=e.rehypePlugins||vo,n=e.remarkPlugins||vo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._o}:_o;return N0().use(bh).use(n).use(d0,r).use(t)}function R0(e){const t=e.children||"",n=new xo;return typeof t=="string"&&(n.value=t),n}function F0(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||H0;for(const c of M0)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+D0+c.id,void 0);return or(e,l),of(e,{Fragment:q.Fragment,components:a,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function l(c,f,g){if(c.type==="raw"&&g&&typeof f=="number")return s?g.children.splice(f,1):g.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in ra)if(Object.hasOwn(ra,p)&&Object.hasOwn(c.properties,p)){const T=c.properties[p],h=ra[p];(h===null||h.includes(c.tagName))&&(c.properties[p]=u(String(T||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):i?i.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,g)),p&&g&&typeof f=="number")return o&&c.children?g.children.splice(f,1,...c.children):g.children.splice(f,1),f}}}function H0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||P0.test(e.slice(0,t))?e:""}const wo=/[#.]/g;function $0(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){wo.lastIndex=a;const o=wo.exec(n),u=n.slice(a,o?o.index:n.length);u&&(i?i==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,a+=u.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function ko(e,t,n){const r=n?V0(n):void 0;function a(i,s,...o){let u;if(i==null){u={type:"root",children:[]};const l=s;o.unshift(l)}else{u=$0(i,t);const l=u.tagName.toLowerCase(),c=r?r.get(l):void 0;if(u.tagName=c||l,U0(s))o.unshift(s);else for(const[f,g]of Object.entries(s))q0(e,u.properties,f,g)}for(const l of o)ka(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function U0(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function q0(e,t,n,r){const a=Jn(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=gs(r):a.commaSeparated?i=rs(r):a.commaOrSpaceSeparated?i=gs(rs(r).join(" ")):i=No(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?z0(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(No(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function ka(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ka(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ka(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function No(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||un(n)===un(t)))return!0}return n}function z0(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function V0(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const G0=["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"],Y0=ko(ln,"div"),W0=ko(Et,"g",G0);function j0(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 u=Io(t,n[s-1]);o=u===-1?t.length+1:u+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],u=Io(t,o),l=u===-1?t.length+1:u+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 Io(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
56
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Lt={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/"},Lo={}.hasOwnProperty,X0=Object.prototype;function K0(e,t){const n=t||{};return Na({file:n.file||void 0,location:!1,schema:n.space==="svg"?Et:ln,verbose:n.verbose||!1},e)}function Na(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},lr(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:Oo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=j0(i),o=s.toPoint(0),u=s.toPoint(i.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},lr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},lr(e,r,n),n}default:return n=Q0(e,t),n}}function Oo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Na(e,t[n]);r.push(a)}return r}function Q0(e,t){const n=e.schema;e.schema=t.namespaceURI===Lt.svg?Et:ln;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;Lo.call(X0,u)||(a[u]=o.value)}const s=(e.schema.space==="svg"?W0:Y0)(t.tagName,a,Oo(e,t.childNodes));if(lr(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&Xt(u.startTag),c=u&&u.endTag&&Xt(u.endTag),f=Na(e,o.content);l&&c&&e.file&&(f.position={start:l.end,end:c.start}),s.content=f}return e.schema=n,s}function lr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=J0(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function J0(e,t,n){const r=Xt(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)Lo.call(n.attrs,s)&&(i[Jn(e.schema,s).property]=Xt(n.attrs[s]));n.startTag;const o=Xt(n.startTag),u=n.endTag?Xt(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=i,t.data={position:l}}}return r}function Xt(e){const t=Do({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Do({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Do(e){return e.line&&e.column?e:void 0}const Po={}.hasOwnProperty;function Mo(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&Po.call(a,e)){const u=String(a[e]);s=Po.call(o,u)?o[u]: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 Z0={},em={}.hasOwnProperty,Bo=Mo("type",{handlers:{root:nm,element:om,text:im,comment:sm,doctype:am}});function tm(e,t){const r=(t||Z0).space;return Bo(e,r==="svg"?Et:ln)}function nm(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ia(e.children,n,t),Kt(e,n),n}function rm(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ia(e.children,n,t),Kt(e,n),n}function am(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Kt(e,t),t}function im(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Kt(e,t),t}function sm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Kt(e,t),t}function om(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Et);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&em.call(e.properties,i)){const u=um(r,i,e.properties[i]);u&&a.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Lt[s],childNodes:[],parentNode:null};return o.childNodes=Ia(e.children,o,r),Kt(e,o),e.tagName==="template"&&e.content&&(o.content=rm(e.content,r)),o}function um(e,t,n){const r=Jn(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?as(n):bs(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=Lt[r.space]}return a}function Ia(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Bo(e[r],n);i.parentNode=t,a.push(i)}return a}function Kt(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 lm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],cm=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 O;(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"})(O||(O={}));const Ve={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ro(e){return e>=55296&&e<=57343}function dm(e){return e>=56320&&e<=57343}function fm(e,t){return(e-55296)*1024+9216+t}function Fo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ho(e){return e>=64976&&e<=65007||cm.has(e)}var Y;(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"})(Y||(Y={}));const pm=65536;class hm{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=pm,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(dm(n))return this.pos++,this._addGap(),fm(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,O.EOF;return this._err(Y.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,O.EOF;const r=this.html.charCodeAt(n);return r===O.CARRIAGE_RETURN?O.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,O.EOF;let t=this.html.charCodeAt(this.pos);return t===O.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,O.LINE_FEED):t===O.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ro(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===O.LINE_FEED||t===O.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Fo(t)?this._err(Y.controlCharacterInInputStream):Ho(t)&&this._err(Y.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var pe;(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"})(pe||(pe={}));function $o(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 mm=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))),gm=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]]);function bm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gm.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 Em=32;var xt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xt||(xt={}));function La(e){return e>=Be.ZERO&&e<=Be.NINE}function ym(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function Tm(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||La(e)}function xm(e){return e===Be.EQUALS||Tm(e)}var Re;(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"})(Re||(Re={}));var ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ht||(ht={}));class Cm{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Re.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ht.Strict}startEntity(t){this.decodeMode=t,this.state=Re.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Re.EntityStart:return t.charCodeAt(n)===Be.NUM?(this.state=Re.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Re.NamedEntity,this.stateNamedEntity(t,n));case Re.NumericStart:return this.stateNumericStart(t,n);case Re.NumericDecimal:return this.stateNumericDecimal(t,n);case Re.NumericHex:return this.stateNumericHex(t,n);case Re.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Em)===Be.LOWER_X?(this.state=Re.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Re.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)+Number.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(La(a)||ym(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(La(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===Be.SEMI)this.consumed+=1;else if(this.decodeMode===ht.Strict)return 0;return this.emitCodePoint(bm(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 a=r[this.treeIndex],i=(a&xt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Sm(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===ht.Attribute&&(i===0||xm(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&xt.VALUE_LENGTH)>>14,i!==0){if(s===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ht.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]&xt.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]&~xt.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Re.NamedEntity:return this.result!==0&&(this.decodeMode!==ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Re.NumericDecimal:return this.emitNumericEntity(0,2);case Re.NumericHex:return this.emitNumericEntity(0,3);case Re.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Re.EntityStart:return 0}}}function Sm(e,t,n,r){const a=(t&xt.BRANCH_LENGTH)>>7,i=t&xt.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=a?-1:e[n+u]-1}let s=n,o=s+a-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(l<r)s=u+1;else if(l>r)o=u-1;else return e[u+a]}return-1}var Q;(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/"})(Q||(Q={}));var Ot;(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"})(Ot||(Ot={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var z;(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"})(z||(z={}));var d;(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"})(d||(d={}));const Am=new Map([[z.A,d.A],[z.ADDRESS,d.ADDRESS],[z.ANNOTATION_XML,d.ANNOTATION_XML],[z.APPLET,d.APPLET],[z.AREA,d.AREA],[z.ARTICLE,d.ARTICLE],[z.ASIDE,d.ASIDE],[z.B,d.B],[z.BASE,d.BASE],[z.BASEFONT,d.BASEFONT],[z.BGSOUND,d.BGSOUND],[z.BIG,d.BIG],[z.BLOCKQUOTE,d.BLOCKQUOTE],[z.BODY,d.BODY],[z.BR,d.BR],[z.BUTTON,d.BUTTON],[z.CAPTION,d.CAPTION],[z.CENTER,d.CENTER],[z.CODE,d.CODE],[z.COL,d.COL],[z.COLGROUP,d.COLGROUP],[z.DD,d.DD],[z.DESC,d.DESC],[z.DETAILS,d.DETAILS],[z.DIALOG,d.DIALOG],[z.DIR,d.DIR],[z.DIV,d.DIV],[z.DL,d.DL],[z.DT,d.DT],[z.EM,d.EM],[z.EMBED,d.EMBED],[z.FIELDSET,d.FIELDSET],[z.FIGCAPTION,d.FIGCAPTION],[z.FIGURE,d.FIGURE],[z.FONT,d.FONT],[z.FOOTER,d.FOOTER],[z.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[z.FORM,d.FORM],[z.FRAME,d.FRAME],[z.FRAMESET,d.FRAMESET],[z.H1,d.H1],[z.H2,d.H2],[z.H3,d.H3],[z.H4,d.H4],[z.H5,d.H5],[z.H6,d.H6],[z.HEAD,d.HEAD],[z.HEADER,d.HEADER],[z.HGROUP,d.HGROUP],[z.HR,d.HR],[z.HTML,d.HTML],[z.I,d.I],[z.IMG,d.IMG],[z.IMAGE,d.IMAGE],[z.INPUT,d.INPUT],[z.IFRAME,d.IFRAME],[z.KEYGEN,d.KEYGEN],[z.LABEL,d.LABEL],[z.LI,d.LI],[z.LINK,d.LINK],[z.LISTING,d.LISTING],[z.MAIN,d.MAIN],[z.MALIGNMARK,d.MALIGNMARK],[z.MARQUEE,d.MARQUEE],[z.MATH,d.MATH],[z.MENU,d.MENU],[z.META,d.META],[z.MGLYPH,d.MGLYPH],[z.MI,d.MI],[z.MO,d.MO],[z.MN,d.MN],[z.MS,d.MS],[z.MTEXT,d.MTEXT],[z.NAV,d.NAV],[z.NOBR,d.NOBR],[z.NOFRAMES,d.NOFRAMES],[z.NOEMBED,d.NOEMBED],[z.NOSCRIPT,d.NOSCRIPT],[z.OBJECT,d.OBJECT],[z.OL,d.OL],[z.OPTGROUP,d.OPTGROUP],[z.OPTION,d.OPTION],[z.P,d.P],[z.PARAM,d.PARAM],[z.PLAINTEXT,d.PLAINTEXT],[z.PRE,d.PRE],[z.RB,d.RB],[z.RP,d.RP],[z.RT,d.RT],[z.RTC,d.RTC],[z.RUBY,d.RUBY],[z.S,d.S],[z.SCRIPT,d.SCRIPT],[z.SEARCH,d.SEARCH],[z.SECTION,d.SECTION],[z.SELECT,d.SELECT],[z.SOURCE,d.SOURCE],[z.SMALL,d.SMALL],[z.SPAN,d.SPAN],[z.STRIKE,d.STRIKE],[z.STRONG,d.STRONG],[z.STYLE,d.STYLE],[z.SUB,d.SUB],[z.SUMMARY,d.SUMMARY],[z.SUP,d.SUP],[z.TABLE,d.TABLE],[z.TBODY,d.TBODY],[z.TEMPLATE,d.TEMPLATE],[z.TEXTAREA,d.TEXTAREA],[z.TFOOT,d.TFOOT],[z.TD,d.TD],[z.TH,d.TH],[z.THEAD,d.THEAD],[z.TITLE,d.TITLE],[z.TR,d.TR],[z.TRACK,d.TRACK],[z.TT,d.TT],[z.U,d.U],[z.UL,d.UL],[z.SVG,d.SVG],[z.VAR,d.VAR],[z.WBR,d.WBR],[z.XMP,d.XMP]]);function Qt(e){var t;return(t=Am.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const J=d,vm={[Q.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Q.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Q.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set},Oa=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.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 Ie={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function _m(e){return e>=O.DIGIT_0&&e<=O.DIGIT_9}function xn(e){return e>=O.LATIN_CAPITAL_A&&e<=O.LATIN_CAPITAL_Z}function wm(e){return e>=O.LATIN_SMALL_A&&e<=O.LATIN_SMALL_Z}function Ct(e){return wm(e)||xn(e)}function Uo(e){return Ct(e)||_m(e)}function cr(e){return e+32}function qo(e){return e===O.SPACE||e===O.LINE_FEED||e===O.TABULATION||e===O.FORM_FEED}function zo(e){return qo(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN}function km(e){return e===O.NULL?Y.nullCharacterReference:e>1114111?Y.characterReferenceOutsideUnicodeRange:Ro(e)?Y.surrogateCharacterReference:Ho(e)?Y.noncharacterCharacterReference:Fo(e)||e===O.CARRIAGE_RETURN?Y.controlCharacterReference:null}class Nm{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 hm(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Cm(mm,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Y.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Y.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=km(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:pe.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:pe.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:pe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:pe.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($o(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(Y.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=Qt(t.tagName),t.type===pe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Y.endTagWithAttributes),t.selfClosing&&this._err(Y.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 pe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case pe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case pe.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:pe.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=qo(t)?pe.WHITESPACE_CHARACTER:t===O.NULL?pe.NULL_CHARACTER:pe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(pe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ht.Attribute:ht.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 O.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitCodePoint(t);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case O.AMPERSAND:{this._startCharacterReference();break}case O.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ct(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case O.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case O.QUESTION_MARK:{this._err(Y.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ct(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.GREATER_THAN_SIGN:{this._err(Y.missingEndTagName),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.tagName+=ve;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateRcdataLessThanSign(t){t===O.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ct(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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case O.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case O.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===O.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ct(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 O.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case O.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){Ct(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===O.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===O.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 O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===O.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ct(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){Ct(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)&&zo(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 O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===O.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)&&zo(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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._err(Y.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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:{this._err(Y.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.name+=ve;break}default:this.currentAttr.name+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateAfterAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case O.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:case O.EQUALS_SIGN:case O.GRAVE_ACCENT:{this._err(Y.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case O.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case O.NULL:{this._err(Y.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(Y.cdataInHtmlContent),this._createCommentToken(Ve.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Y.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.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 O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this._err(Y.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 O.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case O.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.data+=ve;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case O.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case O.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==O.GREATER_THAN_SIGN&&t!==O.EOF&&this._err(Y.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.EOF:{this._err(Y.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 O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case O.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case O.HYPHEN_MINUS:{n.data+="-";break}case O.EOF:{this._err(Y.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 O.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(xn(t))this._createDoctypeToken(String.fromCharCode(cr(t))),this.state=B.DOCTYPE_NAME;else switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.NULL:{this._err(Y.unexpectedNullCharacter),this._createDoctypeToken(ve),this.state=B.DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.name+=ve;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(xn(t)?cr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.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(Y.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.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 O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.publicId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.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 O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),n.systemId+=ve;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Y.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case O.NULL:{this._err(Y.unexpectedNullCharacter);break}case O.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case O.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case O.EOF:{this._err(Y.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===O.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA;break}case O.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(O.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Uo(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Uo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===O.SEMICOLON&&this._err(Y.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Vo=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),Go=new Set([...Vo,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),dr=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),Im=new Set([...dr,d.OL,d.UL]),Lm=new Set([...dr,d.BUTTON]),Yo=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Wo=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),Om=new Set([d.TR,d.TEMPLATE,d.HTML]),Dm=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),Pm=new Set([d.TABLE,d.TEMPLATE,d.HTML]),Mm=new Set([d.TD,d.TH]);class Bm{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=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.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.current&&this.currentTagId!==void 0&&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])!==Q.HTML);this.shortenToLength(Math.max(n,0))}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(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Oa,Q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Mm,Q.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(Pm,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Dm,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(Om,Q.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]===d.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]===d.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 Q.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Q.SVG:{if(Wo.has(a))return!1;break}case Q.MATHML:{if(Yo.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,dr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Im)}hasInButtonScope(t){return this.hasInDynamicScope(t,Lm)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Q.HTML:{if(Oa.has(n))return!0;if(dr.has(n))return!1;break}case Q.SVG:{if(Wo.has(n))return!1;break}case Q.MATHML:{if(Yo.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Vo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Go.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Go.has(this.currentTagId);)this.pop()}}const Da=3;var ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ct||(ct={}));const jo={type:ct.Marker};class Rm{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 u=this.entries[o];if(u.type===ct.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===s){const c=this.treeAdapter.getAttrList(l);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Da)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Da)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(u=>a.get(u.name)===u.value)&&(i+=1,i>=Da&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(jo)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ct.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ct.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(jo);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ct.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ct.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ct.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}}},Xo="html",Fm="about:legacy-compat",Hm="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ko=["+//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//"],$m=[...Ko,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Um=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Qo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],qm=[...Qo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jo(e,t){return t.some(n=>e.startsWith(n))}function zm(e){return e.name===Xo&&e.publicId===null&&(e.systemId===null||e.systemId===Fm)}function Vm(e){if(e.name!==Xo)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Hm)return et.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Um.has(n))return et.QUIRKS;let r=t===null?$m:Ko;if(Jo(n,r))return et.QUIRKS;if(r=t===null?Qo:qm,Jo(n,r))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const Zo={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Gm="definitionurl",Ym="definitionURL",Wm=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])),jm=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),Xm=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])),Km=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function Qm(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===Ot.COLOR||r===Ot.SIZE||r===Ot.FACE)||Km.has(t)}function eu(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Gm){e.attrs[t].name=Ym;break}}function tu(e){for(let t=0;t<e.attrs.length;t++){const n=Wm.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Pa(e){for(let t=0;t<e.attrs.length;t++){const n=jm.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 Jm(e){const t=Xm.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Qt(e.tagName))}function Zm(e,t){return t===Q.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function eg(e,t,n){if(t===Q.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ot.ENCODING){const a=n[r].value.toLowerCase();return a===Zo.TEXT_HTML||a===Zo.APPLICATION_XML}}return t===Q.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function tg(e,t,n,r){return(!r||r===Q.HTML)&&eg(e,t,n)||(!r||r===Q.MATHML)&&Zm(e,t)}const ng="hidden",rg=8,ag=3;var H;(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"})(H||(H={}));const ig={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nu=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),ru={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:St,onParseError:null};class au{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.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={...ru,...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 Nm(this.options,this),this.activeFormattingElements=new Rm(this.treeAdapter),this.fragmentContextID=r?Qt(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Bm(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={...ru,...n};t??(t=r.treeAdapter.createElement(z.TEMPLATE,Q.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Q.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===d.TEMPLATE&&i.tmplInsertionModeStack.unshift(H.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:ig,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||t&&this.treeAdapter.getNamespaceURI(t)===Q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=Ie.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)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Q.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Ie.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Ie.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Ie.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Ie.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??this.document,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,Q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Q.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(z.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.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:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}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===pe.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===d.SVG&&this.treeAdapter.getTagName(n)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Q.HTML)}_processToken(t){switch(t.type){case pe.CHARACTER:{this.onCharacter(t);break}case pe.NULL_CHARACTER:{this.onNullCharacter(t);break}case pe.COMMENT:{this.onComment(t);break}case pe.DOCTYPE:{this.onDoctype(t);break}case pe.START_TAG:{this._processStartTag(t);break}case pe.END_TAG:{this.onEndTag(t);break}case pe.EOF:{this.onEof(t);break}case pe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return tg(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ct.Marker||this.openElements.contains(a.element)),r=n===-1?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=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=H.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=H.IN_TABLE;return}case d.BODY:{this.insertionMode=H.IN_BODY;return}case d.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=H.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(t){return nu.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&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 d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case d.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 vm[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mb(this,t);return}switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{su(this,t);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_TABLE_TEXT:{hu(this,t);break}case H.IN_COLUMN_GROUP:{hr(this,t);break}case H.AFTER_BODY:{br(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Pb(this,t);return}switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.TEXT:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_COLUMN_GROUP:{hr(this,t);break}case H.AFTER_BODY:{br(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ba(this,t);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{Ba(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.AFTER_BODY:{fg(this,t);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{pg(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:{hg(this,t);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(t,Y.misplacedDoctype);break}case H.IN_TABLE_TEXT:{In(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Y.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Bb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{mg(this,t);break}case H.BEFORE_HEAD:{bg(this,t);break}case H.IN_HEAD:{nt(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Tg(this,t);break}case H.AFTER_HEAD:{Cg(this,t);break}case H.IN_BODY:{He(this,t);break}case H.IN_TABLE:{Jt(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_CAPTION:{Eb(this,t);break}case H.IN_COLUMN_GROUP:{Ha(this,t);break}case H.IN_TABLE_BODY:{mr(this,t);break}case H.IN_ROW:{gr(this,t);break}case H.IN_CELL:{xb(this,t);break}case H.IN_SELECT:{bu(this,t);break}case H.IN_SELECT_IN_TABLE:{Sb(this,t);break}case H.IN_TEMPLATE:{vb(this,t);break}case H.AFTER_BODY:{wb(this,t);break}case H.IN_FRAMESET:{kb(this,t);break}case H.AFTER_FRAMESET:{Ib(this,t);break}case H.AFTER_AFTER_BODY:{Ob(this,t);break}case H.AFTER_AFTER_FRAMESET:{Db(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Rb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{gg(this,t);break}case H.BEFORE_HEAD:{Eg(this,t);break}case H.IN_HEAD:{yg(this,t);break}case H.IN_HEAD_NO_SCRIPT:{xg(this,t);break}case H.AFTER_HEAD:{Sg(this,t);break}case H.IN_BODY:{pr(this,t);break}case H.TEXT:{ub(this,t);break}case H.IN_TABLE:{kn(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_CAPTION:{yb(this,t);break}case H.IN_COLUMN_GROUP:{Tb(this,t);break}case H.IN_TABLE_BODY:{$a(this,t);break}case H.IN_ROW:{gu(this,t);break}case H.IN_CELL:{Cb(this,t);break}case H.IN_SELECT:{Eu(this,t);break}case H.IN_SELECT_IN_TABLE:{Ab(this,t);break}case H.IN_TEMPLATE:{_b(this,t);break}case H.AFTER_BODY:{Tu(this,t);break}case H.IN_FRAMESET:{Nb(this,t);break}case H.AFTER_FRAMESET:{Lb(this,t);break}case H.AFTER_AFTER_BODY:{Er(this,t);break}}}onEof(t){switch(this.insertionMode){case H.INITIAL:{Cn(this,t);break}case H.BEFORE_HTML:{Sn(this,t);break}case H.BEFORE_HEAD:{An(this,t);break}case H.IN_HEAD:{vn(this,t);break}case H.IN_HEAD_NO_SCRIPT:{_n(this,t);break}case H.AFTER_HEAD:{wn(this,t);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{fu(this,t);break}case H.TEXT:{lb(this,t);break}case H.IN_TABLE_TEXT:{In(this,t);break}case H.IN_TEMPLATE:{yu(this,t);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Ra(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===O.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 H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{iu(this,t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fa(this,t);break}case H.IN_TABLE_TEXT:{pu(this,t);break}}}}function sg(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):du(e,t),n}function og(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(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ug(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),u=o&&i>=ag;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=lg(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function lg(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 cg(e,t,n){const r=e.treeAdapter.getTagName(t),a=Qt(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===d.TEMPLATE&&i===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dg(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 Ma(e,t){for(let n=0;n<rg;n++){const r=sg(e,t);if(!r)break;const a=og(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=ug(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&cg(e,s,i),dg(e,a,r)}}function Ba(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fg(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pg(e,t){e._appendCommentNode(t,e.document)}function Ra(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 hg(e,t){e._setDocumentType(t);const n=t.forceQuirks?et.QUIRKS:Vm(t);zm(t)||e._err(t,Y.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=H.BEFORE_HTML}function Cn(e,t){e._err(t,Y.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=H.BEFORE_HTML,e._processToken(t)}function mg(e,t){t.tagID===d.HTML?(e._insertElement(t,Q.HTML),e.insertionMode=H.BEFORE_HEAD):Sn(e,t)}function gg(e,t){const n=t.tagID;(n===d.HTML||n===d.HEAD||n===d.BODY||n===d.BR)&&Sn(e,t)}function Sn(e,t){e._insertFakeRootElement(),e.insertionMode=H.BEFORE_HEAD,e._processToken(t)}function bg(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.HEAD:{e._insertElement(t,Q.HTML),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD;break}default:An(e,t)}}function Eg(e,t){const n=t.tagID;n===d.HEAD||n===d.BODY||n===d.HTML||n===d.BR?An(e,t):e._err(t,Y.endTagWithoutMatchingOpenElement)}function An(e,t){e._insertFakeElement(z.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD,e._processToken(t)}function nt(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Ie.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ie.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Ie.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Ie.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:vn(e,t)}}function yg(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=H.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{vn(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Dt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,Y.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Y.endTagWithoutMatchingOpenElement)}function vn(e,t){e.openElements.pop(),e.insertionMode=H.AFTER_HEAD,e._processToken(t)}function Tg(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{nt(e,t);break}case d.NOSCRIPT:{e._err(t,Y.nestedNoscriptInHead);break}default:_n(e,t)}}function xg(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=H.IN_HEAD;break}case d.BR:{_n(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function _n(e,t){const n=t.type===pe.EOF?Y.openElementsLeftAfterEof:Y.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=H.IN_HEAD,e._processToken(t)}function Cg(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BODY:{e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,Y.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),nt(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:wn(e,t)}}function Sg(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{wn(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function wn(e,t){e._insertFakeElement(z.BODY,d.BODY),e.insertionMode=H.IN_BODY,fr(e,t)}function fr(e,t){switch(t.type){case pe.CHARACTER:{su(e,t);break}case pe.WHITESPACE_CHARACTER:{iu(e,t);break}case pe.COMMENT:{Ba(e,t);break}case pe.START_TAG:{He(e,t);break}case pe.END_TAG:{pr(e,t);break}case pe.EOF:{fu(e,t);break}}}function iu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function su(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 vg(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function _g(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET)}function wg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function kg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Oa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML)}function Ng(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ig(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),n||(e.formElement=e.openElements.current))}function Lg(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===d.LI&&a===d.LI||(n===d.DD||n===d.DT)&&(a===d.DD||a===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==d.ADDRESS&&a!==d.DIV&&a!==d.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function Og(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=Ie.PLAINTEXT}function Dg(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1}function Pg(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);n&&(Ma(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Ma(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Fg(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_TABLE}function ou(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uu(e){const t=$o(e,Ot.TYPE);return t!=null&&t.toLowerCase()===ng}function Hg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),uu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $g(e,t){e._appendElement(t,Q.HTML),t.ackSelfClosing=!0}function Ug(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qg(e,t){t.tagName=z.IMG,t.tagID=d.IMG,ou(e,t)}function zg(e,t){e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ie.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=H.TEXT}function Vg(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function Gg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function lu(e,t){e._switchToTextParsing(t,Ie.RAWTEXT)}function Yg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===H.IN_TABLE||e.insertionMode===H.IN_CAPTION||e.insertionMode===H.IN_TABLE_BODY||e.insertionMode===H.IN_ROW||e.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT}function Wg(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function jg(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML)}function Xg(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,Q.HTML)}function Kg(e,t){e._reconstructActiveFormattingElements(),eu(t),Pa(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0}function Qg(e,t){e._reconstructActiveFormattingElements(),tu(t),Pa(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0}function cu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function He(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{Mg(e,t);break}case d.A:{Pg(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{kg(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{wg(e,t);break}case d.LI:case d.DD:case d.DT:{Lg(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{ou(e,t);break}case d.HR:{Ug(e,t);break}case d.RB:case d.RTC:{jg(e,t);break}case d.RT:case d.RP:{Xg(e,t);break}case d.PRE:case d.LISTING:{Ng(e,t);break}case d.XMP:{Vg(e,t);break}case d.SVG:{Qg(e,t);break}case d.HTML:{Ag(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{nt(e,t);break}case d.BODY:{vg(e,t);break}case d.FORM:{Ig(e,t);break}case d.NOBR:{Bg(e,t);break}case d.MATH:{Kg(e,t);break}case d.TABLE:{Fg(e,t);break}case d.INPUT:{Hg(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{$g(e,t);break}case d.IMAGE:{qg(e,t);break}case d.BUTTON:{Dg(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{Rg(e,t);break}case d.IFRAME:{Gg(e,t);break}case d.SELECT:{Yg(e,t);break}case d.OPTION:case d.OPTGROUP:{Wg(e,t);break}case d.NOEMBED:case d.NOFRAMES:{lu(e,t);break}case d.FRAMESET:{_g(e,t);break}case d.TEXTAREA:{zg(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?lu(e,t):cu(e,t);break}case d.PLAINTEXT:{Og(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:cu(e,t)}}function Jg(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Zg(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,Tu(e,t))}function eb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tb(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):n&&e.openElements.remove(n))}function nb(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(z.P,d.P),e._closePElement()}function rb(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function ab(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function ib(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ob(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function du(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!==d.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 pr(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Ma(e,t);break}case d.P:{nb(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{eb(e,t);break}case d.LI:{rb(e);break}case d.DD:case d.DT:{ab(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{ib(e);break}case d.BR:{ob(e);break}case d.BODY:{Jg(e,t);break}case d.HTML:{Zg(e,t);break}case d.FORM:{tb(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{sb(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:du(e,t)}}function fu(e,t){e.tmplInsertionModeStack.length>0?yu(e,t):Ra(e,t)}function ub(e,t){var n;t.tagID===d.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lb(e,t){e._err(t,Y.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Fa(e,t){if(e.openElements.currentTagId!==void 0&&nu.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=H.IN_TABLE_TEXT,t.type){case pe.CHARACTER:{hu(e,t);break}case pe.WHITESPACE_CHARACTER:{pu(e,t);break}}else Nn(e,t)}function cb(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CAPTION}function db(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_COLUMN_GROUP}function fb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,d.COLGROUP),e.insertionMode=H.IN_COLUMN_GROUP,Ha(e,t)}function pb(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_TABLE_BODY}function hb(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,d.TBODY),e.insertionMode=H.IN_TABLE_BODY,mr(e,t)}function mb(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function gb(e,t){uu(t)?e._appendElement(t,Q.HTML):Nn(e,t),t.ackSelfClosing=!0}function bb(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Jt(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{hb(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{nt(e,t);break}case d.COL:{fb(e,t);break}case d.FORM:{bb(e,t);break}case d.TABLE:{mb(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{pb(e,t);break}case d.INPUT:{gb(e,t);break}case d.CAPTION:{cb(e,t);break}case d.COLGROUP:{db(e,t);break}default:Nn(e,t)}}function kn(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Nn(e,t)}}function Nn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,fr(e,t),e.fosterParentingEnabled=n}function pu(e,t){e.pendingCharacterTokens.push(t)}function hu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function In(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Nn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const mu=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function Eb(e,t){const n=t.tagID;mu.has(n)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,Jt(e,t)):He(e,t)}function yb(e,t){const n=t.tagID;switch(n){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,n===d.TABLE&&kn(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:pr(e,t)}}function Ha(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.COL:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{nt(e,t);break}default:hr(e,t)}}function Tb(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TEMPLATE:{Dt(e,t);break}case d.COL:break;default:hr(e,t)}}function hr(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE,e._processToken(t))}function mr(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,d.TR),e.insertionMode=H.IN_ROW,gr(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Jt(e,t));break}default:Jt(e,t)}}function $a(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,kn(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:kn(e,t)}}function gr(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,mr(e,t));break}default:Jt(e,t)}}function gu(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$a(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$a(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:kn(e,t)}}function xb(e,t){const n=t.tagID;mu.has(n)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),gr(e,t)):He(e,t)}function Cb(e,t){const n=t.tagID;switch(n){case d.TD:case d.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),gu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:pr(e,t)}}function bu(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{nt(e,t);break}}}function Eu(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}}}function Sb(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bu(e,t)}function Ab(e,t){const n=t.tagID;n===d.CAPTION||n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR||n===d.TD||n===d.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Eu(e,t)}function vb(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{nt(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=H.IN_TABLE,e.insertionMode=H.IN_TABLE,Jt(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,e.insertionMode=H.IN_COLUMN_GROUP,Ha(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,e.insertionMode=H.IN_TABLE_BODY,mr(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=H.IN_ROW,e.insertionMode=H.IN_ROW,gr(e,t);break}default:e.tmplInsertionModeStack[0]=H.IN_BODY,e.insertionMode=H.IN_BODY,He(e,t)}}function _b(e,t){t.tagID===d.TEMPLATE&&Dt(e,t)}function yu(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ra(e,t)}function wb(e,t){t.tagID===d.HTML?He(e,t):br(e,t)}function Tu(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=H.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.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 br(e,t)}function br(e,t){e.insertionMode=H.IN_BODY,fr(e,t)}function kb(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.FRAMESET:{e._insertElement(t,Q.HTML);break}case d.FRAME:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{nt(e,t);break}}}function Nb(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=H.AFTER_FRAMESET))}function Ib(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.NOFRAMES:{nt(e,t);break}}}function Lb(e,t){t.tagID===d.HTML&&(e.insertionMode=H.AFTER_AFTER_FRAMESET)}function Ob(e,t){t.tagID===d.HTML?He(e,t):Er(e,t)}function Er(e,t){e.insertionMode=H.IN_BODY,fr(e,t)}function Db(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.NOFRAMES:{nt(e,t);break}}}function Pb(e,t){t.chars=ve,e._insertCharacters(t)}function Mb(e,t){e._insertCharacters(t),e.framesetOk=!1}function xu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Bb(e,t){if(Qm(t))xu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Q.MATHML?eu(t):r===Q.SVG&&(Jm(t),tu(t)),Pa(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Rb(e,t){if(t.tagID===d.P||t.tagID===d.BR){xu(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)===Q.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const Fb=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hb=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Su(e,t){const n=Xb(e),r=Mo("type",{handlers:{root:$b,element:Ub,text:qb,comment:vu,doctype:zb,raw:Gb},unknown:Yb}),a={parser:n?new au(Cu):au.getFragmentParser(void 0,Cu),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),Zt(a,st());const i=n?a.parser.document:a.parser.getFragment(),s=K0(i,{file:a.options.file});return a.stitches&&or(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const f=l.children;return f[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Au(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function $b(e,t){Au(e.children,t)}function Ub(e,t){Wb(e,t),Au(e.children,t),jb(e,t)}function qb(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:pe.CHARACTER,chars:e.value,location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function zb(e,t){const n={type:pe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vb(e,t){t.stitches=!0;const n=Kb(e);if("children"in e&&"children"in n){const r=Su({type:"root",children:e.children},t.options);n.children=r.children}vu({type:"comment",value:{stitch:n}},t)}function vu(e,t){const n=e.value,r={type:pe.COMMENT,data:n,location:Ln(e)};Zt(t,st(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Gb(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,_u(t,st(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Fb,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Yb(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Vb(n,t);else{let r="";throw Hb.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 Zt(e,t){_u(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=Ie.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 _u(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 Wb(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,st(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Lt.html;a===Lt.html&&n==="svg"&&(a=Lt.svg);const i=tm({...e,children:[]},{space:a===Lt.svg?"svg":"html"}),s={type:pe.START_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ln(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function jb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lm.includes(n)||t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,Zn(e));const r={type:pe.END_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ln(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ie.RCDATA||t.parser.tokenizer.state===Ie.RAWTEXT||t.parser.tokenizer.state===Ie.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ie.DATA)}function Xb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ln(e){const t=st(e)||{line:void 0,column:void 0,offset:void 0},n=Zn(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?It({...e,children:[]}):It(e)}function Ua(e){return function(t,n){return Su(t,{...e,file:n})}}const Pt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],en={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Pt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Pt],h2:[["className","sr-only"]],img:[...Pt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Pt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Pt],table:[...Pt],ul:[...Pt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},At={}.hasOwnProperty;function Qb(e,t){let n={type:"root",children:[]};const r={schema:t?{...en,...t}:en,stack:[]},a=wu(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function wu(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Jb(e,n);case"doctype":return Zb(e,n);case"element":return eE(e,n);case"root":return tE(e,n);case"text":return nE(e,n)}}}function Jb(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return On(i,t),i}}function Zb(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return On(n,t),n}}function eE(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=ku(e,t.children),a=rE(e,t.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&At.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(i=!1;++u<o.length;)e.stack.includes(o[u])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:a,children:r};return On(s,t),s}function tE(e,t){const r={type:"root",children:ku(e,t.children)};return On(r,t),r}function nE(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return On(r,t),r}function ku(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const i=wu(e,r[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function rE(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,i=r&&At.call(r,n)?r[n]:void 0,s=r&&At.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let l;for(l in o)if(At.call(o,l)){const c=o[l];let f=Nu(e,Lu(i,l),l,c);f==null&&(f=Nu(e,Lu(s,l),l,c)),f!=null&&(u[l]=f)}if(a&&At.call(a,n)){const c=a[n];for(l in c)At.call(c,l)&&!At.call(u,l)&&(u[l]=c[l])}return u}function Nu(e,t,n,r){return t?Array.isArray(r)?aE(e,t,n,r):Iu(e,t,n,r):void 0}function aE(e,t,n,r){let a=-1;const i=[];for(;++a<r.length;){const s=Iu(e,t,n,r[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function Iu(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&iE(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){a=!0;break}}else if(s===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function iE(e,t,n){const r=e.schema.protocols&&At.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),i=a.indexOf(":"),s=a.indexOf("?"),o=a.indexOf("#"),u=a.indexOf("/");if(i<0||u>-1&&i>u||s>-1&&i>s||o>-1&&i>o)return!0;let l=-1;for(;++l<r.length;){const c=r[l];if(i===c.length&&a.slice(0,c.length)===c)return!0}return!1}function On(e,t){const n=Ss(t);t.data&&(e.data=It(t.data)),n&&(e.position=n)}function Lu(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function qa(e){return function(t){return Qb(t,e)}}function Ou(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}const sE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Du={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Pu(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function oE(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function uE(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Mu(e){return uE(e)||Pu(e)}const lE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function za(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let i=0,s=-1,o="",u,l;n.position&&("start"in n.position||"indent"in n.position?(l=n.position.indent,u=n.position.start):u=n.position);let c=(u?u.line:0)||1,f=(u?u.column:0)||1,g=T(),p;for(i--;++i<=e.length;)if(p===10&&(f=(l?l[s]:0)||1),p=e.charCodeAt(i),p===38){const b=e.charCodeAt(i+1);if(b===9||b===10||b===12||b===32||b===38||b===60||Number.isNaN(b)||r&&b===r){o+=String.fromCharCode(p),f++;continue}const E=i+1;let y=E,_=E,w;if(b===35){_=++y;const P=e.charCodeAt(_);P===88||P===120?(w="hexadecimal",_=++y):w="decimal"}else w="named";let S="",M="",A="";const x=w==="named"?Mu:w==="decimal"?Pu:oE;for(_--;++_<=e.length;){const P=e.charCodeAt(_);if(!x(P))break;A+=String.fromCharCode(P),w==="named"&&sE.includes(A)&&(S=A,M=hn(A))}let v=e.charCodeAt(_)===59;if(v){_++;const P=w==="named"?hn(A):!1;P&&(S=A,M=P)}let k=1+_-E,D="";if(!(!v&&n.nonTerminated===!1))if(!A)w!=="named"&&h(4,k);else if(w==="named"){if(v&&!M)h(5,1);else if(S!==A&&(_=y+S.length,k=1+_-y,v=!1),!v){const P=S?1:3;if(n.attribute){const N=e.charCodeAt(_);N===61?(h(P,k),M=""):Mu(N)?M="":h(P,k)}else h(P,k)}D=M}else{v||h(2,k);let P=Number.parseInt(A,w==="hexadecimal"?16:10);if(cE(P))h(7,k),D="�";else if(P in Du)h(6,k),D=Du[P];else{let N="";dE(P)&&h(6,k),P>65535&&(P-=65536,N+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),D=N+String.fromCharCode(P)}}if(D){m(),g=T(),i=_-1,f+=_-E+1,a.push(D);const P=T();P.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,D,{start:g,end:P},e.slice(E-1,_)),g=P}else A=e.slice(E-1,_),o+=A,f+=A.length,i=_-1}else p===10&&(c++,s++,f=0),Number.isNaN(p)?m():(o+=String.fromCharCode(p),f++);return a.join("");function T(){return{line:c,column:f,offset:i+((u?u.offset:0)||0)}}function h(b,E){let y;n.warning&&(y=T(),y.column+=E,y.offset+=E,n.warning.call(n.warningContext||void 0,lE[b],y,b))}function m(){o&&(a.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:g,end:T()}),o="")}}function cE(e){return e>=55296&&e<=57343||e>1114111}function dE(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const fE=/["&'<>`]/g,pE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hE=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mE=/[|\\{}()[\]^$+*?.]/g,Bu=new WeakMap;function gE(e,t){if(e=e.replace(t.subset?bE(t.subset):fE,r),t.subset||t.escapeOnly)return e;return e.replace(pE,n).replace(hE,r);function n(a,i,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function r(a,i,s){return t.format(a.charCodeAt(0),s.charCodeAt(i+1),t)}}function bE(e){let t=Bu.get(e);return t||(t=EE(e),Bu.set(e,t)),t}function EE(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(mE,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function yE(e){return"&#x"+e.toString(16).toUpperCase()+";"}function TE(e,t){return gE(e,Object.assign({format:yE},t))}const xE={}.hasOwnProperty,CE={},Ru=/^[^\t\n\r "#'.<=>`}]+$/,SE=/^[^\t\n\r "'<=>`}]+$/;function AE(){return{canContainEols:["textDirective"],enter:{directiveContainer:_E,directiveContainerAttributes:Ya,directiveContainerLabel:NE,directiveLeaf:wE,directiveLeafAttributes:Ya,directiveText:kE,directiveTextAttributes:Ya},exit:{directiveContainer:Ja,directiveContainerAttributeClassValue:ja,directiveContainerAttributeIdValue:Wa,directiveContainerAttributeName:Ka,directiveContainerAttributeValue:Xa,directiveContainerAttributes:Qa,directiveContainerLabel:IE,directiveContainerName:Ga,directiveLeaf:Ja,directiveLeafAttributeClassValue:ja,directiveLeafAttributeIdValue:Wa,directiveLeafAttributeName:Ka,directiveLeafAttributeValue:Xa,directiveLeafAttributes:Qa,directiveLeafName:Ga,directiveText:Ja,directiveTextAttributeClassValue:ja,directiveTextAttributeIdValue:Wa,directiveTextAttributeName:Ka,directiveTextAttributeValue:Xa,directiveTextAttributes:Qa,directiveTextName:Ga}}}function vE(e){const t=CE;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return n.peek=LE,{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
|
|
57
|
-
`,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function
|
|
58
|
-
`),
|
|
59
|
-
`+c)}return f(),
|
|
60
|
-
`,"\r"];return i+"="+f+TE(s,{subset:g})+f}}function _E(e){Va.call(this,"containerDirective",e)}function wE(e){Va.call(this,"leafDirective",e)}function kE(e){Va.call(this,"textDirective",e)}function Va(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Ga(e){const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.name=this.sliceSerialize(e)}function NE(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function IE(e){this.exit(e)}function Ya(){this.data.directiveAttributes=[],this.buffer()}function Wa(e){this.data.directiveAttributes.push(["id",za(this.sliceSerialize(e),{attribute:!0})])}function ja(e){this.data.directiveAttributes.push(["class",za(this.sliceSerialize(e),{attribute:!0})])}function Xa(e){const t=this.data.directiveAttributes;t[t.length-1][1]=za(this.sliceSerialize(e),{attribute:!0})}function Ka(e){this.data.directiveAttributes.push([this.sliceSerialize(e),""])}function Qa(){const e=this.data.directiveAttributes,t={};let n=-1;for(;++n<e.length;){const a=e[n];a[0]==="class"&&t.class?t.class+=" "+a[1]:t[a[0]]=a[1]}this.data.directiveAttributes=void 0,this.resume();const r=this.stack[this.stack.length-1];r.type==="containerDirective"||r.type==="leafDirective"||r.type,r.attributes=t}function Ja(e){this.exit(e)}function LE(){return":"}function Fu(e){return!!(e&&e.type==="paragraph"&&e.data&&e.data.directiveLabel)}function OE(e){let t=0;return e.type==="containerDirective"?(go(e,function(n,r){if(n.type==="containerDirective"){let a=r.length,i=0;for(;a--;)r[a].type==="containerDirective"&&i++;i>t&&(t=i)}}),t+=3):e.type==="leafDirective"?t=2:t=1,":".repeat(t)}function Za(e,t,n,r,a,i,s,o,u,l,c,f,g,p,T){let h,m;return b;function b(C){return e.enter(r),e.enter(a),e.consume(C),e.exit(a),E}function E(C){return C===35?(h=s,y(C)):C===46?(h=o,y(C)):T&&ge(C)?be(e,E,"whitespace")(C):!T&&Ne(C)?pt(e,E)(C):C===null||ie(C)||gn(C)||mn(C)&&C!==45&&C!==95?N(C):(e.enter(i),e.enter(u),e.consume(C),S)}function y(C){const F=h+"Marker";return e.enter(i),e.enter(h),e.enter(F),e.consume(C),e.exit(F),_}function _(C){if(C===null||C===34||C===35||C===39||C===46||C===60||C===61||C===62||C===96||C===125||Ne(C))return n(C);const F=h+"Value";return e.enter(F),e.consume(C),w}function w(C){if(C===null||C===34||C===39||C===60||C===61||C===62||C===96)return n(C);if(C===35||C===46||C===125||Ne(C)){const F=h+"Value";return e.exit(F),e.exit(h),e.exit(i),E(C)}return e.consume(C),w}function S(C){return C===null||ie(C)||gn(C)||mn(C)&&C!==45&&C!==46&&C!==58&&C!==95?(e.exit(u),T&&ge(C)?be(e,M,"whitespace")(C):!T&&Ne(C)?pt(e,M)(C):M(C)):(e.consume(C),S)}function M(C){return C===61?(e.enter(l),e.consume(C),e.exit(l),A):(e.exit(i),E(C))}function A(C){return C===null||C===60||C===61||C===62||C===96||C===125||T&&ie(C)?n(C):C===34||C===39?(e.enter(c),e.enter(g),e.consume(C),e.exit(g),m=C,v):T&&ge(C)?be(e,A,"whitespace")(C):!T&&Ne(C)?pt(e,A)(C):(e.enter(f),e.enter(p),e.consume(C),m=void 0,x)}function x(C){return C===null||C===34||C===39||C===60||C===61||C===62||C===96?n(C):C===125||Ne(C)?(e.exit(p),e.exit(f),e.exit(i),E(C)):(e.consume(C),x)}function v(C){return C===m?(e.enter(g),e.consume(C),e.exit(g),e.exit(c),e.exit(i),P):(e.enter(f),k(C))}function k(C){return C===m?(e.exit(f),v(C)):C===null?n(C):ie(C)?T?n(C):pt(e,k)(C):(e.enter(p),e.consume(C),D)}function D(C){return C===m||C===null||ie(C)?(e.exit(p),k(C)):(e.consume(C),D)}function P(C){return C===125||Ne(C)?E(C):N(C)}function N(C){return C===125?(e.enter(a),e.consume(C),e.exit(a),e.exit(r),t):n(C)}}function ei(e,t,n,r,a,i,s){let o=0,u=0,l;return c;function c(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),f}function f(m){return m===93?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(i),g(m))}function g(m){if(m===93&&!u)return h(m);const b=e.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:l});return l&&(l.next=b),l=b,p(m)}function p(m){return m===null||o>999||m===91&&++u>32?n(m):m===93&&!u--?(e.exit("chunkText"),h(m)):ie(m)?s?n(m):(e.consume(m),e.exit("chunkText"),g):(e.consume(m),m===92?T:p)}function T(m){return m===91||m===92||m===93?(e.consume(m),o++,p):p(m)}function h(m){return e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t}}function ti(e,t,n,r){const a=this;return i;function i(o){return o===null||ie(o)||mn(o)||gn(o)?n(o):(e.enter(r),e.consume(o),s)}function s(o){return o===null||ie(o)||gn(o)||mn(o)&&o!==45&&o!==95?(e.exit(r),a.previous===45||a.previous===95?n(o):t(o)):(e.consume(o),s)}}const DE={tokenize:BE,concrete:!0},PE={tokenize:RE,partial:!0},ME={tokenize:FE,partial:!0},yr={tokenize:HE,partial:!0};function BE(e,t,n){const r=this,a=r.events[r.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let s=0,o;return u;function u(x){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),l(x)}function l(x){return x===58?(e.consume(x),s++,l):s<3?n(x):(e.exit("directiveContainerSequence"),ti.call(r,e,c,n,"directiveContainerName")(x))}function c(x){return x===91?e.attempt(PE,f,f)(x):f(x)}function f(x){return x===123?e.attempt(ME,g,g)(x):g(x)}function g(x){return be(e,p,"whitespace")(x)}function p(x){return e.exit("directiveContainerFence"),x===null?M(x):ie(x)?r.interrupt?t(x):e.attempt(yr,T,M)(x):n(x)}function T(x){return x===null?M(x):ie(x)?e.check(yr,y,M)(x):(e.enter("directiveContainerContent"),h(x))}function h(x){return e.attempt({tokenize:A,partial:!0},S,i?be(e,m,"linePrefix",i+1):m)(x)}function m(x){return x===null?S(x):ie(x)?e.check(yr,E,S)(x):E(x)}function b(x){if(x===null){const v=e.exit("chunkDocument");return r.parser.lazy[v.start.line]=!1,S(x)}return ie(x)?e.check(yr,_,w)(x):(e.consume(x),b)}function E(x){const v=e.enter("chunkDocument",{contentType:"document",previous:o});return o&&(o.next=v),o=v,b(x)}function y(x){return e.enter("directiveContainerContent"),h(x)}function _(x){e.consume(x);const v=e.exit("chunkDocument");return r.parser.lazy[v.start.line]=!1,h}function w(x){const v=e.exit("chunkDocument");return r.parser.lazy[v.start.line]=!1,S(x)}function S(x){return e.exit("directiveContainerContent"),M(x)}function M(x){return e.exit("directiveContainer"),t(x)}function A(x,v,k){let D=0;return be(x,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function P(F){return x.enter("directiveContainerFence"),x.enter("directiveContainerSequence"),N(F)}function N(F){return F===58?(x.consume(F),D++,N):D<s?k(F):(x.exit("directiveContainerSequence"),be(x,C,"whitespace")(F))}function C(F){return F===null||ie(F)?(x.exit("directiveContainerFence"),v(F)):k(F)}}}function RE(e,t,n){return ei(e,t,n,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function FE(e,t,n){return Za(e,t,n,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function HE(e,t,n){const r=this;return a;function a(s){return 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 $E={tokenize:zE},UE={tokenize:VE,partial:!0},qE={tokenize:GE,partial:!0};function zE(e,t,n){const r=this;return a;function a(c){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(c),i}function i(c){return c===58?(e.consume(c),e.exit("directiveLeafSequence"),ti.call(r,e,s,n,"directiveLeafName")):n(c)}function s(c){return c===91?e.attempt(UE,o,o)(c):o(c)}function o(c){return c===123?e.attempt(qE,u,u)(c):u(c)}function u(c){return be(e,l,"whitespace")(c)}function l(c){return c===null||ie(c)?(e.exit("directiveLeaf"),t(c)):n(c)}}function VE(e,t,n){return ei(e,t,n,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function GE(e,t,n){return Za(e,t,n,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const YE={tokenize:KE,previous:XE},WE={tokenize:QE,partial:!0},jE={tokenize:JE,partial:!0};function XE(e){return e!==58||this.events[this.events.length-1][1].type==="characterEscape"}function KE(e,t,n){const r=this;return a;function a(u){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(u),e.exit("directiveTextMarker"),ti.call(r,e,i,n,"directiveTextName")}function i(u){return u===58?n(u):u===91?e.attempt(WE,s,s)(u):s(u)}function s(u){return u===123?e.attempt(jE,o,o)(u):o(u)}function o(u){return e.exit("directiveText"),t(u)}}function QE(e,t,n){return ei(e,t,n,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function JE(e,t,n){return Za(e,t,n,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function ZE(){return{text:{58:YE},flow:{58:[DE,$E]}}}function ni(){const t=this.data(),n=t.micromarkExtensions||(t.micromarkExtensions=[]),r=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),a=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);n.push(ZE()),r.push(AE()),a.push(vE())}const ri={...en,attributes:{...en.attributes||{},span:[...(en.attributes||{}).span||[],"style"],font:[...(en.attributes||{}).font||[],"color"]}},ai=()=>e=>{or(e,t=>{const n=t;if(!n||n.type!=="textDirective"&&n.type!=="leafDirective"&&n.type!=="containerDirective"||n.name!=="color")return;const r=n.attributes||{},a=r.hex??r.color??r.value,i=typeof a=="string"?a.trim():"",s=/^#([0-9a-fA-F]{6})$/.test(i)?i:"#7C3AED",o=r.bold,l=`${o===!0||o==="true"||o===1||o==="1"?"font-weight:700;":""}color:${s};`;n.data=n.data||{},n.data.hName="span",n.data.hProperties={style:l}})},e1=e=>{const t=(e??"").trim();if(!t)return null;if(!(t.startsWith("{")&&t.endsWith("}")))return{kind:"text",text:t};try{const n=JSON.parse(t);if(!n||typeof n!="object")return{kind:"text",text:t};const r=n;return r.type==="steps"&&typeof r.title=="string"&&Array.isArray(r.images)&&Array.isArray(r.stepDescriptions)?{kind:"steps",data:n}:{kind:"text",text:t}}catch{return{kind:"text",text:t}}},t1=({config:e,files:t,debugTooltipSticky:n=!1,videoState:r})=>{const[a,i]=I.useState(null),[s,o]=I.useState(!1),u=I.useRef(null),l=I.useRef(null),c=I.useRef(null),f=200,g=200,p=I.useCallback(()=>{u.current&&(window.clearTimeout(u.current),u.current=null),l.current&&(window.clearTimeout(l.current),l.current=null),c.current!==null&&(window.cancelAnimationFrame(c.current),c.current=null)},[]),T=I.useCallback(()=>{p(),o(!0)},[p]),h=I.useCallback(k=>{if(p(),k){i(k),o(!1),c.current=window.requestAnimationFrame(()=>{c.current=null,o(!0)});return}u.current=window.setTimeout(()=>{u.current=null,o(!1),l.current=window.setTimeout(()=>{i(null),l.current=null},g)},f)},[p]);I.useEffect(()=>()=>{p()},[p]);const[m,b]=I.useState(0),E=I.useRef(null),[y,_]=I.useState(!1),w=I.useRef(new Map),[S,M]=I.useState(357),[A,x]=I.useState("bottom");return I.useEffect(()=>{b(0),_(!1),x("bottom")},[a?.key,a?.type]),I.useEffect(()=>{const k=w.current,D=new Set,P=N=>{if(!N||D.has(N)||k.has(N))return;D.add(N);const C=new window.Image;C.decoding="async",C.onload=()=>{const F=C.naturalWidth||C.width||0,U=C.naturalHeight||C.height||0;F>0&&U>0&&k.set(N,`${F} / ${U}`)},C.src=N};e.forEach(N=>{const C=N.tooltip;if(!C)return;const U=typeof C=="string"?(()=>{try{return JSON.parse(C)}catch{return null}})():C;if(!U||U.type!=="steps")return;const $=U.images;Array.isArray($)&&$.forEach(G=>{typeof G=="string"&&P(G)})})},[e]),I.useLayoutEffect(()=>{if(!s)return;if(a?.type!=="upload"&&a?.type!=="tag"&&a?.type!=="variable"){M(null);return}const k=requestAnimationFrame(()=>{const D=document.querySelector(".rte-steps-tooltip"),P=document.querySelector(".rte-steps-tooltip-title"),N=document.querySelector(".rte-steps-tooltip-step-badge");if(!D||!P||!N)return;const C=window.getComputedStyle(D),F=Number.parseFloat(C.paddingLeft)||0,U=Number.parseFloat(C.paddingRight)||0,$=Math.ceil(P.getBoundingClientRect().width||0),G=Math.ceil(N.getBoundingClientRect().width||0),W=$+16+G+Math.ceil(F+U),V=357,R=Math.max(240,Math.floor(window.innerWidth-32));M(Math.min(Math.max(W,V),R));const K=a?.anchorEl;if(K){const ae=K.getBoundingClientRect(),ne=D.getBoundingClientRect(),X=Math.ceil(ne.height||0),re=Math.max(0,Math.floor(window.innerHeight-ae.bottom)),se=Math.max(0,Math.floor(ae.top)),_e=re<X+12&&se>re;x(_e?"top":"bottom")}});return()=>cancelAnimationFrame(k)},[s,a?.key,a?.type,m,a?.anchorEl]),I.useEffect(()=>{if(!n)return;const k=D=>{D.key==="Escape"&&h(null)};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[n,h]),{tooltipPortal:a?.anchorEl?(()=>{if(!document.body.contains(a.anchorEl))return null;let k="",D={background:"#fff",padding:12,borderRadius:8,border:"0.5px solid #E5E5E5",boxShadow:"0 4px 20px 0 rgba(129, 124, 143, 0.2)"},P=!1;const N=U=>{const $=e1(U);if(!$)return null;if($.kind==="text")return{node:$.text,steps:!1};const G=$.data,L=Math.max(0,G.images?.length||0);if(L<=0)return{node:G.title,steps:!1};const W=Math.min(Math.max(m,0),L-1),V=Array.isArray(G.stepDescriptions)&&G.stepDescriptions[W]||"",R=(G.disclaimer||"").trim(),K=Array.isArray(G.images)?G.images[W]:void 0,ae=typeof K=="string"?w.current.get(K):void 0;return{node:q.jsxs("div",{className:"rte-steps-tooltip",style:S?{width:`${S}px`}:void 0,onMouseEnter:()=>T(),onMouseLeave:()=>{n||h(null)},onClick:X=>{X.preventDefault(),X.stopPropagation()},children:[q.jsxs("div",{className:"rte-steps-tooltip-header",children:[q.jsx("div",{className:"rte-steps-tooltip-title",children:G.title}),q.jsxs("div",{className:"rte-steps-tooltip-step-badge",children:["步骤 ",W+1,"/",L]})]}),G.description?q.jsx("div",{className:"rte-steps-tooltip-desc",children:q.jsx(wa,{remarkPlugins:[ni,ai],rehypePlugins:[Ua,[qa,ri]],components:{p:({children:X})=>q.jsx("p",{style:{margin:0},children:X})},children:G.description})}):null,q.jsx("div",{className:"rte-steps-tooltip-media",style:ae?{"--rte-steps-tooltip-aspect":ae}:void 0,children:q.jsx(ce.Image.PreviewGroup,{preview:{visible:y,current:W,onVisibleChange:X=>_(X),onChange:X=>{const re=Math.min(Math.max(X,0),L-1);b(re),E.current?.slideTo(re)}},children:q.jsx(Zi,{className:"rte-steps-tooltip-swiper",modules:[Md,Bd],navigation:!0,pagination:{clickable:!0},initialSlide:W,onSwiper:X=>{E.current=X},onSlideChange:X=>b(X.activeIndex),children:G.images.map((X,re)=>q.jsx(es,{children:q.jsx(ce.Image,{className:"rte-steps-tooltip-img",src:X,alt:`step-${re+1}`,width:"100%",style:{width:"100%",display:"block"},imgStyle:{width:"100%",height:"100%",objectFit:"contain",display:"block"},preview:{mask:null},onClick:()=>{b(re),E.current?.slideTo(re),_(!0)}})},`${X}-${re}`))},`${a.key}-${a.type}`)})}),q.jsx("div",{className:"rte-steps-tooltip-footer",children:q.jsx("div",{className:"rte-steps-tooltip-step-text",children:q.jsx(wa,{remarkPlugins:[ni,ai],rehypePlugins:[Ua,[qa,ri]],components:{p:({children:X})=>q.jsx("p",{style:{margin:0},children:X})},children:V})})}),R?q.jsxs("div",{className:"rte-steps-tooltip-disclaimer",children:[q.jsx("span",{className:"rte-steps-tooltip-disclaimer-icon",children:"⚠"}),q.jsx("div",{className:"rte-steps-tooltip-disclaimer-text",children:q.jsx(wa,{remarkPlugins:[ni,ai],rehypePlugins:[Ua,[qa,ri]],components:{p:({children:X})=>q.jsx("p",{style:{margin:0},children:X})},children:R})})]}):null]}),steps:!0}};if(a.type==="upload"){const U=a.anchorEl.dataset.tooltip,$=N(U);if($)k=$.node,P=$.steps;else{const G=e.find(W=>W.type==="upload"&&W.key===a.key),L=N(typeof G?.tooltip=="string"?G?.tooltip:G?.tooltip?JSON.stringify(G.tooltip):"");k=L?.node||"",P=L?.steps||!1}}else if(a.type==="tag"){const U=a.anchorEl.dataset.tooltip,$=N(U);k=$?.node||"",P=$?.steps||!1}else if(a.type==="upload-label")k=a.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName||a.anchorEl.dataset.fileName||"";else if(a.type==="variable"){const U=a.anchorEl.dataset.tooltip,$=N(U);k=$?.node||"",P=$?.steps||!1}else if(a.type==="upload-preview"){const U=t[a.key];let $=null,G=!1;typeof U=="string"?$=U:U instanceof File&&(U.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(U.name||""))&&($=URL.createObjectURL(U),G=!0),$?(k=q.jsx("div",{className:"rte-upload-preview",children:q.jsx("img",{className:"rte-upload-preview-img",src:$,alt:"preview"})}),D={background:"#fff",padding:0,borderRadius:4,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"},G&&setTimeout(()=>URL.revokeObjectURL($),1e3)):k=""}else if(a.type==="video-preview"){const U=r?.[a.key];U?.status==="success"&&U.videoUrl?(k=q.jsx("div",{className:"rte-video-preview",children:q.jsx("video",{src:U.videoUrl,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{width:120,height:120,borderRadius:8,objectFit:"cover"}})}),D={background:"#fff",padding:0,borderRadius:8,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"}):k=""}if(!k)return null;P&&(D={background:"#fff",padding:0,borderRadius:12,boxShadow:"0 4px 20px 0 rgba(129, 124, 143, 0.2)",border:"0.5px solid #E5E5E5"});const C="#0A0A0A",F=A;return $t.createPortal(q.jsx(ce.Tooltip,{arrow:!1,zIndex:999,destroyTooltipOnHide:!1,autoAdjustOverflow:!P,align:P?{points:F==="top"?["bc","tc"]:["tc","bc"],offset:F==="top"?[0,-4]:[0,4]}:void 0,title:a.type==="upload-preview"?q.jsx("div",{onMouseEnter:()=>T(),onMouseLeave:()=>{n||h(null)},onClick:U=>{U.preventDefault(),U.stopPropagation()},children:k}):P?k:q.jsx("div",{style:{maxWidth:"200px",fontSize:"12px",color:C},onMouseEnter:()=>T(),onMouseLeave:()=>{n||h(null)},onClick:U=>{U.preventDefault(),U.stopPropagation()},children:k}),open:s,placement:P?F==="top"?"top":"bottom":a.type==="upload-preview"?"topLeft":"top",getPopupContainer:()=>document.body,overlayInnerStyle:D,overlayClassName:"rte-tooltip-overlay",children:q.jsx("div",{style:{position:"fixed",left:`${a.anchorEl.getBoundingClientRect().left}px`,top:`${a.anchorEl.getBoundingClientRect().top-(a.type==="upload-label"?4:0)}px`,width:`${a.anchorEl.offsetWidth}px`,height:`${a.anchorEl.offsetHeight}px`,pointerEvents:"none"}})}),document.body)})():null,setPopoverVisible:h}},n1=(e,t)=>{const n=t.hideButtons==="hideTagClose",r=t.lockStructure||n?"":'<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>',a=t.lockStructure?' data-locked="true"':"",i=Je(e.tooltip),s=i?` data-tooltip="${oe(i)}" data-tag-key="${e.key||""}"`:"";return`<span contenteditable="false" class="tag-node group"${a}${s}><span class="tag-label">${e.text}</span>${r}</span>`},r1=(e,t)=>{const n=t?' data-locked="true" contenteditable="false"':' contenteditable="false"',a=(e.text??"").replace(/\n/g,"<br/>");return e.className?`<span data-type="text" class="${e.className}"${n}>${a}</span>`:t?`<span data-type="text"${n}>${a}</span>`:`<span data-type="text" contenteditable="false">${a}</span>`},a1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,Hu=(e,t)=>{const r=(e.key?t[e.key]:void 0)||e.text||"",a=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",i=Je(e.tooltip),s=i?` data-tooltip="${oe(i)}" data-variable-key="${e.key||""}"`:"";if(e.useAntd===!0){const g=r?encodeURIComponent(r):"",p=oe(e.placeholder||""),T=e.allowNewline===!1?' data-allow-newline="0"':' data-allow-newline="1"',h=zn(r||e.placeholder||""),m=i&&!r?18:0;return`<span contenteditable="false" data-type="variable" data-variable-render="antd-textarea" data-key="${e.key}" data-value="${g}" data-placeholder="${p}" data-estimated-width="${Math.min(600,h+m)}"${T}${a}${s} class="rte-variable-host-v2"></span>`}const o=!r,u=o?"":oe(r).replace(/\n/g,"<br/>"),l=o?"show-placeholder":"",c=i&&o?"rte-variable-with-icon":"",f=i&&o?"":"hidden";return`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder||""}"${a}${s} class="variable-chip ${l}${c?` ${c}`:""}">${u}${i?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${f}" data-variable-key="${e.key}" data-tooltip="${oe(i)}" ></i>`:""}</span>`},i1=(e,t)=>{const n=Hu(e,t);return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${a1}${n}</span>`:n},$u=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,s1=e=>/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(e);function ii(e,t){if(e==null)return{hasFile:!1,fileName:t,uploadIcon:"<i class='iconfont icon-shangchuan1'></i>"};if(typeof e=="string"){const r=decodeURIComponent(e.split("/").pop()?.split("?")[0]||"file"),a=s1(e)?`<img class="upload-icon-img upload-icon-preview" src="${e}" alt="preview" />`:"<i class='iconfont icon-exlwenjian'></i>";return{hasFile:!0,fileName:r,uploadIcon:a}}const n=Rl(e)?`<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(e)}" alt="preview" />`:"<i class='iconfont icon-exlwenjian'></i>";return{hasFile:!0,fileName:e.name,uploadIcon:n}}const o1=(e,t)=>{const n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Je(e.tooltip),a=r?` data-tooltip="${oe(r)}"`:"",{hasFile:i,fileName:s,uploadIcon:o}=ii(t[e.key],e.text),u=i?"":"hidden",l=r&&!i?"":"hidden",c=i?"has-file":"",f=i&&s?` data-file-name="${s.replace(/"/g,""")}"`:"",g=(e.text||"").trim(),T=i&&g.length>=12?`<span ${n} contenteditable="false" class="exclusion-wrapper upload-hint">${g}</span>`:"";return{uploadHtml:`<span contenteditable="false" data-type="upload" data-key="${e.key}"${a} class="upload-chip"><span class="upload-inner-wrapper ${c}"><span class="upload-icon">${o}</span><span class="upload-label"${f}>${s||e.text}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${l}" data-upload-key="${e.key}" data-tooltip="${oe(r)}" ></i>`:""}<span class="file-remove-btn ${u}" title="移除文件">×</span></span></span>`,hintHtml:T}},u1=(e,t,n)=>{const r=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"";if(typeof e.maxCount=="number"&&typeof e.minCount=="number"&&e.maxCount>1){const E=Je(e.tooltip),y=E?` data-tooltip="${oe(E)}"`:"",_=e.minCount||1,w=e.maxCount||3;let S=0;for(let v=0;v<w;v++){const k=`${e.key}-${v}`;t[k]!=null&&(S+=1)}const M=Math.min(w,Math.max(_,S+(S<w?1:0)));let A="";for(let v=0;v<M;v++){const k=`${e.key}-${v}`,{hasFile:D,fileName:P,uploadIcon:N}=ii(t[k],e.text),C=D?"":"hidden",F=E&&!D?"":"hidden",U=D?"has-file":"",$=D&&P?` data-file-name="${P.replace(/"/g,""")}"`:"",G=` data-batch-key="${e.key}"`,L=` data-batch-index="${v}"`,W=`<span contenteditable="false" data-type="upload" data-key="${k}"${G}${L}${y} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${U}"><span class="upload-icon">${N}</span><span class="upload-label"${$}>${P||e.text}</span>${E?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${F}" data-upload-key="${k}" data-tooltip="${oe(E)}" ></i>`:""}<span class="file-remove-btn ${C}" title="移除文件">×</span></span></span>`;A+=W}return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${$u}<span class="rte-upload-batch-chips">${A}${n}</span></span>`:`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-upload-batch-chips">${A}${n}</span>`}const i=Je(e.tooltip),s=i?` data-tooltip="${oe(i)}"`:"",{hasFile:o,fileName:u,uploadIcon:l}=ii(t[e.key],e.text),c=o?"":"hidden",f=i&&!o?"":"hidden",g=o?"has-file":"",p=o&&u?` data-file-name="${u.replace(/"/g,""")}"`:"",T=(e.text||"").trim(),m=o&&e.showHint===!0&&T.length>=12?`<span ${r} contenteditable="false" class="exclusion-wrapper upload-hint">${T}</span>`:"",b=`<span contenteditable="false" data-type="upload" data-key="${e.key}"${s} class="upload-chip"><span class="upload-inner-wrapper ${g}"><span class="upload-icon">${l}</span><span class="upload-label"${p}>${u||e.text}</span>${i?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${f}" data-upload-key="${e.key}" data-tooltip="${oe(i)}" ></i>`:""}<span class="file-remove-btn ${c}" title="移除文件">×</span></span></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${$u}${b}${n}</span>${m}`:b+n+m},l1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,c1=(e,t)=>{const n=t[e.key]||e.defaultValue||"",r=encodeURIComponent(JSON.stringify(e.options||[])),a=e.placeholder?` data-placeholder="${e.placeholder}"`:"",i=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",s=e.required?' data-required="true"':"",o=`<span data-type="select" data-key="${e.key}" data-value="${n}" data-options="${r}"${a}${i}${s} class="rte-select-host"></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${l1}${o}</span>`:o},d1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,f1=(e,t,n)=>{const r=t[e.key]||"",a=typeof e.maxHeight=="number"?e.maxHeight:252,i=e.placeholder?` placeholder="${e.placeholder}"`:"",s=`<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" style="max-height:${a}px;"${i}>${r}</textarea>`,o=`<div class="rte-textarea-wrapper" data-key="${e.key}">${s}</div>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${d1}${o}</span>`:o},p1=(e,t,n)=>{const r=t[e.key]||e.text||"",a=typeof e.minHeight=="number"?e.minHeight:40,i=typeof e.maxHeight=="number"?e.maxHeight:160,s=Math.max(i,a),o=e.placeholder?` data-placeholder="${e.placeholder}"`:"",u=e.expandable!==!1,l=r,c=`<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${o} style="min-height:${a}px;max-height:${s}px;overflow:auto;">${l}</div>`,f=u?`<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>`:"",g=`<div class="rte-richtext-wrapper${u?" rte-richtext-toggleable":""}" data-key="${e.key}">${c}${f}</div>`,p=`<div class="rte-richtext-container" data-key="${e.key}">${g}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${p}</div>`:p},h1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,m1=(e,t)=>{const n=`${e.key}__url`,a=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0,i=e.key?t[e.key]:void 0,s=a??i??e.text??"",o=!s,u=o?"":s,l=o?"show-placeholder":"",c=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",f=Je(e.tooltip),g=f?` data-tooltip="${oe(f)}" data-variable-key="${e.key||""}"`:"",p=f&&o?"rte-variable-with-icon":"",T=f&&o?"":"hidden",h=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${oe(e.placeholder||"")}"${c}${g} class="variable-chip rte-report-url ${l}${p?` ${p}`:""}">${u}${f?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${T}" data-variable-key="${e.key}" data-tooltip="${oe(f)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${h1}${h}</span>`:h},g1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,b1=(e,t)=>{const n=`${e.key}__name`,a=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0,i=e.key?t[e.key]:void 0,s=a??i??e.text??"",o=!s,u=o?"":s,l=o?"show-placeholder":"",c=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",f=Je(e.tooltip),g=f?` data-tooltip="${oe(f)}" data-variable-key="${e.key||""}"`:"",p=f&&o?"rte-variable-with-icon":"",T=f&&o?"":"hidden",h=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${oe(e.placeholder||"")}"${c}${g} class="variable-chip rte-markdown-name ${l}${p?` ${p}`:""}">${u}${f?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${T}" data-variable-key="${e.key}" data-tooltip="${oe(f)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${g1}${h}</span>`:h},E1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,y1=(e,t)=>{const n=e.sourceTextKey||`${e.key}__sourceText`,a=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0,i=e.key?t[e.key]:void 0,s=a??i??e.text??"",o=!s,u=o?"":s,l=o?"show-placeholder":"",c=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",f=e.sourceTextKey?` data-source-text-key="${oe(e.sourceTextKey)}"`:"",g=Je(e.tooltip),p=g?` data-tooltip="${oe(g)}" data-variable-key="${e.key||""}"`:"",T=g&&o?"rte-variable-with-icon":"",h=g&&o?"":"hidden",m=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${oe(e.placeholder||"")}"${c}${f}${p} class="variable-chip rte-markdown-input ${l}${T?` ${T}`:""}">${u}${g?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${h}" data-variable-key="${e.key}" data-tooltip="${oe(g)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${E1}${m}</span>`:m},T1=(e,t)=>{const n=typeof e.moduleIndex=="number"?e.moduleIndex:0,r=`${e.key}__module_${n}`,i=Object.prototype.hasOwnProperty.call(t,r)?t[r]:e.text||"",s=typeof e.minHeight=="number"?e.minHeight:80,o=typeof e.maxHeight=="number"?e.maxHeight:240,u=Math.max(o,s),l=e.placeholder?` data-placeholder="${oe(e.placeholder)}"`:"",c=i,f=`<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${n}" class="rte-richtext rte-report-module"${l} style="min-height:${s}px;max-height:${u}px;overflow:auto;">${c}</div>`,g=`<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${f}</div>`,p=`<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${g}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${p}</div>`:p},x1=(e,t)=>{const n=typeof e.moduleIndex=="number"?e.moduleIndex:0,r=`${e.key}__module_${n}`,i=Object.prototype.hasOwnProperty.call(t,r)?t[r]:e.text||"",s=typeof e.minHeight=="number"?e.minHeight:80,o=typeof e.maxHeight=="number"?e.maxHeight:240,u=Math.max(o,s),l=e.placeholder?` data-placeholder="${oe(e.placeholder)}"`:"",c=i,g=typeof c=="string"&&c.startsWith("请补充:")?' data-is-placeholder="true"':"",p=`<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${n}" class="rte-richtext rte-markdown-module"${l}${g} style="min-height:${s}px;max-height:${u}px;overflow:auto;">${c}</div>`,T=`<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${p}</div>`,h=`<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${T}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${h}</div>`:h},C1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,S1=(e,t)=>{const n=t[e.key]||"",r=e.placeholder?` data-placeholder="${e.placeholder}"`:"",a=e.limitRange?` data-limit-range="${e.limitRange}"`:"",i=e.disableFuture?' data-disable-future="true"':"",s=`<div data-type="datepicker" data-key="${e.key}" data-value="${n}" class="rte-datepicker-host"${r}${a}${i}></div>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${C1}${s}</span>`:s},A1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,v1=(e,t)=>{const n=t[e.key]||(typeof e.defaultNumber=="number"?String(e.defaultNumber):""),r=typeof e.min=="number"?` min="${e.min}"`:"",a=typeof e.max=="number"?` max="${e.max}"`:"",i=e.placeholder?oe(e.placeholder):"",s=i?` placeholder="${i}"`:"",o=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",u=n||e.placeholder||"",l=zn(u),c=`<input type="text" inputmode="numeric" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${oe(n)}" style="width: ${l}px;"${r}${a}${s}${o} />`,g=`<span class="rte-number-input-wrap" data-placeholder="${i}" data-has-value="${n?"1":"0"}">${c}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${A1}${g}</span>`:g},_1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,w1=(e,t,n)=>{const r=e.maxCount||9,a=n[e.key]||1,i=Math.min(a,r);if(e.required){const u=e.exclusionGroup?`data-group="${e.exclusionGroup}"`:"",l=Je(e.tooltip);let c="";for(let f=0;f<i;f++){const g=`${e.key}_${f}`,p=t[g]||"",T=!p,h=T?"":oe(p).replace(/\n/g,"<br/>"),m=T?"show-placeholder":"",b=l&&T?"rte-variable-with-icon":"",E=l?` data-tooltip="${oe(l)}" data-variable-key="${e.key||""}"`:"",y=l&&T?"":"hidden",_=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",w=`<span contenteditable="true" data-type="variable" data-key="${g}" data-multi-key="${e.key}" data-index="${f}" data-placeholder="${e.placeholder||""}"${_}${E} class="variable-chip ${m}${b?` ${b}`:""}">${h}${l?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${oe(l)}" ></i>`:""}</span>`;f===0?c+=`<span ${u} class="exclusion-wrapper required-upload-group required-multi-first">${_1}${w}</span>`:c+=w}return c}const s=Je(e.tooltip);let o="";for(let u=0;u<i;u++){const l=`${e.key}_${u}`,c=t[l]||"",f=!c,g=f?"":oe(c).replace(/\n/g,"<br/>"),p=f?"show-placeholder":"",T=s&&f?"rte-variable-with-icon":"",h=s?` data-tooltip="${oe(s)}" data-variable-key="${e.key||""}"`:"",m=s&&f?"":"hidden",b=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",E=`<span contenteditable="true" data-type="variable" data-key="${l}" data-multi-key="${e.key}" data-index="${u}" data-placeholder="${e.placeholder||""}"${b}${h} class="variable-chip ${p}${T?` ${T}`:""}">${g}${s?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${m}" data-variable-key="${e.key}" data-tooltip="${oe(s)}" ></i>`:""}</span>`;o+=E}return o},si=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,k1=(e,t)=>{const n=e.key,r=t[n],a=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",i=Je(e.tooltip),s=i?` data-tooltip="${oe(i)}"`:"";let o;if(r?.status==="loading"){const l=typeof r.progress=="number"?Math.min(Math.max(r.progress,0),100):0,c="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Crect fill='%23999' width='1' height='1'/%3E%3C/svg%3E",f=2*Math.PI*6.5,g=f*(1-l/100),p=`<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${f}" stroke-dashoffset="${g}" transform="rotate(-90 8 8)"/></svg>`;o=`<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${c}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${p}</span><span class="video-label">解析中...</span></span>`}else if(r?.status==="success"&&r.videoUrl){const l=r.fileName||"视频",c='<svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg>';o=`<span class="video-inner-wrapper video-url-inner has-video">${r.thumbnail?`<span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${oe(r.thumbnail)}" alt="thumbnail" />${c}</span>`:`<span class="video-thumbnail-wrapper"><span class="video-thumbnail video-thumbnail-placeholder"><i class="iconfont icon-shipin" style="font-size:20px;color:#8c8c8c;"></i></span>${c}</span>`}<span class="video-label" data-file-name="${oe(l)}">${oe(l)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`}else{const l=e.placeholder||"请粘贴想要分析的抖音视频链接",c=i?"rte-variable-with-icon":"",f=i?"":"hidden",g=`<span contenteditable="true" data-type="variable" data-key="${n}" data-node-type="video-url" data-placeholder="${oe(l)}"${a}${s} class="variable-chip rte-video-url show-placeholder${c?` ${c}`:""}">${i?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${f}" data-variable-key="${n}" data-tooltip="${oe(i)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${si}${g}</span>`:g}const u=`<span contenteditable="false" data-type="video-url" data-key="${n}"${s}${a} class="video-chip">${o}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${si}${u}</span>`:u},N1=(e,t)=>{const n=e.key,r=t[n],a=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",i=Je(e.tooltip),s=i?` data-tooltip="${oe(i)}"`:"";let o;if(r?.status==="loading"){const l=typeof r.progress=="number"?Math.min(Math.max(r.progress,0),100):0,c=r.fileName||"上传中...",f=r.thumbnail||"",g=2*Math.PI*6.5,p=g*(1-l/100),T=`<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${g}" stroke-dashoffset="${p}" transform="rotate(-90 8 8)"/></svg>`;o=`<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${oe(f)}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${T}</span><span class="video-label">${oe(c)}</span></span>`}else if(r?.status==="success"&&r.thumbnail&&r.videoUrl){const l=r.fileName||"视频文件";o=`<span class="video-inner-wrapper video-upload-inner has-video"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${oe(r.thumbnail)}" alt="thumbnail" /><svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg></span><span class="video-label" data-file-name="${oe(l)}">${oe(l)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`}else{const l=e.text||"请上传想要分析的视频文件",c=i?"":"hidden";o=`<span class="video-inner-wrapper video-upload-inner"><i class="iconfont icon-shangchuan1" style="font-size:16px;"></i><span class="video-label">${oe(l)}</span>${i?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${c}" data-upload-key="${n}" data-tooltip="${oe(i)}" ></i>`:""}</span>`}const u=`<span contenteditable="false" data-type="video-upload" data-key="${n}"${s}${a} class="video-chip">${o}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${si}${u}</span>`:u},I1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,L1=(e,t)=>{const n=t[e.key]||e.defaultValue||"",r=encodeURIComponent(JSON.stringify(e.options||[])),a=e.placeholder?` data-placeholder="${e.placeholder}"`:"",i=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",s=e.required?' data-required="true"':"",o=`<span data-type="searchable-select" data-key="${e.key}" data-value="${n}" data-options="${r}"${a}${i}${s} class="rte-searchable-select-host"></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${I1}${o}</span>`:o},O1=[{label:"北京市",value:"北京市",children:[{label:"北京市",value:"北京市",children:[{label:"东城区",value:"东城区"},{label:"西城区",value:"西城区"},{label:"朝阳区",value:"朝阳区"},{label:"海淀区",value:"海淀区"},{label:"丰台区",value:"丰台区"},{label:"通州区",value:"通州区"}]}]},{label:"上海市",value:"上海市",children:[{label:"上海市",value:"上海市",children:[{label:"黄浦区",value:"黄浦区"},{label:"徐汇区",value:"徐汇区"},{label:"静安区",value:"静安区"},{label:"浦东新区",value:"浦东新区"},{label:"闵行区",value:"闵行区"}]}]},{label:"浙江省",value:"浙江省",children:[{label:"杭州市",value:"杭州市",children:[{label:"西湖区",value:"西湖区"},{label:"上城区",value:"上城区"},{label:"拱墅区",value:"拱墅区"},{label:"余杭区",value:"余杭区"},{label:"萧山区",value:"萧山区"}]},{label:"宁波市",value:"宁波市",children:[{label:"海曙区",value:"海曙区"},{label:"江北区",value:"江北区"},{label:"鄞州区",value:"鄞州区"}]},{label:"温州市",value:"温州市",children:[{label:"鹿城区",value:"鹿城区"},{label:"龙湾区",value:"龙湾区"},{label:"瓯海区",value:"瓯海区"}]}]},{label:"广东省",value:"广东省",children:[{label:"广州市",value:"广州市",children:[{label:"天河区",value:"天河区"},{label:"越秀区",value:"越秀区"},{label:"海珠区",value:"海珠区"},{label:"白云区",value:"白云区"},{label:"番禺区",value:"番禺区"}]},{label:"深圳市",value:"深圳市",children:[{label:"南山区",value:"南山区"},{label:"福田区",value:"福田区"},{label:"罗湖区",value:"罗湖区"},{label:"宝安区",value:"宝安区"},{label:"龙岗区",value:"龙岗区"}]},{label:"东莞市",value:"东莞市",children:[{label:"莞城区",value:"莞城区"},{label:"南城区",value:"南城区"},{label:"东城区",value:"东城区"}]}]},{label:"江苏省",value:"江苏省",children:[{label:"南京市",value:"南京市",children:[{label:"玄武区",value:"玄武区"},{label:"鼓楼区",value:"鼓楼区"},{label:"建邺区",value:"建邺区"},{label:"江宁区",value:"江宁区"}]},{label:"苏州市",value:"苏州市",children:[{label:"姑苏区",value:"姑苏区"},{label:"虎丘区",value:"虎丘区"},{label:"吴中区",value:"吴中区"},{label:"工业园区",value:"工业园区"}]}]},{label:"四川省",value:"四川省",children:[{label:"成都市",value:"成都市",children:[{label:"锦江区",value:"锦江区"},{label:"青羊区",value:"青羊区"},{label:"武侯区",value:"武侯区"},{label:"高新区",value:"高新区"}]}]},{label:"湖北省",value:"湖北省",children:[{label:"武汉市",value:"武汉市",children:[{label:"武昌区",value:"武昌区"},{label:"江汉区",value:"江汉区"},{label:"洪山区",value:"洪山区"}]}]},{label:"福建省",value:"福建省",children:[{label:"福州市",value:"福州市",children:[{label:"鼓楼区",value:"鼓楼区"},{label:"台江区",value:"台江区"},{label:"仓山区",value:"仓山区"}]},{label:"厦门市",value:"厦门市",children:[{label:"思明区",value:"思明区"},{label:"湖里区",value:"湖里区"},{label:"集美区",value:"集美区"}]}]},{label:"山东省",value:"山东省",children:[{label:"济南市",value:"济南市",children:[{label:"历下区",value:"历下区"},{label:"市中区",value:"市中区"},{label:"槐荫区",value:"槐荫区"}]},{label:"青岛市",value:"青岛市",children:[{label:"市南区",value:"市南区"},{label:"市北区",value:"市北区"},{label:"崂山区",value:"崂山区"}]}]},{label:"河南省",value:"河南省",children:[{label:"郑州市",value:"郑州市",children:[{label:"金水区",value:"金水区"},{label:"二七区",value:"二七区"},{label:"中原区",value:"中原区"}]}]},{label:"其他",value:"其他",children:[{label:"国外",value:"国外"}]}],D1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,P1=(e,t)=>{const n=t[e.key]||e.defaultValue||"",r=e.cascaderOptions&&e.cascaderOptions.length>0?e.cascaderOptions:O1,a=encodeURIComponent(JSON.stringify(r)),i=e.placeholder?` data-placeholder="${e.placeholder}"`:"",s=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",o=e.required?' data-required="true"':"",u=`<span data-type="cascader" data-key="${e.key}" data-value="${n}" data-options="${a}"${i}${s}${o} class="rte-cascader-host"></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${D1}${u}</span>`:u};function M1(e,t,n,r,a,i={},s,o,u){if(!e.current)return;const l=/[;;,,。.!!??::、]/,c=h=>{const m=(h??"").trim();return m.length===1&&l.test(m)},f=h=>{const m=h??"",b=m.match(new RegExp(`^\\s*(${l.source})`));if(!b)return null;const E=b[1],y=m.replace(new RegExp(`^\\s*${l.source}`),"");return{punct:E,rest:y}},g=h=>`<span data-type="text" class="rte-inline-punct" contenteditable="false">${h}</span>`,p=[];let T=0;for(;T<t.length;){const h=t[T],m=T+1<t.length?t[T+1]:null;let b=!1;if(h.type==="text"&&(h.text?.includes("icon-bitian")||h.className==="rte-text-required")&&m){const A=m.type==="upload"&&m.exclusionGroup==="fileInput"&&h.exclusionGroup==="fileInput"&&h.exclusionGroup===m.exclusionGroup,x=m.type==="variable"&&m.exclusionGroup==="textInput"&&h.exclusionGroup==="textInput"&&h.exclusionGroup===m.exclusionGroup;if(A){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let P="";h.className?P=`<span class="${h.className}">${h.text??""}</span>`:P=h.text??"";const N=m,{uploadHtml:C,hintHtml:F}=o1(N,n);p.push(k+P+C+D+F),T+=2;continue}if(x){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let P="";h.className?P=`<span class="${h.className}">${h.text??""}</span>`:P=h.text??"";const C=Hu(m,a);p.push(k+P+C+D),T+=2;continue}}const y=h.exclusionGroup?`data-group="${h.exclusionGroup}"`:"",_=h.exclusionGroup?`<span ${y} class="exclusion-wrapper">`:"",w=h.exclusionGroup?"</span>":"";let S="";if(h.type==="tag")S=n1(h,{lockStructure:r,hideButtons:s});else if(h.type==="text")S=r1(h,r);else if(h.type==="variable"&&h.key)S=i1(h,a);else if(h.type==="report-url"&&h.key)S=m1(h,a);else if(h.type==="markdown-name"&&h.key)S=b1(h,a);else if(h.type==="markdown"&&h.key)S=y1(h,a);else if(h.type==="upload"&&h.key){const A=!!m&&m.type==="text"&&!m.className&&!m.exclusionGroup&&c(m.text),x=A?(m.text??"").trim():"",v=x?g(x):"";A&&(b=!0),S=u1(h,n,v)}else h.type==="select"&&h.key?S=c1(h,a):h.type==="textarea"&&h.key?S=f1(h,a):h.type==="richtext"&&h.key?S=p1(h,a):h.type==="report-module"&&h.key?S=T1(h,a):h.type==="markdown-module"&&h.key?S=x1(h,a):h.type==="datepicker"&&h.key?S=S1(h,a):h.type==="number-input"&&h.key?S=v1(h,a):h.type==="multi-variable"&&h.key?S=w1(h,a,i):h.type==="video-url"&&h.key?S=k1(h,u||{}):h.type==="video-upload"&&h.key?S=N1(h,u||{}):h.type==="searchable-select"&&h.key?S=L1(h,a):h.type==="cascader"&&h.key&&(S=P1(h,a));const M=_+S+w;if(h.type==="text"&&!h.className&&!h.exclusionGroup){if(c(h.text)&&p.length>0){const x=p[p.length-1],v=(h.text??"").trim();p[p.length-1]=`<span class="rte-inline-group">${x}${g(v)}</span>`,T++;continue}const A=f(h.text);if(A&&p.length>0){const x=p[p.length-1];p[p.length-1]=`<span class="rte-inline-group">${x}${g(A.punct)}</span>`;const v=A.rest;if(v){const k=v.replace(/\n/g,"<br/>");p.push(`<span data-type="text" contenteditable="false">${k}</span>`)}T++;continue}}p.push(M),T+=b?2:1}e.current&&(e.current.innerHTML=p.join(""),setTimeout(()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="variable"]').forEach(m=>{if(m.dataset.variableRender==="antd-textarea")return;if(m.innerText.replace(/\n/g,"").replace(/\u200B/g,""))m.classList.remove("show-placeholder");else{const y=Array.from(m.childNodes),_=m.querySelector(".variable-info-icon");y.forEach(S=>{if(S.nodeType===Node.TEXT_NODE){m.removeChild(S);return}S.nodeType===Node.ELEMENT_NODE&&S.tagName==="BR"&&m.removeChild(S)});const w=document.createTextNode("");_&&_.parentNode===m?m.insertBefore(w,_):m.firstChild?m.insertBefore(w,m.firstChild):m.appendChild(w),m.classList.add("show-placeholder")}})},0))}function B1(e,t,n,r,a={},i,s,o,u,l,c){const f=I.useRef(new Set),g=I.useRef(""),p=I.useRef(!1),T=I.useRef({}),h=I.useCallback(()=>{if(!e.current)return;if(t.length===0){e.current.innerHTML="";return}const m=t.filter(S=>S.key&&S.type!=="report-module"&&S.type!=="markdown-module").map(S=>`${S.type}:${S.key}`).join("|");g.current!==m&&(g.current=m,f.current=new Set,p.current=!0);const b=p.current;let E={};const y=new Set;e.current&&!b&&e.current.querySelectorAll('[data-type="variable"]').forEach(M=>{const A=M.dataset.key;if(!A)return;let x="";if(M.dataset.variableRender==="antd-textarea"){const v=(M.getAttribute("data-value")||"").trim();try{x=v?decodeURIComponent(v).replace(/\r\n/g,`
|
|
61
|
-
`).trim():""}catch{
|
|
62
|
-
`);
|
|
34
|
+
`);let f=0;for(const y of c){const h=l.measureText(y||" ").width||0;f=Math.max(f,h)}const m=Number.parseFloat(n.letterSpacing||""),p=Number.isFinite(m)?m:0;if(p>0){const y=c.reduce((h,b)=>h.length>=b.length?h:b,"");f+=p*Math.max(0,y.length-1)}return Math.ceil(f)}function za(e,t){if(!e.current)return;e.current.querySelectorAll('[data-type="variable"]').forEach(l=>{if(l.dataset.variableRender==="antd-textarea")return;const r=l.innerText.replace(/\u200B/g,"").trim();if(r.length===0){const p=l.querySelector(".variable-info-icon");Array.from(l.childNodes).forEach(b=>{if(b.nodeType===Node.TEXT_NODE){l.removeChild(b);return}b.nodeType===Node.ELEMENT_NODE&&b.tagName==="BR"&&l.removeChild(b)});const y=document.createTextNode("");p&&p.parentNode===l?l.insertBefore(y,p):l.firstChild?l.insertBefore(y,l.firstChild):l.appendChild(y),l.classList.add("show-placeholder");const h=l.dataset.placeholder||"";if(h){const g=(()=>{try{const M=Zo(h,l);if(!M||!Number.isFinite(M)){const S=qa(h);return Math.max(0,S-22)}return M}catch{const M=qa(h);return Math.max(0,M-22)}})(),E=(()=>{if(!l.classList.contains("rte-variable-with-icon"))return 0;const M=l.querySelector(".variable-info-icon:not(.hidden)");if(!M)return 24;try{const S=window.getComputedStyle(M),T=Math.ceil(M.getBoundingClientRect().width||0)||16,A=Math.ceil(Number.parseFloat(S.right||"0"))||4;return Math.max(16,Math.min(120,T+A+2))}catch{return 24}})();E>0?l.style.setProperty("--rte-icon-pad-right",`${E}px`):l.style.removeProperty("--rte-icon-pad-right");const _=2,w=E>0?E:8,C=Math.max(24,Math.min(600,Math.ceil(g+8+w+_)));l.style.minWidth=`${C}px`}else l.style.minWidth=""}else l.classList.remove("show-placeholder"),l.style.minWidth="",l.style.removeProperty("--rte-icon-pad-right");const i=l.innerText||"",u=!!l.querySelector("br")||i.includes(`
|
|
35
|
+
`),s=l.offsetHeight>32,o=r.length>0&&(u||s);l.classList.toggle("rte-variable-multiline",o),l.classList.toggle("rte-variable-force-block",o);const c=l.closest(".rte-inline-group");c&&c.classList.toggle("rte-inline-group-force-block",o);const f=l.closest(".required-upload-group, .required-multi-first");f&&f.classList.toggle("rte-required-group-force-block",o);const m=f?f.parentElement?.closest(".exclusion-wrapper"):l.closest(".exclusion-wrapper");m&&m!==f&&m.classList.toggle("rte-exclusion-force-block",o)})}function Ol(e,t,a,l){if(!e.current)return;const n=h=>{h.classList.contains("rte-richtext-host-expanded")&&(h.style.setProperty("display","flex","important"),h.style.setProperty("flex-direction","column","important"),h.style.setProperty("flex","1 1 auto","important"),h.style.setProperty("min-height","0","important"),h.style.setProperty("width","100%","important"),h.style.setProperty("align-self","stretch","important"))},r=h=>{if(!h.closest('[data-rte-force-hidden="1"]')){if(h.classList.contains("rte-richtext-host-expanded")){n(h);return}if(h.classList.contains("required-upload-group")){h.style.setProperty("display","inline-flex","important");return}if(h.classList.contains("exclusion-wrapper")){h.classList.contains("rte-exclusion-force-block")?h.style.setProperty("display","block","important"):h.style.setProperty("display","inline-block","important");return}h.style.setProperty("display","inline-block","important")}},i=h=>{h.closest('[data-rte-force-hidden="1"]')||(h.style.display="none",h.style.setProperty("display","none","important"))},u=t.some(h=>h.exclusionGroup==="separator");if(u){const h=[];let b=[];for(const T of t){if(T.exclusionGroup==="separator"){b.length&&h.push(b),b=[];continue}!T.exclusionGroup||T.exclusionGroup==="separator"||(T.type==="upload"&&T.key?b.push({type:"upload",key:T.key}):(T.type==="video-url"||T.type==="video-upload")&&T.key?b.push({type:T.type,key:T.key}):(T.type==="variable"||T.type==="multi-variable"||T.type==="markdown"||T.type==="markdown-name"||T.type==="markdown-module")&&T.key?b.push({type:T.type==="multi-variable"?"multi-variable":"variable",key:T.key}):b.push({type:"other",nodeType:T.type}))}b.length&&h.push(b);const v=T=>{const A=t.find(k=>k.type==="upload"&&k.key===T);return A?typeof A.maxCount=="number"&&A.maxCount>1?A.maxCount:1:0},g=h.map(T=>{for(const A of T)if(A.type!=="other"){if(A.type==="video-url"||A.type==="video-upload"){const k=l?.[A.key];if(k?.status==="success"&&k.videoUrl||k?.status==="loading")return!0;if(A.type==="video-url"){const D=e.current.querySelector(`[data-type="variable"][data-node-type="video-url"][data-key="${A.key}"]`);if(D&&!D.classList.contains("show-placeholder")&&D.innerText.replace(/[\u200B\n]/g,"").trim().length>0)return!0}continue}if(A.type==="upload"){if(a[A.key]!==null&&a[A.key]!==void 0)return!0;const k=v(A.key);for(let D=0;D<k;D++){const P=`${A.key}-${D}`;if(a[P]!==null&&a[P]!==void 0)return!0}continue}if(A.type==="multi-variable"){const k=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${A.key}"]`);for(const D of k){if(D.dataset.variableRender==="antd-textarea"){const P=D.dataset.value||"";let N=P;try{N=decodeURIComponent(P)}catch{N=P}if(N.trim().length>0)return!0;continue}if(!D.classList.contains("show-placeholder")&&D.innerText.replace(/[\u200B\n]/g,"").trim().length>0)return!0}continue}if(A.type==="variable"){if(e.current.querySelector(`[data-node-type="markdown-module"][data-key="${A.key}"]`))return!0;const D=e.current.querySelector(`[data-type="variable"][data-key="${A.key}"]`);if(!D)continue;if(D.dataset.variableRender==="antd-textarea"){const P=D.dataset.value||"";let N=P;try{N=decodeURIComponent(P)}catch{N=P}if(N.trim().length>0)return!0}else if(!D.classList.contains("show-placeholder")&&D.innerText.replace(/[\u200B\n]/g,"").trim().length>0)return!0;continue}}return!1}),E=g.some(Boolean),_=E?g.findIndex(Boolean):-1,w=T=>e.current.querySelector(`[data-type="video-url"][data-key="${T}"], [data-type="video-upload"][data-key="${T}"], [data-type="variable"][data-node-type="video-url"][data-key="${T}"]`),C=T=>{for(const A of h[T]||[])if(A.type!=="other"){if(A.type==="video-url"||A.type==="video-upload"){const k=w(A.key);k&&r(k.closest(".exclusion-wrapper")||k);continue}if(A.type==="upload"){e.current.querySelectorAll(`[data-type="upload"][data-key="${A.key}"], [data-type="upload"][data-key^="${A.key}-"]`).forEach(D=>r(D.closest(".exclusion-wrapper")||D));continue}if(A.type==="multi-variable"){e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${A.key}"]`).forEach(D=>{const P=D.closest(".exclusion-wrapper")||D;r(P)});continue}if(A.type==="variable"){const k=e.current.querySelector(`[data-type="variable"][data-key="${A.key}"]`);k&&r(k.closest(".exclusion-wrapper")||k),e.current.querySelectorAll(`[data-node-type="markdown-module"][data-key="${A.key}"]`).forEach(P=>{const N=P.closest(".exclusion-wrapper")||P.closest(".rte-markdown-module-container")||P;r(N)})}}},M=T=>{for(const A of h[T]||[])if(A.type!=="other"){if(A.type==="video-url"||A.type==="video-upload"){const k=w(A.key);k&&i(k.closest(".exclusion-wrapper")||k);continue}if(A.type==="upload"){e.current.querySelectorAll(`[data-type="upload"][data-key="${A.key}"], [data-type="upload"][data-key^="${A.key}-"]`).forEach(D=>i(D.closest(".exclusion-wrapper")||D));continue}if(A.type==="multi-variable"){e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${A.key}"]`).forEach(D=>i(D.closest(".exclusion-wrapper")||D));continue}if(A.type==="variable"){const k=e.current.querySelector(`[data-type="variable"][data-key="${A.key}"]`);k&&i(k.closest(".exclusion-wrapper")||k),e.current.querySelectorAll(`[data-node-type="markdown-module"][data-key="${A.key}"]`).forEach(P=>{const N=P.closest(".exclusion-wrapper")||P.closest(".rte-markdown-module-container")||P;i(N)})}}};for(let T=0;T<h.length;T++)!E||T===_?C(T):M(T);e.current.querySelectorAll('[data-group="separator"]').forEach(T=>{T.closest('[data-rte-force-hidden="1"]')||(E?i(T):T.style.setProperty("display","inline-flex","important"))});return}const s=new Set,o={};for(const h of t)h.exclusionGroup&&h.exclusionGroup!=="separator"&&(s.add(h.exclusionGroup),o[h.exclusionGroup]||(o[h.exclusionGroup]=[]),o[h.exclusionGroup].push({type:h.type,key:h.key,exclusionGroup:h.exclusionGroup}));const c={};for(const h of s){c[h]=!1;for(const b of o[h])if((b.type==="video-url"||b.type==="video-upload")&&b.key){const v=l?.[b.key];if(v?.status==="success"&&v.videoUrl||v?.status==="loading"){c[h]=!0;break}if(b.type==="video-url"){const g=e.current.querySelector(`[data-type="variable"][data-node-type="video-url"][data-key="${b.key}"]`);if(g&&!g.classList.contains("show-placeholder")&&g.innerText.replace(/[\u200B\n]/g,"").trim().length>0){c[h]=!0;break}}}else if(b.type==="upload"&&b.key){if(a[b.key]!==null&&a[b.key]!==void 0){c[h]=!0;break}const v=t.find(g=>g.type==="upload"&&g.key===b.key);if(v&&typeof v.maxCount=="number")for(let g=0;g<v.maxCount;g++){const E=`${b.key}-${g}`;if(a[E]!==null&&a[E]!==void 0){c[h]=!0;break}}if(c[h])break}else if((b.type==="variable"||b.type==="multi-variable"||b.type==="markdown"||b.type==="markdown-name")&&b.key){if(e.current.querySelector(`[data-node-type="markdown-module"][data-key="${b.key}"]`)){c[h]=!0;break}const g=b.type==="multi-variable"?e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${b.key}"]`):[e.current.querySelector(`[data-type="variable"][data-key="${b.key}"]`)].filter(Boolean);for(const E of g){if(E.dataset.variableRender==="antd-textarea"){const _=E.dataset.value||"";let w=_;try{w=decodeURIComponent(_)}catch{w=_}if(w.trim().length>0){c[h]=!0;break}continue}if(!E.classList.contains("show-placeholder")&&E.innerText.replace(/[\u200B\n]/g,"").trim().length>0){c[h]=!0;break}}if(c[h])break}}const m=Object.keys(c).filter(h=>c[h]).length>0;let p=null;if(m&&u){for(const h of t)if(h.exclusionGroup&&h.exclusionGroup!=="separator"&&c[h.exclusionGroup]){p=h.exclusionGroup;break}}for(const h of s){const b=e.current.querySelectorAll(`[data-group="${h}"]`);u&&m&&p?h===p?b.forEach(r):b.forEach(i):b.forEach(r)}e.current.querySelectorAll('[data-group="separator"]').forEach(h=>{h.closest('[data-rte-force-hidden="1"]')||(m?i(h):h.style.setProperty("display","inline-flex","important"))})}function Dl(e,t,a,l,n){if(!e.current){l(!1);return}const r=h=>{const b=h.getAttribute("data-node-type")||"";if(b!=="report-module"&&b!=="markdown-module")return(h.textContent||"").replace(/[\u200B]/g,"").trim();const v=(h.textContent||"").replace(/[\u200B]/g,"").trim(),g=Array.from(h.querySelectorAll(":scope > div"));if(g.length===0)return v;let E=-1;for(let C=0;C<g.length;C++)if((g[C].textContent||"").replace(/[\u200B]/g,"").trim().length>0){E=C;break}return g.filter((C,M)=>M!==E).map(C=>(C.textContent||"").replace(/[\u200B]/g,"").trim()).join(`
|
|
36
|
+
`).trim()||v},i=h=>h?!!h.closest('[data-rte-force-hidden="1"]'):!1,u=[];for(let h=0;h<t.length;h++){const b=t[h];if((b.type==="variable"||b.type==="report-url"||b.type==="markdown"||b.type==="markdown-name"||b.type==="upload"||b.type==="multi-variable"||b.type==="select"||b.type==="textarea"||b.type==="richtext"||b.type==="report-module"||b.type==="markdown-module"||b.type==="datepicker"||b.type==="number-input"||b.type==="video-url"||b.type==="video-upload")&&b.required&&b.key){u.push({exclusionGroup:b.exclusionGroup||"",key:b.key,type:b.type==="multi-variable"||b.type==="report-url"||b.type==="markdown"||b.type==="markdown-name"?"variable":b.type==="report-module"||b.type==="markdown-module"?"richtext":b.type==="video-url"?"video-url":b.type==="video-upload"?"video-upload":b.type,isMultiVariable:b.type==="multi-variable",minCount:b.type==="multi-variable"||b.type==="upload"&&typeof b.minCount=="number"?b.minCount:void 0,moduleIndex:b.type==="report-module"||b.type==="markdown-module"?b.moduleIndex:void 0,__index:h});continue}if(b.type==="text"&&b.className?.includes("rte-text-required"))if(b.exclusionGroup)for(let v=h+1;v<t.length;v++){const g=t[v];if(g.exclusionGroup===b.exclusionGroup&&(g.type==="variable"||g.type==="markdown"||g.type==="upload"||g.type==="select"||g.type==="textarea"||g.type==="richtext"||g.type==="datepicker"||g.type==="number-input")&&g.key){u.push({exclusionGroup:b.exclusionGroup,key:g.key,type:g.type==="markdown"?"variable":g.type,__index:v});break}}else for(let v=h+1;v<t.length;v++){const g=t[v];if((g.type==="variable"||g.type==="markdown"||g.type==="upload"||g.type==="select"||g.type==="textarea"||g.type==="richtext"||g.type==="datepicker"||g.type==="number-input")&&g.key){u.push({exclusionGroup:g.exclusionGroup||"",key:g.key,type:g.type==="markdown"?"variable":g.type,__index:v});break}}}const s=t.some(h=>h.exclusionGroup==="separator"),o=[];if(s&&u.length>1){const h=[];t.forEach((b,v)=>{b.exclusionGroup==="separator"&&h.push(v)});for(const b of h){const g=u.filter(w=>typeof w.__index=="number"&&w.__index<b).sort((w,C)=>(C.__index??0)-(w.__index??0))[0],_=u.filter(w=>typeof w.__index=="number"&&w.__index>b).sort((w,C)=>(w.__index??0)-(C.__index??0))[0];g&&_&&o.push([g,_])}}if(u.length===0){if(t.length===0){if(!e.current){l(!1);return}const h=e.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";l(h.length>0);return}l(!0);return}const c=u.filter(h=>{if(!e.current)return!1;if(h.exclusionGroup){const b=e.current.querySelectorAll(`[data-group="${h.exclusionGroup}"]`);if(b.length>0){const v=b[0];return i(v)?!0:v.style.display!=="none"}}if(h.type==="upload"&&h.key){const b=e.current.querySelector(`[data-type="upload"][data-key="${h.key}"]`)||e.current.querySelector(`[data-type="upload"][data-batch-key="${h.key}"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(h.type==="variable"&&h.key)if(h.isMultiVariable){const b=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${h.key}"]`);if(b.length>0){const v=b[0],g=v.closest("[data-group]")||v.parentElement;return i(g)?!0:g?g.style.display!=="none":!0}}else{const b=e.current.querySelector(`[data-type="variable"][data-key="${h.key}"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(h.type==="select"&&h.key){const b=e.current.querySelector(`[data-type="select"][data-key="${h.key}"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(h.type==="textarea"&&h.key){const b=e.current.querySelector(`[data-type="textarea"][data-key="${h.key}"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(h.type==="richtext"&&h.key){const b=typeof h.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"]`:`[data-type="richtext"][data-key="${h.key}"]`,v=e.current.querySelector(b);if(v){const g=v.closest("[data-group]")||v.parentElement;return i(g)?!0:g?g.style.display!=="none":!0}}else if(h.type==="datepicker"&&h.key){const b=e.current.querySelector(`[data-type="datepicker"][data-key="${h.key}"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(h.type==="number-input"&&h.key){const b=e.current.querySelector(`[data-type="number-input"][data-key="${h.key}"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if((h.type==="video-url"||h.type==="video-upload")&&h.key){const b=e.current.querySelector(`[data-type="${h.type}"][data-key="${h.key}"], [data-type="variable"][data-key="${h.key}"][data-node-type="video-url"]`);if(b){const v=b.closest("[data-group]")||b.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}return!1});if(c.length===0){l(!0);return}const f=new Set;o.forEach(h=>{h.forEach(b=>{b.key&&f.add(b.key)})});const m=c.filter(h=>!h.key||!f.has(h.key));let p=(o.length===0,!0);for(const h of o){const b=h.filter(g=>{if(!e.current)return!1;if(g.exclusionGroup){const E=e.current.querySelectorAll(`[data-group="${g.exclusionGroup}"]`);if(E.length>0){const _=E[0];return i(_)?!0:_.style.display!=="none"}}return!0});if(b.length===0)continue;let v=!1;for(const g of b)if(g.type==="upload"&&g.key){if(g.minCount&&g.minCount>0){let E=0;const _=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${g.key}"]`);if(_.length===0)continue;for(let w=0;w<_.length;w++){const M=_[w].dataset.key;M&&a[M]!=null&&(E+=1)}if(E>=g.minCount){v=!0;break}}else if(a[g.key]!==null&&a[g.key]!==void 0){v=!0;break}}else if(g.type==="variable"&&g.key)if(g.isMultiVariable){const E=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${g.key}"]`);let _=0;for(const C of Array.from(E)){if(C.classList.contains("show-placeholder"))continue;C.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(_+=1)}const w=g.minCount&&g.minCount>0?g.minCount:1;if(_>=w){v=!0;break}}else{const E=e.current.querySelector(`[data-type="variable"][data-key="${g.key}"]`);if(E){if(E.classList.contains("show-placeholder"))continue;if(E.innerText.replace(/[\u200B\n]/g,"").trim().length>0){const w=E.dataset.nodeType;if((w==="markdown"||w==="markdown-name")&&!!!e.current.querySelector(`[data-node-type="markdown-module"][data-key="${g.key}"]`))continue;v=!0;break}}}else if(g.type==="select"&&g.key){const E=e.current.querySelector(`[data-type="select"][data-key="${g.key}"]`);if(E&&(E.getAttribute("data-value")||"").trim().length>0){v=!0;break}}else if(g.type==="textarea"&&g.key){const E=e.current.querySelector(`[data-type="textarea"][data-key="${g.key}"]`);if(E&&(E.value||"").trim().length>0){v=!0;break}}else if(g.type==="richtext"&&g.key){const E=typeof g.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"]`:`[data-type="richtext"][data-key="${g.key}"]`,_=e.current.querySelector(E);if(_){if(_.getAttribute("data-is-placeholder")==="true")continue;if(r(_).length>0){v=!0;break}}}else if(g.type==="datepicker"&&g.key){const E=e.current.querySelector(`[data-type="datepicker"][data-key="${g.key}"]`);if(E&&(E.getAttribute("data-value")||"").trim().length>0){v=!0;break}}else if(g.type==="number-input"&&g.key){const E=e.current.querySelector(`[data-type="number-input"][data-key="${g.key}"]`);if(E&&(E.value||"").trim().length>0){v=!0;break}}else if((g.type==="video-url"||g.type==="video-upload")&&g.key&&n?.[g.key]?.status==="success"){v=!0;break}if(!v){p=!1;break}}let y=!0;for(const h of m)if(h.type==="upload"&&h.key){if(h.minCount&&h.minCount>0){let b=0;const v=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${h.key}"]`);if(v.length===0){y=!1;break}for(let g=0;g<v.length;g++){const _=v[g].dataset.key;_&&a[_]!=null&&(b+=1)}if(b<h.minCount){y=!1;break}}else if(a[h.key]===null||a[h.key]===void 0){y=!1;break}}else if(h.type==="variable"&&h.key)if(h.isMultiVariable){const b=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${h.key}"]`);let v=0;for(const E of Array.from(b)){if(E.classList.contains("show-placeholder"))continue;E.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(v+=1)}const g=h.minCount&&h.minCount>0?h.minCount:1;if(v<g){y=!1;break}}else{const b=e.current.querySelector(`[data-type="variable"][data-key="${h.key}"]`);if(!b){y=!1;break}if(b.classList.contains("show-placeholder")){y=!1;break}if(b.innerText.replace(/[\u200B\n]/g,"").trim().length===0){y=!1;break}const g=b.dataset.nodeType;if((g==="markdown"||g==="markdown-name")&&!!!e.current.querySelector(`[data-node-type="markdown-module"][data-key="${h.key}"]`)){y=!1;break}}else if(h.type==="select"&&h.key){const b=e.current.querySelector(`[data-type="select"][data-key="${h.key}"]`);if(!b||(b.getAttribute("data-value")||"").trim().length===0){y=!1;break}}else if(h.type==="textarea"&&h.key){const b=e.current.querySelector(`[data-type="textarea"][data-key="${h.key}"]`);if(!b||(b.value||"").trim().length===0){y=!1;break}}else if(h.type==="richtext"&&h.key){const b=typeof h.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${h.key}"][data-module-index="${h.moduleIndex}"]`:`[data-type="richtext"][data-key="${h.key}"]`,v=e.current.querySelector(b);if(v&&v.getAttribute("data-is-placeholder")==="true"){y=!1;break}if(!v||r(v).length===0){y=!1;break}}else if(h.type==="datepicker"&&h.key){const b=e.current.querySelector(`[data-type="datepicker"][data-key="${h.key}"]`);if(!b||(b.getAttribute("data-value")||"").trim().length===0){y=!1;break}}else if(h.type==="number-input"&&h.key){const b=e.current.querySelector(`[data-type="number-input"][data-key="${h.key}"]`);if(!b||(b.value||"").trim().length===0){y=!1;break}}else if((h.type==="video-url"||h.type==="video-upload")&&h.key&&n?.[h.key]?.status!=="success"){y=!1;break}l(p&&y)}const ec=({config:e,effectiveConfig:t,files:a,editorRef:l,setIsFormValid:n,multiVariableCounts:r,setMultiVariableCounts:i,videoState:u})=>{I.useLayoutEffect(()=>{const s=l.current;if(!s)return;const o=new Map,c=p=>{const y=p.target,h=p.relatedTarget;!y||!l.current||!l.current.contains(y)||h&&l.current.contains(h)||setTimeout(()=>{if(l.current){if(e.length===0){const b=l.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";n(b.length>0);return}za(l),Ol(l,t,a,u),Dl(l,t,a,n,u)}},0)};s.addEventListener("blur",c,!0);const f=()=>{if(!l.current)return;o.forEach((h,b)=>{b.removeEventListener("blur",h,!1)}),o.clear();const p=l.current.querySelectorAll('[data-type="variable"][data-multi-key]'),y=h=>{h.stopPropagation(),h.stopImmediatePropagation();const b=h.target;if(!b||!l.current||!l.current.contains(b))return;const v=b.closest('[data-type="variable"][data-multi-key]');if(!v||!l.current.contains(v))return;let g=!1;if(o.forEach((A,k)=>{(k===v||k.contains(b))&&(g=!0)}),!g)return;const E=v.dataset.multiKey,_=v.dataset.key,w=v.dataset.index;if(!E||!_||w===void 0)return;const C=h.relatedTarget;if(!(!C||!l.current.contains(C)))return;const S=v.innerText.replace(/[\u200B\n]/g,"").trim(),T=/[、,,\s]+/;if(T.test(S)){const D=S.split(T).map(P=>P.trim()).filter(P=>P.length>0).slice(0,9);if(D.length>1){const P=e.find(N=>N.type==="multi-variable"&&N.key===E);if(P){const N=r[E]||1,x=parseInt(w,10),F=P.maxCount||9,U=[];for(let V=0;V<N;V++){const R=`${E}_${V}`,K=l.current.querySelector(`[data-type="variable"][data-key="${R}"][data-multi-key="${E}"]`);if(K){const ne=K.innerText.replace(/[\u200B\n]/g,"").trim();U.push(ne)}}U.splice(x,1,...D);const $=U.slice(0,F);$.length>0&&$[$.length-1]!==""&&$.length<F&&$.push("");const G=Math.max($.length,1),L={};$.forEach((V,R)=>{V&&(L[`${E}_${R}`]=V)}),l.current.querySelectorAll('[data-type="variable"]').forEach(V=>{const R=V.dataset.key,K=V.dataset.multiKey;if(R&&K!==E){const ne=V.innerText.replace(/[\u200B\n]/g,"").trim();ne&&(L[R]=ne)}}),l.current.__tempVariableValues=L,i(V=>({...V,[E]:G}))}}}};p.forEach(h=>{h.addEventListener("blur",y,!1),o.set(h,y)})},m=setTimeout(()=>{f()},0);return()=>{clearTimeout(m),s.removeEventListener("blur",c,!0),o.forEach((p,y)=>{y.removeEventListener("blur",p,!1)}),o.clear()}},[e,t,l,a,r,n,i])},tc=({disabled:e,collapsed:t,onCollapsedChange:a,config:l,lockStructure:n,editorRef:r,containerRef:i,fileInputRef:u,onBeforeFilePickerOpen:s,files:o,setFiles:c,handleRemoveFile:f,setActiveBatchKey:m,setActiveBatchStartIndex:p,setActiveFileKey:y,isDraggingRef:h,richtextPrevScrollTopRef:b,videoState:v,setVideoState:g,videoFileInputRef:E,activeVideoKeyRef:_,onImagePreview:w})=>{const C=(...S)=>{},M=S=>{try{const T=window.getSelection();if(!T)return C(S,"no selection");const A=T.rangeCount>0?T.getRangeAt(0):null;C(S,{rangeCount:T.rangeCount,isCollapsed:T.isCollapsed,anchorNode:T.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":T.anchorNode?.nodeName,anchorOffset:T.anchorOffset,focusNode:T.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":T.focusNode?.nodeName,focusOffset:T.focusOffset,range:A?{startContainer:A.startContainer.nodeType===Node.TEXT_NODE?"TEXT":A.startContainer.nodeName,startOffset:A.startOffset,endContainer:A.endContainer.nodeType===Node.TEXT_NODE?"TEXT":A.endContainer.nodeName,endOffset:A.endOffset}:null})}catch{}};return I.useCallback(S=>{if(e)return;t&&a?.(!1);const T=S.target;if(C("click",{tag:T.tagName,cls:T.className}),M("before click"),T.closest('[data-type="datepicker"]'))return;if(T.closest(".tag-close-btn")){S.preventDefault(),S.stopPropagation();return}if(l.length===0)return;const D=(W,V)=>{if(!r.current)return;Array.from(r.current.children).forEach(K=>{if(K!==W)if(V)K.dataset.prevDisplay===void 0&&(K.dataset.prevDisplay=K.style.display||""),K.dataset.rteForceHidden="1",K.style.setProperty("display","none","important");else{if(K.dataset.prevDisplay!==void 0){const ne=K.dataset.prevDisplay;ne?K.style.display=ne:K.style.removeProperty("display"),delete K.dataset.prevDisplay}else K.style.removeProperty("display");delete K.dataset.rteForceHidden}})},P=T.closest(".rte-textarea-toggle");if(P){S.preventDefault(),S.stopPropagation();const W=P.closest(".rte-textarea-wrapper"),V=W?.querySelector('[data-type="textarea"]'),K=!(P.getAttribute("data-expanded")==="true");P.setAttribute("data-expanded",String(K)),P.textContent=K?"收起":"展开",W&&W.classList.toggle("rte-textarea-expanded",K);const ne=W?.closest(".rte-textarea-required");if(ne?ne.classList.toggle("rte-textarea-overlay",K):W&&W.classList.toggle("rte-textarea-overlay",K),V)if(K)V.classList.add("rte-textarea-expanded"),V.style.maxHeight="none",V.style.height="100%";else{V.classList.remove("rte-textarea-expanded");const ae=V.dataset.maxHeight||"252";V.style.maxHeight=`${ae}px`,V.style.height="auto"}r.current&&(K?r.current.classList.add("rte-overlay-active"):r.current.classList.remove("rte-overlay-active"));return}const N=T.closest(".rte-richtext-toggle");if(N){S.preventDefault(),S.stopPropagation();const W=N.closest(".rte-richtext-wrapper"),V=W?.querySelector('[data-type="richtext"]'),K=!(N.getAttribute("data-expanded")==="true");((le,ie)=>{le.setAttribute("data-expanded",String(ie)),le.innerHTML=ie?'<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>':'<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>'})(N,K);const ae=W?.closest(".rte-richtext-required");ae?ae.classList.toggle("rte-richtext-expanded",K):W&&W.classList.toggle("rte-richtext-expanded",K);const X=W?.closest(".exclusion-wrapper")||W?.parentElement;if(V&&(K?(V.style.height="100%",V.style.overflow="auto"):(V.style.height="",V.style.overflow="")),X&&(X.classList.toggle("rte-richtext-host-expanded",K),D(X,K)),r.current){if(r.current.classList.toggle("rte-richtext-fullscreen-active",K),i.current?.classList.toggle("rte-richtext-container-expanded",K),i.current)if(K){const le=Math.ceil(i.current.getBoundingClientRect().height||0);le>0&&i.current.style.setProperty("--rte-richtext-fullscreen-height",`${le}px`)}else i.current.style.removeProperty("--rte-richtext-fullscreen-height");if(K)b.current=r.current.scrollTop||0,setTimeout(()=>{r.current&&(r.current.scrollTop=0,r.current.scrollLeft=0)},0);else{const le=b.current||0;setTimeout(()=>{r.current&&(r.current.scrollTop=le)},0)}}return}if(T.closest('[data-type="text"]')){S.preventDefault(),S.stopPropagation();const W=window.getSelection();W&&W.removeAllRanges();return}if(n&&T.closest(".tag-node")){S.preventDefault(),S.stopPropagation();const V=window.getSelection();V&&V.removeAllRanges();return}const F=T.closest('[data-type="variable"]');if(F){if(h.current)return;if(F.dataset.variableRender!=="antd-textarea"){const W=!!T.closest(".variable-info-icon"),V=F.classList.contains("show-placeholder")||(F.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(C("v1 variable click",{key:F.dataset.key,isPlaceholder:V,isOnIcon:W,classes:F.className,innerText:F.innerText}),V&&!W){S.preventDefault();const R=()=>{try{F.focus();const K=window.getSelection();if(!K)return;const ne=document.createTreeWalker(F,NodeFilter.SHOW_TEXT),ae=ne.nextNode()?ne.currentNode:null,X=document.createRange();ae?(X.setStart(ae,0),X.collapse(!0)):(X.selectNodeContents(F),X.collapse(!0)),K.removeAllRanges(),K.addRange(X),M("after placeCaretLeft()")}catch{}};setTimeout(()=>{window.requestAnimationFrame(R),window.requestAnimationFrame(()=>M("post-raf (click)"))},0)}}setTimeout(()=>{const W=window.getSelection();W&&!W.isCollapsed||za(r)},10);return}const U=T.closest(".video-remove-btn");if(U){S.preventDefault(),S.stopPropagation();const V=U.closest('[data-type="video-url"], [data-type="video-upload"]')?.dataset.key;V&&g&&g(R=>{const K={...R};return delete K[V],K});return}const $=T.closest('[data-type="video-upload"]');if($){S.preventDefault(),S.stopPropagation();const W=$.dataset.key;W&&E?.current&&_&&(_.current=W,E.current.value="",E.current.click());return}const G=T.closest(".file-remove-btn");if(G){S.preventDefault(),S.stopPropagation();const W=G.closest('[data-type="upload"]'),V=W?.dataset.key,R=W?.dataset.batchKey;if(V)if(R){const K=l.find(ne=>ne.type==="upload"&&ne.key===R);if(K&&typeof K.maxCount=="number"&&typeof K.minCount=="number"){const ne=K.maxCount;c(ae=>{const X={...ae},le=[];for(let ie=0;ie<ne;ie++){const he=`${R}-${ie}`,_e=X[he];_e!=null&&he!==V&&le.push(_e)}for(let ie=0;ie<ne;ie++)delete X[`${R}-${ie}`];return le.forEach((ie,he)=>{X[`${R}-${he}`]=ie}),X})}else f(V)}else f(V);return}const L=T.closest('[data-type="upload"]');if(L){const W=L.dataset.key,V=L.dataset.batchKey,R=L.dataset.batchIndex;if(W){const K=o[W];if(K&&w&&(typeof K=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(K):K.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(K.name||""))){S.preventDefault(),S.stopPropagation();const le=typeof K=="string"?K:URL.createObjectURL(K);w(le);return}const ne=V||W,ae=l.find(X=>X.type==="upload"&&X.key===ne);if(u.current&&(ae?.accept?u.current.accept=ae.accept:ae?.acceptType==="image"?u.current.accept="image/*":ae?.acceptType==="file"?u.current.accept=".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json":u.current.accept=""),V){const X=l.find(le=>le.type==="upload"&&le.key===V);if(X&&typeof X.maxCount=="number"&&typeof X.minCount=="number"){const le=X.maxCount,ie=o[W]!=null,he=R!=null?Number.parseInt(R,10):NaN;if(ie){u.current&&(u.current.multiple=!1),m(null),p(null),y(W),s?.(),u.current?.click();return}let _e=0;for(let Ge=0;Ge<le;Ge++)o[`${V}-${Ge}`]!=null&&(_e+=1);_e<le&&u.current?(u.current.multiple=!0,m(V),p(Number.isFinite(he)?he:null),y(null),s?.(),u.current.click()):(u.current&&(u.current.multiple=!1),m(null),p(null),y(W),s?.(),u.current?.click())}else u.current&&(u.current.multiple=!1),m(null),p(null),y(W),s?.(),u.current?.click()}else u.current&&(u.current.multiple=!1),m(null),p(null),y(W),s?.(),u.current?.click()}return}},[t,l,i,e,r,u,s,o,f,h,n,a,b,m,p,y,c,g,E,_,w])},ac=({config:e,editorRef:t,setIsEmpty:a,setIsFormValid:l,setReportAnalyzeState:n,setMarkdownAnalyzeState:r,setMarkdownNameAnalyzeState:i,collapsed:u,measureExpandedContentHeight:s,effectiveConfig:o,files:c,multiVariableCounts:f,setMultiVariableCounts:m,savedCursorRef:p,videoState:y})=>I.useCallback(()=>{if(e.length===0){if(t.current){const v=!(t.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"");a(v),l(!v)}return}if(za(t),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]').forEach(v=>{const g=v.dataset.key;if(!g)return;v.innerText.replace(/[\u200B\n]/g,"").trim()||n(_=>{const w=_[g];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[g]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]').forEach(v=>{const g=v.dataset.key;if(!g)return;v.innerText.replace(/[\u200B\n]/g,"").trim()||r(_=>{const w=_[g];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[g]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown-name"]').forEach(v=>{const g=v.dataset.key;if(!g)return;v.innerText.replace(/[\u200B\n]/g,"").trim()||i(_=>{const w=_[g];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[g]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="richtext"][data-node-type="markdown-module"]').forEach(v=>{const g=v.dataset.key;if(!g)return;const E=v.innerText.replace(/[\u200B\n]/g,"").trim();v.getAttribute("data-is-placeholder")==="true"&&E&&!E.startsWith("请补充:")&&v.removeAttribute("data-is-placeholder"),E||(r(_=>{const w=_[g];return!w||w.status==="idle"?_:{..._,[g]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}),i(_=>{const w=_[g];return!w||w.status==="idle"?_:{..._,[g]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}))}),t.current&&t.current.querySelectorAll('[data-type="variable"]').forEach(v=>{if(v.dataset.variableRender==="antd-textarea")return;const g=v.innerText||"",E=!!v.querySelector("br")||g.includes(`
|
|
37
|
+
`),_=v.offsetHeight>32,C=g.replace(/\u200B/g,"").trim().length>0&&(E||_);v.classList.toggle("rte-variable-multiline",C),v.classList.toggle("rte-variable-force-block",C);const M=v.closest(".rte-inline-group");M&&M.classList.toggle("rte-inline-group-force-block",C);const S=v.closest(".required-upload-group, .required-multi-first");S&&S.classList.toggle("rte-required-group-force-block",C);const T=v.querySelector(".variable-info-icon");if(T){let A=!1;const k=document.createTreeWalker(v,NodeFilter.SHOW_TEXT,{acceptNode:D=>T.contains(D)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;k.nextNode();)if(k.currentNode.textContent?.replace(/[\u200B\n]/g,"").trim()){A=!0;break}A?T.classList.add("hidden"):T.classList.remove("hidden"),v.classList.toggle("rte-variable-with-icon",!T.classList.contains("hidden"))}}),u||window.requestAnimationFrame(()=>{s()}),Ol(t,o,c,y),Dl(t,o,c,l,y),!t.current)return;e.filter(b=>b.type==="multi-variable"&&b.key).forEach(b=>{if(!b.key)return;const v=b.maxCount||9,g=f[b.key]||1,E=[];for(let S=0;S<g;S++){const T=`${b.key}_${S}`,A=t.current.querySelector(`[data-type="variable"][data-key="${T}"][data-multi-key="${b.key}"]`);if(A){const k=(A.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
38
|
+
`).trim();E.push(k)}}const w=(E[E.length-1]||"")==="";let C=!1,M=-1;for(let S=0;S<E.length-1;S++)if(E[S]===""){C=!0,M=S;break}if(C&&M>=0){const S=window.getSelection();if(S&&S.rangeCount>0){const P=S.getRangeAt(0),N=P.startContainer,x=N.nodeType===Node.ELEMENT_NODE?N.closest('[data-type="variable"][data-multi-key]'):N.parentElement?.closest('[data-type="variable"][data-multi-key]');if(x){const F=x.dataset.key;if(F){const U=document.createRange();U.setStartBefore(x),U.setEnd(P.startContainer,P.startOffset);const $=U.toString().length;p.current={key:F,offset:$}}}}const T=[...E];for(let P=M;P<T.length-1;P++)T[P]=T[P+1];T.pop();const A={};T.forEach((P,N)=>{P&&(A[`${b.key}_${N}`]=P)});const k=Math.max(w?T.length:T.length+1,1);t.current.querySelectorAll('[data-type="variable"]').forEach(P=>{const N=P.dataset.key,x=P.dataset.multiKey;if(N&&x!==b.key){const F=(P.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
39
|
+
`).trim();F&&(A[N]=F)}}),t.current.__tempVariableValues=A,m(P=>({...P,[b.key]:k}));return}if(!w){const S=g-1,T=`${b.key}_${S}`,A=t.current.querySelector(`[data-type="variable"][data-key="${T}"][data-multi-key="${b.key}"]`);if(A&&(A.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
40
|
+
`).trim().length>0&&g<v){const D=window.getSelection();if(D&&D.rangeCount>0){const P=D.getRangeAt(0),N=P.startContainer,x=N.nodeType===Node.ELEMENT_NODE?N.closest('[data-type="variable"][data-multi-key]'):N.parentElement?.closest('[data-type="variable"][data-multi-key]');if(x){const F=x.dataset.key;if(F){const U=document.createRange();U.setStartBefore(x),U.setEnd(P.startContainer,P.startOffset);const $=U.toString().length;p.current={key:F,offset:$}}}}m(P=>({...P,[b.key]:g+1}))}}})},[u,e,t,o,c,s,f,p,a,l,r,i,m,n]),lc=({disabled:e,lockStructure:t,config:a,editorRef:l,handleInput:n})=>I.useCallback(r=>{if(e){r.preventDefault();return}const i=r.target;if(i&&(i.tagName==="TEXTAREA"||i.tagName==="INPUT")&&i.closest?.('[data-variable-render="antd-textarea"]'))return;if(r.key==="Enter"){const s=r.target,o=s?.closest?.('[data-type="variable"]'),c=!!s?.closest?.('[data-type="richtext"]'),f=s?.tagName==="TEXTAREA"||!!s?.closest?.('[data-type="textarea"]');if(o){const m=o.getAttribute("data-node-type")||"";if(m==="report-url"||m==="markdown"||m==="markdown-name"){r.preventDefault();return}if(!(()=>{const h=o.dataset.multiKey;if(h)return a.find(E=>E.type==="multi-variable"&&E.key===h)?.allowNewline!==!1;const b=o.dataset.key;return a.find(g=>g.type==="variable"&&g.key===b)?.allowNewline!==!1})()){r.preventDefault();return}r.preventDefault();const y=window.getSelection();if(y&&y.rangeCount>0){const h=y.getRangeAt(0);h.deleteContents();const b=document.createElement("br");h.insertNode(b);const v=document.createTextNode("");b.parentNode?.insertBefore(v,b.nextSibling),h.setStart(v,0),h.collapse(!0),y.removeAllRanges(),y.addRange(h)}n();return}if(!c&&!f){r.preventDefault();return}}const u=window.getSelection();if(u&&u.rangeCount>0){const s=u.anchorNode;let o=null;if(s&&(s.nodeType===Node.ELEMENT_NODE?o=s.closest('[data-type="text"]'):s.nodeType===Node.TEXT_NODE&&s.parentElement&&(o=s.parentElement.closest('[data-type="text"]'))),o){if(r.preventDefault(),r.stopPropagation(),l.current){const c=l.current.querySelector('[data-type="variable"], [data-type="upload"]');c&&c.focus()}return}}if(t&&u&&u.rangeCount>0){const s=u.anchorNode;let o=null;if(s&&(s.nodeType===Node.ELEMENT_NODE?o=s.closest(".tag-node"):s.nodeType===Node.TEXT_NODE&&s.parentElement&&(o=s.parentElement.closest(".tag-node"))),o){if(r.preventDefault(),r.stopPropagation(),l.current){const c=l.current.querySelector('[data-type="variable"], [data-type="upload"]');c&&c.focus()}return}}if(r.key==="Escape"&&l.current){if(t){r.preventDefault();return}l.current.innerHTML="",l.current.focus()}if(r.key==="Backspace"){const s=window.getSelection();if(s&&s.rangeCount>0){const o=s.getRangeAt(0),c=s.anchorNode;if(t){let m=null,p=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?(m=c.closest(".tag-node"),p=c.closest('[data-type="text"]')):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(m=c.parentElement.closest(".tag-node"),p=c.parentElement.closest('[data-type="text"]'))),(m||p)&&o.collapsed&&o.startOffset===0){r.preventDefault();return}}let f=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?f=c.closest('[data-type="variable"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(f=c.parentElement.closest('[data-type="variable"]'))),f){if(!o.collapsed)return;const m=f.innerText;if(m===""||m===""){r.preventDefault();return}if((()=>{try{const h=document.createRange();h.selectNodeContents(f),h.setEnd(o.startContainer,o.startOffset);const b=h.cloneContents(),v=document.createTreeWalker(b,NodeFilter.SHOW_ALL);for(;v.nextNode();){const g=v.currentNode;if(g.nodeType===Node.ELEMENT_NODE){if(g.tagName==="BR")return!1}else if(g.nodeType===Node.TEXT_NODE&&(g.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return o.startOffset===0}})()){r.preventDefault();return}if(m.startsWith("")&&o.startOffset===1){r.preventDefault();return}}}}},[a,e,l,n,t]),nc=({lockStructure:e,onAgentExit:t,editorRef:a,setPopoverVisible:l,isDraggingRef:n,mouseDownPosRef:r})=>{const i=(...m)=>{},u=m=>{try{const p=window.getSelection();if(!p)return i(m,"no selection");const y=p.rangeCount>0?p.getRangeAt(0):null;i(m,{rangeCount:p.rangeCount,isCollapsed:p.isCollapsed,anchorNode:p.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":p.anchorNode?.nodeName,anchorOffset:p.anchorOffset,focusNode:p.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":p.focusNode?.nodeName,focusOffset:p.focusOffset,range:y?{startContainer:y.startContainer.nodeType===Node.TEXT_NODE?"TEXT":y.startContainer.nodeName,startOffset:y.startOffset,endContainer:y.endContainer.nodeType===Node.TEXT_NODE?"TEXT":y.endContainer.nodeName,endOffset:y.endOffset}:null})}catch{}},s=I.useCallback(m=>{const p=m.target;if(i("mousedown",{tag:p.tagName,cls:p.className}),u("before mousedown"),p.closest(".rte-datepicker-wrapper")||p.closest(".rte-datepicker-host")||p.closest(".rte-select-wrapper")||p.closest(".rte-select-host")||p.closest(".ant-select-dropdown"))return;if(p.closest(".tag-close-btn")){if(m.preventDefault(),m.stopPropagation(),e)return;l(null),t?t():a.current&&(a.current.innerHTML="",a.current.focus());return}if(e){const b=p.closest(".tag-node"),v=p.closest('[data-type="text"]');if(b||v){m.preventDefault(),m.stopPropagation();const g=window.getSelection();g&&g.removeAllRanges();return}}const h=p.closest('[data-type="variable"]');if(h){if(i("mousedown on variable",{key:h.dataset.key,multiKey:h.dataset.multiKey,nodeType:h.getAttribute("data-node-type")||"",render:h.dataset.variableRender||"v1",classes:h.className}),h.dataset.variableRender==="antd-textarea")return;const b=!!p.closest(".variable-info-icon"),v=h.classList.contains("show-placeholder")||(h.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(i("v1 variable mousedown",{isPlaceholder:v,isOnIcon:b,innerText:h.innerText}),v&&!b){m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mousedown)");const g=window.getSelection();if(!g)return;const E=h;E.focus();const _=document.createTreeWalker(E,NodeFilter.SHOW_TEXT),w=_.nextNode()?_.currentNode:null,C=document.createRange();w?(C.setStart(w,0),C.collapse(!0)):(C.selectNodeContents(E),C.collapse(!0)),g.removeAllRanges(),g.addRange(C),u("raf after setRange (mousedown)")});return}return}r.current={x:m.clientX,y:m.clientY},n.current=!1,p.closest(".file-remove-btn")&&(m.preventDefault(),m.stopPropagation())},[a,n,e,r,t,l]),o=I.useCallback(m=>{if(!m.target.closest('[data-type="variable"]')&&r.current){const h=Math.abs(m.clientX-r.current.x),b=Math.abs(m.clientY-r.current.y);(h>3||b>3)&&(n.current=!0)}},[n,r]),c=I.useCallback(m=>{const p=m.target;i("mouseup",{tag:p.tagName,cls:p.className}),u("before mouseup");const y=p.closest('[data-type="variable"]');if(y){if(y.dataset.variableRender!=="antd-textarea"){const h=!!p.closest(".variable-info-icon"),b=y.classList.contains("show-placeholder")||(y.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;i("v1 variable mouseup",{key:y.dataset.key,isPlaceholder:b,isOnIcon:h,classes:y.className}),b&&!h&&(m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mouseup)");const v=window.getSelection();if(!v)return;const g=y;g.focus();const E=document.createTreeWalker(g,NodeFilter.SHOW_TEXT),_=E.nextNode()?E.currentNode:null,w=document.createRange();_?(w.setStart(_,0),w.collapse(!0)):(w.selectNodeContents(g),w.collapse(!0)),v.removeAllRanges(),v.addRange(w),u("raf after setRange (mouseup)")}))}r.current=null,n.current=!1;return}r.current=null,n.current=!1},[n,r]),f=I.useCallback(m=>{const y=m.target.closest('[data-type="variable"]');if(y){const h=window.getSelection();if(h){const b=document.createRange(),v=y.textContent||"";if(v.replace(/\u200B/g,"")){let E=0,_=v.length;v.startsWith("")&&(E=1),v.endsWith("")&&v.length>1&&(_=v.length-1);const w=y.firstChild;w&&w.nodeType===Node.TEXT_NODE?(b.setStart(w,E),b.setEnd(w,_)):b.selectNodeContents(y)}else b.selectNodeContents(y),b.collapse(!0);h.removeAllRanges(),h.addRange(b)}}},[]);return{handleMouseDown:s,handleMouseMove:o,handleMouseUp:c,handleDoubleClick:f}},rc=({disabled:e,config:t,multiVariableCounts:a,setMultiVariableCounts:l,editorRef:n,handleInput:r,markdownAnalyzeRef:i,reportAnalyzeRef:u,markdownNameAnalyzeRef:s,markdownAnalyzeStateRef:o,markdownRawTextRef:c,setMarkdownAnalyzeState:f,setFooterFiles:m,footerFiles:p,messageApi:y,onPasteUnsupported:h})=>I.useCallback(b=>{const v=t.some(A=>A.type==="tag"),g=Array.from(b.clipboardData.files);if(g.length>0&&v){b.preventDefault();return}if(g.length>0){b.preventDefault();const A=["pdf","xla","xlb","xlc","xlm","xls","xlsx","xlt","xlw","csv","tsv","iif","doc","docx","dot","odt","rtf","pot","ppa","pps","ppt","pptx","pwz","wiz","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","htm","html","ics","ifb","in","js","json","ksh","png","jpeg","jpg","gif","webp","md","php","pkl","rb","tar","tex","ts","txt","xml"],k=[];let D=!1;for(const P of g){const N=(P.name||"").split(".").pop()?.toLowerCase()||"";A.includes(N)?k.push(P):D=!0}if(D&&h?.(),k.length>0){const N=p.reduce((U,$)=>U+$.size,0),x=[];let F=N;for(const U of k){if(F+U.size>52428800){y.error("文件总大小不能超过 50MB");break}x.push(U),F+=U.size}x.length>0&&m(U=>[...x,...U])}return}const E=b.target;if(E&&(E.tagName==="TEXTAREA"||E.tagName==="INPUT")&&E.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){b.preventDefault();return}b.preventDefault();const w=(b.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
41
|
+
`).replace(/\n+$/g,""),C=window.getSelection();if(C&&C.rangeCount>0){const A=C.anchorNode;if(A){let k=null;if(A.nodeType===Node.ELEMENT_NODE?k=A.closest('[data-type="variable"]'):A.nodeType===Node.TEXT_NODE&&A.parentElement&&(k=A.parentElement.closest('[data-type="variable"]')),k){const D=k.dataset.multiKey;if(D){const x=/[、,,\s\n\r\t]+/,F=w.split(x).map(U=>U.trim()).filter(U=>U.length>0);if(F.length>1){const U=parseInt(k.dataset.index||"0",10),$=t.find(X=>X.type==="multi-variable"&&X.key===D)?.maxCount||9,G=a[D]||1,L=Math.min(U+F.length,$);L>G&&l(ae=>({...ae,[D]:L}));const W=[];for(let ae=0;ae<G;ae++){const X=`${D}_${ae}`,le=n.current.querySelector(`[data-type="variable"][data-key="${X}"][data-multi-key="${D}"]`);if(le){const ie=le.innerText.replace(/[\u200B\n]/g,"").trim();W.push(ie)}}W.splice(U,1,...F.slice(0,$-U));const V=W.slice(0,$);V.length>0&&V[V.length-1]!==""&&V.length<$&&V.push("");const R=Math.max(V.length,1),K={};V.forEach((ae,X)=>{ae&&(K[`${D}_${X}`]=ae)}),n.current.querySelectorAll('[data-type="variable"]').forEach(ae=>{const X=ae.dataset.key,le=ae.dataset.multiKey;if(X&&le!==D){const ie=ae.innerText.replace(/[\u200B\n]/g,"").trim();ie&&(K[X]=ie)}}),n.current.__tempVariableValues=K,l(ae=>({...ae,[D]:R}));return}}const P=k.getAttribute("data-node-type")||"";if(!(P==="markdown"||P==="report-url"||P==="markdown-name")){const x=(()=>{const U=k.getAttribute("data-node-type")||"";if(U==="report-url"||U==="markdown"||U==="markdown-name")return!1;const $=k.dataset.multiKey;if($)return t.find(V=>V.type==="multi-variable"&&V.key===$)?.allowNewline!==!1;const G=k.dataset.key;return t.find(W=>W.type==="variable"&&W.key===G)?.allowNewline!==!1})(),F=window.getSelection();if(F&&F.rangeCount>0){const U=F.getRangeAt(0);U.deleteContents();const $=document.createDocumentFragment(),L=(x?w:w.replace(/\n+/g," ")).split(`
|
|
42
|
+
`);for(let V=0;V<L.length;V++)$.appendChild(document.createTextNode(L[V])),x&&V<L.length-1&&$.appendChild(document.createElement("br"));U.insertNode($),F.removeAllRanges();const W=document.createRange();W.selectNodeContents(k),W.collapse(!1),F.addRange(W)}r();return}}}}let M=!1,S="";const T=window.getSelection();if(T&&T.rangeCount>0){const A=T.anchorNode;if(A){let k=null;if(A.nodeType===Node.ELEMENT_NODE?k=A.closest('[data-type="variable"]'):A.nodeType===Node.TEXT_NODE&&A.parentElement&&(k=A.parentElement.closest('[data-type="variable"]')),k){const D=k.getAttribute("data-node-type")||"",P=k.dataset.key;if(D==="markdown"&&P&&/20\d{2}-\d{2}-\d{2}/.test(w))M=!0,S=P,c.current[P]=w,f(N=>({...N,[P]:{...N[P],status:"loading",error:void 0}}));else if(D==="report-url"&&P){document.execCommand("insertText",!1,w),r(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();u.current(P,N)},0);return}else if(D==="markdown-name"&&P){document.execCommand("insertText",!1,w),r(),setTimeout(()=>{const N=k.innerText.replace(/[\u200B\n]/g,"").trim();s.current(P,N)},0);return}}}}if(M&&S){setTimeout(()=>{i.current(S,w)},0);return}document.execCommand("insertText",!1,w),r(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(w)&&o.current.tableData?.status==="success"&&(f(k=>({...k,tableData:{status:"loading",modules:[],lastParsedText:w,error:void 0}})),setTimeout(()=>{c.current.tableData=w,i.current("tableData",w)},0))},0)},[t,e,n,r,i,o,c,a,h,u,m,p,y,f,l]);async function Ir(e){const t=e.split("/").pop()?.split("?")[0]||"file",a=decodeURIComponent(t),l=async n=>{const r=await n.blob();return new File([r],a,{type:r.type||"application/octet-stream"})};try{const n=`/api/image-proxy?url=${encodeURIComponent(e)}`,r=await fetch(n);if(r.ok)return l(r)}catch{}return null}const ic=({config:e,files:t,footerFiles:a,onFooterFilesClear:l,onSend:n,isProcessing:r,disabled:i,loading:u,isFormValid:s,editorRef:o,markdownAnalyzeState:c,markdownNameAnalyzeState:f,videoState:m})=>I.useCallback(()=>{if(r||i||u||!s||!o.current)return;if(e.length===0){const g=o.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";if(!g&&a.length===0)return;if(a.length>0){const E=new FormData;E.append("fullPrompt",g),a.forEach(_=>{E.append("fileUrls",_)}),n(E,g),l()}else n(g,g);if(o.current){o.current.textContent="";const E=new Event("input",{bubbles:!0});o.current.dispatchEvent(E)}return}const p=o.current;let y="";const h={},b=g=>{if(!(g.nodeType===Node.ELEMENT_NODE&&g.style.display==="none")){if(g.nodeType===Node.TEXT_NODE)y+=(g.textContent||"").replace(/\u200B/g,"");else if(g.nodeType===Node.ELEMENT_NODE){const E=g,_=E.dataset.type,w=E.dataset.key;if(_==="variable"&&w){let C="";const M=document.createTreeWalker(E,NodeFilter.SHOW_TEXT,{acceptNode:T=>{const A=E.querySelector(".variable-info-icon");return A&&A.contains(T)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;M.nextNode();)C+=M.currentNode.textContent||"";const S=C.replace(/[\u200B\n]/g,"").trim();if(S){const T=E.dataset.multiKey;if(T){(!h[T]||!Array.isArray(h[T]))&&(h[T]=[]);const A=h[T];A.push(S),A.length>1&&(y+=" "),y+=S}else h[w]=S,y+=S;if(E.dataset.nodeType==="report-url")if(h.url===void 0)h.url=S;else{const A=h.url;Array.isArray(A)?A.push(S):h.url=[String(A),S]}if(E.dataset.nodeType==="markdown-name"){const A=`${w}__sourceText`;h[A]===void 0&&(h[A]=S)}if(E.dataset.nodeType==="markdown"){const A=E.dataset.sourceTextKey||`${w}__sourceText`;if(h[A]===void 0)h[A]=S;else{const D=h[A];Array.isArray(D)?D.push(S):h[A]=[String(D),S]}const k=`${w}__markdown`;h[k]===void 0&&(h[k]=[kr(S)])}}}else if((_==="select"||_==="searchable-select"||_==="cascader")&&w){const C=(E.getAttribute("data-value")||"").trim();C&&(h[w]=C,y+=C)}else if(_==="textarea"&&w){const M=(E.value||"").replace(/\u200B/g,"").trim();M&&(h[w]=M,y+=M)}else if(_==="richtext"&&w){const C=E,M=C.dataset.nodeType,S=(C.textContent||"").replace(/\u200B/g,"").trim();if(S)if(M==="report-module"||M==="markdown-module"){(!h[w]||!Array.isArray(h[w]))&&(h[w]=[]);const T=h[w];T.push(S),T.length>1&&(y+=" "),y+=S}else h[w]=S,y+=S}else if(_==="datepicker"&&w){const M=(E.getAttribute("data-value")||"").trim();if(M)if(M.includes(",")){const S=M.split(",");S.length===2?(h[w]=S,y+=`[${S[0]}, ${S[1]}]`):(h[w]=M,y+=M)}else h[w]=M,y+=M}else if(_==="number-input"&&w){const M=(E.value||"").trim();M&&(h[w]=M,y+=M)}else if(_==="upload"&&w){const C=E.dataset.batchKey;if(C){const M=e.find(S=>S.type==="upload"&&S.key===C);if(M&&typeof M.maxCount=="number"&&typeof M.minCount=="number"){const S=[];for(let T=0;T<M.maxCount;T++){const A=`${C}-${T}`,k=t[A];k&&S.push(k)}h[C]||(h[C]=S.length>0?S:null,S.length>0&&(y+=` [附带${S.length}个文件: ${S.map(T=>typeof T=="string"?T.split("/").pop()||"file":T.name).join(", ")}] `))}else if(h[w]=t[w]??null,t[w]){const S=t[w];y+=` [附带文件: ${typeof S=="string"?S.split("/").pop()||"file":S.name}] `}}else if(h[w]=t[w]??null,t[w]){const M=t[w];y+=` [附带文件: ${typeof M=="string"?M.split("/").pop()||"file":M.name}] `}}else if((_==="video-url"||_==="video-upload")&&w){const C=m?.[w];if(C?.status==="success"&&C.videoUrl){h[w]=C.videoUrl,C.file&&(h[`${w}__file`]=C.file);const M=C.fileName||"视频";y+=` [附带视频: ${M}] `}}else{if(E.classList.contains("tag-close-btn")||E.classList.contains("file-remove-btn")||E.classList.contains("video-remove-btn"))return;E.getAttribute("contenteditable")==="false"&&!_&&E.classList.contains("tag-node")?y+=E.innerText:E.childNodes.forEach(b)}}}};if(p.childNodes.forEach(b),y=y.trim(),!y)return;Object.keys(c).forEach(g=>{const E=c[g];if(!E||!E.modules||E.modules.length===0)return;const _=E.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${g}__markdown`]=_)}),Object.keys(f).forEach(g=>{const E=f[g];if(!E||!E.modules||E.modules.length===0)return;const _=E.modules.map(w=>(w?.markdown||"").trim()).filter(w=>w.length>0);_.length!==0&&(h[`${g}__markdown`]=_)}),(async()=>{for(const E of Object.keys(h)){const _=h[E];if(typeof _=="string"&&_.startsWith("http")){if(e.find(C=>C.type==="upload"&&C.key===E)){const C=await Ir(_);C&&(h[E]=C)}}else if(Array.isArray(_)&&e.find(C=>C.type==="upload"&&C.key===E)){for(let C=0;C<_.length;C++)if(typeof _[C]=="string"&&_[C].startsWith("http")){const M=await Ir(_[C]);M&&(_[C]=M)}}}const g=new FormData;g.append("fullPrompt",y),Object.keys(h).forEach(E=>{const _=h[E];if(_!=null)if(_ instanceof File)g.append(E,_);else if(Array.isArray(_)){const w=e.some(T=>T.type==="multi-variable"&&T.key===E),C=e.some(T=>T.type==="report-url"&&T.key===E),M=E.endsWith("__markdown");w||C||M||E==="url"?_.forEach(T=>{T!=null&&T!==""&&g.append(E,String(T))}):_.forEach((T,A)=>{T!=null&&(T instanceof File?g.append(`${E}[${A}]`,T):typeof T=="string"?g.append(`${E}[${A}]`,T):g.append(`${E}[${A}]`,String(T)))})}else typeof _=="string"?g.append(E,_):g.append(E,String(_))}),a.length>0&&a.forEach(E=>{g.append("fileUrls",E)}),n(g,y),a.length>0&&l()})()},[e,t,a,l,n,r,i,u,s,o,c,f,m]);function Lr(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Pl(e={},t={}){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:Lr(t[l])&&Lr(e[l])&&Object.keys(t[l]).length>0&&Pl(e[l],t[l])})}const Or={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wt(){const e=typeof document<"u"?document:{};return Pl(e,Or),e}const uc={document:Or,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function $e(){const e=typeof window<"u"?window:{};return Pl(e,uc),e}function sc(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function oc(e){const t=e;Object.keys(t).forEach(a=>{try{t[a]=null}catch{}try{delete t[a]}catch{}})}function Dr(e,t=0){return setTimeout(e,t)}function Va(){return Date.now()}function cc(e){const t=$e();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}function dc(e,t="x"){const a=$e();let l,n,r;const i=cc(e);return a.WebKitCSSMatrix?(n=i.transform||i.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(u=>u.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix(n==="none"?"":n)):(r=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),l=r.toString().split(",")),t==="x"&&(a.WebKitCSSMatrix?n=r.m41:l.length===16?n=parseFloat(l[12]):n=parseFloat(l[4])),t==="y"&&(a.WebKitCSSMatrix?n=r.m42:l.length===16?n=parseFloat(l[13]):n=parseFloat(l[5])),n||0}function Ga(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function fc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function We(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let l=1;l<e.length;l+=1){const n=e[l];if(n!=null&&!fc(n)){const r=Object.keys(Object(n)).filter(i=>a.indexOf(i)<0);for(let i=0,u=r.length;i<u;i+=1){const s=r[i],o=Object.getOwnPropertyDescriptor(n,s);o!==void 0&&o.enumerable&&(Ga(t[s])&&Ga(n[s])?n[s].__swiper__?t[s]=n[s]:We(t[s],n[s]):!Ga(t[s])&&Ga(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:We(t[s],n[s])):t[s]=n[s])}}}return t}function Ut(e,t,a){e.style.setProperty(t,a)}function Pr({swiper:e,targetPosition:t,side:a}){const l=$e(),n=-e.translate;let r=null,i;const u=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const s=t>n?"next":"prev",o=(f,m)=>s==="next"&&f>=m||s==="prev"&&f<=m,c=()=>{i=new Date().getTime(),r===null&&(r=i);const f=Math.max(Math.min((i-r)/u,1),0),m=.5-Math.cos(f*Math.PI)/2;let p=n+m*(t-n);if(o(p,t)&&(p=t),e.wrapperEl.scrollTo({[a]:p}),o(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:p})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(c)};c()}function rt(e,t=""){const a=$e(),l=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&l.push(...e.assignedElements()),t?l.filter(n=>n.matches(t)):l}function pc(e,t){const a=[t];for(;a.length>0;){const l=a.shift();if(e===l)return!0;a.push(...l.children,...l.shadowRoot?l.shadowRoot.children:[],...l.assignedElements?l.assignedElements():[])}}function hc(e,t){const a=$e();let l=t.contains(e);return!l&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(l=[...t.assignedElements()].includes(e),l||(l=pc(e,t))),l}function Ya(e){try{console.warn(e);return}catch{}}function Wa(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:sc(t)),a}function bc(e,t){const a=[];for(;e.previousElementSibling;){const l=e.previousElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function mc(e,t){const a=[];for(;e.nextElementSibling;){const l=e.nextElementSibling;t?l.matches(t)&&a.push(l):a.push(l),e=l}return a}function vt(e,t){return $e().getComputedStyle(e,null).getPropertyValue(t)}function ja(e){let t=e,a;if(t){for(a=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(a+=1);return a}}function Mr(e,t){const a=[];let l=e.parentElement;for(;l;)t?l.matches(t)&&a.push(l):a.push(l),l=l.parentElement;return a}function Ml(e,t,a){const l=$e();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(l.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Me(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function la(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:a=>a}).createHTML(t):e.innerHTML=t}let Bl;function vc(){const e=$e(),t=wt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Br(){return Bl||(Bl=vc()),Bl}let Rl;function gc({userAgent:e}={}){const t=Br(),a=$e(),l=a.navigator.platform,n=e||a.navigator.userAgent,r={ios:!1,android:!1},i=a.screen.width,u=a.screen.height,s=n.match(/(Android);?[\s\/]+([\d.]+)?/);let o=n.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=n.match(/(iPod)(.*OS\s([\d_]+))?/),f=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let p=l==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&p&&t.touch&&y.indexOf(`${i}x${u}`)>=0&&(o=n.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),p=!1),s&&!m&&(r.os="android",r.android=!0),(o||f||c)&&(r.os="ios",r.ios=!0),r}function Rr(e={}){return Rl||(Rl=gc(e)),Rl}let Fl;function Ec(){const e=$e(),t=Rr();let a=!1;function l(){const u=e.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(l()){const u=String(e.navigator.userAgent);if(u.includes("Version/")){const[s,o]=u.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));a=s<16||s===16&&o<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=l(),i=r||n&&t.ios;return{isSafari:a||r,needPerspectiveFix:a,need3dFix:i,isWebView:n}}function Fr(){return Fl||(Fl=Ec()),Fl}function yc({swiper:e,on:t,emit:a}){const l=$e();let n=null,r=null;const i=()=>{!e||e.destroyed||!e.initialized||(a("beforeResize"),a("resize"))},u=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(c=>{r=l.requestAnimationFrame(()=>{const{width:f,height:m}=e;let p=f,y=m;c.forEach(({contentBoxSize:h,contentRect:b,target:v})=>{v&&v!==e.el||(p=b?b.width:(h[0]||h).inlineSize,y=b?b.height:(h[0]||h).blockSize)}),(p!==f||y!==m)&&i()})}),n.observe(e.el))},s=()=>{r&&l.cancelAnimationFrame(r),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},o=()=>{!e||e.destroyed||!e.initialized||a("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){u();return}l.addEventListener("resize",i),l.addEventListener("orientationchange",o)}),t("destroy",()=>{s(),l.removeEventListener("resize",i),l.removeEventListener("orientationchange",o)})}function Tc({swiper:e,extendParams:t,on:a,emit:l}){const n=[],r=$e(),i=(o,c={})=>{const f=r.MutationObserver||r.WebkitMutationObserver,m=new f(p=>{if(e.__preventObserver__)return;if(p.length===1){l("observerUpdate",p[0]);return}const y=function(){l("observerUpdate",p[0])};r.requestAnimationFrame?r.requestAnimationFrame(y):r.setTimeout(y,0)});m.observe(o,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:e.isElement||(typeof c.childList>"u"?!0:c).childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),n.push(m)},u=()=>{if(e.params.observer){if(e.params.observeParents){const o=Mr(e.hostEl);for(let c=0;c<o.length;c+=1)i(o[c])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}},s=()=>{n.forEach(o=>{o.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",u),a("destroy",s)}var xc={on(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;const n=a?"unshift":"push";return e.split(" ").forEach(r=>{l.eventsListeners[r]||(l.eventsListeners[r]=[]),l.eventsListeners[r][n](t)}),l},once(e,t,a){const l=this;if(!l.eventsListeners||l.destroyed||typeof t!="function")return l;function n(...r){l.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(l,r)}return n.__emitterProxy=t,l.on(e,n,a)},onAny(e,t){const a=this;if(!a.eventsListeners||a.destroyed||typeof e!="function")return a;const l=t?"unshift":"push";return a.eventsAnyListeners.indexOf(e)<0&&a.eventsAnyListeners[l](e),a},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const a=t.eventsAnyListeners.indexOf(e);return a>=0&&t.eventsAnyListeners.splice(a,1),t},off(e,t){const a=this;return!a.eventsListeners||a.destroyed||!a.eventsListeners||e.split(" ").forEach(l=>{typeof t>"u"?a.eventsListeners[l]=[]:a.eventsListeners[l]&&a.eventsListeners[l].forEach((n,r)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&a.eventsListeners[l].splice(r,1)})}),a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let a,l,n;return typeof e[0]=="string"||Array.isArray(e[0])?(a=e[0],l=e.slice(1,e.length),n=t):(a=e[0].events,l=e[0].data,n=e[0].context||t),l.unshift(n),(Array.isArray(a)?a:a.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[i,...l])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(u=>{u.apply(n,l)})}),t}};function Cc(){const e=this;let t,a;const l=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=l.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?a=e.params.height:a=l.clientHeight,!(t===0&&e.isHorizontal()||a===0&&e.isVertical())&&(t=t-parseInt(vt(l,"padding-left")||0,10)-parseInt(vt(l,"padding-right")||0,10),a=a-parseInt(vt(l,"padding-top")||0,10)-parseInt(vt(l,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))}function Sc(){const e=this;function t(A,k){return parseFloat(A.getPropertyValue(e.getDirectionLabel(k))||0)}const a=e.params,{wrapperEl:l,slidesEl:n,rtlTranslate:r,wrongRTL:i}=e,u=e.virtual&&a.virtual.enabled,s=u?e.virtual.slides.length:e.slides.length,o=rt(n,`.${e.params.slideClass}, swiper-slide`),c=u?e.virtual.slides.length:o.length;let f=[];const m=[],p=[];let y=a.slidesOffsetBefore;typeof y=="function"&&(y=a.slidesOffsetBefore.call(e));let h=a.slidesOffsetAfter;typeof h=="function"&&(h=a.slidesOffsetAfter.call(e));const b=e.snapGrid.length,v=e.slidesGrid.length,g=e.size-y-h;let E=a.spaceBetween,_=-y,w=0,C=0;if(typeof g>"u")return;typeof E=="string"&&E.indexOf("%")>=0?E=parseFloat(E.replace("%",""))/100*g:typeof E=="string"&&(E=parseFloat(E)),e.virtualSize=-E-y-h,o.forEach(A=>{r?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(Ut(l,"--swiper-centered-offset-before",""),Ut(l,"--swiper-centered-offset-after","")),a.cssMode&&(Ut(l,"--swiper-slides-offset-before",`${y}px`),Ut(l,"--swiper-slides-offset-after",`${h}px`));const M=a.grid&&a.grid.rows>1&&e.grid;M?e.grid.initSlides(o):e.grid&&e.grid.unsetSlides();let S;const T=a.slidesPerView==="auto"&&a.breakpoints&&Object.keys(a.breakpoints).filter(A=>typeof a.breakpoints[A].slidesPerView<"u").length>0;for(let A=0;A<c;A+=1){S=0;const k=o[A];if(!(k&&(M&&e.grid.updateSlide(A,k,o),vt(k,"display")==="none"))){if(u&&a.slidesPerView==="auto")a.virtual.slidesPerViewAutoSlideSize&&(S=a.virtual.slidesPerViewAutoSlideSize),S&&k&&(a.roundLengths&&(S=Math.floor(S)),k.style[e.getDirectionLabel("width")]=`${S}px`);else if(a.slidesPerView==="auto"){T&&(k.style[e.getDirectionLabel("width")]="");const D=getComputedStyle(k),P=k.style.transform,N=k.style.webkitTransform;if(P&&(k.style.transform="none"),N&&(k.style.webkitTransform="none"),a.roundLengths)S=e.isHorizontal()?Ml(k,"width"):Ml(k,"height");else{const x=t(D,"width"),F=t(D,"padding-left"),U=t(D,"padding-right"),$=t(D,"margin-left"),G=t(D,"margin-right"),L=D.getPropertyValue("box-sizing");if(L&&L==="border-box")S=x+$+G;else{const{clientWidth:W,offsetWidth:V}=k;S=x+F+U+$+G+(V-W)}}P&&(k.style.transform=P),N&&(k.style.webkitTransform=N),a.roundLengths&&(S=Math.floor(S))}else S=(g-(a.slidesPerView-1)*E)/a.slidesPerView,a.roundLengths&&(S=Math.floor(S)),k&&(k.style[e.getDirectionLabel("width")]=`${S}px`);k&&(k.swiperSlideSize=S),p.push(S),a.centeredSlides?(_=_+S/2+w/2+E,w===0&&A!==0&&(_=_-g/2-E),A===0&&(_=_-g/2-E),Math.abs(_)<1/1e3&&(_=0),a.roundLengths&&(_=Math.floor(_)),C%a.slidesPerGroup===0&&f.push(_),m.push(_)):(a.roundLengths&&(_=Math.floor(_)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&f.push(_),m.push(_),_=_+S+E),e.virtualSize+=S+E,w=S,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,g)+h,r&&i&&(a.effect==="slide"||a.effect==="coverflow")&&(l.style.width=`${e.virtualSize+E}px`),a.setWrapperSize&&(l.style[e.getDirectionLabel("width")]=`${e.virtualSize+E}px`),M&&e.grid.updateWrapperSize(S,f),!a.centeredSlides){const A=a.slidesPerView!=="auto"&&a.slidesPerView%1!==0,k=a.snapToSlideEdge&&!a.loop&&(a.slidesPerView==="auto"||A);let D=f.length;if(k){let N;if(a.slidesPerView==="auto"){N=1;let x=0;for(let F=p.length-1;F>=0&&(x+=p[F]+(F<p.length-1?E:0),x<=g);F-=1)N=p.length-F}else N=Math.floor(a.slidesPerView);D=Math.max(c-N,0)}const P=[];for(let N=0;N<f.length;N+=1){let x=f[N];a.roundLengths&&(x=Math.floor(x)),k?N<=D&&P.push(x):f[N]<=e.virtualSize-g&&P.push(x)}f=P,Math.floor(e.virtualSize-g)-Math.floor(f[f.length-1])>1&&(k||f.push(e.virtualSize-g))}if(u&&a.loop){const A=p[0]+E;if(a.slidesPerGroup>1){const k=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/a.slidesPerGroup),D=A*a.slidesPerGroup;for(let P=0;P<k;P+=1)f.push(f[f.length-1]+D)}for(let k=0;k<e.virtual.slidesBefore+e.virtual.slidesAfter;k+=1)a.slidesPerGroup===1&&f.push(f[f.length-1]+A),m.push(m[m.length-1]+A),e.virtualSize+=A}if(f.length===0&&(f=[0]),E!==0){const A=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");o.filter((k,D)=>!a.cssMode||a.loop?!0:D!==o.length-1).forEach(k=>{k.style[A]=`${E}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let A=0;p.forEach(D=>{A+=D+(E||0)}),A-=E;const k=A>g?A-g:0;f=f.map(D=>D<=0?-y:D>k?k+h:D)}if(a.centerInsufficientSlides){let A=0;p.forEach(D=>{A+=D+(E||0)}),A-=E;const k=(y||0)+(h||0);if(A+k<g){const D=(g-A-k)/2;f.forEach((P,N)=>{f[N]=P-D}),m.forEach((P,N)=>{m[N]=P+D})}}if(Object.assign(e,{slides:o,snapGrid:f,slidesGrid:m,slidesSizesGrid:p}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){Ut(l,"--swiper-centered-offset-before",`${-f[0]}px`),Ut(l,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const A=-e.snapGrid[0],k=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(D=>D+A),e.slidesGrid=e.slidesGrid.map(D=>D+k)}if(c!==s&&e.emit("slidesLengthChange"),f.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==v&&e.emit("slidesGridLengthChange"),a.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!u&&!a.cssMode&&(a.effect==="slide"||a.effect==="fade")){const A=`${a.containerModifierClass}backface-hidden`,k=e.el.classList.contains(A);c<=a.maxBackfaceHiddenSlides?k||e.el.classList.add(A):k&&e.el.classList.remove(A)}}function Ac(e){const t=this,a=[],l=t.virtual&&t.params.virtual.enabled;let n=0,r;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=u=>l?t.slides[t.getSlideIndexByData(u)]:t.slides[u];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(u=>{a.push(u)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const u=t.activeIndex+r;if(u>t.slides.length&&!l)break;a.push(i(u))}else a.push(i(t.activeIndex));for(r=0;r<a.length;r+=1)if(typeof a[r]<"u"){const u=a[r].offsetHeight;n=u>n?u:n}(n||n===0)&&(t.wrapperEl.style.height=`${n}px`)}function _c(){const e=this,t=e.slides,a=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let l=0;l<t.length;l+=1)t[l].swiperSlideOffset=(e.isHorizontal()?t[l].offsetLeft:t[l].offsetTop)-a-e.cssOverflowAdjustment()}const Hr=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function wc(e=this&&this.translate||0){const t=this,a=t.params,{slides:l,rtlTranslate:n,snapGrid:r}=t;if(l.length===0)return;typeof l[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;n&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let u=a.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u));for(let s=0;s<l.length;s+=1){const o=l[s];let c=o.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(c-=l[0].swiperSlideOffset);const f=(i+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),m=(i-r[0]+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),p=-(i-c),y=p+t.slidesSizesGrid[s],h=p>=0&&p<=t.size-t.slidesSizesGrid[s],b=p>=0&&p<t.size-1||y>1&&y<=t.size||p<=0&&y>=t.size;b&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s)),Hr(o,b,a.slideVisibleClass),Hr(o,h,a.slideFullyVisibleClass),o.progress=n?-f:f,o.originalProgress=n?-m:m}}function kc(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const a=t.params,l=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:i,progressLoop:u}=t;const s=r,o=i;if(l===0)n=0,r=!0,i=!0;else{n=(e-t.minTranslate())/l;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;r=c||n<=0,i=f||n>=1,c&&(n=0),f&&(n=1)}if(a.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[c],p=t.slidesGrid[f],y=t.slidesGrid[t.slidesGrid.length-1],h=Math.abs(e);h>=m?u=(h-m)/y:u=(h+y-p)/y,u>1&&(u-=1)}Object.assign(t,{progress:n,progressLoop:u,isBeginning:r,isEnd:i}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),r&&!s&&t.emit("reachBeginning toEdge"),i&&!o&&t.emit("reachEnd toEdge"),(s&&!r||o&&!i)&&t.emit("fromEdge"),t.emit("progress",n)}const Hl=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function Nc(){const e=this,{slides:t,params:a,slidesEl:l,activeIndex:n}=e,r=e.virtual&&a.virtual.enabled,i=e.grid&&a.grid&&a.grid.rows>1,u=f=>rt(l,`.${a.slideClass}${f}, swiper-slide${f}`)[0];let s,o,c;if(r)if(a.loop){let f=n-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),s=u(`[data-swiper-slide-index="${f}"]`)}else s=u(`[data-swiper-slide-index="${n}"]`);else i?(s=t.find(f=>f.column===n),c=t.find(f=>f.column===n+1),o=t.find(f=>f.column===n-1)):s=t[n];s&&(i||(c=mc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!c&&(c=t[0]),o=bc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!o===0&&(o=t[t.length-1]))),t.forEach(f=>{Hl(f,f===s,a.slideActiveClass),Hl(f,f===c,a.slideNextClass),Hl(f,f===o,a.slidePrevClass)}),e.emitSlidesClasses()}const Xa=(e,t)=>{if(!e||e.destroyed||!e.params)return;const a=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,l=t.closest(a());if(l){let n=l.querySelector(`.${e.params.lazyPreloaderClass}`);!n&&e.isElement&&(l.shadowRoot?n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{l.shadowRoot&&(n=l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),n&&!n.lazyPreloaderManaged&&n.remove())})),n&&!n.lazyPreloaderManaged&&n.remove()}},$l=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},Ul=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const a=e.slides.length;if(!a||!t||t<0)return;t=Math.min(t,a);const l=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,u=[i-t];u.push(...Array.from({length:t}).map((s,o)=>i+l+o)),e.slides.forEach((s,o)=>{u.includes(s.column)&&$l(e,o)});return}const r=n+l-1;if(e.params.rewind||e.params.loop)for(let i=n-t;i<=r+t;i+=1){const u=(i%a+a)%a;(u<n||u>r)&&$l(e,u)}else for(let i=Math.max(n-t,0);i<=Math.min(r+t,a-1);i+=1)i!==n&&(i>r||i<n)&&$l(e,i)};function Ic(e){const{slidesGrid:t,params:a}=e,l=e.rtlTranslate?e.translate:-e.translate;let n;for(let r=0;r<t.length;r+=1)typeof t[r+1]<"u"?l>=t[r]&&l<t[r+1]-(t[r+1]-t[r])/2?n=r:l>=t[r]&&l<t[r+1]&&(n=r+1):l>=t[r]&&(n=r);return a.normalizeSlideIndex&&(n<0||typeof n>"u")&&(n=0),n}function Lc(e){const t=this,a=t.rtlTranslate?t.translate:-t.translate,{snapGrid:l,params:n,activeIndex:r,realIndex:i,snapIndex:u}=t;let s=e,o;const c=p=>{let y=p-t.virtual.slidesBefore;return y<0&&(y=t.virtual.slides.length+y),y>=t.virtual.slides.length&&(y-=t.virtual.slides.length),y};if(typeof s>"u"&&(s=Ic(t)),l.indexOf(a)>=0)o=l.indexOf(a);else{const p=Math.min(n.slidesPerGroupSkip,s);o=p+Math.floor((s-p)/n.slidesPerGroup)}if(o>=l.length&&(o=l.length-1),s===r&&!t.params.loop){o!==u&&(t.snapIndex=o,t.emit("snapIndexChange"));return}if(s===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=c(s);return}const f=t.grid&&n.grid&&n.grid.rows>1;let m;if(t.virtual&&n.virtual.enabled)n.loop?m=c(s):m=s;else if(f){const p=t.slides.find(h=>h.column===s);let y=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(t.slides.indexOf(p),0)),m=Math.floor(y/n.grid.rows)}else if(t.slides[s]){const p=t.slides[s].getAttribute("data-swiper-slide-index");p?m=parseInt(p,10):m=s}else m=s;Object.assign(t,{previousSnapIndex:u,snapIndex:o,previousRealIndex:i,realIndex:m,previousIndex:r,activeIndex:s}),t.initialized&&Ul(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function Oc(e,t){const a=this,l=a.params;let n=e.closest(`.${l.slideClass}, swiper-slide`);!n&&a.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(u=>{!n&&u.matches&&u.matches(`.${l.slideClass}, swiper-slide`)&&(n=u)});let r=!1,i;if(n){for(let u=0;u<a.slides.length;u+=1)if(a.slides[u]===n){r=!0,i=u;break}}if(n&&r)a.clickedSlide=n,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):a.clickedIndex=i;else{a.clickedSlide=void 0,a.clickedIndex=void 0;return}l.slideToClickedSlide&&a.clickedIndex!==void 0&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()}var Dc={updateSize:Cc,updateSlides:Sc,updateAutoHeight:Ac,updateSlidesOffset:_c,updateSlidesProgress:wc,updateProgress:kc,updateSlidesClasses:Nc,updateActiveIndex:Lc,updateClickedSlide:Oc};function Pc(e=this.isHorizontal()?"x":"y"){const t=this,{params:a,rtlTranslate:l,translate:n,wrapperEl:r}=t;if(a.virtualTranslate)return l?-n:n;if(a.cssMode)return n;let i=dc(r,e);return i+=t.cssOverflowAdjustment(),l&&(i=-i),i||0}function Mc(e,t){const a=this,{rtlTranslate:l,params:n,wrapperEl:r,progress:i}=a;let u=0,s=0;const o=0;a.isHorizontal()?u=l?-e:e:s=e,n.roundLengths&&(u=Math.floor(u),s=Math.floor(s)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?u:s,n.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-u:-s:n.virtualTranslate||(a.isHorizontal()?u-=a.cssOverflowAdjustment():s-=a.cssOverflowAdjustment(),r.style.transform=`translate3d(${u}px, ${s}px, ${o}px)`);let c;const f=a.maxTranslate()-a.minTranslate();f===0?c=0:c=(e-a.minTranslate())/f,c!==i&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)}function Bc(){return-this.snapGrid[0]}function Rc(){return-this.snapGrid[this.snapGrid.length-1]}function Fc(e=0,t=this.params.speed,a=!0,l=!0,n){const r=this,{params:i,wrapperEl:u}=r;if(r.animating&&i.preventInteractionOnTransition)return!1;const s=r.minTranslate(),o=r.maxTranslate();let c;if(l&&e>s?c=s:l&&e<o?c=o:c=e,r.updateProgress(c),i.cssMode){const f=r.isHorizontal();if(t===0)u[f?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return Pr({swiper:r,targetPosition:-c,side:f?"left":"top"}),!0;u.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(r.setTransition(0),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),a&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(m){!r||r.destroyed||m.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,a&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var Hc={getTranslate:Pc,setTranslate:Mc,minTranslate:Bc,maxTranslate:Rc,translateTo:Fc};function $c(e,t){const a=this;a.params.cssMode||(a.wrapperEl.style.transitionDuration=`${e}ms`,a.wrapperEl.style.transitionDelay=e===0?"0ms":""),a.emit("setTransition",e,t)}function $r({swiper:e,runCallbacks:t,direction:a,step:l}){const{activeIndex:n,previousIndex:r}=e;let i=a;i||(n>r?i="next":n<r?i="prev":i="reset"),e.emit(`transition${l}`),t&&i==="reset"?e.emit(`slideResetTransition${l}`):t&&n!==r&&(e.emit(`slideChangeTransition${l}`),i==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`))}function Uc(e=!0,t){const a=this,{params:l}=a;l.cssMode||(l.autoHeight&&a.updateAutoHeight(),$r({swiper:a,runCallbacks:e,direction:t,step:"Start"}))}function qc(e=!0,t){const a=this,{params:l}=a;a.animating=!1,!l.cssMode&&(a.setTransition(0),$r({swiper:a,runCallbacks:e,direction:t,step:"End"}))}var zc={setTransition:$c,transitionStart:Uc,transitionEnd:qc};function Vc(e=0,t,a=!0,l,n){typeof e=="string"&&(e=parseInt(e,10));const r=this;let i=e;i<0&&(i=0);const{params:u,snapGrid:s,slidesGrid:o,previousIndex:c,activeIndex:f,rtlTranslate:m,wrapperEl:p,enabled:y}=r;if(!y&&!l&&!n||r.destroyed||r.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const h=Math.min(r.params.slidesPerGroupSkip,i);let b=h+Math.floor((i-h)/r.params.slidesPerGroup);b>=s.length&&(b=s.length-1);const v=-s[b];if(u.normalizeSlideIndex)for(let M=0;M<o.length;M+=1){const S=-Math.floor(v*100),T=Math.floor(o[M]*100),A=Math.floor(o[M+1]*100);typeof o[M+1]<"u"?S>=T&&S<A-(A-T)/2?i=M:S>=T&&S<A&&(i=M+1):S>=T&&(i=M)}if(r.initialized&&i!==f&&(!r.allowSlideNext&&(m?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate())||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(f||0)!==i))return!1;i!==(c||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let g;i>f?g="next":i<f?g="prev":g="reset";const E=r.virtual&&r.params.virtual.enabled;if(!(E&&n)&&(m&&-v===r.translate||!m&&v===r.translate))return r.updateActiveIndex(i),u.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),u.effect!=="slide"&&r.setTranslate(v),g!=="reset"&&(r.transitionStart(a,g),r.transitionEnd(a,g)),!1;if(u.cssMode){const M=r.isHorizontal(),S=m?v:-v;if(t===0)E&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),E&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[M?"scrollLeft":"scrollTop"]=S})):p[M?"scrollLeft":"scrollTop"]=S,E&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Pr({swiper:r,targetPosition:S,side:M?"left":"top"}),!0;p.scrollTo({[M?"left":"top"]:S,behavior:"smooth"})}return!0}const C=Fr().isSafari;return E&&!n&&C&&r.isElement&&r.virtual.update(!1,!1,i),r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(i),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,l),r.transitionStart(a,g),t===0?r.transitionEnd(a,g):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(S){!r||r.destroyed||S.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(a,g))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function Gc(e=0,t,a=!0,l){typeof e=="string"&&(e=parseInt(e,10));const n=this;if(n.destroyed)return;typeof t>"u"&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let i=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)i=i+n.virtual.slidesBefore;else{let u;if(r){const h=i*n.params.grid.rows;u=n.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===h).column}else u=n.getSlideIndexByData(i);const s=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:o,slidesOffsetBefore:c,slidesOffsetAfter:f}=n.params,m=o||!!c||!!f;let p=n.params.slidesPerView;p==="auto"?p=n.slidesPerViewDynamic():(p=Math.ceil(parseFloat(n.params.slidesPerView,10)),m&&p%2===0&&(p=p+1));let y=s-u<p;if(m&&(y=y||u<Math.ceil(p/2)),l&&m&&n.params.slidesPerView!=="auto"&&!r&&(y=!1),y){const h=m?u<n.activeIndex?"prev":"next":u-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?u+1:u-s+1,slideRealIndex:h==="next"?n.realIndex:void 0})}if(r){const h=i*n.params.grid.rows;i=n.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===h).column}else i=n.getSlideIndexByData(i)}return requestAnimationFrame(()=>{n.slideTo(i,t,a,l)}),n}function Yc(e,t=!0,a){const l=this,{enabled:n,params:r,animating:i}=l;if(!n||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);let u=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(u=Math.max(l.slidesPerViewDynamic("current",!0),1));const s=l.activeIndex<r.slidesPerGroupSkip?1:u,o=l.virtual&&r.virtual.enabled;if(r.loop){if(i&&!o&&r.loopPreventsSliding)return!1;if(l.loopFix({direction:"next"}),l._clientLeft=l.wrapperEl.clientLeft,l.activeIndex===l.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{l.slideTo(l.activeIndex+s,e,t,a)}),!0}return r.rewind&&l.isEnd?l.slideTo(0,e,t,a):l.slideTo(l.activeIndex+s,e,t,a)}function Wc(e,t=!0,a){const l=this,{params:n,snapGrid:r,slidesGrid:i,rtlTranslate:u,enabled:s,animating:o}=l;if(!s||l.destroyed)return l;typeof e>"u"&&(e=l.params.speed);const c=l.virtual&&n.virtual.enabled;if(n.loop){if(o&&!c&&n.loopPreventsSliding)return!1;l.loopFix({direction:"prev"}),l._clientLeft=l.wrapperEl.clientLeft}const f=u?l.translate:-l.translate;function m(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=m(f),y=r.map(g=>m(g)),h=n.freeMode&&n.freeMode.enabled;let b=r[y.indexOf(p)-1];if(typeof b>"u"&&(n.cssMode||h)){let g;r.forEach((E,_)=>{p>=E&&(g=_)}),typeof g<"u"&&(b=h?r[g]:r[g>0?g-1:g])}let v=0;if(typeof b<"u"&&(v=i.indexOf(b),v<0&&(v=l.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(v=v-l.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),n.rewind&&l.isBeginning){const g=l.params.virtual&&l.params.virtual.enabled&&l.virtual?l.virtual.slides.length-1:l.slides.length-1;return l.slideTo(g,e,t,a)}else if(n.loop&&l.activeIndex===0&&n.cssMode)return requestAnimationFrame(()=>{l.slideTo(v,e,t,a)}),!0;return l.slideTo(v,e,t,a)}function jc(e,t=!0,a){const l=this;if(!l.destroyed)return typeof e>"u"&&(e=l.params.speed),l.slideTo(l.activeIndex,e,t,a)}function Xc(e,t=!0,a,l=.5){const n=this;if(n.destroyed)return;typeof e>"u"&&(e=n.params.speed);let r=n.activeIndex;const i=Math.min(n.params.slidesPerGroupSkip,r),u=i+Math.floor((r-i)/n.params.slidesPerGroup),s=n.rtlTranslate?n.translate:-n.translate;if(s>=n.snapGrid[u]){const o=n.snapGrid[u],c=n.snapGrid[u+1];s-o>(c-o)*l&&(r+=n.params.slidesPerGroup)}else{const o=n.snapGrid[u-1],c=n.snapGrid[u];s-o<=(c-o)*l&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,a)}function Kc(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:a}=e,l=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let n=e.getSlideIndexWhenGrid(e.clickedIndex),r;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(r):n>(u?(e.slides.length-l)/2-(e.params.grid.rows-1):e.slides.length-l)?(e.loopFix(),n=e.getSlideIndex(rt(a,`${i}[data-swiper-slide-index="${r}"]`)[0]),Dr(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}var Qc={slideTo:Vc,slideToLoop:Gc,slideNext:Yc,slidePrev:Wc,slideReset:jc,slideToClosest:Xc,slideToClickedSlide:Kc};function Jc(e,t){const a=this,{params:l,slidesEl:n}=a;if(!l.loop||a.virtual&&a.params.virtual.enabled)return;const r=()=>{rt(n,`.${l.slideClass}, swiper-slide`).forEach((y,h)=>{y.setAttribute("data-swiper-slide-index",h)})},i=()=>{const p=rt(n,`.${l.slideBlankClass}`);p.forEach(y=>{y.remove()}),p.length>0&&(a.recalcSlides(),a.updateSlides())},u=a.grid&&l.grid&&l.grid.rows>1;l.loopAddBlankSlides&&(l.slidesPerGroup>1||u)&&i();const s=l.slidesPerGroup*(u?l.grid.rows:1),o=a.slides.length%s!==0,c=u&&a.slides.length%l.grid.rows!==0,f=p=>{for(let y=0;y<p;y+=1){const h=a.isElement?Wa("swiper-slide",[l.slideBlankClass]):Wa("div",[l.slideClass,l.slideBlankClass]);a.slidesEl.append(h)}};if(o){if(l.loopAddBlankSlides){const p=s-a.slides.length%s;f(p),a.recalcSlides(),a.updateSlides()}else Ya("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(l.loopAddBlankSlides){const p=l.grid.rows-a.slides.length%l.grid.rows;f(p),a.recalcSlides(),a.updateSlides()}else Ya("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();const m=l.centeredSlides||!!l.slidesOffsetBefore||!!l.slidesOffsetAfter;a.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function Zc({slideRealIndex:e,slideTo:t=!0,direction:a,setTranslate:l,activeSlideIndex:n,initial:r,byController:i,byMousewheel:u}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:o,allowSlidePrev:c,allowSlideNext:f,slidesEl:m,params:p}=s,{centeredSlides:y,slidesOffsetBefore:h,slidesOffsetAfter:b,initialSlide:v}=p,g=y||!!h||!!b;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&p.virtual.enabled){t&&(!g&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):g&&s.snapIndex<p.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=f,s.emit("loopFix");return}let E=p.slidesPerView;E==="auto"?E=s.slidesPerViewDynamic():(E=Math.ceil(parseFloat(p.slidesPerView,10)),g&&E%2===0&&(E=E+1));const _=p.slidesPerGroupAuto?E:p.slidesPerGroup;let w=g?Math.max(_,Math.ceil(E/2)):_;w%_!==0&&(w+=_-w%_),w+=p.loopAdditionalSlides,s.loopedSlides=w;const C=s.grid&&p.grid&&p.grid.rows>1;o.length<E+w||s.params.effect==="cards"&&o.length<E+w*2?Ya("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):C&&p.grid.fill==="row"&&Ya("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const M=[],S=[],T=C?Math.ceil(o.length/p.grid.rows):o.length,A=r&&T-v<E&&!g;let k=A?v:s.activeIndex;typeof n>"u"?n=s.getSlideIndex(o.find($=>$.classList.contains(p.slideActiveClass))):k=n;const D=a==="next"||!a,P=a==="prev"||!a;let N=0,x=0;const U=(C?o[n].column:n)+(g&&typeof l>"u"?-E/2+.5:0);if(U<w){N=Math.max(w-U,_);for(let $=0;$<w-U;$+=1){const G=$-Math.floor($/T)*T;if(C){const L=T-G-1;for(let W=o.length-1;W>=0;W-=1)o[W].column===L&&M.push(W)}else M.push(T-G-1)}}else if(U+E>T-w){x=Math.max(U-(T-w*2),_),A&&(x=Math.max(x,E-T+v+1));for(let $=0;$<x;$+=1){const G=$-Math.floor($/T)*T;C?o.forEach((L,W)=>{L.column===G&&S.push(W)}):S.push(G)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),s.params.effect==="cards"&&o.length<E+w*2&&(S.includes(n)&&S.splice(S.indexOf(n),1),M.includes(n)&&M.splice(M.indexOf(n),1)),P&&M.forEach($=>{o[$].swiperLoopMoveDOM=!0,m.prepend(o[$]),o[$].swiperLoopMoveDOM=!1}),D&&S.forEach($=>{o[$].swiperLoopMoveDOM=!0,m.append(o[$]),o[$].swiperLoopMoveDOM=!1}),s.recalcSlides(),p.slidesPerView==="auto"?s.updateSlides():C&&(M.length>0&&P||S.length>0&&D)&&s.slides.forEach(($,G)=>{s.grid.updateSlide(G,$,s.slides)}),p.watchSlidesProgress&&s.updateSlidesOffset(),t){if(M.length>0&&P){if(typeof e>"u"){const $=s.slidesGrid[k],L=s.slidesGrid[k+N]-$;u?s.setTranslate(s.translate-L):(s.slideTo(k+Math.ceil(N),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-L,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-L))}else if(l){const $=C?M.length/p.grid.rows:M.length;s.slideTo(s.activeIndex+$,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(S.length>0&&D)if(typeof e>"u"){const $=s.slidesGrid[k],L=s.slidesGrid[k-x]-$;u?s.setTranslate(s.translate-L):(s.slideTo(k-x,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-L,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-L))}else{const $=C?S.length/p.grid.rows:S.length;s.slideTo(s.activeIndex-$,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=f,s.controller&&s.controller.control&&!i){const $={slideRealIndex:e,direction:a,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(G=>{!G.destroyed&&G.params.loop&&G.loopFix({...$,slideTo:G.params.slidesPerView===p.slidesPerView?t:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...$,slideTo:s.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}s.emit("loopFix")}function ed(){const e=this,{params:t,slidesEl:a}=e;if(!t.loop||!a||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const l=[];e.slides.forEach(n=>{const r=typeof n.swiperSlideIndex>"u"?n.getAttribute("data-swiper-slide-index")*1:n.swiperSlideIndex;l[r]=n}),e.slides.forEach(n=>{n.removeAttribute("data-swiper-slide-index")}),l.forEach(n=>{a.append(n)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var td={loopCreate:Jc,loopFix:Zc,loopDestroy:ed};function ad(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const a=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function ld(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var nd={setGrabCursor:ad,unsetGrabCursor:ld};function rd(e,t=this){function a(l){if(!l||l===wt()||l===$e())return null;l.assignedSlot&&(l=l.assignedSlot);const n=l.closest(e);return!n&&!l.getRootNode?null:n||a(l.getRootNode().host)}return a(t)}function Ur(e,t,a){const l=$e(),{params:n}=e,r=n.edgeSwipeDetection,i=n.edgeSwipeThreshold;return r&&(a<=i||a>=l.innerWidth-i)?r==="prevent"?(t.preventDefault(),!0):!1:!0}function id(e){const t=this,a=wt();let l=e;l.originalEvent&&(l=l.originalEvent);const n=t.touchEventsData;if(l.type==="pointerdown"){if(n.pointerId!==null&&n.pointerId!==l.pointerId)return;n.pointerId=l.pointerId}else l.type==="touchstart"&&l.targetTouches.length===1&&(n.touchId=l.targetTouches[0].identifier);if(l.type==="touchstart"){Ur(t,l,l.targetTouches[0].pageX);return}const{params:r,touches:i,enabled:u}=t;if(!u||!r.simulateTouch&&l.pointerType==="mouse"||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let s=l.target;if(r.touchEventsTarget==="wrapper"&&!hc(s,t.wrapperEl)||"which"in l&&l.which===3||"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;const o=!!r.noSwipingClass&&r.noSwipingClass!=="",c=l.composedPath?l.composedPath():l.path;o&&l.target&&l.target.shadowRoot&&c&&(s=c[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?rd(f,s):s.closest(f))){t.allowClick=!0;return}if(r.swipeHandler&&!s.closest(r.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const p=i.currentX,y=i.currentY;if(!Ur(t,l,p))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=p,i.startY=y,n.touchStartTime=Va(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let h=!0;s.matches(n.focusableElements)&&(h=!1,s.nodeName==="SELECT"&&(n.isTouched=!1)),a.activeElement&&a.activeElement.matches(n.focusableElements)&&a.activeElement!==s&&(l.pointerType==="mouse"||l.pointerType!=="mouse"&&!s.matches(n.focusableElements))&&a.activeElement.blur();const b=h&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||b)&&!s.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function ud(e){const t=wt(),a=this,l=a.touchEventsData,{params:n,touches:r,rtlTranslate:i,enabled:u}=a;if(!u||!n.simulateTouch&&e.pointerType==="mouse")return;let s=e;if(s.originalEvent&&(s=s.originalEvent),s.type==="pointermove"&&(l.touchId!==null||s.pointerId!==l.pointerId))return;let o;if(s.type==="touchmove"){if(o=[...s.changedTouches].find(w=>w.identifier===l.touchId),!o||o.identifier!==l.touchId)return}else o=s;if(!l.isTouched){l.startMoving&&l.isScrolling&&a.emit("touchMoveOpposite",s);return}const c=o.pageX,f=o.pageY;if(s.preventedByNestedSwiper){r.startX=c,r.startY=f;return}if(!a.allowTouchMove){s.target.matches(l.focusableElements)||(a.allowClick=!1),l.isTouched&&(Object.assign(r,{startX:c,startY:f,currentX:c,currentY:f}),l.touchStartTime=Va());return}if(n.touchReleaseOnEdges&&!n.loop)if(a.isVertical()){if(f<r.startY&&a.translate<=a.maxTranslate()||f>r.startY&&a.translate>=a.minTranslate()){l.isTouched=!1,l.isMoved=!1;return}}else{if(i&&(c>r.startX&&-a.translate<=a.maxTranslate()||c<r.startX&&-a.translate>=a.minTranslate()))return;if(!i&&(c<r.startX&&a.translate<=a.maxTranslate()||c>r.startX&&a.translate>=a.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(l.focusableElements)&&t.activeElement!==s.target&&s.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&s.target===t.activeElement&&s.target.matches(l.focusableElements)){l.isMoved=!0,a.allowClick=!1;return}l.allowTouchCallbacks&&a.emit("touchMove",s),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=c,r.currentY=f;const m=r.currentX-r.startX,p=r.currentY-r.startY;if(a.params.threshold&&Math.sqrt(m**2+p**2)<a.params.threshold)return;if(typeof l.isScrolling>"u"){let w;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?l.isScrolling=!1:m*m+p*p>=25&&(w=Math.atan2(Math.abs(p),Math.abs(m))*180/Math.PI,l.isScrolling=a.isHorizontal()?w>n.touchAngle:90-w>n.touchAngle)}if(l.isScrolling&&a.emit("touchMoveOpposite",s),typeof l.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(l.startMoving=!0),l.isScrolling||s.type==="touchmove"&&l.preventTouchMoveFromPointerMove){l.isTouched=!1;return}if(!l.startMoving)return;a.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation();let y=a.isHorizontal()?m:p,h=a.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(y=Math.abs(y)*(i?1:-1),h=Math.abs(h)*(i?1:-1)),r.diff=y,y*=n.touchRatio,i&&(y=-y,h=-h);const b=a.touchesDirection;a.swipeDirection=y>0?"prev":"next",a.touchesDirection=h>0?"prev":"next";const v=a.params.loop&&!n.cssMode,g=a.touchesDirection==="next"&&a.allowSlideNext||a.touchesDirection==="prev"&&a.allowSlidePrev;if(!l.isMoved){if(v&&g&&a.loopFix({direction:a.swipeDirection}),l.startTranslate=a.getTranslate(),a.setTransition(0),a.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});a.wrapperEl.dispatchEvent(w)}l.allowMomentumBounce=!1,n.grabCursor&&(a.allowSlideNext===!0||a.allowSlidePrev===!0)&&a.setGrabCursor(!0),a.emit("sliderFirstMove",s)}if(new Date().getTime(),n._loopSwapReset!==!1&&l.isMoved&&l.allowThresholdMove&&b!==a.touchesDirection&&v&&g&&Math.abs(y)>=1){Object.assign(r,{startX:c,startY:f,currentX:c,currentY:f,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}a.emit("sliderMove",s),l.isMoved=!0,l.currentTranslate=y+l.startTranslate;let E=!0,_=n.resistanceRatio;if(n.touchReleaseOnEdges&&(_=0),y>0?(v&&g&&l.allowThresholdMove&&l.currentTranslate>(n.centeredSlides?a.minTranslate()-a.slidesSizesGrid[a.activeIndex+1]-(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.activeIndex+1]+a.params.spaceBetween:0)-a.params.spaceBetween:a.minTranslate())&&a.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>a.minTranslate()&&(E=!1,n.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+y)**_))):y<0&&(v&&g&&l.allowThresholdMove&&l.currentTranslate<(n.centeredSlides?a.maxTranslate()+a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween+(n.slidesPerView!=="auto"&&a.slides.length-n.slidesPerView>=2?a.slidesSizesGrid[a.slidesSizesGrid.length-1]+a.params.spaceBetween:0):a.maxTranslate())&&a.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:a.slides.length-(n.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),l.currentTranslate<a.maxTranslate()&&(E=!1,n.resistance&&(l.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-l.startTranslate-y)**_))),E&&(s.preventedByNestedSwiper=!0),!a.allowSlideNext&&a.swipeDirection==="next"&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&a.swipeDirection==="prev"&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),!a.allowSlidePrev&&!a.allowSlideNext&&(l.currentTranslate=l.startTranslate),n.threshold>0)if(Math.abs(y)>n.threshold||l.allowThresholdMove){if(!l.allowThresholdMove){l.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,l.currentTranslate=l.startTranslate,r.diff=a.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{l.currentTranslate=l.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&a.freeMode||n.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(l.currentTranslate),a.setTranslate(l.currentTranslate))}function sd(e){const t=this,a=t.touchEventsData;let l=e;l.originalEvent&&(l=l.originalEvent);let n;if(l.type==="touchend"||l.type==="touchcancel"){if(n=[...l.changedTouches].find(w=>w.identifier===a.touchId),!n||n.identifier!==a.touchId)return}else{if(a.touchId!==null||l.pointerId!==a.pointerId)return;n=l}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)&&!(["pointercancel","contextmenu"].includes(l.type)&&(t.browser.isSafari||t.browser.isWebView)))return;a.pointerId=null,a.touchId=null;const{params:i,touches:u,rtlTranslate:s,slidesGrid:o,enabled:c}=t;if(!c||!i.simulateTouch&&l.pointerType==="mouse")return;if(a.allowTouchCallbacks&&t.emit("touchEnd",l),a.allowTouchCallbacks=!1,!a.isTouched){a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,a.startMoving=!1;return}i.grabCursor&&a.isMoved&&a.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const f=Va(),m=f-a.touchStartTime;if(t.allowClick){const w=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(w&&w[0]||l.target,w),t.emit("tap click",l),m<300&&f-a.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(a.lastClickTime=Va(),Dr(()=>{t.destroyed||(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||u.diff===0&&!a.loopSwapReset||a.currentTranslate===a.startTranslate&&!a.loopSwapReset){a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;return}a.isTouched=!1,a.isMoved=!1,a.startMoving=!1;let p;if(i.followFinger?p=s?t.translate:-t.translate:p=-a.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const y=p>=-t.maxTranslate()&&!t.params.loop;let h=0,b=t.slidesSizesGrid[0];for(let w=0;w<o.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const C=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof o[w+C]<"u"?(y||p>=o[w]&&p<o[w+C])&&(h=w,b=o[w+C]-o[w]):(y||p>=o[w])&&(h=w,b=o[o.length-1]-o[o.length-2])}let v=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const E=(p-o[h])/b,_=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(m>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(E>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?v:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(E>1-i.longSwipesRatio?t.slideTo(h+_):g!==null&&E<0&&Math.abs(E)>i.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:h+_),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:h))}}function qr(){const e=this,{params:t,el:a}=e;if(a&&a.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:l,allowSlidePrev:n,snapGrid:r}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const u=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=l,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function od(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function cd(){const e=this,{wrapperEl:t,rtlTranslate:a,enabled:l}=e;if(!l)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let n;const r=e.maxTranslate()-e.minTranslate();r===0?n=0:n=(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(a?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function dd(e){const t=this;Xa(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function fd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const zr=(e,t)=>{const a=wt(),{params:l,el:n,wrapperEl:r,device:i}=e,u=!!l.nested,s=t==="on"?"addEventListener":"removeEventListener",o=t;!n||typeof n=="string"||(a[s]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:u}),n[s]("touchstart",e.onTouchStart,{passive:!1}),n[s]("pointerdown",e.onTouchStart,{passive:!1}),a[s]("touchmove",e.onTouchMove,{passive:!1,capture:u}),a[s]("pointermove",e.onTouchMove,{passive:!1,capture:u}),a[s]("touchend",e.onTouchEnd,{passive:!0}),a[s]("pointerup",e.onTouchEnd,{passive:!0}),a[s]("pointercancel",e.onTouchEnd,{passive:!0}),a[s]("touchcancel",e.onTouchEnd,{passive:!0}),a[s]("pointerout",e.onTouchEnd,{passive:!0}),a[s]("pointerleave",e.onTouchEnd,{passive:!0}),a[s]("contextmenu",e.onTouchEnd,{passive:!0}),(l.preventClicks||l.preventClicksPropagation)&&n[s]("click",e.onClick,!0),l.cssMode&&r[s]("scroll",e.onScroll),l.updateOnWindowResize?e[o](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",qr,!0):e[o]("observerUpdate",qr,!0),n[s]("load",e.onLoad,{capture:!0}))};function pd(){const e=this,{params:t}=e;e.onTouchStart=id.bind(e),e.onTouchMove=ud.bind(e),e.onTouchEnd=sd.bind(e),e.onDocumentTouchStart=fd.bind(e),t.cssMode&&(e.onScroll=cd.bind(e)),e.onClick=od.bind(e),e.onLoad=dd.bind(e),zr(e,"on")}function hd(){zr(this,"off")}var bd={attachEvents:pd,detachEvents:hd};const Vr=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function md(){const e=this,{realIndex:t,initialized:a,params:l,el:n}=e,r=l.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const i=wt(),u=l.breakpointsBase==="window"||!l.breakpointsBase?l.breakpointsBase:"container",s=["window","container"].includes(l.breakpointsBase)||!l.breakpointsBase?e.el:i.querySelector(l.breakpointsBase),o=e.getBreakpoint(r,u,s);if(!o||e.currentBreakpoint===o)return;const f=(o in r?r[o]:void 0)||e.originalParams,m=Vr(e,l),p=Vr(e,f),y=e.params.grabCursor,h=f.grabCursor,b=l.enabled;m&&!p?(n.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&p&&(n.classList.add(`${l.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&l.grid.fill==="column")&&n.classList.add(`${l.containerModifierClass}grid-column`),e.emitContainerClasses()),y&&!h?e.unsetGrabCursor():!y&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(C=>{if(typeof f[C]>"u")return;const M=l[C]&&l[C].enabled,S=f[C]&&f[C].enabled;M&&!S&&e[C].disable(),!M&&S&&e[C].enable()});const v=f.direction&&f.direction!==l.direction,g=l.loop&&(f.slidesPerView!==l.slidesPerView||v),E=l.loop;v&&a&&e.changeDirection(),We(e.params,f);const _=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),b&&!_?e.disable():!b&&_&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",f),a&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!E&&w?(e.loopCreate(t),e.updateSlides()):E&&!w&&e.loopDestroy()),e.emit("breakpoint",f)}function vd(e,t="window",a){if(!e||t==="container"&&!a)return;let l=!1;const n=$e(),r=t==="window"?n.innerHeight:a.clientHeight,i=Object.keys(e).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const s=parseFloat(u.substr(1));return{value:r*s,point:u}}return{value:u,point:u}});i.sort((u,s)=>parseInt(u.value,10)-parseInt(s.value,10));for(let u=0;u<i.length;u+=1){const{point:s,value:o}=i[u];t==="window"?n.matchMedia(`(min-width: ${o}px)`).matches&&(l=s):o<=a.clientWidth&&(l=s)}return l||"max"}var gd={setBreakpoint:md,getBreakpoint:vd};function Ed(e,t){const a=[];return e.forEach(l=>{typeof l=="object"?Object.keys(l).forEach(n=>{l[n]&&a.push(t+n)}):typeof l=="string"&&a.push(t+l)}),a}function yd(){const e=this,{classNames:t,params:a,rtl:l,el:n,device:r}=e,i=Ed(["initialized",a.direction,{"free-mode":e.params.freeMode&&a.freeMode.enabled},{autoheight:a.autoHeight},{rtl:l},{grid:a.grid&&a.grid.rows>1},{"grid-column":a.grid&&a.grid.rows>1&&a.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":a.cssMode},{centered:a.cssMode&&a.centeredSlides},{"watch-progress":a.watchSlidesProgress}],a.containerModifierClass);t.push(...i),n.classList.add(...t),e.emitContainerClasses()}function Td(){const e=this,{el:t,classNames:a}=e;!t||typeof t=="string"||(t.classList.remove(...a),e.emitContainerClasses())}var xd={addClasses:yd,removeClasses:Td};function Cd(){const e=this,{isLocked:t,params:a}=e,{slidesOffsetBefore:l}=a;if(l){const n=e.slides.length-1,r=e.slidesGrid[n]+e.slidesSizesGrid[n]+l*2;e.isLocked=e.size>r}else e.isLocked=e.snapGrid.length===1;a.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),a.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Sd={checkOverflow:Cd},ql={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ad(e,t){return function(l={}){const n=Object.keys(l)[0],r=l[n];if(typeof r!="object"||r===null){We(t,l);return}if(e[n]===!0&&(e[n]={enabled:!0}),n==="navigation"&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),!(n in e&&"enabled"in r)){We(t,l);return}typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),We(t,l)}}const zl={eventsEmitter:xc,update:Dc,translate:Hc,transition:zc,slide:Qc,loop:td,grabCursor:nd,events:bd,breakpoints:gd,checkOverflow:Sd,classes:xd},Vl={};let Gl=class bt{constructor(...t){let a,l;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?l=t[0]:[a,l]=t,l||(l={}),l=We({},l),a&&!l.el&&(l.el=a);const n=wt();if(l.el&&typeof l.el=="string"&&n.querySelectorAll(l.el).length>1){const s=[];return n.querySelectorAll(l.el).forEach(o=>{const c=We({},l,{el:o});s.push(new bt(c))}),s}const r=this;r.__swiper__=!0,r.support=Br(),r.device=Rr({userAgent:l.userAgent}),r.browser=Fr(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],l.modules&&Array.isArray(l.modules)&&r.modules.push(...l.modules);const i={};r.modules.forEach(s=>{s({params:l,swiper:r,extendParams:Ad(l,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=We({},ql,i);return r.params=We({},u,Vl,l),r.originalParams=We({},r.params),r.passedParams=We({},l),r.params&&r.params.on&&Object.keys(r.params.on).forEach(s=>{r.on(s,r.params.on[s])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:a,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:a,params:l}=this,n=rt(a,`.${l.slideClass}, swiper-slide`),r=ja(n[0]);return ja(t)-r}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(a=>a.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:a,params:l}=t;t.slides=rt(a,`.${l.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,a){const l=this;t=Math.min(Math.max(t,0),1);const n=l.minTranslate(),i=(l.maxTranslate()-n)*t+n;l.translateTo(i,typeof a>"u"?0:a),l.updateActiveIndex(),l.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=t.el.className.split(" ").filter(l=>l.indexOf("swiper")===0||l.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",a.join(" "))}getSlideClasses(t){const a=this;return a.destroyed?"":t.className.split(" ").filter(l=>l.indexOf("swiper-slide")===0||l.indexOf(a.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const a=[];t.slides.forEach(l=>{const n=t.getSlideClasses(l);a.push({slideEl:l,classNames:n}),t.emit("_slideClass",l,n)}),t.emit("_slideClasses",a)}slidesPerViewDynamic(t="current",a=!1){const l=this,{params:n,slides:r,slidesGrid:i,slidesSizesGrid:u,size:s,activeIndex:o}=l;let c=1;if(typeof n.slidesPerView=="number")return n.slidesPerView;if(n.centeredSlides){let f=r[o]?Math.ceil(r[o].swiperSlideSize):0,m;for(let p=o+1;p<r.length;p+=1)r[p]&&!m&&(f+=Math.ceil(r[p].swiperSlideSize),c+=1,f>s&&(m=!0));for(let p=o-1;p>=0;p-=1)r[p]&&!m&&(f+=r[p].swiperSlideSize,c+=1,f>s&&(m=!0))}else if(t==="current")for(let f=o+1;f<r.length;f+=1)(a?i[f]+u[f]-i[o]<s:i[f]-i[o]<s)&&(c+=1);else for(let f=o-1;f>=0;f-=1)i[o]-i[f]<s&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:a,params:l}=t;l.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&Xa(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function n(){const i=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let r;if(l.freeMode&&l.freeMode.enabled&&!l.cssMode)n(),l.autoHeight&&t.updateAutoHeight();else{if((l.slidesPerView==="auto"||l.slidesPerView>1)&&t.isEnd&&!l.centeredSlides){const i=t.virtual&&l.virtual.enabled?t.virtual.slides:t.slides;r=t.slideTo(i.length-1,0,!1,!0)}else r=t.slideTo(t.activeIndex,0,!1,!0);r||n()}l.watchOverflow&&a!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,a=!0){const l=this,n=l.params.direction;return t||(t=n==="horizontal"?"vertical":"horizontal"),t===n||t!=="horizontal"&&t!=="vertical"||(l.el.classList.remove(`${l.params.containerModifierClass}${n}`),l.el.classList.add(`${l.params.containerModifierClass}${t}`),l.emitContainerClasses(),l.params.direction=t,l.slides.forEach(r=>{t==="vertical"?r.style.width="":r.style.height=""}),l.emit("changeDirection"),a&&l.update()),l}changeLanguageDirection(t){const a=this;a.rtl&&t==="rtl"||!a.rtl&&t==="ltr"||(a.rtl=t==="rtl",a.rtlTranslate=a.params.direction==="horizontal"&&a.rtl,a.rtl?(a.el.classList.add(`${a.params.containerModifierClass}rtl`),a.el.dir="rtl"):(a.el.classList.remove(`${a.params.containerModifierClass}rtl`),a.el.dir="ltr"),a.update())}mount(t){const a=this;if(a.mounted)return!0;let l=t||a.params.el;if(typeof l=="string"&&(l=document.querySelector(l)),!l)return!1;l.swiper=a,l.parentNode&&l.parentNode.host&&l.parentNode.host.nodeName===a.params.swiperElementNodeName.toUpperCase()&&(a.isElement=!0);const n=()=>`.${(a.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=l&&l.shadowRoot&&l.shadowRoot.querySelector?l.shadowRoot.querySelector(n()):rt(l,n())[0];return!i&&a.params.createElements&&(i=Wa("div",a.params.wrapperClass),l.append(i),rt(l,`.${a.params.slideClass}`).forEach(u=>{i.append(u)})),Object.assign(a,{el:l,wrapperEl:i,slidesEl:a.isElement&&!l.parentNode.host.slideSlots?l.parentNode.host:i,hostEl:a.isElement?l.parentNode.host:l,mounted:!0,rtl:l.dir.toLowerCase()==="rtl"||vt(l,"direction")==="rtl",rtlTranslate:a.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||vt(l,"direction")==="rtl"),wrongRTL:vt(i,"display")==="-webkit-box"}),!0}init(t){const a=this;if(a.initialized||a.mount(t)===!1)return a;a.emit("beforeInit"),a.params.breakpoints&&a.setBreakpoint(),a.addClasses(),a.updateSize(),a.updateSlides(),a.params.watchOverflow&&a.checkOverflow(),a.params.grabCursor&&a.enabled&&a.setGrabCursor(),a.params.loop&&a.virtual&&a.params.virtual.enabled?a.slideTo(a.params.initialSlide+a.virtual.slidesBefore,0,a.params.runCallbacksOnInit,!1,!0):a.slideTo(a.params.initialSlide,0,a.params.runCallbacksOnInit,!1,!0),a.params.loop&&a.loopCreate(void 0,!0),a.attachEvents();const n=[...a.el.querySelectorAll('[loading="lazy"]')];return a.isElement&&n.push(...a.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(r=>{r.complete?Xa(a,r):r.addEventListener("load",i=>{Xa(a,i.target)})}),Ul(a),a.initialized=!0,Ul(a),a.emit("init"),a.emit("afterInit"),a}destroy(t=!0,a=!0){const l=this,{params:n,el:r,wrapperEl:i,slides:u}=l;return typeof l.params>"u"||l.destroyed||(l.emit("beforeDestroy"),l.initialized=!1,l.detachEvents(),n.loop&&l.loopDestroy(),a&&(l.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),i&&i.removeAttribute("style"),u&&u.length&&u.forEach(s=>{s.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),s.removeAttribute("style"),s.removeAttribute("data-swiper-slide-index")})),l.emit("destroy"),Object.keys(l.eventsListeners).forEach(s=>{l.off(s)}),t!==!1&&(l.el&&typeof l.el!="string"&&(l.el.swiper=null),oc(l)),l.destroyed=!0),null}static extendDefaults(t){We(Vl,t)}static get extendedDefaults(){return Vl}static get defaults(){return ql}static installModule(t){bt.prototype.__modules__||(bt.prototype.__modules__=[]);const a=bt.prototype.__modules__;typeof t=="function"&&a.indexOf(t)<0&&a.push(t)}static use(t){return Array.isArray(t)?(t.forEach(a=>bt.installModule(a)),bt):(bt.installModule(t),bt)}};Object.keys(zl).forEach(e=>{Object.keys(zl[e]).forEach(t=>{Gl.prototype[t]=zl[e][t]})}),Gl.use([yc,Tc]);const Gr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function kt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function qt(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter(l=>a.indexOf(l)<0).forEach(l=>{typeof e[l]>"u"?e[l]=t[l]:kt(t[l])&&kt(e[l])&&Object.keys(t[l]).length>0?t[l].__swiper__?e[l]=t[l]:qt(e[l],t[l]):e[l]=t[l]})}function Yr(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Wr(e={}){return e.pagination&&typeof e.pagination.el>"u"}function jr(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Xr(e=""){const t=e.split(" ").map(l=>l.trim()).filter(l=>!!l),a=[];return t.forEach(l=>{a.indexOf(l)<0&&a.push(l)}),a.join(" ")}function _d(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function wd({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:n,prevEl:r,scrollbarEl:i,paginationEl:u}){const s=l.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:o,pagination:c,navigation:f,scrollbar:m,virtual:p,thumbs:y}=e;let h,b,v,g,E,_,w,C;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&!a.thumbs.swiper.destroyed&&o.thumbs&&(!o.thumbs.swiper||o.thumbs.swiper.destroyed)&&(h=!0),l.includes("controller")&&a.controller&&a.controller.control&&o.controller&&!o.controller.control&&(b=!0),l.includes("pagination")&&a.pagination&&(a.pagination.el||u)&&(o.pagination||o.pagination===!1)&&c&&!c.el&&(v=!0),l.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||i)&&(o.scrollbar||o.scrollbar===!1)&&m&&!m.el&&(g=!0),l.includes("navigation")&&a.navigation&&(a.navigation.prevEl||r)&&(a.navigation.nextEl||n)&&(o.navigation||o.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(E=!0);const M=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),o[S].prevEl=void 0,o[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),o[S].el=void 0,e[S].el=void 0))};l.includes("loop")&&e.isElement&&(o.loop&&!a.loop?_=!0:!o.loop&&a.loop?w=!0:C=!0),s.forEach(S=>{if(kt(o[S])&&kt(a[S]))Object.assign(o[S],a[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in a[S]&&!a[S].enabled&&M(S);else{const T=a[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&M(S):o[S]=a[S]}}),s.includes("controller")&&!b&&e.controller&&e.controller.control&&o.controller&&o.controller.control&&(e.controller.control=o.controller.control),l.includes("children")&&t&&p&&o.virtual.enabled?(p.slides=t,p.update(!0)):l.includes("virtual")&&p&&o.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),l.includes("children")&&t&&o.loop&&(C=!0),h&&y.init()&&y.update(!0),b&&(e.controller.control=o.controller.control),v&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),e.el.appendChild(u)),u&&(o.pagination.el=u),c.init(),c.render(),c.update()),g&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(o.scrollbar.el=i),m.init(),m.updateSize(),m.setTranslate()),E&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),la(n,e.navigation.arrowSvg),n.part.add("button-next"),e.el.appendChild(n)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),la(r,e.navigation.arrowSvg),r.part.add("button-prev"),e.el.appendChild(r))),n&&(o.navigation.nextEl=n),r&&(o.navigation.prevEl=r),f.init(),f.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),(_||C)&&e.loopDestroy(),(w||C)&&e.loopCreate(),e.update()}function kd(e={},t=!0){const a={on:{}},l={},n={};qt(a,ql),a._emitClasses=!0,a.init=!1;const r={},i=Gr.map(s=>s.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(s=>{typeof e[s]>"u"||(i.indexOf(s)>=0?kt(e[s])?(a[s]={},n[s]={},qt(a[s],e[s]),qt(n[s],e[s])):(a[s]=e[s],n[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]=="function"?t?l[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:r[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(s=>{a[s]===!0&&(a[s]={}),a[s]===!1&&delete a[s]}),{params:a,passedParams:n,rest:r,events:l}}function Nd({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:n,swiper:r},i){Yr(i)&&t&&a&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),Wr(i)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),jr(i)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(e)}function Id(e,t,a,l,n){const r=[];if(!t)return r;const i=s=>{r.indexOf(s)<0&&r.push(s)};if(a&&l){const s=l.map(n),o=a.map(n);s.join("")!==o.join("")&&i("children"),l.length!==a.length&&i("children")}return Gr.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(kt(e[s])&&kt(t[s])){const o=Object.keys(e[s]),c=Object.keys(t[s]);o.length!==c.length?i(s):(o.forEach(f=>{e[s][f]!==t[s][f]&&i(s)}),c.forEach(f=>{e[s][f]!==t[s][f]&&i(s)}))}else e[s]!==t[s]&&i(s)}),r}const Ld=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ka.apply(this,arguments)}function Kr(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Qr(e){const t=[];return I.Children.toArray(e).forEach(a=>{Kr(a)?t.push(a):a.props&&a.props.children&&Qr(a.props.children).forEach(l=>t.push(l))}),t}function Od(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return I.Children.toArray(e).forEach(l=>{if(Kr(l))t.push(l);else if(l.props&&l.props.slot&&a[l.props.slot])a[l.props.slot].push(l);else if(l.props&&l.props.children){const n=Qr(l.props.children);n.length>0?n.forEach(r=>t.push(r)):a["container-end"].push(l)}else a["container-end"].push(l)}),{slides:t,slots:a}}function Dd(e,t,a){if(!a)return null;const l=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:r,to:i}=a,u=e.params.loop?-t.length:0,s=e.params.loop?t.length*2:t.length,o=[];for(let c=u;c<s;c+=1)c>=r&&c<=i&&o.push(t[l(c)]);return o.map((c,f)=>I.cloneElement(c,{swiper:e,style:n,key:c.props.virtualIndex||c.key||`slide-${f}`}))}function na(e,t){return typeof window>"u"?I.useEffect(e,t):I.useLayoutEffect(e,t)}const Jr=I.createContext(null),Pd=I.createContext(null),Zr=I.forwardRef(({className:e,tag:t="div",wrapperTag:a="div",children:l,onSwiper:n,...r}={},i)=>{let u=!1;const[s,o]=I.useState("swiper"),[c,f]=I.useState(null),[m,p]=I.useState(!1),y=I.useRef(!1),h=I.useRef(null),b=I.useRef(null),v=I.useRef(null),g=I.useRef(null),E=I.useRef(null),_=I.useRef(null),w=I.useRef(null),C=I.useRef(null),{params:M,passedParams:S,rest:T,events:A}=kd(r),{slides:k,slots:D}=Od(l),P=()=>{p(!m)};Object.assign(M.on,{_containerClasses($,G){o(G)}});const N=()=>{Object.assign(M.on,A),u=!0;const $={...M};if(delete $.wrapperClass,b.current=new Gl($),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=k;const G={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};qt(b.current.params.virtual,G),qt(b.current.originalParams.virtual,G)}};h.current||N(),b.current&&b.current.on("_beforeBreakpoint",P);const x=()=>{u||!A||!b.current||Object.keys(A).forEach($=>{b.current.on($,A[$])})},F=()=>{!A||!b.current||Object.keys(A).forEach($=>{b.current.off($,A[$])})};I.useEffect(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",P)}),I.useEffect(()=>{!y.current&&b.current&&(b.current.emitSlidesClasses(),y.current=!0)}),na(()=>{if(i&&(i.current=h.current),!!h.current)return b.current.destroyed&&N(),Nd({el:h.current,nextEl:E.current,prevEl:_.current,paginationEl:w.current,scrollbarEl:C.current,swiper:b.current},M),n&&!b.current.destroyed&&n(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),na(()=>{x();const $=Id(S,v.current,k,g.current,G=>G.key);return v.current=S,g.current=k,$.length&&b.current&&!b.current.destroyed&&wd({swiper:b.current,slides:k,passedParams:S,changedParams:$,nextEl:E.current,prevEl:_.current,scrollbarEl:C.current,paginationEl:w.current}),()=>{F()}}),na(()=>{Ld(b.current)},[c]);function U(){return M.virtual?Dd(b.current,k,c):k.map(($,G)=>I.cloneElement($,{swiper:b.current,swiperSlideIndex:G}))}return I.createElement(t,Ka({ref:h,className:Xr(`${s}${e?` ${e}`:""}`)},T),I.createElement(Pd.Provider,{value:b.current},D["container-start"],I.createElement(a,{className:_d(M.wrapperClass)},D["wrapper-start"],U(),D["wrapper-end"]),Yr(M)&&I.createElement(I.Fragment,null,I.createElement("div",{ref:_,className:"swiper-button-prev"}),I.createElement("div",{ref:E,className:"swiper-button-next"})),jr(M)&&I.createElement("div",{ref:C,className:"swiper-scrollbar"}),Wr(M)&&I.createElement("div",{ref:w,className:"swiper-pagination"}),D["container-end"]))});Zr.displayName="Swiper";const ei=I.forwardRef(({tag:e="div",children:t,className:a="",swiper:l,zoom:n,lazy:r,virtualIndex:i,swiperSlideIndex:u,...s}={},o)=>{const c=I.useRef(null),[f,m]=I.useState("swiper-slide"),[p,y]=I.useState(!1);function h(E,_,w){_===c.current&&m(w)}na(()=>{if(typeof u<"u"&&(c.current.swiperSlideIndex=u),o&&(o.current=c.current),!(!c.current||!l)){if(l.destroyed){f!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",h),()=>{l&&l.off("_slideClass",h)}}}),na(()=>{l&&c.current&&!l.destroyed&&m(l.getSlideClasses(c.current))},[l]);const b={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},v=()=>typeof t=="function"?t(b):t,g=()=>{y(!0)};return I.createElement(e,Ka({ref:c,className:Xr(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":i,onLoad:g},s),n&&I.createElement(Jr.Provider,{value:b},I.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof n=="number"?n:void 0},v(),r&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:E=>{E&&(E.lazyPreloaderManaged=!0)}}))),!n&&I.createElement(Jr.Provider,{value:b},v(),r&&!p&&I.createElement("div",{className:"swiper-lazy-preloader",ref:E=>{E&&(E.lazyPreloaderManaged=!0)}})))});ei.displayName="SwiperSlide";function ti(e,t,a,l){return e.params.createElements&&Object.keys(l).forEach(n=>{if(!a[n]&&a.auto===!0){let r=rt(e.el,`.${l[n]}`)[0];r||(r=Wa("div",l[n]),r.className=l[n],e.el.append(r)),a[n]=r,t[n]=r}}),a}const ai='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Md({swiper:e,extendParams:t,on:a,emit:l}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:ai};function n(p){let y;return p&&typeof p=="string"&&e.isElement&&(y=e.el.querySelector(p)||e.hostEl.querySelector(p),y)?y:(p&&(typeof p=="string"&&(y=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&y&&y.length>1&&e.el.querySelectorAll(p).length===1?y=e.el.querySelector(p):y&&y.length===1&&(y=y[0])),p&&!y?p:y)}function r(p,y){const h=e.params.navigation;p=Me(p),p.forEach(b=>{b&&(b.classList[y?"add":"remove"](...h.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=y),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](h.lockClass))})}function i(){const{nextEl:p,prevEl:y}=e.navigation;if(e.params.loop){r(y,!1),r(p,!1);return}r(y,e.isBeginning&&!e.params.rewind),r(p,e.isEnd&&!e.params.rewind)}function u(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function o(){const p=e.params.navigation;if(e.params.navigation=ti(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let y=n(p.nextEl),h=n(p.prevEl);Object.assign(e.navigation,{nextEl:y,prevEl:h}),y=Me(y),h=Me(h);const b=(v,g)=>{if(v){if(p.addIcons&&v.matches(".swiper-button-next,.swiper-button-prev")&&!v.querySelector("svg")){const E=document.createElement("div");la(E,ai),v.appendChild(E.querySelector("svg")),E.remove()}v.addEventListener("click",g==="next"?s:u)}!e.enabled&&v&&v.classList.add(...p.lockClass.split(" "))};y.forEach(v=>b(v,"next")),h.forEach(v=>b(v,"prev"))}function c(){let{nextEl:p,prevEl:y}=e.navigation;p=Me(p),y=Me(y);const h=(b,v)=>{b.removeEventListener("click",v==="next"?s:u),b.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(b=>h(b,"next")),y.forEach(b=>h(b,"prev"))}a("init",()=>{e.params.navigation.enabled===!1?m():(o(),i())}),a("toEdge fromEdge lock unlock",()=>{i()}),a("destroy",()=>{c()}),a("enable disable",()=>{let{nextEl:p,prevEl:y}=e.navigation;if(p=Me(p),y=Me(y),e.enabled){i();return}[...p,...y].filter(h=>!!h).forEach(h=>h.classList.add(e.params.navigation.lockClass))}),a("click",(p,y)=>{let{nextEl:h,prevEl:b}=e.navigation;h=Me(h),b=Me(b);const v=y.target;let g=b.includes(v)||h.includes(v);if(e.isElement&&!g){const E=y.path||y.composedPath&&y.composedPath();E&&(g=E.find(_=>h.includes(_)||b.includes(_)))}if(e.params.navigation.hideOnClick&&!g){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let E;h.length?E=h[0].classList.contains(e.params.navigation.hiddenClass):b.length&&(E=b[0].classList.contains(e.params.navigation.hiddenClass)),l(E===!0?"navigationShow":"navigationHide"),[...h,...b].filter(_=>!!_).forEach(_=>_.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),o(),i()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:f,disable:m,update:i,init:o,destroy:c})}function ra(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Bd({swiper:e,extendParams:t,on:a,emit:l}){const n="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let r,i=0;function u(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function s(v,g){const{bulletActiveClass:E}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${E}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${E}-${g}-${g}`)))}function o(v,g,E){if(v=v%E,g=g%E,g===v+1)return"next";if(g===v-1)return"previous"}function c(v){const g=v.target.closest(ra(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const E=ja(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===E)return;const _=o(e.realIndex,E,e.slides.length);_==="next"?e.slideNext():_==="previous"?e.slidePrev():e.slideToLoop(E)}else e.slideTo(E)}function f(){const v=e.rtl,g=e.params.pagination;if(u())return;let E=e.pagination.el;E=Me(E);let _,w;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,M=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(w=e.previousRealIndex||0,_=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(_=e.snapIndex,w=e.previousSnapIndex):(w=e.previousIndex||0,_=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const S=e.pagination.bullets;let T,A,k;if(g.dynamicBullets&&(r=Ml(S[0],e.isHorizontal()?"width":"height"),E.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&w!==void 0&&(i+=_-(w||0),i>g.dynamicMainBullets-1?i=g.dynamicMainBullets-1:i<0&&(i=0)),T=Math.max(_-i,0),A=T+(Math.min(S.length,g.dynamicMainBullets)-1),k=(A+T)/2),S.forEach(D=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${g.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();D.classList.remove(...P)}),E.length>1)S.forEach(D=>{const P=ja(D);P===_?D.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),g.dynamicBullets&&(P>=T&&P<=A&&D.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),P===T&&s(D,"prev"),P===A&&s(D,"next"))});else{const D=S[_];if(D&&D.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&S.forEach((P,N)=>{P.setAttribute("part",N===_?"bullet-active":"bullet")}),g.dynamicBullets){const P=S[T],N=S[A];for(let x=T;x<=A;x+=1)S[x]&&S[x].classList.add(...`${g.bulletActiveClass}-main`.split(" "));s(P,"prev"),s(N,"next")}}if(g.dynamicBullets){const D=Math.min(S.length,g.dynamicMainBullets+4),P=(r*D-r)/2-k*r,N=v?"right":"left";S.forEach(x=>{x.style[e.isHorizontal()?N:"top"]=`${P}px`})}}E.forEach((S,T)=>{if(g.type==="fraction"&&(S.querySelectorAll(ra(g.currentClass)).forEach(A=>{A.textContent=g.formatFractionCurrent(_+1)}),S.querySelectorAll(ra(g.totalClass)).forEach(A=>{A.textContent=g.formatFractionTotal(M)})),g.type==="progressbar"){let A;g.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const k=(_+1)/M;let D=1,P=1;A==="horizontal"?D=k:P=k,S.querySelectorAll(ra(g.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${P})`,N.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(la(S,g.renderCustom(e,_+1,M)),T===0&&l("paginationRender",S)):(T===0&&l("paginationRender",S),l("paginationUpdate",S)),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](g.lockClass)})}function m(){const v=e.params.pagination;if(u())return;const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let E=e.pagination.el;E=Me(E);let _="";if(v.type==="bullets"){let w=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&w>g&&(w=g);for(let C=0;C<w;C+=1)v.renderBullet?_+=v.renderBullet.call(e,C,v.bulletClass):_+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?_=v.renderFraction.call(e,v.currentClass,v.totalClass):_=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?_=v.renderProgressbar.call(e,v.progressbarFillClass):_=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],E.forEach(w=>{v.type!=="custom"&&la(w,_||""),v.type==="bullets"&&e.pagination.bullets.push(...w.querySelectorAll(ra(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",E[0])}function p(){e.params.pagination=ti(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let g;typeof v.el=="string"&&e.isElement&&(g=e.el.querySelector(v.el)),!g&&typeof v.el=="string"&&(g=[...document.querySelectorAll(v.el)]),g||(g=v.el),!(!g||g.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(g)&&g.length>1&&(g=[...e.el.querySelectorAll(v.el)],g.length>1&&(g=g.find(E=>Mr(E,".swiper")[0]===e.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Me(g),g.forEach(E=>{v.type==="bullets"&&v.clickable&&E.classList.add(...(v.clickableClass||"").split(" ")),E.classList.add(v.modifierClass+v.type),E.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(E.classList.add(`${v.modifierClass}${v.type}-dynamic`),i=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&E.classList.add(v.progressbarOppositeClass),v.clickable&&E.addEventListener("click",c),e.enabled||E.classList.add(v.lockClass)}))}function y(){const v=e.params.pagination;if(u())return;let g=e.pagination.el;g&&(g=Me(g),g.forEach(E=>{E.classList.remove(v.hiddenClass),E.classList.remove(v.modifierClass+v.type),E.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(E.classList.remove(...(v.clickableClass||"").split(" ")),E.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(E=>E.classList.remove(...v.bulletActiveClass.split(" ")))}a("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:g}=e.pagination;g=Me(g),g.forEach(E=>{E.classList.remove(v.horizontalClass,v.verticalClass),E.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?b():(p(),m(),f())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),a("snapIndexChange",()=>{f()}),a("snapGridLengthChange",()=>{m(),f()}),a("destroy",()=>{y()}),a("enable disable",()=>{let{el:v}=e.pagination;v&&(v=Me(v),v.forEach(g=>g.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),a("lock unlock",()=>{f()}),a("click",(v,g)=>{const E=g.target,_=Me(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&_&&_.length>0&&!E.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&E===e.navigation.nextEl||e.navigation.prevEl&&E===e.navigation.prevEl))return;const w=_[0].classList.contains(e.params.pagination.hiddenClass);l(w===!0?"paginationShow":"paginationHide"),_.forEach(C=>C.classList.toggle(e.params.pagination.hiddenClass))}});const h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Me(v),v.forEach(g=>g.classList.remove(e.params.pagination.paginationDisabledClass))),p(),m(),f()},b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=Me(v),v.forEach(g=>g.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:h,disable:b,render:m,update:f,init:p,destroy:y})}function VE(){}function GE(){}function li(e){const t=[],a=String(e||"");let l=a.indexOf(","),n=0,r=!1;for(;!r;){l===-1&&(l=a.length,r=!0);const i=a.slice(n,l).trim();(i||!r)&&t.push(i),n=l+1,l=a.indexOf(",",n)}return t}function ni(e,t){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const Rd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hd={};function ri(e,t){return(Hd.jsx?Fd:Rd).test(e)}const $d=/[ \t\n\f\r]/g;function Ud(e){return typeof e=="object"?e.type==="text"?ii(e.value):!1:ii(e)}function ii(e){return e.replace($d,"")===""}class ia{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}}ia.prototype.normal={},ia.prototype.property={},ia.prototype.space=void 0;function ui(e,t){const a={},l={};for(const n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new ia(a,l,t)}function ua(e){return e.toLowerCase()}class qe{constructor(t,a){this.attribute=a,this.property=t}}qe.prototype.attribute="",qe.prototype.booleanish=!1,qe.prototype.boolean=!1,qe.prototype.commaOrSpaceSeparated=!1,qe.prototype.commaSeparated=!1,qe.prototype.defined=!1,qe.prototype.mustUseProperty=!1,qe.prototype.number=!1,qe.prototype.overloadedBoolean=!1,qe.prototype.property="",qe.prototype.spaceSeparated=!1,qe.prototype.space=void 0;let qd=0;const de=Nt(),Oe=Nt(),Yl=Nt(),Z=Nt(),Ce=Nt(),zt=Nt(),je=Nt();function Nt(){return 2**++qd}const Wl=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Oe,commaOrSpaceSeparated:je,commaSeparated:zt,number:Z,overloadedBoolean:Yl,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),jl=Object.keys(Wl);class Xl extends qe{constructor(t,a,l,n){let r=-1;if(super(t,a),si(this,"space",n),typeof l=="number")for(;++r<jl.length;){const i=jl[r];si(this,jl[r],(l&Wl[i])===Wl[i])}}}Xl.prototype.defined=!0;function si(e,t,a){a&&(e[t]=a)}function Vt(e){const t={},a={};for(const[l,n]of Object.entries(e.properties)){const r=new Xl(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[ua(l)]=l,a[ua(r.attribute)]=l}return new ia(t,a,e.space)}const oi=Vt({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:Ce,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:Z,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:Ce,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Oe,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ci(e,t){return t in e?e[t]:t}function di(e,t){return ci(e,t.toLowerCase())}const zd=Vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Ce,autoFocus:de,autoPlay:de,blocking:Ce,capture:null,charSet:null,checked:de,cite:null,className:Ce,cols:Z,colSpan:null,content:null,contentEditable:Oe,controls:de,controlsList:Ce,coords:Z|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Yl,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Ce,height:Z,hidden:Yl,high:Z,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:de,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:Z,pattern:null,ping:Ce,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Ce,required:de,reversed:de,rows:Z,rowSpan:Z,sandbox:Ce,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:Oe,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:di}),Vd=Vt({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"},properties:{about:je,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Ce,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:je,rev:je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:je,requiredFeatures:je,requiredFonts:je,requiredFormats:je,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:je,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ci}),fi=Vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),pi=Vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:di}),hi=Vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gd={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"},Yd=/[A-Z]/g,bi=/-[a-z]/g,Wd=/^data[-\w.:]+$/i;function Qa(e,t){const a=ua(t);let l=t,n=qe;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Wd.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(bi,Xd);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!bi.test(r)){let i=r.replace(Yd,jd);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=Xl}return new n(l,t)}function jd(e){return"-"+e.toLowerCase()}function Xd(e){return e.charAt(1).toUpperCase()}const sa=ui([oi,zd,fi,pi,hi],"html"),gt=ui([oi,Vd,fi,pi,hi],"svg");function mi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function vi(e){return e.join(" ").trim()}function Kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={},Ql,gi;function Kd(){if(gi)return Ql;gi=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,u=/^\s+|\s+$/g,s=`
|
|
43
|
+
`,o="/",c="*",f="",m="comment",p="declaration";function y(b,v){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];v=v||{};var g=1,E=1;function _(N){var x=N.match(t);x&&(g+=x.length);var F=N.lastIndexOf(s);E=~F?N.length-F:E+N.length}function w(){var N={line:g,column:E};return function(x){return x.position=new C(N),T(),x}}function C(N){this.start=N,this.end={line:g,column:E},this.source=v.source}C.prototype.content=b;function M(N){var x=new Error(v.source+":"+g+":"+E+": "+N);if(x.reason=N,x.filename=v.source,x.line=g,x.column=E,x.source=b,!v.silent)throw x}function S(N){var x=N.exec(b);if(x){var F=x[0];return _(F),b=b.slice(F.length),x}}function T(){S(a)}function A(N){var x;for(N=N||[];x=k();)x!==!1&&N.push(x);return N}function k(){var N=w();if(!(o!=b.charAt(0)||c!=b.charAt(1))){for(var x=2;f!=b.charAt(x)&&(c!=b.charAt(x)||o!=b.charAt(x+1));)++x;if(x+=2,f===b.charAt(x-1))return M("End of comment missing");var F=b.slice(2,x-2);return E+=2,_(F),b=b.slice(x),E+=2,N({type:m,comment:F})}}function D(){var N=w(),x=S(l);if(x){if(k(),!S(n))return M("property missing ':'");var F=S(r),U=N({type:p,property:h(x[0].replace(e,f)),value:F?h(F[0].replace(e,f)):f});return S(i),U}}function P(){var N=[];A(N);for(var x;x=D();)x!==!1&&(N.push(x),A(N));return N}return T(),P()}function h(b){return b?b.replace(u,f):f}return Ql=y,Ql}var Ei;function Qd(){if(Ei)return Gt;Ei=1;var e=Gt&&Gt.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.default=a;const t=e(Kd());function a(l,n){let r=null;if(!l||typeof l!="string")return r;const i=(0,t.default)(l),u=typeof n=="function";return i.forEach(s=>{if(s.type!=="declaration")return;const{property:o,value:c}=s;u?n(o,c,s):c&&(r=r||{},r[o]=c)}),r}return Gt}var oa={},yi;function Jd(){if(yi)return oa;yi=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,a=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,r=function(o){return!o||a.test(o)||e.test(o)},i=function(o,c){return c.toUpperCase()},u=function(o,c){return"".concat(c,"-")},s=function(o,c){return c===void 0&&(c={}),r(o)?o:(o=o.toLowerCase(),c.reactCompat?o=o.replace(n,u):o=o.replace(l,u),o.replace(t,i))};return oa.camelCase=s,oa}var ca,Ti;function Zd(){if(Ti)return ca;Ti=1;var e=ca&&ca.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(Qd()),a=Jd();function l(n,r){var i={};return!n||typeof n!="string"||(0,t.default)(n,function(u,s){u&&s&&(i[(0,a.camelCase)(u,r)]=s)}),i}return l.default=l,ca=l,ca}var ef=Zd();const tf=Kl(ef),Ja=xi("end"),it=xi("start");function xi(e){return t;function t(a){const l=a&&a.position&&a.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function Ci(e){const t=it(e),a=Ja(e);if(t&&a)return{start:t,end:a}}function da(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Si(e.position):"start"in e||"end"in e?Si(e):"line"in e||"column"in e?Jl(e):""}function Jl(e){return Ai(e&&e.line)+":"+Ai(e&&e.column)}function Si(e){return Jl(e&&e.start)+"-"+Jl(e&&e.end)}function Ai(e){return e&&typeof e=="number"?e:1}class Fe extends Error{constructor(t,a,l){super(),typeof a=="string"&&(l=a,a=void 0);let n="",r={},i=!1;if(a&&("line"in a&&"column"in a?r={place:a}:"start"in a&&"end"in a?r={place:a}:"type"in a?r={ancestors:[a],place:a.position}:r={...a}),typeof t=="string"?n=t:!r.cause&&t&&(i=!0,n=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof l=="string"){const s=l.indexOf(":");s===-1?r.ruleId=l:(r.source=l.slice(0,s),r.ruleId=l.slice(s+1))}if(!r.place&&r.ancestors&&r.ancestors){const s=r.ancestors[r.ancestors.length-1];s&&(r.place=s.position)}const u=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=u?u.line:void 0,this.name=da(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=i&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}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 Zl={}.hasOwnProperty,af=new Map,lf=/[A-Z]/g,nf=new Set(["table","tbody","thead","tfoot","tr"]),rf=new Set(["td","th"]),_i="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uf(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=t.filePath||void 0;let l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=bf(a,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");l=hf(a,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gt:sa,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=wi(n,e,void 0);return r&&typeof r!="string"?r:n.create(e,n.Fragment,{children:r||void 0},void 0)}function wi(e,t,a){if(t.type==="element")return sf(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return of(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return df(e,t,a);if(t.type==="mdxjsEsm")return cf(e,t);if(t.type==="root")return ff(e,t,a);if(t.type==="text")return pf(e,t)}function sf(e,t,a){const l=e.schema;let n=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(n=gt,e.schema=n),e.ancestors.push(t);const r=Ni(e,t.tagName,!1),i=mf(e,t);let u=tn(e,t);return nf.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!Ud(s):!0})),ki(e,i,r,t),en(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function of(e,t){if(t.data&&t.data.estree&&e.evaluater){const l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}fa(e,t.position)}function cf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fa(e,t.position)}function df(e,t,a){const l=e.schema;let n=l;t.name==="svg"&&l.space==="html"&&(n=gt,e.schema=n),e.ancestors.push(t);const r=t.name===null?e.Fragment:Ni(e,t.name,!0),i=vf(e,t),u=tn(e,t);return ki(e,i,r,t),en(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function ff(e,t,a){const l={};return en(l,tn(e,t)),e.create(t,e.Fragment,l,a)}function pf(e,t){return t.value}function ki(e,t,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=l)}function en(e,t){if(t.length>0){const a=t.length>1?t:t[0];a&&(e.children=a)}}function hf(e,t,a){return l;function l(n,r,i,u){const o=Array.isArray(i.children)?a:t;return u?o(r,i,u):o(r,i)}}function bf(e,t){return a;function a(l,n,r,i){const u=Array.isArray(r.children),s=it(l);return t(n,r,i,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function mf(e,t){const a={};let l,n;for(n in t.properties)if(n!=="children"&&Zl.call(t.properties,n)){const r=gf(e,n,t.properties[n]);if(r){const[i,u]=r;e.tableCellAlignToStyle&&i==="align"&&typeof u=="string"&&rf.has(t.tagName)?l=u:a[i]=u}}if(l){const r=a.style||(a.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return a}function vf(e,t){const a={};for(const l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const r=l.data.estree.body[0];r.type;const i=r.expression;i.type;const u=i.properties[0];u.type,Object.assign(a,e.evaluater.evaluateExpression(u.argument))}else fa(e,t.position);else{const n=l.name;let r;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const u=l.value.data.estree.body[0];u.type,r=e.evaluater.evaluateExpression(u.expression)}else fa(e,t.position);else r=l.value===null?!0:l.value;a[n]=r}return a}function tn(e,t){const a=[];let l=-1;const n=e.passKeys?new Map:af;for(;++l<t.children.length;){const r=t.children[l];let i;if(e.passKeys){const s=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(s){const o=n.get(s)||0;i=s+"-"+o,n.set(s,o+1)}}const u=wi(e,r,i);u!==void 0&&a.push(u)}return a}function gf(e,t,a){const l=Qa(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?ni(a):vi(a)),l.property==="style"){let n=typeof a=="object"?a:Ef(e,String(a));return e.stylePropertyNameCase==="css"&&(n=yf(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&l.space?Gd[l.property]||l.property:l.attribute,a]}}function Ef(e,t){try{return tf(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const l=a,n=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=_i+"#cannot-parse-style-attribute",n}}function Ni(e,t,a){let l;if(!a)l={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let r=-1,i;for(;++r<n.length;){const u=ri(n[r])?{type:"Identifier",name:n[r]}:{type:"Literal",value:n[r]};i=i?{type:"MemberExpression",object:i,property:u,computed:!!(r&&u.type==="Literal"),optional:!1}:u}l=i}else l=ri(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const n=l.value;return Zl.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(l);fa(e)}function fa(e,t){const a=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=_i+"#cannot-handle-mdx-estrees-without-createevaluater",a}function yf(e){const t={};let a;for(a in e)Zl.call(e,a)&&(t[Tf(a)]=e[a]);return t}function Tf(e){let t=e.replace(lf,xf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function xf(e){return"-"+e.toLowerCase()}const an={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"]},Cf={};function Sf(e,t){const a=Cf,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Ii(e,l,n)}function Ii(e,t,a){if(Af(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Li(e.children,t,a)}return Array.isArray(e)?Li(e,t,a):""}function Li(e,t,a){const l=[];let n=-1;for(;++n<e.length;)l[n]=Ii(e[n],t,a);return l.join("")}function Af(e){return!!(e&&typeof e=="object")}const Oi=document.createElement("i");function pa(e){const t="&"+e+";";Oi.innerHTML=t;const a=Oi.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ut(e,t,a,l){const n=e.length;let r=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,a=a>0?a:0,l.length<1e4)i=Array.from(l),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);r<l.length;)i=l.slice(r,r+1e4),i.unshift(t,0),e.splice(...i),r+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const Di={}.hasOwnProperty;function _f(e){const t={};let a=-1;for(;++a<e.length;)wf(t,e[a]);return t}function wf(e,t){let a;for(a in t){const n=(Di.call(e,a)?e[a]:void 0)||(e[a]={}),r=t[a];let i;if(r)for(i in r){Di.call(n,i)||(n[i]=[]);const u=r[i];kf(n[i],Array.isArray(u)?u:u?[u]:[])}}}function kf(e,t){let a=-1;const l=[];for(;++a<t.length;)(t[a].add==="after"?e:l).push(t[a]);ut(e,0,0,l)}function Pi(e,t){const a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const st=Et(/[A-Za-z]/),Xe=Et(/[\dA-Za-z]/),Nf=Et(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const nn=Et(/\d/),If=Et(/[\dA-Fa-f]/),Lf=Et(/[!-/:-@[-`{-~]/);function re(e){return e!==null&&e<-2}function Ne(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const ha=Et(new RegExp("\\p{P}|\\p{S}","u")),ba=Et(/\s/);function Et(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Wt(e){const t=[];let a=-1,l=0,n=0;for(;++a<e.length;){const r=e.charCodeAt(a);let i="";if(r===37&&Xe(e.charCodeAt(a+1))&&Xe(e.charCodeAt(a+2)))n=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(i=String.fromCharCode(r));else if(r>55295&&r<57344){const u=e.charCodeAt(a+1);r<56320&&u>56319&&u<57344?(i=String.fromCharCode(r,u),n=1):i="�"}else i=String.fromCharCode(r);i&&(t.push(e.slice(l,a),encodeURIComponent(i)),l=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(l)}function ve(e,t,a,l){const n=l?l-1:Number.POSITIVE_INFINITY;let r=0;return i;function i(s){return me(s)?(e.enter(a),u(s)):t(s)}function u(s){return me(s)&&r++<n?(e.consume(s),u):(e.exit(a),t(s))}}const Of={tokenize:Df};function Df(e){const t=e.attempt(this.parser.constructs.contentInitial,l,n);let a;return t;function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ve(e,t,"linePrefix")}function n(u){return e.enter("paragraph"),r(u)}function r(u){const s=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=s),a=s,i(u)}function i(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return re(u)?(e.consume(u),e.exit("chunkText"),r):(e.consume(u),i)}}const Pf={tokenize:Mf},Mi={tokenize:Bf};function Mf(e){const t=this,a=[];let l=0,n,r,i;return u;function u(E){if(l<a.length){const _=a[l];return t.containerState=_[1],e.attempt(_[0].continuation,s,o)(E)}return o(E)}function s(E){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const _=t.events.length;let w=_,C;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){C=t.events[w][1].end;break}v(l);let M=_;for(;M<t.events.length;)t.events[M][1].end={...C},M++;return ut(t.events,w+1,0,t.events.slice(_)),t.events.length=M,o(E)}return u(E)}function o(E){if(l===a.length){if(!n)return m(E);if(n.currentConstruct&&n.currentConstruct.concrete)return y(E);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mi,c,f)(E)}function c(E){return n&&g(),v(l),m(E)}function f(E){return t.parser.lazy[t.now().line]=l!==a.length,i=t.now().offset,y(E)}function m(E){return t.containerState={},e.attempt(Mi,p,y)(E)}function p(E){return l++,a.push([t.currentConstruct,t.containerState]),m(E)}function y(E){if(E===null){n&&g(),v(0),e.consume(E);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:r}),h(E)}function h(E){if(E===null){b(e.exit("chunkFlow"),!0),v(0),e.consume(E);return}return re(E)?(e.consume(E),b(e.exit("chunkFlow")),l=0,t.interrupt=void 0,u):(e.consume(E),h)}function b(E,_){const w=t.sliceStream(E);if(_&&w.push(null),E.previous=r,r&&(r.next=E),r=E,n.defineSkip(E.start),n.write(w),t.parser.lazy[E.start.line]){let C=n.events.length;for(;C--;)if(n.events[C][1].start.offset<i&&(!n.events[C][1].end||n.events[C][1].end.offset>i))return;const M=t.events.length;let S=M,T,A;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){if(T){A=t.events[S][1].end;break}T=!0}for(v(l),C=M;C<t.events.length;)t.events[C][1].end={...A},C++;ut(t.events,S+1,0,t.events.slice(M)),t.events.length=C}}function v(E){let _=a.length;for(;_-- >E;){const w=a[_];t.containerState=w[1],w[0].exit.call(t,e)}a.length=E}function g(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function Bf(e,t,a){return ve(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bi(e){if(e===null||Ne(e)||ba(e))return 1;if(ha(e))return 2}function rn(e,t,a){const l=[];let n=-1;for(;++n<e.length;){const r=e[n].resolveAll;r&&!l.includes(r)&&(t=r(t,a),l.push(r))}return t}const un={name:"attention",resolveAll:Rf,tokenize:Ff};function Rf(e,t){let a=-1,l,n,r,i,u,s,o,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(l=a;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[l][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;s=e[l][1].end.offset-e[l][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const f={...e[l][1].end},m={...e[a][1].start};Ri(f,-s),Ri(m,s),i={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[l][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:m},r={type:s>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[a][1].start}},n={type:s>1?"strong":"emphasis",start:{...i.start},end:{...u.end}},e[l][1].end={...i.start},e[a][1].start={...u.end},o=[],e[l][1].end.offset-e[l][1].start.offset&&(o=Ze(o,[["enter",e[l][1],t],["exit",e[l][1],t]])),o=Ze(o,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",r,t]]),o=Ze(o,rn(t.parser.constructs.insideSpan.null,e.slice(l+1,a),t)),o=Ze(o,[["exit",r,t],["enter",u,t],["exit",u,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,o=Ze(o,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,ut(e,l-1,a-l+3,o),a=l+o.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function Ff(e,t){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,n=Bi(l);let r;return i;function i(s){return r=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===r)return e.consume(s),u;const o=e.exit("attentionSequence"),c=Bi(s),f=!c||c===2&&n||a.includes(s),m=!n||n===2&&c||a.includes(l);return o._open=!!(r===42?f:f&&(n||!m)),o._close=!!(r===42?m:m&&(c||!f)),t(s)}}function Ri(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Hf={name:"autolink",tokenize:$f};function $f(e,t,a){let l=0;return n;function n(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(p){return st(p)?(e.consume(p),i):p===64?a(p):o(p)}function i(p){return p===43||p===45||p===46||Xe(p)?(l=1,u(p)):o(p)}function u(p){return p===58?(e.consume(p),l=0,s):(p===43||p===45||p===46||Xe(p))&&l++<32?(e.consume(p),u):(l=0,o(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ln(p)?a(p):(e.consume(p),s)}function o(p){return p===64?(e.consume(p),c):Nf(p)?(e.consume(p),o):a(p)}function c(p){return Xe(p)?f(p):a(p)}function f(p){return p===46?(e.consume(p),l=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||Xe(p))&&l++<63){const y=p===45?m:f;return e.consume(p),y}return a(p)}}const Za={partial:!0,tokenize:Uf};function Uf(e,t,a){return l;function l(r){return me(r)?ve(e,n,"linePrefix")(r):n(r)}function n(r){return r===null||re(r)?t(r):a(r)}}const Fi={continuation:{tokenize:zf},exit:Vf,name:"blockQuote",tokenize:qf};function qf(e,t,a){const l=this;return n;function n(i){if(i===62){const u=l.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),r}return a(i)}function r(i){return me(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function zf(e,t,a){const l=this;return n;function n(i){return me(i)?ve(e,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):r(i)}function r(i){return e.attempt(Fi,t,a)(i)}}function Vf(e){e.exit("blockQuote")}const Hi={name:"characterEscape",tokenize:Gf};function Gf(e,t,a){return l;function l(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),n}function n(r){return Lf(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(r)}}const $i={name:"characterReference",tokenize:Yf};function Yf(e,t,a){const l=this;let n=0,r,i;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),r=31,i=Xe,c(f))}function o(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=If,c):(e.enter("characterReferenceValue"),r=7,i=nn,c(f))}function c(f){if(f===59&&n){const m=e.exit("characterReferenceValue");return i===Xe&&!pa(l.sliceSerialize(m))?a(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(f)&&n++<r?(e.consume(f),c):a(f)}}const Ui={partial:!0,tokenize:jf},qi={concrete:!0,name:"codeFenced",tokenize:Wf};function Wf(e,t,a){const l=this,n={partial:!0,tokenize:w};let r=0,i=0,u;return s;function s(C){return o(C)}function o(C){const M=l.events[l.events.length-1];return r=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,u=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===u?(i++,e.consume(C),c):i<3?a(C):(e.exit("codeFencedFenceSequence"),me(C)?ve(e,f,"whitespace")(C):f(C))}function f(C){return C===null||re(C)?(e.exit("codeFencedFence"),l.interrupt?t(C):e.check(Ui,h,_)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||re(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(C)):me(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ve(e,p,"whitespace")(C)):C===96&&C===u?a(C):(e.consume(C),m)}function p(C){return C===null||re(C)?f(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===null||re(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(C)):C===96&&C===u?a(C):(e.consume(C),y)}function h(C){return e.attempt(n,_,b)(C)}function b(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),v}function v(C){return r>0&&me(C)?ve(e,g,"linePrefix",r+1)(C):g(C)}function g(C){return C===null||re(C)?e.check(Ui,h,_)(C):(e.enter("codeFlowValue"),E(C))}function E(C){return C===null||re(C)?(e.exit("codeFlowValue"),g(C)):(e.consume(C),E)}function _(C){return e.exit("codeFenced"),t(C)}function w(C,M,S){let T=0;return A;function A(x){return C.enter("lineEnding"),C.consume(x),C.exit("lineEnding"),k}function k(x){return C.enter("codeFencedFence"),me(x)?ve(C,D,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):D(x)}function D(x){return x===u?(C.enter("codeFencedFenceSequence"),P(x)):S(x)}function P(x){return x===u?(T++,C.consume(x),P):T>=i?(C.exit("codeFencedFenceSequence"),me(x)?ve(C,N,"whitespace")(x):N(x)):S(x)}function N(x){return x===null||re(x)?(C.exit("codeFencedFence"),M(x)):S(x)}}}function jf(e,t,a){const l=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r)}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}const sn={name:"codeIndented",tokenize:Kf},Xf={partial:!0,tokenize:Qf};function Kf(e,t,a){const l=this;return n;function n(o){return e.enter("codeIndented"),ve(e,r,"linePrefix",5)(o)}function r(o){const c=l.events[l.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(o):a(o)}function i(o){return o===null?s(o):re(o)?e.attempt(Xf,i,s)(o):(e.enter("codeFlowValue"),u(o))}function u(o){return o===null||re(o)?(e.exit("codeFlowValue"),i(o)):(e.consume(o),u)}function s(o){return e.exit("codeIndented"),t(o)}}function Qf(e,t,a){const l=this;return n;function n(i){return l.parser.lazy[l.now().line]?a(i):re(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):ve(e,r,"linePrefix",5)(i)}function r(i){const u=l.events[l.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):re(i)?n(i):a(i)}}const Jf={name:"codeText",previous:ep,resolve:Zf,tokenize:tp};function Zf(e){let t=e.length-4,a=3,l,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=a;++l<t;)if(e[l][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(l=a-1,t++;++l<=t;)n===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(n=l):(l===t||e[l][1].type==="lineEnding")&&(e[n][1].type="codeTextData",l!==n+2&&(e[n][1].end=e[l-1][1].end,e.splice(n+2,l-n-2),t-=l-n-2,l=n+2),n=void 0);return e}function ep(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tp(e,t,a){let l=0,n,r;return i;function i(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),l++,u):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?a(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(r=e.enter("codeTextSequence"),n=0,c(f)):re(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(f))}function o(f){return f===null||f===32||f===96||re(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),o)}function c(f){return f===96?(e.consume(f),n++,c):n===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(r.type="codeTextData",o(f))}}class ap{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){const l=a??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,a,l){const n=a||0;this.setCursor(Math.trunc(t));const r=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return l&&ma(this.left,l),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ma(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ma(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const a=this.left.splice(t,Number.POSITIVE_INFINITY);ma(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ma(this.left,a.reverse())}}}function ma(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function zi(e){const t={};let a=-1,l,n,r,i,u,s,o;const c=new ap(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(l=c.get(a),a&&l[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(s=l[1]._tokenizer.events,r=0,r<s.length&&s[r][1].type==="lineEndingBlank"&&(r+=2),r<s.length&&s[r][1].type==="content"))for(;++r<s.length&&s[r][1].type!=="content";)s[r][1].type==="chunkText"&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,lp(c,a)),a=t[a],o=!0);else if(l[1]._container){for(r=a,n=void 0;r--;)if(i=c.get(r),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;n&&(l[1].end={...c.get(n)[1].start},u=c.slice(n,a),u.unshift(l),c.splice(n,a-n+1,u))}}return ut(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!o}function lp(e,t){const a=e.get(t)[1],l=e.get(t)[2];let n=t-1;const r=[];let i=a._tokenizer;i||(i=l.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const u=i.events,s=[],o={};let c,f,m=-1,p=a,y=0,h=0;const b=[h];for(;p;){for(;e.get(++n)[1]!==p;);r.push(n),p._tokenizer||(c=l.sliceStream(p),p.next||c.push(null),f&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=a;++m<u.length;)u[m][0]==="exit"&&u[m-1][0]==="enter"&&u[m][1].type===u[m-1][1].type&&u[m][1].start.line!==u[m][1].end.line&&(h=m+1,b.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),m=b.length;m--;){const v=u.slice(b[m],b[m+1]),g=r.pop();s.push([g,g+v.length-1]),e.splice(g,2,v)}for(s.reverse(),m=-1;++m<s.length;)o[y+s[m][0]]=y+s[m][1],y+=s[m][1]-s[m][0]-1;return o}const np={resolve:ip,tokenize:up},rp={partial:!0,tokenize:sp};function ip(e){return zi(e),e}function up(e,t){let a;return l;function l(u){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),n(u)}function n(u){return u===null?r(u):re(u)?e.check(rp,i,r)(u):(e.consume(u),n)}function r(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function i(u){return e.consume(u),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,n}}function sp(e,t,a){const l=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ve(e,r,"linePrefix")}function r(i){if(i===null||re(i))return a(i);const u=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(i):e.interrupt(l.parser.constructs.flow,a,t)(i)}}function Vi(e,t,a,l,n,r,i,u,s){const o=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(v){return v===60?(e.enter(l),e.enter(n),e.enter(r),e.consume(v),e.exit(r),m):v===null||v===32||v===41||ln(v)?a(v):(e.enter(l),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),h(v))}function m(v){return v===62?(e.enter(r),e.consume(v),e.exit(r),e.exit(n),e.exit(l),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(u),m(v)):v===null||v===60||re(v)?a(v):(e.consume(v),v===92?y:p)}function y(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function h(v){return!c&&(v===null||v===41||Ne(v))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(l),t(v)):c<o&&v===40?(e.consume(v),c++,h):v===41?(e.consume(v),c--,h):v===null||v===32||v===40||ln(v)?a(v):(e.consume(v),v===92?b:h)}function b(v){return v===40||v===41||v===92?(e.consume(v),h):h(v)}}function Gi(e,t,a,l,n,r){const i=this;let u=0,s;return o;function o(p){return e.enter(l),e.enter(n),e.consume(p),e.exit(n),e.enter(r),c}function c(p){return u>999||p===null||p===91||p===93&&!s||p===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?a(p):p===93?(e.exit(r),e.enter(n),e.consume(p),e.exit(n),e.exit(l),t):re(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||re(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!me(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),u++,f):f(p)}}function Yi(e,t,a,l,n,r){let i;return u;function u(m){return m===34||m===39||m===40?(e.enter(l),e.enter(n),e.consume(m),e.exit(n),i=m===40?41:m,s):a(m)}function s(m){return m===i?(e.enter(n),e.consume(m),e.exit(n),e.exit(l),t):(e.enter(r),o(m))}function o(m){return m===i?(e.exit(r),s(i)):m===null?a(m):re(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ve(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===i||m===null||re(m)?(e.exit("chunkString"),o(m)):(e.consume(m),m===92?f:c)}function f(m){return m===i||m===92?(e.consume(m),c):c(m)}}function pt(e,t){let a;return l;function l(n){return re(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,l):me(n)?ve(e,l,a?"linePrefix":"lineSuffix")(n):t(n)}}const op={name:"definition",tokenize:dp},cp={partial:!0,tokenize:fp};function dp(e,t,a){const l=this;let n;return r;function r(p){return e.enter("definition"),i(p)}function i(p){return Gi.call(l,e,u,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return n=Yt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):a(p)}function s(p){return Ne(p)?pt(e,o)(p):o(p)}function o(p){return Vi(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(cp,f,f)(p)}function f(p){return me(p)?ve(e,m,"whitespace")(p):m(p)}function m(p){return p===null||re(p)?(e.exit("definition"),l.parser.defined.push(n),t(p)):a(p)}}function fp(e,t,a){return l;function l(u){return Ne(u)?pt(e,n)(u):a(u)}function n(u){return Yi(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function r(u){return me(u)?ve(e,i,"whitespace")(u):i(u)}function i(u){return u===null||re(u)?t(u):a(u)}}const pp={name:"hardBreakEscape",tokenize:hp};function hp(e,t,a){return l;function l(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return re(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const bp={name:"headingAtx",resolve:mp,tokenize:vp};function mp(e,t){let a=e.length-2,l=3,n,r;return e[l][1].type==="whitespace"&&(l+=2),a-2>l&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(l===a-1||a-4>l&&e[a-2][1].type==="whitespace")&&(a-=l+1===a?2:4),a>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[a][1].end},r={type:"chunkText",start:e[l][1].start,end:e[a][1].end,contentType:"text"},ut(e,l,a-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function vp(e,t,a){let l=0;return n;function n(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&l++<6?(e.consume(c),i):c===null||Ne(c)?(e.exit("atxHeadingSequence"),u(c)):a(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||re(c)?(e.exit("atxHeading"),t(c)):me(c)?ve(e,u,"whitespace")(c):(e.enter("atxHeadingText"),o(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),u(c))}function o(c){return c===null||c===35||Ne(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),o)}}const gp=["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"],Wi=["pre","script","style","textarea"],Ep={concrete:!0,name:"htmlFlow",resolveTo:xp,tokenize:Cp},yp={partial:!0,tokenize:Ap},Tp={partial:!0,tokenize:Sp};function xp(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 Cp(e,t,a){const l=this;let n,r,i,u,s;return o;function o(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),m):R===47?(e.consume(R),r=!0,h):R===63?(e.consume(R),n=3,l.interrupt?t:L):st(R)?(e.consume(R),i=String.fromCharCode(R),b):a(R)}function m(R){return R===45?(e.consume(R),n=2,p):R===91?(e.consume(R),n=5,u=0,y):st(R)?(e.consume(R),n=4,l.interrupt?t:L):a(R)}function p(R){return R===45?(e.consume(R),l.interrupt?t:L):a(R)}function y(R){const K="CDATA[";return R===K.charCodeAt(u++)?(e.consume(R),u===K.length?l.interrupt?t:D:y):a(R)}function h(R){return st(R)?(e.consume(R),i=String.fromCharCode(R),b):a(R)}function b(R){if(R===null||R===47||R===62||Ne(R)){const K=R===47,ne=i.toLowerCase();return!K&&!r&&Wi.includes(ne)?(n=1,l.interrupt?t(R):D(R)):gp.includes(i.toLowerCase())?(n=6,K?(e.consume(R),v):l.interrupt?t(R):D(R)):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(R):r?g(R):E(R))}return R===45||Xe(R)?(e.consume(R),i+=String.fromCharCode(R),b):a(R)}function v(R){return R===62?(e.consume(R),l.interrupt?t:D):a(R)}function g(R){return me(R)?(e.consume(R),g):A(R)}function E(R){return R===47?(e.consume(R),A):R===58||R===95||st(R)?(e.consume(R),_):me(R)?(e.consume(R),E):A(R)}function _(R){return R===45||R===46||R===58||R===95||Xe(R)?(e.consume(R),_):w(R)}function w(R){return R===61?(e.consume(R),C):me(R)?(e.consume(R),w):E(R)}function C(R){return R===null||R===60||R===61||R===62||R===96?a(R):R===34||R===39?(e.consume(R),s=R,M):me(R)?(e.consume(R),C):S(R)}function M(R){return R===s?(e.consume(R),s=null,T):R===null||re(R)?a(R):(e.consume(R),M)}function S(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Ne(R)?w(R):(e.consume(R),S)}function T(R){return R===47||R===62||me(R)?E(R):a(R)}function A(R){return R===62?(e.consume(R),k):a(R)}function k(R){return R===null||re(R)?D(R):me(R)?(e.consume(R),k):a(R)}function D(R){return R===45&&n===2?(e.consume(R),F):R===60&&n===1?(e.consume(R),U):R===62&&n===4?(e.consume(R),W):R===63&&n===3?(e.consume(R),L):R===93&&n===5?(e.consume(R),G):re(R)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(yp,V,P)(R)):R===null||re(R)?(e.exit("htmlFlowData"),P(R)):(e.consume(R),D)}function P(R){return e.check(Tp,N,V)(R)}function N(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),x}function x(R){return R===null||re(R)?P(R):(e.enter("htmlFlowData"),D(R))}function F(R){return R===45?(e.consume(R),L):D(R)}function U(R){return R===47?(e.consume(R),i="",$):D(R)}function $(R){if(R===62){const K=i.toLowerCase();return Wi.includes(K)?(e.consume(R),W):D(R)}return st(R)&&i.length<8?(e.consume(R),i+=String.fromCharCode(R),$):D(R)}function G(R){return R===93?(e.consume(R),L):D(R)}function L(R){return R===62?(e.consume(R),W):R===45&&n===2?(e.consume(R),L):D(R)}function W(R){return R===null||re(R)?(e.exit("htmlFlowData"),V(R)):(e.consume(R),W)}function V(R){return e.exit("htmlFlow"),t(R)}}function Sp(e,t,a){const l=this;return n;function n(i){return re(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):a(i)}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}function Ap(e,t,a){return l;function l(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Za,t,a)}}const _p={name:"htmlText",tokenize:wp};function wp(e,t,a){const l=this;let n,r,i;return u;function u(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),s}function s(L){return L===33?(e.consume(L),o):L===47?(e.consume(L),w):L===63?(e.consume(L),E):st(L)?(e.consume(L),S):a(L)}function o(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),r=0,y):st(L)?(e.consume(L),g):a(L)}function c(L){return L===45?(e.consume(L),p):a(L)}function f(L){return L===null?a(L):L===45?(e.consume(L),m):re(L)?(i=f,U(L)):(e.consume(L),f)}function m(L){return L===45?(e.consume(L),p):f(L)}function p(L){return L===62?F(L):L===45?m(L):f(L)}function y(L){const W="CDATA[";return L===W.charCodeAt(r++)?(e.consume(L),r===W.length?h:y):a(L)}function h(L){return L===null?a(L):L===93?(e.consume(L),b):re(L)?(i=h,U(L)):(e.consume(L),h)}function b(L){return L===93?(e.consume(L),v):h(L)}function v(L){return L===62?F(L):L===93?(e.consume(L),v):h(L)}function g(L){return L===null||L===62?F(L):re(L)?(i=g,U(L)):(e.consume(L),g)}function E(L){return L===null?a(L):L===63?(e.consume(L),_):re(L)?(i=E,U(L)):(e.consume(L),E)}function _(L){return L===62?F(L):E(L)}function w(L){return st(L)?(e.consume(L),C):a(L)}function C(L){return L===45||Xe(L)?(e.consume(L),C):M(L)}function M(L){return re(L)?(i=M,U(L)):me(L)?(e.consume(L),M):F(L)}function S(L){return L===45||Xe(L)?(e.consume(L),S):L===47||L===62||Ne(L)?T(L):a(L)}function T(L){return L===47?(e.consume(L),F):L===58||L===95||st(L)?(e.consume(L),A):re(L)?(i=T,U(L)):me(L)?(e.consume(L),T):F(L)}function A(L){return L===45||L===46||L===58||L===95||Xe(L)?(e.consume(L),A):k(L)}function k(L){return L===61?(e.consume(L),D):re(L)?(i=k,U(L)):me(L)?(e.consume(L),k):T(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?a(L):L===34||L===39?(e.consume(L),n=L,P):re(L)?(i=D,U(L)):me(L)?(e.consume(L),D):(e.consume(L),N)}function P(L){return L===n?(e.consume(L),n=void 0,x):L===null?a(L):re(L)?(i=P,U(L)):(e.consume(L),P)}function N(L){return L===null||L===34||L===39||L===60||L===61||L===96?a(L):L===47||L===62||Ne(L)?T(L):(e.consume(L),N)}function x(L){return L===47||L===62||Ne(L)?T(L):a(L)}function F(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):a(L)}function U(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return me(L)?ve(e,G,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):G(L)}function G(L){return e.enter("htmlTextData"),i(L)}}const on={name:"labelEnd",resolveAll:Lp,resolveTo:Op,tokenize:Dp},kp={tokenize:Pp},Np={tokenize:Mp},Ip={tokenize:Bp};function Lp(e){let t=-1;const a=[];for(;++t<e.length;){const l=e[t][1];if(a.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const n=l.type==="labelImage"?4:2;l.type="data",t+=n}}return e.length!==a.length&&ut(e,0,e.length,a),e}function Op(e,t){let a=e.length,l=0,n,r,i,u;for(;a--;)if(n=e[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){l=2;break}}else n.type==="labelEnd"&&(i=a);const s={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},o={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[i-2][1].start}};return u=[["enter",s,t],["enter",o,t]],u=Ze(u,e.slice(r+1,r+l+3)),u=Ze(u,[["enter",c,t]]),u=Ze(u,rn(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),u=Ze(u,[["exit",c,t],e[i-2],e[i-1],["exit",o,t]]),u=Ze(u,e.slice(i+1)),u=Ze(u,[["exit",s,t]]),ut(e,r,e.length,u),e}function Dp(e,t,a){const l=this;let n=l.events.length,r,i;for(;n--;)if((l.events[n][1].type==="labelImage"||l.events[n][1].type==="labelLink")&&!l.events[n][1]._balanced){r=l.events[n][1];break}return u;function u(m){return r?r._inactive?f(m):(i=l.parser.defined.includes(Yt(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),s):a(m)}function s(m){return m===40?e.attempt(kp,c,i?c:f)(m):m===91?e.attempt(Np,c,i?o:f)(m):i?c(m):f(m)}function o(m){return e.attempt(Ip,c,f)(m)}function c(m){return t(m)}function f(m){return r._balanced=!0,a(m)}}function Pp(e,t,a){return l;function l(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),n}function n(f){return Ne(f)?pt(e,r)(f):r(f)}function r(f){return f===41?c(f):Vi(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function i(f){return Ne(f)?pt(e,s)(f):c(f)}function u(f){return a(f)}function s(f){return f===34||f===39||f===40?Yi(e,o,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function o(f){return Ne(f)?pt(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):a(f)}}function Mp(e,t,a){const l=this;return n;function n(u){return Gi.call(l,e,r,i,"reference","referenceMarker","referenceString")(u)}function r(u){return l.parser.defined.includes(Yt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(u):a(u)}function i(u){return a(u)}}function Bp(e,t,a){return l;function l(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),n}function n(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):a(r)}}const Rp={name:"labelStartImage",resolveAll:on.resolveAll,tokenize:Fp};function Fp(e,t,a){const l=this;return n;function n(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),r}function r(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),i):a(u)}function i(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(u):t(u)}}const Hp={name:"labelStartLink",resolveAll:on.resolveAll,tokenize:$p};function $p(e,t,a){const l=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),r}function r(i){return i===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(i):t(i)}}const cn={name:"lineEnding",tokenize:Up};function Up(e,t){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ve(e,t,"linePrefix")}}const el={name:"thematicBreak",tokenize:qp};function qp(e,t,a){let l=0,n;return r;function r(o){return e.enter("thematicBreak"),i(o)}function i(o){return n=o,u(o)}function u(o){return o===n?(e.enter("thematicBreakSequence"),s(o)):l>=3&&(o===null||re(o))?(e.exit("thematicBreak"),t(o)):a(o)}function s(o){return o===n?(e.consume(o),l++,s):(e.exit("thematicBreakSequence"),me(o)?ve(e,u,"whitespace")(o):u(o))}}const ze={continuation:{tokenize:Yp},exit:jp,name:"list",tokenize:Gp},zp={partial:!0,tokenize:Xp},Vp={partial:!0,tokenize:Wp};function Gp(e,t,a){const l=this,n=l.events[l.events.length-1];let r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return u;function u(p){const y=l.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!l.containerState.marker||p===l.containerState.marker:nn(p)){if(l.containerState.type||(l.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(el,a,o)(p):o(p);if(!l.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return a(p)}function s(p){return nn(p)&&++i<10?(e.consume(p),s):(!l.interrupt||i<2)&&(l.containerState.marker?p===l.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),o(p)):a(p)}function o(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||p,e.check(Za,l.interrupt?a:c,e.attempt(zp,m,f))}function c(p){return l.containerState.initialBlankLine=!0,r++,m(p)}function f(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):a(p)}function m(p){return l.containerState.size=r+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Yp(e,t,a){const l=this;return l.containerState._closeFlow=void 0,e.check(Za,n,r);function n(u){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,ve(e,t,"listItemIndent",l.containerState.size+1)(u)}function r(u){return l.containerState.furtherBlankLines||!me(u)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,i(u)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(Vp,t,i)(u))}function i(u){return l.containerState._closeFlow=!0,l.interrupt=void 0,ve(e,e.attempt(ze,t,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Wp(e,t,a){const l=this;return ve(e,n,"listItemIndent",l.containerState.size+1);function n(r){const i=l.events[l.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===l.containerState.size?t(r):a(r)}}function jp(e){e.exit(this.containerState.type)}function Xp(e,t,a){const l=this;return ve(e,n,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(r){const i=l.events[l.events.length-1];return!me(r)&&i&&i[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const ji={name:"setextUnderline",resolveTo:Kp,tokenize:Qp};function Kp(e,t){let a=e.length,l,n,r;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){l=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!r&&e[a][1].type==="definition"&&(r=a);const i={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",r?(e.splice(n,0,["enter",i,t]),e.splice(r+1,0,["exit",e[l][1],t]),e[l][1].end={...e[r][1].end}):e[l][1]=i,e.push(["exit",i,t]),e}function Qp(e,t,a){const l=this;let n;return r;function r(o){let c=l.events.length,f;for(;c--;)if(l.events[c][1].type!=="lineEnding"&&l.events[c][1].type!=="linePrefix"&&l.events[c][1].type!=="content"){f=l.events[c][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||f)?(e.enter("setextHeadingLine"),n=o,i(o)):a(o)}function i(o){return e.enter("setextHeadingLineSequence"),u(o)}function u(o){return o===n?(e.consume(o),u):(e.exit("setextHeadingLineSequence"),me(o)?ve(e,s,"lineSuffix")(o):s(o))}function s(o){return o===null||re(o)?(e.exit("setextHeadingLine"),t(o)):a(o)}}const Jp={tokenize:Zp};function Zp(e){const t=this,a=e.attempt(Za,l,e.attempt(this.parser.constructs.flowInitial,n,ve(e,e.attempt(this.parser.constructs.flow,n,e.attempt(np,n)),"linePrefix")));return a;function l(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const eh={resolveAll:Ki()},th=Xi("string"),ah=Xi("text");function Xi(e){return{resolveAll:Ki(e==="text"?lh:void 0),tokenize:t};function t(a){const l=this,n=this.parser.constructs[e],r=a.attempt(n,i,u);return i;function i(c){return o(c)?r(c):u(c)}function u(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),s}function s(c){return o(c)?(a.exit("data"),r(c)):(a.consume(c),s)}function o(c){if(c===null)return!0;const f=n[c];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(l,l.previous))return!0}return!1}}}function Ki(e){return t;function t(a,l){let n=-1,r;for(;++n<=a.length;)r===void 0?a[n]&&a[n][1].type==="data"&&(r=n,n++):(!a[n]||a[n][1].type!=="data")&&(n!==r+2&&(a[r][1].end=a[n-1][1].end,a.splice(r+2,n-r-2),n=r+2),r=void 0);return e?e(a,l):a}}function lh(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const l=e[a-1][1],n=t.sliceStream(l);let r=n.length,i=-1,u=0,s;for(;r--;){const o=n[r];if(typeof o=="string"){for(i=o.length;o.charCodeAt(i-1)===32;)u++,i--;if(i)break;i=-1}else if(o===-2)s=!0,u++;else if(o!==-1){r++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(u=0),u){const o={type:a===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?i:l.start._bufferIndex+i,_index:l.start._index+r,line:l.end.line,column:l.end.column-u,offset:l.end.offset-u},end:{...l.end}};l.end={...o.start},l.start.offset===l.end.offset?Object.assign(l,o):(e.splice(a,0,["enter",o,t],["exit",o,t]),a+=2)}a++}return e}const nh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:op},disable:{null:[]},document:{42:ze,43:ze,45:ze,48:ze,49:ze,50:ze,51:ze,52:ze,53:ze,54:ze,55:ze,56:ze,57:ze,62:Fi},flow:{35:bp,42:el,45:[ji,el],60:Ep,61:ji,95:el,96:qi,126:qi},flowInitial:{[-2]:sn,[-1]:sn,32:sn},insideSpan:{null:[un,eh]},string:{38:$i,92:Hi},text:{[-5]:cn,[-4]:cn,[-3]:cn,33:Rp,38:$i,42:un,60:[Hf,_p],91:Hp,92:[pp,Hi],93:on,95:un,96:Jf}},Symbol.toStringTag,{value:"Module"}));function rh(e,t,a){let l={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const n={},r=[];let i=[],u=[];const s={attempt:M(w),check:M(C),consume:g,enter:E,exit:_,interrupt:M(C,{interrupt:!0})},o={code:null,containerState:{},defineSkip:h,events:[],now:y,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let c=t.tokenize.call(o,s);return t.resolveAll&&r.push(t),o;function f(k){return i=Ze(i,k),b(),i[i.length-1]!==null?[]:(S(t,0),o.events=rn(r,o.events,o),o.events)}function m(k,D){return uh(p(k),D)}function p(k){return ih(i,k)}function y(){const{_bufferIndex:k,_index:D,line:P,column:N,offset:x}=l;return{_bufferIndex:k,_index:D,line:P,column:N,offset:x}}function h(k){n[k.line]=k.column,A()}function b(){let k;for(;l._index<i.length;){const D=i[l._index];if(typeof D=="string")for(k=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===k&&l._bufferIndex<D.length;)v(D.charCodeAt(l._bufferIndex));else v(D)}}function v(k){c=c(k)}function g(k){re(k)?(l.line++,l.column=1,l.offset+=k===-3?2:1,A()):k!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===i[l._index].length&&(l._bufferIndex=-1,l._index++)),o.previous=k}function E(k,D){const P=D||{};return P.type=k,P.start=y(),o.events.push(["enter",P,o]),u.push(P),P}function _(k){const D=u.pop();return D.end=y(),o.events.push(["exit",D,o]),D}function w(k,D){S(k,D.from)}function C(k,D){D.restore()}function M(k,D){return P;function P(N,x,F){let U,$,G,L;return Array.isArray(N)?V(N):"tokenize"in N?V([N]):W(N);function W(ae){return X;function X(le){const ie=le!==null&&ae[le],he=le!==null&&ae.null,_e=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(he)?he:he?[he]:[]];return V(_e)(le)}}function V(ae){return U=ae,$=0,ae.length===0?F:R(ae[$])}function R(ae){return X;function X(le){return L=T(),G=ae,ae.partial||(o.currentConstruct=ae),ae.name&&o.parser.constructs.disable.null.includes(ae.name)?ne():ae.tokenize.call(D?Object.assign(Object.create(o),D):o,s,K,ne)(le)}}function K(ae){return k(G,L),x}function ne(ae){return L.restore(),++$<U.length?R(U[$]):F}}}function S(k,D){k.resolveAll&&!r.includes(k)&&r.push(k),k.resolve&&ut(o.events,D,o.events.length-D,k.resolve(o.events.slice(D),o)),k.resolveTo&&(o.events=k.resolveTo(o.events,o))}function T(){const k=y(),D=o.previous,P=o.currentConstruct,N=o.events.length,x=Array.from(u);return{from:N,restore:F};function F(){l=k,o.previous=D,o.currentConstruct=P,o.events.length=N,u=x,A()}}function A(){l.line in n&&l.column<2&&(l.column=n[l.line],l.offset+=n[l.line]-1)}}function ih(e,t){const a=t.start._index,l=t.start._bufferIndex,n=t.end._index,r=t.end._bufferIndex;let i;if(a===n)i=[e[a].slice(l,r)];else{if(i=e.slice(a,n),l>-1){const u=i[0];typeof u=="string"?i[0]=u.slice(l):i.shift()}r>0&&i.push(e[n].slice(0,r))}return i}function uh(e,t){let a=-1;const l=[];let n;for(;++a<e.length;){const r=e[a];let i;if(typeof r=="string")i=r;else switch(r){case-5:{i="\r";break}case-4:{i=`
|
|
44
|
+
`;break}case-3:{i=`\r
|
|
45
|
+
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&n)continue;i=" ";break}default:i=String.fromCharCode(r)}n=r===-2,l.push(i)}return l.join("")}function sh(e){const l={constructs:_f([nh,...(e||{}).extensions||[]]),content:n(Of),defined:[],document:n(Pf),flow:n(Jp),lazy:{},string:n(th),text:n(ah)};return l;function n(r){return i;function i(u){return rh(l,r,u)}}}function oh(e){for(;!zi(e););return e}const Qi=/[\0\t\n\r]/g;function ch(){let e=1,t="",a=!0,l;return n;function n(r,i,u){const s=[];let o,c,f,m,p;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(i||void 0).decode(r)),f=0,t="",a&&(r.charCodeAt(0)===65279&&f++,a=void 0);f<r.length;){if(Qi.lastIndex=f,o=Qi.exec(r),m=o&&o.index!==void 0?o.index:r.length,p=r.charCodeAt(m),!o){t=r.slice(f);break}if(p===10&&f===m&&l)s.push(-3),l=void 0;else switch(l&&(s.push(-5),l=void 0),f<m&&(s.push(r.slice(f,m)),e+=m-f),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:l=!0,e=1}f=m+1}return u&&(l&&s.push(-5),t&&s.push(t),s.push(null)),s}}const dh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fh(e){return e.replace(dh,ph)}function ph(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){const n=a.charCodeAt(1),r=n===120||n===88;return Pi(a.slice(r?2:1),r?16:10)}return pa(a)||e}const Ji={}.hasOwnProperty;function hh(e,t,a){return typeof t!="string"&&(a=t,t=void 0),bh(a)(oh(sh(a).document().write(ch()(e,t,!0))))}function bh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(Sl),autolinkProtocol:T,autolinkEmail:T,atxHeading:r(Cl),blockQuote:r(he),characterEscape:T,characterReference:T,codeFenced:r(_e),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(_e,i),codeText:r(Ge,i),codeTextData:T,data:T,codeFlowValue:T,definition:r(At),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(xl),hardBreakEscape:r(Ma),hardBreakTrailing:r(Ma),htmlFlow:r(tt,i),htmlFlowData:T,htmlText:r(tt,i),htmlTextData:T,image:r(Ba),label:i,link:r(Sl),listItem:r(sr),listItemValue:m,listOrdered:r(Al,f),listUnordered:r(Al),paragraph:r(_l),reference:R,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(Cl),strong:r(aa),thematicBreak:r(or)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:ie,autolinkProtocol:le,blockQuote:s(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:ae,characterReference:X,codeFenced:s(b),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:A,codeIndented:s(v),codeText:s(x),codeTextData:A,data:A,definition:s(),definitionDestinationString:_,definitionLabelString:g,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(P),htmlFlowData:A,htmlText:s(N),htmlTextData:A,image:s(U),label:G,labelText:$,lineEnding:k,link:s(F),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:K,resourceDestinationString:L,resourceTitleString:W,resource:V,setextHeading:s(S),setextHeadingLineSequence:M,setextHeadingText:C,strong:s(),thematicBreak:s()}};Zi(t,(e||{}).mdastExtensions||[]);const a={};return l;function l(j){let te={type:"root",children:[]};const oe={stack:[te],tokenStack:[],config:t,enter:u,exit:o,buffer:i,resume:c,data:a},fe=[];let Ee=-1;for(;++Ee<j.length;)if(j[Ee][1].type==="listOrdered"||j[Ee][1].type==="listUnordered")if(j[Ee][0]==="enter")fe.push(Ee);else{const Ke=fe.pop();Ee=n(j,Ke,Ee)}for(Ee=-1;++Ee<j.length;){const Ke=t[j[Ee][0]];Ji.call(Ke,j[Ee][1].type)&&Ke[j[Ee][1].type].call(Object.assign({sliceSerialize:j[Ee][2].sliceSerialize},oe),j[Ee][1])}if(oe.tokenStack.length>0){const Ke=oe.tokenStack[oe.tokenStack.length-1];(Ke[1]||eu).call(oe,void 0,Ke[0])}for(te.position={start:yt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:yt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)te=t.transforms[Ee](te)||te;return te}function n(j,te,oe){let fe=te-1,Ee=-1,Ke=!1,Qe,lt,Mt,Bt;for(;++fe<=oe;){const Ue=j[fe];switch(Ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ue[0]==="enter"?Ee++:Ee--,Bt=void 0;break}case"lineEndingBlank":{Ue[0]==="enter"&&(Qe&&!Bt&&!Ee&&!Mt&&(Mt=fe),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!Ee&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||Ee===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(Qe){let dt=fe;for(lt=void 0;dt--;){const nt=j[dt];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;lt&&(j[lt][1].type="lineEndingBlank",Ke=!0),nt[1].type="lineEnding",lt=dt}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}Mt&&(!lt||Mt<lt)&&(Qe._spread=!0),Qe.end=Object.assign({},lt?j[lt][1].start:Ue[1].end),j.splice(lt||fe,0,["exit",Qe,Ue[2]]),fe++,oe++}if(Ue[1].type==="listItemPrefix"){const dt={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0};Qe=dt,j.splice(fe,0,["enter",dt,Ue[2]]),fe++,oe++,Mt=void 0,Bt=!0}}}return j[te][1]._spread=Ke,oe}function r(j,te){return oe;function oe(fe){u.call(this,j(fe),fe),te&&te.call(this,fe)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(j,te,oe){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([te,oe||void 0]),j.position={start:yt(te.start),end:void 0}}function s(j){return te;function te(oe){j&&j.call(this,oe),o.call(this,oe)}}function o(j,te){const oe=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==j.type&&(te?te.call(this,j,fe[0]):(fe[1]||eu).call(this,j,fe[0]));else throw new Error("Cannot close `"+j.type+"` ("+da({start:j.start,end:j.end})+"): it’s not open");oe.position.end=yt(j.end)}function c(){return Sf(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),te=this.stack[this.stack.length-1];te.lang=j}function y(){const j=this.resume(),te=this.stack[this.stack.length-1];te.meta=j}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j.replace(/(\r?\n|\r)$/g,"")}function g(j){const te=this.resume(),oe=this.stack[this.stack.length-1];oe.label=te,oe.identifier=Yt(this.sliceSerialize(j)).toLowerCase()}function E(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function _(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function w(j){const te=this.stack[this.stack.length-1];if(!te.depth){const oe=this.sliceSerialize(j).length;te.depth=oe}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function M(j){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function T(j){const oe=this.stack[this.stack.length-1].children;let fe=oe[oe.length-1];(!fe||fe.type!=="text")&&(fe=Ra(),fe.position={start:yt(j.start),end:void 0},oe.push(fe)),this.stack.push(fe)}function A(j){const te=this.stack.pop();te.value+=this.sliceSerialize(j),te.position.end=yt(j.end)}function k(j){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const oe=te.children[te.children.length-1];oe.position.end=yt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(T.call(this,j),A.call(this,j))}function D(){this.data.atHardBreak=!0}function P(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function N(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function x(){const j=this.resume(),te=this.stack[this.stack.length-1];te.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function U(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=te,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function $(j){const te=this.sliceSerialize(j),oe=this.stack[this.stack.length-2];oe.label=fh(te),oe.identifier=Yt(te).toLowerCase()}function G(){const j=this.stack[this.stack.length-1],te=this.resume(),oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,oe.type==="link"){const fe=j.children;oe.children=fe}else oe.alt=te}function L(){const j=this.resume(),te=this.stack[this.stack.length-1];te.url=j}function W(){const j=this.resume(),te=this.stack[this.stack.length-1];te.title=j}function V(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function K(j){const te=this.resume(),oe=this.stack[this.stack.length-1];oe.label=te,oe.identifier=Yt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ne(j){this.data.characterReferenceType=j.type}function ae(j){const te=this.sliceSerialize(j),oe=this.data.characterReferenceType;let fe;oe?(fe=Pi(te,oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=pa(te);const Ee=this.stack[this.stack.length-1];Ee.value+=fe}function X(j){const te=this.stack.pop();te.position.end=yt(j.end)}function le(j){A.call(this,j);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(j)}function ie(j){A.call(this,j);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(j)}function he(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function Ge(){return{type:"inlineCode",value:""}}function At(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xl(){return{type:"emphasis",children:[]}}function Cl(){return{type:"heading",depth:0,children:[]}}function Ma(){return{type:"break"}}function tt(){return{type:"html",value:""}}function Ba(){return{type:"image",title:null,url:"",alt:null}}function Sl(){return{type:"link",title:null,url:"",children:[]}}function Al(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function sr(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function _l(){return{type:"paragraph",children:[]}}function aa(){return{type:"strong",children:[]}}function Ra(){return{type:"text",value:""}}function or(){return{type:"thematicBreak"}}}function yt(e){return{line:e.line,column:e.column,offset:e.offset}}function Zi(e,t){let a=-1;for(;++a<t.length;){const l=t[a];Array.isArray(l)?Zi(e,l):mh(e,l)}}function mh(e,t){let a;for(a in t)if(Ji.call(t,a))switch(a){case"canContainEols":{const l=t[a];l&&e[a].push(...l);break}case"transforms":{const l=t[a];l&&e[a].push(...l);break}case"enter":case"exit":{const l=t[a];l&&Object.assign(e[a],l);break}}}function eu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+da({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+da({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+da({start:t.start,end:t.end})+") is still open")}function vh(e){const t=this;t.parser=a;function a(l){return hh(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function gh(e,t){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function Eh(e,t){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
46
|
+
`}]}function yh(e,t){const a=t.value?t.value+`
|
|
47
|
+
`:"",l={},n=t.lang?t.lang.split(/\s+/):[];n.length>0&&(l.className=["language-"+n[0]]);let r={type:"element",tagName:"code",properties:l,children:[{type:"text",value:a}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function Th(e,t){const a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function xh(e,t){const a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ch(e,t){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),n=Wt(l.toLowerCase()),r=e.footnoteOrder.indexOf(l);let i,u=e.footnoteCounts.get(l);u===void 0?(u=0,e.footnoteOrder.push(l),i=e.footnoteOrder.length):i=r+1,u+=1,e.footnoteCounts.set(l,u);const s={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+n,id:a+"fnref-"+n+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const o={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,o),e.applyData(t,o)}function Sh(e,t){const a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ah(e,t){if(e.options.allowDangerousHtml){const a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function tu(e,t){const a=t.referenceType;let l="]";if(a==="collapsed"?l+="[]":a==="full"&&(l+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+l}];const n=e.all(t),r=n[0];r&&r.type==="text"?r.value="["+r.value:n.unshift({type:"text",value:"["});const i=n[n.length-1];return i&&i.type==="text"?i.value+=l:n.push({type:"text",value:l}),n}function _h(e,t){const a=String(t.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return tu(e,t);const n={src:Wt(l.url||""),alt:t.alt};l.title!==null&&l.title!==void 0&&(n.title=l.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function wh(e,t){const a={src:Wt(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);const l={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,l),e.applyData(t,l)}function kh(e,t){const a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);const l={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)}function Nh(e,t){const a=String(t.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return tu(e,t);const n={href:Wt(l.url||"")};l.title!==null&&l.title!==void 0&&(n.title=l.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ih(e,t){const a={href:Wt(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);const l={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function Lh(e,t,a){const l=e.all(t),n=a?Oh(a):au(t),r={},i=[];if(typeof t.checked=="boolean"){const c=l[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},l.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let u=-1;for(;++u<l.length;){const c=l[u];(n||u!==0||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:`
|
|
48
|
+
`}),c.type==="element"&&c.tagName==="p"&&!n?i.push(...c.children):i.push(c)}const s=l[l.length-1];s&&(n||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
|
|
49
|
+
`});const o={type:"element",tagName:"li",properties:r,children:i};return e.patch(t,o),e.applyData(t,o)}function Oh(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const a=e.children;let l=-1;for(;!t&&++l<a.length;)t=au(a[l])}return t}function au(e){const t=e.spread;return t??e.children.length>1}function Dh(e,t){const a={},l=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++n<l.length;){const i=l[n];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const r={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(l,!0)};return e.patch(t,r),e.applyData(t,r)}function Ph(e,t){const a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Mh(e,t){const a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function Bh(e,t){const a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Rh(e,t){const a=e.all(t),l=a.shift(),n=[];if(l){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(t.children[0],i),n.push(i)}if(a.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},u=it(t.children[1]),s=Ja(t.children[t.children.length-1]);u&&s&&(i.position={start:u,end:s}),n.push(i)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,r),e.applyData(t,r)}function Fh(e,t,a){const l=a?a.children:void 0,r=(l?l.indexOf(t):1)===0?"th":"td",i=a&&a.type==="table"?a.align:void 0,u=i?i.length:t.children.length;let s=-1;const o=[];for(;++s<u;){const f=t.children[s],m={},p=i?i[s]:void 0;p&&(m.align=p);let y={type:"element",tagName:r,properties:m,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),o.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(o,!0)};return e.patch(t,c),e.applyData(t,c)}function Hh(e,t){const a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}const lu=9,nu=32;function $h(e){const t=String(e),a=/\r?\n|\r/g;let l=a.exec(t),n=0;const r=[];for(;l;)r.push(ru(t.slice(n,l.index),n>0,!0),l[0]),n=l.index+l[0].length,l=a.exec(t);return r.push(ru(t.slice(n),n>0,!1)),r.join("")}function ru(e,t,a){let l=0,n=e.length;if(t){let r=e.codePointAt(l);for(;r===lu||r===nu;)l++,r=e.codePointAt(l)}if(a){let r=e.codePointAt(n-1);for(;r===lu||r===nu;)n--,r=e.codePointAt(n-1)}return n>l?e.slice(l,n):""}function Uh(e,t){const a={type:"text",value:$h(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function qh(e,t){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}const zh={blockquote:gh,break:Eh,code:yh,delete:Th,emphasis:xh,footnoteReference:Ch,heading:Sh,html:Ah,imageReference:_h,image:wh,inlineCode:kh,linkReference:Nh,link:Ih,listItem:Lh,list:Dh,paragraph:Ph,root:Mh,strong:Bh,table:Rh,tableCell:Hh,tableRow:Fh,text:Uh,thematicBreak:qh,toml:tl,yaml:tl,definition:tl,footnoteDefinition:tl};function tl(){}const iu=-1,al=0,va=1,ll=2,dn=3,fn=4,pn=5,hn=6,uu=7,su=8,ou=typeof self=="object"?self:globalThis,Vh=(e,t)=>{const a=(n,r)=>(e.set(r,n),n),l=n=>{if(e.has(n))return e.get(n);const[r,i]=t[n];switch(r){case al:case iu:return a(i,n);case va:{const u=a([],n);for(const s of i)u.push(l(s));return u}case ll:{const u=a({},n);for(const[s,o]of i)u[l(s)]=l(o);return u}case dn:return a(new Date(i),n);case fn:{const{source:u,flags:s}=i;return a(new RegExp(u,s),n)}case pn:{const u=a(new Map,n);for(const[s,o]of i)u.set(l(s),l(o));return u}case hn:{const u=a(new Set,n);for(const s of i)u.add(l(s));return u}case uu:{const{name:u,message:s}=i;return a(new ou[u](s),n)}case su:return a(BigInt(i),n);case"BigInt":return a(Object(BigInt(i)),n);case"ArrayBuffer":return a(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:u}=new Uint8Array(i);return a(new DataView(u),i)}}return a(new ou[r](i),n)};return l},cu=e=>Vh(new Map,e)(0),jt="",{toString:Gh}={},{keys:Yh}=Object,ga=e=>{const t=typeof e;if(t!=="object"||!e)return[al,t];const a=Gh.call(e).slice(8,-1);switch(a){case"Array":return[va,jt];case"Object":return[ll,jt];case"Date":return[dn,jt];case"RegExp":return[fn,jt];case"Map":return[pn,jt];case"Set":return[hn,jt];case"DataView":return[va,a]}return a.includes("Array")?[va,a]:a.includes("Error")?[uu,a]:[ll,a]},nl=([e,t])=>e===al&&(t==="function"||t==="symbol"),Wh=(e,t,a,l)=>{const n=(i,u)=>{const s=l.push(i)-1;return a.set(u,s),s},r=i=>{if(a.has(i))return a.get(i);let[u,s]=ga(i);switch(u){case al:{let c=i;switch(s){case"bigint":u=su,c=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return n([iu],i)}return n([u,c],i)}case va:{if(s){let m=i;return s==="DataView"?m=new Uint8Array(i.buffer):s==="ArrayBuffer"&&(m=new Uint8Array(i)),n([s,[...m]],i)}const c=[],f=n([u,c],i);for(const m of i)c.push(r(m));return f}case ll:{if(s)switch(s){case"BigInt":return n([s,i.toString()],i);case"Boolean":case"Number":case"String":return n([s,i.valueOf()],i)}if(t&&"toJSON"in i)return r(i.toJSON());const c=[],f=n([u,c],i);for(const m of Yh(i))(e||!nl(ga(i[m])))&&c.push([r(m),r(i[m])]);return f}case dn:return n([u,i.toISOString()],i);case fn:{const{source:c,flags:f}=i;return n([u,{source:c,flags:f}],i)}case pn:{const c=[],f=n([u,c],i);for(const[m,p]of i)(e||!(nl(ga(m))||nl(ga(p))))&&c.push([r(m),r(p)]);return f}case hn:{const c=[],f=n([u,c],i);for(const m of i)(e||!nl(ga(m)))&&c.push(r(m));return f}}const{message:o}=i;return n([u,{name:s,message:o}],i)};return r},du=(e,{json:t,lossy:a}={})=>{const l=[];return Wh(!(t||a),!!t,new Map,l)(e),l},It=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cu(du(e,t)):structuredClone(e):(e,t)=>cu(du(e,t));function jh(e,t){const a=[{type:"text",value:"↩"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function Xh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Kh(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||jh,l=e.options.footnoteBackLabel||Xh,n=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const c=e.all(o),f=String(o.identifier).toUpperCase(),m=Wt(f.toLowerCase());let p=0;const y=[],h=e.footnoteCounts.get(f);for(;h!==void 0&&++p<=h;){y.length>0&&y.push({type:"text",value:" "});let g=typeof a=="string"?a:a(s,p);typeof g=="string"&&(g={type:"text",value:g}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(s,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const g=b.children[b.children.length-1];g&&g.type==="text"?g.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...y)}else c.push(...y);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(o,v),u.push(v)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...It(i),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
|
|
50
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
51
|
+
`}]}}const fu=function(e){if(e==null)return eb;if(typeof e=="function")return rl(e);if(typeof e=="object")return Array.isArray(e)?Qh(e):Jh(e);if(typeof e=="string")return Zh(e);throw new Error("Expected function, string, or object as test")};function Qh(e){const t=[];let a=-1;for(;++a<e.length;)t[a]=fu(e[a]);return rl(l);function l(...n){let r=-1;for(;++r<t.length;)if(t[r].apply(this,n))return!0;return!1}}function Jh(e){const t=e;return rl(a);function a(l){const n=l;let r;for(r in e)if(n[r]!==t[r])return!1;return!0}}function Zh(e){return rl(t);function t(a){return a&&a.type===e}}function rl(e){return t;function t(a,l,n){return!!(tb(a)&&e.call(this,a,typeof l=="number"?l:void 0,n||void 0))}}function eb(){return!0}function tb(e){return e!==null&&typeof e=="object"&&"type"in e}function ty(e){return e}const pu=[],ab=!0,hu=!1,lb="skip";function bu(e,t,a,l){let n;typeof t=="function"&&typeof a!="function"?(l=a,a=t):n=t;const r=fu(n),i=l?-1:1;u(e,void 0,[])();function u(s,o,c){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=pu,y,h,b;if((!t||r(s,o,c[c.length-1]||void 0))&&(p=nb(a(s,c)),p[0]===hu))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==lb)for(h=(l?v.children.length:-1)+i,b=c.concat(v);h>-1&&h<v.children.length;){const g=v.children[h];if(y=u(g,h,b)(),y[0]===hu)return y;h=typeof y[1]=="number"?y[1]:h+i}}return p}}}function nb(e){return Array.isArray(e)?e:typeof e=="number"?[ab,e]:e==null?pu:[e]}function il(e,t,a,l){let n,r,i;typeof t=="function"&&typeof a!="function"?(r=void 0,i=t,n=a):(r=t,i=a,n=l),bu(e,r,u,n);function u(s,o){const c=o[o.length-1],f=c?c.children.indexOf(s):void 0;return i(s,f,c)}}const bn={}.hasOwnProperty,rb={};function ib(e,t){const a=t||rb,l=new Map,n=new Map,r=new Map,i={...zh,...a.handlers},u={all:o,applyData:sb,definitionById:l,footnoteById:n,footnoteCounts:r,footnoteOrder:[],handlers:i,one:s,options:a,patch:ub,wrap:cb};return il(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?l:n,m=String(c.identifier).toUpperCase();f.has(m)||f.set(m,c)}}),u;function s(c,f){const m=c.type,p=u.handlers[m];if(bn.call(u.handlers,m)&&p)return p(u,c,f);if(u.options.passThrough&&u.options.passThrough.includes(m)){if("children"in c){const{children:h,...b}=c,v=It(b);return v.children=u.all(c),v}return It(c)}return(u.options.unknownHandler||ob)(u,c,f)}function o(c){const f=[];if("children"in c){const m=c.children;let p=-1;for(;++p<m.length;){const y=u.one(m[p],c);if(y){if(p&&m[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=mu(y.value)),!Array.isArray(y)&&y.type==="element")){const h=y.children[0];h&&h.type==="text"&&(h.value=mu(h.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function ub(e,t){e.position&&(t.position=Ci(e))}function sb(e,t){let a=t;if(e&&e.data){const l=e.data.hName,n=e.data.hChildren,r=e.data.hProperties;if(typeof l=="string")if(a.type==="element")a.tagName=l;else{const i="children"in a?a.children:[a];a={type:"element",tagName:l,properties:{},children:i}}a.type==="element"&&r&&Object.assign(a.properties,It(r)),"children"in a&&a.children&&n!==null&&n!==void 0&&(a.children=n)}return a}function ob(e,t){const a=t.data||{},l="value"in t&&!(bn.call(a,"hProperties")||bn.call(a,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function cb(e,t){const a=[];let l=-1;for(t&&a.push({type:"text",value:`
|
|
52
|
+
`});++l<e.length;)l&&a.push({type:"text",value:`
|
|
53
|
+
`}),a.push(e[l]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
54
|
+
`}),a}function mu(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function vu(e,t){const a=ib(e,t),l=a.one(e,void 0),n=Kh(a),r=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return n&&r.children.push({type:"text",value:`
|
|
55
|
+
`},n),r}function db(e,t){return e&&"run"in e?async function(a,l){const n=vu(a,{file:l,...t});await e.run(n,l)}:function(a,l){return vu(a,{file:l,...e||t})}}function gu(e){if(e)throw e}var mn,Eu;function fb(){if(Eu)return mn;Eu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,n=function(o){return typeof Array.isArray=="function"?Array.isArray(o):t.call(o)==="[object Array]"},r=function(o){if(!o||t.call(o)!=="[object Object]")return!1;var c=e.call(o,"constructor"),f=o.constructor&&o.constructor.prototype&&e.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!c&&!f)return!1;var m;for(m in o);return typeof m>"u"||e.call(o,m)},i=function(o,c){a&&c.name==="__proto__"?a(o,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):o[c.name]=c.newValue},u=function(o,c){if(c==="__proto__")if(e.call(o,c)){if(l)return l(o,c).value}else return;return o[c]};return mn=function s(){var o,c,f,m,p,y,h=arguments[0],b=1,v=arguments.length,g=!1;for(typeof h=="boolean"&&(g=h,h=arguments[1]||{},b=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});b<v;++b)if(o=arguments[b],o!=null)for(c in o)f=u(h,c),m=u(o,c),h!==m&&(g&&m&&(r(m)||(p=n(m)))?(p?(p=!1,y=f&&n(f)?f:[]):y=f&&r(f)?f:{},i(h,{name:c,newValue:s(g,y,m)})):typeof m<"u"&&i(h,{name:c,newValue:m}));return h},mn}var pb=fb();const vn=Kl(pb);function gn(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 hb(){const e=[],t={run:a,use:l};return t;function a(...n){let r=-1;const i=n.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);u(null,...n);function u(s,...o){const c=e[++r];let f=-1;if(s){i(s);return}for(;++f<n.length;)(o[f]===null||o[f]===void 0)&&(o[f]=n[f]);n=o,c?bb(c,u)(...o):i(null,...o)}}function l(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function bb(e,t){let a;return l;function l(...i){const u=e.length>i.length;let s;u&&i.push(n);try{s=e.apply(this,i)}catch(o){const c=o;if(u&&a)throw c;return n(c)}u||(s&&s.then&&typeof s.then=="function"?s.then(r,n):s instanceof Error?n(s):r(s))}function n(i,...u){a||(a=!0,t(i,...u))}function r(i){n(null,i)}}const ot={basename:mb,dirname:vb,extname:gb,join:Eb,sep:"/"};function mb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ea(e);let a=0,l=-1,n=e.length,r;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else l<0&&(r=!0,l=n+1);return l<0?"":e.slice(a,l)}if(t===e)return"";let i=-1,u=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else i<0&&(r=!0,i=n+1),u>-1&&(e.codePointAt(n)===t.codePointAt(u--)?u<0&&(l=n):(u=-1,l=i));return a===l?l=i:l<0&&(l=e.length),e.slice(a,l)}function vb(e){if(Ea(e),e.length===0)return".";let t=-1,a=e.length,l;for(;--a;)if(e.codePointAt(a)===47){if(l){t=a;break}}else l||(l=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gb(e){Ea(e);let t=e.length,a=-1,l=0,n=-1,r=0,i;for(;t--;){const u=e.codePointAt(t);if(u===47){if(i){l=t+1;break}continue}a<0&&(i=!0,a=t+1),u===46?n<0?n=t:r!==1&&(r=1):n>-1&&(r=-1)}return n<0||a<0||r===0||r===1&&n===a-1&&n===l+1?"":e.slice(n,a)}function Eb(...e){let t=-1,a;for(;++t<e.length;)Ea(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":yb(a)}function yb(e){Ea(e);const t=e.codePointAt(0)===47;let a=Tb(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function Tb(e,t){let a="",l=0,n=-1,r=0,i=-1,u,s;for(;++i<=e.length;){if(i<e.length)u=e.codePointAt(i);else{if(u===47)break;u=47}if(u===47){if(!(n===i-1||r===1))if(n!==i-1&&r===2){if(a.length<2||l!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(s=a.lastIndexOf("/"),s!==a.length-1){s<0?(a="",l=0):(a=a.slice(0,s),l=a.length-1-a.lastIndexOf("/")),n=i,r=0;continue}}else if(a.length>0){a="",l=0,n=i,r=0;continue}}t&&(a=a.length>0?a+"/..":"..",l=2)}else a.length>0?a+="/"+e.slice(n+1,i):a=e.slice(n+1,i),l=i-n-1;n=i,r=0}else u===46&&r>-1?r++:r=-1}return a}function Ea(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xb={cwd:Cb};function Cb(){return"/"}function En(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Sb(e){if(typeof e=="string")e=new URL(e);else if(!En(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 Ab(e)}function Ab(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const t=e.pathname;let a=-1;for(;++a<t.length;)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){const l=t.codePointAt(a+2);if(l===70||l===102){const n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(t)}const yn=["history","path","basename","stem","extname","dirname"];class yu{constructor(t){let a;t?En(t)?a={path:t}:typeof t=="string"||_b(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":xb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<yn.length;){const r=yn[l];r in a&&a[r]!==void 0&&a[r]!==null&&(this[r]=r==="history"?[...a[r]]:a[r])}let n;for(n in a)yn.includes(n)||(this[n]=a[n])}get basename(){return typeof this.path=="string"?ot.basename(this.path):void 0}set basename(t){xn(t,"basename"),Tn(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){Tu(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(Tn(t,"extname"),Tu(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){En(t)&&(t=Sb(t)),xn(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){xn(t,"stem"),Tn(t,"stem"),this.path=ot.join(this.dirname||"",t+(this.extname||""))}fail(t,a,l){const n=this.message(t,a,l);throw n.fatal=!0,n}info(t,a,l){const n=this.message(t,a,l);return n.fatal=void 0,n}message(t,a,l){const n=new Fe(t,a,l);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tn(e,t){if(e&&e.includes(ot.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ot.sep+"`")}function xn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Tu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _b(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wb=function(e){const l=this.constructor.prototype,n=l[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,l),r},kb={}.hasOwnProperty;class Cn extends wb{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=hb()}copy(){const t=new Cn;let a=-1;for(;++a<this.attachers.length;){const l=this.attachers[a];t.use(...l)}return t.data(vn(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(_n("data",this.frozen),this.namespace[t]=a,this):kb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_n("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[a,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const n=a.call(t,...l);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const a=ul(t),l=this.parser||this.Parser;return Sn("parse",l),l(String(a),a)}process(t,a){const l=this;return this.freeze(),Sn("process",this.parser||this.Parser),An("process",this.compiler||this.Compiler),a?n(void 0,a):new Promise(n);function n(r,i){const u=ul(t),s=l.parse(u);l.run(s,u,function(c,f,m){if(c||!f||!m)return o(c);const p=f,y=l.stringify(p,m);Lb(y)?m.value=y:m.result=y,o(c,m)});function o(c,f){c||!f?i(c):r?r(f):a(void 0,f)}}}processSync(t){let a=!1,l;return this.freeze(),Sn("processSync",this.parser||this.Parser),An("processSync",this.compiler||this.Compiler),this.process(t,n),Cu("processSync","process",a),l;function n(r,i){a=!0,gu(r),l=i}}run(t,a,l){xu(t),this.freeze();const n=this.transformers;return!l&&typeof a=="function"&&(l=a,a=void 0),l?r(void 0,l):new Promise(r);function r(i,u){const s=ul(a);n.run(t,s,o);function o(c,f,m){const p=f||t;c?u(c):i?i(p):l(void 0,p,m)}}}runSync(t,a){let l=!1,n;return this.run(t,a,r),Cu("runSync","run",l),n;function r(i,u){gu(i),n=u,l=!0}}stringify(t,a){this.freeze();const l=ul(a),n=this.compiler||this.Compiler;return An("stringify",n),xu(t),n(t,l)}use(t,...a){const l=this.attachers,n=this.namespace;if(_n("use",this.frozen),t!=null)if(typeof t=="function")s(t,a);else if(typeof t=="object")Array.isArray(t)?u(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function r(o){if(typeof o=="function")s(o,[]);else if(typeof o=="object")if(Array.isArray(o)){const[c,...f]=o;s(c,f)}else i(o);else throw new TypeError("Expected usable value, not `"+o+"`")}function i(o){if(!("plugins"in o)&&!("settings"in o))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(o.plugins),o.settings&&(n.settings=vn(!0,n.settings,o.settings))}function u(o){let c=-1;if(o!=null)if(Array.isArray(o))for(;++c<o.length;){const f=o[c];r(f)}else throw new TypeError("Expected a list of plugins, not `"+o+"`")}function s(o,c){let f=-1,m=-1;for(;++f<l.length;)if(l[f][0]===o){m=f;break}if(m===-1)l.push([o,...c]);else if(c.length>0){let[p,...y]=c;const h=l[m][1];gn(h)&&gn(p)&&(p=vn(!0,h,p)),l[m]=[o,p,...y]}}}}const Nb=new Cn().freeze();function Sn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function An(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _n(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 xu(e){if(!gn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cu(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ul(e){return Ib(e)?e:new yu(e)}function Ib(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Lb(e){return typeof e=="string"||Ob(e)}function Ob(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Db="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Su=[],Au={allowDangerousHtml:!0},Pb=/^(https?|ircs?|mailto|xmpp)$/i,Mb=[{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:"className",id:"remove-classname"},{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 wn(e){const t=Bb(e),a=Rb(e);return Fb(t.runSync(t.parse(a),a),e)}function Bb(e){const t=e.rehypePlugins||Su,a=e.remarkPlugins||Su,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Au}:Au;return Nb().use(vh).use(a).use(db,l).use(t)}function Rb(e){const t=e.children||"",a=new yu;return typeof t=="string"&&(a.value=t),a}function Fb(e,t){const a=t.allowedElements,l=t.allowElement,n=t.components,r=t.disallowedElements,i=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||Hb;for(const c of Mb)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Db+c.id,void 0);return il(e,o),uf(e,{Fragment:q.Fragment,components:n,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function o(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return i?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in an)if(Object.hasOwn(an,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],h=an[p];(h===null||h.includes(c.tagName))&&(c.properties[p]=s(String(y||""),p,c))}}if(c.type==="element"){let p=a?!a.includes(c.tagName):r?r.includes(c.tagName):!1;if(!p&&l&&typeof f=="number"&&(p=!l(c,f,m)),p&&m&&typeof f=="number")return u&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function Hb(e){const t=e.indexOf(":"),a=e.indexOf("?"),l=e.indexOf("#"),n=e.indexOf("/");return t===-1||n!==-1&&t>n||a!==-1&&t>a||l!==-1&&t>l||Pb.test(e.slice(0,t))?e:""}const _u=/[#.]/g;function $b(e,t){const a=e||"",l={};let n=0,r,i;for(;n<a.length;){_u.lastIndex=n;const u=_u.exec(a),s=a.slice(n,u?u.index:a.length);s&&(r?r==="#"?l.id=s:Array.isArray(l.className)?l.className.push(s):l.className=[s]:i=s,n+=s.length),u&&(r=u[0],n++)}return{type:"element",tagName:i||t||"div",properties:l,children:[]}}function wu(e,t,a){const l=a?Vb(a):void 0;function n(r,i,...u){let s;if(r==null){s={type:"root",children:[]};const o=i;u.unshift(o)}else{s=$b(r,t);const o=s.tagName.toLowerCase(),c=l?l.get(o):void 0;if(s.tagName=c||o,Ub(i))u.unshift(i);else for(const[f,m]of Object.entries(i))qb(e,s.properties,f,m)}for(const o of u)kn(s.children,o);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return n}function Ub(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,a=Object.keys(e);for(const l of a){const n=t[l];if(n&&typeof n=="object"){if(!Array.isArray(n))return!0;const r=n;for(const i of r)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function qb(e,t,a,l){const n=Qa(e,a);let r;if(l!=null){if(typeof l=="number"){if(Number.isNaN(l))return;r=l}else typeof l=="boolean"?r=l:typeof l=="string"?n.spaceSeparated?r=mi(l):n.commaSeparated?r=li(l):n.commaOrSpaceSeparated?r=mi(li(l).join(" ")):r=ku(n,n.property,l):Array.isArray(l)?r=[...l]:r=n.property==="style"?zb(l):String(l);if(Array.isArray(r)){const i=[];for(const u of r)i.push(ku(n,n.property,u));r=i}n.property==="className"&&Array.isArray(t.className)&&(r=t.className.concat(r)),t[n.property]=r}}function kn(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const a of t)kn(e,a);else if(typeof t=="object"&&"type"in t)t.type==="root"?kn(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ku(e,t,a){if(typeof a=="string"){if(e.number&&a&&!Number.isNaN(Number(a)))return Number(a);if((e.boolean||e.overloadedBoolean)&&(a===""||ua(a)===ua(t)))return!0}return a}function zb(e){const t=[];for(const[a,l]of Object.entries(e))t.push([a,l].join(": "));return t.join("; ")}function Vb(e){const t=new Map;for(const a of e)t.set(a.toLowerCase(),a);return t}const Gb=["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"],Yb=wu(sa,"div"),Wb=wu(gt,"g",Gb);function jb(e){const t=String(e),a=[];return{toOffset:n,toPoint:l};function l(r){if(typeof r=="number"&&r>-1&&r<=t.length){let i=0;for(;;){let u=a[i];if(u===void 0){const s=Nu(t,a[i-1]);u=s===-1?t.length+1:s+1,a[i]=u}if(u>r)return{line:i+1,column:r-(i>0?a[i-1]:0)+1,offset:r};i++}}}function n(r){if(r&&typeof r.line=="number"&&typeof r.column=="number"&&!Number.isNaN(r.line)&&!Number.isNaN(r.column)){for(;a.length<r.line;){const u=a[a.length-1],s=Nu(t,u),o=s===-1?t.length+1:s+1;if(u===o)break;a.push(o)}const i=(r.line>1?a[r.line-2]:0)+r.column-1;if(i<a[r.line-1])return i}}}function Nu(e,t){const a=e.indexOf("\r",t),l=e.indexOf(`
|
|
56
|
+
`,t);return l===-1?a:a===-1||a+1===l?l:a<l?a:l}const Lt={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/"},Iu={}.hasOwnProperty,Xb=Object.prototype;function Kb(e,t){const a=t||{};return Nn({file:a.file||void 0,location:!1,schema:a.space==="svg"?gt:sa,verbose:a.verbose||!1},e)}function Nn(e,t){let a;switch(t.nodeName){case"#comment":{const l=t;return a={type:"comment",value:l.data},sl(e,l,a),a}case"#document":case"#document-fragment":{const l=t,n="mode"in l?l.mode==="quirks"||l.mode==="limited-quirks":!1;if(a={type:"root",children:Lu(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){const r=String(e.file),i=jb(r),u=i.toPoint(0),s=i.toPoint(r.length);a.position={start:u,end:s}}return a}case"#documentType":{const l=t;return a={type:"doctype"},sl(e,l,a),a}case"#text":{const l=t;return a={type:"text",value:l.value},sl(e,l,a),a}default:return a=Qb(e,t),a}}function Lu(e,t){let a=-1;const l=[];for(;++a<t.length;){const n=Nn(e,t[a]);l.push(n)}return l}function Qb(e,t){const a=e.schema;e.schema=t.namespaceURI===Lt.svg?gt:sa;let l=-1;const n={};for(;++l<t.attrs.length;){const u=t.attrs[l],s=(u.prefix?u.prefix+":":"")+u.name;Iu.call(Xb,s)||(n[s]=u.value)}const i=(e.schema.space==="svg"?Wb:Yb)(t.tagName,n,Lu(e,t.childNodes));if(sl(e,t,i),i.tagName==="template"){const u=t,s=u.sourceCodeLocation,o=s&&s.startTag&&Xt(s.startTag),c=s&&s.endTag&&Xt(s.endTag),f=Nn(e,u.content);o&&c&&e.file&&(f.position={start:o.end,end:c.start}),i.content=f}return e.schema=a,i}function sl(e,t,a){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const l=Jb(e,a,t.sourceCodeLocation);l&&(e.location=!0,a.position=l)}}function Jb(e,t,a){const l=Xt(a);if(t.type==="element"){const n=t.children[t.children.length-1];if(l&&!a.endTag&&n&&n.position&&n.position.end&&(l.end=Object.assign({},n.position.end)),e.verbose){const r={};let i;if(a.attrs)for(i in a.attrs)Iu.call(a.attrs,i)&&(r[Qa(e.schema,i).property]=Xt(a.attrs[i]));a.startTag;const u=Xt(a.startTag),s=a.endTag?Xt(a.endTag):void 0,o={opening:u};s&&(o.closing=s),o.properties=r,t.data={position:o}}}return l}function Xt(e){const t=Ou({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=Ou({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||a?{start:t,end:a}:void 0}function Ou(e){return e.line&&e.column?e:void 0}const Du={}.hasOwnProperty;function Pu(e,t){const a=t||{};function l(n,...r){let i=l.invalid;const u=l.handlers;if(n&&Du.call(n,e)){const s=String(n[e]);i=Du.call(u,s)?u[s]:l.unknown}if(i)return i.call(this,n,...r)}return l.handlers=a.handlers||{},l.invalid=a.invalid,l.unknown=a.unknown,l}const Zb={},e0={}.hasOwnProperty,Mu=Pu("type",{handlers:{root:a0,element:u0,text:r0,comment:i0,doctype:n0}});function t0(e,t){const l=(t||Zb).space;return Mu(e,l==="svg"?gt:sa)}function a0(e,t){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=In(e.children,a,t),Kt(e,a),a}function l0(e,t){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=In(e.children,a,t),Kt(e,a),a}function n0(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Kt(e,t),t}function r0(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Kt(e,t),t}function i0(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Kt(e,t),t}function u0(e,t){const a=t;let l=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(l=gt);const n=[];let r;if(e.properties){for(r in e.properties)if(r!=="children"&&e0.call(e.properties,r)){const s=s0(l,r,e.properties[r]);s&&n.push(s)}}const i=l.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:n,namespaceURI:Lt[i],childNodes:[],parentNode:null};return u.childNodes=In(e.children,u,l),Kt(e,u),e.tagName==="template"&&e.content&&(u.content=l0(e.content,l)),u}function s0(e,t,a){const l=Qa(e,t);if(a===!1||a===null||a===void 0||typeof a=="number"&&Number.isNaN(a)||!a&&l.boolean)return;Array.isArray(a)&&(a=l.commaSeparated?ni(a):vi(a));const n={name:l.attribute,value:a===!0?"":String(a)};if(l.space&&l.space!=="html"&&l.space!=="svg"){const r=n.name.indexOf(":");r<0?n.prefix="":(n.name=n.name.slice(r+1),n.prefix=l.attribute.slice(0,r)),n.namespace=Lt[l.space]}return n}function In(e,t,a){let l=-1;const n=[];if(e)for(;++l<e.length;){const r=Mu(e[l],a);r.parentNode=t,n.push(r)}return n}function Kt(e,t){const a=e.position;a&&a.start&&a.end&&(a.start.offset,a.end.offset,t.sourceCodeLocation={startLine:a.start.line,startCol:a.start.column,startOffset:a.start.offset,endLine:a.end.line,endCol:a.end.column,endOffset:a.end.offset})}const o0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],c0=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]),Ae="�";var O;(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"})(O||(O={}));const Ve={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Bu(e){return e>=55296&&e<=57343}function d0(e){return e>=56320&&e<=57343}function f0(e,t){return(e-55296)*1024+9216+t}function Ru(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Fu(e){return e>=64976&&e<=65007||c0.has(e)}var Y;(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"})(Y||(Y={}));const p0=65536;class h0{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=p0,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,a){const{line:l,col:n,offset:r}=this,i=n+a,u=r+a;return{code:t,startLine:l,endLine:l,startCol:i,endCol:i,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 a=this.html.charCodeAt(this.pos+1);if(d0(a))return this.pos++,this._addGap(),f0(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,O.EOF;return this._err(Y.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,a){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,a){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(t,this.pos);for(let l=0;l<t.length;l++)if((this.html.charCodeAt(this.pos+l)|32)!==t.charCodeAt(l))return!1;return!0}peek(t){const a=this.pos+t;if(a>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,O.EOF;const l=this.html.charCodeAt(a);return l===O.CARRIAGE_RETURN?O.LINE_FEED:l}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,O.EOF;let t=this.html.charCodeAt(this.pos);return t===O.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,O.LINE_FEED):t===O.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Bu(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===O.LINE_FEED||t===O.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ru(t)?this._err(Y.controlCharacterInInputStream):Fu(t)&&this._err(Y.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var pe;(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"})(pe||(pe={}));function Hu(e,t){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}const b0=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))),m0=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]]);function v0(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=m0.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 g0=32;var Tt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Tt||(Tt={}));function Ln(e){return e>=Be.ZERO&&e<=Be.NINE}function E0(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function y0(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||Ln(e)}function T0(e){return e===Be.EQUALS||y0(e)}var Re;(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"})(Re||(Re={}));var ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ht||(ht={}));class x0{constructor(t,a,l){this.decodeTree=t,this.emitCodePoint=a,this.errors=l,this.state=Re.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ht.Strict}startEntity(t){this.decodeMode=t,this.state=Re.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case Re.EntityStart:return t.charCodeAt(a)===Be.NUM?(this.state=Re.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=Re.NamedEntity,this.stateNamedEntity(t,a));case Re.NumericStart:return this.stateNumericStart(t,a);case Re.NumericDecimal:return this.stateNumericDecimal(t,a);case Re.NumericHex:return this.stateNumericHex(t,a);case Re.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|g0)===Be.LOWER_X?(this.state=Re.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=Re.NumericDecimal,this.stateNumericDecimal(t,a))}addToNumericResult(t,a,l,n){if(a!==l){const r=l-a;this.result=this.result*Math.pow(n,r)+Number.parseInt(t.substr(a,r),n),this.consumed+=r}}stateNumericHex(t,a){const l=a;for(;a<t.length;){const n=t.charCodeAt(a);if(Ln(n)||E0(n))a+=1;else return this.addToNumericResult(t,l,a,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,l,a,16),-1}stateNumericDecimal(t,a){const l=a;for(;a<t.length;){const n=t.charCodeAt(a);if(Ln(n))a+=1;else return this.addToNumericResult(t,l,a,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,l,a,10),-1}emitNumericEntity(t,a){var l;if(this.consumed<=a)return(l=this.errors)===null||l===void 0||l.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Be.SEMI)this.consumed+=1;else if(this.decodeMode===ht.Strict)return 0;return this.emitCodePoint(v0(this.result),this.consumed),this.errors&&(t!==Be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,a){const{decodeTree:l}=this;let n=l[this.treeIndex],r=(n&Tt.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){const i=t.charCodeAt(a);if(this.treeIndex=C0(l,n,this.treeIndex+Math.max(1,r),i),this.treeIndex<0)return this.result===0||this.decodeMode===ht.Attribute&&(r===0||T0(i))?0:this.emitNotTerminatedNamedEntity();if(n=l[this.treeIndex],r=(n&Tt.VALUE_LENGTH)>>14,r!==0){if(i===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:a,decodeTree:l}=this,n=(l[a]&Tt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,l){const{decodeTree:n}=this;return this.emitCodePoint(a===1?n[t]&~Tt.VALUE_LENGTH:n[t+1],l),a===3&&this.emitCodePoint(n[t+2],l),l}end(){var t;switch(this.state){case Re.NamedEntity:return this.result!==0&&(this.decodeMode!==ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Re.NumericDecimal:return this.emitNumericEntity(0,2);case Re.NumericHex:return this.emitNumericEntity(0,3);case Re.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Re.EntityStart:return 0}}}function C0(e,t,a,l){const n=(t&Tt.BRANCH_LENGTH)>>7,r=t&Tt.JUMP_TABLE;if(n===0)return r!==0&&l===r?a:-1;if(r){const s=l-r;return s<0||s>=n?-1:e[a+s]-1}let i=a,u=i+n-1;for(;i<=u;){const s=i+u>>>1,o=e[s];if(o<l)i=s+1;else if(o>l)u=s-1;else return e[s+n]}return-1}var Q;(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/"})(Q||(Q={}));var Ot;(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"})(Ot||(Ot={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var z;(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"})(z||(z={}));var d;(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"})(d||(d={}));const S0=new Map([[z.A,d.A],[z.ADDRESS,d.ADDRESS],[z.ANNOTATION_XML,d.ANNOTATION_XML],[z.APPLET,d.APPLET],[z.AREA,d.AREA],[z.ARTICLE,d.ARTICLE],[z.ASIDE,d.ASIDE],[z.B,d.B],[z.BASE,d.BASE],[z.BASEFONT,d.BASEFONT],[z.BGSOUND,d.BGSOUND],[z.BIG,d.BIG],[z.BLOCKQUOTE,d.BLOCKQUOTE],[z.BODY,d.BODY],[z.BR,d.BR],[z.BUTTON,d.BUTTON],[z.CAPTION,d.CAPTION],[z.CENTER,d.CENTER],[z.CODE,d.CODE],[z.COL,d.COL],[z.COLGROUP,d.COLGROUP],[z.DD,d.DD],[z.DESC,d.DESC],[z.DETAILS,d.DETAILS],[z.DIALOG,d.DIALOG],[z.DIR,d.DIR],[z.DIV,d.DIV],[z.DL,d.DL],[z.DT,d.DT],[z.EM,d.EM],[z.EMBED,d.EMBED],[z.FIELDSET,d.FIELDSET],[z.FIGCAPTION,d.FIGCAPTION],[z.FIGURE,d.FIGURE],[z.FONT,d.FONT],[z.FOOTER,d.FOOTER],[z.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[z.FORM,d.FORM],[z.FRAME,d.FRAME],[z.FRAMESET,d.FRAMESET],[z.H1,d.H1],[z.H2,d.H2],[z.H3,d.H3],[z.H4,d.H4],[z.H5,d.H5],[z.H6,d.H6],[z.HEAD,d.HEAD],[z.HEADER,d.HEADER],[z.HGROUP,d.HGROUP],[z.HR,d.HR],[z.HTML,d.HTML],[z.I,d.I],[z.IMG,d.IMG],[z.IMAGE,d.IMAGE],[z.INPUT,d.INPUT],[z.IFRAME,d.IFRAME],[z.KEYGEN,d.KEYGEN],[z.LABEL,d.LABEL],[z.LI,d.LI],[z.LINK,d.LINK],[z.LISTING,d.LISTING],[z.MAIN,d.MAIN],[z.MALIGNMARK,d.MALIGNMARK],[z.MARQUEE,d.MARQUEE],[z.MATH,d.MATH],[z.MENU,d.MENU],[z.META,d.META],[z.MGLYPH,d.MGLYPH],[z.MI,d.MI],[z.MO,d.MO],[z.MN,d.MN],[z.MS,d.MS],[z.MTEXT,d.MTEXT],[z.NAV,d.NAV],[z.NOBR,d.NOBR],[z.NOFRAMES,d.NOFRAMES],[z.NOEMBED,d.NOEMBED],[z.NOSCRIPT,d.NOSCRIPT],[z.OBJECT,d.OBJECT],[z.OL,d.OL],[z.OPTGROUP,d.OPTGROUP],[z.OPTION,d.OPTION],[z.P,d.P],[z.PARAM,d.PARAM],[z.PLAINTEXT,d.PLAINTEXT],[z.PRE,d.PRE],[z.RB,d.RB],[z.RP,d.RP],[z.RT,d.RT],[z.RTC,d.RTC],[z.RUBY,d.RUBY],[z.S,d.S],[z.SCRIPT,d.SCRIPT],[z.SEARCH,d.SEARCH],[z.SECTION,d.SECTION],[z.SELECT,d.SELECT],[z.SOURCE,d.SOURCE],[z.SMALL,d.SMALL],[z.SPAN,d.SPAN],[z.STRIKE,d.STRIKE],[z.STRONG,d.STRONG],[z.STYLE,d.STYLE],[z.SUB,d.SUB],[z.SUMMARY,d.SUMMARY],[z.SUP,d.SUP],[z.TABLE,d.TABLE],[z.TBODY,d.TBODY],[z.TEMPLATE,d.TEMPLATE],[z.TEXTAREA,d.TEXTAREA],[z.TFOOT,d.TFOOT],[z.TD,d.TD],[z.TH,d.TH],[z.THEAD,d.THEAD],[z.TITLE,d.TITLE],[z.TR,d.TR],[z.TRACK,d.TRACK],[z.TT,d.TT],[z.U,d.U],[z.UL,d.UL],[z.SVG,d.SVG],[z.VAR,d.VAR],[z.WBR,d.WBR],[z.XMP,d.XMP]]);function Qt(e){var t;return(t=S0.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const J=d,A0={[Q.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Q.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Q.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set},On=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.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 Ie={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function _0(e){return e>=O.DIGIT_0&&e<=O.DIGIT_9}function ya(e){return e>=O.LATIN_CAPITAL_A&&e<=O.LATIN_CAPITAL_Z}function w0(e){return e>=O.LATIN_SMALL_A&&e<=O.LATIN_SMALL_Z}function xt(e){return w0(e)||ya(e)}function $u(e){return xt(e)||_0(e)}function ol(e){return e+32}function Uu(e){return e===O.SPACE||e===O.LINE_FEED||e===O.TABULATION||e===O.FORM_FEED}function qu(e){return Uu(e)||e===O.SOLIDUS||e===O.GREATER_THAN_SIGN}function k0(e){return e===O.NULL?Y.nullCharacterReference:e>1114111?Y.characterReferenceOutsideUnicodeRange:Bu(e)?Y.surrogateCharacterReference:Fu(e)?Y.noncharacterCharacterReference:Ru(e)||e===O.CARRIAGE_RETURN?Y.controlCharacterReference:null}class N0{constructor(t,a){this.options=t,this.handler=a,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 h0(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new x0(b0,(l,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(l)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Y.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:l=>{this._err(Y.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+l)},validateNumericCharacterReference:l=>{const n=k0(l);n&&this._err(n,1)}}:void 0)}_err(t,a=0){var l,n;(n=(l=this.handler).onParseError)===null||n===void 0||n.call(l,this.preprocessor.getError(t,a))}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,a,l){this.active=!0,this.preprocessor.write(t,a),this._runParsingLoop(),this.paused||l?.()}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 a=0;a<t;a++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,a){return this.preprocessor.startsWith(t,a)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:pe.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:pe.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:pe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:pe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,a){this.currentCharacterToken={type:t,chars:a,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,a;const l=this.currentToken;if(Hu(l,this.currentAttr.name)===null){if(l.attrs.push(this.currentAttr),l.location&&this.currentLocation){const n=(t=(a=l.location).attrs)!==null&&t!==void 0?t:a.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Y.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=Qt(t.tagName),t.type===pe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Y.endTagWithAttributes),t.selfClosing&&this._err(Y.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 pe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case pe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case pe.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:pe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=a;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,a)}_emitCodePoint(t){const a=Uu(t)?pe.WHITESPACE_CHARACTER:t===O.NULL?pe.NULL_CHARACTER:pe.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(pe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ht.Attribute:ht.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 O.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitCodePoint(t);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case O.AMPERSAND:{this._startCharacterReference();break}case O.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(xt(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case O.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case O.QUESTION_MARK:{this._err(Y.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(xt(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case O.GREATER_THAN_SIGN:{this._err(Y.missingEndTagName),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Y.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.tagName+=Ae;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(ya(t)?ol(t):t)}}_stateRcdataLessThanSign(t){t===O.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){xt(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 a=this.currentToken;switch(a.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case O.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case O.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===O.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){xt(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 O.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case O.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){xt(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===O.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===O.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 O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===O.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:xt(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){xt(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)&&qu(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<Ve.SCRIPT.length;a++)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 O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case O.HYPHEN_MINUS:{this._emitChars("-");break}case O.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case O.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ae);break}case O.EOF:{this._err(Y.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===O.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)&&qu(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<Ve.SCRIPT.length;a++)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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._err(Y.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 O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:case O.SOLIDUS:case O.GREATER_THAN_SIGN:case O.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case O.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:{this._err(Y.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.name+=Ae;break}default:this.currentAttr.name+=String.fromCodePoint(ya(t)?ol(t):t)}}_stateAfterAttributeName(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case O.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=Ae;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case O.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=Ae;break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.AMPERSAND:{this._startCharacterReference();break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),this.currentAttr.value+=Ae;break}case O.QUOTATION_MARK:case O.APOSTROPHE:case O.LESS_THAN_SIGN:case O.EQUALS_SIGN:case O.GRAVE_ACCENT:{this._err(Y.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case O.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case O.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case O.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case O.EOF:{this._err(Y.eofInTag),this._emitEOFToken();break}default:this._err(Y.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const a=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(a);break}case O.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.data+=Ae;break}default:a.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(Y.cdataInHtmlContent),this._createCommentToken(Ve.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Y.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const a=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(a);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const a=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case O.LESS_THAN_SIGN:{a.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.data+=Ae;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const a=this.currentToken;switch(t){case O.EXCLAMATION_MARK:{a.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case O.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===O.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==O.GREATER_THAN_SIGN&&t!==O.EOF&&this._err(Y.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const a=this.currentToken;switch(t){case O.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const a=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(a);break}case O.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case O.HYPHEN_MINUS:{a.data+="-";break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const a=this.currentToken;switch(t){case O.HYPHEN_MINUS:{a.data+="--!",this.state=B.COMMENT_END_DASH;break}case O.GREATER_THAN_SIGN:{this._err(Y.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(a);break}case O.EOF:{this._err(Y.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ya(t))this._createDoctypeToken(String.fromCharCode(ol(t))),this.state=B.DOCTYPE_NAME;else switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.NULL:{this._err(Y.unexpectedNullCharacter),this._createDoctypeToken(Ae),this.state=B.DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.name+=Ae;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(ya(t)?ol(t):t)}}_stateAfterDoctypeName(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),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(Y.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{a.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{a.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.publicId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.publicId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case O.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.QUOTATION_MARK:{a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.QUOTATION_MARK:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{this._err(Y.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.QUOTATION_MARK:{a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case O.APOSTROPHE:{a.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case O.GREATER_THAN_SIGN:{this._err(Y.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(a);break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case O.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.systemId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const a=this.currentToken;switch(t){case O.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case O.NULL:{this._err(Y.unexpectedNullCharacter),a.systemId+=Ae;break}case O.GREATER_THAN_SIGN:{this._err(Y.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case O.SPACE:case O.LINE_FEED:case O.TABULATION:case O.FORM_FEED:break;case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.EOF:{this._err(Y.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(Y.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const a=this.currentToken;switch(t){case O.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=B.DATA;break}case O.NULL:{this._err(Y.unexpectedNullCharacter);break}case O.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case O.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case O.EOF:{this._err(Y.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===O.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case O.GREATER_THAN_SIGN:{this.state=B.DATA;break}case O.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(O.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&$u(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){$u(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===O.SEMICOLON&&this._err(Y.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const zu=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),Vu=new Set([...zu,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),cl=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),I0=new Set([...cl,d.OL,d.UL]),L0=new Set([...cl,d.BUTTON]),Gu=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Yu=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),O0=new Set([d.TR,d.TEMPLATE,d.HTML]),D0=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),P0=new Set([d.TABLE,d.TEMPLATE,d.HTML]),M0=new Set([d.TD,d.TH]);class B0{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,a,l){this.treeAdapter=a,this.handler=l,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,a){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,a,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,a){const l=this._indexOf(t);this.items[l]=a,l===this.stackTop&&(this.current=a)}insertAfter(t,a,l){const n=this._indexOf(t)+1;this.items.splice(n,0,a),this.tagIDs.splice(n,0,l),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(t,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==Q.HTML);this.shortenToLength(Math.max(a,0))}shortenToLength(t){for(;this.stackTop>=t;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop<t)}}popUntilElementPopped(t){const a=this._indexOf(t);this.shortenToLength(Math.max(a,0))}popUntilPopped(t,a){const l=this._indexOfTagNames(t,a);this.shortenToLength(Math.max(l,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(On,Q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(M0,Q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,a){for(let l=this.stackTop;l>=0;l--)if(t.has(this.tagIDs[l])&&this.treeAdapter.getNamespaceURI(this.items[l])===a)return l;return-1}clearBackTo(t,a){const l=this._indexOfTagNames(t,a);this.shortenToLength(l+1)}clearBackToTableContext(){this.clearBackTo(P0,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(D0,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(O0,Q.HTML)}remove(t){const a=this._indexOf(t);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const a=this._indexOf(t)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,a){for(let l=this.stackTop;l>=0;l--){const n=this.tagIDs[l];switch(this.treeAdapter.getNamespaceURI(this.items[l])){case Q.HTML:{if(n===t)return!0;if(a.has(n))return!1;break}case Q.SVG:{if(Yu.has(n))return!1;break}case Q.MATHML:{if(Gu.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,cl)}hasInListItemScope(t){return this.hasInDynamicScope(t,I0)}hasInButtonScope(t){return this.hasInDynamicScope(t,L0)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Q.HTML:{if(On.has(a))return!0;if(cl.has(a))return!1;break}case Q.SVG:{if(Yu.has(a))return!1;break}case Q.MATHML:{if(Gu.has(a))return!1;break}}}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===Q.HTML)switch(this.tagIDs[a]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===Q.HTML)switch(this.tagIDs[a]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&zu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Vu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Vu.has(this.currentTagId);)this.pop()}}const Dn=3;var ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ct||(ct={}));const Wu={type:ct.Marker};class R0{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,a){const l=[],n=a.length,r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const s=this.entries[u];if(s.type===ct.Marker)break;const{element:o}=s;if(this.treeAdapter.getTagName(o)===r&&this.treeAdapter.getNamespaceURI(o)===i){const c=this.treeAdapter.getAttrList(o);c.length===n&&l.push({idx:u,attrs:c})}}return l}_ensureNoahArkCondition(t){if(this.entries.length<Dn)return;const a=this.treeAdapter.getAttrList(t),l=this._getNoahArkConditionCandidates(t,a);if(l.length<Dn)return;const n=new Map(a.map(i=>[i.name,i.value]));let r=0;for(let i=0;i<l.length;i++){const u=l[i];u.attrs.every(s=>n.get(s.name)===s.value)&&(r+=1,r>=Dn&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Wu)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:ct.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const l=this.entries.indexOf(this.bookmark);this.entries.splice(l,0,{type:ct.Element,element:t,token:a})}removeEntry(t){const a=this.entries.indexOf(t);a!==-1&&this.entries.splice(a,1)}clearToLastMarker(){const t=this.entries.indexOf(Wu);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const a=this.entries.find(l=>l.type===ct.Marker||this.treeAdapter.getTagName(l.element)===t);return a&&a.type===ct.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===ct.Element&&a.element===t)}}const Ct={createDocument(){return{nodeName:"#document",mode:et.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,a){return{nodeName:e,tagName:e,attrs:a,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,a){const l=e.childNodes.indexOf(a);e.childNodes.splice(l,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,a,l){const n=e.childNodes.find(r=>r.nodeName==="#documentType");if(n)n.name=t,n.publicId=a,n.systemId=l;else{const r={nodeName:"#documentType",name:t,publicId:a,systemId:l,parentNode:null};Ct.appendChild(e,r)}},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 a=e.childNodes[e.childNodes.length-1];if(Ct.isTextNode(a)){a.value+=t;return}}Ct.appendChild(e,Ct.createTextNode(t))},insertTextBefore(e,t,a){const l=e.childNodes[e.childNodes.indexOf(a)-1];l&&Ct.isTextNode(l)?l.value+=t:Ct.insertBefore(e,Ct.createTextNode(t),a)},adoptAttributes(e,t){const a=new Set(e.attrs.map(l=>l.name));for(let l=0;l<t.length;l++)a.has(t[l].name)||e.attrs.push(t[l])},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}}},ju="html",F0="about:legacy-compat",H0="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Xu=["+//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//"],$0=[...Xu,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],U0=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ku=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],q0=[...Ku,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Qu(e,t){return t.some(a=>e.startsWith(a))}function z0(e){return e.name===ju&&e.publicId===null&&(e.systemId===null||e.systemId===F0)}function V0(e){if(e.name!==ju)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===H0)return et.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),U0.has(a))return et.QUIRKS;let l=t===null?$0:Xu;if(Qu(a,l))return et.QUIRKS;if(l=t===null?Ku:q0,Qu(a,l))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const Ju={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},G0="definitionurl",Y0="definitionURL",W0=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])),j0=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),X0=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])),K0=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function Q0(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:l})=>l===Ot.COLOR||l===Ot.SIZE||l===Ot.FACE)||K0.has(t)}function Zu(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===G0){e.attrs[t].name=Y0;break}}function es(e){for(let t=0;t<e.attrs.length;t++){const a=W0.get(e.attrs[t].name);a!=null&&(e.attrs[t].name=a)}}function Pn(e){for(let t=0;t<e.attrs.length;t++){const a=j0.get(e.attrs[t].name);a&&(e.attrs[t].prefix=a.prefix,e.attrs[t].name=a.name,e.attrs[t].namespace=a.namespace)}}function J0(e){const t=X0.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Qt(e.tagName))}function Z0(e,t){return t===Q.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function em(e,t,a){if(t===Q.MATHML&&e===d.ANNOTATION_XML){for(let l=0;l<a.length;l++)if(a[l].name===Ot.ENCODING){const n=a[l].value.toLowerCase();return n===Ju.TEXT_HTML||n===Ju.APPLICATION_XML}}return t===Q.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function tm(e,t,a,l){return(!l||l===Q.HTML)&&em(e,t,a)||(!l||l===Q.MATHML)&&Z0(e,t)}const am="hidden",lm=8,nm=3;var H;(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"})(H||(H={}));const rm={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ts=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),as={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ct,onParseError:null};class ls{constructor(t,a,l=null,n=null){this.fragmentContext=l,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.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={...as,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new N0(this.options,this),this.activeFormattingElements=new R0(this.treeAdapter),this.fragmentContextID=l?Qt(this.treeAdapter.getTagName(l)):d.UNKNOWN,this._setContextModes(l??this.document,this.fragmentContextID),this.openElements=new B0(this.document,this.treeAdapter,this)}static parse(t,a){const l=new this(a);return l.tokenizer.write(t,!0),l.document}static getFragmentParser(t,a){const l={...as,...a};t??(t=l.treeAdapter.createElement(z.TEMPLATE,Q.HTML,[]));const n=l.treeAdapter.createElement("documentmock",Q.HTML,[]),r=new this(l,n,t);return r.fragmentContextID===d.TEMPLATE&&r.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,a),a}_err(t,a,l){var n;if(!this.onParseError)return;const r=(n=t.location)!==null&&n!==void 0?n:rm,i={code:a,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:l?r.startLine:r.endLine,endCol:l?r.startCol:r.endCol,endOffset:l?r.startOffset:r.endOffset};this.onParseError(i)}onItemPush(t,a,l){var n,r;(r=(n=this.treeAdapter).onItemPush)===null||r===void 0||r.call(n,t),l&&this.openElements.stackTop>0&&this._setContextModes(t,a)}onItemPop(t,a){var l,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(l=this.treeAdapter).onItemPop)===null||n===void 0||n.call(l,t,this.openElements.current),a){let r,i;this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,this._setContextModes(r,i)}}_setContextModes(t,a){const l=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Q.HTML;this.currentNotInHTML=!l,this.tokenizer.inForeignNode=!l&&t!==void 0&&a!==void 0&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,Q.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=Ie.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)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Q.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=Ie.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=Ie.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=Ie.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=Ie.PLAINTEXT;break}}}_setDocumentType(t){const a=t.name||"",l=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,l,n),t.location){const i=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));i&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}}_attachElementToTree(t,a){if(this.options.sourceCodeLocationInfo){const l=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(t,l)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const l=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(l??this.document,t)}}_appendElement(t,a){const l=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(l,t.location)}_insertElement(t,a){const l=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(l,t.location),this.openElements.push(l,t.tagID)}_insertFakeElement(t,a){const l=this.treeAdapter.createElement(t,Q.HTML,[]);this._attachElementToTree(l,null),this.openElements.push(l,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,Q.HTML,t.attrs),l=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,l),this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,a){const l=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(a,l),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_insertCharacters(t){let a,l;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:l}=this._findFosterParentingLocation(),l?this.treeAdapter.insertTextBefore(a,t.chars,l):this.treeAdapter.insertText(a,t.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(a),r=l?n.lastIndexOf(l):n.length,i=n[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:s,endCol:o,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:s,endCol:o,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,a){for(let l=this.treeAdapter.getFirstChild(t);l;l=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(l),this.treeAdapter.appendChild(a,l)}_setEndLocation(t,a){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&a.location){const l=a.location,n=this.treeAdapter.getTagName(t),r=a.type===pe.END_TAG&&n===a.tagName?{endTag:{...l},endLine:l.endLine,endCol:l.endCol,endOffset:l.endOffset}:{endLine:l.startLine,endCol:l.startCol,endOffset:l.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,r)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let a,l;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,l=this.fragmentContextID):{current:a,currentTagId:l}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(a)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===Q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&l!==void 0&&!this._isIntegrationPoint(l,a,Q.HTML)}_processToken(t){switch(t.type){case pe.CHARACTER:{this.onCharacter(t);break}case pe.NULL_CHARACTER:{this.onNullCharacter(t);break}case pe.COMMENT:{this.onComment(t);break}case pe.DOCTYPE:{this.onDoctype(t);break}case pe.START_TAG:{this._processStartTag(t);break}case pe.END_TAG:{this.onEndTag(t);break}case pe.EOF:{this.onEof(t);break}case pe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,l){const n=this.treeAdapter.getNamespaceURI(a),r=this.treeAdapter.getAttrList(a);return tm(t,n,r,l)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(n=>n.type===ct.Marker||this.openElements.contains(n.element)),l=a===-1?t-1:a-1;for(let n=l;n>=0;n--){const r=this.activeFormattingElements.entries[n];this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=H.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=H.IN_TABLE;return}case d.BODY:{this.insertionMode=H.IN_BODY;return}case d.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=H.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const l=this.openElements.tagIDs[a];if(l===d.TEMPLATE)break;if(l===d.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(t){return ts.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const a=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case d.TABLE:{const l=this.treeAdapter.getParentNode(a);return l?{parent:l,beforeElement:a}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,t,a.beforeElement):this.treeAdapter.appendChild(a.parent,t)}_isSpecialElement(t,a){const l=this.treeAdapter.getNamespaceURI(t);return A0[l].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Mv(this,t);return}switch(this.insertionMode){case H.INITIAL:{Ta(this,t);break}case H.BEFORE_HTML:{xa(this,t);break}case H.BEFORE_HEAD:{Ca(this,t);break}case H.IN_HEAD:{Sa(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Aa(this,t);break}case H.AFTER_HEAD:{_a(this,t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{rs(this,t);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fn(this,t);break}case H.IN_TABLE_TEXT:{ps(this,t);break}case H.IN_COLUMN_GROUP:{pl(this,t);break}case H.AFTER_BODY:{ml(this,t);break}case H.AFTER_AFTER_BODY:{vl(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Pv(this,t);return}switch(this.insertionMode){case H.INITIAL:{Ta(this,t);break}case H.BEFORE_HTML:{xa(this,t);break}case H.BEFORE_HEAD:{Ca(this,t);break}case H.IN_HEAD:{Sa(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Aa(this,t);break}case H.AFTER_HEAD:{_a(this,t);break}case H.TEXT:{this._insertCharacters(t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fn(this,t);break}case H.IN_COLUMN_GROUP:{pl(this,t);break}case H.AFTER_BODY:{ml(this,t);break}case H.AFTER_AFTER_BODY:{vl(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bn(this,t);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{Bn(this,t);break}case H.IN_TABLE_TEXT:{Na(this,t);break}case H.AFTER_BODY:{fm(this,t);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{pm(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:{hm(this,t);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(t,Y.misplacedDoctype);break}case H.IN_TABLE_TEXT:{Na(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Y.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Bv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Ta(this,t);break}case H.BEFORE_HTML:{bm(this,t);break}case H.BEFORE_HEAD:{vm(this,t);break}case H.IN_HEAD:{at(this,t);break}case H.IN_HEAD_NO_SCRIPT:{ym(this,t);break}case H.AFTER_HEAD:{xm(this,t);break}case H.IN_BODY:{He(this,t);break}case H.IN_TABLE:{Jt(this,t);break}case H.IN_TABLE_TEXT:{Na(this,t);break}case H.IN_CAPTION:{gv(this,t);break}case H.IN_COLUMN_GROUP:{Hn(this,t);break}case H.IN_TABLE_BODY:{hl(this,t);break}case H.IN_ROW:{bl(this,t);break}case H.IN_CELL:{Tv(this,t);break}case H.IN_SELECT:{ms(this,t);break}case H.IN_SELECT_IN_TABLE:{Cv(this,t);break}case H.IN_TEMPLATE:{Av(this,t);break}case H.AFTER_BODY:{wv(this,t);break}case H.IN_FRAMESET:{kv(this,t);break}case H.AFTER_FRAMESET:{Iv(this,t);break}case H.AFTER_AFTER_BODY:{Ov(this,t);break}case H.AFTER_AFTER_FRAMESET:{Dv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Rv(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case H.INITIAL:{Ta(this,t);break}case H.BEFORE_HTML:{mm(this,t);break}case H.BEFORE_HEAD:{gm(this,t);break}case H.IN_HEAD:{Em(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Tm(this,t);break}case H.AFTER_HEAD:{Cm(this,t);break}case H.IN_BODY:{fl(this,t);break}case H.TEXT:{sv(this,t);break}case H.IN_TABLE:{wa(this,t);break}case H.IN_TABLE_TEXT:{Na(this,t);break}case H.IN_CAPTION:{Ev(this,t);break}case H.IN_COLUMN_GROUP:{yv(this,t);break}case H.IN_TABLE_BODY:{$n(this,t);break}case H.IN_ROW:{bs(this,t);break}case H.IN_CELL:{xv(this,t);break}case H.IN_SELECT:{vs(this,t);break}case H.IN_SELECT_IN_TABLE:{Sv(this,t);break}case H.IN_TEMPLATE:{_v(this,t);break}case H.AFTER_BODY:{Es(this,t);break}case H.IN_FRAMESET:{Nv(this,t);break}case H.AFTER_FRAMESET:{Lv(this,t);break}case H.AFTER_AFTER_BODY:{vl(this,t);break}}}onEof(t){switch(this.insertionMode){case H.INITIAL:{Ta(this,t);break}case H.BEFORE_HTML:{xa(this,t);break}case H.BEFORE_HEAD:{Ca(this,t);break}case H.IN_HEAD:{Sa(this,t);break}case H.IN_HEAD_NO_SCRIPT:{Aa(this,t);break}case H.AFTER_HEAD:{_a(this,t);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{ds(this,t);break}case H.TEXT:{ov(this,t);break}case H.IN_TABLE_TEXT:{Na(this,t);break}case H.IN_TEMPLATE:{gs(this,t);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Rn(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===O.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 H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(t);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{ns(this,t);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{Fn(this,t);break}case H.IN_TABLE_TEXT:{fs(this,t);break}}}}function im(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(t.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):cs(e,t),a}function um(e,t){let a=null,l=e.openElements.stackTop;for(;l>=0;l--){const n=e.openElements.items[l];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[l])&&(a=n)}return a||(e.openElements.shortenToLength(Math.max(l,0)),e.activeFormattingElements.removeEntry(t)),a}function sm(e,t,a){let l=t,n=e.openElements.getCommonAncestor(t);for(let r=0,i=n;i!==a;r++,i=n){n=e.openElements.getCommonAncestor(i);const u=e.activeFormattingElements.getElementEntry(i),s=u&&r>=nm;!u||s?(s&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(i)):(i=om(e,u),l===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(l),e.treeAdapter.appendChild(i,l),l=i)}return l}function om(e,t){const a=e.treeAdapter.getNamespaceURI(t.element),l=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,l),t.element=l,l}function cm(e,t,a){const l=e.treeAdapter.getTagName(t),n=Qt(l);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(a);else{const r=e.treeAdapter.getNamespaceURI(t);n===d.TEMPLATE&&r===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function dm(e,t,a){const l=e.treeAdapter.getNamespaceURI(a.element),{token:n}=a,r=e.treeAdapter.createElement(n.tagName,l,n.attrs);e._adoptNodes(t,r),e.treeAdapter.appendChild(t,r),e.activeFormattingElements.insertElementAfterBookmark(r,n),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,r,n.tagID)}function Mn(e,t){for(let a=0;a<lm;a++){const l=im(e,t);if(!l)break;const n=um(e,l);if(!n)break;e.activeFormattingElements.bookmark=l;const r=sm(e,n,l.element),i=e.openElements.getCommonAncestor(l.element);e.treeAdapter.detachNode(r),i&&cm(e,i,r),dm(e,n,l)}}function Bn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fm(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pm(e,t){e._appendCommentNode(t,e.document)}function Rn(e,t){if(e.stopped=!0,t.location){const a=e.fragmentContext?0:2;for(let l=e.openElements.stackTop;l>=a;l--)e._setEndLocation(e.openElements.items[l],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const l=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(l);if(n&&!n.endTag&&(e._setEndLocation(l,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(r);i&&!i.endTag&&e._setEndLocation(r,t)}}}}function hm(e,t){e._setDocumentType(t);const a=t.forceQuirks?et.QUIRKS:V0(t);z0(t)||e._err(t,Y.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=H.BEFORE_HTML}function Ta(e,t){e._err(t,Y.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=H.BEFORE_HTML,e._processToken(t)}function bm(e,t){t.tagID===d.HTML?(e._insertElement(t,Q.HTML),e.insertionMode=H.BEFORE_HEAD):xa(e,t)}function mm(e,t){const a=t.tagID;(a===d.HTML||a===d.HEAD||a===d.BODY||a===d.BR)&&xa(e,t)}function xa(e,t){e._insertFakeRootElement(),e.insertionMode=H.BEFORE_HEAD,e._processToken(t)}function vm(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.HEAD:{e._insertElement(t,Q.HTML),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD;break}default:Ca(e,t)}}function gm(e,t){const a=t.tagID;a===d.HEAD||a===d.BODY||a===d.HTML||a===d.BR?Ca(e,t):e._err(t,Y.endTagWithoutMatchingOpenElement)}function Ca(e,t){e._insertFakeElement(z.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=H.IN_HEAD,e._processToken(t)}function at(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,Ie.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ie.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,Ie.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,Ie.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:Sa(e,t)}}function Em(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=H.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{Sa(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Dt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,Y.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Y.endTagWithoutMatchingOpenElement)}function Sa(e,t){e.openElements.pop(),e.insertionMode=H.AFTER_HEAD,e._processToken(t)}function ym(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{at(e,t);break}case d.NOSCRIPT:{e._err(t,Y.nestedNoscriptInHead);break}default:Aa(e,t)}}function Tm(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=H.IN_HEAD;break}case d.BR:{Aa(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function Aa(e,t){const a=t.type===pe.EOF?Y.openElementsLeftAfterEof:Y.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=H.IN_HEAD,e._processToken(t)}function xm(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.BODY:{e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,Y.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),at(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,Y.misplacedStartTagForHeadElement);break}default:_a(e,t)}}function Cm(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{_a(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:e._err(t,Y.endTagWithoutMatchingOpenElement)}}function _a(e,t){e._insertFakeElement(z.BODY,d.BODY),e.insertionMode=H.IN_BODY,dl(e,t)}function dl(e,t){switch(t.type){case pe.CHARACTER:{rs(e,t);break}case pe.WHITESPACE_CHARACTER:{ns(e,t);break}case pe.COMMENT:{Bn(e,t);break}case pe.START_TAG:{He(e,t);break}case pe.END_TAG:{fl(e,t);break}case pe.EOF:{ds(e,t);break}}}function ns(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function rs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Sm(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Am(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function _m(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_FRAMESET)}function wm(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function km(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&On.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML)}function Nm(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Im(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),a||(e.formElement=e.openElements.current))}function Lm(e,t){e.framesetOk=!1;const a=t.tagID;for(let l=e.openElements.stackTop;l>=0;l--){const n=e.openElements.tagIDs[l];if(a===d.LI&&n===d.LI||(a===d.DD||a===d.DT)&&(n===d.DD||n===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==d.ADDRESS&&n!==d.DIV&&n!==d.P&&e._isSpecialElement(e.openElements.items[l],n))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function Om(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=Ie.PLAINTEXT}function Dm(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1}function Pm(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);a&&(Mn(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bm(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Mn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Fm(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=H.IN_TABLE}function is(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function us(e){const t=Hu(e,Ot.TYPE);return t!=null&&t.toLowerCase()===am}function Hm(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),us(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $m(e,t){e._appendElement(t,Q.HTML),t.ackSelfClosing=!0}function Um(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qm(e,t){t.tagName=z.IMG,t.tagID=d.IMG,is(e,t)}function zm(e,t){e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ie.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=H.TEXT}function Vm(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function Gm(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function ss(e,t){e._switchToTextParsing(t,Ie.RAWTEXT)}function Ym(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===H.IN_TABLE||e.insertionMode===H.IN_CAPTION||e.insertionMode===H.IN_TABLE_BODY||e.insertionMode===H.IN_ROW||e.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT}function Wm(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function jm(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML)}function Xm(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,Q.HTML)}function Km(e,t){e._reconstructActiveFormattingElements(),Zu(t),Pn(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0}function Qm(e,t){e._reconstructActiveFormattingElements(),es(t),Pn(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0}function os(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function He(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{Mm(e,t);break}case d.A:{Pm(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{km(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{wm(e,t);break}case d.LI:case d.DD:case d.DT:{Lm(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{is(e,t);break}case d.HR:{Um(e,t);break}case d.RB:case d.RTC:{jm(e,t);break}case d.RT:case d.RP:{Xm(e,t);break}case d.PRE:case d.LISTING:{Nm(e,t);break}case d.XMP:{Vm(e,t);break}case d.SVG:{Qm(e,t);break}case d.HTML:{Sm(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{at(e,t);break}case d.BODY:{Am(e,t);break}case d.FORM:{Im(e,t);break}case d.NOBR:{Bm(e,t);break}case d.MATH:{Km(e,t);break}case d.TABLE:{Fm(e,t);break}case d.INPUT:{Hm(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{$m(e,t);break}case d.IMAGE:{qm(e,t);break}case d.BUTTON:{Dm(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{Rm(e,t);break}case d.IFRAME:{Gm(e,t);break}case d.SELECT:{Ym(e,t);break}case d.OPTION:case d.OPTGROUP:{Wm(e,t);break}case d.NOEMBED:case d.NOFRAMES:{ss(e,t);break}case d.FRAMESET:{_m(e,t);break}case d.TEXTAREA:{zm(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?ss(e,t):os(e,t);break}case d.PLAINTEXT:{Om(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:os(e,t)}}function Jm(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function Zm(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=H.AFTER_BODY,Es(e,t))}function ev(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function tv(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):a&&e.openElements.remove(a))}function av(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(z.P,d.P),e._closePElement()}function lv(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function nv(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function rv(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function iv(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function uv(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function cs(e,t){const a=t.tagName,l=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n],i=e.openElements.tagIDs[n];if(l===i&&(l!==d.UNKNOWN||e.treeAdapter.getTagName(r)===a)){e.openElements.generateImpliedEndTagsWithExclusion(l),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(r,i))break}}function fl(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Mn(e,t);break}case d.P:{av(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{ev(e,t);break}case d.LI:{lv(e);break}case d.DD:case d.DT:{nv(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{rv(e);break}case d.BR:{uv(e);break}case d.BODY:{Jm(e,t);break}case d.HTML:{Zm(e,t);break}case d.FORM:{tv(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{iv(e,t);break}case d.TEMPLATE:{Dt(e,t);break}default:cs(e,t)}}function ds(e,t){e.tmplInsertionModeStack.length>0?gs(e,t):Rn(e,t)}function sv(e,t){var a;t.tagID===d.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function ov(e,t){e._err(t,Y.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Fn(e,t){if(e.openElements.currentTagId!==void 0&&ts.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=H.IN_TABLE_TEXT,t.type){case pe.CHARACTER:{ps(e,t);break}case pe.WHITESPACE_CHARACTER:{fs(e,t);break}}else ka(e,t)}function cv(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CAPTION}function dv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_COLUMN_GROUP}function fv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,d.COLGROUP),e.insertionMode=H.IN_COLUMN_GROUP,Hn(e,t)}function pv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_TABLE_BODY}function hv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,d.TBODY),e.insertionMode=H.IN_TABLE_BODY,hl(e,t)}function bv(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function mv(e,t){us(t)?e._appendElement(t,Q.HTML):ka(e,t),t.ackSelfClosing=!0}function vv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Jt(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{hv(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{at(e,t);break}case d.COL:{fv(e,t);break}case d.FORM:{vv(e,t);break}case d.TABLE:{bv(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{pv(e,t);break}case d.INPUT:{mv(e,t);break}case d.CAPTION:{cv(e,t);break}case d.COLGROUP:{dv(e,t);break}default:ka(e,t)}}function wa(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:ka(e,t)}}function ka(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,dl(e,t),e.fosterParentingEnabled=a}function fs(e,t){e.pendingCharacterTokens.push(t)}function ps(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Na(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)ka(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const hs=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function gv(e,t){const a=t.tagID;hs.has(a)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,Jt(e,t)):He(e,t)}function Ev(e,t){const a=t.tagID;switch(a){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_TABLE,a===d.TABLE&&wa(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:fl(e,t)}}function Hn(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.COL:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{at(e,t);break}default:pl(e,t)}}function yv(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TEMPLATE:{Dt(e,t);break}case d.COL:break;default:pl(e,t)}}function pl(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=H.IN_TABLE,e._processToken(t))}function hl(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(z.TR,d.TR),e.insertionMode=H.IN_ROW,bl(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,Jt(e,t));break}default:Jt(e,t)}}function $n(e,t){const a=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE,wa(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:wa(e,t)}}function bl(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Q.HTML),e.insertionMode=H.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,hl(e,t));break}default:Jt(e,t)}}function bs(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$n(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=H.IN_TABLE_BODY,$n(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:wa(e,t)}}function Tv(e,t){const a=t.tagID;hs.has(a)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),bl(e,t)):He(e,t)}function xv(e,t){const a=t.tagID;switch(a){case d.TD:case d.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=H.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),bs(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:fl(e,t)}}function ms(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Q.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{at(e,t);break}}}function vs(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{Dt(e,t);break}}}function Cv(e,t){const a=t.tagID;a===d.CAPTION||a===d.TABLE||a===d.TBODY||a===d.TFOOT||a===d.THEAD||a===d.TR||a===d.TD||a===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ms(e,t)}function Sv(e,t){const a=t.tagID;a===d.CAPTION||a===d.TABLE||a===d.TBODY||a===d.TFOOT||a===d.THEAD||a===d.TR||a===d.TD||a===d.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):vs(e,t)}function Av(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{at(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=H.IN_TABLE,e.insertionMode=H.IN_TABLE,Jt(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,e.insertionMode=H.IN_COLUMN_GROUP,Hn(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,e.insertionMode=H.IN_TABLE_BODY,hl(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=H.IN_ROW,e.insertionMode=H.IN_ROW,bl(e,t);break}default:e.tmplInsertionModeStack[0]=H.IN_BODY,e.insertionMode=H.IN_BODY,He(e,t)}}function _v(e,t){t.tagID===d.TEMPLATE&&Dt(e,t)}function gs(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Rn(e,t)}function wv(e,t){t.tagID===d.HTML?He(e,t):ml(e,t)}function Es(e,t){var a;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=H.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const l=e.openElements.items[1];l&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(l))===null||a===void 0)&&a.endTag)&&e._setEndLocation(l,t)}}else ml(e,t)}function ml(e,t){e.insertionMode=H.IN_BODY,dl(e,t)}function kv(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.FRAMESET:{e._insertElement(t,Q.HTML);break}case d.FRAME:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{at(e,t);break}}}function Nv(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=H.AFTER_FRAMESET))}function Iv(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.NOFRAMES:{at(e,t);break}}}function Lv(e,t){t.tagID===d.HTML&&(e.insertionMode=H.AFTER_AFTER_FRAMESET)}function Ov(e,t){t.tagID===d.HTML?He(e,t):vl(e,t)}function vl(e,t){e.insertionMode=H.IN_BODY,dl(e,t)}function Dv(e,t){switch(t.tagID){case d.HTML:{He(e,t);break}case d.NOFRAMES:{at(e,t);break}}}function Pv(e,t){t.chars=Ae,e._insertCharacters(t)}function Mv(e,t){e._insertCharacters(t),e.framesetOk=!1}function ys(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Bv(e,t){if(Q0(t))ys(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),l=e.treeAdapter.getNamespaceURI(a);l===Q.MATHML?Zu(t):l===Q.SVG&&(J0(t),es(t)),Pn(t),t.selfClosing?e._appendElement(t,l):e._insertElement(t,l),t.ackSelfClosing=!0}}function Rv(e,t){if(t.tagID===d.P||t.tagID===d.BR){ys(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){const l=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(l)===Q.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(l);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(a);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const Fv=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hv=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ts={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function xs(e,t){const a=Xv(e),l=Pu("type",{handlers:{root:$v,element:Uv,text:qv,comment:Ss,doctype:zv,raw:Gv},unknown:Yv}),n={parser:a?new ls(Ts):ls.getFragmentParser(void 0,Ts),handle(u){l(u,n)},stitches:!1,options:t||{}};l(e,n),Zt(n,it());const r=a?n.parser.document:n.parser.getFragment(),i=Kb(r,{file:n.options.file});return n.stitches&&il(i,"comment",function(u,s,o){const c=u;if(c.value.stitch&&o&&s!==void 0){const f=o.children;return f[s]=c.value.stitch,s}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function Cs(e,t){let a=-1;if(e)for(;++a<e.length;)t.handle(e[a])}function $v(e,t){Cs(e.children,t)}function Uv(e,t){Wv(e,t),Cs(e.children,t),jv(e,t)}function qv(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const a={type:pe.CHARACTER,chars:e.value,location:Ia(e)};Zt(t,it(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function zv(e,t){const a={type:pe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ia(e)};Zt(t,it(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function Vv(e,t){t.stitches=!0;const a=Kv(e);if("children"in e&&"children"in a){const l=xs({type:"root",children:e.children},t.options);a.children=l.children}Ss({type:"comment",value:{stitch:a}},t)}function Ss(e,t){const a=e.value,l={type:pe.COMMENT,data:a,location:Ia(e)};Zt(t,it(e)),t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken)}function Gv(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,As(t,it(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Fv,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const a=t.parser.tokenizer._consume();t.parser.tokenizer._callState(a)}}function Yv(e,t){const a=e;if(t.options.passThrough&&t.options.passThrough.includes(a.type))Vv(a,t);else{let l="";throw Hv.has(a.type)&&(l=". 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 `"+a.type+"` node"+l)}}function Zt(e,t){As(e,t);const a=e.parser.tokenizer.currentCharacterToken;a&&a.location&&(a.location.endLine=e.parser.tokenizer.preprocessor.line,a.location.endCol=e.parser.tokenizer.preprocessor.col+1,a.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=a,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=Ie.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 As(e,t){if(t&&t.offset!==void 0){const a={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=a}}function Wv(e,t){const a=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,it(e));const l=t.parser.openElements.current;let n="namespaceURI"in l?l.namespaceURI:Lt.html;n===Lt.html&&a==="svg"&&(n=Lt.svg);const r=t0({...e,children:[]},{space:n===Lt.svg?"svg":"html"}),i={type:pe.START_TAG,tagName:a,tagID:Qt(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in r?r.attrs:[],location:Ia(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=a}function jv(e,t){const a=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&o0.includes(a)||t.parser.tokenizer.state===Ie.PLAINTEXT)return;Zt(t,Ja(e));const l={type:pe.END_TAG,tagName:a,tagID:Qt(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ia(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),a===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ie.RCDATA||t.parser.tokenizer.state===Ie.RAWTEXT||t.parser.tokenizer.state===Ie.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ie.DATA)}function Xv(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ia(e){const t=it(e)||{line:void 0,column:void 0,offset:void 0},a=Ja(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:a.line,endCol:a.column,endOffset:a.offset}}function Kv(e){return"children"in e?It({...e,children:[]}):It(e)}function Un(e){return function(t,a){return xs(t,{...e,file:a})}}const Pt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],ea={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Pt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Pt],h2:[["className","sr-only"]],img:[...Pt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Pt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Pt],table:[...Pt],ul:[...Pt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},St={}.hasOwnProperty;function Qv(e,t){let a={type:"root",children:[]};const l={schema:t?{...ea,...t}:ea,stack:[]},n=_s(l,e);return n&&(Array.isArray(n)?n.length===1?a=n[0]:a.children=n:a=n),a}function _s(e,t){if(t&&typeof t=="object"){const a=t;switch(typeof a.type=="string"?a.type:""){case"comment":return Jv(e,a);case"doctype":return Zv(e,a);case"element":return eg(e,a);case"root":return tg(e,a);case"text":return ag(e,a)}}}function Jv(e,t){if(e.schema.allowComments){const a=typeof t.value=="string"?t.value:"",l=a.indexOf("-->"),r={type:"comment",value:l<0?a:a.slice(0,l)};return La(r,t),r}}function Zv(e,t){if(e.schema.allowDoctypes){const a={type:"doctype"};return La(a,t),a}}function eg(e,t){const a=typeof t.tagName=="string"?t.tagName:"";e.stack.push(a);const l=ws(e,t.children),n=lg(e,t.properties);e.stack.pop();let r=!1;if(a&&a!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(a))&&(r=!0,e.schema.ancestors&&St.call(e.schema.ancestors,a))){const u=e.schema.ancestors[a];let s=-1;for(r=!1;++s<u.length;)e.stack.includes(u[s])&&(r=!0)}if(!r)return e.schema.strip&&!e.schema.strip.includes(a)?l:void 0;const i={type:"element",tagName:a,properties:n,children:l};return La(i,t),i}function tg(e,t){const l={type:"root",children:ws(e,t.children)};return La(l,t),l}function ag(e,t){const l={type:"text",value:typeof t.value=="string"?t.value:""};return La(l,t),l}function ws(e,t){const a=[];if(Array.isArray(t)){const l=t;let n=-1;for(;++n<l.length;){const r=_s(e,l[n]);r&&(Array.isArray(r)?a.push(...r):a.push(r))}}return a}function lg(e,t){const a=e.stack[e.stack.length-1],l=e.schema.attributes,n=e.schema.required,r=l&&St.call(l,a)?l[a]:void 0,i=l&&St.call(l,"*")?l["*"]:void 0,u=t&&typeof t=="object"?t:{},s={};let o;for(o in u)if(St.call(u,o)){const c=u[o];let f=ks(e,Is(r,o),o,c);f==null&&(f=ks(e,Is(i,o),o,c)),f!=null&&(s[o]=f)}if(n&&St.call(n,a)){const c=n[a];for(o in c)St.call(c,o)&&!St.call(s,o)&&(s[o]=c[o])}return s}function ks(e,t,a,l){return t?Array.isArray(l)?ng(e,t,a,l):Ns(e,t,a,l):void 0}function ng(e,t,a,l){let n=-1;const r=[];for(;++n<l.length;){const i=Ns(e,t,a,l[n]);(typeof i=="number"||typeof i=="string")&&r.push(i)}return r}function Ns(e,t,a,l){if(!(typeof l!="boolean"&&typeof l!="number"&&typeof l!="string")&&rg(e,a,l)){if(typeof t=="object"&&t.length>1){let n=!1,r=0;for(;++r<t.length;){const i=t[r];if(i&&typeof i=="object"&&"flags"in i){if(i.test(String(l))){n=!0;break}}else if(i===l){n=!0;break}}if(!n)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(a)?e.schema.clobberPrefix+l:l}}function rg(e,t,a){const l=e.schema.protocols&&St.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!l||l.length===0)return!0;const n=String(a),r=n.indexOf(":"),i=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");if(r<0||s>-1&&r>s||i>-1&&r>i||u>-1&&r>u)return!0;let o=-1;for(;++o<l.length;){const c=l[o];if(r===c.length&&n.slice(0,c.length)===c)return!0}return!1}function La(e,t){const a=Ci(t);t.data&&(e.data=It(t.data)),a&&(e.position=a)}function Is(e,t){let a,l=-1;if(e)for(;++l<e.length;){const n=e[l],r=typeof n=="string"?n:n[0];if(r===t)return n;r==="data*"&&(a=n)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return a}function qn(e){return function(t){return Qv(t,e)}}function Ls(e,t){const a=String(e);if(typeof t!="string")throw new TypeError("Expected character");let l=0,n=a.indexOf(t);for(;n!==-1;)l++,n=a.indexOf(t,n+t.length);return l}const ig=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Os={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ds(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function ug(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function sg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ps(e){return sg(e)||Ds(e)}const og=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function zn(e,t){const a=t||{},l=typeof a.additional=="string"?a.additional.charCodeAt(0):a.additional,n=[];let r=0,i=-1,u="",s,o;a.position&&("start"in a.position||"indent"in a.position?(o=a.position.indent,s=a.position.start):s=a.position);let c=(s?s.line:0)||1,f=(s?s.column:0)||1,m=y(),p;for(r--;++r<=e.length;)if(p===10&&(f=(o?o[i]:0)||1),p=e.charCodeAt(r),p===38){const v=e.charCodeAt(r+1);if(v===9||v===10||v===12||v===32||v===38||v===60||Number.isNaN(v)||l&&v===l){u+=String.fromCharCode(p),f++;continue}const g=r+1;let E=g,_=g,w;if(v===35){_=++E;const P=e.charCodeAt(_);P===88||P===120?(w="hexadecimal",_=++E):w="decimal"}else w="named";let C="",M="",S="";const T=w==="named"?Ps:w==="decimal"?Ds:ug;for(_--;++_<=e.length;){const P=e.charCodeAt(_);if(!T(P))break;S+=String.fromCharCode(P),w==="named"&&ig.includes(S)&&(C=S,M=pa(S))}let A=e.charCodeAt(_)===59;if(A){_++;const P=w==="named"?pa(S):!1;P&&(C=S,M=P)}let k=1+_-g,D="";if(!(!A&&a.nonTerminated===!1))if(!S)w!=="named"&&h(4,k);else if(w==="named"){if(A&&!M)h(5,1);else if(C!==S&&(_=E+C.length,k=1+_-E,A=!1),!A){const P=C?1:3;if(a.attribute){const N=e.charCodeAt(_);N===61?(h(P,k),M=""):Ps(N)?M="":h(P,k)}else h(P,k)}D=M}else{A||h(2,k);let P=Number.parseInt(S,w==="hexadecimal"?16:10);if(cg(P))h(7,k),D="�";else if(P in Os)h(6,k),D=Os[P];else{let N="";dg(P)&&h(6,k),P>65535&&(P-=65536,N+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),D=N+String.fromCharCode(P)}}if(D){b(),m=y(),r=_-1,f+=_-g+1,n.push(D);const P=y();P.offset++,a.reference&&a.reference.call(a.referenceContext||void 0,D,{start:m,end:P},e.slice(g-1,_)),m=P}else S=e.slice(g-1,_),u+=S,f+=S.length,r=_-1}else p===10&&(c++,i++,f=0),Number.isNaN(p)?b():(u+=String.fromCharCode(p),f++);return n.join("");function y(){return{line:c,column:f,offset:r+((s?s.offset:0)||0)}}function h(v,g){let E;a.warning&&(E=y(),E.column+=g,E.offset+=g,a.warning.call(a.warningContext||void 0,og[v],E,v))}function b(){u&&(n.push(u),a.text&&a.text.call(a.textContext||void 0,u,{start:m,end:y()}),u="")}}function cg(e){return e>=55296&&e<=57343||e>1114111}function dg(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const fg=/["&'<>`]/g,pg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bg=/[|\\{}()[\]^$+*?.]/g,Ms=new WeakMap;function mg(e,t){if(e=e.replace(t.subset?vg(t.subset):fg,l),t.subset||t.escapeOnly)return e;return e.replace(pg,a).replace(hg,l);function a(n,r,i){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,i.charCodeAt(r+2),t)}function l(n,r,i){return t.format(n.charCodeAt(0),i.charCodeAt(r+1),t)}}function vg(e){let t=Ms.get(e);return t||(t=gg(e),Ms.set(e,t)),t}function gg(e){const t=[];let a=-1;for(;++a<e.length;)t.push(e[a].replace(bg,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Eg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yg(e,t){return mg(e,Object.assign({format:Eg},t))}const Tg={}.hasOwnProperty,xg={},Bs=/^[^\t\n\r "#'.<=>`}]+$/,Cg=/^[^\t\n\r "'<=>`}]+$/;function Sg(){return{canContainEols:["textDirective"],enter:{directiveContainer:_g,directiveContainerAttributes:Yn,directiveContainerLabel:Ng,directiveLeaf:wg,directiveLeafAttributes:Yn,directiveText:kg,directiveTextAttributes:Yn},exit:{directiveContainer:Jn,directiveContainerAttributeClassValue:jn,directiveContainerAttributeIdValue:Wn,directiveContainerAttributeName:Kn,directiveContainerAttributeValue:Xn,directiveContainerAttributes:Qn,directiveContainerLabel:Ig,directiveContainerName:Gn,directiveLeaf:Jn,directiveLeafAttributeClassValue:jn,directiveLeafAttributeIdValue:Wn,directiveLeafAttributeName:Kn,directiveLeafAttributeValue:Xn,directiveLeafAttributes:Qn,directiveLeafName:Gn,directiveText:Jn,directiveTextAttributeClassValue:jn,directiveTextAttributeIdValue:Wn,directiveTextAttributeName:Kn,directiveTextAttributeValue:Xn,directiveTextAttributes:Qn,directiveTextName:Gn}}}function Ag(e){const t=xg;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return a.peek=Lg,{handlers:{containerDirective:a,leafDirective:a,textDirective:a},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
|
|
57
|
+
`,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function a(r,i,u,s){const o=u.createTracker(s),c=Og(r),f=u.enter(r.type);let m=o.move(c+(r.name||"")),p;if(r.type==="containerDirective"){const y=(r.children||[])[0];p=Rs(y)?y:void 0}else p=r;if(p&&p.children&&p.children.length>0){const y=u.enter("label"),h=`${r.type}Label`,b=u.enter(h);m+=o.move("["),m+=o.move(u.containerPhrasing(p,{...o.current(),before:m,after:"]"})),m+=o.move("]"),b(),y()}if(m+=o.move(l(r,u)),r.type==="containerDirective"){const y=(r.children||[])[0];let h=r;Rs(y)&&(h=Object.assign({},r,{children:r.children.slice(1)})),h&&h.children&&h.children.length>0&&(m+=o.move(`
|
|
58
|
+
`),m+=o.move(u.containerFlow(h,o.current()))),m+=o.move(`
|
|
59
|
+
`+c)}return f(),m}function l(r,i){const u=r.attributes||{},s=[];let o,c,f,m;for(m in u)if(Tg.call(u,m)&&u[m]!==void 0&&u[m]!==null){const p=String(u[m]);if(m==="id")f=t.preferShortcut!==!1&&Bs.test(p)?"#"+p:n("id",p,r,i);else if(m==="class"){const y=p.split(/[\t\n\r ]+/g),h=[],b=[];let v=-1;for(;++v<y.length;)(t.preferShortcut!==!1&&Bs.test(y[v])?b:h).push(y[v]);o=h.length>0?n("class",h.join(" "),r,i):"",c=b.length>0?"."+b.join("."):""}else s.push(n(m,p,r,i))}return o&&s.unshift(o),c&&s.unshift(c),f&&s.unshift(f),s.length>0?"{"+s.join(" ")+"}":""}function n(r,i,u,s){if(t.collapseEmptyAttributes!==!1&&!i)return r;if(t.preferUnquoted&&Cg.test(i))return r+"="+i;const o=t.quote||s.options.quote||'"',c=o==='"'?"'":'"',f=t.quoteSmart&&Ls(i,o)>Ls(i,c)?c:o,m=u.type==="textDirective"?[f]:[f,`
|
|
60
|
+
`,"\r"];return r+"="+f+yg(i,{subset:m})+f}}function _g(e){Vn.call(this,"containerDirective",e)}function wg(e){Vn.call(this,"leafDirective",e)}function kg(e){Vn.call(this,"textDirective",e)}function Vn(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Gn(e){const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.name=this.sliceSerialize(e)}function Ng(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function Ig(e){this.exit(e)}function Yn(){this.data.directiveAttributes=[],this.buffer()}function Wn(e){this.data.directiveAttributes.push(["id",zn(this.sliceSerialize(e),{attribute:!0})])}function jn(e){this.data.directiveAttributes.push(["class",zn(this.sliceSerialize(e),{attribute:!0})])}function Xn(e){const t=this.data.directiveAttributes;t[t.length-1][1]=zn(this.sliceSerialize(e),{attribute:!0})}function Kn(e){this.data.directiveAttributes.push([this.sliceSerialize(e),""])}function Qn(){const e=this.data.directiveAttributes,t={};let a=-1;for(;++a<e.length;){const n=e[a];n[0]==="class"&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.data.directiveAttributes=void 0,this.resume();const l=this.stack[this.stack.length-1];l.type==="containerDirective"||l.type==="leafDirective"||l.type,l.attributes=t}function Jn(e){this.exit(e)}function Lg(){return":"}function Rs(e){return!!(e&&e.type==="paragraph"&&e.data&&e.data.directiveLabel)}function Og(e){let t=0;return e.type==="containerDirective"?(bu(e,function(a,l){if(a.type==="containerDirective"){let n=l.length,r=0;for(;n--;)l[n].type==="containerDirective"&&r++;r>t&&(t=r)}}),t+=3):e.type==="leafDirective"?t=2:t=1,":".repeat(t)}function Zn(e,t,a,l,n,r,i,u,s,o,c,f,m,p,y){let h,b;return v;function v(x){return e.enter(l),e.enter(n),e.consume(x),e.exit(n),g}function g(x){return x===35?(h=i,E(x)):x===46?(h=u,E(x)):y&&me(x)?ve(e,g,"whitespace")(x):!y&&Ne(x)?pt(e,g)(x):x===null||re(x)||ba(x)||ha(x)&&x!==45&&x!==95?N(x):(e.enter(r),e.enter(s),e.consume(x),C)}function E(x){const F=h+"Marker";return e.enter(r),e.enter(h),e.enter(F),e.consume(x),e.exit(F),_}function _(x){if(x===null||x===34||x===35||x===39||x===46||x===60||x===61||x===62||x===96||x===125||Ne(x))return a(x);const F=h+"Value";return e.enter(F),e.consume(x),w}function w(x){if(x===null||x===34||x===39||x===60||x===61||x===62||x===96)return a(x);if(x===35||x===46||x===125||Ne(x)){const F=h+"Value";return e.exit(F),e.exit(h),e.exit(r),g(x)}return e.consume(x),w}function C(x){return x===null||re(x)||ba(x)||ha(x)&&x!==45&&x!==46&&x!==58&&x!==95?(e.exit(s),y&&me(x)?ve(e,M,"whitespace")(x):!y&&Ne(x)?pt(e,M)(x):M(x)):(e.consume(x),C)}function M(x){return x===61?(e.enter(o),e.consume(x),e.exit(o),S):(e.exit(r),g(x))}function S(x){return x===null||x===60||x===61||x===62||x===96||x===125||y&&re(x)?a(x):x===34||x===39?(e.enter(c),e.enter(m),e.consume(x),e.exit(m),b=x,A):y&&me(x)?ve(e,S,"whitespace")(x):!y&&Ne(x)?pt(e,S)(x):(e.enter(f),e.enter(p),e.consume(x),b=void 0,T)}function T(x){return x===null||x===34||x===39||x===60||x===61||x===62||x===96?a(x):x===125||Ne(x)?(e.exit(p),e.exit(f),e.exit(r),g(x)):(e.consume(x),T)}function A(x){return x===b?(e.enter(m),e.consume(x),e.exit(m),e.exit(c),e.exit(r),P):(e.enter(f),k(x))}function k(x){return x===b?(e.exit(f),A(x)):x===null?a(x):re(x)?y?a(x):pt(e,k)(x):(e.enter(p),e.consume(x),D)}function D(x){return x===b||x===null||re(x)?(e.exit(p),k(x)):(e.consume(x),D)}function P(x){return x===125||Ne(x)?g(x):N(x)}function N(x){return x===125?(e.enter(n),e.consume(x),e.exit(n),e.exit(l),t):a(x)}}function er(e,t,a,l,n,r,i){let u=0,s=0,o;return c;function c(b){return e.enter(l),e.enter(n),e.consume(b),e.exit(n),f}function f(b){return b===93?(e.enter(n),e.consume(b),e.exit(n),e.exit(l),t):(e.enter(r),m(b))}function m(b){if(b===93&&!s)return h(b);const v=e.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:o});return o&&(o.next=v),o=v,p(b)}function p(b){return b===null||u>999||b===91&&++s>32?a(b):b===93&&!s--?(e.exit("chunkText"),h(b)):re(b)?i?a(b):(e.consume(b),e.exit("chunkText"),m):(e.consume(b),b===92?y:p)}function y(b){return b===91||b===92||b===93?(e.consume(b),u++,p):p(b)}function h(b){return e.exit(r),e.enter(n),e.consume(b),e.exit(n),e.exit(l),t}}function tr(e,t,a,l){const n=this;return r;function r(u){return u===null||re(u)||ha(u)||ba(u)?a(u):(e.enter(l),e.consume(u),i)}function i(u){return u===null||re(u)||ba(u)||ha(u)&&u!==45&&u!==95?(e.exit(l),n.previous===45||n.previous===95?a(u):t(u)):(e.consume(u),i)}}const Dg={tokenize:Bg,concrete:!0},Pg={tokenize:Rg,partial:!0},Mg={tokenize:Fg,partial:!0},gl={tokenize:Hg,partial:!0};function Bg(e,t,a){const l=this,n=l.events[l.events.length-1],r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let i=0,u;return s;function s(T){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),o(T)}function o(T){return T===58?(e.consume(T),i++,o):i<3?a(T):(e.exit("directiveContainerSequence"),tr.call(l,e,c,a,"directiveContainerName")(T))}function c(T){return T===91?e.attempt(Pg,f,f)(T):f(T)}function f(T){return T===123?e.attempt(Mg,m,m)(T):m(T)}function m(T){return ve(e,p,"whitespace")(T)}function p(T){return e.exit("directiveContainerFence"),T===null?M(T):re(T)?l.interrupt?t(T):e.attempt(gl,y,M)(T):a(T)}function y(T){return T===null?M(T):re(T)?e.check(gl,E,M)(T):(e.enter("directiveContainerContent"),h(T))}function h(T){return e.attempt({tokenize:S,partial:!0},C,r?ve(e,b,"linePrefix",r+1):b)(T)}function b(T){return T===null?C(T):re(T)?e.check(gl,g,C)(T):g(T)}function v(T){if(T===null){const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,C(T)}return re(T)?e.check(gl,_,w)(T):(e.consume(T),v)}function g(T){const A=e.enter("chunkDocument",{contentType:"document",previous:u});return u&&(u.next=A),u=A,v(T)}function E(T){return e.enter("directiveContainerContent"),h(T)}function _(T){e.consume(T);const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,h}function w(T){const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,C(T)}function C(T){return e.exit("directiveContainerContent"),M(T)}function M(T){return e.exit("directiveContainer"),t(T)}function S(T,A,k){let D=0;return ve(T,P,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function P(F){return T.enter("directiveContainerFence"),T.enter("directiveContainerSequence"),N(F)}function N(F){return F===58?(T.consume(F),D++,N):D<i?k(F):(T.exit("directiveContainerSequence"),ve(T,x,"whitespace")(F))}function x(F){return F===null||re(F)?(T.exit("directiveContainerFence"),A(F)):k(F)}}}function Rg(e,t,a){return er(e,t,a,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function Fg(e,t,a){return Zn(e,t,a,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function Hg(e,t,a){const l=this;return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r}function r(i){return l.parser.lazy[l.now().line]?a(i):t(i)}}const $g={tokenize:zg},Ug={tokenize:Vg,partial:!0},qg={tokenize:Gg,partial:!0};function zg(e,t,a){const l=this;return n;function n(c){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(c),r}function r(c){return c===58?(e.consume(c),e.exit("directiveLeafSequence"),tr.call(l,e,i,a,"directiveLeafName")):a(c)}function i(c){return c===91?e.attempt(Ug,u,u)(c):u(c)}function u(c){return c===123?e.attempt(qg,s,s)(c):s(c)}function s(c){return ve(e,o,"whitespace")(c)}function o(c){return c===null||re(c)?(e.exit("directiveLeaf"),t(c)):a(c)}}function Vg(e,t,a){return er(e,t,a,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function Gg(e,t,a){return Zn(e,t,a,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const Yg={tokenize:Kg,previous:Xg},Wg={tokenize:Qg,partial:!0},jg={tokenize:Jg,partial:!0};function Xg(e){return e!==58||this.events[this.events.length-1][1].type==="characterEscape"}function Kg(e,t,a){const l=this;return n;function n(s){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(s),e.exit("directiveTextMarker"),tr.call(l,e,r,a,"directiveTextName")}function r(s){return s===58?a(s):s===91?e.attempt(Wg,i,i)(s):i(s)}function i(s){return s===123?e.attempt(jg,u,u)(s):u(s)}function u(s){return e.exit("directiveText"),t(s)}}function Qg(e,t,a){return er(e,t,a,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function Jg(e,t,a){return Zn(e,t,a,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function Zg(){return{text:{58:Yg},flow:{58:[Dg,$g]}}}function ar(){const t=this.data(),a=t.micromarkExtensions||(t.micromarkExtensions=[]),l=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),n=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);a.push(Zg()),l.push(Sg()),n.push(Ag())}const lr={...ea,attributes:{...ea.attributes||{},span:[...(ea.attributes||{}).span||[],"style"],font:[...(ea.attributes||{}).font||[],"color"]}},nr=()=>e=>{il(e,t=>{const a=t;if(!a||a.type!=="textDirective"&&a.type!=="leafDirective"&&a.type!=="containerDirective"||a.name!=="color")return;const l=a.attributes||{},n=l.hex??l.color??l.value,r=typeof n=="string"?n.trim():"",i=/^#([0-9a-fA-F]{6})$/.test(r)?r:"#7C3AED",u=l.bold,o=`${u===!0||u==="true"||u===1||u==="1"?"font-weight:700;":""}color:${i};`;a.data=a.data||{},a.data.hName="span",a.data.hProperties={style:o}})},e1=e=>{const t=(e??"").trim();if(!t)return null;if(!(t.startsWith("{")&&t.endsWith("}")))return{kind:"text",text:t};try{const a=JSON.parse(t);if(!a||typeof a!="object")return{kind:"text",text:t};const l=a;return l.type==="steps"&&typeof l.title=="string"&&Array.isArray(l.images)&&Array.isArray(l.stepDescriptions)?{kind:"steps",data:a}:{kind:"text",text:t}}catch{return{kind:"text",text:t}}},t1=({config:e,files:t,debugTooltipSticky:a=!1,videoState:l})=>{const[n,r]=I.useState(null),[i,u]=I.useState(!1),s=I.useRef(null),o=I.useRef(null),c=I.useRef(null),f=200,m=200,p=I.useCallback(()=>{s.current&&(window.clearTimeout(s.current),s.current=null),o.current&&(window.clearTimeout(o.current),o.current=null),c.current!==null&&(window.cancelAnimationFrame(c.current),c.current=null)},[]),y=I.useCallback(()=>{p(),u(!0)},[p]),h=I.useCallback(k=>{if(p(),k){r(k),u(!1),c.current=window.requestAnimationFrame(()=>{c.current=null,u(!0)});return}s.current=window.setTimeout(()=>{s.current=null,u(!1),o.current=window.setTimeout(()=>{r(null),o.current=null},m)},f)},[p]);I.useEffect(()=>()=>{p()},[p]);const[b,v]=I.useState(0),g=I.useRef(null),[E,_]=I.useState(!1),w=I.useRef(new Map),[C,M]=I.useState(357),[S,T]=I.useState("bottom");return I.useEffect(()=>{v(0),_(!1),T("bottom")},[n?.key,n?.type]),I.useEffect(()=>{const k=w.current,D=new Set,P=N=>{if(!N||D.has(N)||k.has(N))return;D.add(N);const x=new window.Image;x.decoding="async",x.onload=()=>{const F=x.naturalWidth||x.width||0,U=x.naturalHeight||x.height||0;F>0&&U>0&&k.set(N,`${F} / ${U}`)},x.src=N};e.forEach(N=>{const x=N.tooltip;if(!x)return;const U=typeof x=="string"?(()=>{try{return JSON.parse(x)}catch{return null}})():x;if(!U||U.type!=="steps")return;const $=U.images;Array.isArray($)&&$.forEach(G=>{typeof G=="string"&&P(G)})})},[e]),I.useLayoutEffect(()=>{if(!i)return;if(n?.type!=="upload"&&n?.type!=="tag"&&n?.type!=="variable"){M(null);return}const k=requestAnimationFrame(()=>{const D=document.querySelector(".rte-steps-tooltip"),P=document.querySelector(".rte-steps-tooltip-title"),N=document.querySelector(".rte-steps-tooltip-step-badge");if(!D||!P||!N)return;const x=window.getComputedStyle(D),F=Number.parseFloat(x.paddingLeft)||0,U=Number.parseFloat(x.paddingRight)||0,$=Math.ceil(P.getBoundingClientRect().width||0),G=Math.ceil(N.getBoundingClientRect().width||0),W=$+16+G+Math.ceil(F+U),V=357,R=Math.max(240,Math.floor(window.innerWidth-32));M(Math.min(Math.max(W,V),R));const K=n?.anchorEl;if(K){const ne=K.getBoundingClientRect(),ae=D.getBoundingClientRect(),X=Math.ceil(ae.height||0),le=Math.max(0,Math.floor(window.innerHeight-ne.bottom)),ie=Math.max(0,Math.floor(ne.top)),_e=le<X+12&&ie>le;T(_e?"top":"bottom")}});return()=>cancelAnimationFrame(k)},[i,n?.key,n?.type,b,n?.anchorEl]),I.useEffect(()=>{if(!a)return;const k=D=>{D.key==="Escape"&&h(null)};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[a,h]),{tooltipPortal:n?.anchorEl?(()=>{if(!document.body.contains(n.anchorEl))return null;let k="",D={background:"#fff",padding:12,borderRadius:8,border:"0.5px solid #E5E5E5",boxShadow:"0 4px 20px 0 rgba(129, 124, 143, 0.2)"},P=!1;const N=U=>{const $=e1(U);if(!$)return null;if($.kind==="text")return{node:$.text,steps:!1};const G=$.data,L=Math.max(0,G.images?.length||0);if(L<=0)return{node:G.title,steps:!1};const W=Math.min(Math.max(b,0),L-1),V=Array.isArray(G.stepDescriptions)&&G.stepDescriptions[W]||"",R=(G.disclaimer||"").trim(),K=Array.isArray(G.images)?G.images[W]:void 0,ne=typeof K=="string"?w.current.get(K):void 0;return{node:q.jsxs("div",{className:"rte-steps-tooltip",style:C?{width:`${C}px`}:void 0,onMouseEnter:()=>y(),onMouseLeave:()=>{a||h(null)},onClick:X=>{X.preventDefault(),X.stopPropagation()},children:[q.jsxs("div",{className:"rte-steps-tooltip-header",children:[q.jsx("div",{className:"rte-steps-tooltip-title",children:G.title}),q.jsxs("div",{className:"rte-steps-tooltip-step-badge",children:["步骤 ",W+1,"/",L]})]}),G.description?q.jsx("div",{className:"rte-steps-tooltip-desc",children:q.jsx(wn,{remarkPlugins:[ar,nr],rehypePlugins:[Un,[qn,lr]],components:{p:({children:X})=>q.jsx("p",{style:{margin:0},children:X})},children:G.description})}):null,q.jsx("div",{className:"rte-steps-tooltip-media",style:ne?{"--rte-steps-tooltip-aspect":ne}:void 0,children:q.jsx(ce.Image.PreviewGroup,{preview:{visible:E,current:W,onVisibleChange:X=>_(X),onChange:X=>{const le=Math.min(Math.max(X,0),L-1);v(le),g.current?.slideTo(le)}},children:q.jsx(Zr,{className:"rte-steps-tooltip-swiper",modules:[Md,Bd],navigation:!0,pagination:{clickable:!0},initialSlide:W,onSwiper:X=>{g.current=X},onSlideChange:X=>v(X.activeIndex),children:G.images.map((X,le)=>q.jsx(ei,{children:q.jsx(ce.Image,{className:"rte-steps-tooltip-img",src:X,alt:`step-${le+1}`,width:"100%",style:{width:"100%",display:"block"},imgStyle:{width:"100%",height:"100%",objectFit:"contain",display:"block"},preview:{mask:null},onClick:()=>{v(le),g.current?.slideTo(le),_(!0)}})},`${X}-${le}`))},`${n.key}-${n.type}`)})}),q.jsx("div",{className:"rte-steps-tooltip-footer",children:q.jsx("div",{className:"rte-steps-tooltip-step-text",children:q.jsx(wn,{remarkPlugins:[ar,nr],rehypePlugins:[Un,[qn,lr]],components:{p:({children:X})=>q.jsx("p",{style:{margin:0},children:X})},children:V})})}),R?q.jsxs("div",{className:"rte-steps-tooltip-disclaimer",children:[q.jsx("span",{className:"rte-steps-tooltip-disclaimer-icon",children:"⚠"}),q.jsx("div",{className:"rte-steps-tooltip-disclaimer-text",children:q.jsx(wn,{remarkPlugins:[ar,nr],rehypePlugins:[Un,[qn,lr]],components:{p:({children:X})=>q.jsx("p",{style:{margin:0},children:X})},children:R})})]}):null]}),steps:!0}};if(n.type==="upload"){const U=n.anchorEl.dataset.tooltip,$=N(U);if($)k=$.node,P=$.steps;else{const G=e.find(W=>W.type==="upload"&&W.key===n.key),L=N(typeof G?.tooltip=="string"?G?.tooltip:G?.tooltip?JSON.stringify(G.tooltip):"");k=L?.node||"",P=L?.steps||!1}}else if(n.type==="tag"){const U=n.anchorEl.dataset.tooltip,$=N(U);k=$?.node||"",P=$?.steps||!1}else if(n.type==="upload-label")k=n.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName||n.anchorEl.dataset.fileName||"";else if(n.type==="variable"){const U=n.anchorEl.dataset.tooltip,$=N(U);k=$?.node||"",P=$?.steps||!1}else if(n.type==="upload-preview"){const U=t[n.key];let $=null,G=!1;typeof U=="string"?$=U:U instanceof File&&(U.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(U.name||""))&&($=URL.createObjectURL(U),G=!0),$?(k=q.jsx("div",{className:"rte-upload-preview",children:q.jsx("img",{className:"rte-upload-preview-img",src:$,alt:"preview"})}),D={background:"#fff",padding:0,borderRadius:4,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"},G&&setTimeout(()=>URL.revokeObjectURL($),1e3)):k=""}else if(n.type==="video-preview"){const U=l?.[n.key];U?.status==="success"&&U.videoUrl?(k=q.jsx("div",{className:"rte-video-preview",children:q.jsx("video",{src:U.videoUrl,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{width:120,height:120,borderRadius:8,objectFit:"cover"}})}),D={background:"#fff",padding:0,borderRadius:8,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"}):k=""}if(!k)return null;P&&(D={background:"#fff",padding:0,borderRadius:12,boxShadow:"0 4px 20px 0 rgba(129, 124, 143, 0.2)",border:"0.5px solid #E5E5E5"});const x="#0A0A0A",F=S;return $t.createPortal(q.jsx(ce.Tooltip,{arrow:!1,zIndex:999,destroyTooltipOnHide:!1,autoAdjustOverflow:!P,align:P?{points:F==="top"?["bc","tc"]:["tc","bc"],offset:F==="top"?[0,-4]:[0,4]}:void 0,title:n.type==="upload-preview"?q.jsx("div",{onMouseEnter:()=>y(),onMouseLeave:()=>{a||h(null)},onClick:U=>{U.preventDefault(),U.stopPropagation()},children:k}):P?k:q.jsx("div",{style:{maxWidth:"200px",fontSize:"12px",color:x},onMouseEnter:()=>y(),onMouseLeave:()=>{a||h(null)},onClick:U=>{U.preventDefault(),U.stopPropagation()},children:k}),open:i,placement:P?F==="top"?"top":"bottom":n.type==="upload-preview"?"topLeft":"top",getPopupContainer:()=>document.body,overlayInnerStyle:D,overlayClassName:"rte-tooltip-overlay",children:q.jsx("div",{style:{position:"fixed",left:`${n.anchorEl.getBoundingClientRect().left}px`,top:`${n.anchorEl.getBoundingClientRect().top-(n.type==="upload-label"?4:0)}px`,width:`${n.anchorEl.offsetWidth}px`,height:`${n.anchorEl.offsetHeight}px`,pointerEvents:"none"}})}),document.body)})():null,setPopoverVisible:h}},a1=(e,t)=>{const a=t.hideButtons==="hideTagClose",l=t.lockStructure||a?"":'<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>',n=t.lockStructure?' data-locked="true"':"",r=Je(e.tooltip),i=r?` data-tooltip="${ue(r)}" data-tag-key="${e.key||""}"`:"";return`<span contenteditable="false" class="tag-node group"${n}${i}><span class="tag-label">${e.text}</span>${l}</span>`},l1=(e,t)=>{const a=t?' data-locked="true" contenteditable="false"':' contenteditable="false"',n=(e.text??"").replace(/\n/g,"<br/>");return e.className?`<span data-type="text" class="${e.className}"${a}>${n}</span>`:t?`<span data-type="text"${a}>${n}</span>`:`<span data-type="text" contenteditable="false">${n}</span>`},n1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,Fs=(e,t)=>{const l=(e.key?t[e.key]:void 0)||e.text||"",n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Je(e.tooltip),i=r?` data-tooltip="${ue(r)}" data-variable-key="${e.key||""}"`:"";if(e.useAntd===!0){const m=l?encodeURIComponent(l):"",p=ue(e.placeholder||""),y=e.allowNewline===!1?' data-allow-newline="0"':' data-allow-newline="1"',h=qa(l||e.placeholder||""),b=r&&!l?18:0;return`<span contenteditable="false" data-type="variable" data-variable-render="antd-textarea" data-key="${e.key}" data-value="${m}" data-placeholder="${p}" data-estimated-width="${Math.min(600,h+b)}"${y}${n}${i} class="rte-variable-host-v2"></span>`}const u=!l,s=u?"":ue(l).replace(/\n/g,"<br/>"),o=u?"show-placeholder":"",c=r&&u?"rte-variable-with-icon":"",f=r&&u?"":"hidden";return`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder||""}"${n}${i} class="variable-chip ${o}${c?` ${c}`:""}">${s}${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${f}" data-variable-key="${e.key}" data-tooltip="${ue(r)}" ></i>`:""}</span>`},r1=(e,t)=>{const a=Fs(e,t);return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${n1}${a}</span>`:a},Hs=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,i1=e=>/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(e);function rr(e,t){if(e==null)return{hasFile:!1,fileName:t,uploadIcon:"<i class='iconfont icon-shangchuan1'></i>"};if(typeof e=="string"){const l=decodeURIComponent(e.split("/").pop()?.split("?")[0]||"file"),n=i1(e)?`<img class="upload-icon-img upload-icon-preview" src="${e}" alt="preview" />`:"<i class='iconfont icon-exlwenjian'></i>";return{hasFile:!0,fileName:l,uploadIcon:n}}const a=Ro(e)?`<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(e)}" alt="preview" />`:"<i class='iconfont icon-exlwenjian'></i>";return{hasFile:!0,fileName:e.name,uploadIcon:a}}const u1=(e,t)=>{const a=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",l=Je(e.tooltip),n=l?` data-tooltip="${ue(l)}"`:"",{hasFile:r,fileName:i,uploadIcon:u}=rr(t[e.key],e.text),s=r?"":"hidden",o=l&&!r?"":"hidden",c=r?"has-file":"",f=r&&i?` data-file-name="${i.replace(/"/g,""")}"`:"",m=(e.text||"").trim(),y=r&&m.length>=12?`<span ${a} contenteditable="false" class="exclusion-wrapper upload-hint">${m}</span>`:"";return{uploadHtml:`<span contenteditable="false" data-type="upload" data-key="${e.key}"${n} class="upload-chip"><span class="upload-inner-wrapper ${c}"><span class="upload-icon">${u}</span><span class="upload-label"${f}>${i||e.text}</span>${l?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${o}" data-upload-key="${e.key}" data-tooltip="${ue(l)}" ></i>`:""}<span class="file-remove-btn ${s}" title="移除文件">×</span></span></span>`,hintHtml:y}},s1=(e,t,a)=>{const l=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"";if(typeof e.maxCount=="number"&&typeof e.minCount=="number"&&e.maxCount>1){const g=Je(e.tooltip),E=g?` data-tooltip="${ue(g)}"`:"",_=e.minCount||1,w=e.maxCount||3;let C=0;for(let A=0;A<w;A++){const k=`${e.key}-${A}`;t[k]!=null&&(C+=1)}const M=Math.min(w,Math.max(_,C+(C<w?1:0)));let S="";for(let A=0;A<M;A++){const k=`${e.key}-${A}`,{hasFile:D,fileName:P,uploadIcon:N}=rr(t[k],e.text),x=D?"":"hidden",F=g&&!D?"":"hidden",U=D?"has-file":"",$=D&&P?` data-file-name="${P.replace(/"/g,""")}"`:"",G=` data-batch-key="${e.key}"`,L=` data-batch-index="${A}"`,W=`<span contenteditable="false" data-type="upload" data-key="${k}"${G}${L}${E} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${U}"><span class="upload-icon">${N}</span><span class="upload-label"${$}>${P||e.text}</span>${g?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${F}" data-upload-key="${k}" data-tooltip="${ue(g)}" ></i>`:""}<span class="file-remove-btn ${x}" title="移除文件">×</span></span></span>`;S+=W}return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Hs}<span class="rte-upload-batch-chips">${S}${a}</span></span>`:`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-upload-batch-chips">${S}${a}</span>`}const r=Je(e.tooltip),i=r?` data-tooltip="${ue(r)}"`:"",{hasFile:u,fileName:s,uploadIcon:o}=rr(t[e.key],e.text),c=u?"":"hidden",f=r&&!u?"":"hidden",m=u?"has-file":"",p=u&&s?` data-file-name="${s.replace(/"/g,""")}"`:"",y=(e.text||"").trim(),b=u&&e.showHint===!0&&y.length>=12?`<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${y}</span>`:"",v=`<span contenteditable="false" data-type="upload" data-key="${e.key}"${i} class="upload-chip"><span class="upload-inner-wrapper ${m}"><span class="upload-icon">${o}</span><span class="upload-label"${p}>${s||e.text}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${f}" data-upload-key="${e.key}" data-tooltip="${ue(r)}" ></i>`:""}<span class="file-remove-btn ${c}" title="移除文件">×</span></span></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${Hs}${v}${a}</span>${b}`:v+a+b},o1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,c1=(e,t)=>{const a=t[e.key]||e.defaultValue||"",l=encodeURIComponent(JSON.stringify(e.options||[])),n=e.placeholder?` data-placeholder="${e.placeholder}"`:"",r=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",i=e.required?' data-required="true"':"",u=`<span data-type="select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-select-host"></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${o1}${u}</span>`:u},d1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,f1=(e,t,a)=>{const l=t[e.key]||"",n=typeof e.maxHeight=="number"?e.maxHeight:252,r=e.placeholder?` placeholder="${e.placeholder}"`:"",i=`<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" style="max-height:${n}px;"${r}>${l}</textarea>`,u=`<div class="rte-textarea-wrapper" data-key="${e.key}">${i}</div>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${d1}${u}</span>`:u},p1=(e,t,a)=>{const l=t[e.key]||e.text||"",n=typeof e.minHeight=="number"?e.minHeight:40,r=typeof e.maxHeight=="number"?e.maxHeight:160,i=Math.max(r,n),u=e.placeholder?` data-placeholder="${e.placeholder}"`:"",s=e.expandable!==!1,o=l,c=`<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${u} style="min-height:${n}px;max-height:${i}px;overflow:auto;">${o}</div>`,f=s?`<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>`:"",m=`<div class="rte-richtext-wrapper${s?" rte-richtext-toggleable":""}" data-key="${e.key}">${c}${f}</div>`,p=`<div class="rte-richtext-container" data-key="${e.key}">${m}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${p}</div>`:p},h1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,b1=(e,t)=>{const a=`${e.key}__url`,n=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0,r=e.key?t[e.key]:void 0,i=n??r??e.text??"",u=!i,s=u?"":i,o=u?"show-placeholder":"",c=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",f=Je(e.tooltip),m=f?` data-tooltip="${ue(f)}" data-variable-key="${e.key||""}"`:"",p=f&&u?"rte-variable-with-icon":"",y=f&&u?"":"hidden",h=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${ue(e.placeholder||"")}"${c}${m} class="variable-chip rte-report-url ${o}${p?` ${p}`:""}">${s}${f?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${ue(f)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${h1}${h}</span>`:h},m1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,v1=(e,t)=>{const a=`${e.key}__name`,n=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0,r=e.key?t[e.key]:void 0,i=n??r??e.text??"",u=!i,s=u?"":i,o=u?"show-placeholder":"",c=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",f=Je(e.tooltip),m=f?` data-tooltip="${ue(f)}" data-variable-key="${e.key||""}"`:"",p=f&&u?"rte-variable-with-icon":"",y=f&&u?"":"hidden",h=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${ue(e.placeholder||"")}"${c}${m} class="variable-chip rte-markdown-name ${o}${p?` ${p}`:""}">${s}${f?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${ue(f)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${m1}${h}</span>`:h},g1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,E1=(e,t)=>{const a=e.sourceTextKey||`${e.key}__sourceText`,n=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0,r=e.key?t[e.key]:void 0,i=n??r??e.text??"",u=!i,s=u?"":i,o=u?"show-placeholder":"",c=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",f=e.sourceTextKey?` data-source-text-key="${ue(e.sourceTextKey)}"`:"",m=Je(e.tooltip),p=m?` data-tooltip="${ue(m)}" data-variable-key="${e.key||""}"`:"",y=m&&u?"rte-variable-with-icon":"",h=m&&u?"":"hidden",b=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${ue(e.placeholder||"")}"${c}${f}${p} class="variable-chip rte-markdown-input ${o}${y?` ${y}`:""}">${s}${m?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${h}" data-variable-key="${e.key}" data-tooltip="${ue(m)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${g1}${b}</span>`:b},y1=(e,t)=>{const a=typeof e.moduleIndex=="number"?e.moduleIndex:0,l=`${e.key}__module_${a}`,r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:e.text||"",i=typeof e.minHeight=="number"?e.minHeight:80,u=typeof e.maxHeight=="number"?e.maxHeight:240,s=Math.max(u,i),o=e.placeholder?` data-placeholder="${ue(e.placeholder)}"`:"",c=r,f=`<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${a}" class="rte-richtext rte-report-module"${o} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`,m=`<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${f}</div>`,p=`<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${m}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${p}</div>`:p},T1=(e,t)=>{const a=typeof e.moduleIndex=="number"?e.moduleIndex:0,l=`${e.key}__module_${a}`,r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:e.text||"",i=typeof e.minHeight=="number"?e.minHeight:80,u=typeof e.maxHeight=="number"?e.maxHeight:240,s=Math.max(u,i),o=e.placeholder?` data-placeholder="${ue(e.placeholder)}"`:"",c=r,m=typeof c=="string"&&c.startsWith("请补充:")?' data-is-placeholder="true"':"",p=`<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${a}" class="rte-richtext rte-markdown-module"${o}${m} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`,y=`<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${p}</div>`,h=`<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${y}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${h}</div>`:h},x1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,C1=(e,t)=>{const a=t[e.key]||"",l=e.placeholder?` data-placeholder="${e.placeholder}"`:"",n=e.limitRange?` data-limit-range="${e.limitRange}"`:"",r=e.disableFuture?' data-disable-future="true"':"",i=`<div data-type="datepicker" data-key="${e.key}" data-value="${a}" class="rte-datepicker-host"${l}${n}${r}></div>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${x1}${i}</span>`:i},S1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,A1=(e,t)=>{const a=t[e.key]||(typeof e.defaultNumber=="number"?String(e.defaultNumber):""),l=typeof e.min=="number"?` min="${e.min}"`:"",n=typeof e.max=="number"?` max="${e.max}"`:"",r=e.placeholder?ue(e.placeholder):"",i=r?` placeholder="${r}"`:"",u=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",s=a||e.placeholder||"",o=qa(s),c=`<input type="text" inputmode="numeric" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${ue(a)}" style="width: ${o}px;"${l}${n}${i}${u} />`,m=`<span class="rte-number-input-wrap" data-placeholder="${r}" data-has-value="${a?"1":"0"}">${c}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${S1}${m}</span>`:m},_1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,w1=(e,t,a)=>{const l=e.maxCount||9,n=a[e.key]||1,r=Math.min(n,l);if(e.required){const s=e.exclusionGroup?`data-group="${e.exclusionGroup}"`:"",o=Je(e.tooltip);let c="";for(let f=0;f<r;f++){const m=`${e.key}_${f}`,p=t[m]||"",y=!p,h=y?"":ue(p).replace(/\n/g,"<br/>"),b=y?"show-placeholder":"",v=o&&y?"rte-variable-with-icon":"",g=o?` data-tooltip="${ue(o)}" data-variable-key="${e.key||""}"`:"",E=o&&y?"":"hidden",_=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",w=`<span contenteditable="true" data-type="variable" data-key="${m}" data-multi-key="${e.key}" data-index="${f}" data-placeholder="${e.placeholder||""}"${_}${g} class="variable-chip ${b}${v?` ${v}`:""}">${h}${o?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${ue(o)}" ></i>`:""}</span>`;f===0?c+=`<span ${s} class="exclusion-wrapper required-upload-group required-multi-first">${_1}${w}</span>`:c+=w}return c}const i=Je(e.tooltip);let u="";for(let s=0;s<r;s++){const o=`${e.key}_${s}`,c=t[o]||"",f=!c,m=f?"":ue(c).replace(/\n/g,"<br/>"),p=f?"show-placeholder":"",y=i&&f?"rte-variable-with-icon":"",h=i?` data-tooltip="${ue(i)}" data-variable-key="${e.key||""}"`:"",b=i&&f?"":"hidden",v=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",g=`<span contenteditable="true" data-type="variable" data-key="${o}" data-multi-key="${e.key}" data-index="${s}" data-placeholder="${e.placeholder||""}"${v}${h} class="variable-chip ${p}${y?` ${y}`:""}">${m}${i?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${b}" data-variable-key="${e.key}" data-tooltip="${ue(i)}" ></i>`:""}</span>`;u+=g}return u},ir=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,k1=(e,t)=>{const a=e.key,l=t[a],n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Je(e.tooltip),i=r?` data-tooltip="${ue(r)}"`:"";let u;if(l?.status==="loading"){const o=typeof l.progress=="number"?Math.min(Math.max(l.progress,0),100):0,c="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Crect fill='%23999' width='1' height='1'/%3E%3C/svg%3E",f=2*Math.PI*6.5,m=f*(1-o/100),p=`<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${f}" stroke-dashoffset="${m}" transform="rotate(-90 8 8)"/></svg>`;u=`<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${c}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${p}</span><span class="video-label">解析中...</span></span>`}else if(l?.status==="success"&&l.videoUrl){const o=l.fileName||"视频",c='<svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg>';u=`<span class="video-inner-wrapper video-url-inner has-video">${l.thumbnail?`<span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${ue(l.thumbnail)}" alt="thumbnail" />${c}</span>`:`<span class="video-thumbnail-wrapper"><span class="video-thumbnail video-thumbnail-placeholder"><i class="iconfont icon-shipin" style="font-size:20px;color:#8c8c8c;"></i></span>${c}</span>`}<span class="video-label" data-file-name="${ue(o)}">${ue(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`}else{const o=e.placeholder||"请粘贴想要分析的抖音视频链接",c=r?"rte-variable-with-icon":"",f=r?"":"hidden",m=`<span contenteditable="true" data-type="variable" data-key="${a}" data-node-type="video-url" data-placeholder="${ue(o)}"${n}${i} class="variable-chip rte-video-url show-placeholder${c?` ${c}`:""}">${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${f}" data-variable-key="${a}" data-tooltip="${ue(r)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${ir}${m}</span>`:m}const s=`<span contenteditable="false" data-type="video-url" data-key="${a}"${i}${n} class="video-chip">${u}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${ir}${s}</span>`:s},N1=(e,t)=>{const a=e.key,l=t[a],n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Je(e.tooltip),i=r?` data-tooltip="${ue(r)}"`:"";let u;if(l?.status==="loading"){const o=typeof l.progress=="number"?Math.min(Math.max(l.progress,0),100):0,c=l.fileName||"上传中...",f=l.thumbnail||"",m=2*Math.PI*6.5,p=m*(1-o/100),y=`<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${m}" stroke-dashoffset="${p}" transform="rotate(-90 8 8)"/></svg>`;u=`<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${ue(f)}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${y}</span><span class="video-label">${ue(c)}</span></span>`}else if(l?.status==="success"&&l.thumbnail&&l.videoUrl){const o=l.fileName||"视频文件";u=`<span class="video-inner-wrapper video-upload-inner has-video"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${ue(l.thumbnail)}" alt="thumbnail" /><svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg></span><span class="video-label" data-file-name="${ue(o)}">${ue(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`}else{const o=e.text||"请上传想要分析的视频文件",c=r?"":"hidden";u=`<span class="video-inner-wrapper video-upload-inner"><i class="iconfont icon-shangchuan1" style="font-size:16px;"></i><span class="video-label">${ue(o)}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${c}" data-upload-key="${a}" data-tooltip="${ue(r)}" ></i>`:""}</span>`}const s=`<span contenteditable="false" data-type="video-upload" data-key="${a}"${i}${n} class="video-chip">${u}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${ir}${s}</span>`:s},I1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,L1=(e,t)=>{const a=t[e.key]||e.defaultValue||"",l=encodeURIComponent(JSON.stringify(e.options||[])),n=e.placeholder?` data-placeholder="${e.placeholder}"`:"",r=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",i=e.required?' data-required="true"':"",u=`<span data-type="searchable-select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-searchable-select-host"></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${I1}${u}</span>`:u},O1=[{label:"北京市",value:"北京市",children:[{label:"市辖区",value:"市辖区",children:[{label:"东城区",value:"东城区"},{label:"西城区",value:"西城区"},{label:"朝阳区",value:"朝阳区"},{label:"丰台区",value:"丰台区"},{label:"石景山区",value:"石景山区"},{label:"海淀区",value:"海淀区"},{label:"门头沟区",value:"门头沟区"},{label:"房山区",value:"房山区"},{label:"通州区",value:"通州区"},{label:"顺义区",value:"顺义区"},{label:"昌平区",value:"昌平区"},{label:"大兴区",value:"大兴区"},{label:"怀柔区",value:"怀柔区"},{label:"平谷区",value:"平谷区"},{label:"密云区",value:"密云区"},{label:"延庆区",value:"延庆区"}]}]},{label:"天津市",value:"天津市",children:[{label:"市辖区",value:"市辖区",children:[{label:"和平区",value:"和平区"},{label:"河东区",value:"河东区"},{label:"河西区",value:"河西区"},{label:"南开区",value:"南开区"},{label:"河北区",value:"河北区"},{label:"红桥区",value:"红桥区"},{label:"东丽区",value:"东丽区"},{label:"西青区",value:"西青区"},{label:"津南区",value:"津南区"},{label:"北辰区",value:"北辰区"},{label:"武清区",value:"武清区"},{label:"宝坻区",value:"宝坻区"},{label:"滨海新区",value:"滨海新区"},{label:"宁河区",value:"宁河区"},{label:"静海区",value:"静海区"},{label:"蓟州区",value:"蓟州区"}]}]},{label:"河北省",value:"河北省",children:[{label:"石家庄市",value:"石家庄市",children:[{label:"长安区",value:"长安区"},{label:"桥西区",value:"桥西区"},{label:"新华区",value:"新华区"},{label:"井陉矿区",value:"井陉矿区"},{label:"裕华区",value:"裕华区"},{label:"藁城区",value:"藁城区"},{label:"鹿泉区",value:"鹿泉区"},{label:"栾城区",value:"栾城区"},{label:"井陉县",value:"井陉县"},{label:"正定县",value:"正定县"},{label:"行唐县",value:"行唐县"},{label:"灵寿县",value:"灵寿县"},{label:"高邑县",value:"高邑县"},{label:"深泽县",value:"深泽县"},{label:"赞皇县",value:"赞皇县"},{label:"无极县",value:"无极县"},{label:"平山县",value:"平山县"},{label:"元氏县",value:"元氏县"},{label:"赵县",value:"赵县"},{label:"石家庄高新技术产业开发区",value:"石家庄高新技术产业开发区"},{label:"石家庄循环化工园区",value:"石家庄循环化工园区"},{label:"辛集市",value:"辛集市"},{label:"晋州市",value:"晋州市"},{label:"新乐市",value:"新乐市"}]},{label:"唐山市",value:"唐山市",children:[{label:"路南区",value:"路南区"},{label:"路北区",value:"路北区"},{label:"古冶区",value:"古冶区"},{label:"开平区",value:"开平区"},{label:"丰南区",value:"丰南区"},{label:"丰润区",value:"丰润区"},{label:"曹妃甸区",value:"曹妃甸区"},{label:"滦南县",value:"滦南县"},{label:"乐亭县",value:"乐亭县"},{label:"迁西县",value:"迁西县"},{label:"玉田县",value:"玉田县"},{label:"河北唐山芦台经济开发区",value:"河北唐山芦台经济开发区"},{label:"唐山市汉沽管理区",value:"唐山市汉沽管理区"},{label:"唐山高新技术产业开发区",value:"唐山高新技术产业开发区"},{label:"河北唐山海港经济开发区",value:"河北唐山海港经济开发区"},{label:"遵化市",value:"遵化市"},{label:"迁安市",value:"迁安市"},{label:"滦州市",value:"滦州市"}]},{label:"秦皇岛市",value:"秦皇岛市",children:[{label:"海港区",value:"海港区"},{label:"山海关区",value:"山海关区"},{label:"北戴河区",value:"北戴河区"},{label:"抚宁区",value:"抚宁区"},{label:"青龙满族自治县",value:"青龙满族自治县"},{label:"昌黎县",value:"昌黎县"},{label:"卢龙县",value:"卢龙县"},{label:"秦皇岛市经济技术开发区",value:"秦皇岛市经济技术开发区"},{label:"北戴河新区",value:"北戴河新区"}]},{label:"邯郸市",value:"邯郸市",children:[{label:"邯山区",value:"邯山区"},{label:"丛台区",value:"丛台区"},{label:"复兴区",value:"复兴区"},{label:"峰峰矿区",value:"峰峰矿区"},{label:"肥乡区",value:"肥乡区"},{label:"永年区",value:"永年区"},{label:"临漳县",value:"临漳县"},{label:"成安县",value:"成安县"},{label:"大名县",value:"大名县"},{label:"涉县",value:"涉县"},{label:"磁县",value:"磁县"},{label:"邱县",value:"邱县"},{label:"鸡泽县",value:"鸡泽县"},{label:"广平县",value:"广平县"},{label:"馆陶县",value:"馆陶县"},{label:"魏县",value:"魏县"},{label:"曲周县",value:"曲周县"},{label:"邯郸经济技术开发区",value:"邯郸经济技术开发区"},{label:"邯郸冀南新区",value:"邯郸冀南新区"},{label:"武安市",value:"武安市"}]},{label:"邢台市",value:"邢台市",children:[{label:"襄都区",value:"襄都区"},{label:"信都区",value:"信都区"},{label:"任泽区",value:"任泽区"},{label:"南和区",value:"南和区"},{label:"临城县",value:"临城县"},{label:"内丘县",value:"内丘县"},{label:"柏乡县",value:"柏乡县"},{label:"隆尧县",value:"隆尧县"},{label:"宁晋县",value:"宁晋县"},{label:"巨鹿县",value:"巨鹿县"},{label:"新河县",value:"新河县"},{label:"广宗县",value:"广宗县"},{label:"平乡县",value:"平乡县"},{label:"威县",value:"威县"},{label:"清河县",value:"清河县"},{label:"临西县",value:"临西县"},{label:"河北邢台经济开发区",value:"河北邢台经济开发区"},{label:"南宫市",value:"南宫市"},{label:"沙河市",value:"沙河市"}]},{label:"保定市",value:"保定市",children:[{label:"竞秀区",value:"竞秀区"},{label:"莲池区",value:"莲池区"},{label:"满城区",value:"满城区"},{label:"清苑区",value:"清苑区"},{label:"徐水区",value:"徐水区"},{label:"涞水县",value:"涞水县"},{label:"阜平县",value:"阜平县"},{label:"定兴县",value:"定兴县"},{label:"唐县",value:"唐县"},{label:"高阳县",value:"高阳县"},{label:"容城县",value:"容城县"},{label:"涞源县",value:"涞源县"},{label:"望都县",value:"望都县"},{label:"安新县",value:"安新县"},{label:"易县",value:"易县"},{label:"曲阳县",value:"曲阳县"},{label:"蠡县",value:"蠡县"},{label:"顺平县",value:"顺平县"},{label:"博野县",value:"博野县"},{label:"雄县",value:"雄县"},{label:"保定高新技术产业开发区",value:"保定高新技术产业开发区"},{label:"保定白沟新城",value:"保定白沟新城"},{label:"涿州市",value:"涿州市"},{label:"定州市",value:"定州市"},{label:"安国市",value:"安国市"},{label:"高碑店市",value:"高碑店市"}]},{label:"张家口市",value:"张家口市",children:[{label:"桥东区",value:"桥东区"},{label:"桥西区",value:"桥西区"},{label:"宣化区",value:"宣化区"},{label:"下花园区",value:"下花园区"},{label:"万全区",value:"万全区"},{label:"崇礼区",value:"崇礼区"},{label:"张北县",value:"张北县"},{label:"康保县",value:"康保县"},{label:"沽源县",value:"沽源县"},{label:"尚义县",value:"尚义县"},{label:"蔚县",value:"蔚县"},{label:"阳原县",value:"阳原县"},{label:"怀安县",value:"怀安县"},{label:"怀来县",value:"怀来县"},{label:"涿鹿县",value:"涿鹿县"},{label:"赤城县",value:"赤城县"},{label:"张家口经济开发区",value:"张家口经济开发区"},{label:"张家口市察北管理区",value:"张家口市察北管理区"},{label:"张家口市塞北管理区",value:"张家口市塞北管理区"}]},{label:"承德市",value:"承德市",children:[{label:"双桥区",value:"双桥区"},{label:"双滦区",value:"双滦区"},{label:"鹰手营子矿区",value:"鹰手营子矿区"},{label:"承德县",value:"承德县"},{label:"兴隆县",value:"兴隆县"},{label:"滦平县",value:"滦平县"},{label:"隆化县",value:"隆化县"},{label:"丰宁满族自治县",value:"丰宁满族自治县"},{label:"宽城满族自治县",value:"宽城满族自治县"},{label:"围场满族蒙古族自治县",value:"围场满族蒙古族自治县"},{label:"承德高新技术产业开发区",value:"承德高新技术产业开发区"},{label:"平泉市",value:"平泉市"}]},{label:"沧州市",value:"沧州市",children:[{label:"新华区",value:"新华区"},{label:"运河区",value:"运河区"},{label:"沧县",value:"沧县"},{label:"青县",value:"青县"},{label:"东光县",value:"东光县"},{label:"海兴县",value:"海兴县"},{label:"盐山县",value:"盐山县"},{label:"肃宁县",value:"肃宁县"},{label:"南皮县",value:"南皮县"},{label:"吴桥县",value:"吴桥县"},{label:"献县",value:"献县"},{label:"孟村回族自治县",value:"孟村回族自治县"},{label:"河北沧州经济开发区",value:"河北沧州经济开发区"},{label:"沧州高新技术产业开发区",value:"沧州高新技术产业开发区"},{label:"沧州渤海新区",value:"沧州渤海新区"},{label:"泊头市",value:"泊头市"},{label:"任丘市",value:"任丘市"},{label:"黄骅市",value:"黄骅市"},{label:"河间市",value:"河间市"}]},{label:"廊坊市",value:"廊坊市",children:[{label:"安次区",value:"安次区"},{label:"广阳区",value:"广阳区"},{label:"固安县",value:"固安县"},{label:"永清县",value:"永清县"},{label:"香河县",value:"香河县"},{label:"大城县",value:"大城县"},{label:"文安县",value:"文安县"},{label:"大厂回族自治县",value:"大厂回族自治县"},{label:"廊坊经济技术开发区",value:"廊坊经济技术开发区"},{label:"霸州市",value:"霸州市"},{label:"三河市",value:"三河市"}]},{label:"衡水市",value:"衡水市",children:[{label:"桃城区",value:"桃城区"},{label:"冀州区",value:"冀州区"},{label:"枣强县",value:"枣强县"},{label:"武邑县",value:"武邑县"},{label:"武强县",value:"武强县"},{label:"饶阳县",value:"饶阳县"},{label:"安平县",value:"安平县"},{label:"故城县",value:"故城县"},{label:"景县",value:"景县"},{label:"阜城县",value:"阜城县"},{label:"河北衡水高新技术产业开发区",value:"河北衡水高新技术产业开发区"},{label:"衡水滨湖新区",value:"衡水滨湖新区"},{label:"深州市",value:"深州市"}]}]},{label:"山西省",value:"山西省",children:[{label:"太原市",value:"太原市",children:[{label:"小店区",value:"小店区"},{label:"迎泽区",value:"迎泽区"},{label:"杏花岭区",value:"杏花岭区"},{label:"尖草坪区",value:"尖草坪区"},{label:"万柏林区",value:"万柏林区"},{label:"晋源区",value:"晋源区"},{label:"清徐县",value:"清徐县"},{label:"阳曲县",value:"阳曲县"},{label:"娄烦县",value:"娄烦县"},{label:"山西转型综合改革示范区",value:"山西转型综合改革示范区"},{label:"古交市",value:"古交市"}]},{label:"大同市",value:"大同市",children:[{label:"新荣区",value:"新荣区"},{label:"平城区",value:"平城区"},{label:"云冈区",value:"云冈区"},{label:"云州区",value:"云州区"},{label:"阳高县",value:"阳高县"},{label:"天镇县",value:"天镇县"},{label:"广灵县",value:"广灵县"},{label:"灵丘县",value:"灵丘县"},{label:"浑源县",value:"浑源县"},{label:"左云县",value:"左云县"},{label:"山西大同经济开发区",value:"山西大同经济开发区"}]},{label:"阳泉市",value:"阳泉市",children:[{label:"城区",value:"城区"},{label:"矿区",value:"矿区"},{label:"郊区",value:"郊区"},{label:"平定县",value:"平定县"},{label:"盂县",value:"盂县"}]},{label:"长治市",value:"长治市",children:[{label:"潞州区",value:"潞州区"},{label:"上党区",value:"上党区"},{label:"屯留区",value:"屯留区"},{label:"潞城区",value:"潞城区"},{label:"襄垣县",value:"襄垣县"},{label:"平顺县",value:"平顺县"},{label:"黎城县",value:"黎城县"},{label:"壶关县",value:"壶关县"},{label:"长子县",value:"长子县"},{label:"武乡县",value:"武乡县"},{label:"沁县",value:"沁县"},{label:"沁源县",value:"沁源县"}]},{label:"晋城市",value:"晋城市",children:[{label:"城区",value:"城区"},{label:"沁水县",value:"沁水县"},{label:"阳城县",value:"阳城县"},{label:"陵川县",value:"陵川县"},{label:"泽州县",value:"泽州县"},{label:"高平市",value:"高平市"}]},{label:"朔州市",value:"朔州市",children:[{label:"朔城区",value:"朔城区"},{label:"平鲁区",value:"平鲁区"},{label:"山阴县",value:"山阴县"},{label:"应县",value:"应县"},{label:"右玉县",value:"右玉县"},{label:"山西朔州经济开发区",value:"山西朔州经济开发区"},{label:"怀仁市",value:"怀仁市"}]},{label:"晋中市",value:"晋中市",children:[{label:"榆次区",value:"榆次区"},{label:"太谷区",value:"太谷区"},{label:"榆社县",value:"榆社县"},{label:"左权县",value:"左权县"},{label:"和顺县",value:"和顺县"},{label:"昔阳县",value:"昔阳县"},{label:"寿阳县",value:"寿阳县"},{label:"祁县",value:"祁县"},{label:"平遥县",value:"平遥县"},{label:"灵石县",value:"灵石县"},{label:"介休市",value:"介休市"}]},{label:"运城市",value:"运城市",children:[{label:"盐湖区",value:"盐湖区"},{label:"临猗县",value:"临猗县"},{label:"万荣县",value:"万荣县"},{label:"闻喜县",value:"闻喜县"},{label:"稷山县",value:"稷山县"},{label:"新绛县",value:"新绛县"},{label:"绛县",value:"绛县"},{label:"垣曲县",value:"垣曲县"},{label:"夏县",value:"夏县"},{label:"平陆县",value:"平陆县"},{label:"芮城县",value:"芮城县"},{label:"永济市",value:"永济市"},{label:"河津市",value:"河津市"}]},{label:"忻州市",value:"忻州市",children:[{label:"忻府区",value:"忻府区"},{label:"定襄县",value:"定襄县"},{label:"五台县",value:"五台县"},{label:"代县",value:"代县"},{label:"繁峙县",value:"繁峙县"},{label:"宁武县",value:"宁武县"},{label:"静乐县",value:"静乐县"},{label:"神池县",value:"神池县"},{label:"五寨县",value:"五寨县"},{label:"岢岚县",value:"岢岚县"},{label:"河曲县",value:"河曲县"},{label:"保德县",value:"保德县"},{label:"偏关县",value:"偏关县"},{label:"五台山风景名胜区",value:"五台山风景名胜区"},{label:"原平市",value:"原平市"}]},{label:"临汾市",value:"临汾市",children:[{label:"尧都区",value:"尧都区"},{label:"曲沃县",value:"曲沃县"},{label:"翼城县",value:"翼城县"},{label:"襄汾县",value:"襄汾县"},{label:"洪洞县",value:"洪洞县"},{label:"古县",value:"古县"},{label:"安泽县",value:"安泽县"},{label:"浮山县",value:"浮山县"},{label:"吉县",value:"吉县"},{label:"乡宁县",value:"乡宁县"},{label:"大宁县",value:"大宁县"},{label:"隰县",value:"隰县"},{label:"永和县",value:"永和县"},{label:"蒲县",value:"蒲县"},{label:"汾西县",value:"汾西县"},{label:"侯马市",value:"侯马市"},{label:"霍州市",value:"霍州市"}]},{label:"吕梁市",value:"吕梁市",children:[{label:"离石区",value:"离石区"},{label:"文水县",value:"文水县"},{label:"交城县",value:"交城县"},{label:"兴县",value:"兴县"},{label:"临县",value:"临县"},{label:"柳林县",value:"柳林县"},{label:"石楼县",value:"石楼县"},{label:"岚县",value:"岚县"},{label:"方山县",value:"方山县"},{label:"中阳县",value:"中阳县"},{label:"交口县",value:"交口县"},{label:"孝义市",value:"孝义市"},{label:"汾阳市",value:"汾阳市"}]}]},{label:"内蒙古自治区",value:"内蒙古自治区",children:[{label:"呼和浩特市",value:"呼和浩特市",children:[{label:"新城区",value:"新城区"},{label:"回民区",value:"回民区"},{label:"玉泉区",value:"玉泉区"},{label:"赛罕区",value:"赛罕区"},{label:"土默特左旗",value:"土默特左旗"},{label:"托克托县",value:"托克托县"},{label:"和林格尔县",value:"和林格尔县"},{label:"清水河县",value:"清水河县"},{label:"武川县",value:"武川县"},{label:"呼和浩特经济技术开发区",value:"呼和浩特经济技术开发区"}]},{label:"包头市",value:"包头市",children:[{label:"东河区",value:"东河区"},{label:"昆都仑区",value:"昆都仑区"},{label:"青山区",value:"青山区"},{label:"石拐区",value:"石拐区"},{label:"白云鄂博矿区",value:"白云鄂博矿区"},{label:"九原区",value:"九原区"},{label:"土默特右旗",value:"土默特右旗"},{label:"固阳县",value:"固阳县"},{label:"达尔罕茂明安联合旗",value:"达尔罕茂明安联合旗"},{label:"包头稀土高新技术产业开发区",value:"包头稀土高新技术产业开发区"}]},{label:"乌海市",value:"乌海市",children:[{label:"海勃湾区",value:"海勃湾区"},{label:"海南区",value:"海南区"},{label:"乌达区",value:"乌达区"}]},{label:"赤峰市",value:"赤峰市",children:[{label:"红山区",value:"红山区"},{label:"元宝山区",value:"元宝山区"},{label:"松山区",value:"松山区"},{label:"阿鲁科尔沁旗",value:"阿鲁科尔沁旗"},{label:"巴林左旗",value:"巴林左旗"},{label:"巴林右旗",value:"巴林右旗"},{label:"林西县",value:"林西县"},{label:"克什克腾旗",value:"克什克腾旗"},{label:"翁牛特旗",value:"翁牛特旗"},{label:"喀喇沁旗",value:"喀喇沁旗"},{label:"宁城县",value:"宁城县"},{label:"敖汉旗",value:"敖汉旗"}]},{label:"通辽市",value:"通辽市",children:[{label:"科尔沁区",value:"科尔沁区"},{label:"科尔沁左翼中旗",value:"科尔沁左翼中旗"},{label:"科尔沁左翼后旗",value:"科尔沁左翼后旗"},{label:"开鲁县",value:"开鲁县"},{label:"库伦旗",value:"库伦旗"},{label:"奈曼旗",value:"奈曼旗"},{label:"扎鲁特旗",value:"扎鲁特旗"},{label:"通辽经济技术开发区",value:"通辽经济技术开发区"},{label:"霍林郭勒市",value:"霍林郭勒市"}]},{label:"鄂尔多斯市",value:"鄂尔多斯市",children:[{label:"东胜区",value:"东胜区"},{label:"康巴什区",value:"康巴什区"},{label:"达拉特旗",value:"达拉特旗"},{label:"准格尔旗",value:"准格尔旗"},{label:"鄂托克前旗",value:"鄂托克前旗"},{label:"鄂托克旗",value:"鄂托克旗"},{label:"杭锦旗",value:"杭锦旗"},{label:"乌审旗",value:"乌审旗"},{label:"伊金霍洛旗",value:"伊金霍洛旗"}]},{label:"呼伦贝尔市",value:"呼伦贝尔市",children:[{label:"海拉尔区",value:"海拉尔区"},{label:"扎赉诺尔区",value:"扎赉诺尔区"},{label:"阿荣旗",value:"阿荣旗"},{label:"莫力达瓦达斡尔族自治旗",value:"莫力达瓦达斡尔族自治旗"},{label:"鄂伦春自治旗",value:"鄂伦春自治旗"},{label:"鄂温克族自治旗",value:"鄂温克族自治旗"},{label:"陈巴尔虎旗",value:"陈巴尔虎旗"},{label:"新巴尔虎左旗",value:"新巴尔虎左旗"},{label:"新巴尔虎右旗",value:"新巴尔虎右旗"},{label:"满洲里市",value:"满洲里市"},{label:"牙克石市",value:"牙克石市"},{label:"扎兰屯市",value:"扎兰屯市"},{label:"额尔古纳市",value:"额尔古纳市"},{label:"根河市",value:"根河市"}]},{label:"巴彦淖尔市",value:"巴彦淖尔市",children:[{label:"临河区",value:"临河区"},{label:"五原县",value:"五原县"},{label:"磴口县",value:"磴口县"},{label:"乌拉特前旗",value:"乌拉特前旗"},{label:"乌拉特中旗",value:"乌拉特中旗"},{label:"乌拉特后旗",value:"乌拉特后旗"},{label:"杭锦后旗",value:"杭锦后旗"}]},{label:"乌兰察布市",value:"乌兰察布市",children:[{label:"集宁区",value:"集宁区"},{label:"卓资县",value:"卓资县"},{label:"化德县",value:"化德县"},{label:"商都县",value:"商都县"},{label:"兴和县",value:"兴和县"},{label:"凉城县",value:"凉城县"},{label:"察哈尔右翼前旗",value:"察哈尔右翼前旗"},{label:"察哈尔右翼中旗",value:"察哈尔右翼中旗"},{label:"察哈尔右翼后旗",value:"察哈尔右翼后旗"},{label:"四子王旗",value:"四子王旗"},{label:"丰镇市",value:"丰镇市"}]},{label:"兴安盟",value:"兴安盟",children:[{label:"乌兰浩特市",value:"乌兰浩特市"},{label:"阿尔山市",value:"阿尔山市"},{label:"科尔沁右翼前旗",value:"科尔沁右翼前旗"},{label:"科尔沁右翼中旗",value:"科尔沁右翼中旗"},{label:"扎赉特旗",value:"扎赉特旗"},{label:"突泉县",value:"突泉县"}]},{label:"锡林郭勒盟",value:"锡林郭勒盟",children:[{label:"二连浩特市",value:"二连浩特市"},{label:"锡林浩特市",value:"锡林浩特市"},{label:"阿巴嘎旗",value:"阿巴嘎旗"},{label:"苏尼特左旗",value:"苏尼特左旗"},{label:"苏尼特右旗",value:"苏尼特右旗"},{label:"东乌珠穆沁旗",value:"东乌珠穆沁旗"},{label:"西乌珠穆沁旗",value:"西乌珠穆沁旗"},{label:"太仆寺旗",value:"太仆寺旗"},{label:"镶黄旗",value:"镶黄旗"},{label:"正镶白旗",value:"正镶白旗"},{label:"正蓝旗",value:"正蓝旗"},{label:"多伦县",value:"多伦县"},{label:"乌拉盖管理区管委会",value:"乌拉盖管理区管委会"}]},{label:"阿拉善盟",value:"阿拉善盟",children:[{label:"阿拉善左旗",value:"阿拉善左旗"},{label:"阿拉善右旗",value:"阿拉善右旗"},{label:"额济纳旗",value:"额济纳旗"},{label:"内蒙古阿拉善高新技术产业开发区",value:"内蒙古阿拉善高新技术产业开发区"}]}]},{label:"辽宁省",value:"辽宁省",children:[{label:"沈阳市",value:"沈阳市",children:[{label:"和平区",value:"和平区"},{label:"沈河区",value:"沈河区"},{label:"大东区",value:"大东区"},{label:"皇姑区",value:"皇姑区"},{label:"铁西区",value:"铁西区"},{label:"苏家屯区",value:"苏家屯区"},{label:"浑南区",value:"浑南区"},{label:"沈北新区",value:"沈北新区"},{label:"于洪区",value:"于洪区"},{label:"辽中区",value:"辽中区"},{label:"康平县",value:"康平县"},{label:"法库县",value:"法库县"},{label:"新民市",value:"新民市"}]},{label:"大连市",value:"大连市",children:[{label:"中山区",value:"中山区"},{label:"西岗区",value:"西岗区"},{label:"沙河口区",value:"沙河口区"},{label:"甘井子区",value:"甘井子区"},{label:"旅顺口区",value:"旅顺口区"},{label:"金州区",value:"金州区"},{label:"普兰店区",value:"普兰店区"},{label:"长海县",value:"长海县"},{label:"瓦房店市",value:"瓦房店市"},{label:"庄河市",value:"庄河市"}]},{label:"鞍山市",value:"鞍山市",children:[{label:"铁东区",value:"铁东区"},{label:"铁西区",value:"铁西区"},{label:"立山区",value:"立山区"},{label:"千山区",value:"千山区"},{label:"台安县",value:"台安县"},{label:"岫岩满族自治县",value:"岫岩满族自治县"},{label:"海城市",value:"海城市"}]},{label:"抚顺市",value:"抚顺市",children:[{label:"新抚区",value:"新抚区"},{label:"东洲区",value:"东洲区"},{label:"望花区",value:"望花区"},{label:"顺城区",value:"顺城区"},{label:"抚顺县",value:"抚顺县"},{label:"新宾满族自治县",value:"新宾满族自治县"},{label:"清原满族自治县",value:"清原满族自治县"}]},{label:"本溪市",value:"本溪市",children:[{label:"平山区",value:"平山区"},{label:"溪湖区",value:"溪湖区"},{label:"明山区",value:"明山区"},{label:"南芬区",value:"南芬区"},{label:"本溪满族自治县",value:"本溪满族自治县"},{label:"桓仁满族自治县",value:"桓仁满族自治县"}]},{label:"丹东市",value:"丹东市",children:[{label:"元宝区",value:"元宝区"},{label:"振兴区",value:"振兴区"},{label:"振安区",value:"振安区"},{label:"宽甸满族自治县",value:"宽甸满族自治县"},{label:"东港市",value:"东港市"},{label:"凤城市",value:"凤城市"}]},{label:"锦州市",value:"锦州市",children:[{label:"古塔区",value:"古塔区"},{label:"凌河区",value:"凌河区"},{label:"太和区",value:"太和区"},{label:"黑山县",value:"黑山县"},{label:"义县",value:"义县"},{label:"凌海市",value:"凌海市"},{label:"北镇市",value:"北镇市"}]},{label:"营口市",value:"营口市",children:[{label:"站前区",value:"站前区"},{label:"西市区",value:"西市区"},{label:"鲅鱼圈区",value:"鲅鱼圈区"},{label:"老边区",value:"老边区"},{label:"盖州市",value:"盖州市"},{label:"大石桥市",value:"大石桥市"}]},{label:"阜新市",value:"阜新市",children:[{label:"海州区",value:"海州区"},{label:"新邱区",value:"新邱区"},{label:"太平区",value:"太平区"},{label:"清河门区",value:"清河门区"},{label:"细河区",value:"细河区"},{label:"阜新蒙古族自治县",value:"阜新蒙古族自治县"},{label:"彰武县",value:"彰武县"}]},{label:"辽阳市",value:"辽阳市",children:[{label:"白塔区",value:"白塔区"},{label:"文圣区",value:"文圣区"},{label:"宏伟区",value:"宏伟区"},{label:"弓长岭区",value:"弓长岭区"},{label:"太子河区",value:"太子河区"},{label:"辽阳县",value:"辽阳县"},{label:"灯塔市",value:"灯塔市"}]},{label:"盘锦市",value:"盘锦市",children:[{label:"双台子区",value:"双台子区"},{label:"兴隆台区",value:"兴隆台区"},{label:"大洼区",value:"大洼区"},{label:"盘山县",value:"盘山县"}]},{label:"铁岭市",value:"铁岭市",children:[{label:"银州区",value:"银州区"},{label:"清河区",value:"清河区"},{label:"铁岭县",value:"铁岭县"},{label:"西丰县",value:"西丰县"},{label:"昌图县",value:"昌图县"},{label:"调兵山市",value:"调兵山市"},{label:"开原市",value:"开原市"}]},{label:"朝阳市",value:"朝阳市",children:[{label:"双塔区",value:"双塔区"},{label:"龙城区",value:"龙城区"},{label:"朝阳县",value:"朝阳县"},{label:"建平县",value:"建平县"},{label:"喀喇沁左翼蒙古族自治县",value:"喀喇沁左翼蒙古族自治县"},{label:"北票市",value:"北票市"},{label:"凌源市",value:"凌源市"}]},{label:"葫芦岛市",value:"葫芦岛市",children:[{label:"连山区",value:"连山区"},{label:"龙港区",value:"龙港区"},{label:"南票区",value:"南票区"},{label:"绥中县",value:"绥中县"},{label:"建昌县",value:"建昌县"},{label:"兴城市",value:"兴城市"}]}]},{label:"吉林省",value:"吉林省",children:[{label:"长春市",value:"长春市",children:[{label:"南关区",value:"南关区"},{label:"宽城区",value:"宽城区"},{label:"朝阳区",value:"朝阳区"},{label:"二道区",value:"二道区"},{label:"绿园区",value:"绿园区"},{label:"双阳区",value:"双阳区"},{label:"九台区",value:"九台区"},{label:"农安县",value:"农安县"},{label:"长春经济技术开发区",value:"长春经济技术开发区"},{label:"长春净月高新技术产业开发区",value:"长春净月高新技术产业开发区"},{label:"长春高新技术产业开发区",value:"长春高新技术产业开发区"},{label:"长春汽车经济技术开发区",value:"长春汽车经济技术开发区"},{label:"榆树市",value:"榆树市"},{label:"德惠市",value:"德惠市"},{label:"公主岭市",value:"公主岭市"}]},{label:"吉林市",value:"吉林市",children:[{label:"昌邑区",value:"昌邑区"},{label:"龙潭区",value:"龙潭区"},{label:"船营区",value:"船营区"},{label:"丰满区",value:"丰满区"},{label:"永吉县",value:"永吉县"},{label:"吉林经济开发区",value:"吉林经济开发区"},{label:"吉林高新技术产业开发区",value:"吉林高新技术产业开发区"},{label:"吉林中国新加坡食品区",value:"吉林中国新加坡食品区"},{label:"蛟河市",value:"蛟河市"},{label:"桦甸市",value:"桦甸市"},{label:"舒兰市",value:"舒兰市"},{label:"磐石市",value:"磐石市"}]},{label:"四平市",value:"四平市",children:[{label:"铁西区",value:"铁西区"},{label:"铁东区",value:"铁东区"},{label:"梨树县",value:"梨树县"},{label:"伊通满族自治县",value:"伊通满族自治县"},{label:"双辽市",value:"双辽市"}]},{label:"辽源市",value:"辽源市",children:[{label:"龙山区",value:"龙山区"},{label:"西安区",value:"西安区"},{label:"东丰县",value:"东丰县"},{label:"东辽县",value:"东辽县"}]},{label:"通化市",value:"通化市",children:[{label:"东昌区",value:"东昌区"},{label:"二道江区",value:"二道江区"},{label:"通化县",value:"通化县"},{label:"辉南县",value:"辉南县"},{label:"柳河县",value:"柳河县"},{label:"梅河口市",value:"梅河口市"},{label:"集安市",value:"集安市"}]},{label:"白山市",value:"白山市",children:[{label:"浑江区",value:"浑江区"},{label:"江源区",value:"江源区"},{label:"抚松县",value:"抚松县"},{label:"靖宇县",value:"靖宇县"},{label:"长白朝鲜族自治县",value:"长白朝鲜族自治县"},{label:"临江市",value:"临江市"}]},{label:"松原市",value:"松原市",children:[{label:"宁江区",value:"宁江区"},{label:"前郭尔罗斯蒙古族自治县",value:"前郭尔罗斯蒙古族自治县"},{label:"长岭县",value:"长岭县"},{label:"乾安县",value:"乾安县"},{label:"吉林松原经济开发区",value:"吉林松原经济开发区"},{label:"扶余市",value:"扶余市"}]},{label:"白城市",value:"白城市",children:[{label:"洮北区",value:"洮北区"},{label:"镇赉县",value:"镇赉县"},{label:"通榆县",value:"通榆县"},{label:"吉林白城经济开发区",value:"吉林白城经济开发区"},{label:"洮南市",value:"洮南市"},{label:"大安市",value:"大安市"}]},{label:"延边朝鲜族自治州",value:"延边朝鲜族自治州",children:[{label:"延吉市",value:"延吉市"},{label:"图们市",value:"图们市"},{label:"敦化市",value:"敦化市"},{label:"珲春市",value:"珲春市"},{label:"龙井市",value:"龙井市"},{label:"和龙市",value:"和龙市"},{label:"汪清县",value:"汪清县"},{label:"安图县",value:"安图县"}]}]},{label:"黑龙江省",value:"黑龙江省",children:[{label:"哈尔滨市",value:"哈尔滨市",children:[{label:"道里区",value:"道里区"},{label:"南岗区",value:"南岗区"},{label:"道外区",value:"道外区"},{label:"平房区",value:"平房区"},{label:"松北区",value:"松北区"},{label:"香坊区",value:"香坊区"},{label:"呼兰区",value:"呼兰区"},{label:"阿城区",value:"阿城区"},{label:"双城区",value:"双城区"},{label:"依兰县",value:"依兰县"},{label:"方正县",value:"方正县"},{label:"宾县",value:"宾县"},{label:"巴彦县",value:"巴彦县"},{label:"木兰县",value:"木兰县"},{label:"通河县",value:"通河县"},{label:"延寿县",value:"延寿县"},{label:"尚志市",value:"尚志市"},{label:"五常市",value:"五常市"}]},{label:"齐齐哈尔市",value:"齐齐哈尔市",children:[{label:"龙沙区",value:"龙沙区"},{label:"建华区",value:"建华区"},{label:"铁锋区",value:"铁锋区"},{label:"昂昂溪区",value:"昂昂溪区"},{label:"富拉尔基区",value:"富拉尔基区"},{label:"碾子山区",value:"碾子山区"},{label:"梅里斯达斡尔族区",value:"梅里斯达斡尔族区"},{label:"龙江县",value:"龙江县"},{label:"依安县",value:"依安县"},{label:"泰来县",value:"泰来县"},{label:"甘南县",value:"甘南县"},{label:"富裕县",value:"富裕县"},{label:"克山县",value:"克山县"},{label:"克东县",value:"克东县"},{label:"拜泉县",value:"拜泉县"},{label:"讷河市",value:"讷河市"}]},{label:"鸡西市",value:"鸡西市",children:[{label:"鸡冠区",value:"鸡冠区"},{label:"恒山区",value:"恒山区"},{label:"滴道区",value:"滴道区"},{label:"梨树区",value:"梨树区"},{label:"城子河区",value:"城子河区"},{label:"麻山区",value:"麻山区"},{label:"鸡东县",value:"鸡东县"},{label:"虎林市",value:"虎林市"},{label:"密山市",value:"密山市"}]},{label:"鹤岗市",value:"鹤岗市",children:[{label:"向阳区",value:"向阳区"},{label:"工农区",value:"工农区"},{label:"南山区",value:"南山区"},{label:"兴安区",value:"兴安区"},{label:"东山区",value:"东山区"},{label:"兴山区",value:"兴山区"},{label:"萝北县",value:"萝北县"},{label:"绥滨县",value:"绥滨县"}]},{label:"双鸭山市",value:"双鸭山市",children:[{label:"尖山区",value:"尖山区"},{label:"岭东区",value:"岭东区"},{label:"四方台区",value:"四方台区"},{label:"宝山区",value:"宝山区"},{label:"集贤县",value:"集贤县"},{label:"友谊县",value:"友谊县"},{label:"宝清县",value:"宝清县"},{label:"饶河县",value:"饶河县"}]},{label:"大庆市",value:"大庆市",children:[{label:"萨尔图区",value:"萨尔图区"},{label:"龙凤区",value:"龙凤区"},{label:"让胡路区",value:"让胡路区"},{label:"红岗区",value:"红岗区"},{label:"大同区",value:"大同区"},{label:"肇州县",value:"肇州县"},{label:"肇源县",value:"肇源县"},{label:"林甸县",value:"林甸县"},{label:"杜尔伯特蒙古族自治县",value:"杜尔伯特蒙古族自治县"},{label:"大庆高新技术产业开发区",value:"大庆高新技术产业开发区"}]},{label:"伊春市",value:"伊春市",children:[{label:"伊美区",value:"伊美区"},{label:"乌翠区",value:"乌翠区"},{label:"友好区",value:"友好区"},{label:"嘉荫县",value:"嘉荫县"},{label:"汤旺县",value:"汤旺县"},{label:"丰林县",value:"丰林县"},{label:"大箐山县",value:"大箐山县"},{label:"南岔县",value:"南岔县"},{label:"金林区",value:"金林区"},{label:"铁力市",value:"铁力市"}]},{label:"佳木斯市",value:"佳木斯市",children:[{label:"向阳区",value:"向阳区"},{label:"前进区",value:"前进区"},{label:"东风区",value:"东风区"},{label:"郊区",value:"郊区"},{label:"桦南县",value:"桦南县"},{label:"桦川县",value:"桦川县"},{label:"汤原县",value:"汤原县"},{label:"同江市",value:"同江市"},{label:"富锦市",value:"富锦市"},{label:"抚远市",value:"抚远市"}]},{label:"七台河市",value:"七台河市",children:[{label:"新兴区",value:"新兴区"},{label:"桃山区",value:"桃山区"},{label:"茄子河区",value:"茄子河区"},{label:"勃利县",value:"勃利县"}]},{label:"牡丹江市",value:"牡丹江市",children:[{label:"东安区",value:"东安区"},{label:"阳明区",value:"阳明区"},{label:"爱民区",value:"爱民区"},{label:"西安区",value:"西安区"},{label:"林口县",value:"林口县"},{label:"绥芬河市",value:"绥芬河市"},{label:"海林市",value:"海林市"},{label:"宁安市",value:"宁安市"},{label:"穆棱市",value:"穆棱市"},{label:"东宁市",value:"东宁市"}]},{label:"黑河市",value:"黑河市",children:[{label:"爱辉区",value:"爱辉区"},{label:"逊克县",value:"逊克县"},{label:"孙吴县",value:"孙吴县"},{label:"北安市",value:"北安市"},{label:"五大连池市",value:"五大连池市"},{label:"嫩江市",value:"嫩江市"}]},{label:"绥化市",value:"绥化市",children:[{label:"北林区",value:"北林区"},{label:"望奎县",value:"望奎县"},{label:"兰西县",value:"兰西县"},{label:"青冈县",value:"青冈县"},{label:"庆安县",value:"庆安县"},{label:"明水县",value:"明水县"},{label:"绥棱县",value:"绥棱县"},{label:"安达市",value:"安达市"},{label:"肇东市",value:"肇东市"},{label:"海伦市",value:"海伦市"}]},{label:"大兴安岭地区",value:"大兴安岭地区",children:[{label:"漠河市",value:"漠河市"},{label:"呼玛县",value:"呼玛县"},{label:"塔河县",value:"塔河县"},{label:"加格达奇区",value:"加格达奇区"},{label:"松岭区",value:"松岭区"},{label:"新林区",value:"新林区"},{label:"呼中区",value:"呼中区"}]}]},{label:"上海市",value:"上海市",children:[{label:"市辖区",value:"市辖区",children:[{label:"黄浦区",value:"黄浦区"},{label:"徐汇区",value:"徐汇区"},{label:"长宁区",value:"长宁区"},{label:"静安区",value:"静安区"},{label:"普陀区",value:"普陀区"},{label:"虹口区",value:"虹口区"},{label:"杨浦区",value:"杨浦区"},{label:"闵行区",value:"闵行区"},{label:"宝山区",value:"宝山区"},{label:"嘉定区",value:"嘉定区"},{label:"浦东新区",value:"浦东新区"},{label:"金山区",value:"金山区"},{label:"松江区",value:"松江区"},{label:"青浦区",value:"青浦区"},{label:"奉贤区",value:"奉贤区"},{label:"崇明区",value:"崇明区"}]}]},{label:"江苏省",value:"江苏省",children:[{label:"南京市",value:"南京市",children:[{label:"玄武区",value:"玄武区"},{label:"秦淮区",value:"秦淮区"},{label:"建邺区",value:"建邺区"},{label:"鼓楼区",value:"鼓楼区"},{label:"浦口区",value:"浦口区"},{label:"栖霞区",value:"栖霞区"},{label:"雨花台区",value:"雨花台区"},{label:"江宁区",value:"江宁区"},{label:"六合区",value:"六合区"},{label:"溧水区",value:"溧水区"},{label:"高淳区",value:"高淳区"}]},{label:"无锡市",value:"无锡市",children:[{label:"锡山区",value:"锡山区"},{label:"惠山区",value:"惠山区"},{label:"滨湖区",value:"滨湖区"},{label:"梁溪区",value:"梁溪区"},{label:"新吴区",value:"新吴区"},{label:"江阴市",value:"江阴市"},{label:"宜兴市",value:"宜兴市"}]},{label:"徐州市",value:"徐州市",children:[{label:"鼓楼区",value:"鼓楼区"},{label:"云龙区",value:"云龙区"},{label:"贾汪区",value:"贾汪区"},{label:"泉山区",value:"泉山区"},{label:"铜山区",value:"铜山区"},{label:"丰县",value:"丰县"},{label:"沛县",value:"沛县"},{label:"睢宁县",value:"睢宁县"},{label:"徐州经济技术开发区",value:"徐州经济技术开发区"},{label:"新沂市",value:"新沂市"},{label:"邳州市",value:"邳州市"}]},{label:"常州市",value:"常州市",children:[{label:"天宁区",value:"天宁区"},{label:"钟楼区",value:"钟楼区"},{label:"新北区",value:"新北区"},{label:"武进区",value:"武进区"},{label:"金坛区",value:"金坛区"},{label:"溧阳市",value:"溧阳市"}]},{label:"苏州市",value:"苏州市",children:[{label:"虎丘区",value:"虎丘区"},{label:"吴中区",value:"吴中区"},{label:"相城区",value:"相城区"},{label:"姑苏区",value:"姑苏区"},{label:"吴江区",value:"吴江区"},{label:"苏州工业园区",value:"苏州工业园区"},{label:"常熟市",value:"常熟市"},{label:"张家港市",value:"张家港市"},{label:"昆山市",value:"昆山市"},{label:"太仓市",value:"太仓市"}]},{label:"南通市",value:"南通市",children:[{label:"通州区",value:"通州区"},{label:"崇川区",value:"崇川区"},{label:"海门区",value:"海门区"},{label:"如东县",value:"如东县"},{label:"南通经济技术开发区",value:"南通经济技术开发区"},{label:"启东市",value:"启东市"},{label:"如皋市",value:"如皋市"},{label:"海安市",value:"海安市"}]},{label:"连云港市",value:"连云港市",children:[{label:"连云区",value:"连云区"},{label:"海州区",value:"海州区"},{label:"赣榆区",value:"赣榆区"},{label:"东海县",value:"东海县"},{label:"灌云县",value:"灌云县"},{label:"灌南县",value:"灌南县"},{label:"连云港经济技术开发区",value:"连云港经济技术开发区"}]},{label:"淮安市",value:"淮安市",children:[{label:"淮安区",value:"淮安区"},{label:"淮阴区",value:"淮阴区"},{label:"清江浦区",value:"清江浦区"},{label:"洪泽区",value:"洪泽区"},{label:"涟水县",value:"涟水县"},{label:"盱眙县",value:"盱眙县"},{label:"金湖县",value:"金湖县"},{label:"淮安经济技术开发区",value:"淮安经济技术开发区"}]},{label:"盐城市",value:"盐城市",children:[{label:"亭湖区",value:"亭湖区"},{label:"盐都区",value:"盐都区"},{label:"大丰区",value:"大丰区"},{label:"响水县",value:"响水县"},{label:"滨海县",value:"滨海县"},{label:"阜宁县",value:"阜宁县"},{label:"射阳县",value:"射阳县"},{label:"建湖县",value:"建湖县"},{label:"盐城经济技术开发区",value:"盐城经济技术开发区"},{label:"东台市",value:"东台市"}]},{label:"扬州市",value:"扬州市",children:[{label:"广陵区",value:"广陵区"},{label:"邗江区",value:"邗江区"},{label:"江都区",value:"江都区"},{label:"宝应县",value:"宝应县"},{label:"扬州经济技术开发区",value:"扬州经济技术开发区"},{label:"仪征市",value:"仪征市"},{label:"高邮市",value:"高邮市"}]},{label:"镇江市",value:"镇江市",children:[{label:"京口区",value:"京口区"},{label:"润州区",value:"润州区"},{label:"丹徒区",value:"丹徒区"},{label:"镇江新区",value:"镇江新区"},{label:"丹阳市",value:"丹阳市"},{label:"扬中市",value:"扬中市"},{label:"句容市",value:"句容市"}]},{label:"泰州市",value:"泰州市",children:[{label:"海陵区",value:"海陵区"},{label:"高港区",value:"高港区"},{label:"姜堰区",value:"姜堰区"},{label:"兴化市",value:"兴化市"},{label:"靖江市",value:"靖江市"},{label:"泰兴市",value:"泰兴市"}]},{label:"宿迁市",value:"宿迁市",children:[{label:"宿城区",value:"宿城区"},{label:"宿豫区",value:"宿豫区"},{label:"沭阳县",value:"沭阳县"},{label:"泗阳县",value:"泗阳县"},{label:"泗洪县",value:"泗洪县"},{label:"宿迁经济技术开发区",value:"宿迁经济技术开发区"}]}]},{label:"浙江省",value:"浙江省",children:[{label:"杭州市",value:"杭州市",children:[{label:"上城区",value:"上城区"},{label:"拱墅区",value:"拱墅区"},{label:"西湖区",value:"西湖区"},{label:"滨江区",value:"滨江区"},{label:"萧山区",value:"萧山区"},{label:"余杭区",value:"余杭区"},{label:"富阳区",value:"富阳区"},{label:"临安区",value:"临安区"},{label:"临平区",value:"临平区"},{label:"钱塘区",value:"钱塘区"},{label:"桐庐县",value:"桐庐县"},{label:"淳安县",value:"淳安县"},{label:"建德市",value:"建德市"}]},{label:"宁波市",value:"宁波市",children:[{label:"海曙区",value:"海曙区"},{label:"江北区",value:"江北区"},{label:"北仑区",value:"北仑区"},{label:"镇海区",value:"镇海区"},{label:"鄞州区",value:"鄞州区"},{label:"奉化区",value:"奉化区"},{label:"象山县",value:"象山县"},{label:"宁海县",value:"宁海县"},{label:"余姚市",value:"余姚市"},{label:"慈溪市",value:"慈溪市"}]},{label:"温州市",value:"温州市",children:[{label:"鹿城区",value:"鹿城区"},{label:"龙湾区",value:"龙湾区"},{label:"瓯海区",value:"瓯海区"},{label:"洞头区",value:"洞头区"},{label:"永嘉县",value:"永嘉县"},{label:"平阳县",value:"平阳县"},{label:"苍南县",value:"苍南县"},{label:"文成县",value:"文成县"},{label:"泰顺县",value:"泰顺县"},{label:"瑞安市",value:"瑞安市"},{label:"乐清市",value:"乐清市"},{label:"龙港市",value:"龙港市"}]},{label:"嘉兴市",value:"嘉兴市",children:[{label:"南湖区",value:"南湖区"},{label:"秀洲区",value:"秀洲区"},{label:"嘉善县",value:"嘉善县"},{label:"海盐县",value:"海盐县"},{label:"海宁市",value:"海宁市"},{label:"平湖市",value:"平湖市"},{label:"桐乡市",value:"桐乡市"}]},{label:"湖州市",value:"湖州市",children:[{label:"吴兴区",value:"吴兴区"},{label:"南浔区",value:"南浔区"},{label:"德清县",value:"德清县"},{label:"长兴县",value:"长兴县"},{label:"安吉县",value:"安吉县"}]},{label:"绍兴市",value:"绍兴市",children:[{label:"越城区",value:"越城区"},{label:"柯桥区",value:"柯桥区"},{label:"上虞区",value:"上虞区"},{label:"新昌县",value:"新昌县"},{label:"诸暨市",value:"诸暨市"},{label:"嵊州市",value:"嵊州市"}]},{label:"金华市",value:"金华市",children:[{label:"婺城区",value:"婺城区"},{label:"金东区",value:"金东区"},{label:"武义县",value:"武义县"},{label:"浦江县",value:"浦江县"},{label:"磐安县",value:"磐安县"},{label:"兰溪市",value:"兰溪市"},{label:"义乌市",value:"义乌市"},{label:"东阳市",value:"东阳市"},{label:"永康市",value:"永康市"}]},{label:"衢州市",value:"衢州市",children:[{label:"柯城区",value:"柯城区"},{label:"衢江区",value:"衢江区"},{label:"常山县",value:"常山县"},{label:"开化县",value:"开化县"},{label:"龙游县",value:"龙游县"},{label:"江山市",value:"江山市"}]},{label:"舟山市",value:"舟山市",children:[{label:"定海区",value:"定海区"},{label:"普陀区",value:"普陀区"},{label:"岱山县",value:"岱山县"},{label:"嵊泗县",value:"嵊泗县"}]},{label:"台州市",value:"台州市",children:[{label:"椒江区",value:"椒江区"},{label:"黄岩区",value:"黄岩区"},{label:"路桥区",value:"路桥区"},{label:"三门县",value:"三门县"},{label:"天台县",value:"天台县"},{label:"仙居县",value:"仙居县"},{label:"温岭市",value:"温岭市"},{label:"临海市",value:"临海市"},{label:"玉环市",value:"玉环市"}]},{label:"丽水市",value:"丽水市",children:[{label:"莲都区",value:"莲都区"},{label:"青田县",value:"青田县"},{label:"缙云县",value:"缙云县"},{label:"遂昌县",value:"遂昌县"},{label:"松阳县",value:"松阳县"},{label:"云和县",value:"云和县"},{label:"庆元县",value:"庆元县"},{label:"景宁畲族自治县",value:"景宁畲族自治县"},{label:"龙泉市",value:"龙泉市"}]}]},{label:"安徽省",value:"安徽省",children:[{label:"合肥市",value:"合肥市",children:[{label:"瑶海区",value:"瑶海区"},{label:"庐阳区",value:"庐阳区"},{label:"蜀山区",value:"蜀山区"},{label:"包河区",value:"包河区"},{label:"长丰县",value:"长丰县"},{label:"肥东县",value:"肥东县"},{label:"肥西县",value:"肥西县"},{label:"庐江县",value:"庐江县"},{label:"合肥高新技术产业开发区",value:"合肥高新技术产业开发区"},{label:"合肥经济技术开发区",value:"合肥经济技术开发区"},{label:"合肥新站高新技术产业开发区",value:"合肥新站高新技术产业开发区"},{label:"巢湖市",value:"巢湖市"}]},{label:"芜湖市",value:"芜湖市",children:[{label:"镜湖区",value:"镜湖区"},{label:"鸠江区",value:"鸠江区"},{label:"弋江区",value:"弋江区"},{label:"湾沚区",value:"湾沚区"},{label:"繁昌区",value:"繁昌区"},{label:"南陵县",value:"南陵县"},{label:"芜湖经济技术开发区",value:"芜湖经济技术开发区"},{label:"安徽芜湖三山经济开发区",value:"安徽芜湖三山经济开发区"},{label:"无为市",value:"无为市"}]},{label:"蚌埠市",value:"蚌埠市",children:[{label:"龙子湖区",value:"龙子湖区"},{label:"蚌山区",value:"蚌山区"},{label:"禹会区",value:"禹会区"},{label:"淮上区",value:"淮上区"},{label:"怀远县",value:"怀远县"},{label:"五河县",value:"五河县"},{label:"固镇县",value:"固镇县"},{label:"蚌埠市高新技术开发区",value:"蚌埠市高新技术开发区"},{label:"蚌埠市经济开发区",value:"蚌埠市经济开发区"}]},{label:"淮南市",value:"淮南市",children:[{label:"大通区",value:"大通区"},{label:"田家庵区",value:"田家庵区"},{label:"谢家集区",value:"谢家集区"},{label:"八公山区",value:"八公山区"},{label:"潘集区",value:"潘集区"},{label:"凤台县",value:"凤台县"},{label:"寿县",value:"寿县"}]},{label:"马鞍山市",value:"马鞍山市",children:[{label:"花山区",value:"花山区"},{label:"雨山区",value:"雨山区"},{label:"博望区",value:"博望区"},{label:"当涂县",value:"当涂县"},{label:"含山县",value:"含山县"},{label:"和县",value:"和县"}]},{label:"淮北市",value:"淮北市",children:[{label:"杜集区",value:"杜集区"},{label:"相山区",value:"相山区"},{label:"烈山区",value:"烈山区"},{label:"濉溪县",value:"濉溪县"}]},{label:"铜陵市",value:"铜陵市",children:[{label:"铜官区",value:"铜官区"},{label:"义安区",value:"义安区"},{label:"郊区",value:"郊区"},{label:"枞阳县",value:"枞阳县"}]},{label:"安庆市",value:"安庆市",children:[{label:"迎江区",value:"迎江区"},{label:"大观区",value:"大观区"},{label:"宜秀区",value:"宜秀区"},{label:"怀宁县",value:"怀宁县"},{label:"太湖县",value:"太湖县"},{label:"宿松县",value:"宿松县"},{label:"望江县",value:"望江县"},{label:"岳西县",value:"岳西县"},{label:"安徽安庆经济开发区",value:"安徽安庆经济开发区"},{label:"桐城市",value:"桐城市"},{label:"潜山市",value:"潜山市"}]},{label:"黄山市",value:"黄山市",children:[{label:"屯溪区",value:"屯溪区"},{label:"黄山区",value:"黄山区"},{label:"徽州区",value:"徽州区"},{label:"歙县",value:"歙县"},{label:"休宁县",value:"休宁县"},{label:"黟县",value:"黟县"},{label:"祁门县",value:"祁门县"}]},{label:"滁州市",value:"滁州市",children:[{label:"琅琊区",value:"琅琊区"},{label:"南谯区",value:"南谯区"},{label:"来安县",value:"来安县"},{label:"全椒县",value:"全椒县"},{label:"定远县",value:"定远县"},{label:"凤阳县",value:"凤阳县"},{label:"中新苏滁高新技术产业开发区",value:"中新苏滁高新技术产业开发区"},{label:"滁州经济技术开发区",value:"滁州经济技术开发区"},{label:"天长市",value:"天长市"},{label:"明光市",value:"明光市"}]},{label:"阜阳市",value:"阜阳市",children:[{label:"颍州区",value:"颍州区"},{label:"颍东区",value:"颍东区"},{label:"颍泉区",value:"颍泉区"},{label:"临泉县",value:"临泉县"},{label:"太和县",value:"太和县"},{label:"阜南县",value:"阜南县"},{label:"颍上县",value:"颍上县"},{label:"阜阳合肥现代产业园区",value:"阜阳合肥现代产业园区"},{label:"阜阳经济技术开发区",value:"阜阳经济技术开发区"},{label:"界首市",value:"界首市"}]},{label:"宿州市",value:"宿州市",children:[{label:"埇桥区",value:"埇桥区"},{label:"砀山县",value:"砀山县"},{label:"萧县",value:"萧县"},{label:"灵璧县",value:"灵璧县"},{label:"泗县",value:"泗县"},{label:"宿州马鞍山现代产业园区",value:"宿州马鞍山现代产业园区"},{label:"宿州经济技术开发区",value:"宿州经济技术开发区"}]},{label:"六安市",value:"六安市",children:[{label:"金安区",value:"金安区"},{label:"裕安区",value:"裕安区"},{label:"叶集区",value:"叶集区"},{label:"霍邱县",value:"霍邱县"},{label:"舒城县",value:"舒城县"},{label:"金寨县",value:"金寨县"},{label:"霍山县",value:"霍山县"}]},{label:"亳州市",value:"亳州市",children:[{label:"谯城区",value:"谯城区"},{label:"涡阳县",value:"涡阳县"},{label:"蒙城县",value:"蒙城县"},{label:"利辛县",value:"利辛县"}]},{label:"池州市",value:"池州市",children:[{label:"贵池区",value:"贵池区"},{label:"东至县",value:"东至县"},{label:"石台县",value:"石台县"},{label:"青阳县",value:"青阳县"}]},{label:"宣城市",value:"宣城市",children:[{label:"宣州区",value:"宣州区"},{label:"郎溪县",value:"郎溪县"},{label:"泾县",value:"泾县"},{label:"绩溪县",value:"绩溪县"},{label:"旌德县",value:"旌德县"},{label:"宣城市经济开发区",value:"宣城市经济开发区"},{label:"宁国市",value:"宁国市"},{label:"广德市",value:"广德市"}]}]},{label:"福建省",value:"福建省",children:[{label:"福州市",value:"福州市",children:[{label:"鼓楼区",value:"鼓楼区"},{label:"台江区",value:"台江区"},{label:"仓山区",value:"仓山区"},{label:"马尾区",value:"马尾区"},{label:"晋安区",value:"晋安区"},{label:"长乐区",value:"长乐区"},{label:"闽侯县",value:"闽侯县"},{label:"连江县",value:"连江县"},{label:"罗源县",value:"罗源县"},{label:"闽清县",value:"闽清县"},{label:"永泰县",value:"永泰县"},{label:"平潭县",value:"平潭县"},{label:"福清市",value:"福清市"}]},{label:"厦门市",value:"厦门市",children:[{label:"思明区",value:"思明区"},{label:"海沧区",value:"海沧区"},{label:"湖里区",value:"湖里区"},{label:"集美区",value:"集美区"},{label:"同安区",value:"同安区"},{label:"翔安区",value:"翔安区"}]},{label:"莆田市",value:"莆田市",children:[{label:"城厢区",value:"城厢区"},{label:"涵江区",value:"涵江区"},{label:"荔城区",value:"荔城区"},{label:"秀屿区",value:"秀屿区"},{label:"仙游县",value:"仙游县"}]},{label:"三明市",value:"三明市",children:[{label:"三元区",value:"三元区"},{label:"沙县区",value:"沙县区"},{label:"明溪县",value:"明溪县"},{label:"清流县",value:"清流县"},{label:"宁化县",value:"宁化县"},{label:"大田县",value:"大田县"},{label:"尤溪县",value:"尤溪县"},{label:"将乐县",value:"将乐县"},{label:"泰宁县",value:"泰宁县"},{label:"建宁县",value:"建宁县"},{label:"永安市",value:"永安市"}]},{label:"泉州市",value:"泉州市",children:[{label:"鲤城区",value:"鲤城区"},{label:"丰泽区",value:"丰泽区"},{label:"洛江区",value:"洛江区"},{label:"泉港区",value:"泉港区"},{label:"惠安县",value:"惠安县"},{label:"安溪县",value:"安溪县"},{label:"永春县",value:"永春县"},{label:"德化县",value:"德化县"},{label:"金门县",value:"金门县"},{label:"石狮市",value:"石狮市"},{label:"晋江市",value:"晋江市"},{label:"南安市",value:"南安市"}]},{label:"漳州市",value:"漳州市",children:[{label:"芗城区",value:"芗城区"},{label:"龙文区",value:"龙文区"},{label:"龙海区",value:"龙海区"},{label:"长泰区",value:"长泰区"},{label:"云霄县",value:"云霄县"},{label:"漳浦县",value:"漳浦县"},{label:"诏安县",value:"诏安县"},{label:"东山县",value:"东山县"},{label:"南靖县",value:"南靖县"},{label:"平和县",value:"平和县"},{label:"华安县",value:"华安县"}]},{label:"南平市",value:"南平市",children:[{label:"延平区",value:"延平区"},{label:"建阳区",value:"建阳区"},{label:"顺昌县",value:"顺昌县"},{label:"浦城县",value:"浦城县"},{label:"光泽县",value:"光泽县"},{label:"松溪县",value:"松溪县"},{label:"政和县",value:"政和县"},{label:"邵武市",value:"邵武市"},{label:"武夷山市",value:"武夷山市"},{label:"建瓯市",value:"建瓯市"}]},{label:"龙岩市",value:"龙岩市",children:[{label:"新罗区",value:"新罗区"},{label:"永定区",value:"永定区"},{label:"长汀县",value:"长汀县"},{label:"上杭县",value:"上杭县"},{label:"武平县",value:"武平县"},{label:"连城县",value:"连城县"},{label:"漳平市",value:"漳平市"}]},{label:"宁德市",value:"宁德市",children:[{label:"蕉城区",value:"蕉城区"},{label:"霞浦县",value:"霞浦县"},{label:"古田县",value:"古田县"},{label:"屏南县",value:"屏南县"},{label:"寿宁县",value:"寿宁县"},{label:"周宁县",value:"周宁县"},{label:"柘荣县",value:"柘荣县"},{label:"福安市",value:"福安市"},{label:"福鼎市",value:"福鼎市"}]}]},{label:"江西省",value:"江西省",children:[{label:"南昌市",value:"南昌市",children:[{label:"东湖区",value:"东湖区"},{label:"西湖区",value:"西湖区"},{label:"青云谱区",value:"青云谱区"},{label:"青山湖区",value:"青山湖区"},{label:"新建区",value:"新建区"},{label:"红谷滩区",value:"红谷滩区"},{label:"南昌县",value:"南昌县"},{label:"安义县",value:"安义县"},{label:"进贤县",value:"进贤县"}]},{label:"景德镇市",value:"景德镇市",children:[{label:"昌江区",value:"昌江区"},{label:"珠山区",value:"珠山区"},{label:"浮梁县",value:"浮梁县"},{label:"乐平市",value:"乐平市"}]},{label:"萍乡市",value:"萍乡市",children:[{label:"安源区",value:"安源区"},{label:"湘东区",value:"湘东区"},{label:"莲花县",value:"莲花县"},{label:"上栗县",value:"上栗县"},{label:"芦溪县",value:"芦溪县"}]},{label:"九江市",value:"九江市",children:[{label:"濂溪区",value:"濂溪区"},{label:"浔阳区",value:"浔阳区"},{label:"柴桑区",value:"柴桑区"},{label:"武宁县",value:"武宁县"},{label:"修水县",value:"修水县"},{label:"永修县",value:"永修县"},{label:"德安县",value:"德安县"},{label:"都昌县",value:"都昌县"},{label:"湖口县",value:"湖口县"},{label:"彭泽县",value:"彭泽县"},{label:"瑞昌市",value:"瑞昌市"},{label:"共青城市",value:"共青城市"},{label:"庐山市",value:"庐山市"}]},{label:"新余市",value:"新余市",children:[{label:"渝水区",value:"渝水区"},{label:"分宜县",value:"分宜县"}]},{label:"鹰潭市",value:"鹰潭市",children:[{label:"月湖区",value:"月湖区"},{label:"余江区",value:"余江区"},{label:"贵溪市",value:"贵溪市"}]},{label:"赣州市",value:"赣州市",children:[{label:"章贡区",value:"章贡区"},{label:"南康区",value:"南康区"},{label:"赣县区",value:"赣县区"},{label:"信丰县",value:"信丰县"},{label:"大余县",value:"大余县"},{label:"上犹县",value:"上犹县"},{label:"崇义县",value:"崇义县"},{label:"安远县",value:"安远县"},{label:"定南县",value:"定南县"},{label:"全南县",value:"全南县"},{label:"宁都县",value:"宁都县"},{label:"于都县",value:"于都县"},{label:"兴国县",value:"兴国县"},{label:"会昌县",value:"会昌县"},{label:"寻乌县",value:"寻乌县"},{label:"石城县",value:"石城县"},{label:"瑞金市",value:"瑞金市"},{label:"龙南市",value:"龙南市"}]},{label:"吉安市",value:"吉安市",children:[{label:"吉州区",value:"吉州区"},{label:"青原区",value:"青原区"},{label:"吉安县",value:"吉安县"},{label:"吉水县",value:"吉水县"},{label:"峡江县",value:"峡江县"},{label:"新干县",value:"新干县"},{label:"永丰县",value:"永丰县"},{label:"泰和县",value:"泰和县"},{label:"遂川县",value:"遂川县"},{label:"万安县",value:"万安县"},{label:"安福县",value:"安福县"},{label:"永新县",value:"永新县"},{label:"井冈山市",value:"井冈山市"}]},{label:"宜春市",value:"宜春市",children:[{label:"袁州区",value:"袁州区"},{label:"奉新县",value:"奉新县"},{label:"万载县",value:"万载县"},{label:"上高县",value:"上高县"},{label:"宜丰县",value:"宜丰县"},{label:"靖安县",value:"靖安县"},{label:"铜鼓县",value:"铜鼓县"},{label:"丰城市",value:"丰城市"},{label:"樟树市",value:"樟树市"},{label:"高安市",value:"高安市"}]},{label:"抚州市",value:"抚州市",children:[{label:"临川区",value:"临川区"},{label:"东乡区",value:"东乡区"},{label:"南城县",value:"南城县"},{label:"黎川县",value:"黎川县"},{label:"南丰县",value:"南丰县"},{label:"崇仁县",value:"崇仁县"},{label:"乐安县",value:"乐安县"},{label:"宜黄县",value:"宜黄县"},{label:"金溪县",value:"金溪县"},{label:"资溪县",value:"资溪县"},{label:"广昌县",value:"广昌县"}]},{label:"上饶市",value:"上饶市",children:[{label:"信州区",value:"信州区"},{label:"广丰区",value:"广丰区"},{label:"广信区",value:"广信区"},{label:"玉山县",value:"玉山县"},{label:"铅山县",value:"铅山县"},{label:"横峰县",value:"横峰县"},{label:"弋阳县",value:"弋阳县"},{label:"余干县",value:"余干县"},{label:"鄱阳县",value:"鄱阳县"},{label:"万年县",value:"万年县"},{label:"婺源县",value:"婺源县"},{label:"德兴市",value:"德兴市"}]}]},{label:"山东省",value:"山东省",children:[{label:"济南市",value:"济南市",children:[{label:"历下区",value:"历下区"},{label:"市中区",value:"市中区"},{label:"槐荫区",value:"槐荫区"},{label:"天桥区",value:"天桥区"},{label:"历城区",value:"历城区"},{label:"长清区",value:"长清区"},{label:"章丘区",value:"章丘区"},{label:"济阳区",value:"济阳区"},{label:"莱芜区",value:"莱芜区"},{label:"钢城区",value:"钢城区"},{label:"平阴县",value:"平阴县"},{label:"商河县",value:"商河县"},{label:"济南高新技术产业开发区",value:"济南高新技术产业开发区"}]},{label:"青岛市",value:"青岛市",children:[{label:"市南区",value:"市南区"},{label:"市北区",value:"市北区"},{label:"黄岛区",value:"黄岛区"},{label:"崂山区",value:"崂山区"},{label:"李沧区",value:"李沧区"},{label:"城阳区",value:"城阳区"},{label:"即墨区",value:"即墨区"},{label:"胶州市",value:"胶州市"},{label:"平度市",value:"平度市"},{label:"莱西市",value:"莱西市"}]},{label:"淄博市",value:"淄博市",children:[{label:"淄川区",value:"淄川区"},{label:"张店区",value:"张店区"},{label:"博山区",value:"博山区"},{label:"临淄区",value:"临淄区"},{label:"周村区",value:"周村区"},{label:"桓台县",value:"桓台县"},{label:"高青县",value:"高青县"},{label:"沂源县",value:"沂源县"}]},{label:"枣庄市",value:"枣庄市",children:[{label:"市中区",value:"市中区"},{label:"薛城区",value:"薛城区"},{label:"峄城区",value:"峄城区"},{label:"台儿庄区",value:"台儿庄区"},{label:"山亭区",value:"山亭区"},{label:"滕州市",value:"滕州市"}]},{label:"东营市",value:"东营市",children:[{label:"东营区",value:"东营区"},{label:"河口区",value:"河口区"},{label:"垦利区",value:"垦利区"},{label:"利津县",value:"利津县"},{label:"广饶县",value:"广饶县"},{label:"东营经济技术开发区",value:"东营经济技术开发区"},{label:"东营港经济开发区",value:"东营港经济开发区"}]},{label:"烟台市",value:"烟台市",children:[{label:"芝罘区",value:"芝罘区"},{label:"福山区",value:"福山区"},{label:"牟平区",value:"牟平区"},{label:"莱山区",value:"莱山区"},{label:"蓬莱区",value:"蓬莱区"},{label:"烟台高新技术产业开发区",value:"烟台高新技术产业开发区"},{label:"烟台经济技术开发区",value:"烟台经济技术开发区"},{label:"龙口市",value:"龙口市"},{label:"莱阳市",value:"莱阳市"},{label:"莱州市",value:"莱州市"},{label:"招远市",value:"招远市"},{label:"栖霞市",value:"栖霞市"},{label:"海阳市",value:"海阳市"}]},{label:"潍坊市",value:"潍坊市",children:[{label:"潍城区",value:"潍城区"},{label:"寒亭区",value:"寒亭区"},{label:"坊子区",value:"坊子区"},{label:"奎文区",value:"奎文区"},{label:"临朐县",value:"临朐县"},{label:"昌乐县",value:"昌乐县"},{label:"潍坊滨海经济技术开发区",value:"潍坊滨海经济技术开发区"},{label:"青州市",value:"青州市"},{label:"诸城市",value:"诸城市"},{label:"寿光市",value:"寿光市"},{label:"安丘市",value:"安丘市"},{label:"高密市",value:"高密市"},{label:"昌邑市",value:"昌邑市"}]},{label:"济宁市",value:"济宁市",children:[{label:"任城区",value:"任城区"},{label:"兖州区",value:"兖州区"},{label:"微山县",value:"微山县"},{label:"鱼台县",value:"鱼台县"},{label:"金乡县",value:"金乡县"},{label:"嘉祥县",value:"嘉祥县"},{label:"汶上县",value:"汶上县"},{label:"泗水县",value:"泗水县"},{label:"梁山县",value:"梁山县"},{label:"济宁高新技术产业开发区",value:"济宁高新技术产业开发区"},{label:"曲阜市",value:"曲阜市"},{label:"邹城市",value:"邹城市"}]},{label:"泰安市",value:"泰安市",children:[{label:"泰山区",value:"泰山区"},{label:"岱岳区",value:"岱岳区"},{label:"宁阳县",value:"宁阳县"},{label:"东平县",value:"东平县"},{label:"新泰市",value:"新泰市"},{label:"肥城市",value:"肥城市"}]},{label:"威海市",value:"威海市",children:[{label:"环翠区",value:"环翠区"},{label:"文登区",value:"文登区"},{label:"威海火炬高技术产业开发区",value:"威海火炬高技术产业开发区"},{label:"威海经济技术开发区",value:"威海经济技术开发区"},{label:"威海临港经济技术开发区",value:"威海临港经济技术开发区"},{label:"荣成市",value:"荣成市"},{label:"乳山市",value:"乳山市"}]},{label:"日照市",value:"日照市",children:[{label:"东港区",value:"东港区"},{label:"岚山区",value:"岚山区"},{label:"五莲县",value:"五莲县"},{label:"莒县",value:"莒县"},{label:"日照经济技术开发区",value:"日照经济技术开发区"}]},{label:"临沂市",value:"临沂市",children:[{label:"兰山区",value:"兰山区"},{label:"罗庄区",value:"罗庄区"},{label:"河东区",value:"河东区"},{label:"沂南县",value:"沂南县"},{label:"郯城县",value:"郯城县"},{label:"沂水县",value:"沂水县"},{label:"兰陵县",value:"兰陵县"},{label:"费县",value:"费县"},{label:"平邑县",value:"平邑县"},{label:"莒南县",value:"莒南县"},{label:"蒙阴县",value:"蒙阴县"},{label:"临沭县",value:"临沭县"},{label:"临沂高新技术产业开发区",value:"临沂高新技术产业开发区"}]},{label:"德州市",value:"德州市",children:[{label:"德城区",value:"德城区"},{label:"陵城区",value:"陵城区"},{label:"宁津县",value:"宁津县"},{label:"庆云县",value:"庆云县"},{label:"临邑县",value:"临邑县"},{label:"齐河县",value:"齐河县"},{label:"平原县",value:"平原县"},{label:"夏津县",value:"夏津县"},{label:"武城县",value:"武城县"},{label:"德州天衢新区",value:"德州天衢新区"},{label:"乐陵市",value:"乐陵市"},{label:"禹城市",value:"禹城市"}]},{label:"聊城市",value:"聊城市",children:[{label:"东昌府区",value:"东昌府区"},{label:"茌平区",value:"茌平区"},{label:"阳谷县",value:"阳谷县"},{label:"莘县",value:"莘县"},{label:"东阿县",value:"东阿县"},{label:"冠县",value:"冠县"},{label:"高唐县",value:"高唐县"},{label:"临清市",value:"临清市"}]},{label:"滨州市",value:"滨州市",children:[{label:"滨城区",value:"滨城区"},{label:"沾化区",value:"沾化区"},{label:"惠民县",value:"惠民县"},{label:"阳信县",value:"阳信县"},{label:"无棣县",value:"无棣县"},{label:"博兴县",value:"博兴县"},{label:"邹平市",value:"邹平市"}]},{label:"菏泽市",value:"菏泽市",children:[{label:"牡丹区",value:"牡丹区"},{label:"定陶区",value:"定陶区"},{label:"曹县",value:"曹县"},{label:"单县",value:"单县"},{label:"成武县",value:"成武县"},{label:"巨野县",value:"巨野县"},{label:"郓城县",value:"郓城县"},{label:"鄄城县",value:"鄄城县"},{label:"东明县",value:"东明县"},{label:"菏泽经济技术开发区",value:"菏泽经济技术开发区"},{label:"菏泽高新技术开发区",value:"菏泽高新技术开发区"}]}]},{label:"河南省",value:"河南省",children:[{label:"郑州市",value:"郑州市",children:[{label:"中原区",value:"中原区"},{label:"二七区",value:"二七区"},{label:"管城回族区",value:"管城回族区"},{label:"金水区",value:"金水区"},{label:"上街区",value:"上街区"},{label:"惠济区",value:"惠济区"},{label:"中牟县",value:"中牟县"},{label:"郑州经济技术开发区",value:"郑州经济技术开发区"},{label:"郑州高新技术产业开发区",value:"郑州高新技术产业开发区"},{label:"郑州航空港经济综合实验区",value:"郑州航空港经济综合实验区"},{label:"巩义市",value:"巩义市"},{label:"荥阳市",value:"荥阳市"},{label:"新密市",value:"新密市"},{label:"新郑市",value:"新郑市"},{label:"登封市",value:"登封市"}]},{label:"开封市",value:"开封市",children:[{label:"龙亭区",value:"龙亭区"},{label:"顺河回族区",value:"顺河回族区"},{label:"鼓楼区",value:"鼓楼区"},{label:"禹王台区",value:"禹王台区"},{label:"祥符区",value:"祥符区"},{label:"杞县",value:"杞县"},{label:"通许县",value:"通许县"},{label:"尉氏县",value:"尉氏县"},{label:"兰考县",value:"兰考县"}]},{label:"洛阳市",value:"洛阳市",children:[{label:"老城区",value:"老城区"},{label:"西工区",value:"西工区"},{label:"瀍河回族区",value:"瀍河回族区"},{label:"涧西区",value:"涧西区"},{label:"偃师区",value:"偃师区"},{label:"孟津区",value:"孟津区"},{label:"洛龙区",value:"洛龙区"},{label:"新安县",value:"新安县"},{label:"栾川县",value:"栾川县"},{label:"嵩县",value:"嵩县"},{label:"汝阳县",value:"汝阳县"},{label:"宜阳县",value:"宜阳县"},{label:"洛宁县",value:"洛宁县"},{label:"伊川县",value:"伊川县"},{label:"洛阳高新技术产业开发区",value:"洛阳高新技术产业开发区"}]},{label:"平顶山市",value:"平顶山市",children:[{label:"新华区",value:"新华区"},{label:"卫东区",value:"卫东区"},{label:"石龙区",value:"石龙区"},{label:"湛河区",value:"湛河区"},{label:"宝丰县",value:"宝丰县"},{label:"叶县",value:"叶县"},{label:"鲁山县",value:"鲁山县"},{label:"郏县",value:"郏县"},{label:"平顶山高新技术产业开发区",value:"平顶山高新技术产业开发区"},{label:"平顶山市城乡一体化示范区",value:"平顶山市城乡一体化示范区"},{label:"舞钢市",value:"舞钢市"},{label:"汝州市",value:"汝州市"}]},{label:"安阳市",value:"安阳市",children:[{label:"文峰区",value:"文峰区"},{label:"北关区",value:"北关区"},{label:"殷都区",value:"殷都区"},{label:"龙安区",value:"龙安区"},{label:"安阳县",value:"安阳县"},{label:"汤阴县",value:"汤阴县"},{label:"滑县",value:"滑县"},{label:"内黄县",value:"内黄县"},{label:"安阳高新技术产业开发区",value:"安阳高新技术产业开发区"},{label:"林州市",value:"林州市"}]},{label:"鹤壁市",value:"鹤壁市",children:[{label:"鹤山区",value:"鹤山区"},{label:"山城区",value:"山城区"},{label:"淇滨区",value:"淇滨区"},{label:"浚县",value:"浚县"},{label:"淇县",value:"淇县"},{label:"鹤壁经济技术开发区",value:"鹤壁经济技术开发区"}]},{label:"新乡市",value:"新乡市",children:[{label:"红旗区",value:"红旗区"},{label:"卫滨区",value:"卫滨区"},{label:"凤泉区",value:"凤泉区"},{label:"牧野区",value:"牧野区"},{label:"新乡县",value:"新乡县"},{label:"获嘉县",value:"获嘉县"},{label:"原阳县",value:"原阳县"},{label:"延津县",value:"延津县"},{label:"封丘县",value:"封丘县"},{label:"新乡高新技术产业开发区",value:"新乡高新技术产业开发区"},{label:"新乡经济技术开发区",value:"新乡经济技术开发区"},{label:"新乡市平原城乡一体化示范区",value:"新乡市平原城乡一体化示范区"},{label:"卫辉市",value:"卫辉市"},{label:"辉县市",value:"辉县市"},{label:"长垣市",value:"长垣市"}]},{label:"焦作市",value:"焦作市",children:[{label:"解放区",value:"解放区"},{label:"中站区",value:"中站区"},{label:"马村区",value:"马村区"},{label:"山阳区",value:"山阳区"},{label:"修武县",value:"修武县"},{label:"博爱县",value:"博爱县"},{label:"武陟县",value:"武陟县"},{label:"温县",value:"温县"},{label:"焦作城乡一体化示范区",value:"焦作城乡一体化示范区"},{label:"沁阳市",value:"沁阳市"},{label:"孟州市",value:"孟州市"}]},{label:"濮阳市",value:"濮阳市",children:[{label:"华龙区",value:"华龙区"},{label:"清丰县",value:"清丰县"},{label:"南乐县",value:"南乐县"},{label:"范县",value:"范县"},{label:"台前县",value:"台前县"},{label:"濮阳县",value:"濮阳县"},{label:"河南濮阳工业园区",value:"河南濮阳工业园区"},{label:"濮阳经济技术开发区",value:"濮阳经济技术开发区"}]},{label:"许昌市",value:"许昌市",children:[{label:"魏都区",value:"魏都区"},{label:"建安区",value:"建安区"},{label:"鄢陵县",value:"鄢陵县"},{label:"襄城县",value:"襄城县"},{label:"许昌经济技术开发区",value:"许昌经济技术开发区"},{label:"禹州市",value:"禹州市"},{label:"长葛市",value:"长葛市"}]},{label:"漯河市",value:"漯河市",children:[{label:"源汇区",value:"源汇区"},{label:"郾城区",value:"郾城区"},{label:"召陵区",value:"召陵区"},{label:"舞阳县",value:"舞阳县"},{label:"临颍县",value:"临颍县"},{label:"漯河经济技术开发区",value:"漯河经济技术开发区"}]},{label:"三门峡市",value:"三门峡市",children:[{label:"湖滨区",value:"湖滨区"},{label:"陕州区",value:"陕州区"},{label:"渑池县",value:"渑池县"},{label:"卢氏县",value:"卢氏县"},{label:"河南三门峡经济开发区",value:"河南三门峡经济开发区"},{label:"义马市",value:"义马市"},{label:"灵宝市",value:"灵宝市"}]},{label:"南阳市",value:"南阳市",children:[{label:"宛城区",value:"宛城区"},{label:"卧龙区",value:"卧龙区"},{label:"南召县",value:"南召县"},{label:"方城县",value:"方城县"},{label:"西峡县",value:"西峡县"},{label:"镇平县",value:"镇平县"},{label:"内乡县",value:"内乡县"},{label:"淅川县",value:"淅川县"},{label:"社旗县",value:"社旗县"},{label:"唐河县",value:"唐河县"},{label:"新野县",value:"新野县"},{label:"桐柏县",value:"桐柏县"},{label:"南阳高新技术产业开发区",value:"南阳高新技术产业开发区"},{label:"南阳市城乡一体化示范区",value:"南阳市城乡一体化示范区"},{label:"邓州市",value:"邓州市"}]},{label:"商丘市",value:"商丘市",children:[{label:"梁园区",value:"梁园区"},{label:"睢阳区",value:"睢阳区"},{label:"民权县",value:"民权县"},{label:"睢县",value:"睢县"},{label:"宁陵县",value:"宁陵县"},{label:"柘城县",value:"柘城县"},{label:"虞城县",value:"虞城县"},{label:"夏邑县",value:"夏邑县"},{label:"豫东综合物流产业聚集区",value:"豫东综合物流产业聚集区"},{label:"河南商丘经济开发区",value:"河南商丘经济开发区"},{label:"永城市",value:"永城市"}]},{label:"信阳市",value:"信阳市",children:[{label:"浉河区",value:"浉河区"},{label:"平桥区",value:"平桥区"},{label:"罗山县",value:"罗山县"},{label:"光山县",value:"光山县"},{label:"新县",value:"新县"},{label:"商城县",value:"商城县"},{label:"固始县",value:"固始县"},{label:"潢川县",value:"潢川县"},{label:"淮滨县",value:"淮滨县"},{label:"息县",value:"息县"},{label:"信阳高新技术产业开发区",value:"信阳高新技术产业开发区"}]},{label:"周口市",value:"周口市",children:[{label:"川汇区",value:"川汇区"},{label:"淮阳区",value:"淮阳区"},{label:"扶沟县",value:"扶沟县"},{label:"西华县",value:"西华县"},{label:"商水县",value:"商水县"},{label:"沈丘县",value:"沈丘县"},{label:"郸城县",value:"郸城县"},{label:"太康县",value:"太康县"},{label:"鹿邑县",value:"鹿邑县"},{label:"周口临港开发区",value:"周口临港开发区"},{label:"项城市",value:"项城市"}]},{label:"驻马店市",value:"驻马店市",children:[{label:"驿城区",value:"驿城区"},{label:"西平县",value:"西平县"},{label:"上蔡县",value:"上蔡县"},{label:"平舆县",value:"平舆县"},{label:"正阳县",value:"正阳县"},{label:"确山县",value:"确山县"},{label:"泌阳县",value:"泌阳县"},{label:"汝南县",value:"汝南县"},{label:"遂平县",value:"遂平县"},{label:"新蔡县",value:"新蔡县"},{label:"河南驻马店经济开发区",value:"河南驻马店经济开发区"}]},{label:"省直辖县级行政区划",value:"省直辖县级行政区划",children:[{label:"济源市",value:"济源市"}]}]},{label:"湖北省",value:"湖北省",children:[{label:"武汉市",value:"武汉市",children:[{label:"江岸区",value:"江岸区"},{label:"江汉区",value:"江汉区"},{label:"硚口区",value:"硚口区"},{label:"汉阳区",value:"汉阳区"},{label:"武昌区",value:"武昌区"},{label:"青山区",value:"青山区"},{label:"洪山区",value:"洪山区"},{label:"东西湖区",value:"东西湖区"},{label:"汉南区",value:"汉南区"},{label:"蔡甸区",value:"蔡甸区"},{label:"江夏区",value:"江夏区"},{label:"黄陂区",value:"黄陂区"},{label:"新洲区",value:"新洲区"}]},{label:"黄石市",value:"黄石市",children:[{label:"黄石港区",value:"黄石港区"},{label:"西塞山区",value:"西塞山区"},{label:"下陆区",value:"下陆区"},{label:"铁山区",value:"铁山区"},{label:"阳新县",value:"阳新县"},{label:"大冶市",value:"大冶市"}]},{label:"十堰市",value:"十堰市",children:[{label:"茅箭区",value:"茅箭区"},{label:"张湾区",value:"张湾区"},{label:"郧阳区",value:"郧阳区"},{label:"郧西县",value:"郧西县"},{label:"竹山县",value:"竹山县"},{label:"竹溪县",value:"竹溪县"},{label:"房县",value:"房县"},{label:"丹江口市",value:"丹江口市"}]},{label:"宜昌市",value:"宜昌市",children:[{label:"西陵区",value:"西陵区"},{label:"伍家岗区",value:"伍家岗区"},{label:"点军区",value:"点军区"},{label:"猇亭区",value:"猇亭区"},{label:"夷陵区",value:"夷陵区"},{label:"远安县",value:"远安县"},{label:"兴山县",value:"兴山县"},{label:"秭归县",value:"秭归县"},{label:"长阳土家族自治县",value:"长阳土家族自治县"},{label:"五峰土家族自治县",value:"五峰土家族自治县"},{label:"宜都市",value:"宜都市"},{label:"当阳市",value:"当阳市"},{label:"枝江市",value:"枝江市"}]},{label:"襄阳市",value:"襄阳市",children:[{label:"襄城区",value:"襄城区"},{label:"樊城区",value:"樊城区"},{label:"襄州区",value:"襄州区"},{label:"南漳县",value:"南漳县"},{label:"谷城县",value:"谷城县"},{label:"保康县",value:"保康县"},{label:"老河口市",value:"老河口市"},{label:"枣阳市",value:"枣阳市"},{label:"宜城市",value:"宜城市"}]},{label:"鄂州市",value:"鄂州市",children:[{label:"梁子湖区",value:"梁子湖区"},{label:"华容区",value:"华容区"},{label:"鄂城区",value:"鄂城区"}]},{label:"荆门市",value:"荆门市",children:[{label:"东宝区",value:"东宝区"},{label:"掇刀区",value:"掇刀区"},{label:"沙洋县",value:"沙洋县"},{label:"钟祥市",value:"钟祥市"},{label:"京山市",value:"京山市"}]},{label:"孝感市",value:"孝感市",children:[{label:"孝南区",value:"孝南区"},{label:"孝昌县",value:"孝昌县"},{label:"大悟县",value:"大悟县"},{label:"云梦县",value:"云梦县"},{label:"应城市",value:"应城市"},{label:"安陆市",value:"安陆市"},{label:"汉川市",value:"汉川市"}]},{label:"荆州市",value:"荆州市",children:[{label:"沙市区",value:"沙市区"},{label:"荆州区",value:"荆州区"},{label:"公安县",value:"公安县"},{label:"江陵县",value:"江陵县"},{label:"荆州经济技术开发区",value:"荆州经济技术开发区"},{label:"石首市",value:"石首市"},{label:"洪湖市",value:"洪湖市"},{label:"松滋市",value:"松滋市"},{label:"监利市",value:"监利市"}]},{label:"黄冈市",value:"黄冈市",children:[{label:"黄州区",value:"黄州区"},{label:"团风县",value:"团风县"},{label:"红安县",value:"红安县"},{label:"罗田县",value:"罗田县"},{label:"英山县",value:"英山县"},{label:"浠水县",value:"浠水县"},{label:"蕲春县",value:"蕲春县"},{label:"黄梅县",value:"黄梅县"},{label:"龙感湖管理区",value:"龙感湖管理区"},{label:"麻城市",value:"麻城市"},{label:"武穴市",value:"武穴市"}]},{label:"咸宁市",value:"咸宁市",children:[{label:"咸安区",value:"咸安区"},{label:"嘉鱼县",value:"嘉鱼县"},{label:"通城县",value:"通城县"},{label:"崇阳县",value:"崇阳县"},{label:"通山县",value:"通山县"},{label:"赤壁市",value:"赤壁市"}]},{label:"随州市",value:"随州市",children:[{label:"曾都区",value:"曾都区"},{label:"随县",value:"随县"},{label:"广水市",value:"广水市"}]},{label:"恩施土家族苗族自治州",value:"恩施土家族苗族自治州",children:[{label:"恩施市",value:"恩施市"},{label:"利川市",value:"利川市"},{label:"建始县",value:"建始县"},{label:"巴东县",value:"巴东县"},{label:"宣恩县",value:"宣恩县"},{label:"咸丰县",value:"咸丰县"},{label:"来凤县",value:"来凤县"},{label:"鹤峰县",value:"鹤峰县"}]},{label:"省直辖县级行政区划",value:"省直辖县级行政区划",children:[{label:"仙桃市",value:"仙桃市"},{label:"潜江市",value:"潜江市"},{label:"天门市",value:"天门市"},{label:"神农架林区",value:"神农架林区"}]}]},{label:"湖南省",value:"湖南省",children:[{label:"长沙市",value:"长沙市",children:[{label:"芙蓉区",value:"芙蓉区"},{label:"天心区",value:"天心区"},{label:"岳麓区",value:"岳麓区"},{label:"开福区",value:"开福区"},{label:"雨花区",value:"雨花区"},{label:"望城区",value:"望城区"},{label:"长沙县",value:"长沙县"},{label:"浏阳市",value:"浏阳市"},{label:"宁乡市",value:"宁乡市"}]},{label:"株洲市",value:"株洲市",children:[{label:"荷塘区",value:"荷塘区"},{label:"芦淞区",value:"芦淞区"},{label:"石峰区",value:"石峰区"},{label:"天元区",value:"天元区"},{label:"渌口区",value:"渌口区"},{label:"攸县",value:"攸县"},{label:"茶陵县",value:"茶陵县"},{label:"炎陵县",value:"炎陵县"},{label:"醴陵市",value:"醴陵市"}]},{label:"湘潭市",value:"湘潭市",children:[{label:"雨湖区",value:"雨湖区"},{label:"岳塘区",value:"岳塘区"},{label:"湘潭县",value:"湘潭县"},{label:"湖南湘潭高新技术产业园区",value:"湖南湘潭高新技术产业园区"},{label:"湘潭昭山示范区",value:"湘潭昭山示范区"},{label:"湘潭九华示范区",value:"湘潭九华示范区"},{label:"湘乡市",value:"湘乡市"},{label:"韶山市",value:"韶山市"}]},{label:"衡阳市",value:"衡阳市",children:[{label:"珠晖区",value:"珠晖区"},{label:"雁峰区",value:"雁峰区"},{label:"石鼓区",value:"石鼓区"},{label:"蒸湘区",value:"蒸湘区"},{label:"南岳区",value:"南岳区"},{label:"衡阳县",value:"衡阳县"},{label:"衡南县",value:"衡南县"},{label:"衡山县",value:"衡山县"},{label:"衡东县",value:"衡东县"},{label:"祁东县",value:"祁东县"},{label:"湖南衡阳松木经济开发区",value:"湖南衡阳松木经济开发区"},{label:"湖南衡阳高新技术产业园区",value:"湖南衡阳高新技术产业园区"},{label:"耒阳市",value:"耒阳市"},{label:"常宁市",value:"常宁市"}]},{label:"邵阳市",value:"邵阳市",children:[{label:"双清区",value:"双清区"},{label:"大祥区",value:"大祥区"},{label:"北塔区",value:"北塔区"},{label:"新邵县",value:"新邵县"},{label:"邵阳县",value:"邵阳县"},{label:"隆回县",value:"隆回县"},{label:"洞口县",value:"洞口县"},{label:"绥宁县",value:"绥宁县"},{label:"新宁县",value:"新宁县"},{label:"城步苗族自治县",value:"城步苗族自治县"},{label:"武冈市",value:"武冈市"},{label:"邵东市",value:"邵东市"}]},{label:"岳阳市",value:"岳阳市",children:[{label:"岳阳楼区",value:"岳阳楼区"},{label:"云溪区",value:"云溪区"},{label:"君山区",value:"君山区"},{label:"岳阳县",value:"岳阳县"},{label:"华容县",value:"华容县"},{label:"湘阴县",value:"湘阴县"},{label:"平江县",value:"平江县"},{label:"岳阳市屈原管理区",value:"岳阳市屈原管理区"},{label:"汨罗市",value:"汨罗市"},{label:"临湘市",value:"临湘市"}]},{label:"常德市",value:"常德市",children:[{label:"武陵区",value:"武陵区"},{label:"鼎城区",value:"鼎城区"},{label:"安乡县",value:"安乡县"},{label:"汉寿县",value:"汉寿县"},{label:"澧县",value:"澧县"},{label:"临澧县",value:"临澧县"},{label:"桃源县",value:"桃源县"},{label:"石门县",value:"石门县"},{label:"常德市西洞庭管理区",value:"常德市西洞庭管理区"},{label:"津市市",value:"津市市"}]},{label:"张家界市",value:"张家界市",children:[{label:"永定区",value:"永定区"},{label:"武陵源区",value:"武陵源区"},{label:"慈利县",value:"慈利县"},{label:"桑植县",value:"桑植县"}]},{label:"益阳市",value:"益阳市",children:[{label:"资阳区",value:"资阳区"},{label:"赫山区",value:"赫山区"},{label:"南县",value:"南县"},{label:"桃江县",value:"桃江县"},{label:"安化县",value:"安化县"},{label:"益阳市大通湖管理区",value:"益阳市大通湖管理区"},{label:"湖南益阳高新技术产业园区",value:"湖南益阳高新技术产业园区"},{label:"沅江市",value:"沅江市"}]},{label:"郴州市",value:"郴州市",children:[{label:"北湖区",value:"北湖区"},{label:"苏仙区",value:"苏仙区"},{label:"桂阳县",value:"桂阳县"},{label:"宜章县",value:"宜章县"},{label:"永兴县",value:"永兴县"},{label:"嘉禾县",value:"嘉禾县"},{label:"临武县",value:"临武县"},{label:"汝城县",value:"汝城县"},{label:"桂东县",value:"桂东县"},{label:"安仁县",value:"安仁县"},{label:"资兴市",value:"资兴市"}]},{label:"永州市",value:"永州市",children:[{label:"零陵区",value:"零陵区"},{label:"冷水滩区",value:"冷水滩区"},{label:"东安县",value:"东安县"},{label:"双牌县",value:"双牌县"},{label:"道县",value:"道县"},{label:"江永县",value:"江永县"},{label:"宁远县",value:"宁远县"},{label:"蓝山县",value:"蓝山县"},{label:"新田县",value:"新田县"},{label:"江华瑶族自治县",value:"江华瑶族自治县"},{label:"永州经济技术开发区",value:"永州经济技术开发区"},{label:"永州市回龙圩管理区",value:"永州市回龙圩管理区"},{label:"祁阳市",value:"祁阳市"}]},{label:"怀化市",value:"怀化市",children:[{label:"鹤城区",value:"鹤城区"},{label:"中方县",value:"中方县"},{label:"沅陵县",value:"沅陵县"},{label:"辰溪县",value:"辰溪县"},{label:"溆浦县",value:"溆浦县"},{label:"会同县",value:"会同县"},{label:"麻阳苗族自治县",value:"麻阳苗族自治县"},{label:"新晃侗族自治县",value:"新晃侗族自治县"},{label:"芷江侗族自治县",value:"芷江侗族自治县"},{label:"靖州苗族侗族自治县",value:"靖州苗族侗族自治县"},{label:"通道侗族自治县",value:"通道侗族自治县"},{label:"怀化市洪江管理区",value:"怀化市洪江管理区"},{label:"洪江市",value:"洪江市"}]},{label:"娄底市",value:"娄底市",children:[{label:"娄星区",value:"娄星区"},{label:"双峰县",value:"双峰县"},{label:"新化县",value:"新化县"},{label:"冷水江市",value:"冷水江市"},{label:"涟源市",value:"涟源市"}]},{label:"湘西土家族苗族自治州",value:"湘西土家族苗族自治州",children:[{label:"吉首市",value:"吉首市"},{label:"泸溪县",value:"泸溪县"},{label:"凤凰县",value:"凤凰县"},{label:"花垣县",value:"花垣县"},{label:"保靖县",value:"保靖县"},{label:"古丈县",value:"古丈县"},{label:"永顺县",value:"永顺县"},{label:"龙山县",value:"龙山县"}]}]},{label:"广东省",value:"广东省",children:[{label:"广州市",value:"广州市",children:[{label:"荔湾区",value:"荔湾区"},{label:"越秀区",value:"越秀区"},{label:"海珠区",value:"海珠区"},{label:"天河区",value:"天河区"},{label:"白云区",value:"白云区"},{label:"黄埔区",value:"黄埔区"},{label:"番禺区",value:"番禺区"},{label:"花都区",value:"花都区"},{label:"南沙区",value:"南沙区"},{label:"从化区",value:"从化区"},{label:"增城区",value:"增城区"}]},{label:"韶关市",value:"韶关市",children:[{label:"武江区",value:"武江区"},{label:"浈江区",value:"浈江区"},{label:"曲江区",value:"曲江区"},{label:"始兴县",value:"始兴县"},{label:"仁化县",value:"仁化县"},{label:"翁源县",value:"翁源县"},{label:"乳源瑶族自治县",value:"乳源瑶族自治县"},{label:"新丰县",value:"新丰县"},{label:"乐昌市",value:"乐昌市"},{label:"南雄市",value:"南雄市"}]},{label:"深圳市",value:"深圳市",children:[{label:"罗湖区",value:"罗湖区"},{label:"福田区",value:"福田区"},{label:"南山区",value:"南山区"},{label:"宝安区",value:"宝安区"},{label:"龙岗区",value:"龙岗区"},{label:"盐田区",value:"盐田区"},{label:"龙华区",value:"龙华区"},{label:"坪山区",value:"坪山区"},{label:"光明区",value:"光明区"}]},{label:"珠海市",value:"珠海市",children:[{label:"香洲区",value:"香洲区"},{label:"斗门区",value:"斗门区"},{label:"金湾区",value:"金湾区"}]},{label:"汕头市",value:"汕头市",children:[{label:"龙湖区",value:"龙湖区"},{label:"金平区",value:"金平区"},{label:"濠江区",value:"濠江区"},{label:"潮阳区",value:"潮阳区"},{label:"潮南区",value:"潮南区"},{label:"澄海区",value:"澄海区"},{label:"南澳县",value:"南澳县"}]},{label:"佛山市",value:"佛山市",children:[{label:"禅城区",value:"禅城区"},{label:"南海区",value:"南海区"},{label:"顺德区",value:"顺德区"},{label:"三水区",value:"三水区"},{label:"高明区",value:"高明区"}]},{label:"江门市",value:"江门市",children:[{label:"蓬江区",value:"蓬江区"},{label:"江海区",value:"江海区"},{label:"新会区",value:"新会区"},{label:"台山市",value:"台山市"},{label:"开平市",value:"开平市"},{label:"鹤山市",value:"鹤山市"},{label:"恩平市",value:"恩平市"}]},{label:"湛江市",value:"湛江市",children:[{label:"赤坎区",value:"赤坎区"},{label:"霞山区",value:"霞山区"},{label:"坡头区",value:"坡头区"},{label:"麻章区",value:"麻章区"},{label:"遂溪县",value:"遂溪县"},{label:"徐闻县",value:"徐闻县"},{label:"廉江市",value:"廉江市"},{label:"雷州市",value:"雷州市"},{label:"吴川市",value:"吴川市"}]},{label:"茂名市",value:"茂名市",children:[{label:"茂南区",value:"茂南区"},{label:"电白区",value:"电白区"},{label:"高州市",value:"高州市"},{label:"化州市",value:"化州市"},{label:"信宜市",value:"信宜市"}]},{label:"肇庆市",value:"肇庆市",children:[{label:"端州区",value:"端州区"},{label:"鼎湖区",value:"鼎湖区"},{label:"高要区",value:"高要区"},{label:"广宁县",value:"广宁县"},{label:"怀集县",value:"怀集县"},{label:"封开县",value:"封开县"},{label:"德庆县",value:"德庆县"},{label:"四会市",value:"四会市"}]},{label:"惠州市",value:"惠州市",children:[{label:"惠城区",value:"惠城区"},{label:"惠阳区",value:"惠阳区"},{label:"博罗县",value:"博罗县"},{label:"惠东县",value:"惠东县"},{label:"龙门县",value:"龙门县"}]},{label:"梅州市",value:"梅州市",children:[{label:"梅江区",value:"梅江区"},{label:"梅县区",value:"梅县区"},{label:"大埔县",value:"大埔县"},{label:"丰顺县",value:"丰顺县"},{label:"五华县",value:"五华县"},{label:"平远县",value:"平远县"},{label:"蕉岭县",value:"蕉岭县"},{label:"兴宁市",value:"兴宁市"}]},{label:"汕尾市",value:"汕尾市",children:[{label:"城区",value:"城区"},{label:"海丰县",value:"海丰县"},{label:"陆河县",value:"陆河县"},{label:"陆丰市",value:"陆丰市"}]},{label:"河源市",value:"河源市",children:[{label:"源城区",value:"源城区"},{label:"紫金县",value:"紫金县"},{label:"龙川县",value:"龙川县"},{label:"连平县",value:"连平县"},{label:"和平县",value:"和平县"},{label:"东源县",value:"东源县"}]},{label:"阳江市",value:"阳江市",children:[{label:"江城区",value:"江城区"},{label:"阳东区",value:"阳东区"},{label:"阳西县",value:"阳西县"},{label:"阳春市",value:"阳春市"}]},{label:"清远市",value:"清远市",children:[{label:"清城区",value:"清城区"},{label:"清新区",value:"清新区"},{label:"佛冈县",value:"佛冈县"},{label:"阳山县",value:"阳山县"},{label:"连山壮族瑶族自治县",value:"连山壮族瑶族自治县"},{label:"连南瑶族自治县",value:"连南瑶族自治县"},{label:"英德市",value:"英德市"},{label:"连州市",value:"连州市"}]},{label:"东莞市",value:"东莞市",children:[{label:"东城街道",value:"东城街道"},{label:"南城街道",value:"南城街道"},{label:"万江街道",value:"万江街道"},{label:"莞城街道",value:"莞城街道"},{label:"石碣镇",value:"石碣镇"},{label:"石龙镇",value:"石龙镇"},{label:"茶山镇",value:"茶山镇"},{label:"石排镇",value:"石排镇"},{label:"企石镇",value:"企石镇"},{label:"横沥镇",value:"横沥镇"},{label:"桥头镇",value:"桥头镇"},{label:"谢岗镇",value:"谢岗镇"},{label:"东坑镇",value:"东坑镇"},{label:"常平镇",value:"常平镇"},{label:"寮步镇",value:"寮步镇"},{label:"樟木头镇",value:"樟木头镇"},{label:"大朗镇",value:"大朗镇"},{label:"黄江镇",value:"黄江镇"},{label:"清溪镇",value:"清溪镇"},{label:"塘厦镇",value:"塘厦镇"},{label:"凤岗镇",value:"凤岗镇"},{label:"大岭山镇",value:"大岭山镇"},{label:"长安镇",value:"长安镇"},{label:"虎门镇",value:"虎门镇"},{label:"厚街镇",value:"厚街镇"},{label:"沙田镇",value:"沙田镇"},{label:"道滘镇",value:"道滘镇"},{label:"洪梅镇",value:"洪梅镇"},{label:"麻涌镇",value:"麻涌镇"},{label:"望牛墩镇",value:"望牛墩镇"},{label:"中堂镇",value:"中堂镇"},{label:"高埗镇",value:"高埗镇"},{label:"松山湖",value:"松山湖"},{label:"东莞港",value:"东莞港"},{label:"东莞生态园",value:"东莞生态园"},{label:"东莞滨海湾新区",value:"东莞滨海湾新区"}]},{label:"中山市",value:"中山市",children:[{label:"石岐街道",value:"石岐街道"},{label:"东区街道",value:"东区街道"},{label:"中山港街道",value:"中山港街道"},{label:"西区街道",value:"西区街道"},{label:"南区街道",value:"南区街道"},{label:"五桂山街道",value:"五桂山街道"},{label:"民众街道",value:"民众街道"},{label:"南朗街道",value:"南朗街道"},{label:"黄圃镇",value:"黄圃镇"},{label:"东凤镇",value:"东凤镇"},{label:"古镇镇",value:"古镇镇"},{label:"沙溪镇",value:"沙溪镇"},{label:"坦洲镇",value:"坦洲镇"},{label:"港口镇",value:"港口镇"},{label:"三角镇",value:"三角镇"},{label:"横栏镇",value:"横栏镇"},{label:"南头镇",value:"南头镇"},{label:"阜沙镇",value:"阜沙镇"},{label:"三乡镇",value:"三乡镇"},{label:"板芙镇",value:"板芙镇"},{label:"大涌镇",value:"大涌镇"},{label:"神湾镇",value:"神湾镇"},{label:"小榄镇",value:"小榄镇"}]},{label:"潮州市",value:"潮州市",children:[{label:"湘桥区",value:"湘桥区"},{label:"潮安区",value:"潮安区"},{label:"饶平县",value:"饶平县"}]},{label:"揭阳市",value:"揭阳市",children:[{label:"榕城区",value:"榕城区"},{label:"揭东区",value:"揭东区"},{label:"揭西县",value:"揭西县"},{label:"惠来县",value:"惠来县"},{label:"普宁市",value:"普宁市"}]},{label:"云浮市",value:"云浮市",children:[{label:"云城区",value:"云城区"},{label:"云安区",value:"云安区"},{label:"新兴县",value:"新兴县"},{label:"郁南县",value:"郁南县"},{label:"罗定市",value:"罗定市"}]}]},{label:"广西壮族自治区",value:"广西壮族自治区",children:[{label:"南宁市",value:"南宁市",children:[{label:"兴宁区",value:"兴宁区"},{label:"青秀区",value:"青秀区"},{label:"江南区",value:"江南区"},{label:"西乡塘区",value:"西乡塘区"},{label:"良庆区",value:"良庆区"},{label:"邕宁区",value:"邕宁区"},{label:"武鸣区",value:"武鸣区"},{label:"隆安县",value:"隆安县"},{label:"马山县",value:"马山县"},{label:"上林县",value:"上林县"},{label:"宾阳县",value:"宾阳县"},{label:"横州市",value:"横州市"}]},{label:"柳州市",value:"柳州市",children:[{label:"城中区",value:"城中区"},{label:"鱼峰区",value:"鱼峰区"},{label:"柳南区",value:"柳南区"},{label:"柳北区",value:"柳北区"},{label:"柳江区",value:"柳江区"},{label:"柳城县",value:"柳城县"},{label:"鹿寨县",value:"鹿寨县"},{label:"融安县",value:"融安县"},{label:"融水苗族自治县",value:"融水苗族自治县"},{label:"三江侗族自治县",value:"三江侗族自治县"}]},{label:"桂林市",value:"桂林市",children:[{label:"秀峰区",value:"秀峰区"},{label:"叠彩区",value:"叠彩区"},{label:"象山区",value:"象山区"},{label:"七星区",value:"七星区"},{label:"雁山区",value:"雁山区"},{label:"临桂区",value:"临桂区"},{label:"阳朔县",value:"阳朔县"},{label:"灵川县",value:"灵川县"},{label:"全州县",value:"全州县"},{label:"兴安县",value:"兴安县"},{label:"永福县",value:"永福县"},{label:"灌阳县",value:"灌阳县"},{label:"龙胜各族自治县",value:"龙胜各族自治县"},{label:"资源县",value:"资源县"},{label:"平乐县",value:"平乐县"},{label:"恭城瑶族自治县",value:"恭城瑶族自治县"},{label:"荔浦市",value:"荔浦市"}]},{label:"梧州市",value:"梧州市",children:[{label:"万秀区",value:"万秀区"},{label:"长洲区",value:"长洲区"},{label:"龙圩区",value:"龙圩区"},{label:"苍梧县",value:"苍梧县"},{label:"藤县",value:"藤县"},{label:"蒙山县",value:"蒙山县"},{label:"岑溪市",value:"岑溪市"}]},{label:"北海市",value:"北海市",children:[{label:"海城区",value:"海城区"},{label:"银海区",value:"银海区"},{label:"铁山港区",value:"铁山港区"},{label:"合浦县",value:"合浦县"}]},{label:"防城港市",value:"防城港市",children:[{label:"港口区",value:"港口区"},{label:"防城区",value:"防城区"},{label:"上思县",value:"上思县"},{label:"东兴市",value:"东兴市"}]},{label:"钦州市",value:"钦州市",children:[{label:"钦南区",value:"钦南区"},{label:"钦北区",value:"钦北区"},{label:"灵山县",value:"灵山县"},{label:"浦北县",value:"浦北县"}]},{label:"贵港市",value:"贵港市",children:[{label:"港北区",value:"港北区"},{label:"港南区",value:"港南区"},{label:"覃塘区",value:"覃塘区"},{label:"平南县",value:"平南县"},{label:"桂平市",value:"桂平市"}]},{label:"玉林市",value:"玉林市",children:[{label:"玉州区",value:"玉州区"},{label:"福绵区",value:"福绵区"},{label:"容县",value:"容县"},{label:"陆川县",value:"陆川县"},{label:"博白县",value:"博白县"},{label:"兴业县",value:"兴业县"},{label:"北流市",value:"北流市"}]},{label:"百色市",value:"百色市",children:[{label:"右江区",value:"右江区"},{label:"田阳区",value:"田阳区"},{label:"田东县",value:"田东县"},{label:"德保县",value:"德保县"},{label:"那坡县",value:"那坡县"},{label:"凌云县",value:"凌云县"},{label:"乐业县",value:"乐业县"},{label:"田林县",value:"田林县"},{label:"西林县",value:"西林县"},{label:"隆林各族自治县",value:"隆林各族自治县"},{label:"靖西市",value:"靖西市"},{label:"平果市",value:"平果市"}]},{label:"贺州市",value:"贺州市",children:[{label:"八步区",value:"八步区"},{label:"平桂区",value:"平桂区"},{label:"昭平县",value:"昭平县"},{label:"钟山县",value:"钟山县"},{label:"富川瑶族自治县",value:"富川瑶族自治县"}]},{label:"河池市",value:"河池市",children:[{label:"金城江区",value:"金城江区"},{label:"宜州区",value:"宜州区"},{label:"南丹县",value:"南丹县"},{label:"天峨县",value:"天峨县"},{label:"凤山县",value:"凤山县"},{label:"东兰县",value:"东兰县"},{label:"罗城仫佬族自治县",value:"罗城仫佬族自治县"},{label:"环江毛南族自治县",value:"环江毛南族自治县"},{label:"巴马瑶族自治县",value:"巴马瑶族自治县"},{label:"都安瑶族自治县",value:"都安瑶族自治县"},{label:"大化瑶族自治县",value:"大化瑶族自治县"}]},{label:"来宾市",value:"来宾市",children:[{label:"兴宾区",value:"兴宾区"},{label:"忻城县",value:"忻城县"},{label:"象州县",value:"象州县"},{label:"武宣县",value:"武宣县"},{label:"金秀瑶族自治县",value:"金秀瑶族自治县"},{label:"合山市",value:"合山市"}]},{label:"崇左市",value:"崇左市",children:[{label:"江州区",value:"江州区"},{label:"扶绥县",value:"扶绥县"},{label:"宁明县",value:"宁明县"},{label:"龙州县",value:"龙州县"},{label:"大新县",value:"大新县"},{label:"天等县",value:"天等县"},{label:"凭祥市",value:"凭祥市"}]}]},{label:"海南省",value:"海南省",children:[{label:"海口市",value:"海口市",children:[{label:"秀英区",value:"秀英区"},{label:"龙华区",value:"龙华区"},{label:"琼山区",value:"琼山区"},{label:"美兰区",value:"美兰区"}]},{label:"三亚市",value:"三亚市",children:[{label:"海棠区",value:"海棠区"},{label:"吉阳区",value:"吉阳区"},{label:"天涯区",value:"天涯区"},{label:"崖州区",value:"崖州区"}]},{label:"三沙市",value:"三沙市",children:[{label:"西沙群岛",value:"西沙群岛"},{label:"南沙群岛",value:"南沙群岛"},{label:"中沙群岛的岛礁及其海域",value:"中沙群岛的岛礁及其海域"}]},{label:"儋州市",value:"儋州市",children:[{label:"那大镇",value:"那大镇"},{label:"和庆镇",value:"和庆镇"},{label:"南丰镇",value:"南丰镇"},{label:"大成镇",value:"大成镇"},{label:"雅星镇",value:"雅星镇"},{label:"兰洋镇",value:"兰洋镇"},{label:"光村镇",value:"光村镇"},{label:"木棠镇",value:"木棠镇"},{label:"海头镇",value:"海头镇"},{label:"峨蔓镇",value:"峨蔓镇"},{label:"王五镇",value:"王五镇"},{label:"白马井镇",value:"白马井镇"},{label:"中和镇",value:"中和镇"},{label:"排浦镇",value:"排浦镇"},{label:"东成镇",value:"东成镇"},{label:"新州镇",value:"新州镇"},{label:"洋浦经济开发区",value:"洋浦经济开发区"},{label:"华南热作学院",value:"华南热作学院"}]},{label:"省直辖县级行政区划",value:"省直辖县级行政区划",children:[{label:"五指山市",value:"五指山市"},{label:"琼海市",value:"琼海市"},{label:"文昌市",value:"文昌市"},{label:"万宁市",value:"万宁市"},{label:"东方市",value:"东方市"},{label:"定安县",value:"定安县"},{label:"屯昌县",value:"屯昌县"},{label:"澄迈县",value:"澄迈县"},{label:"临高县",value:"临高县"},{label:"白沙黎族自治县",value:"白沙黎族自治县"},{label:"昌江黎族自治县",value:"昌江黎族自治县"},{label:"乐东黎族自治县",value:"乐东黎族自治县"},{label:"陵水黎族自治县",value:"陵水黎族自治县"},{label:"保亭黎族苗族自治县",value:"保亭黎族苗族自治县"},{label:"琼中黎族苗族自治县",value:"琼中黎族苗族自治县"}]}]},{label:"重庆市",value:"重庆市",children:[{label:"市辖区",value:"市辖区",children:[{label:"万州区",value:"万州区"},{label:"涪陵区",value:"涪陵区"},{label:"渝中区",value:"渝中区"},{label:"大渡口区",value:"大渡口区"},{label:"江北区",value:"江北区"},{label:"沙坪坝区",value:"沙坪坝区"},{label:"九龙坡区",value:"九龙坡区"},{label:"南岸区",value:"南岸区"},{label:"北碚区",value:"北碚区"},{label:"綦江区",value:"綦江区"},{label:"大足区",value:"大足区"},{label:"渝北区",value:"渝北区"},{label:"巴南区",value:"巴南区"},{label:"黔江区",value:"黔江区"},{label:"长寿区",value:"长寿区"},{label:"江津区",value:"江津区"},{label:"合川区",value:"合川区"},{label:"永川区",value:"永川区"},{label:"南川区",value:"南川区"},{label:"璧山区",value:"璧山区"},{label:"铜梁区",value:"铜梁区"},{label:"潼南区",value:"潼南区"},{label:"荣昌区",value:"荣昌区"},{label:"开州区",value:"开州区"},{label:"梁平区",value:"梁平区"},{label:"武隆区",value:"武隆区"}]},{label:"县",value:"县",children:[{label:"城口县",value:"城口县"},{label:"丰都县",value:"丰都县"},{label:"垫江县",value:"垫江县"},{label:"忠县",value:"忠县"},{label:"云阳县",value:"云阳县"},{label:"奉节县",value:"奉节县"},{label:"巫山县",value:"巫山县"},{label:"巫溪县",value:"巫溪县"},{label:"石柱土家族自治县",value:"石柱土家族自治县"},{label:"秀山土家族苗族自治县",value:"秀山土家族苗族自治县"},{label:"酉阳土家族苗族自治县",value:"酉阳土家族苗族自治县"},{label:"彭水苗族土家族自治县",value:"彭水苗族土家族自治县"}]}]},{label:"四川省",value:"四川省",children:[{label:"成都市",value:"成都市",children:[{label:"锦江区",value:"锦江区"},{label:"青羊区",value:"青羊区"},{label:"金牛区",value:"金牛区"},{label:"武侯区",value:"武侯区"},{label:"成华区",value:"成华区"},{label:"龙泉驿区",value:"龙泉驿区"},{label:"青白江区",value:"青白江区"},{label:"新都区",value:"新都区"},{label:"温江区",value:"温江区"},{label:"双流区",value:"双流区"},{label:"郫都区",value:"郫都区"},{label:"新津区",value:"新津区"},{label:"金堂县",value:"金堂县"},{label:"大邑县",value:"大邑县"},{label:"蒲江县",value:"蒲江县"},{label:"都江堰市",value:"都江堰市"},{label:"彭州市",value:"彭州市"},{label:"邛崃市",value:"邛崃市"},{label:"崇州市",value:"崇州市"},{label:"简阳市",value:"简阳市"}]},{label:"自贡市",value:"自贡市",children:[{label:"自流井区",value:"自流井区"},{label:"贡井区",value:"贡井区"},{label:"大安区",value:"大安区"},{label:"沿滩区",value:"沿滩区"},{label:"荣县",value:"荣县"},{label:"富顺县",value:"富顺县"}]},{label:"攀枝花市",value:"攀枝花市",children:[{label:"东区",value:"东区"},{label:"西区",value:"西区"},{label:"仁和区",value:"仁和区"},{label:"米易县",value:"米易县"},{label:"盐边县",value:"盐边县"}]},{label:"泸州市",value:"泸州市",children:[{label:"江阳区",value:"江阳区"},{label:"纳溪区",value:"纳溪区"},{label:"龙马潭区",value:"龙马潭区"},{label:"泸县",value:"泸县"},{label:"合江县",value:"合江县"},{label:"叙永县",value:"叙永县"},{label:"古蔺县",value:"古蔺县"}]},{label:"德阳市",value:"德阳市",children:[{label:"旌阳区",value:"旌阳区"},{label:"罗江区",value:"罗江区"},{label:"中江县",value:"中江县"},{label:"广汉市",value:"广汉市"},{label:"什邡市",value:"什邡市"},{label:"绵竹市",value:"绵竹市"}]},{label:"绵阳市",value:"绵阳市",children:[{label:"涪城区",value:"涪城区"},{label:"游仙区",value:"游仙区"},{label:"安州区",value:"安州区"},{label:"三台县",value:"三台县"},{label:"盐亭县",value:"盐亭县"},{label:"梓潼县",value:"梓潼县"},{label:"北川羌族自治县",value:"北川羌族自治县"},{label:"平武县",value:"平武县"},{label:"江油市",value:"江油市"}]},{label:"广元市",value:"广元市",children:[{label:"利州区",value:"利州区"},{label:"昭化区",value:"昭化区"},{label:"朝天区",value:"朝天区"},{label:"旺苍县",value:"旺苍县"},{label:"青川县",value:"青川县"},{label:"剑阁县",value:"剑阁县"},{label:"苍溪县",value:"苍溪县"}]},{label:"遂宁市",value:"遂宁市",children:[{label:"船山区",value:"船山区"},{label:"安居区",value:"安居区"},{label:"蓬溪县",value:"蓬溪县"},{label:"大英县",value:"大英县"},{label:"射洪市",value:"射洪市"}]},{label:"内江市",value:"内江市",children:[{label:"市中区",value:"市中区"},{label:"东兴区",value:"东兴区"},{label:"威远县",value:"威远县"},{label:"资中县",value:"资中县"},{label:"隆昌市",value:"隆昌市"}]},{label:"乐山市",value:"乐山市",children:[{label:"市中区",value:"市中区"},{label:"沙湾区",value:"沙湾区"},{label:"五通桥区",value:"五通桥区"},{label:"金口河区",value:"金口河区"},{label:"犍为县",value:"犍为县"},{label:"井研县",value:"井研县"},{label:"夹江县",value:"夹江县"},{label:"沐川县",value:"沐川县"},{label:"峨边彝族自治县",value:"峨边彝族自治县"},{label:"马边彝族自治县",value:"马边彝族自治县"},{label:"峨眉山市",value:"峨眉山市"}]},{label:"南充市",value:"南充市",children:[{label:"顺庆区",value:"顺庆区"},{label:"高坪区",value:"高坪区"},{label:"嘉陵区",value:"嘉陵区"},{label:"南部县",value:"南部县"},{label:"营山县",value:"营山县"},{label:"蓬安县",value:"蓬安县"},{label:"仪陇县",value:"仪陇县"},{label:"西充县",value:"西充县"},{label:"阆中市",value:"阆中市"}]},{label:"眉山市",value:"眉山市",children:[{label:"东坡区",value:"东坡区"},{label:"彭山区",value:"彭山区"},{label:"仁寿县",value:"仁寿县"},{label:"洪雅县",value:"洪雅县"},{label:"丹棱县",value:"丹棱县"},{label:"青神县",value:"青神县"}]},{label:"宜宾市",value:"宜宾市",children:[{label:"翠屏区",value:"翠屏区"},{label:"南溪区",value:"南溪区"},{label:"叙州区",value:"叙州区"},{label:"江安县",value:"江安县"},{label:"长宁县",value:"长宁县"},{label:"高县",value:"高县"},{label:"珙县",value:"珙县"},{label:"筠连县",value:"筠连县"},{label:"兴文县",value:"兴文县"},{label:"屏山县",value:"屏山县"}]},{label:"广安市",value:"广安市",children:[{label:"广安区",value:"广安区"},{label:"前锋区",value:"前锋区"},{label:"岳池县",value:"岳池县"},{label:"武胜县",value:"武胜县"},{label:"邻水县",value:"邻水县"},{label:"华蓥市",value:"华蓥市"}]},{label:"达州市",value:"达州市",children:[{label:"通川区",value:"通川区"},{label:"达川区",value:"达川区"},{label:"宣汉县",value:"宣汉县"},{label:"开江县",value:"开江县"},{label:"大竹县",value:"大竹县"},{label:"渠县",value:"渠县"},{label:"万源市",value:"万源市"}]},{label:"雅安市",value:"雅安市",children:[{label:"雨城区",value:"雨城区"},{label:"名山区",value:"名山区"},{label:"荥经县",value:"荥经县"},{label:"汉源县",value:"汉源县"},{label:"石棉县",value:"石棉县"},{label:"天全县",value:"天全县"},{label:"芦山县",value:"芦山县"},{label:"宝兴县",value:"宝兴县"}]},{label:"巴中市",value:"巴中市",children:[{label:"巴州区",value:"巴州区"},{label:"恩阳区",value:"恩阳区"},{label:"通江县",value:"通江县"},{label:"南江县",value:"南江县"},{label:"平昌县",value:"平昌县"}]},{label:"资阳市",value:"资阳市",children:[{label:"雁江区",value:"雁江区"},{label:"安岳县",value:"安岳县"},{label:"乐至县",value:"乐至县"}]},{label:"阿坝藏族羌族自治州",value:"阿坝藏族羌族自治州",children:[{label:"马尔康市",value:"马尔康市"},{label:"汶川县",value:"汶川县"},{label:"理县",value:"理县"},{label:"茂县",value:"茂县"},{label:"松潘县",value:"松潘县"},{label:"九寨沟县",value:"九寨沟县"},{label:"金川县",value:"金川县"},{label:"小金县",value:"小金县"},{label:"黑水县",value:"黑水县"},{label:"壤塘县",value:"壤塘县"},{label:"阿坝县",value:"阿坝县"},{label:"若尔盖县",value:"若尔盖县"},{label:"红原县",value:"红原县"}]},{label:"甘孜藏族自治州",value:"甘孜藏族自治州",children:[{label:"康定市",value:"康定市"},{label:"泸定县",value:"泸定县"},{label:"丹巴县",value:"丹巴县"},{label:"九龙县",value:"九龙县"},{label:"雅江县",value:"雅江县"},{label:"道孚县",value:"道孚县"},{label:"炉霍县",value:"炉霍县"},{label:"甘孜县",value:"甘孜县"},{label:"新龙县",value:"新龙县"},{label:"德格县",value:"德格县"},{label:"白玉县",value:"白玉县"},{label:"石渠县",value:"石渠县"},{label:"色达县",value:"色达县"},{label:"理塘县",value:"理塘县"},{label:"巴塘县",value:"巴塘县"},{label:"乡城县",value:"乡城县"},{label:"稻城县",value:"稻城县"},{label:"得荣县",value:"得荣县"}]},{label:"凉山彝族自治州",value:"凉山彝族自治州",children:[{label:"西昌市",value:"西昌市"},{label:"会理市",value:"会理市"},{label:"木里藏族自治县",value:"木里藏族自治县"},{label:"盐源县",value:"盐源县"},{label:"德昌县",value:"德昌县"},{label:"会东县",value:"会东县"},{label:"宁南县",value:"宁南县"},{label:"普格县",value:"普格县"},{label:"布拖县",value:"布拖县"},{label:"金阳县",value:"金阳县"},{label:"昭觉县",value:"昭觉县"},{label:"喜德县",value:"喜德县"},{label:"冕宁县",value:"冕宁县"},{label:"越西县",value:"越西县"},{label:"甘洛县",value:"甘洛县"},{label:"美姑县",value:"美姑县"},{label:"雷波县",value:"雷波县"}]}]},{label:"贵州省",value:"贵州省",children:[{label:"贵阳市",value:"贵阳市",children:[{label:"南明区",value:"南明区"},{label:"云岩区",value:"云岩区"},{label:"花溪区",value:"花溪区"},{label:"乌当区",value:"乌当区"},{label:"白云区",value:"白云区"},{label:"观山湖区",value:"观山湖区"},{label:"开阳县",value:"开阳县"},{label:"息烽县",value:"息烽县"},{label:"修文县",value:"修文县"},{label:"清镇市",value:"清镇市"}]},{label:"六盘水市",value:"六盘水市",children:[{label:"钟山区",value:"钟山区"},{label:"六枝特区",value:"六枝特区"},{label:"水城区",value:"水城区"},{label:"盘州市",value:"盘州市"}]},{label:"遵义市",value:"遵义市",children:[{label:"红花岗区",value:"红花岗区"},{label:"汇川区",value:"汇川区"},{label:"播州区",value:"播州区"},{label:"桐梓县",value:"桐梓县"},{label:"绥阳县",value:"绥阳县"},{label:"正安县",value:"正安县"},{label:"道真仡佬族苗族自治县",value:"道真仡佬族苗族自治县"},{label:"务川仡佬族苗族自治县",value:"务川仡佬族苗族自治县"},{label:"凤冈县",value:"凤冈县"},{label:"湄潭县",value:"湄潭县"},{label:"余庆县",value:"余庆县"},{label:"习水县",value:"习水县"},{label:"赤水市",value:"赤水市"},{label:"仁怀市",value:"仁怀市"}]},{label:"安顺市",value:"安顺市",children:[{label:"西秀区",value:"西秀区"},{label:"平坝区",value:"平坝区"},{label:"普定县",value:"普定县"},{label:"镇宁布依族苗族自治县",value:"镇宁布依族苗族自治县"},{label:"关岭布依族苗族自治县",value:"关岭布依族苗族自治县"},{label:"紫云苗族布依族自治县",value:"紫云苗族布依族自治县"}]},{label:"毕节市",value:"毕节市",children:[{label:"七星关区",value:"七星关区"},{label:"大方县",value:"大方县"},{label:"金沙县",value:"金沙县"},{label:"织金县",value:"织金县"},{label:"纳雍县",value:"纳雍县"},{label:"威宁彝族回族苗族自治县",value:"威宁彝族回族苗族自治县"},{label:"赫章县",value:"赫章县"},{label:"黔西市",value:"黔西市"}]},{label:"铜仁市",value:"铜仁市",children:[{label:"碧江区",value:"碧江区"},{label:"万山区",value:"万山区"},{label:"江口县",value:"江口县"},{label:"玉屏侗族自治县",value:"玉屏侗族自治县"},{label:"石阡县",value:"石阡县"},{label:"思南县",value:"思南县"},{label:"印江土家族苗族自治县",value:"印江土家族苗族自治县"},{label:"德江县",value:"德江县"},{label:"沿河土家族自治县",value:"沿河土家族自治县"},{label:"松桃苗族自治县",value:"松桃苗族自治县"}]},{label:"黔西南布依族苗族自治州",value:"黔西南布依族苗族自治州",children:[{label:"兴义市",value:"兴义市"},{label:"兴仁市",value:"兴仁市"},{label:"普安县",value:"普安县"},{label:"晴隆县",value:"晴隆县"},{label:"贞丰县",value:"贞丰县"},{label:"望谟县",value:"望谟县"},{label:"册亨县",value:"册亨县"},{label:"安龙县",value:"安龙县"}]},{label:"黔东南苗族侗族自治州",value:"黔东南苗族侗族自治州",children:[{label:"凯里市",value:"凯里市"},{label:"黄平县",value:"黄平县"},{label:"施秉县",value:"施秉县"},{label:"三穗县",value:"三穗县"},{label:"镇远县",value:"镇远县"},{label:"岑巩县",value:"岑巩县"},{label:"天柱县",value:"天柱县"},{label:"锦屏县",value:"锦屏县"},{label:"剑河县",value:"剑河县"},{label:"台江县",value:"台江县"},{label:"黎平县",value:"黎平县"},{label:"榕江县",value:"榕江县"},{label:"从江县",value:"从江县"},{label:"雷山县",value:"雷山县"},{label:"麻江县",value:"麻江县"},{label:"丹寨县",value:"丹寨县"}]},{label:"黔南布依族苗族自治州",value:"黔南布依族苗族自治州",children:[{label:"都匀市",value:"都匀市"},{label:"福泉市",value:"福泉市"},{label:"荔波县",value:"荔波县"},{label:"贵定县",value:"贵定县"},{label:"瓮安县",value:"瓮安县"},{label:"独山县",value:"独山县"},{label:"平塘县",value:"平塘县"},{label:"罗甸县",value:"罗甸县"},{label:"长顺县",value:"长顺县"},{label:"龙里县",value:"龙里县"},{label:"惠水县",value:"惠水县"},{label:"三都水族自治县",value:"三都水族自治县"}]}]},{label:"云南省",value:"云南省",children:[{label:"昆明市",value:"昆明市",children:[{label:"五华区",value:"五华区"},{label:"盘龙区",value:"盘龙区"},{label:"官渡区",value:"官渡区"},{label:"西山区",value:"西山区"},{label:"东川区",value:"东川区"},{label:"呈贡区",value:"呈贡区"},{label:"晋宁区",value:"晋宁区"},{label:"富民县",value:"富民县"},{label:"宜良县",value:"宜良县"},{label:"石林彝族自治县",value:"石林彝族自治县"},{label:"嵩明县",value:"嵩明县"},{label:"禄劝彝族苗族自治县",value:"禄劝彝族苗族自治县"},{label:"寻甸回族彝族自治县",value:"寻甸回族彝族自治县"},{label:"安宁市",value:"安宁市"}]},{label:"曲靖市",value:"曲靖市",children:[{label:"麒麟区",value:"麒麟区"},{label:"沾益区",value:"沾益区"},{label:"马龙区",value:"马龙区"},{label:"陆良县",value:"陆良县"},{label:"师宗县",value:"师宗县"},{label:"罗平县",value:"罗平县"},{label:"富源县",value:"富源县"},{label:"会泽县",value:"会泽县"},{label:"宣威市",value:"宣威市"}]},{label:"玉溪市",value:"玉溪市",children:[{label:"红塔区",value:"红塔区"},{label:"江川区",value:"江川区"},{label:"通海县",value:"通海县"},{label:"华宁县",value:"华宁县"},{label:"易门县",value:"易门县"},{label:"峨山彝族自治县",value:"峨山彝族自治县"},{label:"新平彝族傣族自治县",value:"新平彝族傣族自治县"},{label:"元江哈尼族彝族傣族自治县",value:"元江哈尼族彝族傣族自治县"},{label:"澄江市",value:"澄江市"}]},{label:"保山市",value:"保山市",children:[{label:"隆阳区",value:"隆阳区"},{label:"施甸县",value:"施甸县"},{label:"龙陵县",value:"龙陵县"},{label:"昌宁县",value:"昌宁县"},{label:"腾冲市",value:"腾冲市"}]},{label:"昭通市",value:"昭通市",children:[{label:"昭阳区",value:"昭阳区"},{label:"鲁甸县",value:"鲁甸县"},{label:"巧家县",value:"巧家县"},{label:"盐津县",value:"盐津县"},{label:"大关县",value:"大关县"},{label:"永善县",value:"永善县"},{label:"绥江县",value:"绥江县"},{label:"镇雄县",value:"镇雄县"},{label:"彝良县",value:"彝良县"},{label:"威信县",value:"威信县"},{label:"水富市",value:"水富市"}]},{label:"丽江市",value:"丽江市",children:[{label:"古城区",value:"古城区"},{label:"玉龙纳西族自治县",value:"玉龙纳西族自治县"},{label:"永胜县",value:"永胜县"},{label:"华坪县",value:"华坪县"},{label:"宁蒗彝族自治县",value:"宁蒗彝族自治县"}]},{label:"普洱市",value:"普洱市",children:[{label:"思茅区",value:"思茅区"},{label:"宁洱哈尼族彝族自治县",value:"宁洱哈尼族彝族自治县"},{label:"墨江哈尼族自治县",value:"墨江哈尼族自治县"},{label:"景东彝族自治县",value:"景东彝族自治县"},{label:"景谷傣族彝族自治县",value:"景谷傣族彝族自治县"},{label:"镇沅彝族哈尼族拉祜族自治县",value:"镇沅彝族哈尼族拉祜族自治县"},{label:"江城哈尼族彝族自治县",value:"江城哈尼族彝族自治县"},{label:"孟连傣族拉祜族佤族自治县",value:"孟连傣族拉祜族佤族自治县"},{label:"澜沧拉祜族自治县",value:"澜沧拉祜族自治县"},{label:"西盟佤族自治县",value:"西盟佤族自治县"}]},{label:"临沧市",value:"临沧市",children:[{label:"临翔区",value:"临翔区"},{label:"凤庆县",value:"凤庆县"},{label:"云县",value:"云县"},{label:"永德县",value:"永德县"},{label:"镇康县",value:"镇康县"},{label:"双江拉祜族佤族布朗族傣族自治县",value:"双江拉祜族佤族布朗族傣族自治县"},{label:"耿马傣族佤族自治县",value:"耿马傣族佤族自治县"},{label:"沧源佤族自治县",value:"沧源佤族自治县"}]},{label:"楚雄彝族自治州",value:"楚雄彝族自治州",children:[{label:"楚雄市",value:"楚雄市"},{label:"禄丰市",value:"禄丰市"},{label:"双柏县",value:"双柏县"},{label:"牟定县",value:"牟定县"},{label:"南华县",value:"南华县"},{label:"姚安县",value:"姚安县"},{label:"大姚县",value:"大姚县"},{label:"永仁县",value:"永仁县"},{label:"元谋县",value:"元谋县"},{label:"武定县",value:"武定县"}]},{label:"红河哈尼族彝族自治州",value:"红河哈尼族彝族自治州",children:[{label:"个旧市",value:"个旧市"},{label:"开远市",value:"开远市"},{label:"蒙自市",value:"蒙自市"},{label:"弥勒市",value:"弥勒市"},{label:"屏边苗族自治县",value:"屏边苗族自治县"},{label:"建水县",value:"建水县"},{label:"石屏县",value:"石屏县"},{label:"泸西县",value:"泸西县"},{label:"元阳县",value:"元阳县"},{label:"红河县",value:"红河县"},{label:"金平苗族瑶族傣族自治县",value:"金平苗族瑶族傣族自治县"},{label:"绿春县",value:"绿春县"},{label:"河口瑶族自治县",value:"河口瑶族自治县"}]},{label:"文山壮族苗族自治州",value:"文山壮族苗族自治州",children:[{label:"文山市",value:"文山市"},{label:"砚山县",value:"砚山县"},{label:"西畴县",value:"西畴县"},{label:"麻栗坡县",value:"麻栗坡县"},{label:"马关县",value:"马关县"},{label:"丘北县",value:"丘北县"},{label:"广南县",value:"广南县"},{label:"富宁县",value:"富宁县"}]},{label:"西双版纳傣族自治州",value:"西双版纳傣族自治州",children:[{label:"景洪市",value:"景洪市"},{label:"勐海县",value:"勐海县"},{label:"勐腊县",value:"勐腊县"}]},{label:"大理白族自治州",value:"大理白族自治州",children:[{label:"大理市",value:"大理市"},{label:"漾濞彝族自治县",value:"漾濞彝族自治县"},{label:"祥云县",value:"祥云县"},{label:"宾川县",value:"宾川县"},{label:"弥渡县",value:"弥渡县"},{label:"南涧彝族自治县",value:"南涧彝族自治县"},{label:"巍山彝族回族自治县",value:"巍山彝族回族自治县"},{label:"永平县",value:"永平县"},{label:"云龙县",value:"云龙县"},{label:"洱源县",value:"洱源县"},{label:"剑川县",value:"剑川县"},{label:"鹤庆县",value:"鹤庆县"}]},{label:"德宏傣族景颇族自治州",value:"德宏傣族景颇族自治州",children:[{label:"瑞丽市",value:"瑞丽市"},{label:"芒市",value:"芒市"},{label:"梁河县",value:"梁河县"},{label:"盈江县",value:"盈江县"},{label:"陇川县",value:"陇川县"}]},{label:"怒江傈僳族自治州",value:"怒江傈僳族自治州",children:[{label:"泸水市",value:"泸水市"},{label:"福贡县",value:"福贡县"},{label:"贡山独龙族怒族自治县",value:"贡山独龙族怒族自治县"},{label:"兰坪白族普米族自治县",value:"兰坪白族普米族自治县"}]},{label:"迪庆藏族自治州",value:"迪庆藏族自治州",children:[{label:"香格里拉市",value:"香格里拉市"},{label:"德钦县",value:"德钦县"},{label:"维西傈僳族自治县",value:"维西傈僳族自治县"}]}]},{label:"西藏自治区",value:"西藏自治区",children:[{label:"拉萨市",value:"拉萨市",children:[{label:"城关区",value:"城关区"},{label:"堆龙德庆区",value:"堆龙德庆区"},{label:"达孜区",value:"达孜区"},{label:"林周县",value:"林周县"},{label:"当雄县",value:"当雄县"},{label:"尼木县",value:"尼木县"},{label:"曲水县",value:"曲水县"},{label:"墨竹工卡县",value:"墨竹工卡县"},{label:"格尔木藏青工业园区",value:"格尔木藏青工业园区"},{label:"拉萨经济技术开发区",value:"拉萨经济技术开发区"},{label:"西藏文化旅游创意园区",value:"西藏文化旅游创意园区"},{label:"达孜工业园区",value:"达孜工业园区"}]},{label:"日喀则市",value:"日喀则市",children:[{label:"桑珠孜区",value:"桑珠孜区"},{label:"南木林县",value:"南木林县"},{label:"江孜县",value:"江孜县"},{label:"定日县",value:"定日县"},{label:"萨迦县",value:"萨迦县"},{label:"拉孜县",value:"拉孜县"},{label:"昂仁县",value:"昂仁县"},{label:"谢通门县",value:"谢通门县"},{label:"白朗县",value:"白朗县"},{label:"仁布县",value:"仁布县"},{label:"康马县",value:"康马县"},{label:"定结县",value:"定结县"},{label:"仲巴县",value:"仲巴县"},{label:"亚东县",value:"亚东县"},{label:"吉隆县",value:"吉隆县"},{label:"聂拉木县",value:"聂拉木县"},{label:"萨嘎县",value:"萨嘎县"},{label:"岗巴县",value:"岗巴县"}]},{label:"昌都市",value:"昌都市",children:[{label:"卡若区",value:"卡若区"},{label:"江达县",value:"江达县"},{label:"贡觉县",value:"贡觉县"},{label:"类乌齐县",value:"类乌齐县"},{label:"丁青县",value:"丁青县"},{label:"察雅县",value:"察雅县"},{label:"八宿县",value:"八宿县"},{label:"左贡县",value:"左贡县"},{label:"芒康县",value:"芒康县"},{label:"洛隆县",value:"洛隆县"},{label:"边坝县",value:"边坝县"}]},{label:"林芝市",value:"林芝市",children:[{label:"巴宜区",value:"巴宜区"},{label:"工布江达县",value:"工布江达县"},{label:"墨脱县",value:"墨脱县"},{label:"波密县",value:"波密县"},{label:"察隅县",value:"察隅县"},{label:"朗县",value:"朗县"},{label:"米林市",value:"米林市"}]},{label:"山南市",value:"山南市",children:[{label:"乃东区",value:"乃东区"},{label:"扎囊县",value:"扎囊县"},{label:"贡嘎县",value:"贡嘎县"},{label:"桑日县",value:"桑日县"},{label:"琼结县",value:"琼结县"},{label:"曲松县",value:"曲松县"},{label:"措美县",value:"措美县"},{label:"洛扎县",value:"洛扎县"},{label:"加查县",value:"加查县"},{label:"隆子县",value:"隆子县"},{label:"浪卡子县",value:"浪卡子县"},{label:"错那市",value:"错那市"}]},{label:"那曲市",value:"那曲市",children:[{label:"色尼区",value:"色尼区"},{label:"嘉黎县",value:"嘉黎县"},{label:"比如县",value:"比如县"},{label:"聂荣县",value:"聂荣县"},{label:"安多县",value:"安多县"},{label:"申扎县",value:"申扎县"},{label:"索县",value:"索县"},{label:"班戈县",value:"班戈县"},{label:"巴青县",value:"巴青县"},{label:"尼玛县",value:"尼玛县"},{label:"双湖县",value:"双湖县"}]},{label:"阿里地区",value:"阿里地区",children:[{label:"普兰县",value:"普兰县"},{label:"札达县",value:"札达县"},{label:"噶尔县",value:"噶尔县"},{label:"日土县",value:"日土县"},{label:"革吉县",value:"革吉县"},{label:"改则县",value:"改则县"},{label:"措勤县",value:"措勤县"}]}]},{label:"陕西省",value:"陕西省",children:[{label:"西安市",value:"西安市",children:[{label:"新城区",value:"新城区"},{label:"碑林区",value:"碑林区"},{label:"莲湖区",value:"莲湖区"},{label:"灞桥区",value:"灞桥区"},{label:"未央区",value:"未央区"},{label:"雁塔区",value:"雁塔区"},{label:"阎良区",value:"阎良区"},{label:"临潼区",value:"临潼区"},{label:"长安区",value:"长安区"},{label:"高陵区",value:"高陵区"},{label:"鄠邑区",value:"鄠邑区"},{label:"蓝田县",value:"蓝田县"},{label:"周至县",value:"周至县"}]},{label:"铜川市",value:"铜川市",children:[{label:"王益区",value:"王益区"},{label:"印台区",value:"印台区"},{label:"耀州区",value:"耀州区"},{label:"宜君县",value:"宜君县"}]},{label:"宝鸡市",value:"宝鸡市",children:[{label:"渭滨区",value:"渭滨区"},{label:"金台区",value:"金台区"},{label:"陈仓区",value:"陈仓区"},{label:"凤翔区",value:"凤翔区"},{label:"岐山县",value:"岐山县"},{label:"扶风县",value:"扶风县"},{label:"眉县",value:"眉县"},{label:"陇县",value:"陇县"},{label:"千阳县",value:"千阳县"},{label:"麟游县",value:"麟游县"},{label:"凤县",value:"凤县"},{label:"太白县",value:"太白县"}]},{label:"咸阳市",value:"咸阳市",children:[{label:"秦都区",value:"秦都区"},{label:"杨陵区",value:"杨陵区"},{label:"渭城区",value:"渭城区"},{label:"三原县",value:"三原县"},{label:"泾阳县",value:"泾阳县"},{label:"乾县",value:"乾县"},{label:"礼泉县",value:"礼泉县"},{label:"永寿县",value:"永寿县"},{label:"长武县",value:"长武县"},{label:"旬邑县",value:"旬邑县"},{label:"淳化县",value:"淳化县"},{label:"武功县",value:"武功县"},{label:"兴平市",value:"兴平市"},{label:"彬州市",value:"彬州市"}]},{label:"渭南市",value:"渭南市",children:[{label:"临渭区",value:"临渭区"},{label:"华州区",value:"华州区"},{label:"潼关县",value:"潼关县"},{label:"大荔县",value:"大荔县"},{label:"合阳县",value:"合阳县"},{label:"澄城县",value:"澄城县"},{label:"蒲城县",value:"蒲城县"},{label:"白水县",value:"白水县"},{label:"富平县",value:"富平县"},{label:"韩城市",value:"韩城市"},{label:"华阴市",value:"华阴市"}]},{label:"延安市",value:"延安市",children:[{label:"宝塔区",value:"宝塔区"},{label:"安塞区",value:"安塞区"},{label:"延长县",value:"延长县"},{label:"延川县",value:"延川县"},{label:"志丹县",value:"志丹县"},{label:"吴起县",value:"吴起县"},{label:"甘泉县",value:"甘泉县"},{label:"富县",value:"富县"},{label:"洛川县",value:"洛川县"},{label:"宜川县",value:"宜川县"},{label:"黄龙县",value:"黄龙县"},{label:"黄陵县",value:"黄陵县"},{label:"子长市",value:"子长市"}]},{label:"汉中市",value:"汉中市",children:[{label:"汉台区",value:"汉台区"},{label:"南郑区",value:"南郑区"},{label:"城固县",value:"城固县"},{label:"洋县",value:"洋县"},{label:"西乡县",value:"西乡县"},{label:"勉县",value:"勉县"},{label:"宁强县",value:"宁强县"},{label:"略阳县",value:"略阳县"},{label:"镇巴县",value:"镇巴县"},{label:"留坝县",value:"留坝县"},{label:"佛坪县",value:"佛坪县"}]},{label:"榆林市",value:"榆林市",children:[{label:"榆阳区",value:"榆阳区"},{label:"横山区",value:"横山区"},{label:"府谷县",value:"府谷县"},{label:"靖边县",value:"靖边县"},{label:"定边县",value:"定边县"},{label:"绥德县",value:"绥德县"},{label:"米脂县",value:"米脂县"},{label:"佳县",value:"佳县"},{label:"吴堡县",value:"吴堡县"},{label:"清涧县",value:"清涧县"},{label:"子洲县",value:"子洲县"},{label:"神木市",value:"神木市"}]},{label:"安康市",value:"安康市",children:[{label:"汉滨区",value:"汉滨区"},{label:"汉阴县",value:"汉阴县"},{label:"石泉县",value:"石泉县"},{label:"宁陕县",value:"宁陕县"},{label:"紫阳县",value:"紫阳县"},{label:"岚皋县",value:"岚皋县"},{label:"平利县",value:"平利县"},{label:"镇坪县",value:"镇坪县"},{label:"白河县",value:"白河县"},{label:"旬阳市",value:"旬阳市"}]},{label:"商洛市",value:"商洛市",children:[{label:"商州区",value:"商州区"},{label:"洛南县",value:"洛南县"},{label:"丹凤县",value:"丹凤县"},{label:"商南县",value:"商南县"},{label:"山阳县",value:"山阳县"},{label:"镇安县",value:"镇安县"},{label:"柞水县",value:"柞水县"}]}]},{label:"甘肃省",value:"甘肃省",children:[{label:"兰州市",value:"兰州市",children:[{label:"城关区",value:"城关区"},{label:"七里河区",value:"七里河区"},{label:"西固区",value:"西固区"},{label:"安宁区",value:"安宁区"},{label:"红古区",value:"红古区"},{label:"永登县",value:"永登县"},{label:"皋兰县",value:"皋兰县"},{label:"榆中县",value:"榆中县"},{label:"兰州新区",value:"兰州新区"}]},{label:"嘉峪关市",value:"嘉峪关市",children:[{label:"雄关街道",value:"雄关街道"},{label:"钢城街道",value:"钢城街道"},{label:"新城镇",value:"新城镇"},{label:"峪泉镇",value:"峪泉镇"},{label:"文殊镇",value:"文殊镇"}]},{label:"金昌市",value:"金昌市",children:[{label:"金川区",value:"金川区"},{label:"永昌县",value:"永昌县"}]},{label:"白银市",value:"白银市",children:[{label:"白银区",value:"白银区"},{label:"平川区",value:"平川区"},{label:"靖远县",value:"靖远县"},{label:"会宁县",value:"会宁县"},{label:"景泰县",value:"景泰县"}]},{label:"天水市",value:"天水市",children:[{label:"秦州区",value:"秦州区"},{label:"麦积区",value:"麦积区"},{label:"清水县",value:"清水县"},{label:"秦安县",value:"秦安县"},{label:"甘谷县",value:"甘谷县"},{label:"武山县",value:"武山县"},{label:"张家川回族自治县",value:"张家川回族自治县"}]},{label:"武威市",value:"武威市",children:[{label:"凉州区",value:"凉州区"},{label:"民勤县",value:"民勤县"},{label:"古浪县",value:"古浪县"},{label:"天祝藏族自治县",value:"天祝藏族自治县"}]},{label:"张掖市",value:"张掖市",children:[{label:"甘州区",value:"甘州区"},{label:"肃南裕固族自治县",value:"肃南裕固族自治县"},{label:"民乐县",value:"民乐县"},{label:"临泽县",value:"临泽县"},{label:"高台县",value:"高台县"},{label:"山丹县",value:"山丹县"}]},{label:"平凉市",value:"平凉市",children:[{label:"崆峒区",value:"崆峒区"},{label:"泾川县",value:"泾川县"},{label:"灵台县",value:"灵台县"},{label:"崇信县",value:"崇信县"},{label:"庄浪县",value:"庄浪县"},{label:"静宁县",value:"静宁县"},{label:"华亭市",value:"华亭市"}]},{label:"酒泉市",value:"酒泉市",children:[{label:"肃州区",value:"肃州区"},{label:"金塔县",value:"金塔县"},{label:"瓜州县",value:"瓜州县"},{label:"肃北蒙古族自治县",value:"肃北蒙古族自治县"},{label:"阿克塞哈萨克族自治县",value:"阿克塞哈萨克族自治县"},{label:"玉门市",value:"玉门市"},{label:"敦煌市",value:"敦煌市"}]},{label:"庆阳市",value:"庆阳市",children:[{label:"西峰区",value:"西峰区"},{label:"庆城县",value:"庆城县"},{label:"环县",value:"环县"},{label:"华池县",value:"华池县"},{label:"合水县",value:"合水县"},{label:"正宁县",value:"正宁县"},{label:"宁县",value:"宁县"},{label:"镇原县",value:"镇原县"}]},{label:"定西市",value:"定西市",children:[{label:"安定区",value:"安定区"},{label:"通渭县",value:"通渭县"},{label:"陇西县",value:"陇西县"},{label:"渭源县",value:"渭源县"},{label:"临洮县",value:"临洮县"},{label:"漳县",value:"漳县"},{label:"岷县",value:"岷县"}]},{label:"陇南市",value:"陇南市",children:[{label:"武都区",value:"武都区"},{label:"成县",value:"成县"},{label:"文县",value:"文县"},{label:"宕昌县",value:"宕昌县"},{label:"康县",value:"康县"},{label:"西和县",value:"西和县"},{label:"礼县",value:"礼县"},{label:"徽县",value:"徽县"},{label:"两当县",value:"两当县"}]},{label:"临夏回族自治州",value:"临夏回族自治州",children:[{label:"临夏市",value:"临夏市"},{label:"临夏县",value:"临夏县"},{label:"康乐县",value:"康乐县"},{label:"永靖县",value:"永靖县"},{label:"广河县",value:"广河县"},{label:"和政县",value:"和政县"},{label:"东乡族自治县",value:"东乡族自治县"},{label:"积石山保安族东乡族撒拉族自治县",value:"积石山保安族东乡族撒拉族自治县"}]},{label:"甘南藏族自治州",value:"甘南藏族自治州",children:[{label:"合作市",value:"合作市"},{label:"临潭县",value:"临潭县"},{label:"卓尼县",value:"卓尼县"},{label:"舟曲县",value:"舟曲县"},{label:"迭部县",value:"迭部县"},{label:"玛曲县",value:"玛曲县"},{label:"碌曲县",value:"碌曲县"},{label:"夏河县",value:"夏河县"}]}]},{label:"青海省",value:"青海省",children:[{label:"西宁市",value:"西宁市",children:[{label:"城东区",value:"城东区"},{label:"城中区",value:"城中区"},{label:"城西区",value:"城西区"},{label:"城北区",value:"城北区"},{label:"湟中区",value:"湟中区"},{label:"大通回族土族自治县",value:"大通回族土族自治县"},{label:"湟源县",value:"湟源县"}]},{label:"海东市",value:"海东市",children:[{label:"乐都区",value:"乐都区"},{label:"平安区",value:"平安区"},{label:"民和回族土族自治县",value:"民和回族土族自治县"},{label:"互助土族自治县",value:"互助土族自治县"},{label:"化隆回族自治县",value:"化隆回族自治县"},{label:"循化撒拉族自治县",value:"循化撒拉族自治县"}]},{label:"海北藏族自治州",value:"海北藏族自治州",children:[{label:"门源回族自治县",value:"门源回族自治县"},{label:"祁连县",value:"祁连县"},{label:"海晏县",value:"海晏县"},{label:"刚察县",value:"刚察县"}]},{label:"黄南藏族自治州",value:"黄南藏族自治州",children:[{label:"同仁市",value:"同仁市"},{label:"尖扎县",value:"尖扎县"},{label:"泽库县",value:"泽库县"},{label:"河南蒙古族自治县",value:"河南蒙古族自治县"}]},{label:"海南藏族自治州",value:"海南藏族自治州",children:[{label:"共和县",value:"共和县"},{label:"同德县",value:"同德县"},{label:"贵德县",value:"贵德县"},{label:"兴海县",value:"兴海县"},{label:"贵南县",value:"贵南县"}]},{label:"果洛藏族自治州",value:"果洛藏族自治州",children:[{label:"玛沁县",value:"玛沁县"},{label:"班玛县",value:"班玛县"},{label:"甘德县",value:"甘德县"},{label:"达日县",value:"达日县"},{label:"久治县",value:"久治县"},{label:"玛多县",value:"玛多县"}]},{label:"玉树藏族自治州",value:"玉树藏族自治州",children:[{label:"玉树市",value:"玉树市"},{label:"杂多县",value:"杂多县"},{label:"称多县",value:"称多县"},{label:"治多县",value:"治多县"},{label:"囊谦县",value:"囊谦县"},{label:"曲麻莱县",value:"曲麻莱县"}]},{label:"海西蒙古族藏族自治州",value:"海西蒙古族藏族自治州",children:[{label:"格尔木市",value:"格尔木市"},{label:"德令哈市",value:"德令哈市"},{label:"茫崖市",value:"茫崖市"},{label:"乌兰县",value:"乌兰县"},{label:"都兰县",value:"都兰县"},{label:"天峻县",value:"天峻县"},{label:"大柴旦行政委员会",value:"大柴旦行政委员会"}]}]},{label:"宁夏回族自治区",value:"宁夏回族自治区",children:[{label:"银川市",value:"银川市",children:[{label:"兴庆区",value:"兴庆区"},{label:"西夏区",value:"西夏区"},{label:"金凤区",value:"金凤区"},{label:"永宁县",value:"永宁县"},{label:"贺兰县",value:"贺兰县"},{label:"灵武市",value:"灵武市"}]},{label:"石嘴山市",value:"石嘴山市",children:[{label:"大武口区",value:"大武口区"},{label:"惠农区",value:"惠农区"},{label:"平罗县",value:"平罗县"}]},{label:"吴忠市",value:"吴忠市",children:[{label:"利通区",value:"利通区"},{label:"红寺堡区",value:"红寺堡区"},{label:"盐池县",value:"盐池县"},{label:"同心县",value:"同心县"},{label:"青铜峡市",value:"青铜峡市"}]},{label:"固原市",value:"固原市",children:[{label:"原州区",value:"原州区"},{label:"西吉县",value:"西吉县"},{label:"隆德县",value:"隆德县"},{label:"泾源县",value:"泾源县"},{label:"彭阳县",value:"彭阳县"}]},{label:"中卫市",value:"中卫市",children:[{label:"沙坡头区",value:"沙坡头区"},{label:"中宁县",value:"中宁县"},{label:"海原县",value:"海原县"}]}]},{label:"新疆维吾尔自治区",value:"新疆维吾尔自治区",children:[{label:"乌鲁木齐市",value:"乌鲁木齐市",children:[{label:"天山区",value:"天山区"},{label:"沙依巴克区",value:"沙依巴克区"},{label:"新市区",value:"新市区"},{label:"水磨沟区",value:"水磨沟区"},{label:"头屯河区",value:"头屯河区"},{label:"达坂城区",value:"达坂城区"},{label:"米东区",value:"米东区"},{label:"乌鲁木齐县",value:"乌鲁木齐县"}]},{label:"克拉玛依市",value:"克拉玛依市",children:[{label:"独山子区",value:"独山子区"},{label:"克拉玛依区",value:"克拉玛依区"},{label:"白碱滩区",value:"白碱滩区"},{label:"乌尔禾区",value:"乌尔禾区"}]},{label:"吐鲁番市",value:"吐鲁番市",children:[{label:"高昌区",value:"高昌区"},{label:"鄯善县",value:"鄯善县"},{label:"托克逊县",value:"托克逊县"}]},{label:"哈密市",value:"哈密市",children:[{label:"伊州区",value:"伊州区"},{label:"巴里坤哈萨克自治县",value:"巴里坤哈萨克自治县"},{label:"伊吾县",value:"伊吾县"}]},{label:"昌吉回族自治州",value:"昌吉回族自治州",children:[{label:"昌吉市",value:"昌吉市"},{label:"阜康市",value:"阜康市"},{label:"呼图壁县",value:"呼图壁县"},{label:"玛纳斯县",value:"玛纳斯县"},{label:"奇台县",value:"奇台县"},{label:"吉木萨尔县",value:"吉木萨尔县"},{label:"木垒哈萨克自治县",value:"木垒哈萨克自治县"}]},{label:"博尔塔拉蒙古自治州",value:"博尔塔拉蒙古自治州",children:[{label:"博乐市",value:"博乐市"},{label:"阿拉山口市",value:"阿拉山口市"},{label:"精河县",value:"精河县"},{label:"温泉县",value:"温泉县"}]},{label:"巴音郭楞蒙古自治州",value:"巴音郭楞蒙古自治州",children:[{label:"库尔勒市",value:"库尔勒市"},{label:"轮台县",value:"轮台县"},{label:"尉犁县",value:"尉犁县"},{label:"若羌县",value:"若羌县"},{label:"且末县",value:"且末县"},{label:"焉耆回族自治县",value:"焉耆回族自治县"},{label:"和静县",value:"和静县"},{label:"和硕县",value:"和硕县"},{label:"博湖县",value:"博湖县"}]},{label:"阿克苏地区",value:"阿克苏地区",children:[{label:"阿克苏市",value:"阿克苏市"},{label:"库车市",value:"库车市"},{label:"温宿县",value:"温宿县"},{label:"沙雅县",value:"沙雅县"},{label:"新和县",value:"新和县"},{label:"拜城县",value:"拜城县"},{label:"乌什县",value:"乌什县"},{label:"阿瓦提县",value:"阿瓦提县"},{label:"柯坪县",value:"柯坪县"}]},{label:"克孜勒苏柯尔克孜自治州",value:"克孜勒苏柯尔克孜自治州",children:[{label:"阿图什市",value:"阿图什市"},{label:"阿克陶县",value:"阿克陶县"},{label:"阿合奇县",value:"阿合奇县"},{label:"乌恰县",value:"乌恰县"}]},{label:"喀什地区",value:"喀什地区",children:[{label:"喀什市",value:"喀什市"},{label:"疏附县",value:"疏附县"},{label:"疏勒县",value:"疏勒县"},{label:"英吉沙县",value:"英吉沙县"},{label:"泽普县",value:"泽普县"},{label:"莎车县",value:"莎车县"},{label:"叶城县",value:"叶城县"},{label:"麦盖提县",value:"麦盖提县"},{label:"岳普湖县",value:"岳普湖县"},{label:"伽师县",value:"伽师县"},{label:"巴楚县",value:"巴楚县"},{label:"塔什库尔干塔吉克自治县",value:"塔什库尔干塔吉克自治县"}]},{label:"和田地区",value:"和田地区",children:[{label:"和田市",value:"和田市"},{label:"和田县",value:"和田县"},{label:"墨玉县",value:"墨玉县"},{label:"皮山县",value:"皮山县"},{label:"洛浦县",value:"洛浦县"},{label:"策勒县",value:"策勒县"},{label:"于田县",value:"于田县"},{label:"民丰县",value:"民丰县"}]},{label:"伊犁哈萨克自治州",value:"伊犁哈萨克自治州",children:[{label:"伊宁市",value:"伊宁市"},{label:"奎屯市",value:"奎屯市"},{label:"霍尔果斯市",value:"霍尔果斯市"},{label:"伊宁县",value:"伊宁县"},{label:"察布查尔锡伯自治县",value:"察布查尔锡伯自治县"},{label:"霍城县",value:"霍城县"},{label:"巩留县",value:"巩留县"},{label:"新源县",value:"新源县"},{label:"昭苏县",value:"昭苏县"},{label:"特克斯县",value:"特克斯县"},{label:"尼勒克县",value:"尼勒克县"}]},{label:"塔城地区",value:"塔城地区",children:[{label:"塔城市",value:"塔城市"},{label:"乌苏市",value:"乌苏市"},{label:"沙湾市",value:"沙湾市"},{label:"额敏县",value:"额敏县"},{label:"托里县",value:"托里县"},{label:"裕民县",value:"裕民县"},{label:"和布克赛尔蒙古自治县",value:"和布克赛尔蒙古自治县"}]},{label:"阿勒泰地区",value:"阿勒泰地区",children:[{label:"阿勒泰市",value:"阿勒泰市"},{label:"布尔津县",value:"布尔津县"},{label:"富蕴县",value:"富蕴县"},{label:"福海县",value:"福海县"},{label:"哈巴河县",value:"哈巴河县"},{label:"青河县",value:"青河县"},{label:"吉木乃县",value:"吉木乃县"}]},{label:"自治区直辖县级行政区划",value:"自治区直辖县级行政区划",children:[{label:"石河子市",value:"石河子市"},{label:"阿拉尔市",value:"阿拉尔市"},{label:"图木舒克市",value:"图木舒克市"},{label:"五家渠市",value:"五家渠市"},{label:"北屯市",value:"北屯市"},{label:"铁门关市",value:"铁门关市"},{label:"双河市",value:"双河市"},{label:"可克达拉市",value:"可克达拉市"},{label:"昆玉市",value:"昆玉市"},{label:"胡杨河市",value:"胡杨河市"},{label:"新星市",value:"新星市"},{label:"白杨市",value:"白杨市"}]}]},{label:"香港特别行政区",value:"香港特别行政区",children:[{label:"香港岛",value:"香港岛",children:[{label:"中西区",value:"中西区"},{label:"湾仔区",value:"湾仔区"},{label:"东区",value:"东区"},{label:"南区",value:"南区"}]},{label:"九龙",value:"九龙",children:[{label:"油尖旺区",value:"油尖旺区"},{label:"深水埗区",value:"深水埗区"},{label:"九龙城区",value:"九龙城区"},{label:"黄大仙区",value:"黄大仙区"},{label:"观塘区",value:"观塘区"}]},{label:"新界",value:"新界",children:[{label:"葵青区",value:"葵青区"},{label:"荃湾区",value:"荃湾区"},{label:"屯门区",value:"屯门区"},{label:"元朗区",value:"元朗区"},{label:"北区",value:"北区"},{label:"大埔区",value:"大埔区"},{label:"沙田区",value:"沙田区"},{label:"西贡区",value:"西贡区"},{label:"离岛区",value:"离岛区"}]}]},{label:"澳门特别行政区",value:"澳门特别行政区",children:[{label:"澳门半岛",value:"澳门半岛",children:[{label:"大堂区",value:"大堂区"},{label:"望德堂区",value:"望德堂区"},{label:"风顺堂区",value:"风顺堂区"},{label:"花地玛堂区",value:"花地玛堂区"},{label:"圣安多尼堂区",value:"圣安多尼堂区"}]},{label:"澳门外岛",value:"澳门外岛",children:[{label:"嘉模堂区(氹仔)",value:"嘉模堂区(氹仔)"},{label:"圣方济各堂区(路环)",value:"圣方济各堂区(路环)"}]}]},{label:"台湾省",value:"台湾省",children:[{label:"台北市",value:"台北市",children:[{label:"大安区",value:"大安区"},{label:"内湖区",value:"内湖区"},{label:"士林区",value:"士林区"},{label:"文山区",value:"文山区"},{label:"北投区",value:"北投区"},{label:"中山区",value:"中山区"},{label:"信义区",value:"信义区"},{label:"松山区",value:"松山区"},{label:"万华区",value:"万华区"},{label:"中正区",value:"中正区"},{label:"大同区",value:"大同区"},{label:"南港区",value:"南港区"}]},{label:"新北市",value:"新北市",children:[{label:"板桥区",value:"板桥区"},{label:"新庄区",value:"新庄区"},{label:"中和区",value:"中和区"},{label:"三重区",value:"三重区"},{label:"新店区",value:"新店区"},{label:"土城区",value:"土城区"},{label:"永和区",value:"永和区"},{label:"芦洲区",value:"芦洲区"},{label:"汐止区",value:"汐止区"},{label:"树林区",value:"树林区"},{label:"淡水区",value:"淡水区"},{label:"三峡区",value:"三峡区"},{label:"林口区",value:"林口区"},{label:"莺歌区",value:"莺歌区"},{label:"五股区",value:"五股区"},{label:"泰山区",value:"泰山区"},{label:"瑞芳区",value:"瑞芳区"},{label:"八里区",value:"八里区"},{label:"深坑区",value:"深坑区"},{label:"三芝区",value:"三芝区"},{label:"万里区",value:"万里区"},{label:"金山区",value:"金山区"},{label:"贡寮区",value:"贡寮区"},{label:"石门区",value:"石门区"},{label:"双溪区",value:"双溪区"},{label:"石碇区",value:"石碇区"},{label:"坪林区",value:"坪林区"},{label:"乌来区",value:"乌来区"},{label:"平溪区",value:"平溪区"}]},{label:"桃园市",value:"桃园市",children:[{label:"桃园区",value:"桃园区"},{label:"中坜区",value:"中坜区"},{label:"平镇区",value:"平镇区"},{label:"八德区",value:"八德区"},{label:"杨梅区",value:"杨梅区"},{label:"芦竹区",value:"芦竹区"},{label:"龟山区",value:"龟山区"},{label:"龙潭区",value:"龙潭区"},{label:"大溪区",value:"大溪区"},{label:"大园区",value:"大园区"},{label:"观音区",value:"观音区"},{label:"新屋区",value:"新屋区"},{label:"复兴区",value:"复兴区"}]},{label:"台中市",value:"台中市",children:[{label:"北屯区",value:"北屯区"},{label:"西屯区",value:"西屯区"},{label:"大里区",value:"大里区"},{label:"太平区",value:"太平区"},{label:"南屯区",value:"南屯区"},{label:"丰原区",value:"丰原区"},{label:"东区",value:"东区"},{label:"南区",value:"南区"},{label:"西区",value:"西区"},{label:"北区",value:"北区"},{label:"中区",value:"中区"},{label:"潭子区",value:"潭子区"},{label:"大雅区",value:"大雅区"},{label:"沙鹿区",value:"沙鹿区"},{label:"清水区",value:"清水区"},{label:"龙井区",value:"龙井区"},{label:"大甲区",value:"大甲区"},{label:"乌日区",value:"乌日区"},{label:"神冈区",value:"神冈区"},{label:"雾峰区",value:"雾峰区"},{label:"梧栖区",value:"梧栖区"},{label:"大肚区",value:"大肚区"},{label:"后里区",value:"后里区"},{label:"东势区",value:"东势区"},{label:"外埔区",value:"外埔区"},{label:"新社区",value:"新社区"},{label:"大安区",value:"大安区"},{label:"石冈区",value:"石冈区"},{label:"和平区",value:"和平区"}]},{label:"台南市",value:"台南市",children:[{label:"永康区",value:"永康区"},{label:"安南区",value:"安南区"},{label:"东区",value:"东区"},{label:"北区",value:"北区"},{label:"南区",value:"南区"},{label:"中西区",value:"中西区"},{label:"新营区",value:"新营区"},{label:"仁德区",value:"仁德区"},{label:"归仁区",value:"归仁区"},{label:"安平区",value:"安平区"},{label:"佳里区",value:"佳里区"},{label:"善化区",value:"善化区"},{label:"麻豆区",value:"麻豆区"},{label:"新化区",value:"新化区"},{label:"新市区",value:"新市区"},{label:"关庙区",value:"关庙区"},{label:"安定区",value:"安定区"},{label:"白河区",value:"白河区"},{label:"学甲区",value:"学甲区"},{label:"盐水区",value:"盐水区"},{label:"西港区",value:"西港区"},{label:"下营区",value:"下营区"},{label:"后壁区",value:"后壁区"},{label:"七股区",value:"七股区"},{label:"六甲区",value:"六甲区"},{label:"官田区",value:"官田区"},{label:"柳营区",value:"柳营区"},{label:"东山区",value:"东山区"},{label:"将军区",value:"将军区"},{label:"玉井区",value:"玉井区"},{label:"北门区",value:"北门区"},{label:"大内区",value:"大内区"},{label:"楠西区",value:"楠西区"},{label:"南化区",value:"南化区"},{label:"山上区",value:"山上区"},{label:"左镇区",value:"左镇区"},{label:"龙崎区",value:"龙崎区"}]},{label:"高雄市",value:"高雄市",children:[{label:"凤山区",value:"凤山区"},{label:"三民区",value:"三民区"},{label:"左营区",value:"左营区"},{label:"前镇区",value:"前镇区"},{label:"楠梓区",value:"楠梓区"},{label:"苓雅区",value:"苓雅区"},{label:"小港区",value:"小港区"},{label:"鼓山区",value:"鼓山区"},{label:"大寮区",value:"大寮区"},{label:"冈山区",value:"冈山区"},{label:"仁武区",value:"仁武区"},{label:"林园区",value:"林园区"},{label:"路竹区",value:"路竹区"},{label:"新兴区",value:"新兴区"},{label:"鸟松区",value:"鸟松区"},{label:"大树区",value:"大树区"},{label:"美浓区",value:"美浓区"},{label:"桥头区",value:"桥头区"},{label:"旗山区",value:"旗山区"},{label:"梓官区",value:"梓官区"},{label:"大社区",value:"大社区"},{label:"茄萣区",value:"茄萣区"},{label:"燕巢区",value:"燕巢区"},{label:"湖内区",value:"湖内区"},{label:"阿莲区",value:"阿莲区"},{label:"旗津区",value:"旗津区"},{label:"前金区",value:"前金区"},{label:"盐埕区",value:"盐埕区"},{label:"弥陀区",value:"弥陀区"},{label:"内门区",value:"内门区"},{label:"永安区",value:"永安区"},{label:"六龟区",value:"六龟区"},{label:"杉林区",value:"杉林区"},{label:"田寮区",value:"田寮区"},{label:"甲仙区",value:"甲仙区"},{label:"桃源区",value:"桃源区"},{label:"那玛夏区",value:"那玛夏区"},{label:"茂林区",value:"茂林区"}]},{label:"基隆市",value:"基隆市",children:[{label:"安乐区",value:"安乐区"},{label:"七堵区",value:"七堵区"},{label:"信义区",value:"信义区"},{label:"中正区",value:"中正区"},{label:"中山区",value:"中山区"},{label:"仁爱区",value:"仁爱区"},{label:"暖暖区",value:"暖暖区"}]},{label:"新竹市",value:"新竹市",children:[{label:"东区",value:"东区"},{label:"北区",value:"北区"},{label:"香山区",value:"香山区"}]},{label:"嘉义市",value:"嘉义市",children:[{label:"东区",value:"东区"},{label:"西区",value:"西区"}]},{label:"新竹县",value:"新竹县",children:[{label:"竹北市",value:"竹北市"},{label:"竹东镇",value:"竹东镇"},{label:"新埔镇",value:"新埔镇"},{label:"关西镇",value:"关西镇"},{label:"湖口乡",value:"湖口乡"},{label:"新丰乡",value:"新丰乡"},{label:"芎林乡",value:"芎林乡"},{label:"宝山乡",value:"宝山乡"},{label:"横山乡",value:"横山乡"},{label:"尖石乡",value:"尖石乡"},{label:"北埔乡",value:"北埔乡"},{label:"峨眉乡",value:"峨眉乡"},{label:"五峰乡",value:"五峰乡"}]},{label:"苗栗县",value:"苗栗县",children:[{label:"头份市",value:"头份市"},{label:"苗栗市",value:"苗栗市"},{label:"竹南镇",value:"竹南镇"},{label:"苑里镇",value:"苑里镇"},{label:"后龙镇",value:"后龙镇"},{label:"通霄镇",value:"通霄镇"},{label:"卓兰镇",value:"卓兰镇"},{label:"公馆乡",value:"公馆乡"},{label:"铜锣乡",value:"铜锣乡"},{label:"三义乡",value:"三义乡"},{label:"大湖乡",value:"大湖乡"},{label:"造桥乡",value:"造桥乡"},{label:"头屋乡",value:"头屋乡"},{label:"南庄乡",value:"南庄乡"},{label:"西湖乡",value:"西湖乡"},{label:"三湾乡",value:"三湾乡"},{label:"泰安乡",value:"泰安乡"},{label:"狮潭乡",value:"狮潭乡"}]},{label:"彰化县",value:"彰化县",children:[{label:"彰化市",value:"彰化市"},{label:"员林市",value:"员林市"},{label:"和美镇",value:"和美镇"},{label:"鹿港镇",value:"鹿港镇"},{label:"溪湖镇",value:"溪湖镇"},{label:"二林镇",value:"二林镇"},{label:"田中镇",value:"田中镇"},{label:"北斗镇",value:"北斗镇"},{label:"福兴乡",value:"福兴乡"},{label:"花坛乡",value:"花坛乡"},{label:"社头乡",value:"社头乡"},{label:"秀水乡",value:"秀水乡"},{label:"伸港乡",value:"伸港乡"},{label:"大村乡",value:"大村乡"},{label:"永靖乡",value:"永靖乡"},{label:"埔心乡",value:"埔心乡"},{label:"芳苑乡",value:"芳苑乡"},{label:"埔盐乡",value:"埔盐乡"},{label:"埤头乡",value:"埤头乡"},{label:"溪州乡",value:"溪州乡"},{label:"田尾乡",value:"田尾乡"},{label:"芬园乡",value:"芬园乡"},{label:"线西乡",value:"线西乡"},{label:"大城乡",value:"大城乡"},{label:"二水乡",value:"二水乡"},{label:"竹塘乡",value:"竹塘乡"}]},{label:"南投县",value:"南投县",children:[{label:"南投市",value:"南投市"},{label:"草屯镇",value:"草屯镇"},{label:"埔里镇",value:"埔里镇"},{label:"竹山镇",value:"竹山镇"},{label:"集集镇",value:"集集镇"},{label:"名间乡",value:"名间乡"},{label:"国姓乡",value:"国姓乡"},{label:"鹿谷乡",value:"鹿谷乡"},{label:"水里乡",value:"水里乡"},{label:"信义乡",value:"信义乡"},{label:"仁爱乡",value:"仁爱乡"},{label:"鱼池乡",value:"鱼池乡"},{label:"中寮乡",value:"中寮乡"}]},{label:"云林县",value:"云林县",children:[{label:"斗六市",value:"斗六市"},{label:"虎尾镇",value:"虎尾镇"},{label:"西螺镇",value:"西螺镇"},{label:"斗南镇",value:"斗南镇"},{label:"北港镇",value:"北港镇"},{label:"土库镇",value:"土库镇"},{label:"麦寮乡",value:"麦寮乡"},{label:"古坑乡",value:"古坑乡"},{label:"莿桐乡",value:"莿桐乡"},{label:"口湖乡",value:"口湖乡"},{label:"二仑乡",value:"二仑乡"},{label:"元长乡",value:"元长乡"},{label:"水林乡",value:"水林乡"},{label:"仑背乡",value:"仑背乡"},{label:"台西乡",value:"台西乡"},{label:"四湖乡",value:"四湖乡"},{label:"大埤乡",value:"大埤乡"},{label:"林内乡",value:"林内乡"},{label:"东势乡",value:"东势乡"},{label:"褒忠乡",value:"褒忠乡"}]},{label:"嘉义县",value:"嘉义县",children:[{label:"朴子市",value:"朴子市"},{label:"太保市",value:"太保市"},{label:"大林镇",value:"大林镇"},{label:"布袋镇",value:"布袋镇"},{label:"民雄乡",value:"民雄乡"},{label:"水上乡",value:"水上乡"},{label:"中埔乡",value:"中埔乡"},{label:"竹崎乡",value:"竹崎乡"},{label:"新港乡",value:"新港乡"},{label:"东石乡",value:"东石乡"},{label:"六脚乡",value:"六脚乡"},{label:"梅山乡",value:"梅山乡"},{label:"义竹乡",value:"义竹乡"},{label:"鹿草乡",value:"鹿草乡"},{label:"溪口乡",value:"溪口乡"},{label:"番路乡",value:"番路乡"},{label:"阿里山乡",value:"阿里山乡"},{label:"大埔乡",value:"大埔乡"}]},{label:"屏东县",value:"屏东县",children:[{label:"屏东市",value:"屏东市"},{label:"潮州镇",value:"潮州镇"},{label:"东港镇",value:"东港镇"},{label:"恒春镇",value:"恒春镇"},{label:"内埔乡",value:"内埔乡"},{label:"万丹乡",value:"万丹乡"},{label:"新园乡",value:"新园乡"},{label:"长治乡",value:"长治乡"},{label:"里港乡",value:"里港乡"},{label:"盐埔乡",value:"盐埔乡"},{label:"高树乡",value:"高树乡"},{label:"枋寮乡",value:"枋寮乡"},{label:"九如乡",value:"九如乡"},{label:"万峦乡",value:"万峦乡"},{label:"佳冬乡",value:"佳冬乡"},{label:"林边乡",value:"林边乡"},{label:"竹田乡",value:"竹田乡"},{label:"崁顶乡",value:"崁顶乡"},{label:"琉球乡",value:"琉球乡"},{label:"麟洛乡",value:"麟洛乡"},{label:"南州乡",value:"南州乡"},{label:"新埤乡",value:"新埤乡"},{label:"车城乡",value:"车城乡"},{label:"满州乡",value:"满州乡"},{label:"三地门乡",value:"三地门乡"},{label:"来义乡",value:"来义乡"},{label:"玛家乡",value:"玛家乡"},{label:"枋山乡",value:"枋山乡"},{label:"泰武乡",value:"泰武乡"},{label:"牡丹乡",value:"牡丹乡"},{label:"狮子乡",value:"狮子乡"},{label:"春日乡",value:"春日乡"},{label:"雾台乡",value:"雾台乡"}]},{label:"宜兰县",value:"宜兰县",children:[{label:"宜兰市",value:"宜兰市"},{label:"罗东镇",value:"罗东镇"},{label:"苏澳镇",value:"苏澳镇"},{label:"头城镇",value:"头城镇"},{label:"冬山乡",value:"冬山乡"},{label:"五结乡",value:"五结乡"},{label:"礁溪乡",value:"礁溪乡"},{label:"员山乡",value:"员山乡"},{label:"壮围乡",value:"壮围乡"},{label:"三星乡",value:"三星乡"},{label:"大同乡",value:"大同乡"},{label:"南澳乡",value:"南澳乡"}]},{label:"花莲县",value:"花莲县",children:[{label:"花莲市",value:"花莲市"},{label:"玉里镇",value:"玉里镇"},{label:"凤林镇",value:"凤林镇"},{label:"吉安乡",value:"吉安乡"},{label:"新城乡",value:"新城乡"},{label:"寿丰乡",value:"寿丰乡"},{label:"秀林乡",value:"秀林乡"},{label:"光复乡",value:"光复乡"},{label:"瑞穗乡",value:"瑞穗乡"},{label:"富里乡",value:"富里乡"},{label:"万荣乡",value:"万荣乡"},{label:"卓溪乡",value:"卓溪乡"},{label:"丰滨乡",value:"丰滨乡"}]},{label:"台东县",value:"台东县",children:[{label:"台东市",value:"台东市"},{label:"卑南乡",value:"卑南乡"},{label:"成功镇",value:"成功镇"},{label:"太麻里乡",value:"太麻里乡"},{label:"关山镇",value:"关山镇"},{label:"东河乡",value:"东河乡"},{label:"池上乡",value:"池上乡"},{label:"鹿野乡",value:"鹿野乡"},{label:"长滨乡",value:"长滨乡"},{label:"大武乡",value:"大武乡"},{label:"兰屿乡",value:"兰屿乡"},{label:"海端乡",value:"海端乡"},{label:"绿岛乡",value:"绿岛乡"},{label:"金峰乡",value:"金峰乡"},{label:"延平乡",value:"延平乡"},{label:"达仁乡",value:"达仁乡"}]},{label:"澎湖县",value:"澎湖县",children:[{label:"马公市",value:"马公市"},{label:"湖西乡",value:"湖西乡"},{label:"白沙乡",value:"白沙乡"},{label:"西屿乡",value:"西屿乡"},{label:"望安乡",value:"望安乡"},{label:"七美乡",value:"七美乡"}]}]},{label:"其他",value:"其他",children:[{label:"国外",value:"国外"}]}],D1=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,P1=(e,t)=>{const a=t[e.key]||e.defaultValue||"",l=e.cascaderOptions&&e.cascaderOptions.length>0?e.cascaderOptions:O1,n=encodeURIComponent(JSON.stringify(l)),r=e.placeholder?` data-placeholder="${e.placeholder}"`:"",i=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",u=e.required?' data-required="true"':"",s=`<span data-type="cascader" data-key="${e.key}" data-value="${a}" data-options="${n}"${r}${i}${u} class="rte-cascader-host"></span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${D1}${s}</span>`:s};function M1(e,t,a,l,n,r={},i,u,s){if(!e.current)return;const o=/[;;,,。.!!??::、]/,c=h=>{const b=(h??"").trim();return b.length===1&&o.test(b)},f=h=>{const b=h??"",v=b.match(new RegExp(`^\\s*(${o.source})`));if(!v)return null;const g=v[1],E=b.replace(new RegExp(`^\\s*${o.source}`),"");return{punct:g,rest:E}},m=h=>`<span data-type="text" class="rte-inline-punct" contenteditable="false">${h}</span>`,p=[];let y=0;for(;y<t.length;){const h=t[y],b=y+1<t.length?t[y+1]:null;let v=!1;if(h.type==="text"&&(h.text?.includes("icon-bitian")||h.className==="rte-text-required")&&b){const S=b.type==="upload"&&b.exclusionGroup==="fileInput"&&h.exclusionGroup==="fileInput"&&h.exclusionGroup===b.exclusionGroup,T=b.type==="variable"&&b.exclusionGroup==="textInput"&&h.exclusionGroup==="textInput"&&h.exclusionGroup===b.exclusionGroup;if(S){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let P="";h.className?P=`<span class="${h.className}">${h.text??""}</span>`:P=h.text??"";const N=b,{uploadHtml:x,hintHtml:F}=u1(N,a);p.push(k+P+x+D+F),y+=2;continue}if(T){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let P="";h.className?P=`<span class="${h.className}">${h.text??""}</span>`:P=h.text??"";const x=Fs(b,n);p.push(k+P+x+D),y+=2;continue}}const E=h.exclusionGroup?`data-group="${h.exclusionGroup}"`:"",_=h.exclusionGroup?`<span ${E} class="exclusion-wrapper">`:"",w=h.exclusionGroup?"</span>":"";let C="";if(h.type==="tag")C=a1(h,{lockStructure:l,hideButtons:i});else if(h.type==="text")C=l1(h,l);else if(h.type==="variable"&&h.key)C=r1(h,n);else if(h.type==="report-url"&&h.key)C=b1(h,n);else if(h.type==="markdown-name"&&h.key)C=v1(h,n);else if(h.type==="markdown"&&h.key)C=E1(h,n);else if(h.type==="upload"&&h.key){const S=!!b&&b.type==="text"&&!b.className&&!b.exclusionGroup&&c(b.text),T=S?(b.text??"").trim():"",A=T?m(T):"";S&&(v=!0),C=s1(h,a,A)}else h.type==="select"&&h.key?C=c1(h,n):h.type==="textarea"&&h.key?C=f1(h,n):h.type==="richtext"&&h.key?C=p1(h,n):h.type==="report-module"&&h.key?C=y1(h,n):h.type==="markdown-module"&&h.key?C=T1(h,n):h.type==="datepicker"&&h.key?C=C1(h,n):h.type==="number-input"&&h.key?C=A1(h,n):h.type==="multi-variable"&&h.key?C=w1(h,n,r):h.type==="video-url"&&h.key?C=k1(h,s||{}):h.type==="video-upload"&&h.key?C=N1(h,s||{}):h.type==="searchable-select"&&h.key?C=L1(h,n):h.type==="cascader"&&h.key&&(C=P1(h,n));const M=_+C+w;if(h.type==="text"&&!h.className&&!h.exclusionGroup){if(c(h.text)&&p.length>0){const T=p[p.length-1],A=(h.text??"").trim();p[p.length-1]=`<span class="rte-inline-group">${T}${m(A)}</span>`,y++;continue}const S=f(h.text);if(S&&p.length>0){const T=p[p.length-1];p[p.length-1]=`<span class="rte-inline-group">${T}${m(S.punct)}</span>`;const A=S.rest;if(A){const k=A.replace(/\n/g,"<br/>");p.push(`<span data-type="text" contenteditable="false">${k}</span>`)}y++;continue}}p.push(M),y+=v?2:1}e.current&&(e.current.innerHTML=p.join(""),setTimeout(()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="variable"]').forEach(b=>{if(b.dataset.variableRender==="antd-textarea")return;if(b.innerText.replace(/\n/g,"").replace(/\u200B/g,""))b.classList.remove("show-placeholder");else{const E=Array.from(b.childNodes),_=b.querySelector(".variable-info-icon");E.forEach(C=>{if(C.nodeType===Node.TEXT_NODE){b.removeChild(C);return}C.nodeType===Node.ELEMENT_NODE&&C.tagName==="BR"&&b.removeChild(C)});const w=document.createTextNode("");_&&_.parentNode===b?b.insertBefore(w,_):b.firstChild?b.insertBefore(w,b.firstChild):b.appendChild(w),b.classList.add("show-placeholder")}})},0))}function B1(e,t,a,l,n={},r,i,u,s,o,c){const f=I.useRef(new Set),m=I.useRef(""),p=I.useRef(!1),y=I.useRef({}),h=I.useCallback(()=>{if(!e.current)return;if(t.length===0){e.current.innerHTML="";return}const b=t.filter(C=>C.key&&C.type!=="report-module"&&C.type!=="markdown-module").map(C=>`${C.type}:${C.key}`).join("|");m.current!==b&&(m.current=b,f.current=new Set,p.current=!0);const v=p.current;let g={};const E=new Set;e.current&&!v&&e.current.querySelectorAll('[data-type="variable"]').forEach(M=>{const S=M.dataset.key;if(!S)return;let T="";if(M.dataset.variableRender==="antd-textarea"){const A=(M.getAttribute("data-value")||"").trim();try{T=A?decodeURIComponent(A).replace(/\r\n/g,`
|
|
61
|
+
`).trim():""}catch{T=A.trim()}}else{const A=(M.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
62
|
+
`);T=A.replace(/\n/g,"").trim().length>0?A:""}if(T)f.current.add(S);else if(f.current.has(S)){E.add(S);const A=M.getAttribute("data-node-type");A==="report-url"?E.add(`${S}__url`):A==="markdown-name"&&E.add(`${S}__name`)}});const w=e.current.__tempVariableValues;if(w?(g=w,setTimeout(()=>{if(e.current){const C=e.current;C.__tempVariableValues===w&&delete C.__tempVariableValues}},100)):v||(e.current.querySelectorAll('[data-type="variable"]').forEach(P=>{const N=P.dataset.key;if(N){const F=(()=>{if(P.dataset.variableRender==="antd-textarea"){const G=(P.getAttribute("data-value")||"").trim();if(!G)return"";try{return decodeURIComponent(G).replace(/\r\n/g,`
|
|
63
63
|
`).trim()}catch{return G.trim()}}const U=(P.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
64
|
-
`);return U.replace(/\n/g,"").trim().length>0?U:""})();F&&(P.getAttribute("data-node-type")==="report-url"?E[`${N}__url`]=F:P.getAttribute("data-node-type")==="markdown-name"?E[`${N}__name`]=F:E[N]=F)}}),e.current.querySelectorAll('[data-type="select"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="searchable-select"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="textarea"]').forEach(P=>{const N=P.dataset.key;if(N){const C=P.value.replace(/[\u200B]/g,"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="richtext"]').forEach(P=>{const N=P.dataset.key;if(N){const C=P.getAttribute("data-node-type")||"",F=C==="report-module"||C==="markdown-module",U=F?(P.innerHTML||"").replace(/[\u200B]/g,"").trim():(P.textContent||"").replace(/[\u200B]/g,"").trim();if(F){const $=Number.parseInt(P.getAttribute("data-module-index")||"0",10);E[`${N}__module_${Number.isFinite($)?$:0}`]=U}else U&&(E[N]=U)}}),e.current.querySelectorAll('[data-type="datepicker"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.getAttribute("data-value")||"").trim();C&&(E[N]=C)}}),e.current.querySelectorAll('[data-type="number-input"]').forEach(P=>{const N=P.dataset.key;if(N){const C=(P.value||"").trim();C&&(E[N]=C)}})),l&&Object.keys(l).length>0){const S=new Set(t.filter(A=>A.type==="upload"&&A.key).map(A=>A.key)),M={};b||Object.entries(l).forEach(([A,x])=>{if(!Array.isArray(x))return;let v=0;for(let D=0;D<x.length;D++)`${A}_${D}`in E&&v++;let k=-1;for(let D=0;D<x.length;D++)f.current.has(`${A}_${D}`)&&(k=D);if(k>=v&&v<x.length)for(let D=v;D<x.length;D++)y.add(`${A}_${D}`)}),Object.entries(l).forEach(([A,x])=>{S.has(A)||(Array.isArray(x)?x.forEach((v,k)=>{v!=null&&String(v).trim()!==""&&(M[`${A}_${k}`]=String(v))}):x!=null&&String(x).trim()!==""&&(t.find(k=>k.key===A&&k.type==="report-url")?M[`${A}__url`]=String(x):M[A]=String(x)))}),Object.entries(M).forEach(([A,x])=>{const v=A in E,k=y.has(A),D=T.current[A]!==x;!k&&(!v||D)&&(E[A]=x)}),T.current=M}if(M1(e,t,n,r,E,a,o,u,c),b&&(p.current=!1),setTimeout(()=>{Vn(e)},0),i?.current){const{key:S,offset:M}=i.current;setTimeout(()=>{if(!e.current)return;const A=e.current.querySelector(`[data-type="variable"][data-key="${S}"]`);if(A){if(A.dataset.variableRender==="antd-textarea"){const x=A.querySelector("textarea");if(x){x.focus();try{const v=x.value?.length??0;x.setSelectionRange(Math.min(M,v),Math.min(M,v))}catch{}i.current=null;return}}try{const x=document.createRange(),v=document.createTreeWalker(A,NodeFilter.SHOW_TEXT,null);let k=0,D=null,P=0;for(;v.nextNode();){const N=v.currentNode,C=N.textContent?.length||0;if(k+C>=M){D=N,P=M-k;break}k+=C}if(D){x.setStart(D,Math.min(P,D.textContent?.length||0)),x.collapse(!0);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(x),A.focus())}else{x.selectNodeContents(A),x.collapse(!1);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(x),A.focus())}}catch{const x=document.createRange();x.selectNodeContents(A),x.collapse(!1);const v=window.getSelection();v&&(v.removeAllRanges(),v.addRange(x),A.focus())}i.current=null}},0)}},[t,n,r,e,a,i,s,o,u,l,c]);I.useEffect(()=>{h()},[h])}function R1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=l=>typeof l=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(l):l.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(l.name||""),o=l=>{const c=l.target?.closest(".upload-info-icon");if(c&&c.classList.contains("upload-info-icon")){const g=c.dataset.uploadKey;if(g){const p=c.dataset.tooltip||"";let T=!1;try{const m=JSON.parse(p);m&&m.type==="steps"&&Array.isArray(m.images)&&(T=!0)}catch{}if(T){const h=c.closest('[data-type="upload"], [data-type="video-upload"]');r({key:g,anchorEl:h||c,type:"upload"})}else{const h=c.closest('[data-type="upload"], [data-type="video-upload"]');r({key:g,anchorEl:h||c,type:"upload"})}}return}const f=l.target?.closest('[data-type="upload"]');if(f){const g=f.dataset.key;if(g){const p=n[g];p&&s(p)&&r({key:g,anchorEl:f,type:"upload-preview"})}}},u=l=>{if(a)return;const c=l.target?.closest(".upload-info-icon"),f=l.relatedTarget;if(f?.closest?.(".rte-tooltip-overlay"))return;if(c&&c.classList.contains("upload-info-icon")){const p=c.closest('[data-type="upload"], [data-type="video-upload"]');if(f&&p&&p.contains(f))return;if(!f||!i.contains(f))r(null);else{const T=f.closest('[data-type="upload"], [data-type="video-upload"]');(!T||T!==p)&&r(null)}return}const g=l.target?.closest('[data-type="upload"], [data-type="video-upload"]');if(g){const p=f;if(p?.closest?.(".rte-tooltip-overlay")||p&&g.contains(p))return;r(null)}};return i.addEventListener("mouseover",o,!0),i.addEventListener("mouseout",u,!0),()=>{i.removeEventListener("mouseover",o,!0),i.removeEventListener("mouseout",u,!0)}},[t,n,e,r,a])}function F1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=c=>{if(r==="hideTagClose")return;const f=c.currentTarget,g=f.dataset.tooltip,p=f.dataset.tagKey||"";g&&n({key:p,anchorEl:f,type:"tag"})},o=c=>{a||c.relatedTarget?.closest?.(".rte-tooltip-overlay")||n(null)};let u;const l=()=>{i.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.addEventListener("mouseenter",s),f.addEventListener("mouseleave",o)})};return u=requestAnimationFrame(()=>{u=requestAnimationFrame(l)}),()=>{cancelAnimationFrame(u),i.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.removeEventListener("mouseenter",s),f.removeEventListener("mouseleave",o)})}},[t,e,n,r,a])}function H1(e,t,n,r){I.useEffect(()=>{const a=e.current;if(!a)return;const i=o=>{const u=o.target?.closest(".variable-info-icon");if(u&&u.classList.contains("variable-info-icon")){const c=u.dataset.variableKey;c&&n({key:c,anchorEl:u,type:"variable"});return}const l=o.target?.closest('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(l){const c=l.dataset.key;c&&n({key:c,anchorEl:l,type:"variable"})}},s=o=>{if(r)return;const u=o.target,l=o.relatedTarget;if(l?.closest?.(".rte-tooltip-overlay"))return;const c=u?.closest?.(".variable-info-icon"),f=u?.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(c||f){if(!l||!a.contains(l)){n(null);return}const g=!!l.closest?.(".variable-info-icon"),p=!!l.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');!g&&!p&&n(null)}};return a.addEventListener("mouseover",i,!0),a.addEventListener("mouseout",s,!0),()=>{a.removeEventListener("mouseover",i,!0),a.removeEventListener("mouseout",s,!0)}},[t,e,n,r])}function $1(e,t,n,r,a){I.useEffect(()=>{const i=e.current;if(!i)return;const s=f=>typeof f=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(f):f.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name||""),o=f=>{const g=f.currentTarget,p=g.dataset.fileName,T=g.closest('[data-type="upload"]'),h=T?.dataset.key||"",m=h?n[h]:null;if(m&&s(m)){r({key:h,anchorEl:T||g,type:"upload-preview"});return}p&&r({key:h,anchorEl:T||g,type:"upload-label"})},u=f=>{a||f.relatedTarget?.closest?.(".rte-tooltip-overlay")||r(null)};let l;const c=()=>{i.querySelectorAll(".upload-label[data-file-name]").forEach(g=>{g.addEventListener("mouseenter",o),g.addEventListener("mouseleave",u)})};return l=requestAnimationFrame(()=>{l=requestAnimationFrame(c)}),()=>{cancelAnimationFrame(l),i.querySelectorAll(".upload-label[data-file-name]").forEach(g=>{g.removeEventListener("mouseenter",o),g.removeEventListener("mouseleave",u)})}},[t,n,e,r,a])}function U1(e,t,n,r,a,i){I.useEffect(()=>{const s=setTimeout(()=>{Dr(e,t,n,a),Pr(e,t,n,r,a)},0);return()=>clearTimeout(s)},[n,t,e,r,a,i])}function q1(e,t){const n=I.useRef(0),r=I.useRef(0);I.useEffect(()=>{if(!e.current)return;let a=!1,i=0;const s=E=>E instanceof HTMLElement?!!(E.closest(".rte-datepicker-wrapper")||E.closest(".rte-datepicker-host")||E.closest(".ant-picker")||E.closest(".ant-picker-dropdown")):!1,o=E=>E instanceof HTMLElement?!!(E.closest(".rte-select-wrapper")||E.closest(".rte-select-host")||E.closest(".ant-select")||E.closest(".ant-select-dropdown")):!1,u=E=>{a=!0,s(E.target)&&(n.current=Date.now()),o(E.target)&&(r.current=Date.now())},l=()=>{a=!1,i=Date.now()};let c=!1,f=0;const g=()=>{c=!0},p=()=>{c=!1,f=Date.now()},T=()=>{f=Date.now()},h=E=>{s(E.target)&&(n.current=Date.now()),o(E.target)&&(r.current=Date.now())},m=()=>{if(Date.now()-n.current<800||Date.now()-r.current<800)return;const E=document.activeElement;if(E&&(E.closest(".rte-datepicker-wrapper")||E.closest(".rte-datepicker-host")||E.closest(".ant-picker-dropdown")||E.tagName==="INPUT"&&E.closest(".ant-picker")||E.closest(".rte-select-wrapper")||E.closest(".rte-select-host")||E.closest(".ant-select")||E.closest(".ant-select-dropdown"))||!e.current)return;const y=window.getSelection();if(!y||y.rangeCount===0||t.current||a||c||Date.now()-f<500)return;const _=y.getRangeAt(0);if(!_.collapsed)return e.current.contains(_.commonAncestorContainer),void 0;const w=y.anchorNode;if(!w||!e.current.contains(w))return;let S=!1,M=!1;if(w.nodeType===Node.ELEMENT_NODE){const x=w;(x.closest('[data-type="datepicker"]')||x.closest(".rte-datepicker-wrapper")||x.closest(".rte-datepicker-host"))&&(S=!0),(x.closest('[data-type="select"]')||x.closest(".rte-select-wrapper")||x.closest(".rte-select-host"))&&(M=!0)}else if(w.parentElement){const x=w.parentElement;(x.closest('[data-type="datepicker"]')||x.closest(".rte-datepicker-wrapper")||x.closest(".rte-datepicker-host"))&&(S=!0),(x.closest('[data-type="select"]')||x.closest(".rte-select-wrapper")||x.closest(".rte-select-host"))&&(M=!0)}if(S||M)return;let A=null;if(w.nodeType===Node.ELEMENT_NODE?A=w.closest('[data-type="variable"]'):w.nodeType===Node.TEXT_NODE&&w.parentElement&&(A=w.parentElement.closest('[data-type="variable"]')),!A){if(Date.now()-i>500)return;const x=e.current.querySelectorAll('[data-type="variable"]');if(x.length>0){let v=null;for(const k of Array.from(x))if(k.style.display!=="none"){v=k;break}if(!v&&x.length>0&&(v=x[0]),v){const k=document.createRange();k.selectNodeContents(v),k.collapse(!1),y.removeAllRanges(),y.addRange(k),v.focus()}else y.removeAllRanges()}else y.removeAllRanges()}},b=e.current;return b&&(b.addEventListener("compositionstart",g),b.addEventListener("compositionend",p),b.addEventListener("input",T)),document.addEventListener("mousedown",u),document.addEventListener("mouseup",l),document.addEventListener("focusin",h),document.addEventListener("selectionchange",m),()=>{b&&(b.removeEventListener("compositionstart",g),b.removeEventListener("compositionend",p),b.removeEventListener("input",T)),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",l),document.removeEventListener("focusin",h),document.removeEventListener("selectionchange",m)}},[e,t])}var Tr={exports:{}},z1=Tr.exports,Uu;function qu(){return Uu||(Uu=1,function(e,t){(function(n,r){e.exports=r()})(z1,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",s="second",o="minute",u="hour",l="day",c="week",f="month",g="quarter",p="year",T="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var C=["th","st","nd","rd"],F=N%100;return"["+N+(C[(F-20)%10]||C[F]||C[0])+"]"}},y=function(N,C,F){var U=String(N);return!U||U.length>=C?N:""+Array(C+1-U.length).join(F)+N},_={s:y,z:function(N){var C=-N.utcOffset(),F=Math.abs(C),U=Math.floor(F/60),$=F%60;return(C<=0?"+":"-")+y(U,2,"0")+":"+y($,2,"0")},m:function N(C,F){if(C.date()<F.date())return-N(F,C);var U=12*(F.year()-C.year())+(F.month()-C.month()),$=C.clone().add(U,f),G=F-$<0,L=C.clone().add(U+(G?-1:1),f);return+(-(U+(F-$)/(G?$-L:L-$))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:c,d:l,D:T,h:u,m:o,s,ms:i,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},w="en",S={};S[w]=E;var M="$isDayjsObject",A=function(N){return N instanceof D||!(!N||!N[M])},x=function N(C,F,U){var $;if(!C)return w;if(typeof C=="string"){var G=C.toLowerCase();S[G]&&($=G),F&&(S[G]=F,$=G);var L=C.split("-");if(!$&&L.length>1)return N(L[0])}else{var W=C.name;S[W]=C,$=W}return!U&&$&&(w=$),$||!U&&w},v=function(N,C){if(A(N))return N.clone();var F=typeof C=="object"?C:{};return F.date=N,F.args=arguments,new D(F)},k=_;k.l=x,k.i=A,k.w=function(N,C){return v(N,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var D=function(){function N(F){this.$L=x(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[M]=!0}var C=N.prototype;return C.parse=function(F){this.$d=function(U){var $=U.date,G=U.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var L=$.match(m);if(L){var W=L[2]-1||0,V=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)):new Date(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)}}return new Date($)}(F),this.init()},C.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},C.$utils=function(){return k},C.isValid=function(){return this.$d.toString()!==h},C.isSame=function(F,U){var $=v(F);return this.startOf(U)<=$&&$<=this.endOf(U)},C.isAfter=function(F,U){return v(F)<this.startOf(U)},C.isBefore=function(F,U){return this.endOf(U)<v(F)},C.$g=function(F,U,$){return k.u(F)?this[U]:this.set($,F)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(F,U){var $=this,G=!!k.u(U)||U,L=k.p(F),W=function(se,he){var _e=k.w($.$u?Date.UTC($.$y,he,se):new Date($.$y,he,se),$);return G?_e:_e.endOf(l)},V=function(se,he){return k.w($.toDate()[se].apply($.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(he)),$)},R=this.$W,K=this.$M,ae=this.$D,ne="set"+(this.$u?"UTC":"");switch(L){case p:return G?W(1,0):W(31,11);case f:return G?W(1,K):W(0,K+1);case c:var X=this.$locale().weekStart||0,re=(R<X?R+7:R)-X;return W(G?ae-re:ae+(6-re),K);case l:case T:return V(ne+"Hours",0);case u:return V(ne+"Minutes",1);case o:return V(ne+"Seconds",2);case s:return V(ne+"Milliseconds",3);default:return this.clone()}},C.endOf=function(F){return this.startOf(F,!1)},C.$set=function(F,U){var $,G=k.p(F),L="set"+(this.$u?"UTC":""),W=($={},$[l]=L+"Date",$[T]=L+"Date",$[f]=L+"Month",$[p]=L+"FullYear",$[u]=L+"Hours",$[o]=L+"Minutes",$[s]=L+"Seconds",$[i]=L+"Milliseconds",$)[G],V=G===l?this.$D+(U-this.$W):U;if(G===f||G===p){var R=this.clone().set(T,1);R.$d[W](V),R.init(),this.$d=R.set(T,Math.min(this.$D,R.daysInMonth())).$d}else W&&this.$d[W](V);return this.init(),this},C.set=function(F,U){return this.clone().$set(F,U)},C.get=function(F){return this[k.p(F)]()},C.add=function(F,U){var $,G=this;F=Number(F);var L=k.p(U),W=function(K){var ae=v(G);return k.w(ae.date(ae.date()+Math.round(K*F)),G)};if(L===f)return this.set(f,this.$M+F);if(L===p)return this.set(p,this.$y+F);if(L===l)return W(1);if(L===c)return W(7);var V=($={},$[o]=r,$[u]=a,$[s]=n,$)[L]||1,R=this.$d.getTime()+F*V;return k.w(R,this)},C.subtract=function(F,U){return this.add(-1*F,U)},C.format=function(F){var U=this,$=this.$locale();if(!this.isValid())return $.invalidDate||h;var G=F||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),W=this.$H,V=this.$m,R=this.$M,K=$.weekdays,ae=$.months,ne=$.meridiem,X=function(he,_e,Ge,vt){return he&&(he[_e]||he(U,G))||Ge[_e].slice(0,vt)},re=function(he){return k.s(W%12||12,he,"0")},se=ne||function(he,_e,Ge){var vt=he<12?"AM":"PM";return Ge?vt.toLowerCase():vt};return G.replace(b,function(he,_e){return _e||function(Ge){switch(Ge){case"YY":return String(U.$y).slice(-2);case"YYYY":return k.s(U.$y,4,"0");case"M":return R+1;case"MM":return k.s(R+1,2,"0");case"MMM":return X($.monthsShort,R,ae,3);case"MMMM":return X(ae,R);case"D":return U.$D;case"DD":return k.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return X($.weekdaysMin,U.$W,K,2);case"ddd":return X($.weekdaysShort,U.$W,K,3);case"dddd":return K[U.$W];case"H":return String(W);case"HH":return k.s(W,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return se(W,V,!0);case"A":return se(W,V,!1);case"m":return String(V);case"mm":return k.s(V,2,"0");case"s":return String(U.$s);case"ss":return k.s(U.$s,2,"0");case"SSS":return k.s(U.$ms,3,"0");case"Z":return L}return null}(he)||L.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(F,U,$){var G,L=this,W=k.p(U),V=v(F),R=(V.utcOffset()-this.utcOffset())*r,K=this-V,ae=function(){return k.m(L,V)};switch(W){case p:G=ae()/12;break;case f:G=ae();break;case g:G=ae()/3;break;case c:G=(K-R)/6048e5;break;case l:G=(K-R)/864e5;break;case u:G=K/a;break;case o:G=K/r;break;case s:G=K/n;break;default:G=K}return $?G:k.a(G)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return S[this.$L]},C.locale=function(F,U){if(!F)return this.$L;var $=this.clone(),G=x(F,U,!0);return G&&($.$L=G),$},C.clone=function(){return k.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},N}(),P=D.prototype;return v.prototype=P,[["$ms",i],["$s",s],["$m",o],["$H",u],["$W",l],["$M",f],["$y",p],["$D",T]].forEach(function(N){P[N[1]]=function(C){return this.$g(C,N[0],N[1])}}),v.extend=function(N,C){return N.$i||(N(C,D,v),N.$i=!0),v},v.locale=x,v.isDayjs=A,v.unix=function(N){return v(1e3*N)},v.en=S[w],v.Ls=S,v.p={},v})}(Tr)),Tr.exports}var V1=qu();const xr=Qr(V1);var Cr={exports:{}},G1=Cr.exports,zu;function Y1(){return zu||(zu=1,function(e,t){(function(n,r){e.exports=r(qu())})(G1,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,o){return o==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,o){var u=100*s+o;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return a.default.locale(i,null,!0),i})}(Cr)),Cr.exports}Y1();function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function W1(e,t){if(Dn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j1(e){var t=W1(e,"string");return Dn(t)=="symbol"?t:t+""}function X1(e,t,n){return(t=j1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vu(Object(n),!0).forEach(function(r){X1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var K1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q1=Gu(Gu({},K1),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const J1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Yu={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Q1),timePickerLocale:Object.assign({},J1)};Yu.lang.ok="确定",xr.locale("zh-cn");const{RangePicker:Z1}=ce.DatePicker,ey=({host:e,onChange:t})=>{const n=e.dataset.key,r=e.dataset.value,a=e.dataset.placeholder,i=e.dataset.limitRange?parseInt(e.dataset.limitRange,10):void 0,s=e.dataset.disableFuture==="true",[o,u]=I.useState(()=>{if(!r)return null;const h=r.split(",");return h.length===2&&h[0]&&h[1]?[xr(h[0]),xr(h[1])]:null}),[l,c]=I.useState(null),f=h=>h?s&&h.isAfter(xr(),"day")?!0:!i||!l||!l[0]?!1:Math.abs(h.diff(l[0],"days"))>i:!1,g=h=>{c(h)},p=h=>{if(u(h),c(null),h&&h[0]&&h[1]){const m=`${h[0].format("YYYY-MM-DD")},${h[1].format("YYYY-MM-DD")}`;e.setAttribute("data-value",m),t(n,m)}else e.setAttribute("data-value",""),t(n,"")},T=h=>{c(h?o:null)};return $t.createPortal(q.jsx("div",{className:"rte-datepicker-wrapper",contentEditable:!1,style:{display:"inline-block",verticalAlign:"middle",width:"260px",marginLeft:"4px",marginRight:"4px",fontSize:"16px",height:"30px",lineHeight:"30px"},children:q.jsx(Z1,{value:o,disabledDate:f,onCalendarChange:g,onChange:p,onOpenChange:T,placeholder:[a||"开始日期",a||"结束日期"],style:{width:"100%"},size:"small",allowClear:!0,locale:Yu,getPopupContainer:()=>document.body,popupClassName:"rte-datepicker-dropdown"})}),e)},ty=e=>{const[t,n]=I.useState([]);return I.useEffect(()=>{const r=e.current;if(!r)return;const a=()=>{const s=r.querySelectorAll(".rte-datepicker-host"),o=[];s.forEach(u=>{const l=u.getAttribute("data-key");l&&o.push(q.jsx(ey,{host:u,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`datepicker-${l}`))}),n(o)};a();const i=new MutationObserver(s=>{let o=!1;for(const u of s)if(u.type==="childList"){let l=!1;if(u.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(l=!0)}}),u.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(l=!0)}}),l){o=!0;break}}o&&a()});return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[e]),t},Wu=({config:e,onSend:t,isProcessing:n=!1,disabled:r=!1,width:a,lockStructure:i=!1,agentOptions:s=[],onAgentSelect:o,onAgentExit:u,loading:l=!1,placeholder:c,border:f,background:g="transparent",hideButtons:p,maxHeight:T,minHeight:h,editorMinHeight:m,editorPadding:b,footerPadding:E,collapsed:y=!1,reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:S,onCollapsedChange:M,collapseTransitionMs:A=260,debugTooltipSticky:x=!1,nodeValues:v,onFilesChange:k,onFooterFilesChange:D,showFooterUpload:P=!0,footerFiles:N,videoUrlParse:C,videoUpload:F})=>{const[U,$]=ce.message.useMessage(),G=I.useRef(null),L=I.useRef(null),W=I.useRef(null),V=I.useRef(null),R=I.useRef(null),K=I.useRef(null),ae=I.useRef("");if(!ae.current){const ee=Math.random().toString(36).slice(2,8);ae.current=`rte_${ee}`}const[ne,X]=I.useState({});I.useEffect(()=>{k?.(ne)},[ne,k]);const[re,se]=I.useState([]),he=I.useRef(!1);I.useEffect(()=>{if(!N)return;if(!(N.length===re.length&&N.every((ue,me)=>{const Te=re[me];return Te&&ue.name===Te.name&&ue.size===Te.size&&ue.lastModified===Te.lastModified})))if(N.reduce((Te,Le)=>Te+Le.size,0)>52428800){const Te=[];let Le=0;for(const Pe of N){if(Le+Pe.size>52428800)break;Te.push(Pe),Le+=Pe.size}U.error("文件总大小不能超过 50MB"),se(Te)}else he.current=!0,se(N)},[N]),I.useEffect(()=>{if(he.current){he.current=!1;return}D?.(re)},[re,D]);const[_e,Ge]=I.useState(null),[vt,Sr]=I.useState(null),[Ar,Bn]=I.useState(null),[tt,Rn]=I.useState({}),[vr,_r]=I.useState(""),[ui,wr]=I.useState(!1),nn=I.useRef(null),Fn=I.useRef(null),{tooltipPortal:li,setPopoverVisible:j}=t1({config:e,files:ne,debugTooltipSticky:x,videoState:tt}),{handleFileChange:te,handleRemoveFile:le}=Fl({config:e,messageApi:U,activeBatchKey:vt,activeFileKey:_e,activeBatchStartIndex:Ar,setActiveFileKey:Ge,setActiveBatchKey:Sr,setActiveBatchStartIndex:Bn,setFiles:X}),fe=I.useRef(null),[ye,Ke]=I.useState({showLeft:!1,showRight:!1}),Qe=I.useCallback(()=>{const ee=fe.current;ee&&Ke({showLeft:ee.scrollLeft>0,showRight:ee.scrollLeft+ee.clientWidth<ee.scrollWidth-1})},[]),rt=I.useCallback(ee=>{if(!ee.target.files||ee.target.files.length===0)return;const ue=10*1024*1024,me=50*1024*1024,Te=Pe=>Pe.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Pe.name||""),Le=Array.from(ee.target.files).filter(Pe=>Te(Pe)&&Pe.size>ue?(U.error("图片大小不能超过 10MB"),!1):!0);se(Pe=>{const xe=Pe.reduce((ke,De)=>ke+De.size,0),Ce=[];let Ae=xe;for(const ke of Le){if(Ae+ke.size>me){U.error("文件总大小不能超过 50MB");break}Ce.push(ke),Ae+=ke.size}return Ce.length>0?[...Pe,...Ce]:Pe}),ee.target.value="",setTimeout(Qe,0)},[U,Qe]),Mt=I.useCallback(ee=>{se(ue=>ue.filter((me,Te)=>Te!==ee)),setTimeout(Qe,0)},[Qe]),Bt=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:200,behavior:"smooth"})},[]),Ue=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:-200,behavior:"smooth"})},[]),dt=I.useRef(!1),at=I.useRef(null),{handleMouseDown:my,handleMouseMove:gy,handleMouseUp:by,handleDoubleClick:Ey}=ac({lockStructure:i,onAgentExit:u,editorRef:V,setPopoverVisible:j,isDraggingRef:dt,mouseDownPosRef:at}),[nl,kr]=I.useState(!1),rl=I.useRef(null),[yy,al]=I.useState(!0),Ty=I.useRef(0),[il,xy]=I.useState(58),[Cy,Sy]=I.useState(58),[sl,Ay]=I.useState(!1),[Nr,ci]=I.useState(null),Hn=I.useRef(!1),$n=I.useRef(!1),ft=I.useRef(null),[di,fi]=I.useState({}),Ir=I.useRef(()=>{}),[Rt,Lr]=I.useState({}),ol=I.useRef(()=>{}),vy=I.useRef({}),pi=I.useRef(Rt);I.useEffect(()=>{pi.current=Rt},[Rt]);const[Ft,hi]=I.useState({}),ul=I.useRef(()=>{}),ll=I.useRef(Ft);I.useEffect(()=>{ll.current=Ft},[Ft]);const[Ht,Un]=I.useState(()=>{const ee={};return e.forEach(ue=>{ue.type==="multi-variable"&&ue.key&&(ee[ue.key]=1)}),ee});Wl({config:e,editorRef:V,files:ne,setFiles:X,multiVariableCounts:Ht,setMultiVariableCounts:Un,reportAnalyzeState:di,setReportAnalyzeState:fi,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Lr,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hi,nodeValues:v});const cl=I.useRef(v);if(v!==cl.current&&(cl.current=v,v)){const ee={};let ue=!1;e.forEach(me=>{if(me.type==="multi-variable"&&me.key){const Te=v[me.key];if(Array.isArray(Te)&&Te.length>0){const Le=me.maxCount??9,Pe=Math.min(Te.length+1,Le);Ht[me.key]!==Pe&&(ee[me.key]=Pe,ue=!0)}}}),ue&&Un(me=>({...me,...ee}))}const we=Jl({config:e,reportAnalyzeState:di,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft}),{handleReportUrlBlur:_y,handleMarkdownBlur:wy,handleMarkdownNameBlur:ky}=Xl({reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:S,reportAnalyzeState:di,setReportAnalyzeState:fi,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Lr,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hi,editorRef:V,reportAnalyzeRef:Ir,markdownAnalyzeRef:ol,markdownNameAnalyzeRef:ul,markdownAnalyzeStateRef:pi,markdownNameAnalyzeStateRef:ll});Pl(V,_y,[we]),Ml(V,ky,[we]),Bl(V,wy,[we]),Dl(V,[we]),B1(V,we,ne,i,Ht,rl,void 0,p,void 0,v,tt);const mi=I.useRef(new Set),dl=I.useRef(we),fl=I.useRef(v);(dl.current!==we||fl.current!==v)&&(dl.current=we,fl.current=v,mi.current=new Set),I.useEffect(()=>{if(!v||!we||we.length===0)return;const ee=we.filter(xe=>xe.type==="upload"&&xe.key);if(ee.length===0)return;const ue={},me=(xe,Ce)=>{Ce&&(Ce instanceof File?ue[xe]=Ce:typeof Ce=="string"&&Ce.trim()&&(ue[xe]=Ce.trim()))};for(const xe of ee){const Ce=xe.key;if(mi.current.has(Ce))continue;const Ae=v[Ce],ke=typeof xe.maxCount=="number"&&xe.maxCount>1;if(Array.isArray(Ae)&&Ae.length>0){ke?Ae.forEach((De,Ye)=>me(`${Ce}-${Ye}`,De)):me(Ce,Ae[0]);continue}if(Ae&&!Array.isArray(Ae)){me(Ce,Ae);continue}if(ke)for(let De=0;De<xe.maxCount;De++){const Ye=`${Ce}-${De}`,_t=v[Ye];if(!_t)break;me(Ye,_t)}}if(Object.keys(ue).length===0)return;for(const xe of ee)v[xe.key]!==void 0&&mi.current.add(xe.key);X(xe=>{const Ce={...xe};let Ae=!1;for(const ke of ee){const De=ke.key;if(v[De]===void 0)continue;if(typeof ke.maxCount=="number"&&ke.maxCount>1)for(let _t=0;_t<ke.maxCount;_t++){const Ei=`${De}-${_t}`;!ue[Ei]&&xe[Ei]&&(Ce[Ei]=null,Ae=!0)}}for(const[ke,De]of Object.entries(ue))xe[ke]!==De&&(Ce[ke]=De,Ae=!0);return Ae?Ce:xe});const Te=Object.entries(ue).filter(([,xe])=>typeof xe=="string");if(Te.length===0)return;const Le=async xe=>{const Ce=xe.split("/").pop()?.split("?")[0]||"file",Ae=decodeURIComponent(Ce),ke=async De=>{const Ye=await De.blob();return new File([Ye],Ae,{type:Ye.type||"application/octet-stream"})};try{const De=`/api/image-proxy?url=${encodeURIComponent(xe)}`,Ye=await fetch(De);if(Ye.ok)return ke(Ye)}catch{}return null};let Pe=!1;return Promise.all(Te.map(async([xe,Ce])=>{const Ae=await Le(Ce);return Ae?{key:xe,file:Ae}:null})).then(xe=>{if(Pe)return;const Ce={};for(const Ae of xe)Ae&&(Ce[Ae.key]=Ae.file);Object.keys(Ce).length>0&&X(Ae=>{const ke={...Ae};let De=!1;for(const[Ye,_t]of Object.entries(Ce))typeof ke[Ye]=="string"&&(ke[Ye]=_t,De=!0);return De?ke:Ae})}),()=>{Pe=!0}},[v,we]);const gi=I.useRef(new Set),pl=I.useRef(""),hl=(e||[]).filter(ee=>ee.key&&ee.type!=="report-module"&&ee.type!=="markdown-module").map(ee=>`${ee.type}:${ee.key}`).join("|");pl.current!==hl&&(pl.current=hl,gi.current=new Set),I.useEffect(()=>{if(!v||!e||e.length===0)return;const ee=e.filter(ue=>ue.type==="report-url"&&ue.key);if(ee.length!==0)for(const ue of ee){const me=ue.key;if(gi.current.has(me))continue;const Te=v[me]??v[`${me}__url`];if(!Te||typeof Te=="string"&&!Te.trim())continue;const Le=Array.isArray(Te)?Te[0]:String(Te);Le&&(gi.current.add(me),setTimeout(()=>{Ir.current(me,Le)},100))}},[v,e,Ir]),R1(V,we,ne,j,x),F1(V,we,j,p,x),$1(V,we,ne,j,x),H1(V,we,j,x),U1(V,we,ne,kr,tt,v),ql(V,C,tt,Rn,[we]);const Ny=zl(F,Rn);Vl(V,tt,j,x),q1(V,dt);const ml=Sl(V),Iy=vl(V),Ly=wl(V),gl=Ol(V);I.useEffect(()=>{if(!V.current)return;V.current.querySelectorAll(".rte-richtext-toggle").forEach(ue=>{const me=ue.getAttribute("data-expanded")==="true";ue.innerHTML=me?'<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>':'<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>'})},[we,V]);const bl=ty(V),{measureExpandedContentHeight:qn}=Kl({collapsed:y,collapseTransitionMs:A,contentRef:L,contentBodyRef:W,editorRef:V,debugIdRef:ae,setCollapsedContentMaxHeightPx:xy,setExpandedContentMaxHeightPx:Sy,setIsCollapseAnimating:Ay,effectiveConfig:we,files:ne,multiVariableCounts:Ht,selectPortalsLength:ml.length,datePickerPortalsLength:bl.length,variablePortalsLength:gl.length}),Oy=()=>{if(y)return;const ee=W.current;if(!ee)return;const ue=Math.ceil(ee.getBoundingClientRect().height||0);ue>0&&ci(ue),Hn.current=!0,$n.current=!1,ft.current&&(window.clearTimeout(ft.current),ft.current=null)};I.useEffect(()=>{const ee=()=>{Hn.current&&($n.current=!0,ft.current&&window.clearTimeout(ft.current),ft.current=window.setTimeout(()=>{ft.current=null,Hn.current=!1,$n.current=!1,ci(null),window.requestAnimationFrame(()=>qn())},450))};return window.addEventListener("focus",ee),()=>window.removeEventListener("focus",ee)},[qn]),I.useEffect(()=>{!Hn.current||!$n.current||(ft.current&&(window.clearTimeout(ft.current),ft.current=null),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{ci(null),qn(),Hn.current=!1,$n.current=!1})}))},[ne,qn]),Ql({config:e,editorRef:V,setIsEmpty:al,setIsFormValid:kr});const Dy=tc({disabled:r,collapsed:y,onCollapsedChange:M,config:e,lockStructure:i,editorRef:V,containerRef:G,fileInputRef:R,onBeforeFilePickerOpen:Oy,files:ne,setFiles:X,handleRemoveFile:le,setActiveBatchKey:Sr,setActiveBatchStartIndex:Bn,setActiveFileKey:Ge,isDraggingRef:dt,richtextPrevScrollTopRef:Ty,videoState:tt,setVideoState:Rn,videoFileInputRef:nn,activeVideoKeyRef:Fn,onImagePreview:ee=>{_r(ee),wr(!0)}}),bi=nc({config:e,editorRef:V,setIsEmpty:al,setIsFormValid:kr,setReportAnalyzeState:fi,setMarkdownAnalyzeState:Lr,setMarkdownNameAnalyzeState:hi,collapsed:y,measureExpandedContentHeight:qn,effectiveConfig:we,files:ne,multiVariableCounts:Ht,setMultiVariableCounts:Un,savedCursorRef:rl,videoState:tt}),Py=ic({disabled:r,config:e,multiVariableCounts:Ht,setMultiVariableCounts:Un,editorRef:V,handleInput:bi,markdownAnalyzeRef:ol,reportAnalyzeRef:Ir,markdownNameAnalyzeRef:ul,markdownAnalyzeStateRef:pi,markdownRawTextRef:vy,setMarkdownAnalyzeState:Lr,setFooterFiles:se,footerFiles:re,messageApi:U,onPasteUnsupported:()=>U.warning("暂不支持上传该文件类型")});ec({config:e,effectiveConfig:we,files:ne,editorRef:V,setIsFormValid:kr,multiVariableCounts:Ht,setMultiVariableCounts:Un,videoState:tt});const My=rc({disabled:r,lockStructure:i,config:e,editorRef:V,handleInput:bi}),By=sc({config:e,files:ne,footerFiles:re,onFooterFilesClear:()=>se([]),onSend:t,isProcessing:n,disabled:r,loading:l,isFormValid:nl,editorRef:V,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft,videoState:tt}),Ry={...a?{width:typeof a=="number"?`${a}px`:a}:{},...f?{border:f}:{},...g?{background:g}:{},...T?{maxHeight:typeof T=="number"?`${T}px`:T}:{},...h?{minHeight:typeof h=="number"?`${h}px`:h}:{},...re.length>0?{height:"220px"}:{},...T?{"--rte-richtext-fullscreen-height":typeof T=="number"?`${T}px`:T}:{},...m?{"--rte-editor-min-height":typeof m=="number"?`${m}px`:m}:{},...b?{"--rte-editor-padding":b}:{},...E?{"--rte-footer-padding":E}:{}},Fy=typeof A=="number"&&Number.isFinite(A)&&A>=0?A:260,Hy={overflow:"hidden"},$y=Nr!=null?`${Nr}px`:y?`${il}px`:`${Math.max(Cy,il)}px`,Uy=Nr!=null||y||sl?"hidden":"auto",El=I.useRef(y),yl=El.current!==y;yl&&(El.current=y);const qy=Nr!=null?"none":yl||sl?`max-height ${Fy}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none",zy={maxHeight:$y,minHeight:y?0:void 0,overflow:Uy,overscrollBehavior:"contain",transition:qy,willChange:"max-height"};return q.jsxs("div",{className:"rich-text-editor",style:Ry,"data-disabled":r,ref:G,children:[$,q.jsxs("div",{className:"rich-text-editor-content",ref:L,style:Hy,children:[re.length>0&&q.jsxs("div",{className:"rte-footer-files-wrapper",children:[ye.showLeft&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-left",onClick:Ue,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-left",children:q.jsx("svg",{style:{width:"16px",height:"16px",transform:"rotate(180deg)"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})}),q.jsx("div",{className:"rte-footer-files-list",ref:fe,onScroll:Qe,children:re.map((ee,ue)=>{const me=ee.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ee.name||""),Te=ee.size<1024?`${ee.size}B`:ee.size<1024*1024?`${Math.round(ee.size/1024)}KB`:`${(ee.size/(1024*1024)).toFixed(1)}MB`;return q.jsxs("div",{className:"rte-footer-file-chip",children:[me?q.jsx(ce.Image,{style:{width:"32px",height:"32px",objectFit:"cover"},preview:{mask:q.jsx("span",{style:{fontSize:"12px",borderRadius:"4px"},children:"查看"})},className:"rte-footer-file-thumb",src:URL.createObjectURL(ee),alt:ee.name}):q.jsx("div",{className:"rte-footer-file-icon",children:q.jsx("svg",{style:{width:"18px",height:"18px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:`#${(()=>{const Le=(ee.name||"").split(".").pop()?.toLowerCase()||"";return["xls","xla","xlb","xlc","xlm","xlsx","xlt","xlw","csv","tsv","iif"].includes(Le)?"icon-a-xlsxcsv":["doc","docx","dot","odt","rtf","wiz"].includes(Le)?"icon-docx":["ppt","pptx","pot","ppa","pps","pwz"].includes(Le)?"icon-ppt":["txt","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","in","js","ksh","php","pkl","rb","tar","tex","ts","xml"].includes(Le)?"icon-txt":Le==="pdf"?"icon-pdf":["html","htm","json","ics","ifb"].includes(Le)?"icon-a-htmljson":Le==="md"?"icon-md":"icon-lianjie"})()}`})})}),q.jsxs("div",{className:"rte-footer-file-info",children:[q.jsx("span",{className:"rte-footer-file-name",title:ee.name,children:ee.name}),q.jsx("span",{className:"rte-footer-file-size",children:Te})]}),q.jsx("span",{className:"rte-footer-file-remove",onClick:()=>Mt(ue),children:"×"})]},`${ee.name}-${ee.size}-${ue}`)})}),ye.showRight&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-right",onClick:Bt,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-right",children:q.jsx("svg",{style:{width:"16px",height:"16px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})})]}),q.jsxs("div",{ref:W,className:"rich-text-editor-content-body",style:zy,children:[q.jsx("div",{ref:V,className:`rte-editor ${e.length===0?"rte-editor-default":""} ${yy&&c?"rte-editor-empty":""}`,contentEditable:e.length===0,suppressContentEditableWarning:!0,"data-placeholder":c,onMouseDown:my,onMouseMove:gy,onMouseUp:by,onClick:Dy,onDoubleClick:Ey,onInput:bi,onKeyDown:My,onPaste:Py}),q.jsx("input",{type:"file",ref:R,className:"rte-file-input",accept:".csv,.xlsx,.xls,.txt,.pdf,image/*",onChange:te}),q.jsx("input",{type:"file",ref:nn,className:"rte-file-input",accept:"video/*",onChange:ee=>{const ue=ee.target.files?.[0],me=Fn.current;ue&&ue.size>1024*1024*1024?U.warning("视频文件不能超过1GB"):ue&&me&&Ny(me,ue),Fn.current=null,nn.current&&(nn.current.value="")}})]})]}),q.jsxs("div",{className:"rich-text-editor-footer",children:[q.jsxs("div",{className:"rich-text-editor-footer-left",children:[q.jsx("div",{className:"rich-text-editor-brand",children:p!=="hideAgent"&&q.jsx(ce.Dropdown,{placement:"topLeft",menu:{items:s.filter(ee=>ee.isShowNew!==1).map(ee=>({key:ee.key,label:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ee.icon&&q.jsx("i",{className:ee.icon}),q.jsx("span",{children:ee.label})]}),onClick:()=>{o?.(ee)}}))},trigger:["click"],disabled:r||n,overlayClassName:"rte-agent-dropdown",children:q.jsxs("div",{className:"rte-agent-badge",style:{cursor:s.length>0?"pointer":"default"},children:[q.jsx("i",{className:"iconfont icon-zhinengti",style:{fontSize:"16px"}}),q.jsx("span",{className:"rte-agent-text",children:"智能体"})]})})}),!e.find(ee=>ee.type==="tag")&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"rte-footer-upload-btn",onClick:()=>K.current?.click(),title:"上传文件",children:q.jsx("i",{className:"iconfont icon-lianjie",style:{fontSize:"16px"}})}),q.jsx("input",{type:"file",ref:K,className:"rte-file-input",accept:".pdf,.xla,.xlb,.xlc,.xlm,.xls,.xlsx,.xlt,.xlw,.csv,.tsv,.iif,.doc,.docx,.dot,.odt,.rtf,.pot,.ppa,.pps,.ppt,.pptx,.pwz,.wiz,.asm,.bat,.c,.cc,.conf,.cpp,.css,.cxx,.def,.dic,.eml,.h,.hh,.htm,.html,.ics,.ifb,.in,.js,.json,.ksh,.png,.jpeg,.jpg,.gif,.webp,.md,.php,.pkl,.rb,.tar,.tex,.ts,.txt,.xml,",multiple:!0,onChange:rt})]})]}),q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsxs("div",{className:"rte-brand-badge",children:[q.jsx("div",{className:"rte-brand-badge",children:q.jsx("img",{src:"https://oospublic.sealseek.cn/file/website/ball.png",alt:""})}),q.jsx("span",{className:"rte-brand-text",style:{marginLeft:"4px"},children:"SealSeek 2.0"})]}),(()=>{const ee=e.find(me=>me.type==="tag");if(!ee||!ee.text)return null;const ue=s.find(me=>me.label===ee.text);return!ue||ue.points===void 0||ue.points===null?null:q.jsxs("div",{className:"rte-points-badge",style:{position:"relative"},children:[q.jsx("i",{className:"iconfont icon-jifen",style:{marginRight:"4px",fontSize:"16px"}}),q.jsxs("span",{style:{fontSize:"16px",lineHeight:"22px"},children:["-",String(ue.points)]}),ue.labelValue===2&&q.jsx("div",{className:"rte-limited-free-badge",children:q.jsx("span",{className:"rte-limited-free-text",children:"限时免费"})})]})})(),q.jsx("button",{type:"button",onClick:By,disabled:n||r||l||!nl,className:"rich-text-editor-send-button",children:n||l?q.jsx("span",{className:"rte-send-spinner"}):q.jsx("i",{className:"iconfont icon-fasong"})})]})]}),li,q.jsx(ce.Image,{style:{display:"none"},src:vr,preview:{visible:ui,onVisibleChange:ee=>wr(ee)}}),bl,ml,Iy,Ly,gl]})};Wu.__docgenInfo={displayName:"RichTextEditor",description:"结构化富文本输入组件,支持标签、变量输入块、文件上传以及互斥显示逻辑。",props:{config:{name:"config",required:!0,description:"结构化输入配置节点数组",type:{name:"InputNode[]",raw:"InputNode[]"}},onSend:{name:"onSend",required:!0,description:"点击发送按钮时的回调,返回数据与拼接后的 Prompt",type:{name:"function",raw:"(data: Record<string, any>, fullPrompt: string) => void"}},isProcessing:{name:"isProcessing",required:!1,description:"是否处于处理状态(禁用输入与发送)",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}}}};const ju="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",ny=[{label:"5页",value:5},{label:"10页",value:10},{label:"15页",value:15},{label:"30页",value:30}],ry=({autoLoading:e,batchSize:t,loadingProgress:n,loadIcon:r,onBatchSizeChange:a,onLoadNextPage:i,onStartAutoLoad:s,onStopLoad:o})=>e&&n?q.jsxs("div",{className:"auto_load_progress",children:[r||q.jsx("img",{src:ju,alt:"自动加载",width:14,height:14}),q.jsxs("span",{children:["正在加载第",n.currentPage,"/",n.totalPages,"页"]}),q.jsx(ce.Progress,{percent:n.percentage,type:"line",size:[160,8]}),q.jsx("span",{onClick:o,className:"auto_load_stop_btn",children:"停止加载"})]}):q.jsxs("div",{className:"auto_load_container",children:[q.jsx("div",{onClick:i,className:"auto_load_next_btn",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:"加载下一页"}),q.jsxs("div",{className:"right_control_wrap",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:[q.jsxs("div",{className:"auto_load_btn",onClick:e?void 0:s,children:[r||q.jsx("img",{src:ju,alt:"自动加载",width:14,height:14}),q.jsx("span",{children:"自动加载"})]}),q.jsx(ce.Select,{value:t,onChange:a,options:ny,disabled:e,size:"small",className:"auto_load_select",popupMatchSelectWidth:84})]})]}),ay=({current:e,loadIcon:t,pageSize:n,total:r,cachedPages:a,loadedCount:i,autoLoading:s=!1,loadingProgress:o,onChange:u,onLoadNextPage:l,onStartAutoLoad:c,onStopLoading:f})=>{const[g,p]=I.useState(5),T=Math.ceil(r/n),h=I.useMemo(()=>a.length>=T,[a,T]),m=()=>Array.from({length:T},(y,_)=>_+1).filter(y=>!a.includes(y)).slice(0,g),b=(E,y,_)=>{const w=a.includes(E);return y==="prev"||y==="next"||y==="jump-prev"||y==="jump-next"?q.jsx("div",{className:"pageBox",children:_}):q.jsxs("div",{className:"pageBox",style:{backgroundColor:e===E?"#2563EB":"#f5f5f5",color:e===E?"#fff":w?"#171717":"#a3a3a3"},children:[E,!w&&q.jsx("span",{className:"unload_spot"})]})};return q.jsxs("div",{className:"pagination_footer",children:[q.jsxs("div",{className:"pagination_leftWrap",children:[q.jsxs("span",{className:"pagination_total",children:[q.jsx(gt.InfoCircleOutlined,{style:{color:"#2563EB",marginRight:"4px"}}),"已加载: ",i,"/",r,"条数据"]}),!h&&q.jsx(ry,{loadIcon:t||void 0,autoLoading:s,batchSize:g,loadingProgress:o,disabled:!l||!c,onBatchSizeChange:p,onLoadNextPage:()=>l?.(),onStartAutoLoad:()=>{const E=m();c?.(E)},onStopLoad:()=>f?.()})]}),q.jsx(ce.Pagination,{current:e,pageSize:n,total:r,onChange:E=>u(E),showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>"",itemRender:b})]})},Xu=e=>{const{loading:t,autoLoading:n,loadingProgress:r,columns:a=[],dataSource:i=[],total:s,current:o,pageSize:u,cachedPages:l,onChangePage:c,onLoadNextPage:f,onStartAutoLoad:g,onStopLoading:p,...T}=e,h=I.useRef(null),m=I.useCallback(b=>{c(b),l.includes(b)&&h.current?.scrollTo({key:`${(b-1)*u+1}`})},[l,c,u]);return q.jsxs("div",{className:"flex flex-col",children:[q.jsx(ce.Table,{ref:h,...T,columns:a,dataSource:i,pagination:!1,virtual:!0}),q.jsx(ay,{loading:t,autoLoading:n,loadingProgress:r,current:o,pageSize:u,total:s,loadedCount:i.length,cachedPages:l,onChange:m,onLoadNextPage:f,onStartAutoLoad:g,onStopLoading:p})]})};Xu.__docgenInfo={displayName:"VirtualTable",description:"虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",props:{loading:{description:"加载状态",name:"loading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},total:{description:"总数据条数",name:"total",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"0"}},current:{description:"当前页码",name:"current",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"1"}},pageSize:{description:"每页数据条数",name:"pageSize",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"10"}},cachedPages:{description:"已缓存的页码数组",name:"cachedPages",required:!0,type:{name:"number[]",raw:"number[]"},defaultValue:{value:"[]"}},dataSource:{description:"数据源",name:"dataSource",required:!0,type:{name:"Array<T>",raw:"Array<T>"},defaultValue:{value:"[]"}},onChangePage:{description:"页码变更回调函数",name:"onChangePage",required:!0,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},autoLoading:{description:"是否正在自动加载",name:"autoLoading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},loadingProgress:{description:"加载进度信息",name:"loadingProgress",required:!0,type:{name:"object",raw:"{percentage: 0, currentPage: 1, totalPages: 5}"},defaultValue:{value:"-"}},onLoadNextPage:{description:"加载下一页回调函数",name:"onLoadNextPage",required:!1,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},onStartAutoLoad:{description:"开始自动加载回调函数",name:"onStartAutoLoad",required:!1,type:{name:"function",raw:"function(loadNextPages: number[]): void"},defaultValue:{value:"-"}},onStopLoading:{description:"停止加载回调函数",name:"onStopLoading",required:!1,type:{name:"function",raw:"function(): void"},defaultValue:{value:"-"}},columns:{description:"表格列配置",name:"columns",required:!0,type:{name:"Array<object>",raw:"Array<object>"},defaultValue:{value:"[]"}}}};const Ku=({texts:e=[],placeholder:t="请输入内容",animationSpeed:n=100,autoPlay:r=!0,value:a,onChange:i,...s})=>{const[o,u]=I.useState(""),[l,c]=I.useState(0),[f,g]=I.useState(!1),[p,T]=I.useState(!1),[h,m]=I.useState(!1),b=I.useRef(void 0),E=I.useRef(void 0),y=I.useRef(e),_=I.useRef(l),w=I.useRef(p),S=I.useRef(o);I.useEffect(()=>{y.current=e,_.current=l,w.current=p,S.current=o});const M=I.useCallback((N,C)=>{let F=0;m(!0);const U=()=>{F<N.length?(u(N.slice(0,F+1)),F++,E.current=window.setTimeout(U,n)):(m(!1),C?.())};U()},[n]),A=I.useCallback(N=>{let C=S.current.length;const F=()=>{C>0?(u(S.current.slice(0,C-1)),C--,E.current=window.setTimeout(F,n/2)):N?.()};F()},[n]),x=I.useCallback(()=>{if(y.current.length===0||w.current)return;g(!0);const N=y.current[_.current];S.current?A(()=>{M(N,()=>{b.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),g(!1)},2e3)})}):M(N,()=>{b.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),g(!1)},2e3)})},[A,M]);I.useEffect(()=>(r&&e.length>0&&!p&&x(),()=>{b.current&&window.clearTimeout(b.current),E.current&&window.clearTimeout(E.current)}),[l,p,r,e.length,x]),I.useEffect(()=>{!f&&r&&e.length>0&&!p&&x()},[l,f,r,e.length,p,x]);const v=N=>{T(!0),b.current&&window.clearTimeout(b.current),E.current&&window.clearTimeout(E.current),g(!1),m(!1),s.onFocus?.(N)},k=N=>{T(!1),!a&&e.length>0&&(u(""),c(0)),s.onBlur?.(N)},D=N=>{i?.(N.target.value),s.onChange?.(N)},P=()=>p||a?t:o||t;return q.jsxs("div",{style:{position:"relative"},children:[q.jsx(ce.Input,{...s,value:a,onChange:D,onFocus:v,onBlur:k,placeholder:P(),style:{...s.style,position:"relative",zIndex:1}}),!p&&!a&&o&&q.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",paddingLeft:11,paddingRight:11,color:"#bfbfbf",pointerEvents:"none",zIndex:2,fontSize:14,fontFamily:"inherit"},children:[q.jsx("span",{children:o}),h&&q.jsx("span",{style:{display:"inline-block",width:1,height:"1.2em",backgroundColor:"#1890ff",marginLeft:2,animation:"blink 1s infinite"}})]}),q.jsx("style",{children:`
|
|
64
|
+
`);return U.replace(/\n/g,"").trim().length>0?U:""})();F&&(P.getAttribute("data-node-type")==="report-url"?g[`${N}__url`]=F:P.getAttribute("data-node-type")==="markdown-name"?g[`${N}__name`]=F:g[N]=F)}}),e.current.querySelectorAll('[data-type="select"]').forEach(P=>{const N=P.dataset.key;if(N){const x=(P.getAttribute("data-value")||"").trim();x&&(g[N]=x)}}),e.current.querySelectorAll('[data-type="searchable-select"]').forEach(P=>{const N=P.dataset.key;if(N){const x=(P.getAttribute("data-value")||"").trim();x&&(g[N]=x)}}),e.current.querySelectorAll('[data-type="textarea"]').forEach(P=>{const N=P.dataset.key;if(N){const x=P.value.replace(/[\u200B]/g,"").trim();x&&(g[N]=x)}}),e.current.querySelectorAll('[data-type="richtext"]').forEach(P=>{const N=P.dataset.key;if(N){const x=P.getAttribute("data-node-type")||"",F=x==="report-module"||x==="markdown-module",U=F?(P.innerHTML||"").replace(/[\u200B]/g,"").trim():(P.textContent||"").replace(/[\u200B]/g,"").trim();if(F){const $=Number.parseInt(P.getAttribute("data-module-index")||"0",10);g[`${N}__module_${Number.isFinite($)?$:0}`]=U}else U&&(g[N]=U)}}),e.current.querySelectorAll('[data-type="datepicker"]').forEach(P=>{const N=P.dataset.key;if(N){const x=(P.getAttribute("data-value")||"").trim();x&&(g[N]=x)}}),e.current.querySelectorAll('[data-type="number-input"]').forEach(P=>{const N=P.dataset.key;if(N){const x=(P.value||"").trim();x&&(g[N]=x)}})),o&&Object.keys(o).length>0){const C=new Set(t.filter(S=>S.type==="upload"&&S.key).map(S=>S.key)),M={};v||Object.entries(o).forEach(([S,T])=>{if(!Array.isArray(T))return;let A=0;for(let D=0;D<T.length;D++)`${S}_${D}`in g&&A++;let k=-1;for(let D=0;D<T.length;D++)f.current.has(`${S}_${D}`)&&(k=D);if(k>=A&&A<T.length)for(let D=A;D<T.length;D++)E.add(`${S}_${D}`)}),Object.entries(o).forEach(([S,T])=>{C.has(S)||(Array.isArray(T)?T.forEach((A,k)=>{A!=null&&String(A).trim()!==""&&(M[`${S}_${k}`]=String(A))}):T!=null&&String(T).trim()!==""&&(t.find(k=>k.key===S&&k.type==="report-url")?M[`${S}__url`]=String(T):M[S]=String(T)))}),Object.entries(M).forEach(([S,T])=>{const A=S in g,k=E.has(S),D=y.current[S]!==T;!k&&(!A||D)&&(g[S]=T)}),y.current=M}if(M1(e,t,a,l,g,n,u,s,c),v&&(p.current=!1),setTimeout(()=>{za(e)},0),r?.current){const{key:C,offset:M}=r.current;setTimeout(()=>{if(!e.current)return;const S=e.current.querySelector(`[data-type="variable"][data-key="${C}"]`);if(S){if(S.dataset.variableRender==="antd-textarea"){const T=S.querySelector("textarea");if(T){T.focus();try{const A=T.value?.length??0;T.setSelectionRange(Math.min(M,A),Math.min(M,A))}catch{}r.current=null;return}}try{const T=document.createRange(),A=document.createTreeWalker(S,NodeFilter.SHOW_TEXT,null);let k=0,D=null,P=0;for(;A.nextNode();){const N=A.currentNode,x=N.textContent?.length||0;if(k+x>=M){D=N,P=M-k;break}k+=x}if(D){T.setStart(D,Math.min(P,D.textContent?.length||0)),T.collapse(!0);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(T),S.focus())}else{T.selectNodeContents(S),T.collapse(!1);const N=window.getSelection();N&&(N.removeAllRanges(),N.addRange(T),S.focus())}}catch{const T=document.createRange();T.selectNodeContents(S),T.collapse(!1);const A=window.getSelection();A&&(A.removeAllRanges(),A.addRange(T),S.focus())}r.current=null}},0)}},[t,a,l,e,n,r,i,u,s,o,c]);I.useEffect(()=>{h()},[h])}function R1(e,t,a,l,n){I.useEffect(()=>{const r=e.current;if(!r)return;const i=o=>typeof o=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(o):o.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(o.name||""),u=o=>{const c=o.target?.closest(".upload-info-icon");if(c&&c.classList.contains("upload-info-icon")){const m=c.dataset.uploadKey;if(m){const p=c.dataset.tooltip||"";let y=!1;try{const b=JSON.parse(p);b&&b.type==="steps"&&Array.isArray(b.images)&&(y=!0)}catch{}if(y){const h=c.closest('[data-type="upload"], [data-type="video-upload"]');l({key:m,anchorEl:h||c,type:"upload"})}else{const h=c.closest('[data-type="upload"], [data-type="video-upload"]');l({key:m,anchorEl:h||c,type:"upload"})}}return}const f=o.target?.closest('[data-type="upload"]');if(f){const m=f.dataset.key;if(m){const p=a[m];p&&i(p)&&l({key:m,anchorEl:f,type:"upload-preview"})}}},s=o=>{if(n)return;const c=o.target?.closest(".upload-info-icon"),f=o.relatedTarget;if(f?.closest?.(".rte-tooltip-overlay"))return;if(c&&c.classList.contains("upload-info-icon")){const p=c.closest('[data-type="upload"], [data-type="video-upload"]');if(f&&p&&p.contains(f))return;if(!f||!r.contains(f))l(null);else{const y=f.closest('[data-type="upload"], [data-type="video-upload"]');(!y||y!==p)&&l(null)}return}const m=o.target?.closest('[data-type="upload"], [data-type="video-upload"]');if(m){const p=f;if(p?.closest?.(".rte-tooltip-overlay")||p&&m.contains(p))return;l(null)}};return r.addEventListener("mouseover",u,!0),r.addEventListener("mouseout",s,!0),()=>{r.removeEventListener("mouseover",u,!0),r.removeEventListener("mouseout",s,!0)}},[t,a,e,l,n])}function F1(e,t,a,l,n){I.useEffect(()=>{const r=e.current;if(!r)return;const i=c=>{if(l==="hideTagClose")return;const f=c.currentTarget,m=f.dataset.tooltip,p=f.dataset.tagKey||"";m&&a({key:p,anchorEl:f,type:"tag"})},u=c=>{n||c.relatedTarget?.closest?.(".rte-tooltip-overlay")||a(null)};let s;const o=()=>{r.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.addEventListener("mouseenter",i),f.addEventListener("mouseleave",u)})};return s=requestAnimationFrame(()=>{s=requestAnimationFrame(o)}),()=>{cancelAnimationFrame(s),r.querySelectorAll(".tag-node[data-tooltip]").forEach(f=>{f.removeEventListener("mouseenter",i),f.removeEventListener("mouseleave",u)})}},[t,e,a,l,n])}function H1(e,t,a,l){I.useEffect(()=>{const n=e.current;if(!n)return;const r=u=>{const s=u.target?.closest(".variable-info-icon");if(s&&s.classList.contains("variable-info-icon")){const c=s.dataset.variableKey;c&&a({key:c,anchorEl:s,type:"variable"});return}const o=u.target?.closest('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(o){const c=o.dataset.key;c&&a({key:c,anchorEl:o,type:"variable"})}},i=u=>{if(l)return;const s=u.target,o=u.relatedTarget;if(o?.closest?.(".rte-tooltip-overlay"))return;const c=s?.closest?.(".variable-info-icon"),f=s?.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');if(c||f){if(!o||!n.contains(o)){a(null);return}const m=!!o.closest?.(".variable-info-icon"),p=!!o.closest?.('[data-type="variable"][data-node-type="report-url"][data-tooltip]');!m&&!p&&a(null)}};return n.addEventListener("mouseover",r,!0),n.addEventListener("mouseout",i,!0),()=>{n.removeEventListener("mouseover",r,!0),n.removeEventListener("mouseout",i,!0)}},[t,e,a,l])}function $1(e,t,a,l,n){I.useEffect(()=>{const r=e.current;if(!r)return;const i=f=>typeof f=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(f):f.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name||""),u=f=>{const m=f.currentTarget,p=m.dataset.fileName,y=m.closest('[data-type="upload"]'),h=y?.dataset.key||"",b=h?a[h]:null;if(b&&i(b)){l({key:h,anchorEl:y||m,type:"upload-preview"});return}p&&l({key:h,anchorEl:y||m,type:"upload-label"})},s=f=>{n||f.relatedTarget?.closest?.(".rte-tooltip-overlay")||l(null)};let o;const c=()=>{r.querySelectorAll(".upload-label[data-file-name]").forEach(m=>{m.addEventListener("mouseenter",u),m.addEventListener("mouseleave",s)})};return o=requestAnimationFrame(()=>{o=requestAnimationFrame(c)}),()=>{cancelAnimationFrame(o),r.querySelectorAll(".upload-label[data-file-name]").forEach(m=>{m.removeEventListener("mouseenter",u),m.removeEventListener("mouseleave",s)})}},[t,a,e,l,n])}function U1(e,t,a,l,n,r){I.useEffect(()=>{const i=setTimeout(()=>{Ol(e,t,a,n),Dl(e,t,a,l,n)},0);return()=>clearTimeout(i)},[a,t,e,l,n,r])}function q1(e,t){const a=I.useRef(0),l=I.useRef(0);I.useEffect(()=>{if(!e.current)return;let n=!1,r=0;const i=g=>g instanceof HTMLElement?!!(g.closest(".rte-datepicker-wrapper")||g.closest(".rte-datepicker-host")||g.closest(".ant-picker")||g.closest(".ant-picker-dropdown")):!1,u=g=>g instanceof HTMLElement?!!(g.closest(".rte-select-wrapper")||g.closest(".rte-select-host")||g.closest(".ant-select")||g.closest(".ant-select-dropdown")):!1,s=g=>{n=!0,i(g.target)&&(a.current=Date.now()),u(g.target)&&(l.current=Date.now())},o=()=>{n=!1,r=Date.now()};let c=!1,f=0;const m=()=>{c=!0},p=()=>{c=!1,f=Date.now()},y=()=>{f=Date.now()},h=g=>{i(g.target)&&(a.current=Date.now()),u(g.target)&&(l.current=Date.now())},b=()=>{if(Date.now()-a.current<800||Date.now()-l.current<800)return;const g=document.activeElement;if(g&&(g.closest(".rte-datepicker-wrapper")||g.closest(".rte-datepicker-host")||g.closest(".ant-picker-dropdown")||g.tagName==="INPUT"&&g.closest(".ant-picker")||g.closest(".rte-select-wrapper")||g.closest(".rte-select-host")||g.closest(".ant-select")||g.closest(".ant-select-dropdown"))||!e.current)return;const E=window.getSelection();if(!E||E.rangeCount===0||t.current||n||c||Date.now()-f<500)return;const _=E.getRangeAt(0);if(!_.collapsed)return e.current.contains(_.commonAncestorContainer),void 0;const w=E.anchorNode;if(!w||!e.current.contains(w))return;let C=!1,M=!1;if(w.nodeType===Node.ELEMENT_NODE){const T=w;(T.closest('[data-type="datepicker"]')||T.closest(".rte-datepicker-wrapper")||T.closest(".rte-datepicker-host"))&&(C=!0),(T.closest('[data-type="select"]')||T.closest(".rte-select-wrapper")||T.closest(".rte-select-host"))&&(M=!0)}else if(w.parentElement){const T=w.parentElement;(T.closest('[data-type="datepicker"]')||T.closest(".rte-datepicker-wrapper")||T.closest(".rte-datepicker-host"))&&(C=!0),(T.closest('[data-type="select"]')||T.closest(".rte-select-wrapper")||T.closest(".rte-select-host"))&&(M=!0)}if(C||M)return;let S=null;if(w.nodeType===Node.ELEMENT_NODE?S=w.closest('[data-type="variable"]'):w.nodeType===Node.TEXT_NODE&&w.parentElement&&(S=w.parentElement.closest('[data-type="variable"]')),!S){if(Date.now()-r>500)return;const T=e.current.querySelectorAll('[data-type="variable"]');if(T.length>0){let A=null;for(const k of Array.from(T))if(k.style.display!=="none"){A=k;break}if(!A&&T.length>0&&(A=T[0]),A){const k=document.createRange();k.selectNodeContents(A),k.collapse(!1),E.removeAllRanges(),E.addRange(k),A.focus()}else E.removeAllRanges()}else E.removeAllRanges()}},v=e.current;return v&&(v.addEventListener("compositionstart",m),v.addEventListener("compositionend",p),v.addEventListener("input",y)),document.addEventListener("mousedown",s),document.addEventListener("mouseup",o),document.addEventListener("focusin",h),document.addEventListener("selectionchange",b),()=>{v&&(v.removeEventListener("compositionstart",m),v.removeEventListener("compositionend",p),v.removeEventListener("input",y)),document.removeEventListener("mousedown",s),document.removeEventListener("mouseup",o),document.removeEventListener("focusin",h),document.removeEventListener("selectionchange",b)}},[e,t])}var El={exports:{}},z1=El.exports,$s;function Us(){return $s||($s=1,function(e,t){(function(a,l){e.exports=l()})(z1,function(){var a=1e3,l=6e4,n=36e5,r="millisecond",i="second",u="minute",s="hour",o="day",c="week",f="month",m="quarter",p="year",y="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var x=["th","st","nd","rd"],F=N%100;return"["+N+(x[(F-20)%10]||x[F]||x[0])+"]"}},E=function(N,x,F){var U=String(N);return!U||U.length>=x?N:""+Array(x+1-U.length).join(F)+N},_={s:E,z:function(N){var x=-N.utcOffset(),F=Math.abs(x),U=Math.floor(F/60),$=F%60;return(x<=0?"+":"-")+E(U,2,"0")+":"+E($,2,"0")},m:function N(x,F){if(x.date()<F.date())return-N(F,x);var U=12*(F.year()-x.year())+(F.month()-x.month()),$=x.clone().add(U,f),G=F-$<0,L=x.clone().add(U+(G?-1:1),f);return+(-(U+(F-$)/(G?$-L:L-$))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:c,d:o,D:y,h:s,m:u,s:i,ms:r,Q:m}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},w="en",C={};C[w]=g;var M="$isDayjsObject",S=function(N){return N instanceof D||!(!N||!N[M])},T=function N(x,F,U){var $;if(!x)return w;if(typeof x=="string"){var G=x.toLowerCase();C[G]&&($=G),F&&(C[G]=F,$=G);var L=x.split("-");if(!$&&L.length>1)return N(L[0])}else{var W=x.name;C[W]=x,$=W}return!U&&$&&(w=$),$||!U&&w},A=function(N,x){if(S(N))return N.clone();var F=typeof x=="object"?x:{};return F.date=N,F.args=arguments,new D(F)},k=_;k.l=T,k.i=S,k.w=function(N,x){return A(N,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var D=function(){function N(F){this.$L=T(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[M]=!0}var x=N.prototype;return x.parse=function(F){this.$d=function(U){var $=U.date,G=U.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var L=$.match(b);if(L){var W=L[2]-1||0,V=(L[7]||"0").substring(0,3);return G?new Date(Date.UTC(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)):new Date(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)}}return new Date($)}(F),this.init()},x.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},x.$utils=function(){return k},x.isValid=function(){return this.$d.toString()!==h},x.isSame=function(F,U){var $=A(F);return this.startOf(U)<=$&&$<=this.endOf(U)},x.isAfter=function(F,U){return A(F)<this.startOf(U)},x.isBefore=function(F,U){return this.endOf(U)<A(F)},x.$g=function(F,U,$){return k.u(F)?this[U]:this.set($,F)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(F,U){var $=this,G=!!k.u(U)||U,L=k.p(F),W=function(ie,he){var _e=k.w($.$u?Date.UTC($.$y,he,ie):new Date($.$y,he,ie),$);return G?_e:_e.endOf(o)},V=function(ie,he){return k.w($.toDate()[ie].apply($.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(he)),$)},R=this.$W,K=this.$M,ne=this.$D,ae="set"+(this.$u?"UTC":"");switch(L){case p:return G?W(1,0):W(31,11);case f:return G?W(1,K):W(0,K+1);case c:var X=this.$locale().weekStart||0,le=(R<X?R+7:R)-X;return W(G?ne-le:ne+(6-le),K);case o:case y:return V(ae+"Hours",0);case s:return V(ae+"Minutes",1);case u:return V(ae+"Seconds",2);case i:return V(ae+"Milliseconds",3);default:return this.clone()}},x.endOf=function(F){return this.startOf(F,!1)},x.$set=function(F,U){var $,G=k.p(F),L="set"+(this.$u?"UTC":""),W=($={},$[o]=L+"Date",$[y]=L+"Date",$[f]=L+"Month",$[p]=L+"FullYear",$[s]=L+"Hours",$[u]=L+"Minutes",$[i]=L+"Seconds",$[r]=L+"Milliseconds",$)[G],V=G===o?this.$D+(U-this.$W):U;if(G===f||G===p){var R=this.clone().set(y,1);R.$d[W](V),R.init(),this.$d=R.set(y,Math.min(this.$D,R.daysInMonth())).$d}else W&&this.$d[W](V);return this.init(),this},x.set=function(F,U){return this.clone().$set(F,U)},x.get=function(F){return this[k.p(F)]()},x.add=function(F,U){var $,G=this;F=Number(F);var L=k.p(U),W=function(K){var ne=A(G);return k.w(ne.date(ne.date()+Math.round(K*F)),G)};if(L===f)return this.set(f,this.$M+F);if(L===p)return this.set(p,this.$y+F);if(L===o)return W(1);if(L===c)return W(7);var V=($={},$[u]=l,$[s]=n,$[i]=a,$)[L]||1,R=this.$d.getTime()+F*V;return k.w(R,this)},x.subtract=function(F,U){return this.add(-1*F,U)},x.format=function(F){var U=this,$=this.$locale();if(!this.isValid())return $.invalidDate||h;var G=F||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),W=this.$H,V=this.$m,R=this.$M,K=$.weekdays,ne=$.months,ae=$.meridiem,X=function(he,_e,Ge,At){return he&&(he[_e]||he(U,G))||Ge[_e].slice(0,At)},le=function(he){return k.s(W%12||12,he,"0")},ie=ae||function(he,_e,Ge){var At=he<12?"AM":"PM";return Ge?At.toLowerCase():At};return G.replace(v,function(he,_e){return _e||function(Ge){switch(Ge){case"YY":return String(U.$y).slice(-2);case"YYYY":return k.s(U.$y,4,"0");case"M":return R+1;case"MM":return k.s(R+1,2,"0");case"MMM":return X($.monthsShort,R,ne,3);case"MMMM":return X(ne,R);case"D":return U.$D;case"DD":return k.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return X($.weekdaysMin,U.$W,K,2);case"ddd":return X($.weekdaysShort,U.$W,K,3);case"dddd":return K[U.$W];case"H":return String(W);case"HH":return k.s(W,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return ie(W,V,!0);case"A":return ie(W,V,!1);case"m":return String(V);case"mm":return k.s(V,2,"0");case"s":return String(U.$s);case"ss":return k.s(U.$s,2,"0");case"SSS":return k.s(U.$ms,3,"0");case"Z":return L}return null}(he)||L.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(F,U,$){var G,L=this,W=k.p(U),V=A(F),R=(V.utcOffset()-this.utcOffset())*l,K=this-V,ne=function(){return k.m(L,V)};switch(W){case p:G=ne()/12;break;case f:G=ne();break;case m:G=ne()/3;break;case c:G=(K-R)/6048e5;break;case o:G=(K-R)/864e5;break;case s:G=K/n;break;case u:G=K/l;break;case i:G=K/a;break;default:G=K}return $?G:k.a(G)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return C[this.$L]},x.locale=function(F,U){if(!F)return this.$L;var $=this.clone(),G=T(F,U,!0);return G&&($.$L=G),$},x.clone=function(){return k.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},N}(),P=D.prototype;return A.prototype=P,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",o],["$M",f],["$y",p],["$D",y]].forEach(function(N){P[N[1]]=function(x){return this.$g(x,N[0],N[1])}}),A.extend=function(N,x){return N.$i||(N(x,D,A),N.$i=!0),A},A.locale=T,A.isDayjs=S,A.unix=function(N){return A(1e3*N)},A.en=C[w],A.Ls=C,A.p={},A})}(El)),El.exports}var V1=Us();const yl=Kl(V1);var Tl={exports:{}},G1=Tl.exports,qs;function Y1(){return qs||(qs=1,function(e,t){(function(a,l){e.exports=l(Us())})(G1,function(a){function l(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var n=l(a),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,u){return u==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,u){var s=100*i+u;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return n.default.locale(r,null,!0),r})}(Tl)),Tl.exports}Y1();function Oa(e){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oa(e)}function W1(e,t){if(Oa(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var l=a.call(e,t);if(Oa(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j1(e){var t=W1(e,"string");return Oa(t)=="symbol"?t:t+""}function X1(e,t,a){return(t=j1(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function zs(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,l)}return a}function Vs(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?zs(Object(a),!0).forEach(function(l){X1(e,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):zs(Object(a)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(a,l))})}return e}var K1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Q1=Vs(Vs({},K1),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const J1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Gs={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Q1),timePickerLocale:Object.assign({},J1)};Gs.lang.ok="确定",yl.locale("zh-cn");const{RangePicker:Z1}=ce.DatePicker,eE=({host:e,onChange:t})=>{const a=e.dataset.key,l=e.dataset.value,n=e.dataset.placeholder,r=e.dataset.limitRange?parseInt(e.dataset.limitRange,10):void 0,i=e.dataset.disableFuture==="true",[u,s]=I.useState(()=>{if(!l)return null;const h=l.split(",");return h.length===2&&h[0]&&h[1]?[yl(h[0]),yl(h[1])]:null}),[o,c]=I.useState(null),f=h=>h?i&&h.isAfter(yl(),"day")?!0:!r||!o||!o[0]?!1:Math.abs(h.diff(o[0],"days"))>r:!1,m=h=>{c(h)},p=h=>{if(s(h),c(null),h&&h[0]&&h[1]){const b=`${h[0].format("YYYY-MM-DD")},${h[1].format("YYYY-MM-DD")}`;e.setAttribute("data-value",b),t(a,b)}else e.setAttribute("data-value",""),t(a,"")},y=h=>{c(h?u:null)};return $t.createPortal(q.jsx("div",{className:"rte-datepicker-wrapper",contentEditable:!1,style:{display:"inline-block",verticalAlign:"middle",width:"260px",marginLeft:"4px",marginRight:"4px",fontSize:"16px",height:"30px",lineHeight:"30px"},children:q.jsx(Z1,{value:u,disabledDate:f,onCalendarChange:m,onChange:p,onOpenChange:y,placeholder:[n||"开始日期",n||"结束日期"],style:{width:"100%"},size:"small",allowClear:!0,locale:Gs,getPopupContainer:()=>document.body,popupClassName:"rte-datepicker-dropdown"})}),e)},tE=e=>{const[t,a]=I.useState([]);return I.useEffect(()=>{const l=e.current;if(!l)return;const n=()=>{const i=l.querySelectorAll(".rte-datepicker-host"),u=[];i.forEach(s=>{const o=s.getAttribute("data-key");o&&u.push(q.jsx(eE,{host:s,onChange:()=>{if(e.current){const c=new Event("input",{bubbles:!0});e.current.dispatchEvent(c)}}},`datepicker-${o}`))}),a(u)};n();const r=new MutationObserver(i=>{let u=!1;for(const s of i)if(s.type==="childList"){let o=!1;if(s.addedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const f=c;(f.classList?.contains("rte-datepicker-host")||f.querySelector?.(".rte-datepicker-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},Ys=({config:e,onSend:t,isProcessing:a=!1,disabled:l=!1,width:n,lockStructure:r=!1,agentOptions:i=[],onAgentSelect:u,onAgentExit:s,loading:o=!1,placeholder:c,border:f,background:m="transparent",hideButtons:p,maxHeight:y,minHeight:h,editorMinHeight:b,editorPadding:v,footerPadding:g,collapsed:E=!1,reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:C,onCollapsedChange:M,collapseTransitionMs:S=260,debugTooltipSticky:T=!1,nodeValues:A,onFilesChange:k,onFooterFilesChange:D,showFooterUpload:P=!0,footerFiles:N,videoUrlParse:x,videoUpload:F})=>{const[U,$]=ce.message.useMessage(),G=I.useRef(null),L=I.useRef(null),W=I.useRef(null),V=I.useRef(null),R=I.useRef(null),K=I.useRef(null),ne=I.useRef("");if(!ne.current){const ee=Math.random().toString(36).slice(2,8);ne.current=`rte_${ee}`}const[ae,X]=I.useState({});I.useEffect(()=>{k?.(ae)},[ae,k]);const[le,ie]=I.useState([]),he=I.useRef(!1);I.useEffect(()=>{if(!N)return;if(!(N.length===le.length&&N.every((se,be)=>{const ye=le[be];return ye&&se.name===ye.name&&se.size===ye.size&&se.lastModified===ye.lastModified})))if(N.reduce((ye,Le)=>ye+Le.size,0)>52428800){const ye=[];let Le=0;for(const Pe of N){if(Le+Pe.size>52428800)break;ye.push(Pe),Le+=Pe.size}U.error("文件总大小不能超过 50MB"),ie(ye)}else he.current=!0,ie(N)},[N]),I.useEffect(()=>{if(he.current){he.current=!1;return}D?.(le)},[le,D]);const[_e,Ge]=I.useState(null),[At,xl]=I.useState(null),[Cl,Ma]=I.useState(null),[tt,Ba]=I.useState({}),[Sl,Al]=I.useState(""),[sr,_l]=I.useState(!1),aa=I.useRef(null),Ra=I.useRef(null),{tooltipPortal:or,setPopoverVisible:j}=t1({config:e,files:ae,debugTooltipSticky:T,videoState:tt}),{handleFileChange:te,handleRemoveFile:oe}=Fo({config:e,messageApi:U,activeBatchKey:At,activeFileKey:_e,activeBatchStartIndex:Cl,setActiveFileKey:Ge,setActiveBatchKey:xl,setActiveBatchStartIndex:Ma,setFiles:X}),fe=I.useRef(null),[Ee,Ke]=I.useState({showLeft:!1,showRight:!1}),Qe=I.useCallback(()=>{const ee=fe.current;ee&&Ke({showLeft:ee.scrollLeft>0,showRight:ee.scrollLeft+ee.clientWidth<ee.scrollWidth-1})},[]),lt=I.useCallback(ee=>{if(!ee.target.files||ee.target.files.length===0)return;const se=10*1024*1024,be=50*1024*1024,ye=Pe=>Pe.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Pe.name||""),Le=Array.from(ee.target.files).filter(Pe=>ye(Pe)&&Pe.size>se?(U.error("图片大小不能超过 10MB"),!1):!0);ie(Pe=>{const Te=Pe.reduce((ke,De)=>ke+De.size,0),xe=[];let Se=Te;for(const ke of Le){if(Se+ke.size>be){U.error("文件总大小不能超过 50MB");break}xe.push(ke),Se+=ke.size}return xe.length>0?[...Pe,...xe]:Pe}),ee.target.value="",setTimeout(Qe,0)},[U,Qe]),Mt=I.useCallback(ee=>{ie(se=>se.filter((be,ye)=>ye!==ee)),setTimeout(Qe,0)},[Qe]),Bt=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:200,behavior:"smooth"})},[]),Ue=I.useCallback(()=>{const ee=fe.current;ee&&ee.scrollBy({left:-200,behavior:"smooth"})},[]),dt=I.useRef(!1),nt=I.useRef(null),{handleMouseDown:bE,handleMouseMove:mE,handleMouseUp:vE,handleDoubleClick:gE}=nc({lockStructure:r,onAgentExit:s,editorRef:V,setPopoverVisible:j,isDraggingRef:dt,mouseDownPosRef:nt}),[to,wl]=I.useState(!1),ao=I.useRef(null),[EE,lo]=I.useState(!0),yE=I.useRef(0),[no,TE]=I.useState(58),[xE,CE]=I.useState(58),[ro,SE]=I.useState(!1),[kl,cr]=I.useState(null),Fa=I.useRef(!1),Ha=I.useRef(!1),ft=I.useRef(null),[dr,fr]=I.useState({}),Nl=I.useRef(()=>{}),[Rt,Il]=I.useState({}),io=I.useRef(()=>{}),AE=I.useRef({}),pr=I.useRef(Rt);I.useEffect(()=>{pr.current=Rt},[Rt]);const[Ft,hr]=I.useState({}),uo=I.useRef(()=>{}),so=I.useRef(Ft);I.useEffect(()=>{so.current=Ft},[Ft]);const[Ht,$a]=I.useState(()=>{const ee={};return e.forEach(se=>{se.type==="multi-variable"&&se.key&&(ee[se.key]=1)}),ee});Wo({config:e,editorRef:V,files:ae,setFiles:X,multiVariableCounts:Ht,setMultiVariableCounts:$a,reportAnalyzeState:dr,setReportAnalyzeState:fr,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Il,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hr,nodeValues:A});const oo=I.useRef(A);if(A!==oo.current&&(oo.current=A,A)){const ee={};let se=!1;e.forEach(be=>{if(be.type==="multi-variable"&&be.key){const ye=A[be.key];if(Array.isArray(ye)&&ye.length>0){const Le=be.maxCount??9,Pe=Math.min(ye.length+1,Le);Ht[be.key]!==Pe&&(ee[be.key]=Pe,se=!0)}}}),se&&$a(be=>({...be,...ee}))}const we=Jo({config:e,reportAnalyzeState:dr,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft}),{handleReportUrlBlur:_E,handleMarkdownBlur:wE,handleMarkdownNameBlur:kE}=Xo({reportAnalyze:_,markdownAnalyze:w,markdownNameAnalyze:C,reportAnalyzeState:dr,setReportAnalyzeState:fr,markdownAnalyzeState:Rt,setMarkdownAnalyzeState:Il,markdownNameAnalyzeState:Ft,setMarkdownNameAnalyzeState:hr,editorRef:V,reportAnalyzeRef:Nl,markdownAnalyzeRef:io,markdownNameAnalyzeRef:uo,markdownAnalyzeStateRef:pr,markdownNameAnalyzeStateRef:so});Po(V,_E,[we]),Mo(V,kE,[we]),Bo(V,wE,[we]),Do(V,[we]),B1(V,we,ae,r,Ht,ao,void 0,p,void 0,A,tt);const br=I.useRef(new Set),co=I.useRef(we),fo=I.useRef(A);(co.current!==we||fo.current!==A)&&(co.current=we,fo.current=A,br.current=new Set),I.useEffect(()=>{if(!A||!we||we.length===0)return;const ee=we.filter(Te=>Te.type==="upload"&&Te.key);if(ee.length===0)return;const se={},be=(Te,xe)=>{xe&&(xe instanceof File?se[Te]=xe:typeof xe=="string"&&xe.trim()&&(se[Te]=xe.trim()))};for(const Te of ee){const xe=Te.key;if(br.current.has(xe))continue;const Se=A[xe],ke=typeof Te.maxCount=="number"&&Te.maxCount>1;if(Array.isArray(Se)&&Se.length>0){ke?Se.forEach((De,Ye)=>be(`${xe}-${Ye}`,De)):be(xe,Se[0]);continue}if(Se&&!Array.isArray(Se)){be(xe,Se);continue}if(ke)for(let De=0;De<Te.maxCount;De++){const Ye=`${xe}-${De}`,_t=A[Ye];if(!_t)break;be(Ye,_t)}}if(Object.keys(se).length===0)return;for(const Te of ee)A[Te.key]!==void 0&&br.current.add(Te.key);X(Te=>{const xe={...Te};let Se=!1;for(const ke of ee){const De=ke.key;if(A[De]===void 0)continue;if(typeof ke.maxCount=="number"&&ke.maxCount>1)for(let _t=0;_t<ke.maxCount;_t++){const gr=`${De}-${_t}`;!se[gr]&&Te[gr]&&(xe[gr]=null,Se=!0)}}for(const[ke,De]of Object.entries(se))Te[ke]!==De&&(xe[ke]=De,Se=!0);return Se?xe:Te});const ye=Object.entries(se).filter(([,Te])=>typeof Te=="string");if(ye.length===0)return;const Le=async Te=>{const xe=Te.split("/").pop()?.split("?")[0]||"file",Se=decodeURIComponent(xe),ke=async De=>{const Ye=await De.blob();return new File([Ye],Se,{type:Ye.type||"application/octet-stream"})};try{const De=`/api/image-proxy?url=${encodeURIComponent(Te)}`,Ye=await fetch(De);if(Ye.ok)return ke(Ye)}catch{}return null};let Pe=!1;return Promise.all(ye.map(async([Te,xe])=>{const Se=await Le(xe);return Se?{key:Te,file:Se}:null})).then(Te=>{if(Pe)return;const xe={};for(const Se of Te)Se&&(xe[Se.key]=Se.file);Object.keys(xe).length>0&&X(Se=>{const ke={...Se};let De=!1;for(const[Ye,_t]of Object.entries(xe))typeof ke[Ye]=="string"&&(ke[Ye]=_t,De=!0);return De?ke:Se})}),()=>{Pe=!0}},[A,we]);const mr=I.useRef(new Set),po=I.useRef(""),ho=(e||[]).filter(ee=>ee.key&&ee.type!=="report-module"&&ee.type!=="markdown-module").map(ee=>`${ee.type}:${ee.key}`).join("|");po.current!==ho&&(po.current=ho,mr.current=new Set),I.useEffect(()=>{if(!A||!e||e.length===0)return;const ee=e.filter(se=>se.type==="report-url"&&se.key);if(ee.length!==0)for(const se of ee){const be=se.key;if(mr.current.has(be))continue;const ye=A[be]??A[`${be}__url`];if(!ye||typeof ye=="string"&&!ye.trim())continue;const Le=Array.isArray(ye)?ye[0]:String(ye);Le&&(mr.current.add(be),setTimeout(()=>{Nl.current(be,Le)},100))}},[A,e,Nl]),R1(V,we,ae,j,T),F1(V,we,j,p,T),$1(V,we,ae,j,T),H1(V,we,j,T),U1(V,we,ae,wl,tt,A),qo(V,x,tt,Ba,[we]);const NE=zo(F,Ba);Vo(V,tt,j,T),q1(V,dt);const bo=Co(V),IE=Ao(V),LE=wo(V),mo=Oo(V);I.useEffect(()=>{if(!V.current)return;V.current.querySelectorAll(".rte-richtext-toggle").forEach(se=>{const be=se.getAttribute("data-expanded")==="true";se.innerHTML=be?'<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>':'<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>'})},[we,V]);const vo=tE(V),{measureExpandedContentHeight:Ua}=Ko({collapsed:E,collapseTransitionMs:S,contentRef:L,contentBodyRef:W,editorRef:V,debugIdRef:ne,setCollapsedContentMaxHeightPx:TE,setExpandedContentMaxHeightPx:CE,setIsCollapseAnimating:SE,effectiveConfig:we,files:ae,multiVariableCounts:Ht,selectPortalsLength:bo.length,datePickerPortalsLength:vo.length,variablePortalsLength:mo.length}),OE=()=>{if(E)return;const ee=W.current;if(!ee)return;const se=Math.ceil(ee.getBoundingClientRect().height||0);se>0&&cr(se),Fa.current=!0,Ha.current=!1,ft.current&&(window.clearTimeout(ft.current),ft.current=null)};I.useEffect(()=>{const ee=()=>{Fa.current&&(Ha.current=!0,ft.current&&window.clearTimeout(ft.current),ft.current=window.setTimeout(()=>{ft.current=null,Fa.current=!1,Ha.current=!1,cr(null),window.requestAnimationFrame(()=>Ua())},450))};return window.addEventListener("focus",ee),()=>window.removeEventListener("focus",ee)},[Ua]),I.useEffect(()=>{!Fa.current||!Ha.current||(ft.current&&(window.clearTimeout(ft.current),ft.current=null),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{cr(null),Ua(),Fa.current=!1,Ha.current=!1})}))},[ae,Ua]),Qo({config:e,editorRef:V,setIsEmpty:lo,setIsFormValid:wl});const DE=tc({disabled:l,collapsed:E,onCollapsedChange:M,config:e,lockStructure:r,editorRef:V,containerRef:G,fileInputRef:R,onBeforeFilePickerOpen:OE,files:ae,setFiles:X,handleRemoveFile:oe,setActiveBatchKey:xl,setActiveBatchStartIndex:Ma,setActiveFileKey:Ge,isDraggingRef:dt,richtextPrevScrollTopRef:yE,videoState:tt,setVideoState:Ba,videoFileInputRef:aa,activeVideoKeyRef:Ra,onImagePreview:ee=>{Al(ee),_l(!0)}}),vr=ac({config:e,editorRef:V,setIsEmpty:lo,setIsFormValid:wl,setReportAnalyzeState:fr,setMarkdownAnalyzeState:Il,setMarkdownNameAnalyzeState:hr,collapsed:E,measureExpandedContentHeight:Ua,effectiveConfig:we,files:ae,multiVariableCounts:Ht,setMultiVariableCounts:$a,savedCursorRef:ao,videoState:tt}),PE=rc({disabled:l,config:e,multiVariableCounts:Ht,setMultiVariableCounts:$a,editorRef:V,handleInput:vr,markdownAnalyzeRef:io,reportAnalyzeRef:Nl,markdownNameAnalyzeRef:uo,markdownAnalyzeStateRef:pr,markdownRawTextRef:AE,setMarkdownAnalyzeState:Il,setFooterFiles:ie,footerFiles:le,messageApi:U,onPasteUnsupported:()=>U.warning("暂不支持上传该文件类型")});ec({config:e,effectiveConfig:we,files:ae,editorRef:V,setIsFormValid:wl,multiVariableCounts:Ht,setMultiVariableCounts:$a,videoState:tt});const ME=lc({disabled:l,lockStructure:r,config:e,editorRef:V,handleInput:vr}),BE=ic({config:e,files:ae,footerFiles:le,onFooterFilesClear:()=>ie([]),onSend:t,isProcessing:a,disabled:l,loading:o,isFormValid:to,editorRef:V,markdownAnalyzeState:Rt,markdownNameAnalyzeState:Ft,videoState:tt}),RE={...n?{width:typeof n=="number"?`${n}px`:n}:{},...f?{border:f}:{},...m?{background:m}:{},...y?{maxHeight:typeof y=="number"?`${y}px`:y}:{},...h?{minHeight:typeof h=="number"?`${h}px`:h}:{},...le.length>0?{height:"220px"}:{},...y?{"--rte-richtext-fullscreen-height":typeof y=="number"?`${y}px`:y}:{},...b?{"--rte-editor-min-height":typeof b=="number"?`${b}px`:b}:{},...v?{"--rte-editor-padding":v}:{},...g?{"--rte-footer-padding":g}:{}},FE=typeof S=="number"&&Number.isFinite(S)&&S>=0?S:260,HE={overflow:"hidden"},$E=kl!=null?`${kl}px`:E?`${no}px`:`${Math.max(xE,no)}px`,UE=kl!=null||E||ro?"hidden":"auto",go=I.useRef(E),Eo=go.current!==E;Eo&&(go.current=E);const qE=kl!=null?"none":Eo||ro?`max-height ${FE}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none",zE={maxHeight:$E,minHeight:E?0:void 0,overflow:UE,overscrollBehavior:"contain",transition:qE,willChange:"max-height"};return q.jsxs("div",{className:"rich-text-editor",style:RE,"data-disabled":l,ref:G,children:[$,q.jsxs("div",{className:"rich-text-editor-content",ref:L,style:HE,children:[le.length>0&&q.jsxs("div",{className:"rte-footer-files-wrapper",children:[Ee.showLeft&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-left",onClick:Ue,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-left",children:q.jsx("svg",{style:{width:"16px",height:"16px",transform:"rotate(180deg)"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})}),q.jsx("div",{className:"rte-footer-files-list",ref:fe,onScroll:Qe,children:le.map((ee,se)=>{const be=ee.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ee.name||""),ye=ee.size<1024?`${ee.size}B`:ee.size<1024*1024?`${Math.round(ee.size/1024)}KB`:`${(ee.size/(1024*1024)).toFixed(1)}MB`;return q.jsxs("div",{className:"rte-footer-file-chip",children:[be?q.jsx(ce.Image,{style:{width:"32px",height:"32px",objectFit:"cover"},preview:{mask:q.jsx("span",{style:{fontSize:"12px",borderRadius:"4px"},children:"查看"})},className:"rte-footer-file-thumb",src:URL.createObjectURL(ee),alt:ee.name}):q.jsx("div",{className:"rte-footer-file-icon",children:q.jsx("svg",{style:{width:"18px",height:"18px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:`#${(()=>{const Le=(ee.name||"").split(".").pop()?.toLowerCase()||"";return["xls","xla","xlb","xlc","xlm","xlsx","xlt","xlw","csv","tsv","iif"].includes(Le)?"icon-a-xlsxcsv":["doc","docx","dot","odt","rtf","wiz"].includes(Le)?"icon-docx":["ppt","pptx","pot","ppa","pps","pwz"].includes(Le)?"icon-ppt":["txt","asm","bat","c","cc","conf","cpp","css","cxx","def","dic","eml","h","hh","in","js","ksh","php","pkl","rb","tar","tex","ts","xml"].includes(Le)?"icon-txt":Le==="pdf"?"icon-pdf":["html","htm","json","ics","ifb"].includes(Le)?"icon-a-htmljson":Le==="md"?"icon-md":"icon-lianjie"})()}`})})}),q.jsxs("div",{className:"rte-footer-file-info",children:[q.jsx("span",{className:"rte-footer-file-name",title:ee.name,children:ee.name}),q.jsx("span",{className:"rte-footer-file-size",children:ye})]}),q.jsx("span",{className:"rte-footer-file-remove",onClick:()=>Mt(se),children:"×"})]},`${ee.name}-${ee.size}-${se}`)})}),Ee.showRight&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-right",onClick:Bt,children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-right",children:q.jsx("svg",{style:{width:"16px",height:"16px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})})]}),q.jsxs("div",{ref:W,className:"rich-text-editor-content-body",style:zE,children:[q.jsx("div",{ref:V,className:`rte-editor ${e.length===0?"rte-editor-default":""} ${EE&&c?"rte-editor-empty":""}`,contentEditable:e.length===0,suppressContentEditableWarning:!0,"data-placeholder":c,onMouseDown:bE,onMouseMove:mE,onMouseUp:vE,onClick:DE,onDoubleClick:gE,onInput:vr,onKeyDown:ME,onPaste:PE}),q.jsx("input",{type:"file",ref:R,className:"rte-file-input",accept:".csv,.xlsx,.xls,.txt,.pdf,image/*",onChange:te}),q.jsx("input",{type:"file",ref:aa,className:"rte-file-input",accept:"video/*",onChange:ee=>{const se=ee.target.files?.[0],be=Ra.current;se&&se.size>1024*1024*1024?U.warning("视频文件不能超过1GB"):se&&be&&NE(be,se),Ra.current=null,aa.current&&(aa.current.value="")}})]})]}),q.jsxs("div",{className:"rich-text-editor-footer",children:[q.jsxs("div",{className:"rich-text-editor-footer-left",children:[q.jsx("div",{className:"rich-text-editor-brand",children:p!=="hideAgent"&&q.jsx(ce.Dropdown,{placement:"topLeft",menu:{items:i.filter(ee=>ee.isShowNew!==1).map(ee=>({key:ee.key,label:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ee.icon&&q.jsx("i",{className:ee.icon}),q.jsx("span",{children:ee.label})]}),onClick:()=>{u?.(ee)}}))},trigger:["click"],disabled:l||a,overlayClassName:"rte-agent-dropdown",children:q.jsxs("div",{className:"rte-agent-badge",style:{cursor:i.length>0?"pointer":"default"},children:[q.jsx("i",{className:"iconfont icon-zhinengti",style:{fontSize:"16px"}}),q.jsx("span",{className:"rte-agent-text",children:"智能体"})]})})}),!e.find(ee=>ee.type==="tag")&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"rte-footer-upload-btn",onClick:()=>K.current?.click(),title:"上传文件",children:q.jsx("i",{className:"iconfont icon-lianjie",style:{fontSize:"16px"}})}),q.jsx("input",{type:"file",ref:K,className:"rte-file-input",accept:".pdf,.xla,.xlb,.xlc,.xlm,.xls,.xlsx,.xlt,.xlw,.csv,.tsv,.iif,.doc,.docx,.dot,.odt,.rtf,.pot,.ppa,.pps,.ppt,.pptx,.pwz,.wiz,.asm,.bat,.c,.cc,.conf,.cpp,.css,.cxx,.def,.dic,.eml,.h,.hh,.htm,.html,.ics,.ifb,.in,.js,.json,.ksh,.png,.jpeg,.jpg,.gif,.webp,.md,.php,.pkl,.rb,.tar,.tex,.ts,.txt,.xml,",multiple:!0,onChange:lt})]})]}),q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsxs("div",{className:"rte-brand-badge",children:[q.jsx("div",{className:"rte-brand-badge",children:q.jsx("img",{src:"https://oospublic.sealseek.cn/file/website/ball.png",alt:""})}),q.jsx("span",{className:"rte-brand-text",style:{marginLeft:"4px"},children:"SealSeek 2.0"})]}),(()=>{const ee=e.find(be=>be.type==="tag");if(!ee||!ee.text)return null;const se=i.find(be=>be.label===ee.text);return!se||se.points===void 0||se.points===null?null:q.jsxs("div",{className:"rte-points-badge",style:{position:"relative"},children:[q.jsx("i",{className:"iconfont icon-jifen",style:{marginRight:"4px",fontSize:"16px"}}),q.jsxs("span",{style:{fontSize:"16px",lineHeight:"22px"},children:["-",String(se.points)]}),se.labelValue===2&&q.jsx("div",{className:"rte-limited-free-badge",children:q.jsx("span",{className:"rte-limited-free-text",children:"限时免费"})})]})})(),q.jsx("button",{type:"button",onClick:BE,disabled:a||l||o||!to,className:"rich-text-editor-send-button",children:a||o?q.jsx("span",{className:"rte-send-spinner"}):q.jsx("i",{className:"iconfont icon-fasong"})})]})]}),or,q.jsx(ce.Image,{style:{display:"none"},src:Sl,preview:{visible:sr,onVisibleChange:ee=>_l(ee)}}),vo,bo,IE,LE,mo]})};Ys.__docgenInfo={displayName:"RichTextEditor",description:"结构化富文本输入组件,支持标签、变量输入块、文件上传以及互斥显示逻辑。",props:{config:{name:"config",required:!0,description:"结构化输入配置节点数组",type:{name:"InputNode[]",raw:"InputNode[]"}},onSend:{name:"onSend",required:!0,description:"点击发送按钮时的回调,返回数据与拼接后的 Prompt",type:{name:"function",raw:"(data: Record<string, any>, fullPrompt: string) => void"}},isProcessing:{name:"isProcessing",required:!1,description:"是否处于处理状态(禁用输入与发送)",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}}}};const Ws="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",aE=[{label:"5页",value:5},{label:"10页",value:10},{label:"15页",value:15},{label:"30页",value:30}],lE=({autoLoading:e,batchSize:t,loadingProgress:a,loadIcon:l,onBatchSizeChange:n,onLoadNextPage:r,onStartAutoLoad:i,onStopLoad:u})=>e&&a?q.jsxs("div",{className:"auto_load_progress",children:[l||q.jsx("img",{src:Ws,alt:"自动加载",width:14,height:14}),q.jsxs("span",{children:["正在加载第",a.currentPage,"/",a.totalPages,"页"]}),q.jsx(ce.Progress,{percent:a.percentage,type:"line",size:[160,8]}),q.jsx("span",{onClick:u,className:"auto_load_stop_btn",children:"停止加载"})]}):q.jsxs("div",{className:"auto_load_container",children:[q.jsx("div",{onClick:r,className:"auto_load_next_btn",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:"加载下一页"}),q.jsxs("div",{className:"right_control_wrap",style:{backgroundColor:e?"#f5f5f5":"#2563eb"},children:[q.jsxs("div",{className:"auto_load_btn",onClick:e?void 0:i,children:[l||q.jsx("img",{src:Ws,alt:"自动加载",width:14,height:14}),q.jsx("span",{children:"自动加载"})]}),q.jsx(ce.Select,{value:t,onChange:n,options:aE,disabled:e,size:"small",className:"auto_load_select",popupMatchSelectWidth:84})]})]}),nE=({current:e,loadIcon:t,pageSize:a,total:l,cachedPages:n,loadedCount:r,autoLoading:i=!1,loadingProgress:u,onChange:s,onLoadNextPage:o,onStartAutoLoad:c,onStopLoading:f})=>{const[m,p]=I.useState(5),y=Math.ceil(l/a),h=I.useMemo(()=>n.length>=y,[n,y]),b=()=>Array.from({length:y},(E,_)=>_+1).filter(E=>!n.includes(E)).slice(0,m),v=(g,E,_)=>{const w=n.includes(g);return E==="prev"||E==="next"||E==="jump-prev"||E==="jump-next"?q.jsx("div",{className:"pageBox",children:_}):q.jsxs("div",{className:"pageBox",style:{backgroundColor:e===g?"#2563EB":"#f5f5f5",color:e===g?"#fff":w?"#171717":"#a3a3a3"},children:[g,!w&&q.jsx("span",{className:"unload_spot"})]})};return q.jsxs("div",{className:"pagination_footer",children:[q.jsxs("div",{className:"pagination_leftWrap",children:[q.jsxs("span",{className:"pagination_total",children:[q.jsx(mt.InfoCircleOutlined,{style:{color:"#2563EB",marginRight:"4px"}}),"已加载: ",r,"/",l,"条数据"]}),!h&&q.jsx(lE,{loadIcon:t||void 0,autoLoading:i,batchSize:m,loadingProgress:u,disabled:!o||!c,onBatchSizeChange:p,onLoadNextPage:()=>o?.(),onStartAutoLoad:()=>{const g=b();c?.(g)},onStopLoad:()=>f?.()})]}),q.jsx(ce.Pagination,{current:e,pageSize:a,total:l,onChange:g=>s(g),showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>"",itemRender:v})]})},js=e=>{const{loading:t,autoLoading:a,loadingProgress:l,columns:n=[],dataSource:r=[],total:i,current:u,pageSize:s,cachedPages:o,onChangePage:c,onLoadNextPage:f,onStartAutoLoad:m,onStopLoading:p,...y}=e,h=I.useRef(null),b=I.useCallback(v=>{c(v),o.includes(v)&&h.current?.scrollTo({key:`${(v-1)*s+1}`})},[o,c,s]);return q.jsxs("div",{className:"flex flex-col",children:[q.jsx(ce.Table,{ref:h,...y,columns:n,dataSource:r,pagination:!1,virtual:!0}),q.jsx(nE,{loading:t,autoLoading:a,loadingProgress:l,current:u,pageSize:s,total:i,loadedCount:r.length,cachedPages:o,onChange:b,onLoadNextPage:f,onStartAutoLoad:m,onStopLoading:p})]})};js.__docgenInfo={displayName:"VirtualTable",description:"虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",props:{loading:{description:"加载状态",name:"loading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},total:{description:"总数据条数",name:"total",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"0"}},current:{description:"当前页码",name:"current",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"1"}},pageSize:{description:"每页数据条数",name:"pageSize",required:!0,type:{name:"number",raw:"number"},defaultValue:{value:"10"}},cachedPages:{description:"已缓存的页码数组",name:"cachedPages",required:!0,type:{name:"number[]",raw:"number[]"},defaultValue:{value:"[]"}},dataSource:{description:"数据源",name:"dataSource",required:!0,type:{name:"Array<T>",raw:"Array<T>"},defaultValue:{value:"[]"}},onChangePage:{description:"页码变更回调函数",name:"onChangePage",required:!0,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},autoLoading:{description:"是否正在自动加载",name:"autoLoading",required:!0,type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},loadingProgress:{description:"加载进度信息",name:"loadingProgress",required:!0,type:{name:"object",raw:"{percentage: 0, currentPage: 1, totalPages: 5}"},defaultValue:{value:"-"}},onLoadNextPage:{description:"加载下一页回调函数",name:"onLoadNextPage",required:!1,type:{name:"function",raw:"function(page: number): void"},defaultValue:{value:"-"}},onStartAutoLoad:{description:"开始自动加载回调函数",name:"onStartAutoLoad",required:!1,type:{name:"function",raw:"function(loadNextPages: number[]): void"},defaultValue:{value:"-"}},onStopLoading:{description:"停止加载回调函数",name:"onStopLoading",required:!1,type:{name:"function",raw:"function(): void"},defaultValue:{value:"-"}},columns:{description:"表格列配置",name:"columns",required:!0,type:{name:"Array<object>",raw:"Array<object>"},defaultValue:{value:"[]"}}}};const Xs=({texts:e=[],placeholder:t="请输入内容",animationSpeed:a=100,autoPlay:l=!0,value:n,onChange:r,...i})=>{const[u,s]=I.useState(""),[o,c]=I.useState(0),[f,m]=I.useState(!1),[p,y]=I.useState(!1),[h,b]=I.useState(!1),v=I.useRef(void 0),g=I.useRef(void 0),E=I.useRef(e),_=I.useRef(o),w=I.useRef(p),C=I.useRef(u);I.useEffect(()=>{E.current=e,_.current=o,w.current=p,C.current=u});const M=I.useCallback((N,x)=>{let F=0;b(!0);const U=()=>{F<N.length?(s(N.slice(0,F+1)),F++,g.current=window.setTimeout(U,a)):(b(!1),x?.())};U()},[a]),S=I.useCallback(N=>{let x=C.current.length;const F=()=>{x>0?(s(C.current.slice(0,x-1)),x--,g.current=window.setTimeout(F,a/2)):N?.()};F()},[a]),T=I.useCallback(()=>{if(E.current.length===0||w.current)return;m(!0);const N=E.current[_.current];C.current?S(()=>{M(N,()=>{v.current=window.setTimeout(()=>{c(x=>(x+1)%E.current.length),m(!1)},2e3)})}):M(N,()=>{v.current=window.setTimeout(()=>{c(x=>(x+1)%E.current.length),m(!1)},2e3)})},[S,M]);I.useEffect(()=>(l&&e.length>0&&!p&&T(),()=>{v.current&&window.clearTimeout(v.current),g.current&&window.clearTimeout(g.current)}),[o,p,l,e.length,T]),I.useEffect(()=>{!f&&l&&e.length>0&&!p&&T()},[o,f,l,e.length,p,T]);const A=N=>{y(!0),v.current&&window.clearTimeout(v.current),g.current&&window.clearTimeout(g.current),m(!1),b(!1),i.onFocus?.(N)},k=N=>{y(!1),!n&&e.length>0&&(s(""),c(0)),i.onBlur?.(N)},D=N=>{r?.(N.target.value),i.onChange?.(N)},P=()=>p||n?t:u||t;return q.jsxs("div",{style:{position:"relative"},children:[q.jsx(ce.Input,{...i,value:n,onChange:D,onFocus:A,onBlur:k,placeholder:P(),style:{...i.style,position:"relative",zIndex:1}}),!p&&!n&&u&&q.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",paddingLeft:11,paddingRight:11,color:"#bfbfbf",pointerEvents:"none",zIndex:2,fontSize:14,fontFamily:"inherit"},children:[q.jsx("span",{children:u}),h&&q.jsx("span",{style:{display:"inline-block",width:1,height:"1.2em",backgroundColor:"#1890ff",marginLeft:2,animation:"blink 1s infinite"}})]}),q.jsx("style",{children:`
|
|
65
65
|
@keyframes blink {
|
|
66
66
|
0%, 50% { opacity: 1; }
|
|
67
67
|
51%, 100% { opacity: 0; }
|
|
68
68
|
}
|
|
69
|
-
`})]})};
|
|
69
|
+
`})]})};Xs.__docgenInfo={displayName:"DynamicInput",description:"动态文案输入框组件,支持流式文字动画效果",props:{texts:{name:"texts",required:!0,description:"动态展示的文案数组",type:{name:"string[]",raw:"string[]"}},placeholder:{name:"placeholder",required:!1,description:"输入框占位符",type:{name:"string",raw:"string"},defaultValue:{value:'"请输入内容"'}},animationSpeed:{name:"animationSpeed",required:!1,description:"动画速度(毫秒)",type:{name:"number",raw:"number"},defaultValue:{value:"100"}},autoPlay:{name:"autoPlay",required:!1,description:"是否自动播放动画",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},value:{name:"value",required:!1,description:"输入框值",type:{name:"string",raw:"string"}},onChange:{name:"onChange",required:!1,description:"输入框变化回调",type:{name:"function",raw:"(value: string) => void"}}}};const Ks=({texts:e=[],placeholder:t="请输入内容",animationSpeed:a=100,autoPlay:l=!0,value:n="",onChange:r,onSubmit:i,maxLength:u=500,showCount:s=!0,submitText:o="发送",disabled:c=!1,rows:f=4,style:m,...p})=>{const[y,h]=I.useState(""),[b,v]=I.useState(0),[g,E]=I.useState(!1),[_,w]=I.useState(!1),[C,M]=I.useState(!1),[S,T]=I.useState(n||""),A=I.useRef(void 0),k=I.useRef(void 0),D=I.useRef(e),P=I.useRef(b),N=I.useRef(_),x=I.useRef(y),F=I.useRef(null);I.useEffect(()=>{D.current=e,P.current=b,N.current=_,x.current=y});const U=I.useCallback((X,le)=>{let ie=0;M(!0);const he=()=>{ie<X.length?(h(X.slice(0,ie+1)),ie++,k.current=window.setTimeout(he,a)):(M(!1),le?.())};he()},[a]),$=I.useCallback(X=>{let le=x.current.length;const ie=()=>{le>0?(h(x.current.slice(0,le-1)),le--,k.current=window.setTimeout(ie,a/2)):X?.()};ie()},[a]),G=I.useCallback(()=>{if(D.current.length===0||N.current)return;E(!0);const X=D.current[P.current];x.current?$(()=>{U(X,()=>{A.current=window.setTimeout(()=>{v(le=>(le+1)%D.current.length),E(!1)},2e3)})}):U(X,()=>{A.current=window.setTimeout(()=>{v(le=>(le+1)%D.current.length),E(!1)},2e3)})},[$,U]);I.useEffect(()=>(l&&e.length>0&&!_&&G(),()=>{A.current&&window.clearTimeout(A.current),k.current&&window.clearTimeout(k.current)}),[b,_,l,e.length,G]),I.useEffect(()=>{!g&&l&&e.length>0&&!_&&G()},[b,g,l,e.length,_,G]);const L=X=>{w(!0),A.current&&window.clearTimeout(A.current),k.current&&window.clearTimeout(k.current),E(!1),M(!1),p.onFocus?.(X)},W=X=>{w(!1),!n&&e.length>0&&(h(""),v(0)),p.onBlur?.(X)},V=X=>{const le=X.target.value;u&&le.length>u||(r?r(le):T(le),p.onChange?.(X))},R=()=>{const X=r?n:S;X.trim()&&!c&&(i?.(X),r||T(""))},K=X=>{(X.ctrlKey||X.metaKey)&&X.key==="Enter"&&(X.preventDefault(),R()),p.onKeyDown?.(X)},ne=r?n:S,ae=c||!ne.trim()||(u?ne.length>u:!1);return q.jsxs("div",{style:{position:"relative",...m},children:[q.jsxs("div",{style:{position:"relative"},children:[q.jsx("textarea",{ref:F,value:r?n:S,onChange:V,onFocus:X=>{X.target.style.borderColor="#1890ff",X.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.2)",L(X)},onBlur:X=>{X.target.style.borderColor="#d9d9d9",X.target.style.boxShadow="none",W(X)},onKeyDown:K,placeholder:_||ne?t:"",maxLength:u,rows:f,disabled:c,style:{width:"100%",minHeight:`${f*24+16}px`,padding:"8px 60px 8px 12px",border:"1px solid #d9d9d9",borderRadius:"6px",fontSize:"14px",lineHeight:"1.5",fontFamily:"inherit",resize:"vertical",outline:"none",transition:"border-color 0.3s, box-shadow 0.3s",backgroundColor:"#fff",...p.style},...p}),!_&&!ne&&y&&q.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"flex-start",paddingTop:8,paddingLeft:12,paddingRight:12,color:"#bfbfbf",pointerEvents:"none",zIndex:2,fontSize:14,fontFamily:"inherit",lineHeight:"1.5"},children:[q.jsx("span",{children:y}),C&&q.jsx("span",{style:{display:"inline-block",width:1,height:"1.2em",backgroundColor:"#1890ff",marginLeft:2,animation:"blink 1s infinite"}})]}),q.jsx("div",{style:{position:"absolute",bottom:8,right:8,zIndex:3},children:q.jsx(ce.Button,{type:"primary",size:"small",icon:q.jsx(mt.SendOutlined,{}),onClick:R,disabled:ae,style:{borderRadius:6,minWidth:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:o})})]}),s&&q.jsxs("div",{style:{marginTop:4,textAlign:"right",fontSize:"12px",color:"#999"},children:[ne.length,"/",u]}),q.jsx("style",{children:`
|
|
70
70
|
@keyframes blink {
|
|
71
71
|
0%, 50% { opacity: 1; }
|
|
72
72
|
51%, 100% { opacity: 0; }
|
|
73
73
|
}
|
|
74
|
-
`})]})};Qu.__docgenInfo={displayName:"DynamicTextArea",description:"动态文案文本域组件,支持流式文字动画效果",props:{texts:{name:"texts",required:!0,description:"动态展示的文案数组",type:{name:"string[]",raw:"string[]"}},placeholder:{name:"placeholder",required:!1,description:"输入框占位符",type:{name:"string",raw:"string"},defaultValue:{value:'"请输入内容"'}},animationSpeed:{name:"animationSpeed",required:!1,description:"动画速度(毫秒)",type:{name:"number",raw:"number"},defaultValue:{value:"100"}},autoPlay:{name:"autoPlay",required:!1,description:"是否自动播放动画",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},value:{name:"value",required:!1,description:"输入框值",type:{name:"string",raw:"string"}},onChange:{name:"onChange",required:!1,description:"输入框变化回调",type:{name:"function",raw:"(value: string) => void"}},onSubmit:{name:"onSubmit",required:!1,description:"提交回调",type:{name:"function",raw:"(value: string) => void"}},maxLength:{name:"maxLength",required:!1,description:"最大输入字数",type:{name:"number",raw:"number"},defaultValue:{value:"500"}},showCount:{name:"showCount",required:!1,description:"是否显示字数统计",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},submitText:{name:"submitText",required:!1,description:"提交按钮文本",type:{name:"string",raw:"string"},defaultValue:{value:'"发送"'}},disabled:{name:"disabled",required:!1,description:"是否禁用提交按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},rows:{name:"rows",required:!1,description:"文本域行数",type:{name:"number",raw:"number"},defaultValue:{value:"4"}}}};const oi=({src:e,poster:t,width:n=300,height:r,videoWidth:a,videoHeight:i,showPlayButton:s=!0,autoPlayOnHover:o=!0,onClick:u,onVideoLoaded:l,onVideoPlay:c,onVideoPause:f,onVideoEnded:g,className:p,style:T,...h})=>{const m=I.useRef(null),[b,E]=I.useState(!1),[y,_]=I.useState(!1),[w,S]=I.useState(!1),M=I.useCallback(()=>{m.current&&(m.current.play(),E(!0),c?.())},[c]),A=I.useCallback(()=>{m.current&&(m.current.pause(),E(!1),f?.())},[f]),x=I.useCallback(U=>{U.stopPropagation(),b?A():M()},[b,M,A]),v=I.useCallback(()=>{_(!0),o&&!b&&M()},[o,b,M]),k=I.useCallback(()=>{_(!1),o&&b&&A()},[o,b,A]),D=I.useCallback(()=>{S(!0),l?.()},[l]),P=I.useCallback(()=>{E(!0),c?.()},[c]),N=I.useCallback(()=>{E(!1),f?.()},[f]),C=I.useCallback(()=>{E(!1),g?.()},[g]),F=I.useCallback(U=>{u?.(U)},[u]);return q.jsx(ce.Card,{...h,className:`video-card ${p||""}`,style:{width:n,height:r,padding:0,overflow:"hidden",cursor:u?"pointer":"default",border:"none",borderRadius:0,...T},bordered:!1,onMouseEnter:v,onMouseLeave:k,onClick:F,children:q.jsxs("div",{className:"video-card-container",children:[q.jsx("video",{ref:m,src:e,poster:t,preload:"metadata",onLoadedData:D,onPlay:P,onPause:N,onEnded:C,muted:!0,loop:!0}),s&&q.jsx("div",{className:`video-play-button ${y?"hovered":""}`,onClick:x,children:b?q.jsx(gt.PauseCircleOutlined,{className:"play-icon"}):q.jsx(gt.PlayCircleOutlined,{className:"play-icon"})}),!w&&q.jsx("div",{className:"video-loading-mask",children:q.jsx("div",{className:"loading-spinner"})})]})})};oi.__docgenInfo={displayName:"VideoCard",description:"视频卡片组件,支持鼠标悬浮播放控制",props:{src:{name:"src",required:!0,description:"视频源地址",type:{name:"string",raw:"string"}},poster:{name:"poster",required:!1,description:"视频海报图片",type:{name:"string",raw:"string"}},width:{name:"width",required:!1,description:"卡片宽度",type:{name:"number | string",raw:"number | string"},defaultValue:{value:"300"}},height:{name:"height",required:!1,description:"卡片高度",type:{name:"number | string",raw:"number | string"}},videoWidth:{name:"videoWidth",required:!1,description:"视频宽度",type:{name:"number | string",raw:"number | string"},defaultValue:{value:'"100%"'}},videoHeight:{name:"videoHeight",required:!1,description:"视频高度",type:{name:"number | string",raw:"number | string"},defaultValue:{value:'"100%"'}},showPlayButton:{name:"showPlayButton",required:!1,description:"是否显示播放按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},autoPlayOnHover:{name:"autoPlayOnHover",required:!1,description:"是否自动播放(鼠标悬浮时)",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"(event: React.MouseEvent<HTMLDivElement>) => void"}},onVideoLoaded:{name:"onVideoLoaded",required:!1,description:"视频加载完成事件",type:{name:"function",raw:"() => void"}},onVideoPlay:{name:"onVideoPlay",required:!1,description:"视频播放事件",type:{name:"function",raw:"() => void"}},onVideoPause:{name:"onVideoPause",required:!1,description:"视频暂停事件",type:{name:"function",raw:"() => void"}},onVideoEnded:{name:"onVideoEnded",required:!1,description:"视频结束事件",type:{name:"function",raw:"() => void"}},className:{name:"className",required:!1,description:"自定义样式类名",type:{name:"string",raw:"string"}},style:{name:"style",required:!1,description:"自定义样式",type:{name:"CSSProperties",raw:"React.CSSProperties"}}}};const iy=e=>[".mp4",".webm",".ogg",".mov",".avi",".wmv",".flv",".mkv"].some(n=>e.toLowerCase().includes(n)),sy=e=>e.type?e.type:iy(e.url)?"video":"image",Ju=({items:e,columns:t,gap:n=0,responsive:r=!0,breakpoints:a={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6},className:i,style:s,onClick:o})=>{const u=I.useRef(null),[l,c]=I.useState(t||a.md||3),f=I.useRef(new Map),g=I.useCallback(()=>{if(!r||t)return t||a.md||3;const m=window.innerWidth;return m<576?a.xs||1:m<768?a.sm||2:m<992?a.md||3:m<1200?a.lg||4:m<1600?a.xl||5:a.xxl||6},[r,t,a]),p=I.useCallback(()=>{if(!u.current)return;const m=l,b=u.current,y=(b.offsetWidth-n*(m-1))/m,_=new Array(m).fill(0);e.forEach((S,M)=>{const A=S.id||M,x=f.current.get(A);if(!x)return;const v=Math.min(..._),k=_.indexOf(v),D=k*(y+n),P=_[k];x.style.position="absolute",x.style.left=`${D}px`,x.style.top=`${P}px`,x.style.width=`${y}px`,_[k]+=x.offsetHeight+n});const w=Math.max(..._);b.style.height=`${w}px`},[e,l,n]);I.useEffect(()=>{const m=()=>{const b=g();b!==l&&c(b)};if(r)return window.addEventListener("resize",m),m(),()=>window.removeEventListener("resize",m)},[r,g,l]),I.useEffect(()=>{const m=setTimeout(()=>{p()},100);return()=>clearTimeout(m)},[e,l,p]);const T=I.useCallback(()=>{p()},[p]),h=I.useCallback(m=>{o&&o(m),m.onClick?.(m)},[o]);return q.jsx("div",{ref:u,className:`waterfall-container ${i||""}`,style:{position:"relative",width:"100%",...s},children:e.map((m,b)=>{const E=m.id||b,y=sy(m);return q.jsx("div",{ref:_=>{_?f.current.set(E,_):f.current.delete(E)},className:"waterfall-item",children:y==="video"?q.jsx("div",{style:{width:"100%",position:"relative",paddingBottom:"56.25%",cursor:o||m.onClick?"pointer":"default"},children:q.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:q.jsx(oi,{src:m.url,poster:m.poster,width:"100%",height:"100%",onClick:()=>h(m),onVideoLoaded:T,autoPlayOnHover:!0,showPlayButton:!1})})}):q.jsx("div",{className:"waterfall-image-wrapper",onClick:()=>h(m),style:{cursor:o||m.onClick?"pointer":"default"},children:q.jsx("img",{src:m.url,alt:`瀑布流图片 ${b+1}`,className:"waterfall-image",onLoad:T,onError:T,style:{display:"block",width:"100%",height:"auto"}})})},E)})})};Ju.__docgenInfo={displayName:"Waterfall",description:"瀑布流布局组件,支持图片和视频混合展示",props:{items:{name:"items",required:!0,description:"媒体资源数组",type:{name:"WaterfallItem[]",raw:"WaterfallItem[]"}},columns:{name:"columns",required:!1,description:"列数(默认会根据屏幕宽度自动响应)",type:{name:"number",raw:"number"}},gap:{name:"gap",required:!1,description:"间隔大小",type:{name:"number",raw:"number"},defaultValue:{value:"0"}},responsive:{name:"responsive",required:!1,description:"是否启用响应式布局",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},breakpoints:{name:"breakpoints",required:!1,description:"响应式断点配置",type:{name:"object",raw:"{ xs?: number; sm?: number; md?: number; lg?: number; xl?: number; xxl?: number; }"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},style:{name:"style",required:!1,description:"自定义样式",type:{name:"CSSProperties",raw:"React.CSSProperties"}},onClick:{name:"onClick",required:!1,description:"点击回调",type:{name:"function",raw:"(item: any) => void"}}}};const Pn=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),tn={日期:"date",展现量:"impressions",点击量:"clicks","花费(元)":"cost",点击率:"clickRate","平均点击花费(元)":"avgClickCost","千次展现花费(元)":"cpm","总成交金额(元)":"totalTransactionAmount",总成交笔数:"totalTransactionCount",点击转化率:"clickConversionRate","直接成交金额(元)":"directTransactionAmount","间接成交金额(元)":"indirectTransactionAmount",直接成交笔数:"directTransactionCount",间接成交笔数:"indirectTransactionCount",投入产出比:"roi",含预售投产比:"roiWithPresale","总成交成本(元)":"totalTransactionCost","总预售成交金额(元)":"totalPresaleAmount",总预售成交笔数:"totalPresaleCount","直接预售成交金额(元)":"directPresaleAmount",直接预售成交笔数:"directPresaleCount","间接预售成交金额(元)":"indirectPresaleAmount",间接预售成交笔数:"indirectPresaleCount",拍下订单笔数:"orderCount","拍下订单金额(元)":"orderAmount",总购物车数:"totalCartCount",直接购物车数:"directCartCount",间接购物车数:"indirectCartCount",加购率:"addToCartRate","加购成本(元)":"addToCartCost",收藏宝贝数:"productCollectionCount",收藏店铺数:"shopCollectionCount",总收藏数:"totalCollectionCount",直接收藏宝贝数:"directProductCollectionCount",间接收藏宝贝数:"indirectProductCollectionCount",宝贝收藏率:"productCollectionRate","宝贝收藏成本(元)":"productCollectionCost","店铺收藏成本(元)":"shopCollectionCost",总收藏加购数:"totalCollectionAndCartCount","总收藏加购成本(元)":"totalCollectionAndCartCost",宝贝收藏加购数:"productCollectionAndCartCount","宝贝收藏加购成本(元)":"productCollectionAndCartCost",引导访问量:"guidedVisitCount",引导访问人数:"guidedVisitorCount",引导访问潜客数:"guidedPotentialCustomerCount",引导访问潜客占比:"guidedPotentialCustomerRate",引导访问率:"guidedVisitRate",深度访问量:"deepVisitCount",平均访问页面数:"avgPageViews",成交人数:"transactionCustomerCount",成交新客数:"newCustomerCount",成交新客占比:"newCustomerRate",人均成交笔数:"avgTransactionPerCustomer",人均成交金额:"avgAmountPerCustomer",优惠券领取量:"couponClaimCount",购物金充值笔数:"shoppingCreditRechargeCount","购物金充值金额(元)":"shoppingCreditRechargeAmount",旺旺咨询量:"wangwangConsultationCount",自然流量转化金额:"organicTrafficAmount",自然流量曝光量:"organicTrafficImpressions"},oy=["日期","展现量","点击量","花费(元)","点击率","平均点击花费(元)","总成交金额(元)","总成交笔数","点击转化率","总购物车数","收藏宝贝数","收藏店铺数","总收藏数","宝贝收藏成本(元)","千次展现花费(元)","总预售成交金额(元)","总预售成交笔数","直接预售成交金额(元)","直接预售成交笔数","间接预售成交金额(元)","间接预售成交笔数","拍下订单笔数","拍下订单金额(元)","直接成交金额(元)","间接成交金额(元)","直接成交笔数","间接成交笔数","投入产出比","含预售投产比","总成交成本(元)","引导访问潜客数","成交人数","人均成交笔数","人均成交金额","直接购物车数","间接购物车数","加购率","店铺收藏成本(元)","总收藏加购数","总收藏加购成本(元)","宝贝收藏加购数","宝贝收藏加购成本(元)","宝贝收藏率","加购成本(元)","直接收藏宝贝数","间接收藏宝贝数","优惠券领取量","购物金充值笔数","购物金充值金额(元)","旺旺咨询量","引导访问量","引导访问人数","引导访问潜客占比","引导访问率","深度访问量","平均访问页面数","成交新客数","成交新客占比","自然流量转化金额","自然流量曝光量"],Mn=e=>tn[e]??e,uy=e=>e?!!(tn[e]!==void 0||e.length<=20&&/[\u4e00-\u9fff]/.test(e)):!1,ly=e=>{const t=e.trim();if(!t)return[];const n=t.split(/[\r\n]+/).map(s=>s.trim()).filter(Boolean);if(n.length===0)return[];const r=n[0];if(r.includes(" ")){const s=r.split(/\t/).map(u=>u.trim()).filter(Boolean),o=s.some(u=>tn[u]!==void 0);if(s.length>=2&&o)return s}if(n.length===1){let s=r.split(/\s{2,}/).map(u=>u.trim()).filter(Boolean);s.length<=1&&(s=r.split(/\s+/).filter(Boolean));const o=s.some(u=>tn[u]!==void 0);return s.length>=2&&o?s:[]}const a=n.filter(uy);return a.some(s=>tn[s]!==void 0)&&a.length>=2&&a.length/n.length>=.5?a:[]},cy=e=>{if(!e||e.trim()==="")return"";const t=e.trim();if(t.toLowerCase()==="nan")return"NaN";const n=t.match(/^(.+?)([+-]\d)/);return n?n[1].trim():t},dy=e=>e.replace(/[\u00a0\u3000]/g," ").replace(/[–—]/g,"-").replace(/%(\d)/g,"% $1").replace(/NaN(\d)/gi,"NaN $1").replace(/(\.\d+)(\d,\d{3})/g,"$1 $2").replace(/(\.\d+)(\d+\.)/g,"$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g,"$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g,"$1 $2").split(/\s+/).map(n=>n.trim()).filter(n=>n!==""),Zu=e=>{const t=(e||"").replace(/[\u00a0\u3000]/g," "),n=/20\d{2}-\d{2}-\d{2}/g,r=t.match(n)||[];if(r.length===0)return{markdown:"",jsonData:[]};const a=t.split(n).filter(b=>b.trim()!==""),i=a.length>0?ly(a[0]):[],s=i.length>=2,o=s?i:oy,u=s||a.length>0&&a[0].includes("展现量")?1:0,l=o.filter(b=>b!=="日期"),c=l.length,f=[];r.forEach((b,E)=>{const y=E+u;if(y>=a.length)return;const _=a[y];let w=_.split(/[\r\n]+/).map(A=>A.trim()).filter(A=>A!=="");w.length<c&&(w=dy(_));const S=A=>w.length===c*2?w[A*2]??"":w[A]??"",M={};M[Mn("日期")]=b,l.forEach((A,x)=>{const v=S(x),k=cy(v),D=Mn(A);M[D]=k}),f.push(M)});const g=o.filter(b=>{const E=Mn(b);return f.some(y=>{const _=y[E];return _!==void 0&&String(_).trim()!==""})}),p=`| ${g.join(" | ")} |`,T=`| ${g.map(()=>"---").join(" | ")} |`,h=f.map(b=>`| ${g.map(y=>{const _=Mn(y);return b[_]??"-"}).join(" | ")} |`);return{markdown:[p,T,...h].join(`
|
|
75
|
-
`),jsonData:f}},
|
|
76
|
-
`);if(t.length<2)return
|
|
74
|
+
`})]})};Ks.__docgenInfo={displayName:"DynamicTextArea",description:"动态文案文本域组件,支持流式文字动画效果",props:{texts:{name:"texts",required:!0,description:"动态展示的文案数组",type:{name:"string[]",raw:"string[]"}},placeholder:{name:"placeholder",required:!1,description:"输入框占位符",type:{name:"string",raw:"string"},defaultValue:{value:'"请输入内容"'}},animationSpeed:{name:"animationSpeed",required:!1,description:"动画速度(毫秒)",type:{name:"number",raw:"number"},defaultValue:{value:"100"}},autoPlay:{name:"autoPlay",required:!1,description:"是否自动播放动画",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},value:{name:"value",required:!1,description:"输入框值",type:{name:"string",raw:"string"}},onChange:{name:"onChange",required:!1,description:"输入框变化回调",type:{name:"function",raw:"(value: string) => void"}},onSubmit:{name:"onSubmit",required:!1,description:"提交回调",type:{name:"function",raw:"(value: string) => void"}},maxLength:{name:"maxLength",required:!1,description:"最大输入字数",type:{name:"number",raw:"number"},defaultValue:{value:"500"}},showCount:{name:"showCount",required:!1,description:"是否显示字数统计",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},submitText:{name:"submitText",required:!1,description:"提交按钮文本",type:{name:"string",raw:"string"},defaultValue:{value:'"发送"'}},disabled:{name:"disabled",required:!1,description:"是否禁用提交按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"false"}},rows:{name:"rows",required:!1,description:"文本域行数",type:{name:"number",raw:"number"},defaultValue:{value:"4"}}}};const ur=({src:e,poster:t,width:a=300,height:l,videoWidth:n,videoHeight:r,showPlayButton:i=!0,autoPlayOnHover:u=!0,onClick:s,onVideoLoaded:o,onVideoPlay:c,onVideoPause:f,onVideoEnded:m,className:p,style:y,...h})=>{const b=I.useRef(null),[v,g]=I.useState(!1),[E,_]=I.useState(!1),[w,C]=I.useState(!1),M=I.useCallback(()=>{b.current&&(b.current.play(),g(!0),c?.())},[c]),S=I.useCallback(()=>{b.current&&(b.current.pause(),g(!1),f?.())},[f]),T=I.useCallback(U=>{U.stopPropagation(),v?S():M()},[v,M,S]),A=I.useCallback(()=>{_(!0),u&&!v&&M()},[u,v,M]),k=I.useCallback(()=>{_(!1),u&&v&&S()},[u,v,S]),D=I.useCallback(()=>{C(!0),o?.()},[o]),P=I.useCallback(()=>{g(!0),c?.()},[c]),N=I.useCallback(()=>{g(!1),f?.()},[f]),x=I.useCallback(()=>{g(!1),m?.()},[m]),F=I.useCallback(U=>{s?.(U)},[s]);return q.jsx(ce.Card,{...h,className:`video-card ${p||""}`,style:{width:a,height:l,padding:0,overflow:"hidden",cursor:s?"pointer":"default",border:"none",borderRadius:0,...y},bordered:!1,onMouseEnter:A,onMouseLeave:k,onClick:F,children:q.jsxs("div",{className:"video-card-container",children:[q.jsx("video",{ref:b,src:e,poster:t,preload:"metadata",onLoadedData:D,onPlay:P,onPause:N,onEnded:x,muted:!0,loop:!0}),i&&q.jsx("div",{className:`video-play-button ${E?"hovered":""}`,onClick:T,children:v?q.jsx(mt.PauseCircleOutlined,{className:"play-icon"}):q.jsx(mt.PlayCircleOutlined,{className:"play-icon"})}),!w&&q.jsx("div",{className:"video-loading-mask",children:q.jsx("div",{className:"loading-spinner"})})]})})};ur.__docgenInfo={displayName:"VideoCard",description:"视频卡片组件,支持鼠标悬浮播放控制",props:{src:{name:"src",required:!0,description:"视频源地址",type:{name:"string",raw:"string"}},poster:{name:"poster",required:!1,description:"视频海报图片",type:{name:"string",raw:"string"}},width:{name:"width",required:!1,description:"卡片宽度",type:{name:"number | string",raw:"number | string"},defaultValue:{value:"300"}},height:{name:"height",required:!1,description:"卡片高度",type:{name:"number | string",raw:"number | string"}},videoWidth:{name:"videoWidth",required:!1,description:"视频宽度",type:{name:"number | string",raw:"number | string"},defaultValue:{value:'"100%"'}},videoHeight:{name:"videoHeight",required:!1,description:"视频高度",type:{name:"number | string",raw:"number | string"},defaultValue:{value:'"100%"'}},showPlayButton:{name:"showPlayButton",required:!1,description:"是否显示播放按钮",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},autoPlayOnHover:{name:"autoPlayOnHover",required:!1,description:"是否自动播放(鼠标悬浮时)",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},onClick:{name:"onClick",required:!1,description:"点击事件",type:{name:"function",raw:"(event: React.MouseEvent<HTMLDivElement>) => void"}},onVideoLoaded:{name:"onVideoLoaded",required:!1,description:"视频加载完成事件",type:{name:"function",raw:"() => void"}},onVideoPlay:{name:"onVideoPlay",required:!1,description:"视频播放事件",type:{name:"function",raw:"() => void"}},onVideoPause:{name:"onVideoPause",required:!1,description:"视频暂停事件",type:{name:"function",raw:"() => void"}},onVideoEnded:{name:"onVideoEnded",required:!1,description:"视频结束事件",type:{name:"function",raw:"() => void"}},className:{name:"className",required:!1,description:"自定义样式类名",type:{name:"string",raw:"string"}},style:{name:"style",required:!1,description:"自定义样式",type:{name:"CSSProperties",raw:"React.CSSProperties"}}}};const rE=e=>[".mp4",".webm",".ogg",".mov",".avi",".wmv",".flv",".mkv"].some(a=>e.toLowerCase().includes(a)),iE=e=>e.type?e.type:rE(e.url)?"video":"image",Qs=({items:e,columns:t,gap:a=0,responsive:l=!0,breakpoints:n={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6},className:r,style:i,onClick:u})=>{const s=I.useRef(null),[o,c]=I.useState(t||n.md||3),f=I.useRef(new Map),m=I.useCallback(()=>{if(!l||t)return t||n.md||3;const b=window.innerWidth;return b<576?n.xs||1:b<768?n.sm||2:b<992?n.md||3:b<1200?n.lg||4:b<1600?n.xl||5:n.xxl||6},[l,t,n]),p=I.useCallback(()=>{if(!s.current)return;const b=o,v=s.current,E=(v.offsetWidth-a*(b-1))/b,_=new Array(b).fill(0);e.forEach((C,M)=>{const S=C.id||M,T=f.current.get(S);if(!T)return;const A=Math.min(..._),k=_.indexOf(A),D=k*(E+a),P=_[k];T.style.position="absolute",T.style.left=`${D}px`,T.style.top=`${P}px`,T.style.width=`${E}px`,_[k]+=T.offsetHeight+a});const w=Math.max(..._);v.style.height=`${w}px`},[e,o,a]);I.useEffect(()=>{const b=()=>{const v=m();v!==o&&c(v)};if(l)return window.addEventListener("resize",b),b(),()=>window.removeEventListener("resize",b)},[l,m,o]),I.useEffect(()=>{const b=setTimeout(()=>{p()},100);return()=>clearTimeout(b)},[e,o,p]);const y=I.useCallback(()=>{p()},[p]),h=I.useCallback(b=>{u&&u(b),b.onClick?.(b)},[u]);return q.jsx("div",{ref:s,className:`waterfall-container ${r||""}`,style:{position:"relative",width:"100%",...i},children:e.map((b,v)=>{const g=b.id||v,E=iE(b);return q.jsx("div",{ref:_=>{_?f.current.set(g,_):f.current.delete(g)},className:"waterfall-item",children:E==="video"?q.jsx("div",{style:{width:"100%",position:"relative",paddingBottom:"56.25%",cursor:u||b.onClick?"pointer":"default"},children:q.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:q.jsx(ur,{src:b.url,poster:b.poster,width:"100%",height:"100%",onClick:()=>h(b),onVideoLoaded:y,autoPlayOnHover:!0,showPlayButton:!1})})}):q.jsx("div",{className:"waterfall-image-wrapper",onClick:()=>h(b),style:{cursor:u||b.onClick?"pointer":"default"},children:q.jsx("img",{src:b.url,alt:`瀑布流图片 ${v+1}`,className:"waterfall-image",onLoad:y,onError:y,style:{display:"block",width:"100%",height:"auto"}})})},g)})})};Qs.__docgenInfo={displayName:"Waterfall",description:"瀑布流布局组件,支持图片和视频混合展示",props:{items:{name:"items",required:!0,description:"媒体资源数组",type:{name:"WaterfallItem[]",raw:"WaterfallItem[]"}},columns:{name:"columns",required:!1,description:"列数(默认会根据屏幕宽度自动响应)",type:{name:"number",raw:"number"}},gap:{name:"gap",required:!1,description:"间隔大小",type:{name:"number",raw:"number"},defaultValue:{value:"0"}},responsive:{name:"responsive",required:!1,description:"是否启用响应式布局",type:{name:"boolean",raw:"boolean"},defaultValue:{value:"true"}},breakpoints:{name:"breakpoints",required:!1,description:"响应式断点配置",type:{name:"object",raw:"{ xs?: number; sm?: number; md?: number; lg?: number; xl?: number; xxl?: number; }"}},className:{name:"className",required:!1,description:"自定义类名",type:{name:"string",raw:"string"}},style:{name:"style",required:!1,description:"自定义样式",type:{name:"CSSProperties",raw:"React.CSSProperties"}},onClick:{name:"onClick",required:!1,description:"点击回调",type:{name:"function",raw:"(item: any) => void"}}}};const Da=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ta={日期:"date",展现量:"impressions",点击量:"clicks","花费(元)":"cost",点击率:"clickRate","平均点击花费(元)":"avgClickCost","千次展现花费(元)":"cpm","总成交金额(元)":"totalTransactionAmount",总成交笔数:"totalTransactionCount",点击转化率:"clickConversionRate","直接成交金额(元)":"directTransactionAmount","间接成交金额(元)":"indirectTransactionAmount",直接成交笔数:"directTransactionCount",间接成交笔数:"indirectTransactionCount",投入产出比:"roi",含预售投产比:"roiWithPresale","总成交成本(元)":"totalTransactionCost","总预售成交金额(元)":"totalPresaleAmount",总预售成交笔数:"totalPresaleCount","直接预售成交金额(元)":"directPresaleAmount",直接预售成交笔数:"directPresaleCount","间接预售成交金额(元)":"indirectPresaleAmount",间接预售成交笔数:"indirectPresaleCount",拍下订单笔数:"orderCount","拍下订单金额(元)":"orderAmount",总购物车数:"totalCartCount",直接购物车数:"directCartCount",间接购物车数:"indirectCartCount",加购率:"addToCartRate","加购成本(元)":"addToCartCost",收藏宝贝数:"productCollectionCount",收藏店铺数:"shopCollectionCount",总收藏数:"totalCollectionCount",直接收藏宝贝数:"directProductCollectionCount",间接收藏宝贝数:"indirectProductCollectionCount",宝贝收藏率:"productCollectionRate","宝贝收藏成本(元)":"productCollectionCost","店铺收藏成本(元)":"shopCollectionCost",总收藏加购数:"totalCollectionAndCartCount","总收藏加购成本(元)":"totalCollectionAndCartCost",宝贝收藏加购数:"productCollectionAndCartCount","宝贝收藏加购成本(元)":"productCollectionAndCartCost",引导访问量:"guidedVisitCount",引导访问人数:"guidedVisitorCount",引导访问潜客数:"guidedPotentialCustomerCount",引导访问潜客占比:"guidedPotentialCustomerRate",引导访问率:"guidedVisitRate",深度访问量:"deepVisitCount",平均访问页面数:"avgPageViews",成交人数:"transactionCustomerCount",成交新客数:"newCustomerCount",成交新客占比:"newCustomerRate",人均成交笔数:"avgTransactionPerCustomer",人均成交金额:"avgAmountPerCustomer",优惠券领取量:"couponClaimCount",购物金充值笔数:"shoppingCreditRechargeCount","购物金充值金额(元)":"shoppingCreditRechargeAmount",旺旺咨询量:"wangwangConsultationCount",自然流量转化金额:"organicTrafficAmount",自然流量曝光量:"organicTrafficImpressions"},uE=["日期","展现量","点击量","花费(元)","点击率","平均点击花费(元)","总成交金额(元)","总成交笔数","点击转化率","总购物车数","收藏宝贝数","收藏店铺数","总收藏数","宝贝收藏成本(元)","千次展现花费(元)","总预售成交金额(元)","总预售成交笔数","直接预售成交金额(元)","直接预售成交笔数","间接预售成交金额(元)","间接预售成交笔数","拍下订单笔数","拍下订单金额(元)","直接成交金额(元)","间接成交金额(元)","直接成交笔数","间接成交笔数","投入产出比","含预售投产比","总成交成本(元)","引导访问潜客数","成交人数","人均成交笔数","人均成交金额","直接购物车数","间接购物车数","加购率","店铺收藏成本(元)","总收藏加购数","总收藏加购成本(元)","宝贝收藏加购数","宝贝收藏加购成本(元)","宝贝收藏率","加购成本(元)","直接收藏宝贝数","间接收藏宝贝数","优惠券领取量","购物金充值笔数","购物金充值金额(元)","旺旺咨询量","引导访问量","引导访问人数","引导访问潜客占比","引导访问率","深度访问量","平均访问页面数","成交新客数","成交新客占比","自然流量转化金额","自然流量曝光量"],Pa=e=>ta[e]??e,sE=e=>e?!!(ta[e]!==void 0||e.length<=20&&/[\u4e00-\u9fff]/.test(e)):!1,oE=e=>{const t=e.trim();if(!t)return[];const a=t.split(/[\r\n]+/).map(i=>i.trim()).filter(Boolean);if(a.length===0)return[];const l=a[0];if(l.includes(" ")){const i=l.split(/\t/).map(s=>s.trim()).filter(Boolean),u=i.some(s=>ta[s]!==void 0);if(i.length>=2&&u)return i}if(a.length===1){let i=l.split(/\s{2,}/).map(s=>s.trim()).filter(Boolean);i.length<=1&&(i=l.split(/\s+/).filter(Boolean));const u=i.some(s=>ta[s]!==void 0);return i.length>=2&&u?i:[]}const n=a.filter(sE);return n.some(i=>ta[i]!==void 0)&&n.length>=2&&n.length/a.length>=.5?n:[]},cE=e=>{if(!e||e.trim()==="")return"";const t=e.trim();if(t.toLowerCase()==="nan")return"NaN";const a=t.match(/^(.+?)([+-]\d)/);return a?a[1].trim():t},dE=e=>e.replace(/[\u00a0\u3000]/g," ").replace(/[–—]/g,"-").replace(/%(\d)/g,"% $1").replace(/NaN(\d)/gi,"NaN $1").replace(/(\.\d+)(\d,\d{3})/g,"$1 $2").replace(/(\.\d+)(\d+\.)/g,"$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g,"$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g,"$1 $2").split(/\s+/).map(a=>a.trim()).filter(a=>a!==""),Js=e=>{const t=(e||"").replace(/[\u00a0\u3000]/g," "),a=/20\d{2}-\d{2}-\d{2}/g,l=t.match(a)||[];if(l.length===0)return{markdown:"",jsonData:[]};const n=t.split(a).filter(v=>v.trim()!==""),r=n.length>0?oE(n[0]):[],i=r.length>=2,u=i?r:uE,s=i||n.length>0&&n[0].includes("展现量")?1:0,o=u.filter(v=>v!=="日期"),c=o.length,f=[];l.forEach((v,g)=>{const E=g+s;if(E>=n.length)return;const _=n[E];let w=_.split(/[\r\n]+/).map(S=>S.trim()).filter(S=>S!=="");w.length<c&&(w=dE(_));const C=S=>w.length===c*2?w[S*2]??"":w[S]??"",M={};M[Pa("日期")]=v,o.forEach((S,T)=>{const A=C(T),k=cE(A),D=Pa(S);M[D]=k}),f.push(M)});const m=u.filter(v=>{const g=Pa(v);return f.some(E=>{const _=E[g];return _!==void 0&&String(_).trim()!==""})}),p=`| ${m.join(" | ")} |`,y=`| ${m.map(()=>"---").join(" | ")} |`,h=f.map(v=>`| ${m.map(E=>{const _=Pa(E);return v[_]??"-"}).join(" | ")} |`);return{markdown:[p,y,...h].join(`
|
|
75
|
+
`),jsonData:f}},Zs=e=>{if(!e)return"";const t=e.trim().split(`
|
|
76
|
+
`);if(t.length<2)return Da(e);const a=t[1],n=/^\|[\s-|]+\|$/.test(a.trim());if(!a||!n)return Da(e);const i=t[0].split("|").map(f=>f.trim()).filter(f=>f!==""),u=t.slice(2).map(f=>f.split("|").map(m=>m.trim()).filter((m,p,y)=>p>0&&p<y.length)),s="border:1px solid #d9d9d9;padding:8px 12px;background-color:#fafafa;font-weight:600;text-align:left;white-space:nowrap;",o="border:1px solid #d9d9d9;padding:6px 12px;text-align:left;white-space:nowrap;";let c='<div style="overflow-x:auto;max-width:100%;">';return c+='<table style="border-collapse:collapse;width:100%;font-size:12px;margin:8px 0;">',c+="<thead><tr>",i.forEach(f=>{c+=`<th style="${s}">${Da(f)}</th>`}),c+="</tr></thead>",c+="<tbody>",u.forEach(f=>{c+="<tr>",i.forEach((m,p)=>{const y=f[p]||"-";c+=`<td style="${o}">${Da(y)}</td>`}),c+="</tr>"}),c+="</tbody></table></div>",c},eo=e=>{const t=[],a=e.querySelector("thead tr");if(!a)return t;const l=[];return a.querySelectorAll("th").forEach(r=>{l.push(r.textContent?.trim()||"")}),e.querySelectorAll("tbody tr").forEach(r=>{const i={};r.querySelectorAll("td").forEach((s,o)=>{const c=l[o];if(c==null)return;const f=Pa(c),m=s.textContent?.trim()||"";i[f]=m==="-"?"":m}),Object.keys(i).length>0&&t.push(i)}),t},fE=e=>async t=>{const a=Js(t.text);return e&&e(a.jsonData),{modules:[{title:"推广分析表格",content:Zs(a.markdown),markdown:a.markdown}]}},pE=(e,t,a)=>{const l=parseFloat(String(e.get("grossProfitMargin")||"0"))||0,n=parseFloat(String(e.get("refundRate")||"0"))||0;let r=[];if(t){const i=eo(t);i.length>0&&(r=i)}return r.length===0&&a&&a.length>0&&(r=a),{grossProfitMargin:l,refundRate:n,tableData:r}},hE={algorithm:ce.theme.defaultAlgorithm,token:{colorPrimary:"#3b82f6",colorSuccess:"#10b981",colorWarning:"#f59e0b",colorError:"#ef4444",colorInfo:"#3b82f6",colorBgBase:"#ffffff",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgLayout:"#f8fafc",colorTextBase:"#1e293b",colorText:"#1e293b",colorTextSecondary:"#64748b",colorTextTertiary:"#94a3b8",colorTextQuaternary:"#cbd5e1",colorBorder:"#e2e8f0",colorBorderSecondary:"#f1f5f9",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",boxShadowSecondary:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",borderRadius:8,borderRadiusLG:12,borderRadiusSM:6,fontFamily:"Inter, system-ui, Arial, sans-serif",fontSize:14,fontSizeLG:16,fontSizeSM:12,padding:16,paddingLG:24,paddingSM:12,paddingXS:8,controlHeight:32,controlHeightLG:40,controlHeightSM:24},components:{Button:{borderRadius:8,controlHeight:32,fontWeight:500},Card:{borderRadiusLG:12,boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"},Input:{borderRadius:8,controlHeight:32},Table:{borderRadiusLG:8,headerBg:"#f8fafc",headerColor:"#374151"}}};ge.AdvancedTable=wr,ge.AppModal=Tr,ge.BackButton=Ar,ge.Button=Er,ge.Card=yr,ge.DynamicInput=Xs,ge.DynamicTextArea=Ks,ge.EmptyAndSpin=Sr,ge.HEADER_TO_FIELD=ta,ge.LinkButton=_r,ge.PageTable=xr,ge.RichTextEditor=Ys,ge.VideoCard=ur,ge.VirtualTable=js,ge.Waterfall=Qs,ge.XcIcon=Cr,ge.buildPromotionSendPayload=pE,ge.createMarkdownAnalyze=fE,ge.escapeHtml=Da,ge.extractTableDataFromHtml=eo,ge.lightTheme=hE,ge.parsePromotionTableMarkdown=Js,ge.renderMarkdownToHtml=Zs,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
|
|
77
77
|
//# sourceMappingURL=index.umd.js.map
|