bi-components-library 1.2.44 → 1.2.46
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 +3075 -3098
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +37 -37
- 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(Se,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):(Se=typeof globalThis<"u"?globalThis:Se||self,q(Se.SealSeekBIComponents={},Se.React,Se.React,Se.antd,Se.AntdIcons,Se.ReactDOM))})(this,function(Se,q,N,pe,mt,Tt){"use strict";const kr=({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(pe.Button,{...l,type:n(e),loading:t,ghost:e==="ghost",children:a})};kr.__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 Nr=({title:e,children:t,bordered:a=!0,hoverable:l=!1,size:n="default",...r})=>q.jsx(pe.Card,{...r,title:e,bordered:a,hoverable:l,size:n,children:t});Nr.__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 Ir=({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(pe.Modal,{...t,footer:a})};Ir.__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 Lr=({scrollX:e,showPagination:t=!0,defaultPageSize:a=10,...l})=>q.jsx(pe.Table,{...l,scroll:{x:e||"max-content",y:"50vh"},pagination:t?{hideOnSinglePage:!0,showSizeChanger:!0,showQuickJumper:!0,defaultPageSize:a,...l.pagination}:!1});Lr.__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 Lo=mt.createFromIconfontCN({scriptUrl:["//at.alicdn.com/t/c/font_5037819_a72xy7yjoj.js"]}),Or=({name:e,size:t,color:a,style:l,...n})=>{const r={fontSize:t,color:a,...l};return q.jsx(Lo,{...n,type:e,style:r})};Or.__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 Dr=({loading:e,description:t="暂无数据",className:a,emptyChildren:l,loadingText:n,emptyImage:r})=>e?q.jsxs(pe.Flex,{className:`pt-10 w-full ${a||""}`,align:"center",justify:"center",vertical:!0,children:[q.jsx(pe.Spin,{size:"large"}),n&&q.jsx("div",{className:"mt-4 text-gray-500",children:n})]}):q.jsx(pe.Flex,{className:`pt-10 w-full ${a||""}`,align:"center",justify:"center",children:q.jsx(pe.Empty,{image:r,description:t,imageStyle:{height:180},children:l})});Dr.__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 Pr=({onClick:e,showText:t=!1,className:a,size:l="small",type:n="default"})=>q.jsx(pe.Button,{size:l,type:n,icon:q.jsx(mt.LeftOutlined,{}),className:`cursor-pointer ${a||""}`,onClick:e,children:t&&"返回"});Pr.__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 Mr=({removePadding:e=!0,className:t,...a})=>{const l=e?`px-0 h-auto ${t||""}`:t;return q.jsx(pe.Button,{type:"link",...a,className:l,children:a.children})};Mr.__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:Oo}=pe.Select,Br=({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,d]=N.useState([]),[m,f]=N.useState(!1),[E,b]=N.useState({current:1,pageSize:r,total:0}),[h,v]=N.useState({}),[g,y]=N.useState({}),[S]=pe.Form.useForm(),_=N.useRef(E);_.current=E;const w=N.useRef(s);w.current=s;const P=N.useRef(!1),L=N.useMemo(()=>e.map(I=>{const{sortable:C,render:B,...$}=I;return{...$,sorter:C?!0:void 0,render:B||(F=>F)}}),[e]),T=N.useCallback(async(I={})=>{if(t){f(!0);try{const C={page:_.current.current,pageSize:_.current.pageSize,sortField:g.field,sortOrder:g.order,searchParams:{...h,...w.current},...I},B=await t(C);B.success&&(d(B.data),b($=>({...$,total:B.total,current:C.page||$.current})))}catch(C){console.error("加载数据失败:",C)}finally{f(!1)}}},[t,g,h]),A=N.useCallback(I=>{v(I),b(C=>({...C,current:1}))},[]),x=N.useCallback(()=>{S.resetFields(),v({}),b(I=>({...I,current:1}))},[S]),k=N.useCallback(()=>{T()},[T]),D=N.useCallback((I,C,B)=>{const $={current:I.current||1,pageSize:I.pageSize||r,total:I.total||0},F={field:B?.field,order:B?.order};b($),y(F)},[r]);return N.useEffect(()=>{const I=Object.keys(s).length>0;(u&&!P.current||I)&&(T(),P.current=!0)},[u,s,T]),q.jsxs("div",{children:[l&&a.length>0&&q.jsx(pe.Card,{size:"small",style:{marginBottom:16},children:q.jsxs(pe.Form,{form:S,layout:"inline",onFinish:A,initialValues:a.reduce((I,C)=>(C.defaultValue!==void 0&&(I[C.key]=C.defaultValue),I),{}),children:[a.map(I=>q.jsx(pe.Form.Item,{name:I.key,label:I.label,children:I.type==="input"?q.jsx(pe.Input,{placeholder:I.placeholder||`请输入${I.label}`,style:{width:200}}):q.jsx(pe.Select,{placeholder:I.placeholder||`请选择${I.label}`,style:{width:200},allowClear:!0,children:I.options?.map(C=>q.jsx(Oo,{value:C.value,children:C.label},C.value))})},I.key)),q.jsx(pe.Form.Item,{children:q.jsxs(pe.Space,{children:[q.jsx(pe.Button,{type:"primary",htmlType:"submit",icon:q.jsx(mt.SearchOutlined,{}),children:"查询"}),q.jsx(pe.Button,{onClick:x,children:"重置"}),n&&q.jsx(pe.Button,{icon:q.jsx(mt.ReloadOutlined,{}),onClick:k,children:"刷新"})]})})]})}),q.jsx(pe.Table,{...o,columns:L,dataSource:c,loading:m,pagination:{...E,showSizeChanger:!0,showQuickJumper:!0,showTotal:(I,C)=>`第 ${C[0]}-${C[1]} 条/共 ${I} 条`,pageSizeOptions:i},onChange:D,scroll:{x:"max-content",y:"50vh"}})]})};Br.__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 He=e=>e==="multi-variable"||e==="multi-variable-select",Do=({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=N.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),[s,o]=N.useState(i||void 0),[c,d]=N.useState(64),m=N.useRef(null),f=h=>{o(h),e.setAttribute("data-value",h),t(a,h)};N.useEffect(()=>{o(i||void 0)},[i]);const E=N.useCallback(()=>{if(s!=null&&s!==""){const h=u.find(v=>String(v.value)===String(s));return h?typeof h.label=="string"?h.label:String(h.label??s):String(s)}return l||"请选择"},[s,u,l]),b=N.useCallback(()=>{const h=m.current;if(!h)return;const v=h.querySelector(".ant-select-selection-item"),g=h.querySelector(".ant-select-selection-placeholder"),y=v||g,S=(y?.textContent||"").trim()||E(),_=h.querySelector(".ant-select-selector"),w=y||_||h,P=window.getComputedStyle(w),L=y?P.fontSize:"16px",T=P.fontFamily||"sans-serif",A=P.fontWeight||"400",k=`${P.fontStyle||"normal"} ${A} ${L} ${T}`,I=document.createElement("canvas").getContext("2d"),C=I?Math.ceil((I.font=k,I.measureText(S).width||0)):0;let B=0;if(_){const G=window.getComputedStyle(_);B=(Number.parseFloat(G.paddingLeft)||0)+(Number.parseFloat(G.paddingRight)||0)}const $=h.querySelector(".ant-select-arrow"),F=$?Math.ceil($.getBoundingClientRect().width):12,z=h.querySelector(".ant-select-clear");let O=0;if(z){const G=window.getComputedStyle(z);G.display!=="none"&&G.visibility!=="hidden"&&(O=Math.ceil(z.getBoundingClientRect().width))}const W=Math.max(36,C+B+F+O+6);d(G=>G===W?G:W)},[E]);return N.useLayoutEffect(()=>{const h=window.requestAnimationFrame(()=>{b()}),v=window.setTimeout(()=>{b()},60);return()=>{window.cancelAnimationFrame(h),window.clearTimeout(v)}},[b]),N.useEffect(()=>{if(!("fonts"in document))return;let h=!1;const v=document.fonts;if(v?.ready)return v.ready.then(()=>{h||b()}),()=>{h=!0}},[b]),Tt.createPortal(q.jsx("div",{className:"rte-select-wrapper",contentEditable:!1,ref:m,style:{display:"inline-block",width:c},children:q.jsx(pe.Select,{value:s,onChange:f,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)},Po=e=>{const[t,a]=N.useState([]);return N.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(Do,{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 d=c;(d.classList?.contains("rte-select-host")||d.querySelector?.(".rte-select-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-select-host")||d.querySelector?.(".rte-select-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},Mo=({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=N.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),[s,o]=N.useState(i||void 0),[c,d]=N.useState(""),[m,f]=N.useState(null),[E,b]=N.useState(64),h=N.useRef(null),v=N.useMemo(()=>{const T=[...u];return m&&!u.some(A=>A.value===m)&&T.unshift({label:m,value:m}),T},[u,m]),g=N.useMemo(()=>{const T=c.trim();if(!T)return v;const A=T.toLowerCase(),x=v.filter(D=>D.label.toLowerCase().includes(A)||D.value.toLowerCase().includes(A));return v.some(D=>D.label===T||D.value===T)?x:[{label:T,value:T,isCustom:!0},...x]},[v,c]),y=T=>{if(T==null)return;u.some(x=>x.value===T)?m&&f(null):f(T),o(T),d(""),e.setAttribute("data-value",T),t(a,T)},S=T=>{d(T)},_=T=>{if(T.key==="Enter"&&c.trim()){T.preventDefault(),T.stopPropagation();const A=c.trim(),x=u.find(k=>k.label===A||k.value===A);x?y(x.value):(f(A),o(A),d(""),e.setAttribute("data-value",A),t(a,A))}},w=()=>{f(null),o(void 0),d(""),e.setAttribute("data-value",""),t(a,"")};N.useEffect(()=>{o(i||void 0)},[i]);const P=N.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]),L=N.useCallback(()=>{const T=h.current;if(!T)return;const A=T.querySelector(".ant-select-selection-item"),x=T.querySelector(".ant-select-selection-placeholder"),k=A||x,D=(k?.textContent||"").trim()||P(),I=T.querySelector(".ant-select-selector"),C=k||I||T,B=window.getComputedStyle(C),$=k?B.fontSize:"16px",F=B.fontFamily||"sans-serif",z=B.fontWeight||"400",W=`${B.fontStyle||"normal"} ${z} ${$} ${F}`,R=document.createElement("canvas").getContext("2d"),K=R?Math.ceil((R.font=W,R.measureText(D).width||0)):0;let re=0;if(I){const he=window.getComputedStyle(I);re=(Number.parseFloat(he.paddingLeft)||0)+(Number.parseFloat(he.paddingRight)||0)}const le=T.querySelector(".ant-select-arrow"),Y=le?Math.ceil(le.getBoundingClientRect().width):12,ae=T.querySelector(".ant-select-clear");let ce=0;if(ae){const he=window.getComputedStyle(ae);he.display!=="none"&&he.visibility!=="hidden"&&(ce=Math.ceil(ae.getBoundingClientRect().width))}const ge=Math.min(240,Math.max(80,K+re+Y+ce+4));b(he=>he===ge?he:ge)},[P]);return N.useLayoutEffect(()=>{const T=window.requestAnimationFrame(()=>{L()}),A=window.setTimeout(()=>{L()},60);return()=>{window.cancelAnimationFrame(T),window.clearTimeout(A)}},[L]),N.useEffect(()=>{if(!("fonts"in document))return;let T=!1;const A=document.fonts;if(A?.ready)return A.ready.then(()=>{T||L()}),()=>{T=!0}},[L]),Tt.createPortal(q.jsx("div",{className:`rte-searchable-select-wrapper ${s?"rte-searchable-has-value":""}`,contentEditable:!1,ref:h,style:{display:"inline-block",width:E},children:q.jsx(pe.Select,{showSearch:!0,value:s,searchValue:c,onChange:y,onSearch:S,onClear:w,onInputKeyDown:_,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)},Bo=e=>{const[t,a]=N.useState([]);return N.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(Mo,{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 d=c;(d.classList?.contains("rte-searchable-select-host")||d.querySelector?.(".rte-searchable-select-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-searchable-select-host")||d.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},Fo=({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=N.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),u=N.useCallback(w=>w?w.split("-"):[],[]),[s,o]=N.useState(()=>u(r)),[c,d]=N.useState(100),[m,f]=N.useState(0),E=N.useRef(u(r)),b=N.useRef(null),h=s.length>=2,v=w=>{o(w),E.current=w;const P=w.join("-");e.setAttribute("data-value",P),t(a,P)},g=w=>{if(!w||w.length===0){v([]);return}w.length<2||v(w.map(String))},y=w=>{w||(o(E.current),f(P=>P+1))};N.useEffect(()=>{o(u(r))},[r,u]);const S=N.useCallback(()=>s.length>=2?s.join("-"):l||"请选择省市区",[s,l]),_=N.useCallback(()=>{const w=b.current;if(!w)return;const P=S(),L=w.querySelector(".ant-select-selector"),T=w.querySelector(".ant-select-selection-item")||w.querySelector(".ant-select-selection-placeholder"),A=T||L||w,x=window.getComputedStyle(A),k=T?x.fontSize:"16px",D=x.fontFamily||"sans-serif",I=x.fontWeight||"400",B=`${x.fontStyle||"normal"} ${I} ${k} ${D}`,F=document.createElement("canvas").getContext("2d"),z=F?Math.ceil((F.font=B,F.measureText(P).width||0)):0;let O=0;if(L){const R=window.getComputedStyle(L);O=(Number.parseFloat(R.paddingLeft)||0)+(Number.parseFloat(R.paddingRight)||0)}const G=Math.max(80,z+O+16+10);d(R=>R===G?R:G)},[S]);return N.useLayoutEffect(()=>{const w=window.requestAnimationFrame(()=>{_()}),P=window.setTimeout(()=>{_()},60);return()=>{window.cancelAnimationFrame(w),window.clearTimeout(P)}},[_]),N.useEffect(()=>{if(!("fonts"in document))return;let w=!1;const P=document.fonts;if(P?.ready)return P.ready.then(()=>{w||_()}),()=>{w=!0}},[_]),Tt.createPortal(q.jsx("div",{className:"rte-cascader-wrapper",contentEditable:!1,ref:b,"data-has-value":h?"true":"false",style:{display:"inline-block",width:c},children:q.jsx(pe.Cascader,{value:h?s:void 0,onChange:g,onDropdownVisibleChange:y,options:i,placeholder:l||"请选择省市区",style:{width:"100%"},size:"small",allowClear:!0,changeOnSelect:!0,showSearch:{filter:(w,P)=>P.some(L=>L.label.toLowerCase().includes(w.toLowerCase()))},popupClassName:"rte-cascader-dropdown",getPopupContainer:()=>document.body,displayRender:w=>w.join("-"),suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})},m)}),e)},Ro=e=>{const[t,a]=N.useState([]);return N.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(Fo,{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 d=c;(d.classList?.contains("rte-cascader-host")||d.querySelector?.(".rte-cascader-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-cascader-host")||d.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 Ho(e){if(!e)return"";try{return decodeURIComponent(e)}catch{return e}}function $o(e){if(!e)return"";try{return encodeURIComponent(e)}catch{return e}}function Uo(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 f of u){const E=i.measureText(f||" ").width||0;s=Math.max(s,E)}const o=Number.parseFloat(a),c=Number.isFinite(o)?o:0,d=u.reduce((f,E)=>f.length>=E.length?f:E,""),m=c>0?c*Math.max(0,(d||"").length-1):0;return Math.ceil(s+m+l+n)}const
|
|
3
|
-
`);N.useEffect(()=>{s(i),o.current=i},[i]),N.useEffect(()=>{o.current=u},[u]),N.useEffect(()=>{e.classList.toggle("rte-variable-multiline",h)},[e,h]);const v=N.useCallback(()=>{const S=f.current;if(!S)return;const _=S.querySelector("textarea");if(!_)return;const w=window.getComputedStyle(_),P=w.fontStyle||"normal",L=w.fontWeight||"400",T=w.fontSize||"16px",A=w.fontFamily||"sans-serif",x=`${P} ${L} ${T} ${A}`,k=Number.parseFloat(w.paddingLeft)||0,D=Number.parseFloat(w.paddingRight)||0,I=(u&&u.length>0?u:l)||" ",C=
|
|
1
|
+
(function(Se,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):(Se=typeof globalThis<"u"?globalThis:Se||self,q(Se.SealSeekBIComponents={},Se.React,Se.React,Se.antd,Se.AntdIcons,Se.ReactDOM))})(this,function(Se,q,N,fe,bt,Tt){"use strict";const Nr=({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(fe.Button,{...l,type:n(e),loading:t,ghost:e==="ghost",children:a})};Nr.__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 Ir=({title:e,children:t,bordered:a=!0,hoverable:l=!1,size:n="default",...r})=>q.jsx(fe.Card,{...r,title:e,bordered:a,hoverable:l,size:n,children:t});Ir.__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 Lr=({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(fe.Modal,{...t,footer:a})};Lr.__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 Or=({scrollX:e,showPagination:t=!0,defaultPageSize:a=10,...l})=>q.jsx(fe.Table,{...l,scroll:{x:e||"max-content",y:"50vh"},pagination:t?{hideOnSinglePage:!0,showSizeChanger:!0,showQuickJumper:!0,defaultPageSize:a,...l.pagination}:!1});Or.__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 Do=bt.createFromIconfontCN({scriptUrl:["//at.alicdn.com/t/c/font_5037819_a72xy7yjoj.js"]}),Dr=({name:e,size:t,color:a,style:l,...n})=>{const r={fontSize:t,color:a,...l};return q.jsx(Do,{...n,type:e,style:r})};Dr.__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 Pr=({loading:e,description:t="暂无数据",className:a,emptyChildren:l,loadingText:n,emptyImage:r})=>e?q.jsxs(fe.Flex,{className:`pt-10 w-full ${a||""}`,align:"center",justify:"center",vertical:!0,children:[q.jsx(fe.Spin,{size:"large"}),n&&q.jsx("div",{className:"mt-4 text-gray-500",children:n})]}):q.jsx(fe.Flex,{className:`pt-10 w-full ${a||""}`,align:"center",justify:"center",children:q.jsx(fe.Empty,{image:r,description:t,imageStyle:{height:180},children:l})});Pr.__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 Mr=({onClick:e,showText:t=!1,className:a,size:l="small",type:n="default"})=>q.jsx(fe.Button,{size:l,type:n,icon:q.jsx(bt.LeftOutlined,{}),className:`cursor-pointer ${a||""}`,onClick:e,children:t&&"返回"});Mr.__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 Br=({removePadding:e=!0,className:t,...a})=>{const l=e?`px-0 h-auto ${t||""}`:t;return q.jsx(fe.Button,{type:"link",...a,className:l,children:a.children})};Br.__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:Po}=fe.Select,Fr=({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,d]=N.useState([]),[m,f]=N.useState(!1),[E,b]=N.useState({current:1,pageSize:r,total:0}),[h,v]=N.useState({}),[g,y]=N.useState({}),[S]=fe.Form.useForm(),_=N.useRef(E);_.current=E;const w=N.useRef(s);w.current=s;const P=N.useRef(!1),L=N.useMemo(()=>e.map(I=>{const{sortable:C,render:B,...$}=I;return{...$,sorter:C?!0:void 0,render:B||(F=>F)}}),[e]),T=N.useCallback(async(I={})=>{if(t){f(!0);try{const C={page:_.current.current,pageSize:_.current.pageSize,sortField:g.field,sortOrder:g.order,searchParams:{...h,...w.current},...I},B=await t(C);B.success&&(d(B.data),b($=>({...$,total:B.total,current:C.page||$.current})))}catch(C){console.error("加载数据失败:",C)}finally{f(!1)}}},[t,g,h]),A=N.useCallback(I=>{v(I),b(C=>({...C,current:1}))},[]),x=N.useCallback(()=>{S.resetFields(),v({}),b(I=>({...I,current:1}))},[S]),k=N.useCallback(()=>{T()},[T]),D=N.useCallback((I,C,B)=>{const $={current:I.current||1,pageSize:I.pageSize||r,total:I.total||0},F={field:B?.field,order:B?.order};b($),y(F)},[r]);return N.useEffect(()=>{const I=Object.keys(s).length>0;(u&&!P.current||I)&&(T(),P.current=!0)},[u,s,T]),q.jsxs("div",{children:[l&&a.length>0&&q.jsx(fe.Card,{size:"small",style:{marginBottom:16},children:q.jsxs(fe.Form,{form:S,layout:"inline",onFinish:A,initialValues:a.reduce((I,C)=>(C.defaultValue!==void 0&&(I[C.key]=C.defaultValue),I),{}),children:[a.map(I=>q.jsx(fe.Form.Item,{name:I.key,label:I.label,children:I.type==="input"?q.jsx(fe.Input,{placeholder:I.placeholder||`请输入${I.label}`,style:{width:200}}):q.jsx(fe.Select,{placeholder:I.placeholder||`请选择${I.label}`,style:{width:200},allowClear:!0,children:I.options?.map(C=>q.jsx(Po,{value:C.value,children:C.label},C.value))})},I.key)),q.jsx(fe.Form.Item,{children:q.jsxs(fe.Space,{children:[q.jsx(fe.Button,{type:"primary",htmlType:"submit",icon:q.jsx(bt.SearchOutlined,{}),children:"查询"}),q.jsx(fe.Button,{onClick:x,children:"重置"}),n&&q.jsx(fe.Button,{icon:q.jsx(bt.ReloadOutlined,{}),onClick:k,children:"刷新"})]})})]})}),q.jsx(fe.Table,{...o,columns:L,dataSource:c,loading:m,pagination:{...E,showSizeChanger:!0,showQuickJumper:!0,showTotal:(I,C)=>`第 ${C[0]}-${C[1]} 条/共 ${I} 条`,pageSizeOptions:i},onChange:D,scroll:{x:"max-content",y:"50vh"}})]})};Fr.__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 Ue=e=>e==="multi-variable"||e==="multi-variable-select",Mo=({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=N.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),[s,o]=N.useState(i||void 0),[c,d]=N.useState(64),m=N.useRef(null),f=h=>{o(h),e.setAttribute("data-value",h),t(a,h)};N.useEffect(()=>{o(i||void 0)},[i]);const E=N.useCallback(()=>{if(s!=null&&s!==""){const h=u.find(v=>String(v.value)===String(s));return h?typeof h.label=="string"?h.label:String(h.label??s):String(s)}return l||"请选择"},[s,u,l]),b=N.useCallback(()=>{const h=m.current;if(!h)return;const v=h.querySelector(".ant-select-selection-item"),g=h.querySelector(".ant-select-selection-placeholder"),y=v||g,S=(y?.textContent||"").trim()||E(),_=h.querySelector(".ant-select-selector"),w=y||_||h,P=window.getComputedStyle(w),L=y?P.fontSize:"16px",T=P.fontFamily||"sans-serif",A=P.fontWeight||"400",k=`${P.fontStyle||"normal"} ${A} ${L} ${T}`,I=document.createElement("canvas").getContext("2d"),C=I?Math.ceil((I.font=k,I.measureText(S).width||0)):0;let B=0;if(_){const G=window.getComputedStyle(_);B=(Number.parseFloat(G.paddingLeft)||0)+(Number.parseFloat(G.paddingRight)||0)}const $=h.querySelector(".ant-select-arrow"),F=$?Math.ceil($.getBoundingClientRect().width):12,z=h.querySelector(".ant-select-clear");let O=0;if(z){const G=window.getComputedStyle(z);G.display!=="none"&&G.visibility!=="hidden"&&(O=Math.ceil(z.getBoundingClientRect().width))}const W=Math.max(36,C+B+F+O+6);d(G=>G===W?G:W)},[E]);return N.useLayoutEffect(()=>{const h=window.requestAnimationFrame(()=>{b()}),v=window.setTimeout(()=>{b()},60);return()=>{window.cancelAnimationFrame(h),window.clearTimeout(v)}},[b]),N.useEffect(()=>{if(!("fonts"in document))return;let h=!1;const v=document.fonts;if(v?.ready)return v.ready.then(()=>{h||b()}),()=>{h=!0}},[b]),Tt.createPortal(q.jsx("div",{className:"rte-select-wrapper",contentEditable:!1,ref:m,style:{display:"inline-block",width:c},children:q.jsx(fe.Select,{value:s,onChange:f,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)},Bo=e=>{const[t,a]=N.useState([]);return N.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(Mo,{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 d=c;(d.classList?.contains("rte-select-host")||d.querySelector?.(".rte-select-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-select-host")||d.querySelector?.(".rte-select-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},Fo=({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=N.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),[s,o]=N.useState(i||void 0),[c,d]=N.useState(""),[m,f]=N.useState(null),[E,b]=N.useState(64),h=N.useRef(null),v=N.useMemo(()=>{const T=[...u];return m&&!u.some(A=>A.value===m)&&T.unshift({label:m,value:m}),T},[u,m]),g=N.useMemo(()=>{const T=c.trim();if(!T)return v;const A=T.toLowerCase(),x=v.filter(D=>D.label.toLowerCase().includes(A)||D.value.toLowerCase().includes(A));return v.some(D=>D.label===T||D.value===T)?x:[{label:T,value:T,isCustom:!0},...x]},[v,c]),y=T=>{if(T==null)return;u.some(x=>x.value===T)?m&&f(null):f(T),o(T),d(""),e.setAttribute("data-value",T),t(a,T)},S=T=>{d(T)},_=T=>{if(T.key==="Enter"&&c.trim()){T.preventDefault(),T.stopPropagation();const A=c.trim(),x=u.find(k=>k.label===A||k.value===A);x?y(x.value):(f(A),o(A),d(""),e.setAttribute("data-value",A),t(a,A))}},w=()=>{f(null),o(void 0),d(""),e.setAttribute("data-value",""),t(a,"")};N.useEffect(()=>{o(i||void 0)},[i]);const P=N.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]),L=N.useCallback(()=>{const T=h.current;if(!T)return;const A=T.querySelector(".ant-select-selection-item"),x=T.querySelector(".ant-select-selection-placeholder"),k=A||x,D=(k?.textContent||"").trim()||P(),I=T.querySelector(".ant-select-selector"),C=k||I||T,B=window.getComputedStyle(C),$=k?B.fontSize:"16px",F=B.fontFamily||"sans-serif",z=B.fontWeight||"400",W=`${B.fontStyle||"normal"} ${z} ${$} ${F}`,R=document.createElement("canvas").getContext("2d"),K=R?Math.ceil((R.font=W,R.measureText(D).width||0)):0;let re=0;if(I){const pe=window.getComputedStyle(I);re=(Number.parseFloat(pe.paddingLeft)||0)+(Number.parseFloat(pe.paddingRight)||0)}const le=T.querySelector(".ant-select-arrow"),Y=le?Math.ceil(le.getBoundingClientRect().width):12,ae=T.querySelector(".ant-select-clear");let ce=0;if(ae){const pe=window.getComputedStyle(ae);pe.display!=="none"&&pe.visibility!=="hidden"&&(ce=Math.ceil(ae.getBoundingClientRect().width))}const me=Math.min(240,Math.max(80,K+re+Y+ce+4));b(pe=>pe===me?pe:me)},[P]);return N.useLayoutEffect(()=>{const T=window.requestAnimationFrame(()=>{L()}),A=window.setTimeout(()=>{L()},60);return()=>{window.cancelAnimationFrame(T),window.clearTimeout(A)}},[L]),N.useEffect(()=>{if(!("fonts"in document))return;let T=!1;const A=document.fonts;if(A?.ready)return A.ready.then(()=>{T||L()}),()=>{T=!0}},[L]),Tt.createPortal(q.jsx("div",{className:`rte-searchable-select-wrapper ${s?"rte-searchable-has-value":""}`,contentEditable:!1,ref:h,style:{display:"inline-block",width:E},children:q.jsx(fe.Select,{showSearch:!0,value:s,searchValue:c,onChange:y,onSearch:S,onClear:w,onInputKeyDown:_,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)},Ro=e=>{const[t,a]=N.useState([]);return N.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(Fo,{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 d=c;(d.classList?.contains("rte-searchable-select-host")||d.querySelector?.(".rte-searchable-select-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-searchable-select-host")||d.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},Ho=({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=N.useMemo(()=>{try{return JSON.parse(n)}catch{return[]}},[n]),u=N.useCallback(w=>w?w.split("-"):[],[]),[s,o]=N.useState(()=>u(r)),[c,d]=N.useState(100),[m,f]=N.useState(0),E=N.useRef(u(r)),b=N.useRef(null),h=s.length>=2,v=w=>{o(w),E.current=w;const P=w.join("-");e.setAttribute("data-value",P),t(a,P)},g=w=>{if(!w||w.length===0){v([]);return}w.length<2||v(w.map(String))},y=w=>{w||(o(E.current),f(P=>P+1))};N.useEffect(()=>{o(u(r))},[r,u]);const S=N.useCallback(()=>s.length>=2?s.join("-"):l||"请选择省市区",[s,l]),_=N.useCallback(()=>{const w=b.current;if(!w)return;const P=S(),L=w.querySelector(".ant-select-selector"),T=w.querySelector(".ant-select-selection-item")||w.querySelector(".ant-select-selection-placeholder"),A=T||L||w,x=window.getComputedStyle(A),k=T?x.fontSize:"16px",D=x.fontFamily||"sans-serif",I=x.fontWeight||"400",B=`${x.fontStyle||"normal"} ${I} ${k} ${D}`,F=document.createElement("canvas").getContext("2d"),z=F?Math.ceil((F.font=B,F.measureText(P).width||0)):0;let O=0;if(L){const R=window.getComputedStyle(L);O=(Number.parseFloat(R.paddingLeft)||0)+(Number.parseFloat(R.paddingRight)||0)}const G=Math.max(80,z+O+16+10);d(R=>R===G?R:G)},[S]);return N.useLayoutEffect(()=>{const w=window.requestAnimationFrame(()=>{_()}),P=window.setTimeout(()=>{_()},60);return()=>{window.cancelAnimationFrame(w),window.clearTimeout(P)}},[_]),N.useEffect(()=>{if(!("fonts"in document))return;let w=!1;const P=document.fonts;if(P?.ready)return P.ready.then(()=>{w||_()}),()=>{w=!0}},[_]),Tt.createPortal(q.jsx("div",{className:"rte-cascader-wrapper",contentEditable:!1,ref:b,"data-has-value":h?"true":"false",style:{display:"inline-block",width:c},children:q.jsx(fe.Cascader,{value:h?s:void 0,onChange:g,onDropdownVisibleChange:y,options:i,placeholder:l||"请选择省市区",style:{width:"100%"},size:"small",allowClear:!0,changeOnSelect:!0,showSearch:{filter:(w,P)=>P.some(L=>L.label.toLowerCase().includes(w.toLowerCase()))},popupClassName:"rte-cascader-dropdown",getPopupContainer:()=>document.body,displayRender:w=>w.join("-"),suffixIcon:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang",style:{fontSize:"10px",color:"#7C3AED"}})},m)}),e)},$o=e=>{const[t,a]=N.useState([]);return N.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(Ho,{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 d=c;(d.classList?.contains("rte-cascader-host")||d.querySelector?.(".rte-cascader-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-cascader-host")||d.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 Uo(e){if(!e)return"";try{return decodeURIComponent(e)}catch{return e}}function qo(e){if(!e)return"";try{return encodeURIComponent(e)}catch{return e}}function zo(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 f of u){const E=i.measureText(f||" ").width||0;s=Math.max(s,E)}const o=Number.parseFloat(a),c=Number.isFinite(o)?o:0,d=u.reduce((f,E)=>f.length>=E.length?f:E,""),m=c>0?c*Math.max(0,(d||"").length-1):0;return Math.ceil(s+m+l+n)}const Vo=({host:e,onChange:t})=>{const a=e.dataset.key||"",l=e.dataset.placeholder||"",n=e.dataset.tooltip||"",r=e.dataset.allowNewline!=="0",i=N.useMemo(()=>Uo(e.dataset.value||""),[e]),[u,s]=N.useState(i),o=N.useRef(i),c=N.useMemo(()=>{const S=Number.parseFloat(e.dataset.estimatedWidth||"");return Number.isFinite(S)&&S>0?S:64},[e]),[d,m]=N.useState(c),f=N.useRef(null),E=(u||"").trim().length>0,b=!!n&&!E,h=(u||"").includes(`
|
|
3
|
+
`);N.useEffect(()=>{s(i),o.current=i},[i]),N.useEffect(()=>{o.current=u},[u]),N.useEffect(()=>{e.classList.toggle("rte-variable-multiline",h)},[e,h]);const v=N.useCallback(()=>{const S=f.current;if(!S)return;const _=S.querySelector("textarea");if(!_)return;const w=window.getComputedStyle(_),P=w.fontStyle||"normal",L=w.fontWeight||"400",T=w.fontSize||"16px",A=w.fontFamily||"sans-serif",x=`${P} ${L} ${T} ${A}`,k=Number.parseFloat(w.paddingLeft)||0,D=Number.parseFloat(w.paddingRight)||0,I=(u&&u.length>0?u:l)||" ",C=zo(I,x,w.letterSpacing||"0",k,D),$=Math.max(24,Math.min(600,C+2));m(F=>F===$?F:$)},[l,u]);N.useEffect(()=>{const S=f.current;if(!S||typeof ResizeObserver>"u")return;let _=0;const w=new ResizeObserver(()=>{_&&window.cancelAnimationFrame(_),_=window.requestAnimationFrame(()=>{t(a,o.current)})});return w.observe(S),()=>{_&&window.cancelAnimationFrame(_),w.disconnect()}},[a,t]),N.useLayoutEffect(()=>{const S=window.requestAnimationFrame(()=>{v()});return()=>{window.cancelAnimationFrame(S)}},[v]),N.useEffect(()=>{if(!("fonts"in document))return;let S=!1;const _=document.fonts;if(_?.ready)return _.ready.then(()=>{S||v()}),()=>{S=!0}},[v]);const g=S=>{const _=S.target.value??"";s(_),e.setAttribute("data-value",qo(_)),t(a,_)},y=S=>{S.key==="Enter"&&!r&&S.preventDefault()};return Tt.createPortal(q.jsxs("div",{className:`rte-variable-v2-wrapper ${b?"rte-variable-v2-with-icon":""}`,contentEditable:!1,ref:f,"data-placeholder":l,"data-has-value":E?"1":"0",style:{verticalAlign:"middle",width:h?"100%":d,lineHeight:"30px"},children:[q.jsx(fe.Input.TextArea,{value:u,onChange:g,onKeyDown:y,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 ${b?"":"hidden"}`,"data-variable-key":a,"data-tooltip":n}):null]}),e)},Go=e=>{const[t,a]=N.useState([]);return N.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(Vo,{host:s,onChange:()=>{const c=()=>{if(!e.current)return;const d=new Event("input",{bubbles:!0});e.current.dispatchEvent(d)};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(d=>{if(d.nodeType!==Node.ELEMENT_NODE)return;const m=d;(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 Yo(e,t=[]){N.useLayoutEffect(()=>{if(!e.current)return;const a=new Map,l=new Map,n=d=>{const m=d.value||d.placeholder||"",f=window.getComputedStyle(d),E=Number.parseFloat(f.paddingLeft)||0,b=Number.parseFloat(f.paddingRight)||0,h=document.createElement("span");h.style.cssText=`
|
|
4
4
|
position: absolute;
|
|
5
5
|
visibility: hidden;
|
|
6
6
|
white-space: nowrap;
|
|
@@ -10,68 +10,68 @@
|
|
|
10
10
|
letter-spacing: ${f.letterSpacing||"normal"};
|
|
11
11
|
padding-left: ${E}px;
|
|
12
12
|
padding-right: ${b}px;
|
|
13
|
-
`,h.textContent=m||"0",document.body.appendChild(h);const g=Math.max(24,Math.min(600,Math.ceil(h.offsetWidth)+2));return document.body.removeChild(h),g},r=d=>{const m=d.target;if(!m)return;let f=m.value;f=f.replace(/[^\d.]/g,"");const E=f.indexOf(".");E!==-1&&(f=f.slice(0,E+1)+f.slice(E+1).replace(/\./g,"")),E!==-1&&f.length-E-1>2&&(f=f.slice(0,E+3));const b=f.endsWith(".")||E!==-1&&f.length-E-1<2&&f.length-E-1>0;if(f!==""&&!b){const v=parseFloat(f);if(Number.isNaN(v))m.value="";else{const g=m.getAttribute("min"),y=m.getAttribute("max"),S=g!==null?parseFloat(g):0,_=y!==null?parseFloat(y):1/0;if(v===0&&0<S)m.value="";else{const w=Math.min(Math.max(v,S),_);m.value=E!==-1?w.toFixed(f.length-E-1):String(w)}}}else f===""?m.value="":m.value=f;m.style.width=`${n(m)}px`;const h=m.closest(".rte-number-input-wrap");h&&(h.dataset.hasValue=m.value?"1":"0")},i=d=>{const m=d.key;m==="Backspace"||m==="Delete"||m==="Tab"||m==="ArrowLeft"||m==="ArrowRight"||m==="ArrowUp"||m==="ArrowDown"||m==="Home"||m==="End"||m==="Enter"||d.ctrlKey||d.metaKey||/^[\d.]$/.test(m)||d.preventDefault()},u=()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="number-input"]').forEach(m=>{const f=m.closest(".rte-number-input-wrap");f&&(f.dataset.hasValue=m.value?"1":"0",f.dataset.placeholder===void 0&&(f.dataset.placeholder=m.placeholder||""));const E=document.activeElement===m,b=n(m),h=Number.parseFloat(m.style.width||""),v=Number.isFinite(h),g=v?Math.abs(h-b):1/0;m.dataset.rteWidthInited==="1"?!E&&(!v||g>8)&&(m.style.width=`${b}px`):(m.dataset.rteWidthInited="1",!E&&(!v||g>2)&&(m.style.width=`${b}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(d=>{let m=!1;d.forEach(f=>{f.type==="childList"&&f.addedNodes.forEach(E=>{if(E.nodeType===Node.ELEMENT_NODE){const b=E;b.matches&&(b.matches('[data-type="number-input"]')||b.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((d,m)=>{m.removeEventListener("input",d,!1)}),a.clear(),l.forEach((d,m)=>{m.removeEventListener("keydown",d,!1)}),l.clear()}},[e,...t])}function Go(e,t,a=[]){N.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)||s.getAttribute("data-report-url"))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 Yo="https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/website/kongzhuangtai.svg",Wo=({host:e,reportListFetch:t,onSelect:a,onGoGenerate:l,onViewReport:n,hideCurrentSessionReport:r})=>{const i=e.dataset.key||"",u=e.dataset.nodeType||"report-url",[s,o]=N.useState(!1),[c,d]=N.useState(!1),[m,f]=N.useState(null),[E,b]=N.useState(""),[h,v]=N.useState("bottomLeft"),[g,y]=N.useState(0),S=N.useCallback(async()=>{console.log("[RTE-REPORT] openDropdown entered",{key:i,nodeType:u});const x=e.closest('[data-type="variable"]');if(x){const k=x.getBoundingClientRect(),D=e.getBoundingClientRect();y(k.left-D.left);const I=240,C=window.innerHeight-k.bottom;v(C<I?"topLeft":"bottomLeft")}document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening",{detail:e})),o(!0),d(!0),console.log("[RTE-REPORT] before fetch",{key:i,nodeType:u});try{const k=await t({nodeKey:i,nodeType:u});console.log("[RTE-REPORT] after fetch",{key:i,tabs:k?.tabs?.length});const D=r?k.tabs.filter(C=>C.key!=="currentConversationReports"):k.tabs,I={...k,tabs:D};f(I),D.length>0&&b(D[0].key)}catch(k){console.warn("[RTE-REPORT] fetch threw",k)}finally{console.log("[RTE-REPORT] fetch finally",{key:i}),d(!1)}},[e,i,u,t,r]);N.useEffect(()=>{const x=e.closest('[data-type="variable"]');if(console.log("[RTE-REPORT] attach",{key:i,chipInDom:x?document.body.contains(x):!1,hostInDom:document.body.contains(e),hasReportUrl:x?.getAttribute("data-report-url")}),!x)return;const k=D=>{const I=D.target;if(console.log("[RTE-REPORT] chip mousedown",{key:i,open:s,hasReportUrl:x.getAttribute("data-report-url"),clickedClearIcon:!!I.closest(".rte-report-chip-clear-host")}),I.closest(".rte-report-chip-clear-host")){console.log("[RTE-REPORT] early-exit: clear icon");return}if(x.getAttribute("data-report-url")&&(D.preventDefault(),D.stopPropagation(),window.getSelection()?.removeAllRanges()),s){console.log("[RTE-REPORT] early-exit: already open");return}console.log("[RTE-REPORT] calling openDropdown"),S()};return x.addEventListener("mousedown",k,!0),()=>{console.log("[RTE-REPORT] detach",{key:i,chipInDom:document.body.contains(x),hostInDom:document.body.contains(e)}),x.removeEventListener("mousedown",k,!0)}},[e,s,S,i]),N.useEffect(()=>{const x=k=>{k.detail!==e&&o(!1)};return document.addEventListener("rte-report-dropdown-opening",x),()=>document.removeEventListener("rte-report-dropdown-opening",x)},[e]),N.useEffect(()=>{if(!s)return;const x=k=>{const D=k.target;e.closest('[data-type="variable"]')?.contains(D)||D.closest(".rte-report-dropdown-overlay")||o(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,e]);const _=N.useCallback(x=>{a(i,u,x),o(!1)},[i,u,a]),w=N.useCallback((x,k)=>{x.stopPropagation(),n?(n(k),o(!1)):window.open(k.viewUrl||k.url,"_blank")},[n]),P=m?.tabs.find(x=>x.key===E),L=N.useRef(null),T=N.useCallback(x=>{const k=x.currentTarget;k.classList.add("is-scrolling"),L.current&&window.clearTimeout(L.current),L.current=window.setTimeout(()=>{k.classList.remove("is-scrolling"),L.current=null},300)},[]),A=q.jsx("div",{className:"rte-report-dropdown-panel",onMouseDown:x=>x.preventDefault(),children:c?q.jsx("div",{className:"rte-report-dropdown-loading",children:q.jsx(pe.Spin,{size:"small"})}):m?q.jsxs(q.Fragment,{children:[m.tabs.length>1&&q.jsx("div",{className:"rte-report-dropdown-tab-outer",children:q.jsx("div",{className:"rte-report-dropdown-tab-inner",children:m.tabs.map(x=>q.jsx("div",{className:`rte-report-dropdown-tab-item${E===x.key?" active":""}`,onMouseDown:()=>b(x.key),children:x.label},x.key))})}),q.jsx("div",{className:"rte-report-dropdown-list",onScroll:T,children:!P||P.items.length===0?q.jsxs("div",{className:"rte-report-dropdown-empty",children:[q.jsx("img",{className:"rte-report-dropdown-empty-img",src:Yo,alt:""}),q.jsxs("div",{className:"rte-report-dropdown-empty-text",children:[q.jsx("span",{className:"rte-report-dropdown-empty-label",children:"暂无生成的报告"}),P?.agentType!=null&&l&&q.jsx("span",{className:"rte-report-dropdown-empty-link",onMouseDown:()=>{l(P.agentType),o(!1)},children:"去生成"})]})]}):P.items.map((x,k)=>q.jsxs("div",{className:"rte-report-dropdown-item",onMouseDown:()=>_(x),children:[q.jsx("span",{className:"rte-report-dropdown-item-name",title:x.name,children:x.name}),q.jsxs("span",{className:"rte-report-dropdown-item-action",onMouseDown:D=>{D.stopPropagation(),w(D,x)},children:[q.jsx("i",{className:"iconfont icon-chakanbaogao"}),"查看报告"]})]},`${x.url}-${k}`))})]}):null});return console.log("[RTE-REPORT] render",{key:i,open:s,loading:c,hasData:!!m,placement:h,offsetX:g,hostRect:e.getBoundingClientRect(),hostVisibility:getComputedStyle(e).visibility,hostDisplay:getComputedStyle(e).display}),Tt.createPortal(q.jsx("div",{className:"rte-report-dropdown-trigger-wrapper",contentEditable:!1,onClick:x=>{x.preventDefault(),x.stopPropagation()},children:q.jsx(pe.Popover,{content:A,trigger:[],open:s,placement:h,align:{offset:[g,h==="bottomLeft"?4:-4],overflow:{adjustX:!1,adjustY:!1}},autoAdjustOverflow:!1,getPopupContainer:()=>document.body,overlayClassName:"rte-report-dropdown-overlay",arrow:!1,children:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang rte-report-dropdown-icon "})})}),e)},jo=(e,t,a,l,n,r,i)=>{const[u,s]=N.useState([]),o=N.useRef(t),c=N.useRef(a),d=N.useRef(l),m=N.useRef(n),f=N.useRef(i);o.current=t,c.current=a,d.current=l,m.current=n,f.current=i;const E=N.useRef(new WeakSet),b=N.useCallback(()=>{const h=e.current;if(!h||!o.current){s([]);return}const v=h.querySelectorAll(".rte-report-dropdown-host"),g=[];v.forEach(y=>{const S=y,_=S.getAttribute("data-key");if(_){if(!E.current.has(S)){for(;S.firstChild;)S.removeChild(S.firstChild);E.current.add(S)}g.push(q.jsx(Wo,{host:S,reportListFetch:o.current,onSelect:c.current,onGoGenerate:d.current,onViewReport:m.current,hideCurrentSessionReport:f.current},`report-dropdown-${_}-${S.getAttribute("data-node-type")}`))}}),s(g)},[e]);return N.useEffect(()=>{if(!t)return;const h=e.current;if(!h)return;const v=new MutationObserver(g=>{let y=!1;for(const S of g)if(S.type==="childList"){let _=!1;if(S.addedNodes.forEach(w=>{if(w.nodeType===Node.ELEMENT_NODE){const P=w;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(_=!0)}}),S.removedNodes.forEach(w=>{if(w.nodeType===Node.ELEMENT_NODE){const P=w;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(_=!0)}}),_){y=!0;break}}y&&b()});return v.observe(h,{childList:!0,subtree:!0}),()=>v.disconnect()},[e,t,b]),N.useEffect(()=>{if(!t)return;const h=requestAnimationFrame(()=>{b()});return()=>cancelAnimationFrame(h)},[t,b,r]),u},Xo=({host:e,onClear:t})=>{const a=N.useCallback(l=>{l.preventDefault(),l.stopPropagation();const n=e.closest('[data-type="variable"]');n&&t(n)},[e,t]);return Tt.createPortal(q.jsx("span",{className:"rte-report-chip-clear-icon",contentEditable:!1,onMouseDown:a,title:"清除",children:q.jsx(mt.CloseCircleFilled,{})}),e)},Ko=(e,t,a)=>{const[l,n]=N.useState([]),r=N.useRef(t);r.current=t;const i=N.useCallback(o=>{r.current(o)},[]),u=N.useRef(new WeakSet),s=N.useCallback(()=>{const o=e.current;if(!o){n([]);return}const c=o.querySelectorAll(".rte-report-chip-clear-host"),d=[];c.forEach(m=>{const f=m;if(!u.current.has(f)){for(;f.firstChild;)f.removeChild(f.firstChild);u.current.add(f)}const E=f.getAttribute("data-key")||"",b=f.getAttribute("data-node-type")||"",h=f.getAttribute("data-multi-key")||"";d.push(q.jsx(Xo,{host:f,onClear:i},`report-clear-${h?`${h}:`:""}${E}-${b}`))}),n(d)},[e,i]);return N.useEffect(()=>{const o=e.current;if(!o)return;const c=new MutationObserver(d=>{let m=!1;for(const f of d){if(f.type!=="childList")continue;const E=b=>{if(b.nodeType!==Node.ELEMENT_NODE)return!1;const h=b;return h.classList?.contains("rte-report-chip-clear-host")||!!h.querySelector?.(".rte-report-chip-clear-host")};if(f.addedNodes.forEach(b=>{E(b)&&(m=!0)}),f.removedNodes.forEach(b=>{E(b)&&(m=!0)}),m)break}m&&s()});return c.observe(o,{childList:!0,subtree:!0}),()=>c.disconnect()},[e,s]),N.useEffect(()=>{const o=requestAnimationFrame(()=>{s()});return()=>cancelAnimationFrame(o)},[s,a]),l};function Qo(e){const t=e.dataset.key||"",a=e.getAttribute("data-node-type")||"",l=e.dataset.multiKey||"";e.removeAttribute("data-report-url"),e.removeAttribute("data-report-name"),e.classList.remove("rte-report-name-chip"),e.contentEditable="true";const n=e.querySelector(".rte-report-dropdown-host");n?.parentNode&&n.parentNode.removeChild(n);const r=e.querySelector(".rte-report-chip-clear-host");for(r?.parentNode&&r.parentNode.removeChild(r);e.firstChild;)e.removeChild(e.firstChild);if(e.appendChild(document.createTextNode("")),e.classList.add("show-placeholder"),n)n.classList.remove("hidden","rte-report-dropdown-host-quiet"),n.style.display="",n.style.visibility="",e.appendChild(n);else{const i=document.createElement("span");i.contentEditable="false",i.className="rte-report-dropdown-host",i.dataset.key=t,i.dataset.nodeType=a,l&&(i.dataset.multiKey=l),e.appendChild(i)}return e.classList.add("rte-variable-with-icon"),{nodeKey:t,nodeType:a,multiKey:l}}function Hl(e){if(e.querySelector(".rte-report-chip-clear-host"))return;const t=document.createElement("span");t.contentEditable="false",t.className="rte-report-chip-clear-host";const a=e.dataset.key||"",l=e.getAttribute("data-node-type")||"",n=e.dataset.multiKey||"";t.dataset.key=a,l&&(t.dataset.nodeType=l),n&&(t.dataset.multiKey=n),e.appendChild(t)}function Jo(e,t,a=[]){const l=N.useRef(t);N.useEffect(()=>{l.current=t},[t]),N.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 Zo(e,t,a=[]){N.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 oe=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ze=e=>e?typeof e=="string"?e:JSON.stringify(e):"",ec=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))},Fr=e=>`\`\`\`
|
|
13
|
+
`,h.textContent=m||"0",document.body.appendChild(h);const g=Math.max(24,Math.min(600,Math.ceil(h.offsetWidth)+2));return document.body.removeChild(h),g},r=d=>{const m=d.target;if(!m)return;let f=m.value;f=f.replace(/[^\d.]/g,"");const E=f.indexOf(".");E!==-1&&(f=f.slice(0,E+1)+f.slice(E+1).replace(/\./g,"")),E!==-1&&f.length-E-1>2&&(f=f.slice(0,E+3));const b=f.endsWith(".")||E!==-1&&f.length-E-1<2&&f.length-E-1>0;if(f!==""&&!b){const v=parseFloat(f);if(Number.isNaN(v))m.value="";else{const g=m.getAttribute("min"),y=m.getAttribute("max"),S=g!==null?parseFloat(g):0,_=y!==null?parseFloat(y):1/0;if(v===0&&0<S)m.value="";else{const w=Math.min(Math.max(v,S),_);m.value=E!==-1?w.toFixed(f.length-E-1):String(w)}}}else f===""?m.value="":m.value=f;m.style.width=`${n(m)}px`;const h=m.closest(".rte-number-input-wrap");h&&(h.dataset.hasValue=m.value?"1":"0")},i=d=>{const m=d.key;m==="Backspace"||m==="Delete"||m==="Tab"||m==="ArrowLeft"||m==="ArrowRight"||m==="ArrowUp"||m==="ArrowDown"||m==="Home"||m==="End"||m==="Enter"||d.ctrlKey||d.metaKey||/^[\d.]$/.test(m)||d.preventDefault()},u=()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="number-input"]').forEach(m=>{const f=m.closest(".rte-number-input-wrap");f&&(f.dataset.hasValue=m.value?"1":"0",f.dataset.placeholder===void 0&&(f.dataset.placeholder=m.placeholder||""));const E=document.activeElement===m,b=n(m),h=Number.parseFloat(m.style.width||""),v=Number.isFinite(h),g=v?Math.abs(h-b):1/0;m.dataset.rteWidthInited==="1"?!E&&(!v||g>8)&&(m.style.width=`${b}px`):(m.dataset.rteWidthInited="1",!E&&(!v||g>2)&&(m.style.width=`${b}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(d=>{let m=!1;d.forEach(f=>{f.type==="childList"&&f.addedNodes.forEach(E=>{if(E.nodeType===Node.ELEMENT_NODE){const b=E;b.matches&&(b.matches('[data-type="number-input"]')||b.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((d,m)=>{m.removeEventListener("input",d,!1)}),a.clear(),l.forEach((d,m)=>{m.removeEventListener("keydown",d,!1)}),l.clear()}},[e,...t])}function Wo(e,t,a=[]){N.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)||s.getAttribute("data-report-url"))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 jo="https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/website/kongzhuangtai.svg",Xo=({host:e,reportListFetch:t,onSelect:a,onGoGenerate:l,onViewReport:n,hideCurrentSessionReport:r})=>{const i=e.dataset.key||"",u=e.dataset.nodeType||"report-url",[s,o]=N.useState(!1),[c,d]=N.useState(!1),[m,f]=N.useState(null),[E,b]=N.useState(""),[h,v]=N.useState("bottomLeft"),[g,y]=N.useState(0),S=N.useCallback(async()=>{console.log("[RTE-REPORT] openDropdown entered",{key:i,nodeType:u});const x=e.closest('[data-type="variable"]');if(x){const k=x.getBoundingClientRect(),D=e.getBoundingClientRect();y(k.left-D.left);const I=240,C=window.innerHeight-k.bottom;v(C<I?"topLeft":"bottomLeft")}document.dispatchEvent(new CustomEvent("rte-report-dropdown-opening",{detail:e})),o(!0),d(!0),console.log("[RTE-REPORT] before fetch",{key:i,nodeType:u});try{const k=await t({nodeKey:i,nodeType:u});console.log("[RTE-REPORT] after fetch",{key:i,tabs:k?.tabs?.length});const D=r?k.tabs.filter(C=>C.key!=="currentConversationReports"):k.tabs,I={...k,tabs:D};f(I),D.length>0&&b(D[0].key)}catch(k){console.warn("[RTE-REPORT] fetch threw",k)}finally{console.log("[RTE-REPORT] fetch finally",{key:i}),d(!1)}},[e,i,u,t,r]);N.useEffect(()=>{const x=e.closest('[data-type="variable"]');if(console.log("[RTE-REPORT] attach",{key:i,chipInDom:x?document.body.contains(x):!1,hostInDom:document.body.contains(e),hasReportUrl:x?.getAttribute("data-report-url")}),!x)return;const k=D=>{const I=D.target;if(console.log("[RTE-REPORT] chip mousedown",{key:i,open:s,hasReportUrl:x.getAttribute("data-report-url"),clickedClearIcon:!!I.closest(".rte-report-chip-clear-host")}),I.closest(".rte-report-chip-clear-host")){console.log("[RTE-REPORT] early-exit: clear icon");return}if(x.getAttribute("data-report-url")&&(D.preventDefault(),D.stopPropagation(),window.getSelection()?.removeAllRanges()),s){console.log("[RTE-REPORT] early-exit: already open");return}console.log("[RTE-REPORT] calling openDropdown"),S()};return x.addEventListener("mousedown",k,!0),()=>{console.log("[RTE-REPORT] detach",{key:i,chipInDom:document.body.contains(x),hostInDom:document.body.contains(e)}),x.removeEventListener("mousedown",k,!0)}},[e,s,S,i]),N.useEffect(()=>{const x=k=>{k.detail!==e&&o(!1)};return document.addEventListener("rte-report-dropdown-opening",x),()=>document.removeEventListener("rte-report-dropdown-opening",x)},[e]),N.useEffect(()=>{if(!s)return;const x=k=>{const D=k.target;e.closest('[data-type="variable"]')?.contains(D)||D.closest(".rte-report-dropdown-overlay")||o(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,e]);const _=N.useCallback(x=>{a(i,u,x),o(!1)},[i,u,a]),w=N.useCallback((x,k)=>{x.stopPropagation(),n?(n(k),o(!1)):window.open(k.viewUrl||k.url,"_blank")},[n]),P=m?.tabs.find(x=>x.key===E),L=N.useRef(null),T=N.useCallback(x=>{const k=x.currentTarget;k.classList.add("is-scrolling"),L.current&&window.clearTimeout(L.current),L.current=window.setTimeout(()=>{k.classList.remove("is-scrolling"),L.current=null},300)},[]),A=q.jsx("div",{className:"rte-report-dropdown-panel",onMouseDown:x=>x.preventDefault(),children:c?q.jsx("div",{className:"rte-report-dropdown-loading",children:q.jsx(fe.Spin,{size:"small"})}):m?q.jsxs(q.Fragment,{children:[m.tabs.length>1&&q.jsx("div",{className:"rte-report-dropdown-tab-outer",children:q.jsx("div",{className:"rte-report-dropdown-tab-inner",children:m.tabs.map(x=>q.jsx("div",{className:`rte-report-dropdown-tab-item${E===x.key?" active":""}`,onMouseDown:()=>b(x.key),children:x.label},x.key))})}),q.jsx("div",{className:"rte-report-dropdown-list",onScroll:T,children:!P||P.items.length===0?q.jsxs("div",{className:"rte-report-dropdown-empty",children:[q.jsx("img",{className:"rte-report-dropdown-empty-img",src:jo,alt:""}),q.jsxs("div",{className:"rte-report-dropdown-empty-text",children:[q.jsx("span",{className:"rte-report-dropdown-empty-label",children:"暂无生成的报告"}),P?.agentType!=null&&l&&q.jsx("span",{className:"rte-report-dropdown-empty-link",onMouseDown:()=>{l(P.agentType),o(!1)},children:"去生成"})]})]}):P.items.map((x,k)=>q.jsxs("div",{className:"rte-report-dropdown-item",onMouseDown:()=>_(x),children:[q.jsx("span",{className:"rte-report-dropdown-item-name",title:x.name,children:x.name}),q.jsxs("span",{className:"rte-report-dropdown-item-action",onMouseDown:D=>{D.stopPropagation(),w(D,x)},children:[q.jsx("i",{className:"iconfont icon-chakanbaogao"}),"查看报告"]})]},`${x.url}-${k}`))})]}):null});return console.log("[RTE-REPORT] render",{key:i,open:s,loading:c,hasData:!!m,placement:h,offsetX:g,hostRect:e.getBoundingClientRect(),hostVisibility:getComputedStyle(e).visibility,hostDisplay:getComputedStyle(e).display}),Tt.createPortal(q.jsx("div",{className:"rte-report-dropdown-trigger-wrapper",contentEditable:!1,onClick:x=>{x.preventDefault(),x.stopPropagation()},children:q.jsx(fe.Popover,{content:A,trigger:[],open:s,placement:h,align:{offset:[g,h==="bottomLeft"?4:-4],overflow:{adjustX:!1,adjustY:!1}},autoAdjustOverflow:!1,getPopupContainer:()=>document.body,overlayClassName:"rte-report-dropdown-overlay",arrow:!1,children:q.jsx("i",{className:"iconfont icon-qiehuan-xiayizhang rte-report-dropdown-icon "})})}),e)},Ko=(e,t,a,l,n,r,i)=>{const[u,s]=N.useState([]),o=N.useRef(t),c=N.useRef(a),d=N.useRef(l),m=N.useRef(n),f=N.useRef(i);o.current=t,c.current=a,d.current=l,m.current=n,f.current=i;const E=N.useRef(new WeakSet),b=N.useCallback(()=>{const h=e.current;if(!h||!o.current){s([]);return}const v=h.querySelectorAll(".rte-report-dropdown-host"),g=[];v.forEach(y=>{const S=y,_=S.getAttribute("data-key");if(_){if(!E.current.has(S)){for(;S.firstChild;)S.removeChild(S.firstChild);E.current.add(S)}g.push(q.jsx(Xo,{host:S,reportListFetch:o.current,onSelect:c.current,onGoGenerate:d.current,onViewReport:m.current,hideCurrentSessionReport:f.current},`report-dropdown-${_}-${S.getAttribute("data-node-type")}`))}}),s(g)},[e]);return N.useEffect(()=>{if(!t)return;const h=e.current;if(!h)return;const v=new MutationObserver(g=>{let y=!1;for(const S of g)if(S.type==="childList"){let _=!1;if(S.addedNodes.forEach(w=>{if(w.nodeType===Node.ELEMENT_NODE){const P=w;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(_=!0)}}),S.removedNodes.forEach(w=>{if(w.nodeType===Node.ELEMENT_NODE){const P=w;(P.classList?.contains("rte-report-dropdown-host")||P.querySelector?.(".rte-report-dropdown-host"))&&(_=!0)}}),_){y=!0;break}}y&&b()});return v.observe(h,{childList:!0,subtree:!0}),()=>v.disconnect()},[e,t,b]),N.useEffect(()=>{if(!t)return;const h=requestAnimationFrame(()=>{b()});return()=>cancelAnimationFrame(h)},[t,b,r]),u},Qo=({host:e,onClear:t})=>{const a=N.useCallback(l=>{l.preventDefault(),l.stopPropagation();const n=e.closest('[data-type="variable"]');n&&t(n)},[e,t]);return Tt.createPortal(q.jsx("span",{className:"rte-report-chip-clear-icon",contentEditable:!1,onMouseDown:a,title:"清除",children:q.jsx(bt.CloseCircleFilled,{})}),e)},Jo=(e,t,a)=>{const[l,n]=N.useState([]),r=N.useRef(t);r.current=t;const i=N.useCallback(o=>{r.current(o)},[]),u=N.useRef(new WeakSet),s=N.useCallback(()=>{const o=e.current;if(!o){n([]);return}const c=o.querySelectorAll(".rte-report-chip-clear-host"),d=[];c.forEach(m=>{const f=m;if(!u.current.has(f)){for(;f.firstChild;)f.removeChild(f.firstChild);u.current.add(f)}const E=f.getAttribute("data-key")||"",b=f.getAttribute("data-node-type")||"",h=f.getAttribute("data-multi-key")||"";d.push(q.jsx(Qo,{host:f,onClear:i},`report-clear-${h?`${h}:`:""}${E}-${b}`))}),n(d)},[e,i]);return N.useEffect(()=>{const o=e.current;if(!o)return;const c=new MutationObserver(d=>{let m=!1;for(const f of d){if(f.type!=="childList")continue;const E=b=>{if(b.nodeType!==Node.ELEMENT_NODE)return!1;const h=b;return h.classList?.contains("rte-report-chip-clear-host")||!!h.querySelector?.(".rte-report-chip-clear-host")};if(f.addedNodes.forEach(b=>{E(b)&&(m=!0)}),f.removedNodes.forEach(b=>{E(b)&&(m=!0)}),m)break}m&&s()});return c.observe(o,{childList:!0,subtree:!0}),()=>c.disconnect()},[e,s]),N.useEffect(()=>{const o=requestAnimationFrame(()=>{s()});return()=>cancelAnimationFrame(o)},[s,a]),l};function Zo(e){const t=e.dataset.key||"",a=e.getAttribute("data-node-type")||"",l=e.dataset.multiKey||"";e.removeAttribute("data-report-url"),e.removeAttribute("data-report-name"),e.classList.remove("rte-report-name-chip"),e.contentEditable="true";const n=e.querySelector(".rte-report-dropdown-host");n?.parentNode&&n.parentNode.removeChild(n);const r=e.querySelector(".rte-report-chip-clear-host");for(r?.parentNode&&r.parentNode.removeChild(r);e.firstChild;)e.removeChild(e.firstChild);if(e.appendChild(document.createTextNode("")),e.classList.add("show-placeholder"),n)n.classList.remove("hidden","rte-report-dropdown-host-quiet"),n.style.display="",n.style.visibility="",e.appendChild(n);else{const i=document.createElement("span");i.contentEditable="false",i.className="rte-report-dropdown-host",i.dataset.key=t,i.dataset.nodeType=a,l&&(i.dataset.multiKey=l),e.appendChild(i)}return e.classList.add("rte-variable-with-icon"),{nodeKey:t,nodeType:a,multiKey:l}}function Rl(e){if(e.querySelector(".rte-report-chip-clear-host"))return;const t=document.createElement("span");t.contentEditable="false",t.className="rte-report-chip-clear-host";const a=e.dataset.key||"",l=e.getAttribute("data-node-type")||"",n=e.dataset.multiKey||"";t.dataset.key=a,l&&(t.dataset.nodeType=l),n&&(t.dataset.multiKey=n),e.appendChild(t)}function ec(e,t,a=[]){const l=N.useRef(t);N.useEffect(()=>{l.current=t},[t]),N.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 tc(e,t,a=[]){N.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 se=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Ze=e=>e?typeof e=="string"?e:JSON.stringify(e):"",ac=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")},Xa=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))},Rr=e=>`\`\`\`
|
|
14
14
|
${(e||"").replace(/\r\n/g,`
|
|
15
15
|
`)}
|
|
16
|
-
\`\`\``,
|
|
17
|
-
`).trim(),a=t.match(/^```[a-zA-Z0-9_-]*\n([\s\S]*?)\n```$/);return a?`<pre><code>${
|
|
16
|
+
\`\`\``,Hr=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>${se(a[1]||"")}</code></pre>`:`<div style="white-space:pre-wrap;">${se(t)}</div>`},lc=({config:e,messageApi:t,activeBatchKey:a,activeFileKey:l,activeBatchStartIndex:n,setActiveFileKey:r,setActiveBatchKey:i,setActiveBatchStartIndex:u,setFiles:s})=>{const o=N.useCallback(d=>{if(!d.target.files){d.target&&(d.target.value=""),r(null),i(null),u(null);return}const m=10*1024*1024,f=b=>b.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(b.name||""),E=b=>f(b)&&b.size>m;if(a&&d.target.files&&d.target.files.length>0){const b=a,h=e.find(S=>S.type==="upload"&&S.key===b),v=Array.from(d.target.files),g=v.filter(S=>!E(S)),y=v.length-g.length;if(y>0&&t.error(`已自动过滤 ${y} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`),h&&typeof h.maxCount=="number"&&typeof h.minCount=="number"){const S=h.maxCount,_=typeof n=="number"?n:0;s(w=>{const P={...w};let L=Math.min(Math.max(_,0),S-1);for(const T of g){for(;L<S&&P[`${b}-${L}`]!=null;)L+=1;if(L>=S)break;P[`${b}-${L}`]=T,L+=1}return P})}}else if(l&&d.target.files[0]){const b=d.target.files[0],h=l;E(b)?t.error("图片大小不能超过 10MB(仅允许上传 10MB 以内图片)"):s(v=>({...v,[h]:b}))}d.target&&(d.target.value=""),r(null),i(null),u(null)},[a,n,l,e,t,i,u,r,s]),c=N.useCallback(d=>{s(m=>{const f={...m};return delete f[d],f})},[s]);return{handleFileChange:o,handleRemoveFile:c}};function nc(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 rc(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 ic(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 uc(e,t,a,l,n=[]){const r=N.useRef(a);r.current=a;const i=N.useCallback(async(u,s)=>{if(!t||!s.trim())return;const o=nc(s);l(f=>({...f,[u]:{status:"loading",progress:0}}));const c=2*Math.PI*6.5;let d=0;const m=setInterval(()=>{d=Math.min(d+Math.random()*15+5,90);const f=e.current?.querySelector(`[data-type="video-url"][data-key="${u}"] .video-upload-progress-ring circle:last-child`);f&&f.setAttribute("stroke-dashoffset",String(c*(1-d/100)))},400);try{const f=await t({url:o});if(clearInterval(m),l(E=>({...E,[u]:{status:"success",videoUrl:f.videoUrl,thumbnail:f.thumbnail||"",fileName:o}})),!f.thumbnail&&f.videoUrl){const E=`/api/download-report-pdf?url=${encodeURIComponent(f.videoUrl)}`;ic(E).then(b=>{b&&l(h=>{const v=h[u];return!v||v.status!=="success"?h:{...h,[u]:{...v,thumbnail:b}}})})}}catch(f){clearInterval(m),l(E=>({...E,[u]:{status:"error",errorMsg:f instanceof Error?f.message:"解析失败"}}))}},[t,l,e]);N.useEffect(()=>{const u=e.current;if(!u||!t)return;const s=c=>{const d=c.target?.closest?.('[data-node-type="video-url"]');if(!d)return;const m=d.dataset.key;m&&setTimeout(()=>{const f=(d.innerText||"").replace(/\u200B/g,"").trim();f&&i(m,f)},0)},o=c=>{const d=c.target?.closest?.('[data-node-type="video-url"]');if(!d)return;const m=d.dataset.key;if(!m)return;const f=r.current[m];if(f?.status==="success"||f?.status==="loading")return;const E=(d.innerText||"").replace(/\u200B/g,"").trim();E&&i(m,E)};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 sc(e,t,a){return N.useCallback(async(l,n)=>{if(!e)return;t(s=>({...s,[l]:{status:"loading",file:n,fileName:n.name,progress:0}}));const r=await rc(n).catch(()=>"");r&&t(s=>{const o=s[l];return!o||o.status!=="loading"?s:{...s,[l]:{...o,thumbnail:r}}});const i=2*Math.PI*6.5,u=s=>{const o=Math.min(Math.max(s,0),100),c=a.current?.querySelector(`[data-type="video-upload"][data-key="${l}"] .video-upload-progress-ring circle:last-child`);c&&c.setAttribute("stroke-dashoffset",String(i*(1-o/100)))};try{const s=await e(n,u);t(o=>({...o,[l]:{status:"success",videoUrl:s.videoUrl,thumbnail:s.thumbnail||r,file:n,fileName:n.name}}))}catch(s){t(o=>({...o,[l]:{status:"error",file:n,fileName:n.name,errorMsg:s instanceof Error?s.message:"上传失败"}}))}},[e,t,a])}function oc(e,t,a,l){N.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 cc=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}},dc=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}`}}),Hl=e=>(e?.modules||[]).map((t,a)=>{const l=(t?.title||`模块${a+1}`).trim()||`模块${a+1}`,n=(t?.markdown||"").trim(),r=(t?.content||"").trim()||(n?Hr(n):"");return{title:l,content:r.length>0?r:`请补充:${l}`,markdown:n}}),fc=({config:e,editorRef:t,files:a,setFiles:l,multiVariableCounts:n,setMultiVariableCounts:r,reportAnalyzeState:i,setReportAnalyzeState:u,markdownAnalyzeState:s,setMarkdownAnalyzeState:o,markdownNameAnalyzeState:c,setMarkdownNameAnalyzeState:d,nodeValues:m,resolvedReportNamesRef:f})=>{const E=N.useRef({}),b=N.useRef({}),h=N.useRef({}),v=N.useRef(i),g=N.useRef(s),y=N.useRef(c),S=N.useCallback(P=>P.find(T=>T.type==="tag")?.text||null,[]),_=N.useRef(e),w=N.useRef(null);N.useEffect(()=>{b.current=a},[a]),N.useEffect(()=>{h.current=n},[n]),N.useEffect(()=>{v.current=i},[i]),N.useEffect(()=>{g.current=s},[s]),N.useEffect(()=>{y.current=c},[c]),N.useEffect(()=>{const P=S(_.current),L=S(e);if(P&&P!==L&&t.current){const T={};t.current.querySelectorAll('[data-type="variable"]').forEach(I=>{const C=I.dataset.key;if(!C)return;const B=I.getAttribute("data-node-type")||"";if(B==="report-url"){const F=I.getAttribute("data-report-url");F&&(T[`${C}__url`]=F);return}if(B==="markdown-name"){const F=I.innerText.replace(/[\n]/g,"").trim();F&&(T[`${C}__name`]=F);return}const $=I.innerText.replace(/[\n]/g,"").trim();$&&(T[C]=$)}),t.current.querySelectorAll('[data-type="select"]').forEach(I=>{const C=I.dataset.key;if(C){const B=(I.getAttribute("data-value")||"").trim();B&&(T[C]=B)}}),t.current.querySelectorAll('[data-type="searchable-select"]').forEach(I=>{const C=I.dataset.key;if(C){const B=(I.getAttribute("data-value")||"").trim();B&&(T[C]=B)}}),t.current.querySelectorAll('[data-type="textarea"]').forEach(I=>{const C=I.dataset.key;if(C){const B=I.value.replace(/[]/g,"").trim();B&&(T[C]=B)}}),E.current[P]={variableValues:T,files:{...b.current},multiVariableCounts:{...h.current},reportAnalyzeState:{...v.current},markdownAnalyzeState:{...g.current},markdownNameAnalyzeState:{...y.current},resolvedReportNames:f?.current?{...f.current}:{}}}if(L&&E.current[L]){const T=E.current[L];w.current=T,l(T.files),r(T.multiVariableCounts),u(T.reportAnalyzeState),o(T.markdownAnalyzeState),d(T.markdownNameAnalyzeState),f&&(f.current={...T.resolvedReportNames})}else if(L){w.current=null;const T={};e.forEach(A=>{if(Ue(A.type)&&A.key){const x=m?.[A.key],k=Array.isArray(x)?x.filter(D=>String(D??"").trim().length>0):x;Array.isArray(k)&&k.length>0?T[A.key]=Math.min(k.length+1,A.maxCount??9):T[A.key]=1}}),r(T),l({}),u({}),o({}),d({}),f&&(f.current={})}else w.current=null,r({}),l({}),u({}),o({}),d({}),f&&(f.current={});_.current=e},[e,t,S,l,r,u,o,d,f]),N.useLayoutEffect(()=>{w.current&&t.current&&(t.current.__tempVariableValues=w.current.variableValues,setTimeout(()=>{w.current&&(w.current=null)},0))})},pc=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 u=(l.getAttribute("data-value")||"").trim();if(!u)return;try{const o=(decodeURIComponent(u)||"").replace(/\r\n/g,`
|
|
18
18
|
`).trim();o&&(t[n]=o)}catch{const s=u.trim();s&&(t[n]=s)}return}const r=l.getAttribute("data-node-type")||"";if(r==="report-url"){const u=l.getAttribute("data-report-url");u&&(t[`${n}__url`]=u);return}const i=(l.innerText||"").replace(//g,"").replace(/\r\n/g,`
|
|
19
|
-
`).trim();i&&(r==="markdown-name"?t[`${n}__name`]=i:t[n]=i)}),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(/[]/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(/[]/g,"").trim();t[`${n}__module_${Number.isFinite(u)?u:0}`]=s;return}const i=(l.textContent||"").replace(/[]/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},
|
|
20
|
-
(reportId=${C.reportId||"unknown"}, agentId=${C.agentId||"1"})`},{title:"第2张:痛点放大对比图",content:"左侧:杂乱堆放、难清理;右侧:分区收纳、拿取方便。文案≤15字,绑定人群+场景+需求。"}]})))(D).then(C=>{const B=
|
|
19
|
+
`).trim();i&&(r==="markdown-name"?t[`${n}__name`]=i:t[n]=i)}),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(/[]/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(/[]/g,"").trim();t[`${n}__module_${Number.isFinite(u)?u:0}`]=s;return}const i=(l.textContent||"").replace(/[]/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},hc=({reportAnalyze:e,markdownAnalyze:t,markdownNameAnalyze:a,reportAnalyzeState:l,setReportAnalyzeState:n,markdownAnalyzeState:r,setMarkdownAnalyzeState:i,markdownNameAnalyzeState:u,setMarkdownNameAnalyzeState:s,editorRef:o,reportAnalyzeRef:c,markdownAnalyzeRef:d,markdownNameAnalyzeRef:m,markdownAnalyzeStateRef:f,markdownNameAnalyzeStateRef:E,reportNameResolve:b,applyReportNameChipRef:h})=>{const v=N.useCallback(()=>pc(o),[o]),g=N.useCallback((T,A)=>{const x=(A||"").trim();if(!T)return;if(!x){n(C=>({...C,[T]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}));return}b&&h&&(o.current?.querySelector(`[data-type="variable"][data-key="${T}"]`)?.getAttribute("data-report-url")===x||b({url:x,nodeKey:T,nodeType:"report-url"}).then(({name:$,url:F})=>{h.current(T,$,F||x)}).catch(()=>{}));const k=l[T];if(k?.lastParsedUrl&&k.lastParsedUrl===x&&(k.status==="loading"||k.status==="success"))return;n(C=>({...C,[T]:{...C[T],status:"loading",error:void 0,lastParsedUrl:x}}));const D=cc(x);(e||(async C=>({modules:[{title:"第1张:人群+场景直击图",content:`视觉要求:养宠人在客厅场景中,宠物(猫/狗)自然趴在旁;画面聚焦“人+宠+整洁氛围”。
|
|
20
|
+
(reportId=${C.reportId||"unknown"}, agentId=${C.agentId||"1"})`},{title:"第2张:痛点放大对比图",content:"左侧:杂乱堆放、难清理;右侧:分区收纳、拿取方便。文案≤15字,绑定人群+场景+需求。"}]})))(D).then(C=>{const B=dc(C);if(o.current){const $=v();B.forEach((F,z)=>{$[`${T}__module_${z}`]=F.content}),o.current.__tempVariableValues=$}n($=>({...$,[T]:{status:"success",error:void 0,lastParsedUrl:x,modules:B}}))}).catch(C=>{const B=C instanceof Error?C.message:String(C);n($=>({...$,[T]:{...$[T]||{modules:[]},status:"error",error:B||"解析失败",lastParsedUrl:x,modules:[]}}))})},[v,o,e,l,n,b,h]),y=N.useCallback((T,A)=>{const x=(A||"").trim();if(!T)return;if(!x){i($=>({...$,[T]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}));return}const k=r[T];if(k?.lastParsedText&&k.lastParsedText===x&&k.status==="success")return;if(!t){const $=Rr(x),F=Hl({modules:[{title:"内容",content:Hr($),markdown:$}]});if(o.current){const z=v();F.forEach((O,W)=>{z[`${T}__module_${W}`]=O.content}),o.current.__tempVariableValues=z}i(z=>({...z,[T]:{status:"success",error:void 0,lastParsedText:x,modules:F}}));return}const D=f.current[T]?.status==="loading";D||i($=>({...$,[T]:{...$[T],status:"loading",error:void 0,lastParsedText:x}}));const I=500,C=Date.now();setTimeout(()=>{t({text:x}).then(F=>{const z=Hl(F),O=Date.now()-C,W=Math.max(0,I-O);setTimeout(()=>{if(o.current){const G=v();z.forEach((R,K)=>{G[`${T}__module_${K}`]=R.content}),o.current.__tempVariableValues=G}i(G=>({...G,[T]:{status:"success",error:void 0,lastParsedText:x,modules:z}}))},W)}).catch(F=>{const z=F instanceof Error?F.message:String(F);i(O=>({...O,[T]:{...O[T]||{modules:[]},status:"error",error:z,lastParsedText:x}}))})},D?0:50)},[v,o,t,r,f,i]),S=N.useCallback((T,A)=>{const x=(A||"").trim();if(!T)return;if(!x){s($=>({...$,[T]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}));return}const k=E.current[T];if(k?.lastParsedText&&k.lastParsedText===x&&k.status==="success"||!a)return;const D=E.current[T]?.status==="loading";D||s($=>({...$,[T]:{...$[T],status:"loading",error:void 0,lastParsedText:x}}));const I=500,C=Date.now();setTimeout(()=>{a({text:x}).then(F=>{const z=Hl(F),O=Date.now()-C,W=Math.max(0,I-O);setTimeout(()=>{if(o.current){const G=v();z.forEach((R,K)=>{G[`${T}__module_${K}`]=R.content}),o.current.__tempVariableValues=G}s(G=>({...G,[T]:{status:"success",error:void 0,lastParsedText:x,modules:z}}))},W)}).catch(F=>{const z=F instanceof Error?F.message:String(F);s(O=>({...O,[T]:{...O[T]||{modules:[]},status:"error",error:z,lastParsedText:x}}))})},D?0:50)},[v,o,a,E,s]);N.useEffect(()=>{c.current=g},[c,g]),N.useEffect(()=>{d.current=y},[d,y]),N.useLayoutEffect(()=>{m.current=S},[m,S]);const _=N.useCallback((T,A)=>{c.current(T,A)},[c]),w=N.useCallback((T,A)=>{d.current(T,A)},[d]),P=N.useCallback((T,A)=>{m.current(T,A)},[m]),L=N.useCallback((T,A,x="multi-variable")=>{const k=(A||"").trim();if(console.log("[RTE-REPORT] multiNameResolve called",{nodeKey:T,nodeType:x,url:k,hasFn:!!b,hasApplyRef:!!h}),!k||!b||!h){console.log("[RTE-REPORT] multiNameResolve early-exit (empty/no-fn)");return}if(!/^https?:\/\//i.test(k)){console.log("[RTE-REPORT] multiNameResolve early-exit (not URL)",{url:k});return}console.log("[RTE-REPORT] multiNameResolve → reportNameResolve API",{nodeKey:T,url:k}),b({url:k,nodeKey:T,nodeType:x}).then(({name:D,url:I})=>{const C=I||k;h.current(T,D,C),x==="multi-variable-select"&&c.current(T,C)}).catch(()=>{})},[b,h,c]);return{handleReportUrlBlur:_,handleMarkdownBlur:w,handleMarkdownNameBlur:P,handleMultiVariableNameResolve:L}},bc=({collapsed:e,collapseTransitionMs:t,contentRef:a,contentBodyRef:l,editorRef:n,debugIdRef:r,setCollapsedContentMaxHeightPx:i,setExpandedContentMaxHeightPx:u,setIsCollapseAnimating:s,effectiveConfig:o,files:c,multiVariableCounts:d,selectPortalsLength:m,datePickerPortalsLength:f,variablePortalsLength:E})=>{const b=N.useRef(""),h=N.useCallback(()=>{const g=l.current;if(!g)return;const y=Math.max(0,Math.ceil(g.scrollHeight||0));!Number.isFinite(y)||y<=0||u(S=>S===y?S:y)},[l,u]);N.useLayoutEffect(()=>{if(!e)return;const g=a.current,y=n.current;if(!(!g||!y))try{const S=y.getBoundingClientRect(),_=document.createRange();_.selectNodeContents(y);const w=Array.from(_.getClientRects());let P;if(w.length>0){const L=Math.min(...w.map(x=>x.top)),T=2;let A=0;for(const x of w)Math.abs(x.top-L)<=T&&(A=Math.max(A,x.bottom));P=A>0?Math.max(0,Math.ceil(A-S.top)):58}else{const L=window.getComputedStyle(y),T=Number.parseFloat(L.paddingTop)||0,A=Number.parseFloat(L.lineHeight)||34;P=Math.max(0,Math.ceil(T+A))||58}if(!Number.isFinite(P)||P<=0)return;i(L=>L===P?L:P)}catch{}},[e,a,n,o,c,d,m,f,E,i]),N.useLayoutEffect(()=>{if(!e)return;const g=a.current,y=l.current,S=n.current;if(!g)return;const _=()=>{g.scrollTop=0,g.scrollLeft=0,y&&(y.scrollTop=0,y.scrollLeft=0),S&&(S.scrollTop=0,S.scrollLeft=0)},P=(typeof t=="number"&&Number.isFinite(t)&&t>=0?t:260)+220;_();const L=D=>{D.preventDefault(),D.stopPropagation(),_()};g.addEventListener("wheel",L,{passive:!1}),g.addEventListener("touchmove",L,{passive:!1}),y&&(y.addEventListener("wheel",L,{passive:!1}),y.addEventListener("touchmove",L,{passive:!1}));const T=performance.now();let A=0;const x=D=>{_(),D-T<P&&(A=window.requestAnimationFrame(x))};A=window.requestAnimationFrame(x);const k=window.setTimeout(()=>{_()},P);return()=>{g.removeEventListener("wheel",L),g.removeEventListener("touchmove",L),y&&(y.removeEventListener("wheel",L),y.removeEventListener("touchmove",L)),window.cancelAnimationFrame(A),window.clearTimeout(k)}},[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!==""&&b.current!==v&&(e||u(9999)),b.current=v,N.useEffect(()=>{if(e)return;const g=window.requestAnimationFrame(()=>{h();const y=window.setTimeout(()=>{h()},150);window.__rteSecondMeasureTimer=y});return()=>{window.cancelAnimationFrame(g);const y=window.__rteSecondMeasureTimer;y&&window.clearTimeout(y)}},[e,o,c,d,m,f,E,h]),N.useEffect(()=>{const g=typeof t=="number"&&Number.isFinite(t)&&t>=0?t:260;if(g<=0){s(!1);return}s(!0);const y=window.setTimeout(()=>s(!1),g);return()=>window.clearTimeout(y)},[e,t,s]),{measureExpandedContentHeight:h}},mc=({config:e,editorRef:t,setIsEmpty:a,setIsFormValid:l})=>{N.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(d=>{(d.textContent?.replace(/[\u200B\n]/g,"").trim()||"")&&(o=!0)}),s.forEach(d=>{d.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])},vc=({config:e,reportAnalyzeState:t,markdownAnalyzeState:a,markdownNameAnalyzeState:l})=>N.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
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:`解析失败:${
|
|
22
|
+
`}),s==="error"&&u?.error&&n.push({type:"text",className:"rte-report-error",text:`解析失败:${se(u.error)}
|
|
23
23
|
`}),o.length>0&&(o.forEach((c,d)=>{n.push({type:"report-module",key:i.key,moduleIndex:d,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:c.content})}),n.push({type:"text",text:`
|
|
24
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
25
|
`});else if(s==="success"&&o.length>0){const d=n[n.length-1];d?.type==="text"&&d.text?.endsWith(`
|
|
26
|
-
`)&&(n[n.length-1]={...d,text:d.text.slice(0,-1)}),o.forEach((m,f)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:f,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:`解析失败:${
|
|
26
|
+
`)&&(n[n.length-1]={...d,text:d.text.slice(0,-1)}),o.forEach((m,f)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:f,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:`解析失败:${se(u.error)}
|
|
27
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:`解析失败:${
|
|
28
|
+
`}):s==="error"&&u?.error&&n.push({type:"text",className:"rte-markdown-error",text:`解析失败:${se(u.error)}
|
|
29
29
|
`}),o.length>0&&s!=="loading"&&o.forEach((d,m)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:m,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:d.content})}),s!=="loading"&&n.push({type:"text",text:`
|
|
30
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:`解析失败:${
|
|
32
|
-
`}),o.length>0&&s!=="loading"&&(o.forEach((c,d)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:d,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:c.content})}),r=!0)}}return n},[e,a,l,t]);function
|
|
31
|
+
`}),s==="error"&&u?.error&&n.push({type:"text",className:"rte-markdown-error",text:`解析失败:${se(u.error)}
|
|
32
|
+
`}),o.length>0&&s!=="loading"&&(o.forEach((c,d)=>{n.push({type:"markdown-module",key:i.key,moduleIndex:d,placeholder:"可编辑,内容不能为空",required:!0,minHeight:80,maxHeight:260,text:c.content})}),r=!0)}}return n},[e,a,l,t]);function gc(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 d=0;for(const E of c){const b=l.measureText(E||" ").width||0;d=Math.max(d,b)}const m=Number.parseFloat(n.letterSpacing||""),f=Number.isFinite(m)?m:0;if(f>0){const E=c.reduce((b,h)=>b.length>=h.length?b:h,"");d+=f*Math.max(0,E.length-1)}return Math.ceil(d)}function
|
|
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 d=l.closest(".required-upload-group, .required-multi-first");d&&d.classList.toggle("rte-required-group-force-block",o);const m=d?d.parentElement?.closest(".exclusion-wrapper"):l.closest(".exclusion-wrapper");m&&m!==d&&m.classList.toggle("rte-exclusion-force-block",o)})}function
|
|
36
|
-
`).trim()||v},i=b=>b?!!b.closest('[data-rte-force-hidden="1"]'):!1,u=[];for(let b=0;b<t.length;b++){const h=t[b];if((h.type==="variable"||h.type==="report-url"||h.type==="markdown"||h.type==="markdown-name"||h.type==="upload"||h.type==="multi-variable"||h.type==="multi-variable-select"||h.type==="select"||h.type==="textarea"||h.type==="richtext"||h.type==="report-module"||h.type==="markdown-module"||h.type==="datepicker"||h.type==="number-input"||h.type==="video-url"||h.type==="video-upload")&&h.required&&h.key){u.push({exclusionGroup:h.exclusionGroup||"",key:h.key,type:He(h.type)||h.type==="report-url"||h.type==="markdown"||h.type==="markdown-name"?"variable":h.type==="report-module"||h.type==="markdown-module"?"richtext":h.type==="video-url"?"video-url":h.type==="video-upload"?"video-upload":h.type,isMultiVariable:He(h.type),minCount:He(h.type)||h.type==="upload"&&typeof h.minCount=="number"?h.minCount:void 0,moduleIndex:h.type==="report-module"||h.type==="markdown-module"?h.moduleIndex:void 0,__index:b});continue}if(h.type==="text"&&h.className?.includes("rte-text-required"))if(h.exclusionGroup)for(let v=b+1;v<t.length;v++){const g=t[v];if(g.exclusionGroup===h.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:h.exclusionGroup,key:g.key,type:g.type==="markdown"?"variable":g.type,__index:v});break}}else for(let v=b+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(b=>b.exclusionGroup==="separator"),o=[];if(s&&u.length>1){const b=[];t.forEach((h,v)=>{h.exclusionGroup==="separator"&&b.push(v)});for(const h of b){const g=u.filter(_=>typeof _.__index=="number"&&_.__index<h).sort((_,w)=>(w.__index??0)-(_.__index??0))[0],S=u.filter(_=>typeof _.__index=="number"&&_.__index>h).sort((_,w)=>(_.__index??0)-(w.__index??0))[0];g&&S&&o.push([g,S])}}if(u.length===0){if(t.length===0){if(!e.current){l(!1);return}const b=e.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";l(b.length>0);return}l(!0);return}const c=u.filter(b=>{if(!e.current)return!1;if(b.exclusionGroup){const h=e.current.querySelectorAll(`[data-group="${b.exclusionGroup}"]`);if(h.length>0){const v=h[0];return i(v)?!0:v.style.display!=="none"}}if(b.type==="upload"&&b.key){const h=e.current.querySelector(`[data-type="upload"][data-key="${b.key}"]`)||e.current.querySelector(`[data-type="upload"][data-batch-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="variable"&&b.key)if(b.isMultiVariable){const h=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${b.key}"]`);if(h.length>0){const v=h[0],g=v.closest("[data-group]")||v.parentElement;return i(g)?!0:g?g.style.display!=="none":!0}}else{const h=e.current.querySelector(`[data-type="variable"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="select"&&b.key){const h=e.current.querySelector(`[data-type="select"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="textarea"&&b.key){const h=e.current.querySelector(`[data-type="textarea"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="richtext"&&b.key){const h=typeof b.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"]`:`[data-type="richtext"][data-key="${b.key}"]`,v=e.current.querySelector(h);if(v){const g=v.closest("[data-group]")||v.parentElement;return i(g)?!0:g?g.style.display!=="none":!0}}else if(b.type==="datepicker"&&b.key){const h=e.current.querySelector(`[data-type="datepicker"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="number-input"&&b.key){const h=e.current.querySelector(`[data-type="number-input"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if((b.type==="video-url"||b.type==="video-upload")&&b.key){const h=e.current.querySelector(`[data-type="${b.type}"][data-key="${b.key}"], [data-type="variable"][data-key="${b.key}"][data-node-type="video-url"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}return!1});if(c.length===0){l(!0);return}const d=new Set;o.forEach(b=>{b.forEach(h=>{h.key&&d.add(h.key)})});const m=c.filter(b=>!b.key||!d.has(b.key));let f=(o.length===0,!0);for(const b of o){const h=b.filter(g=>{if(!e.current)return!1;if(g.exclusionGroup){const y=e.current.querySelectorAll(`[data-group="${g.exclusionGroup}"]`);if(y.length>0){const S=y[0];return i(S)?!0:S.style.display!=="none"}}return!0});if(h.length===0)continue;let v=!1;for(const g of h)if(g.type==="upload"&&g.key){if(g.minCount&&g.minCount>0){let y=0;const S=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${g.key}"]`);if(S.length===0)continue;for(let _=0;_<S.length;_++){const P=S[_].dataset.key;P&&a[P]!=null&&(y+=1)}if(y>=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 y=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${g.key}"]`);let S=0;for(const w of Array.from(y)){if(w.classList.contains("show-placeholder"))continue;w.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(S+=1)}const _=g.minCount&&g.minCount>0?g.minCount:1;if(S>=_){v=!0;break}}else{const y=e.current.querySelector(`[data-type="variable"][data-key="${g.key}"]`);if(y){if(y.classList.contains("show-placeholder"))continue;if(y.innerText.replace(/[\u200B\n]/g,"").trim().length>0){const _=y.dataset.nodeType;if((_==="markdown"||_==="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 y=e.current.querySelector(`[data-type="select"][data-key="${g.key}"]`);if(y&&(y.getAttribute("data-value")||"").trim().length>0){v=!0;break}}else if(g.type==="textarea"&&g.key){const y=e.current.querySelector(`[data-type="textarea"][data-key="${g.key}"]`);if(y&&(y.value||"").trim().length>0){v=!0;break}}else if(g.type==="richtext"&&g.key){const y=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}"]`,S=e.current.querySelector(y);if(S){if(S.getAttribute("data-is-placeholder")==="true")continue;if(r(S).length>0){v=!0;break}}}else if(g.type==="datepicker"&&g.key){const y=e.current.querySelector(`[data-type="datepicker"][data-key="${g.key}"]`);if(y&&(y.getAttribute("data-value")||"").trim().length>0){v=!0;break}}else if(g.type==="number-input"&&g.key){const y=e.current.querySelector(`[data-type="number-input"][data-key="${g.key}"]`);if(y&&(y.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){f=!1;break}}let E=!0;for(const b of m)if(b.type==="upload"&&b.key){if(b.minCount&&b.minCount>0){let h=0;const v=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${b.key}"]`);if(v.length===0){E=!1;break}for(let g=0;g<v.length;g++){const S=v[g].dataset.key;S&&a[S]!=null&&(h+=1)}if(h<b.minCount){E=!1;break}}else if(a[b.key]===null||a[b.key]===void 0){E=!1;break}}else if(b.type==="variable"&&b.key)if(b.isMultiVariable){const h=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${b.key}"]`);let v=0;for(const y of Array.from(h)){if(y.classList.contains("show-placeholder"))continue;y.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(v+=1)}const g=b.minCount&&b.minCount>0?b.minCount:1;if(v<g){E=!1;break}}else{const h=e.current.querySelector(`[data-type="variable"][data-key="${b.key}"]`);if(!h){E=!1;break}if(h.classList.contains("show-placeholder")){E=!1;break}if(h.innerText.replace(/[\u200B\n]/g,"").trim().length===0){E=!1;break}const g=h.dataset.nodeType;if((g==="markdown"||g==="markdown-name")&&!!!e.current.querySelector(`[data-node-type="markdown-module"][data-key="${b.key}"]`)){E=!1;break}}else if(b.type==="select"&&b.key){const h=e.current.querySelector(`[data-type="select"][data-key="${b.key}"]`);if(!h||(h.getAttribute("data-value")||"").trim().length===0){E=!1;break}}else if(b.type==="textarea"&&b.key){const h=e.current.querySelector(`[data-type="textarea"][data-key="${b.key}"]`);if(!h||(h.value||"").trim().length===0){E=!1;break}}else if(b.type==="richtext"&&b.key){const h=typeof b.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"]`:`[data-type="richtext"][data-key="${b.key}"]`,v=e.current.querySelector(h);if(v&&v.getAttribute("data-is-placeholder")==="true"){E=!1;break}if(!v||r(v).length===0){E=!1;break}}else if(b.type==="datepicker"&&b.key){const h=e.current.querySelector(`[data-type="datepicker"][data-key="${b.key}"]`);if(!h||(h.getAttribute("data-value")||"").trim().length===0){E=!1;break}}else if(b.type==="number-input"&&b.key){const h=e.current.querySelector(`[data-type="number-input"][data-key="${b.key}"]`);if(!h||(h.value||"").trim().length===0){E=!1;break}}else if((b.type==="video-url"||b.type==="video-upload")&&b.key&&n?.[b.key]?.status!=="success"){E=!1;break}l(f&&E)}const vc=({config:e,effectiveConfig:t,files:a,editorRef:l,setIsFormValid:n,multiVariableCounts:r,setMultiVariableCounts:i,videoState:u})=>{N.useLayoutEffect(()=>{const s=l.current;if(!s)return;const o=new Map,c=f=>{const E=f.target,b=f.relatedTarget;!E||!l.current||!l.current.contains(E)||b&&l.current.contains(b)||setTimeout(()=>{if(l.current){if(e.length===0){const h=l.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";n(h.length>0);return}Ja(l),Za(l,t,a,u),Ul(l,t,a,n,u)}},0)};s.addEventListener("blur",c,!0);const d=()=>{if(!l.current)return;o.forEach((b,h)=>{h.removeEventListener("blur",b,!1)}),o.clear();const f=l.current.querySelectorAll('[data-type="variable"][data-multi-key]'),E=b=>{b.stopPropagation(),b.stopImmediatePropagation();const h=b.target;if(!h||!l.current||!l.current.contains(h))return;const v=h.closest('[data-type="variable"][data-multi-key]');if(!v||!l.current.contains(v))return;let g=!1;if(o.forEach((A,x)=>{(x===v||x.contains(h))&&(g=!0)}),!g)return;const y=v.dataset.multiKey,S=v.dataset.key,_=v.dataset.index;if(!y||!S||_===void 0)return;const w=b.relatedTarget;if(!(!w||!l.current.contains(w)))return;const L=v.innerText.replace(/[\u200B\n]/g,"").trim(),T=/[、,,\s]+/;if(T.test(L)){const k=L.split(T).map(D=>D.trim()).filter(D=>D.length>0).slice(0,9);if(k.length>1){const D=e.find(I=>He(I.type)&&I.key===y);if(D){const I=r[y]||1,C=parseInt(_,10),B=D.maxCount||9,$=[];for(let G=0;G<I;G++){const R=`${y}_${G}`,K=l.current.querySelector(`[data-type="variable"][data-key="${R}"][data-multi-key="${y}"]`);if(K){const re=K.innerText.replace(/[\u200B\n]/g,"").trim();$.push(re)}}$.splice(C,1,...k);const F=$.slice(0,B);F.length>0&&F[F.length-1]!==""&&F.length<B&&F.push("");const z=Math.max(F.length,1),O={};F.forEach((G,R)=>{G&&(O[`${y}_${R}`]=G)}),l.current.querySelectorAll('[data-type="variable"]').forEach(G=>{const R=G.dataset.key,K=G.dataset.multiKey;if(R&&K!==y){const re=G.innerText.replace(/[\u200B\n]/g,"").trim();re&&(O[R]=re)}}),l.current.__tempVariableValues=O,i(G=>({...G,[y]:z}))}}}};f.forEach(b=>{b.addEventListener("blur",E,!1),o.set(b,E)})},m=setTimeout(()=>{d()},0);return()=>{clearTimeout(m),s.removeEventListener("blur",c,!0),o.forEach((f,E)=>{E.removeEventListener("blur",f,!1)}),o.clear()}},[e,t,l,a,r,n,i,u])},gc=({disabled:e,collapsed:t,onCollapsedChange:a,config:l,lockStructure:n,editorRef:r,containerRef:i,fileInputRef:u,onBeforeFilePickerOpen:s,files:o,setFiles:c,handleRemoveFile:d,setActiveBatchKey:m,setActiveBatchStartIndex:f,setActiveFileKey:E,isDraggingRef:b,richtextPrevScrollTopRef:h,videoState:v,setVideoState:g,videoFileInputRef:y,activeVideoKeyRef:S,onImagePreview:_})=>{const w=(...L)=>{},P=L=>{try{const T=window.getSelection();if(!T)return w(L,"no selection");const A=T.rangeCount>0?T.getRangeAt(0):null;w(L,{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 N.useCallback(L=>{if(e)return;t&&a?.(!1);const T=L.target;if(w("click",{tag:T.tagName,cls:T.className}),P("before click"),T.closest('[data-type="datepicker"]'))return;if(T.closest(".tag-close-btn")){L.preventDefault(),L.stopPropagation();return}if(l.length===0)return;const k=(W,G)=>{if(!r.current)return;Array.from(r.current.children).forEach(K=>{if(K!==W)if(G)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 re=K.dataset.prevDisplay;re?K.style.display=re:K.style.removeProperty("display"),delete K.dataset.prevDisplay}else K.style.removeProperty("display");delete K.dataset.rteForceHidden}})},D=T.closest(".rte-textarea-toggle");if(D){L.preventDefault(),L.stopPropagation();const W=D.closest(".rte-textarea-wrapper"),G=W?.querySelector('[data-type="textarea"]'),K=!(D.getAttribute("data-expanded")==="true");D.setAttribute("data-expanded",String(K)),D.textContent=K?"收起":"展开",W&&W.classList.toggle("rte-textarea-expanded",K);const re=W?.closest(".rte-textarea-required");if(re?re.classList.toggle("rte-textarea-overlay",K):W&&W.classList.toggle("rte-textarea-overlay",K),G)if(K)G.classList.add("rte-textarea-expanded"),G.style.maxHeight="none",G.style.height="100%";else{G.classList.remove("rte-textarea-expanded");const le=G.dataset.maxHeight||"252";G.style.maxHeight=`${le}px`,G.style.height="auto"}r.current&&(K?r.current.classList.add("rte-overlay-active"):r.current.classList.remove("rte-overlay-active"));return}const I=T.closest(".rte-richtext-toggle");if(I){L.preventDefault(),L.stopPropagation();const W=I.closest(".rte-richtext-wrapper"),G=W?.querySelector('[data-type="richtext"]'),K=!(I.getAttribute("data-expanded")==="true");((ae,ce)=>{ae.setAttribute("data-expanded",String(ce)),ae.innerHTML=ce?'<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>'})(I,K);const le=W?.closest(".rte-richtext-required");le?le.classList.toggle("rte-richtext-expanded",K):W&&W.classList.toggle("rte-richtext-expanded",K);const Y=W?.closest(".exclusion-wrapper")||W?.parentElement;if(G&&(K?(G.style.height="100%",G.style.overflow="auto"):(G.style.height="",G.style.overflow="")),Y&&(Y.classList.toggle("rte-richtext-host-expanded",K),k(Y,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 ae=Math.ceil(i.current.getBoundingClientRect().height||0);ae>0&&i.current.style.setProperty("--rte-richtext-fullscreen-height",`${ae}px`)}else i.current.style.removeProperty("--rte-richtext-fullscreen-height");if(K)h.current=r.current.scrollTop||0,setTimeout(()=>{r.current&&(r.current.scrollTop=0,r.current.scrollLeft=0)},0);else{const ae=h.current||0;setTimeout(()=>{r.current&&(r.current.scrollTop=ae)},0)}}return}if(T.closest('[data-type="text"]')){L.preventDefault(),L.stopPropagation();const W=window.getSelection();W&&W.removeAllRanges();return}if(n&&T.closest(".tag-node")){L.preventDefault(),L.stopPropagation();const G=window.getSelection();G&&G.removeAllRanges();return}const B=T.closest('[data-type="variable"]');if(B){if(b.current||B.getAttribute("data-report-url"))return;if(B.dataset.variableRender!=="antd-textarea"){const W=!!T.closest(".variable-info-icon"),G=B.classList.contains("show-placeholder")||(B.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(w("v1 variable click",{key:B.dataset.key,isPlaceholder:G,isOnIcon:W,classes:B.className,innerText:B.innerText}),G&&!W){L.preventDefault();const R=()=>{try{B.focus();const K=window.getSelection();if(!K)return;const re=document.createTreeWalker(B,NodeFilter.SHOW_TEXT),le=re.nextNode()?re.currentNode:null,Y=document.createRange();le?(Y.setStart(le,0),Y.collapse(!0)):(Y.selectNodeContents(B),Y.collapse(!0)),K.removeAllRanges(),K.addRange(Y),P("after placeCaretLeft()")}catch{}};setTimeout(()=>{window.requestAnimationFrame(R),window.requestAnimationFrame(()=>P("post-raf (click)"))},0)}}setTimeout(()=>{const W=window.getSelection();W&&!W.isCollapsed||Ja(r)},10);return}const $=T.closest(".video-remove-btn");if($){L.preventDefault(),L.stopPropagation();const G=$.closest('[data-type="video-url"], [data-type="video-upload"]')?.dataset.key;G&&g&&g(R=>{const K={...R};return delete K[G],K});return}const F=T.closest('[data-type="video-upload"]');if(F){L.preventDefault(),L.stopPropagation();const W=F.dataset.key;W&&y?.current&&S&&(S.current=W,y.current.value="",y.current.click());return}const z=T.closest(".file-remove-btn");if(z){L.preventDefault(),L.stopPropagation();const W=z.closest('[data-type="upload"]'),G=W?.dataset.key,R=W?.dataset.batchKey;if(G)if(R){const K=l.find(re=>re.type==="upload"&&re.key===R);if(K&&typeof K.maxCount=="number"&&typeof K.minCount=="number"){const re=K.maxCount;c(le=>{const Y={...le},ae=[];for(let ce=0;ce<re;ce++){const ge=`${R}-${ce}`,he=Y[ge];he!=null&&ge!==G&&ae.push(he)}for(let ce=0;ce<re;ce++)delete Y[`${R}-${ce}`];return ae.forEach((ce,ge)=>{Y[`${R}-${ge}`]=ce}),Y})}else d(G)}else d(G);return}const O=T.closest('[data-type="upload"]');if(O){const W=O.dataset.key,G=O.dataset.batchKey,R=O.dataset.batchIndex;if(W){const K=o[W];if(K&&_&&(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||""))){L.preventDefault(),L.stopPropagation();const ae=typeof K=="string"?K:URL.createObjectURL(K);_(ae);return}const re=G||W,le=l.find(Y=>Y.type==="upload"&&Y.key===re);if(u.current&&(le?.accept?u.current.accept=le.accept:le?.acceptType==="image"?u.current.accept="image/*":le?.acceptType==="file"?u.current.accept=".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json":u.current.accept=""),G){const Y=l.find(ae=>ae.type==="upload"&&ae.key===G);if(Y&&typeof Y.maxCount=="number"&&typeof Y.minCount=="number"){const ae=Y.maxCount,ce=o[W]!=null,ge=R!=null?Number.parseInt(R,10):NaN;if(ce){u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click();return}let he=0;for(let $e=0;$e<ae;$e++)o[`${G}-${$e}`]!=null&&(he+=1);he<ae&&u.current?(u.current.multiple=!0,m(G),f(Number.isFinite(ge)?ge:null),E(null),s?.(),u.current.click()):(u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click())}else u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click()}else u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click()}return}},[t,l,i,e,r,u,s,o,d,b,n,a,h,m,f,E,c,g,y,S,_])},Ec=({config:e,editorRef:t,setIsEmpty:a,setIsFormValid:l,setReportAnalyzeState:n,setMarkdownAnalyzeState:r,setMarkdownNameAnalyzeState:i,collapsed:u,measureExpandedContentHeight:s,effectiveConfig:o,files:c,multiVariableCounts:d,setMultiVariableCounts:m,savedCursorRef:f,videoState:E,resolvedReportNamesRef:b})=>N.useCallback(()=>{if(e.length===0){if(t.current){const g=!(t.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"");a(g),l(!g)}u||window.requestAnimationFrame(()=>{s()});return}if(Ja(t),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]').forEach(g=>{const y=g.dataset.key;if(!y||g.getAttribute("data-report-url"))return;g.innerText.replace(/[\u200B\n]/g,"").trim()||n(_=>{const w=_[y];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[y]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]').forEach(g=>{const y=g.dataset.key;if(!y)return;g.innerText.replace(/[\u200B\n]/g,"").trim()||r(_=>{const w=_[y];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown-name"]').forEach(g=>{const y=g.dataset.key;if(!y)return;g.innerText.replace(/[\u200B\n]/g,"").trim()||i(_=>{const w=_[y];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="richtext"][data-node-type="markdown-module"]').forEach(g=>{const y=g.dataset.key;if(!y)return;const S=g.innerText.replace(/[\u200B\n]/g,"").trim();g.getAttribute("data-is-placeholder")==="true"&&S&&!S.startsWith("请补充:")&&g.removeAttribute("data-is-placeholder"),S||(r(_=>{const w=_[y];return!w||w.status==="idle"?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}),i(_=>{const w=_[y];return!w||w.status==="idle"?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}))}),t.current&&t.current.querySelectorAll('[data-type="variable"]').forEach(g=>{if(g.dataset.variableRender==="antd-textarea")return;const y=g.innerText||"",S=!!g.querySelector("br")||y.includes(`
|
|
37
|
-
`),_=g.offsetHeight>32,P=y.replace(/\u200B/g,"").trim().length>0&&(S||_);g.classList.toggle("rte-variable-multiline",P),g.classList.toggle("rte-variable-force-block",P);const L=g.closest(".rte-inline-group");L&&L.classList.toggle("rte-inline-group-force-block",P);const T=g.closest(".required-upload-group, .required-multi-first");T&&T.classList.toggle("rte-required-group-force-block",P);const A=g.querySelector(".variable-info-icon");let x=g.querySelector(".rte-report-dropdown-host");if(!x&&g.dataset.multiKey&&g.dataset.key){const D=g.dataset.multiKey,I=o.find(C=>
|
|
34
|
+
`);let d=0;for(const E of c){const b=l.measureText(E||" ").width||0;d=Math.max(d,b)}const m=Number.parseFloat(n.letterSpacing||""),f=Number.isFinite(m)?m:0;if(f>0){const E=c.reduce((b,h)=>b.length>=h.length?b:h,"");d+=f*Math.max(0,E.length-1)}return Math.ceil(d)}function Ka(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 f=l.querySelector(".variable-info-icon");Array.from(l.childNodes).forEach(h=>{if(h.nodeType===Node.TEXT_NODE){l.removeChild(h);return}h.nodeType===Node.ELEMENT_NODE&&h.tagName==="BR"&&l.removeChild(h)});const E=document.createTextNode("");f&&f.parentNode===l?l.insertBefore(E,f):l.firstChild?l.insertBefore(E,l.firstChild):l.appendChild(E),l.classList.add("show-placeholder");const b=l.dataset.placeholder||"";if(b){const g=(()=>{try{const P=gc(b,l);if(!P||!Number.isFinite(P)){const L=Xa(b);return Math.max(0,L-22)}return P}catch{const P=Xa(b);return Math.max(0,P-22)}})(),y=(()=>{if(!l.classList.contains("rte-variable-with-icon"))return 0;const P=l.querySelector(".variable-info-icon:not(.hidden)");if(!P)return 24;try{const L=window.getComputedStyle(P),T=Math.ceil(P.getBoundingClientRect().width||0)||16,A=Math.ceil(Number.parseFloat(L.right||"0"))||4;return Math.max(16,Math.min(120,T+A+2))}catch{return 24}})();y>0?l.style.setProperty("--rte-icon-pad-right",`${y}px`):l.style.removeProperty("--rte-icon-pad-right");const S=2,_=y>0?y:8,w=Math.max(24,Math.min(600,Math.ceil(g+8+_+S)));l.style.minWidth=`${w}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 d=l.closest(".required-upload-group, .required-multi-first");d&&d.classList.toggle("rte-required-group-force-block",o);const m=d?d.parentElement?.closest(".exclusion-wrapper"):l.closest(".exclusion-wrapper");m&&m!==d&&m.classList.toggle("rte-exclusion-force-block",o)})}function Qa(e,t,a,l){if(!e.current)return;const n=b=>{b.classList.contains("rte-richtext-host-expanded")&&(b.style.setProperty("display","flex","important"),b.style.setProperty("flex-direction","column","important"),b.style.setProperty("flex","1 1 auto","important"),b.style.setProperty("min-height","0","important"),b.style.setProperty("width","100%","important"),b.style.setProperty("align-self","stretch","important"))},r=b=>{if(!b.closest('[data-rte-force-hidden="1"]')){if(b.classList.contains("rte-richtext-host-expanded")){n(b);return}if(b.classList.contains("required-upload-group")){b.style.setProperty("display","inline-flex","important");return}if(b.classList.contains("exclusion-wrapper")){b.classList.contains("rte-exclusion-force-block")?b.style.setProperty("display","block","important"):b.style.setProperty("display","inline-block","important");return}b.style.setProperty("display","inline-block","important")}},i=b=>{b.closest('[data-rte-force-hidden="1"]')||(b.style.display="none",b.style.setProperty("display","none","important"))},u=t.some(b=>b.exclusionGroup==="separator");if(u){const b=[];let h=[];for(const T of t){if(T.exclusionGroup==="separator"){h.length&&b.push(h),h=[];continue}!T.exclusionGroup||T.exclusionGroup==="separator"||(T.type==="upload"&&T.key?h.push({type:"upload",key:T.key}):(T.type==="video-url"||T.type==="video-upload")&&T.key?h.push({type:T.type,key:T.key}):(T.type==="variable"||T.type==="multi-variable"||T.type==="multi-variable-select"||T.type==="markdown"||T.type==="markdown-name"||T.type==="markdown-module")&&T.key?h.push({type:Ue(T.type)?"multi-variable":"variable",key:T.key}):h.push({type:"other",nodeType:T.type}))}h.length&&b.push(h);const v=T=>{const A=t.find(x=>x.type==="upload"&&x.key===T);return A?typeof A.maxCount=="number"&&A.maxCount>1?A.maxCount:1:0},g=b.map(T=>{for(const A of T)if(A.type!=="other"){if(A.type==="video-url"||A.type==="video-upload"){const x=l?.[A.key];if(x?.status==="success"&&x.videoUrl||x?.status==="loading")return!0;if(A.type==="video-url"){const k=e.current.querySelector(`[data-type="variable"][data-node-type="video-url"][data-key="${A.key}"]`);if(k&&!k.classList.contains("show-placeholder")&&k.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 x=v(A.key);for(let k=0;k<x;k++){const D=`${A.key}-${k}`;if(a[D]!==null&&a[D]!==void 0)return!0}continue}if(A.type==="multi-variable"){const x=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${A.key}"]`);for(const k of x){if(k.getAttribute("data-report-url"))return!0;if(k.dataset.variableRender==="antd-textarea"){const D=k.dataset.value||"";let I=D;try{I=decodeURIComponent(D)}catch{I=D}if(I.trim().length>0)return!0;continue}if(!k.classList.contains("show-placeholder")&&k.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 k=e.current.querySelector(`[data-type="variable"][data-key="${A.key}"]`);if(!k)continue;if(k.getAttribute("data-report-url"))return!0;if(k.dataset.variableRender==="antd-textarea"){const D=k.dataset.value||"";let I=D;try{I=decodeURIComponent(D)}catch{I=D}if(I.trim().length>0)return!0}else if(!k.classList.contains("show-placeholder")&&k.innerText.replace(/[\u200B\n]/g,"").trim().length>0)return!0;continue}}return!1}),y=g.some(Boolean),S=y?g.findIndex(Boolean):-1,_=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}"]`),w=T=>{for(const A of b[T]||[])if(A.type!=="other"){if(A.type==="video-url"||A.type==="video-upload"){const x=_(A.key);x&&r(x.closest(".exclusion-wrapper")||x);continue}if(A.type==="upload"){e.current.querySelectorAll(`[data-type="upload"][data-key="${A.key}"], [data-type="upload"][data-key^="${A.key}-"]`).forEach(k=>r(k.closest(".exclusion-wrapper")||k));continue}if(A.type==="multi-variable"){e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${A.key}"]`).forEach(k=>{const D=k.closest(".exclusion-wrapper")||k;r(D)});continue}if(A.type==="variable"){const x=e.current.querySelector(`[data-type="variable"][data-key="${A.key}"]`);x&&r(x.closest(".exclusion-wrapper")||x),e.current.querySelectorAll(`[data-node-type="markdown-module"][data-key="${A.key}"]`).forEach(D=>{const I=D.closest(".exclusion-wrapper")||D.closest(".rte-markdown-module-container")||D;r(I)})}}},P=T=>{for(const A of b[T]||[])if(A.type!=="other"){if(A.type==="video-url"||A.type==="video-upload"){const x=_(A.key);x&&i(x.closest(".exclusion-wrapper")||x);continue}if(A.type==="upload"){e.current.querySelectorAll(`[data-type="upload"][data-key="${A.key}"], [data-type="upload"][data-key^="${A.key}-"]`).forEach(k=>i(k.closest(".exclusion-wrapper")||k));continue}if(A.type==="multi-variable"){e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${A.key}"]`).forEach(k=>i(k.closest(".exclusion-wrapper")||k));continue}if(A.type==="variable"){const x=e.current.querySelector(`[data-type="variable"][data-key="${A.key}"]`);x&&i(x.closest(".exclusion-wrapper")||x),e.current.querySelectorAll(`[data-node-type="markdown-module"][data-key="${A.key}"]`).forEach(D=>{const I=D.closest(".exclusion-wrapper")||D.closest(".rte-markdown-module-container")||D;i(I)})}}};for(let T=0;T<b.length;T++)!y||T===S?w(T):P(T);e.current.querySelectorAll('[data-group="separator"]').forEach(T=>{T.closest('[data-rte-force-hidden="1"]')||(y?i(T):T.style.setProperty("display","inline-flex","important"))});return}const s=new Set,o={};for(const b of t)b.exclusionGroup&&b.exclusionGroup!=="separator"&&(s.add(b.exclusionGroup),o[b.exclusionGroup]||(o[b.exclusionGroup]=[]),o[b.exclusionGroup].push({type:b.type,key:b.key,exclusionGroup:b.exclusionGroup}));const c={};for(const b of s){c[b]=!1;for(const h of o[b])if((h.type==="video-url"||h.type==="video-upload")&&h.key){const v=l?.[h.key];if(v?.status==="success"&&v.videoUrl||v?.status==="loading"){c[b]=!0;break}if(h.type==="video-url"){const g=e.current.querySelector(`[data-type="variable"][data-node-type="video-url"][data-key="${h.key}"]`);if(g&&!g.classList.contains("show-placeholder")&&g.innerText.replace(/[\u200B\n]/g,"").trim().length>0){c[b]=!0;break}}}else if(h.type==="upload"&&h.key){if(a[h.key]!==null&&a[h.key]!==void 0){c[b]=!0;break}const v=t.find(g=>g.type==="upload"&&g.key===h.key);if(v&&typeof v.maxCount=="number")for(let g=0;g<v.maxCount;g++){const y=`${h.key}-${g}`;if(a[y]!==null&&a[y]!==void 0){c[b]=!0;break}}if(c[b])break}else if((h.type==="variable"||h.type==="multi-variable"||h.type==="multi-variable-select"||h.type==="markdown"||h.type==="markdown-name")&&h.key){if(e.current.querySelector(`[data-node-type="markdown-module"][data-key="${h.key}"]`)){c[b]=!0;break}const g=Ue(h.type)?e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${h.key}"]`):[e.current.querySelector(`[data-type="variable"][data-key="${h.key}"]`)].filter(Boolean);for(const y of g){if(y.getAttribute("data-report-url")){c[b]=!0;break}if(y.dataset.variableRender==="antd-textarea"){const S=y.dataset.value||"";let _=S;try{_=decodeURIComponent(S)}catch{_=S}if(_.trim().length>0){c[b]=!0;break}continue}if(!y.classList.contains("show-placeholder")&&y.innerText.replace(/[\u200B\n]/g,"").trim().length>0){c[b]=!0;break}}if(c[b])break}}const m=Object.keys(c).filter(b=>c[b]).length>0;let f=null;if(m&&u){for(const b of t)if(b.exclusionGroup&&b.exclusionGroup!=="separator"&&c[b.exclusionGroup]){f=b.exclusionGroup;break}}for(const b of s){const h=e.current.querySelectorAll(`[data-group="${b}"]`);u&&m&&f?b===f?h.forEach(r):h.forEach(i):h.forEach(r)}e.current.querySelectorAll('[data-group="separator"]').forEach(b=>{b.closest('[data-rte-force-hidden="1"]')||(m?i(b):b.style.setProperty("display","inline-flex","important"))})}function $l(e,t,a,l,n){if(!e.current){l(!1);return}const r=b=>{const h=b.getAttribute("data-node-type")||"";if(h!=="report-module"&&h!=="markdown-module")return(b.textContent||"").replace(/[\u200B]/g,"").trim();const v=(b.textContent||"").replace(/[\u200B]/g,"").trim(),g=Array.from(b.querySelectorAll(":scope > div"));if(g.length===0)return v;let y=-1;for(let w=0;w<g.length;w++)if((g[w].textContent||"").replace(/[\u200B]/g,"").trim().length>0){y=w;break}return g.filter((w,P)=>P!==y).map(w=>(w.textContent||"").replace(/[\u200B]/g,"").trim()).join(`
|
|
36
|
+
`).trim()||v},i=b=>b?!!b.closest('[data-rte-force-hidden="1"]'):!1,u=[];for(let b=0;b<t.length;b++){const h=t[b];if((h.type==="variable"||h.type==="report-url"||h.type==="markdown"||h.type==="markdown-name"||h.type==="upload"||h.type==="multi-variable"||h.type==="multi-variable-select"||h.type==="select"||h.type==="textarea"||h.type==="richtext"||h.type==="report-module"||h.type==="markdown-module"||h.type==="datepicker"||h.type==="number-input"||h.type==="video-url"||h.type==="video-upload")&&h.required&&h.key){u.push({exclusionGroup:h.exclusionGroup||"",key:h.key,type:Ue(h.type)||h.type==="report-url"||h.type==="markdown"||h.type==="markdown-name"?"variable":h.type==="report-module"||h.type==="markdown-module"?"richtext":h.type==="video-url"?"video-url":h.type==="video-upload"?"video-upload":h.type,isMultiVariable:Ue(h.type),minCount:Ue(h.type)||h.type==="upload"&&typeof h.minCount=="number"?h.minCount:void 0,moduleIndex:h.type==="report-module"||h.type==="markdown-module"?h.moduleIndex:void 0,__index:b});continue}if(h.type==="text"&&h.className?.includes("rte-text-required"))if(h.exclusionGroup)for(let v=b+1;v<t.length;v++){const g=t[v];if(g.exclusionGroup===h.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:h.exclusionGroup,key:g.key,type:g.type==="markdown"?"variable":g.type,__index:v});break}}else for(let v=b+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(b=>b.exclusionGroup==="separator"),o=[];if(s&&u.length>1){const b=[];t.forEach((h,v)=>{h.exclusionGroup==="separator"&&b.push(v)});for(const h of b){const g=u.filter(_=>typeof _.__index=="number"&&_.__index<h).sort((_,w)=>(w.__index??0)-(_.__index??0))[0],S=u.filter(_=>typeof _.__index=="number"&&_.__index>h).sort((_,w)=>(_.__index??0)-(w.__index??0))[0];g&&S&&o.push([g,S])}}if(u.length===0){if(t.length===0){if(!e.current){l(!1);return}const b=e.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";l(b.length>0);return}l(!0);return}const c=u.filter(b=>{if(!e.current)return!1;if(b.exclusionGroup){const h=e.current.querySelectorAll(`[data-group="${b.exclusionGroup}"]`);if(h.length>0){const v=h[0];return i(v)?!0:v.style.display!=="none"}}if(b.type==="upload"&&b.key){const h=e.current.querySelector(`[data-type="upload"][data-key="${b.key}"]`)||e.current.querySelector(`[data-type="upload"][data-batch-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="variable"&&b.key)if(b.isMultiVariable){const h=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${b.key}"]`);if(h.length>0){const v=h[0],g=v.closest("[data-group]")||v.parentElement;return i(g)?!0:g?g.style.display!=="none":!0}}else{const h=e.current.querySelector(`[data-type="variable"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="select"&&b.key){const h=e.current.querySelector(`[data-type="select"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="textarea"&&b.key){const h=e.current.querySelector(`[data-type="textarea"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="richtext"&&b.key){const h=typeof b.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"]`:`[data-type="richtext"][data-key="${b.key}"]`,v=e.current.querySelector(h);if(v){const g=v.closest("[data-group]")||v.parentElement;return i(g)?!0:g?g.style.display!=="none":!0}}else if(b.type==="datepicker"&&b.key){const h=e.current.querySelector(`[data-type="datepicker"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if(b.type==="number-input"&&b.key){const h=e.current.querySelector(`[data-type="number-input"][data-key="${b.key}"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}else if((b.type==="video-url"||b.type==="video-upload")&&b.key){const h=e.current.querySelector(`[data-type="${b.type}"][data-key="${b.key}"], [data-type="variable"][data-key="${b.key}"][data-node-type="video-url"]`);if(h){const v=h.closest("[data-group]")||h.parentElement;return i(v)?!0:v?v.style.display!=="none":!0}}return!1});if(c.length===0){l(!0);return}const d=new Set;o.forEach(b=>{b.forEach(h=>{h.key&&d.add(h.key)})});const m=c.filter(b=>!b.key||!d.has(b.key));let f=(o.length===0,!0);for(const b of o){const h=b.filter(g=>{if(!e.current)return!1;if(g.exclusionGroup){const y=e.current.querySelectorAll(`[data-group="${g.exclusionGroup}"]`);if(y.length>0){const S=y[0];return i(S)?!0:S.style.display!=="none"}}return!0});if(h.length===0)continue;let v=!1;for(const g of h)if(g.type==="upload"&&g.key){if(g.minCount&&g.minCount>0){let y=0;const S=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${g.key}"]`);if(S.length===0)continue;for(let _=0;_<S.length;_++){const P=S[_].dataset.key;P&&a[P]!=null&&(y+=1)}if(y>=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 y=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${g.key}"]`);let S=0;for(const w of Array.from(y)){if(w.classList.contains("show-placeholder"))continue;w.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(S+=1)}const _=g.minCount&&g.minCount>0?g.minCount:1;if(S>=_){v=!0;break}}else{const y=e.current.querySelector(`[data-type="variable"][data-key="${g.key}"]`);if(y){if(y.classList.contains("show-placeholder"))continue;if(y.innerText.replace(/[\u200B\n]/g,"").trim().length>0){const _=y.dataset.nodeType;if((_==="markdown"||_==="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 y=e.current.querySelector(`[data-type="select"][data-key="${g.key}"]`);if(y&&(y.getAttribute("data-value")||"").trim().length>0){v=!0;break}}else if(g.type==="textarea"&&g.key){const y=e.current.querySelector(`[data-type="textarea"][data-key="${g.key}"]`);if(y&&(y.value||"").trim().length>0){v=!0;break}}else if(g.type==="richtext"&&g.key){const y=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}"]`,S=e.current.querySelector(y);if(S){if(S.getAttribute("data-is-placeholder")==="true")continue;if(r(S).length>0){v=!0;break}}}else if(g.type==="datepicker"&&g.key){const y=e.current.querySelector(`[data-type="datepicker"][data-key="${g.key}"]`);if(y&&(y.getAttribute("data-value")||"").trim().length>0){v=!0;break}}else if(g.type==="number-input"&&g.key){const y=e.current.querySelector(`[data-type="number-input"][data-key="${g.key}"]`);if(y&&(y.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){f=!1;break}}let E=!0;for(const b of m)if(b.type==="upload"&&b.key){if(b.minCount&&b.minCount>0){let h=0;const v=e.current.querySelectorAll(`[data-type="upload"][data-batch-key="${b.key}"]`);if(v.length===0){E=!1;break}for(let g=0;g<v.length;g++){const S=v[g].dataset.key;S&&a[S]!=null&&(h+=1)}if(h<b.minCount){E=!1;break}}else if(a[b.key]===null||a[b.key]===void 0){E=!1;break}}else if(b.type==="variable"&&b.key)if(b.isMultiVariable){const h=e.current.querySelectorAll(`[data-type="variable"][data-multi-key="${b.key}"]`);let v=0;for(const y of Array.from(h)){if(y.classList.contains("show-placeholder"))continue;y.innerText.replace(/[\u200B\n]/g,"").trim().length>0&&(v+=1)}const g=b.minCount&&b.minCount>0?b.minCount:1;if(v<g){E=!1;break}}else{const h=e.current.querySelector(`[data-type="variable"][data-key="${b.key}"]`);if(!h){E=!1;break}if(h.classList.contains("show-placeholder")){E=!1;break}if(h.innerText.replace(/[\u200B\n]/g,"").trim().length===0){E=!1;break}const g=h.dataset.nodeType;if((g==="markdown"||g==="markdown-name")&&!!!e.current.querySelector(`[data-node-type="markdown-module"][data-key="${b.key}"]`)){E=!1;break}}else if(b.type==="select"&&b.key){const h=e.current.querySelector(`[data-type="select"][data-key="${b.key}"]`);if(!h||(h.getAttribute("data-value")||"").trim().length===0){E=!1;break}}else if(b.type==="textarea"&&b.key){const h=e.current.querySelector(`[data-type="textarea"][data-key="${b.key}"]`);if(!h||(h.value||"").trim().length===0){E=!1;break}}else if(b.type==="richtext"&&b.key){const h=typeof b.moduleIndex=="number"?`[data-type="richtext"][data-node-type="report-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${b.key}"][data-module-index="${b.moduleIndex}"]`:`[data-type="richtext"][data-key="${b.key}"]`,v=e.current.querySelector(h);if(v&&v.getAttribute("data-is-placeholder")==="true"){E=!1;break}if(!v||r(v).length===0){E=!1;break}}else if(b.type==="datepicker"&&b.key){const h=e.current.querySelector(`[data-type="datepicker"][data-key="${b.key}"]`);if(!h||(h.getAttribute("data-value")||"").trim().length===0){E=!1;break}}else if(b.type==="number-input"&&b.key){const h=e.current.querySelector(`[data-type="number-input"][data-key="${b.key}"]`);if(!h||(h.value||"").trim().length===0){E=!1;break}}else if((b.type==="video-url"||b.type==="video-upload")&&b.key&&n?.[b.key]?.status!=="success"){E=!1;break}l(f&&E)}const Ec=({config:e,effectiveConfig:t,files:a,editorRef:l,setIsFormValid:n,multiVariableCounts:r,setMultiVariableCounts:i,videoState:u})=>{N.useLayoutEffect(()=>{const s=l.current;if(!s)return;const o=new Map,c=f=>{const E=f.target,b=f.relatedTarget;!E||!l.current||!l.current.contains(E)||b&&l.current.contains(b)||setTimeout(()=>{if(l.current){if(e.length===0){const h=l.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"";n(h.length>0);return}Ka(l),Qa(l,t,a,u),$l(l,t,a,n,u)}},0)};s.addEventListener("blur",c,!0);const d=()=>{if(!l.current)return;o.forEach((b,h)=>{h.removeEventListener("blur",b,!1)}),o.clear();const f=l.current.querySelectorAll('[data-type="variable"][data-multi-key]'),E=b=>{b.stopPropagation(),b.stopImmediatePropagation();const h=b.target;if(!h||!l.current||!l.current.contains(h))return;const v=h.closest('[data-type="variable"][data-multi-key]');if(!v||!l.current.contains(v))return;let g=!1;if(o.forEach((A,x)=>{(x===v||x.contains(h))&&(g=!0)}),!g)return;const y=v.dataset.multiKey,S=v.dataset.key,_=v.dataset.index;if(!y||!S||_===void 0)return;const w=b.relatedTarget;if(!(!w||!l.current.contains(w)))return;const L=v.innerText.replace(/[\u200B\n]/g,"").trim(),T=/[、,,\s]+/;if(T.test(L)){const k=L.split(T).map(D=>D.trim()).filter(D=>D.length>0).slice(0,9);if(k.length>1){const D=e.find(I=>Ue(I.type)&&I.key===y);if(D){const I=r[y]||1,C=parseInt(_,10),B=D.maxCount||9,$=[];for(let G=0;G<I;G++){const R=`${y}_${G}`,K=l.current.querySelector(`[data-type="variable"][data-key="${R}"][data-multi-key="${y}"]`);if(K){const re=K.innerText.replace(/[\u200B\n]/g,"").trim();$.push(re)}}$.splice(C,1,...k);const F=$.slice(0,B);F.length>0&&F[F.length-1]!==""&&F.length<B&&F.push("");const z=Math.max(F.length,1),O={};F.forEach((G,R)=>{G&&(O[`${y}_${R}`]=G)}),l.current.querySelectorAll('[data-type="variable"]').forEach(G=>{const R=G.dataset.key,K=G.dataset.multiKey;if(R&&K!==y){const re=G.innerText.replace(/[\u200B\n]/g,"").trim();re&&(O[R]=re)}}),l.current.__tempVariableValues=O,i(G=>({...G,[y]:z}))}}}};f.forEach(b=>{b.addEventListener("blur",E,!1),o.set(b,E)})},m=setTimeout(()=>{d()},0);return()=>{clearTimeout(m),s.removeEventListener("blur",c,!0),o.forEach((f,E)=>{E.removeEventListener("blur",f,!1)}),o.clear()}},[e,t,l,a,r,n,i,u])},yc=({disabled:e,collapsed:t,onCollapsedChange:a,config:l,lockStructure:n,editorRef:r,containerRef:i,fileInputRef:u,onBeforeFilePickerOpen:s,files:o,setFiles:c,handleRemoveFile:d,setActiveBatchKey:m,setActiveBatchStartIndex:f,setActiveFileKey:E,isDraggingRef:b,richtextPrevScrollTopRef:h,videoState:v,setVideoState:g,videoFileInputRef:y,activeVideoKeyRef:S,onImagePreview:_})=>{const w=(...L)=>{},P=L=>{try{const T=window.getSelection();if(!T)return w(L,"no selection");const A=T.rangeCount>0?T.getRangeAt(0):null;w(L,{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 N.useCallback(L=>{if(e)return;t&&a?.(!1);const T=L.target;if(w("click",{tag:T.tagName,cls:T.className}),P("before click"),T.closest('[data-type="datepicker"]'))return;if(T.closest(".tag-close-btn")){L.preventDefault(),L.stopPropagation();return}if(l.length===0)return;const k=(W,G)=>{if(!r.current)return;Array.from(r.current.children).forEach(K=>{if(K!==W)if(G)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 re=K.dataset.prevDisplay;re?K.style.display=re:K.style.removeProperty("display"),delete K.dataset.prevDisplay}else K.style.removeProperty("display");delete K.dataset.rteForceHidden}})},D=T.closest(".rte-textarea-toggle");if(D){L.preventDefault(),L.stopPropagation();const W=D.closest(".rte-textarea-wrapper"),G=W?.querySelector('[data-type="textarea"]'),K=!(D.getAttribute("data-expanded")==="true");D.setAttribute("data-expanded",String(K)),D.textContent=K?"收起":"展开",W&&W.classList.toggle("rte-textarea-expanded",K);const re=W?.closest(".rte-textarea-required");if(re?re.classList.toggle("rte-textarea-overlay",K):W&&W.classList.toggle("rte-textarea-overlay",K),G)if(K)G.classList.add("rte-textarea-expanded"),G.style.maxHeight="none",G.style.height="100%";else{G.classList.remove("rte-textarea-expanded");const le=G.dataset.maxHeight||"252";G.style.maxHeight=`${le}px`,G.style.height="auto"}r.current&&(K?r.current.classList.add("rte-overlay-active"):r.current.classList.remove("rte-overlay-active"));return}const I=T.closest(".rte-richtext-toggle");if(I){L.preventDefault(),L.stopPropagation();const W=I.closest(".rte-richtext-wrapper"),G=W?.querySelector('[data-type="richtext"]'),K=!(I.getAttribute("data-expanded")==="true");((ae,ce)=>{ae.setAttribute("data-expanded",String(ce)),ae.innerHTML=ce?'<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>'})(I,K);const le=W?.closest(".rte-richtext-required");le?le.classList.toggle("rte-richtext-expanded",K):W&&W.classList.toggle("rte-richtext-expanded",K);const Y=W?.closest(".exclusion-wrapper")||W?.parentElement;if(G&&(K?(G.style.height="100%",G.style.overflow="auto"):(G.style.height="",G.style.overflow="")),Y&&(Y.classList.toggle("rte-richtext-host-expanded",K),k(Y,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 ae=Math.ceil(i.current.getBoundingClientRect().height||0);ae>0&&i.current.style.setProperty("--rte-richtext-fullscreen-height",`${ae}px`)}else i.current.style.removeProperty("--rte-richtext-fullscreen-height");if(K)h.current=r.current.scrollTop||0,setTimeout(()=>{r.current&&(r.current.scrollTop=0,r.current.scrollLeft=0)},0);else{const ae=h.current||0;setTimeout(()=>{r.current&&(r.current.scrollTop=ae)},0)}}return}if(T.closest('[data-type="text"]')){L.preventDefault(),L.stopPropagation();const W=window.getSelection();W&&W.removeAllRanges();return}if(n&&T.closest(".tag-node")){L.preventDefault(),L.stopPropagation();const G=window.getSelection();G&&G.removeAllRanges();return}const B=T.closest('[data-type="variable"]');if(B){if(b.current||B.getAttribute("data-report-url"))return;if(B.dataset.variableRender!=="antd-textarea"){const W=!!T.closest(".variable-info-icon"),G=B.classList.contains("show-placeholder")||(B.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(w("v1 variable click",{key:B.dataset.key,isPlaceholder:G,isOnIcon:W,classes:B.className,innerText:B.innerText}),G&&!W){L.preventDefault();const R=()=>{try{B.focus();const K=window.getSelection();if(!K)return;const re=document.createTreeWalker(B,NodeFilter.SHOW_TEXT),le=re.nextNode()?re.currentNode:null,Y=document.createRange();le?(Y.setStart(le,0),Y.collapse(!0)):(Y.selectNodeContents(B),Y.collapse(!0)),K.removeAllRanges(),K.addRange(Y),P("after placeCaretLeft()")}catch{}};setTimeout(()=>{window.requestAnimationFrame(R),window.requestAnimationFrame(()=>P("post-raf (click)"))},0)}}setTimeout(()=>{const W=window.getSelection();W&&!W.isCollapsed||Ka(r)},10);return}const $=T.closest(".video-remove-btn");if($){L.preventDefault(),L.stopPropagation();const G=$.closest('[data-type="video-url"], [data-type="video-upload"]')?.dataset.key;G&&g&&g(R=>{const K={...R};return delete K[G],K});return}const F=T.closest('[data-type="video-upload"]');if(F){L.preventDefault(),L.stopPropagation();const W=F.dataset.key;W&&y?.current&&S&&(S.current=W,y.current.value="",y.current.click());return}const z=T.closest(".file-remove-btn");if(z){L.preventDefault(),L.stopPropagation();const W=z.closest('[data-type="upload"]'),G=W?.dataset.key,R=W?.dataset.batchKey;if(G)if(R){const K=l.find(re=>re.type==="upload"&&re.key===R);if(K&&typeof K.maxCount=="number"&&typeof K.minCount=="number"){const re=K.maxCount;c(le=>{const Y={...le},ae=[];for(let ce=0;ce<re;ce++){const me=`${R}-${ce}`,pe=Y[me];pe!=null&&me!==G&&ae.push(pe)}for(let ce=0;ce<re;ce++)delete Y[`${R}-${ce}`];return ae.forEach((ce,me)=>{Y[`${R}-${me}`]=ce}),Y})}else d(G)}else d(G);return}const O=T.closest('[data-type="upload"]');if(O){const W=O.dataset.key,G=O.dataset.batchKey,R=O.dataset.batchIndex;if(W){const K=o[W];if(K&&_&&(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||""))){L.preventDefault(),L.stopPropagation();const ae=typeof K=="string"?K:URL.createObjectURL(K);_(ae);return}const re=G||W,le=l.find(Y=>Y.type==="upload"&&Y.key===re);if(u.current&&(le?.accept?u.current.accept=le.accept:le?.acceptType==="image"?u.current.accept="image/*":le?.acceptType==="file"?u.current.accept=".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json":u.current.accept=""),G){const Y=l.find(ae=>ae.type==="upload"&&ae.key===G);if(Y&&typeof Y.maxCount=="number"&&typeof Y.minCount=="number"){const ae=Y.maxCount,ce=o[W]!=null,me=R!=null?Number.parseInt(R,10):NaN;if(ce){u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click();return}let pe=0;for(let He=0;He<ae;He++)o[`${G}-${He}`]!=null&&(pe+=1);pe<ae&&u.current?(u.current.multiple=!0,m(G),f(Number.isFinite(me)?me:null),E(null),s?.(),u.current.click()):(u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click())}else u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click()}else u.current&&(u.current.multiple=!1),m(null),f(null),E(W),s?.(),u.current?.click()}return}},[t,l,i,e,r,u,s,o,d,b,n,a,h,m,f,E,c,g,y,S,_])},Tc=({config:e,editorRef:t,setIsEmpty:a,setIsFormValid:l,setReportAnalyzeState:n,setMarkdownAnalyzeState:r,setMarkdownNameAnalyzeState:i,collapsed:u,measureExpandedContentHeight:s,effectiveConfig:o,files:c,multiVariableCounts:d,setMultiVariableCounts:m,savedCursorRef:f,videoState:E,resolvedReportNamesRef:b})=>N.useCallback(()=>{if(e.length===0){if(t.current){const g=!(t.current.textContent?.replace(/[\u200B\n]/g,"").trim()||"");a(g),l(!g)}u||window.requestAnimationFrame(()=>{s()});return}if(Ka(t),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="report-url"]').forEach(g=>{const y=g.dataset.key;if(!y||g.getAttribute("data-report-url"))return;g.innerText.replace(/[\u200B\n]/g,"").trim()||n(_=>{const w=_[y];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[y]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown"]').forEach(g=>{const y=g.dataset.key;if(!y)return;g.innerText.replace(/[\u200B\n]/g,"").trim()||r(_=>{const w=_[y];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="variable"][data-node-type="markdown-name"]').forEach(g=>{const y=g.dataset.key;if(!y)return;g.innerText.replace(/[\u200B\n]/g,"").trim()||i(_=>{const w=_[y];return!w||w.status==="idle"&&(!w.modules||w.modules.length===0)?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}})}),t.current&&t.current.querySelectorAll('[data-type="richtext"][data-node-type="markdown-module"]').forEach(g=>{const y=g.dataset.key;if(!y)return;const S=g.innerText.replace(/[\u200B\n]/g,"").trim();g.getAttribute("data-is-placeholder")==="true"&&S&&!S.startsWith("请补充:")&&g.removeAttribute("data-is-placeholder"),S||(r(_=>{const w=_[y];return!w||w.status==="idle"?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}),i(_=>{const w=_[y];return!w||w.status==="idle"?_:{..._,[y]:{status:"idle",modules:[],lastParsedText:void 0,error:void 0}}}))}),t.current&&t.current.querySelectorAll('[data-type="variable"]').forEach(g=>{if(g.dataset.variableRender==="antd-textarea")return;const y=g.innerText||"",S=!!g.querySelector("br")||y.includes(`
|
|
37
|
+
`),_=g.offsetHeight>32,P=y.replace(/\u200B/g,"").trim().length>0&&(S||_);g.classList.toggle("rte-variable-multiline",P),g.classList.toggle("rte-variable-force-block",P);const L=g.closest(".rte-inline-group");L&&L.classList.toggle("rte-inline-group-force-block",P);const T=g.closest(".required-upload-group, .required-multi-first");T&&T.classList.toggle("rte-required-group-force-block",P);const A=g.querySelector(".variable-info-icon");let x=g.querySelector(".rte-report-dropdown-host");if(!x&&g.dataset.multiKey&&g.dataset.key){const D=g.dataset.multiKey,I=o.find(C=>Ue(C.type)&&C.key===D);if(I){const C=document.createElement("span");C.setAttribute("contenteditable","false"),C.className="rte-report-dropdown-host",C.dataset.key=g.dataset.key,C.dataset.multiKey=D,C.setAttribute("data-node-type",I.type==="multi-variable-select"?"multi-variable-select":"multi-variable"),g.appendChild(C),x=C}}const k=A||x;if(k){let D=!1;const I=document.createTreeWalker(g,NodeFilter.SHOW_TEXT,{acceptNode:B=>k.contains(B)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(;I.nextNode();)if(I.currentNode.textContent?.replace(/[\u200B\n]/g,"").trim()){D=!0;break}!!g.getAttribute("data-report-url")?k.classList.remove("hidden"):D?k.classList.add("hidden"):k.classList.remove("hidden"),g.classList.toggle("rte-variable-with-icon",!k.classList.contains("hidden"))}}),u||window.requestAnimationFrame(()=>{s()}),Qa(t,o,c,E),$l(t,o,c,l,E),!t.current)return;e.filter(v=>Ue(v.type)&&v.key).forEach(v=>{if(!v.key)return;const g=v.maxCount||9,y=d[v.key]||1,S=[];for(let T=0;T<y;T++){const A=`${v.key}_${T}`,x=t.current.querySelector(`[data-type="variable"][data-key="${A}"][data-multi-key="${v.key}"]`);if(x){const k=(x.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
38
38
|
`).trim();S.push(k)}}const w=(S[S.length-1]||"")==="";let P=!1,L=-1;for(let T=0;T<S.length-1;T++)if(S[T]===""){P=!0,L=T;break}if(P&&L>=0){const T=window.getSelection();if(T&&T.rangeCount>0){const B=T.getRangeAt(0),$=B.startContainer,F=$.nodeType===Node.ELEMENT_NODE?$.closest('[data-type="variable"][data-multi-key]'):$.parentElement?.closest('[data-type="variable"][data-multi-key]');if(F){const z=F.dataset.key;if(z){const O=document.createRange();O.setStartBefore(F),O.setEnd(B.startContainer,B.startOffset);const W=O.toString().length;f.current={key:z,offset:W}}}}const A=[];for(let B=0;B<y;B++){const $=`${v.key}_${B}`,F=t.current.querySelector(`[data-type="variable"][data-key="${$}"][data-multi-key="${v.key}"]`),z=F?.getAttribute("data-report-url"),O=F?.getAttribute("data-report-name");A.push(z&&O?{name:O,url:z}:null)}const x=[...S];for(let B=L;B<x.length-1;B++)x[B]=x[B+1];x.pop();const k=[...A];for(let B=L;B<k.length-1;B++)k[B]=k[B+1];if(k.pop(),b?.current){for(let B=0;B<y;B++)delete b.current[`${v.key}_${B}`];k.forEach((B,$)=>{B&&(b.current[`${v.key}_${$}`]=B)})}const D={};x.forEach((B,$)=>{B&&(D[`${v.key}_${$}`]=B)});const I=Math.max(w?x.length:x.length+1,1);t.current.querySelectorAll('[data-type="variable"]').forEach(B=>{const $=B.dataset.key,F=B.dataset.multiKey;if($&&F!==v.key){const z=(B.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
39
39
|
`).trim();z&&(D[$]=z)}}),t.current.__tempVariableValues=D,m(B=>({...B,[v.key]:I}));return}if(!w){const T=y-1,A=`${v.key}_${T}`,x=t.current.querySelector(`[data-type="variable"][data-key="${A}"][data-multi-key="${v.key}"]`);if(x&&(x.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
40
|
-
`).trim().length>0&&y<g){const D=window.getSelection();if(D&&D.rangeCount>0){const I=D.getRangeAt(0),C=I.startContainer,B=C.nodeType===Node.ELEMENT_NODE?C.closest('[data-type="variable"][data-multi-key]'):C.parentElement?.closest('[data-type="variable"][data-multi-key]');if(B){const $=B.dataset.key;if($){const F=document.createRange();F.setStartBefore(B),F.setEnd(I.startContainer,I.startOffset);const z=F.toString().length;f.current={key:$,offset:z}}}}m(I=>({...I,[v.key]:y+1}))}}})},[u,e,t,o,c,s,d,f,a,l,r,i,m,n,b,E]),yc=({disabled:e,lockStructure:t,config:a,editorRef:l,handleInput:n,onEnterSend:r,onReportChipDeleted:i})=>N.useCallback(u=>{if(e){u.preventDefault();return}const s=u.target;if(s&&(s.tagName==="TEXTAREA"||s.tagName==="INPUT")&&s.closest?.('[data-variable-render="antd-textarea"]'))return;{const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0);if(!d.collapsed&&d.startContainer===d.endContainer&&d.startContainer.nodeType===Node.ELEMENT_NODE&&d.endOffset-d.startOffset===1){const m=d.startContainer.childNodes[d.startOffset];if(m?.nodeType===Node.ELEMENT_NODE&&m.getAttribute?.("data-report-url")&&m.getAttribute?.("data-type")==="variable"&&!["Shift","Control","Alt","Meta","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","CapsLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"].includes(u.key)&&!u.ctrlKey&&!u.metaKey&&!u.altKey){u.preventDefault();const E=m,b=E.dataset.key||"",h=E.getAttribute("data-node-type")||"",v=E.dataset.multiKey||"";E.removeAttribute("data-report-url"),E.removeAttribute("data-report-name"),E.classList.remove("rte-report-name-chip"),E.contentEditable="true";const g=E.querySelector(".rte-report-dropdown-host");g?.parentNode&&g.parentNode.removeChild(g);const y=E.querySelector(".rte-report-chip-clear-host");if(y?.parentNode&&y.parentNode.removeChild(y),E.textContent="",E.classList.add("show-placeholder"),g)g.classList.remove("hidden"),g.style.display="",E.appendChild(g);else{const S=document.createElement("span");S.contentEditable="false",S.className="rte-report-dropdown-host",S.dataset.key=b,S.dataset.nodeType=h,v&&(S.dataset.multiKey=v),E.appendChild(S)}E.classList.add("rte-variable-with-icon"),i?.(b,h),E.focus(),u.key.length===1&&(document.execCommand("insertText",!1,u.key),E.classList.remove("show-placeholder")),n();return}}}}if(u.key==="Enter"){const c=u.target,d=c?.closest?.('[data-type="variable"]'),m=!!c?.closest?.('[data-type="richtext"]'),f=c?.tagName==="TEXTAREA"||!!c?.closest?.('[data-type="textarea"]');if(d){const E=d.getAttribute("data-node-type")||"";if(E==="report-url"||E==="markdown"||E==="markdown-name"){u.preventDefault();return}if(!(()=>{const v=d.dataset.multiKey;if(v)return a.find(_=>He(_.type)&&_.key===v)?.allowNewline!==!1;const g=d.dataset.key;return a.find(S=>S.type==="variable"&&S.key===g)?.allowNewline!==!1})()){u.preventDefault();return}u.preventDefault();const h=window.getSelection();if(h&&h.rangeCount>0){const v=h.getRangeAt(0);v.deleteContents();const g=document.createElement("br");v.insertNode(g);const y=document.createTextNode("");g.parentNode?.insertBefore(y,g.nextSibling),v.setStart(y,0),v.collapse(!0),h.removeAllRanges(),h.addRange(v)}n();return}if(!m&&!f){u.preventDefault(),a.length===0&&!u.shiftKey&&r&&r();return}}const o=window.getSelection();if(o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest('[data-type="text"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest('[data-type="text"]'))),d){if(u.preventDefault(),u.stopPropagation(),l.current){const m=l.current.querySelector('[data-type="variable"], [data-type="upload"]');m&&m.focus()}return}}if(t&&o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest(".tag-node"):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest(".tag-node"))),d){if(u.preventDefault(),u.stopPropagation(),l.current){const m=l.current.querySelector('[data-type="variable"], [data-type="upload"]');m&&m.focus()}return}}if(u.key==="Escape"&&l.current){if(t){u.preventDefault();return}l.current.innerHTML="",l.current.focus()}if(u.key==="Backspace"){const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0),m=c.anchorNode;if(t){let E=null,b=null;if(m&&(m.nodeType===Node.ELEMENT_NODE?(E=m.closest(".tag-node"),b=m.closest('[data-type="text"]')):m.nodeType===Node.TEXT_NODE&&m.parentElement&&(E=m.parentElement.closest(".tag-node"),b=m.parentElement.closest('[data-type="text"]'))),(E||b)&&d.collapsed&&d.startOffset===0){u.preventDefault();return}}let f=null;if(m&&(m.nodeType===Node.ELEMENT_NODE?f=m.closest('[data-type="variable"]'):m.nodeType===Node.TEXT_NODE&&m.parentElement&&(f=m.parentElement.closest('[data-type="variable"]'))),f){if(f.getAttribute("data-report-url")){u.preventDefault();const v=f.dataset.key||"",g=f.getAttribute("data-node-type")||"",y=f.dataset.multiKey||"";f.removeAttribute("data-report-url"),f.removeAttribute("data-report-name"),f.classList.remove("rte-report-name-chip"),f.contentEditable="true";const S=f.querySelector(".rte-report-dropdown-host");S?.parentNode&&S.parentNode.removeChild(S);const _=f.querySelector(".rte-report-chip-clear-host");if(_?.parentNode&&_.parentNode.removeChild(_),f.textContent="",f.classList.add("show-placeholder"),S)S.classList.remove("hidden"),S.style.display="",f.appendChild(S);else{const w=document.createElement("span");w.contentEditable="false",w.className="rte-report-dropdown-host",w.dataset.key=v,w.dataset.nodeType=g,y&&(w.dataset.multiKey=y),f.appendChild(w)}f.classList.add("rte-variable-with-icon"),i?.(v,g),f.focus(),n();return}if(!d.collapsed)return;const E=f.innerText;if(E===""||E===""){u.preventDefault();return}if((()=>{try{const v=document.createRange();v.selectNodeContents(f),v.setEnd(d.startContainer,d.startOffset);const g=v.cloneContents(),y=document.createTreeWalker(g,NodeFilter.SHOW_ALL);for(;y.nextNode();){const S=y.currentNode;if(S.nodeType===Node.ELEMENT_NODE){if(S.tagName==="BR")return!1}else if(S.nodeType===Node.TEXT_NODE&&(S.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return d.startOffset===0}})()){u.preventDefault();return}if(E.startsWith("")&&d.startOffset===1){u.preventDefault();return}}}}},[a,e,l,n,t,r,i]),Tc=({lockStructure:e,onAgentExit:t,editorRef:a,setPopoverVisible:l,isDraggingRef:n,mouseDownPosRef:r})=>{const i=(...m)=>{},u=m=>{try{const f=window.getSelection();if(!f)return i(m,"no selection");const E=f.rangeCount>0?f.getRangeAt(0):null;i(m,{rangeCount:f.rangeCount,isCollapsed:f.isCollapsed,anchorNode:f.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":f.anchorNode?.nodeName,anchorOffset:f.anchorOffset,focusNode:f.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":f.focusNode?.nodeName,focusOffset:f.focusOffset,range:E?{startContainer:E.startContainer.nodeType===Node.TEXT_NODE?"TEXT":E.startContainer.nodeName,startOffset:E.startOffset,endContainer:E.endContainer.nodeType===Node.TEXT_NODE?"TEXT":E.endContainer.nodeName,endOffset:E.endOffset}:null})}catch{}},s=N.useCallback(m=>{const f=m.target;if(i("mousedown",{tag:f.tagName,cls:f.className}),u("before mousedown"),f.closest(".rte-datepicker-wrapper")||f.closest(".rte-datepicker-host")||f.closest(".rte-select-wrapper")||f.closest(".rte-select-host")||f.closest(".ant-select-dropdown"))return;if(f.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 h=f.closest(".tag-node"),v=f.closest('[data-type="text"]');if(h||v){m.preventDefault(),m.stopPropagation();const g=window.getSelection();g&&g.removeAllRanges();return}}const b=f.closest('[data-type="variable"]');if(b){if(i("mousedown on variable",{key:b.dataset.key,multiKey:b.dataset.multiKey,nodeType:b.getAttribute("data-node-type")||"",render:b.dataset.variableRender||"v1",classes:b.className}),b.dataset.variableRender==="antd-textarea")return;if(b.getAttribute("data-report-url")){console.log("[RTE-REPORT] React mouseHandlers hit name chip",{key:b.dataset.key,hasDropdownHost:!!b.querySelector(".rte-report-dropdown-host")}),m.preventDefault(),b.hasAttribute("tabindex")||b.setAttribute("tabindex","-1"),b.focus(),window.getSelection()?.removeAllRanges();return}const h=!!f.closest(".variable-info-icon"),v=b.classList.contains("show-placeholder")||(b.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(i("v1 variable mousedown",{isPlaceholder:v,isOnIcon:h,innerText:b.innerText}),v&&!h){m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mousedown)");const g=window.getSelection();if(!g)return;const y=b;y.focus();const S=document.createTreeWalker(y,NodeFilter.SHOW_TEXT),_=S.nextNode()?S.currentNode:null,w=document.createRange();_?(w.setStart(_,0),w.collapse(!0)):(w.selectNodeContents(y),w.collapse(!0)),g.removeAllRanges(),g.addRange(w),u("raf after setRange (mousedown)")});return}return}r.current={x:m.clientX,y:m.clientY},n.current=!1,f.closest(".file-remove-btn")&&(m.preventDefault(),m.stopPropagation())},[a,n,e,r,t,l]),o=N.useCallback(m=>{if(!m.target.closest('[data-type="variable"]')&&r.current){const b=Math.abs(m.clientX-r.current.x),h=Math.abs(m.clientY-r.current.y);(b>3||h>3)&&(n.current=!0)}},[n,r]),c=N.useCallback(m=>{const f=m.target;i("mouseup",{tag:f.tagName,cls:f.className}),u("before mouseup");const E=f.closest('[data-type="variable"]');if(E){if(E.getAttribute("data-report-url")){m.preventDefault(),r.current=null,n.current=!1;return}if(E.dataset.variableRender!=="antd-textarea"){const b=!!f.closest(".variable-info-icon"),h=E.classList.contains("show-placeholder")||(E.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;i("v1 variable mouseup",{key:E.dataset.key,isPlaceholder:h,isOnIcon:b,classes:E.className}),h&&!b&&(m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mouseup)");const v=window.getSelection();if(!v)return;const g=E;g.focus();const y=document.createTreeWalker(g,NodeFilter.SHOW_TEXT),S=y.nextNode()?y.currentNode:null,_=document.createRange();S?(_.setStart(S,0),_.collapse(!0)):(_.selectNodeContents(g),_.collapse(!0)),v.removeAllRanges(),v.addRange(_),u("raf after setRange (mouseup)")}))}r.current=null,n.current=!1;return}r.current=null,n.current=!1},[n,r]),d=N.useCallback(m=>{const E=m.target.closest('[data-type="variable"]');if(E){const b=window.getSelection();if(b){const h=document.createRange(),v=E.textContent||"";if(v.replace(/\u200B/g,"")){let y=0,S=v.length;v.startsWith("")&&(y=1),v.endsWith("")&&v.length>1&&(S=v.length-1);const _=E.firstChild;_&&_.nodeType===Node.TEXT_NODE?(h.setStart(_,y),h.setEnd(_,S)):h.selectNodeContents(E)}else h.selectNodeContents(E),h.collapse(!0);b.removeAllRanges(),b.addRange(h)}}},[]);return{handleMouseDown:s,handleMouseMove:o,handleMouseUp:c,handleDoubleClick:d}},xc=({disabled:e,config:t,multiVariableCounts:a,setMultiVariableCounts:l,editorRef:n,handleInput:r,markdownAnalyzeRef:i,reportAnalyzeRef:u,markdownNameAnalyzeRef:s,markdownAnalyzeStateRef:o,markdownRawTextRef:c,setMarkdownAnalyzeState:d,setFooterFiles:m,footerFiles:f,messageApi:E,onPasteUnsupported:b})=>N.useCallback(h=>{const v=t.some(A=>A.type==="tag"),g=Array.from(h.clipboardData.files);if(g.length>0&&v){h.preventDefault();return}if(g.length>0){h.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"],x=[];let k=!1;for(const D of g){const I=(D.name||"").split(".").pop()?.toLowerCase()||"";A.includes(I)?x.push(D):k=!0}if(k&&b?.(),x.length>0){const I=f.reduce(($,F)=>$+F.size,0),C=[];let B=I;for(const $ of x){if(B+$.size>52428800){E.error("文件总大小不能超过 50MB");break}C.push($),B+=$.size}C.length>0&&m($=>[...C,...$])}return}const y=h.target;if(y&&(y.tagName==="TEXTAREA"||y.tagName==="INPUT")&&y.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){h.preventDefault();return}h.preventDefault();const _=(h.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
41
|
-
`).replace(/\n+$/g,""),w=window.getSelection();if(w&&w.rangeCount>0){const A=w.anchorNode;if(A){let x=null;if(A.nodeType===Node.ELEMENT_NODE?x=A.closest('[data-type="variable"]'):A.nodeType===Node.TEXT_NODE&&A.parentElement&&(x=A.parentElement.closest('[data-type="variable"]')),x){const k=x.dataset.multiKey;if(k){const C=/[、,,\s\n\r\t]+/,B=_.split(C).map($=>$.trim()).filter($=>$.length>0);if(B.length>1){const $=parseInt(x.dataset.index||"0",10),F=t.find(Y=>
|
|
42
|
-
`);for(let G=0;G<O.length;G++)F.appendChild(document.createTextNode(O[G])),C&&G<O.length-1&&F.appendChild(document.createElement("br"));$.insertNode(F),B.removeAllRanges();const W=document.createRange();W.selectNodeContents(x),W.collapse(!1),B.addRange(W)}r();return}}}}let P=!1,L="";const T=window.getSelection();if(T&&T.rangeCount>0){const A=T.anchorNode;if(A){let x=null;if(A.nodeType===Node.ELEMENT_NODE?x=A.closest('[data-type="variable"]'):A.nodeType===Node.TEXT_NODE&&A.parentElement&&(x=A.parentElement.closest('[data-type="variable"]')),x){const k=x.getAttribute("data-node-type")||"",D=x.dataset.key;if(k==="markdown"&&D&&/20\d{2}-\d{2}-\d{2}/.test(_))P=!0,L=D,c.current[D]=_,d(I=>({...I,[D]:{...I[D],status:"loading",error:void 0}}));else if(k==="report-url"&&D){document.execCommand("insertText",!1,_),r(),setTimeout(()=>{const I=x.innerText.replace(/[\u200B\n]/g,"").trim();u.current(D,I)},0);return}else if(k==="markdown-name"&&D){document.execCommand("insertText",!1,_),r(),setTimeout(()=>{const I=x.innerText.replace(/[\u200B\n]/g,"").trim();s.current(D,I)},0);return}}}}if(P&&L){setTimeout(()=>{i.current(L,_)},0);return}document.execCommand("insertText",!1,_),r(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(_)&&o.current.tableData?.status==="success"&&(d(x=>({...x,tableData:{status:"loading",modules:[],lastParsedText:_,error:void 0}})),setTimeout(()=>{c.current.tableData=_,i.current("tableData",_)},0))},0)},[t,e,n,r,i,o,c,a,b,u,m,f,E,d,l]);async function Hr(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 Cc=({config:e,files:t,footerFiles:a,onFooterFilesClear:l,onSend:n,isProcessing:r,disabled:i,loading:u,isFormValid:s,editorRef:o,markdownAnalyzeState:c,markdownNameAnalyzeState:d,videoState:m})=>N.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 y=new FormData;y.append("fullPrompt",g),a.forEach(S=>{y.append("fileUrls",S)}),n(y,g),l()}else n(g,g);if(o.current){o.current.textContent="";const y=new Event("input",{bubbles:!0});o.current.dispatchEvent(y)}return}const f=o.current;let E="";const b={},h=g=>{if(!(g.nodeType===Node.ELEMENT_NODE&&g.style.display==="none")){if(g.nodeType===Node.TEXT_NODE)E+=(g.textContent||"").replace(/\u200B/g,"");else if(g.nodeType===Node.ELEMENT_NODE){const y=g,S=y.dataset.type,_=y.dataset.key;if(S==="variable"&&_){let w="";const P=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:A=>{const x=y.querySelector(".variable-info-icon");return x&&x.contains(A)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;P.nextNode();)w+=P.currentNode.textContent||"";const T=y.getAttribute("data-report-url")||w.replace(/[\u200B\n]/g,"").trim();if(T){const A=y.dataset.multiKey;if(A){(!b[A]||!Array.isArray(b[A]))&&(b[A]=[]);const x=b[A];x.push(T),x.length>1&&(E+=" "),E+=T}else b[_]=T,E+=T;if(y.dataset.nodeType==="report-url")if(b.url===void 0)b.url=T;else{const x=b.url;Array.isArray(x)?x.push(T):b.url=[String(x),T]}if(y.dataset.nodeType==="markdown-name"){const x=`${_}__sourceText`;b[x]===void 0&&(b[x]=T)}if(y.dataset.nodeType==="markdown"){const x=y.dataset.sourceTextKey||`${_}__sourceText`;if(b[x]===void 0)b[x]=T;else{const D=b[x];Array.isArray(D)?D.push(T):b[x]=[String(D),T]}const k=`${_}__markdown`;b[k]===void 0&&(b[k]=[Fr(T)])}}}else if((S==="select"||S==="searchable-select"||S==="cascader")&&_){const w=(y.getAttribute("data-value")||"").trim();w&&(b[_]=w,E+=w)}else if(S==="textarea"&&_){const P=(y.value||"").replace(/\u200B/g,"").trim();P&&(b[_]=P,E+=P)}else if(S==="richtext"&&_){const w=y,P=w.dataset.nodeType,L=(w.textContent||"").replace(/\u200B/g,"").trim();if(L)if(P==="report-module"||P==="markdown-module"){(!b[_]||!Array.isArray(b[_]))&&(b[_]=[]);const T=b[_];T.push(L),T.length>1&&(E+=" "),E+=L}else b[_]=L,E+=L}else if(S==="datepicker"&&_){const P=(y.getAttribute("data-value")||"").trim();if(P)if(P.includes(",")){const L=P.split(",");L.length===2?(b[_]=L,E+=`[${L[0]}, ${L[1]}]`):(b[_]=P,E+=P)}else b[_]=P,E+=P}else if(S==="number-input"&&_){const P=(y.value||"").trim();P&&(b[_]=P,E+=P)}else if(S==="upload"&&_){const w=y.dataset.batchKey;if(w){const P=e.find(L=>L.type==="upload"&&L.key===w);if(P&&typeof P.maxCount=="number"&&typeof P.minCount=="number"){const L=[];for(let T=0;T<P.maxCount;T++){const A=`${w}-${T}`,x=t[A];x&&L.push(x)}b[w]||(b[w]=L.length>0?L:null,L.length>0&&(E+=` [附带${L.length}个文件: ${L.map(T=>typeof T=="string"?T.split("/").pop()||"file":T.name).join(", ")}] `))}else if(b[_]=t[_]??null,t[_]){const L=t[_];E+=` [附带文件: ${typeof L=="string"?L.split("/").pop()||"file":L.name}] `}}else if(b[_]=t[_]??null,t[_]){const P=t[_];E+=` [附带文件: ${typeof P=="string"?P.split("/").pop()||"file":P.name}] `}}else if((S==="video-url"||S==="video-upload")&&_){const w=m?.[_];if(w?.status==="success"&&w.videoUrl){b[_]=w.videoUrl,w.file&&(b[`${_}__file`]=w.file);const P=w.fileName||"视频";E+=` [附带视频: ${P}] `}}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"&&!S&&y.classList.contains("tag-node")?E+=y.innerText:y.childNodes.forEach(h)}}}};if(f.childNodes.forEach(h),E=E.trim(),!E)return;Object.keys(c).forEach(g=>{const y=c[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(_=>(_?.markdown||"").trim()).filter(_=>_.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),Object.keys(d).forEach(g=>{const y=d[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(_=>(_?.markdown||"").trim()).filter(_=>_.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),(async()=>{for(const y of Object.keys(b)){const S=b[y];if(typeof S=="string"&&S.startsWith("http")){if(e.find(w=>w.type==="upload"&&w.key===y)){const w=await Hr(S);w&&(b[y]=w)}}else if(Array.isArray(S)&&e.find(w=>w.type==="upload"&&w.key===y)){for(let w=0;w<S.length;w++)if(typeof S[w]=="string"&&S[w].startsWith("http")){const P=await Hr(S[w]);P&&(S[w]=P)}}}const g=new FormData;g.append("fullPrompt",E),Object.keys(b).forEach(y=>{const S=b[y];if(S!=null)if(S instanceof File)g.append(y,S);else if(Array.isArray(S)){const _=e.some(T=>He(T.type)&&T.key===y),w=e.some(T=>T.type==="report-url"&&T.key===y),P=y.endsWith("__markdown");_||w||P||y==="url"?S.forEach(T=>{T!=null&&T!==""&&g.append(y,String(T))}):S.forEach((T,A)=>{T!=null&&(T instanceof File?g.append(`${y}[${A}]`,T):typeof T=="string"?g.append(`${y}[${A}]`,T):g.append(`${y}[${A}]`,String(T)))})}else typeof S=="string"?g.append(y,S):g.append(y,String(S))}),a.length>0&&a.forEach(y=>{g.append("fileUrls",y)}),n(g,E),a.length>0&&l()})()},[e,t,a,l,n,r,i,u,s,o,c,d,m]);function $r(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ql(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]:$r(t[l])&&$r(e[l])&&Object.keys(t[l]).length>0&&ql(e[l],t[l])})}const Ur={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 Mt(){const e=typeof document<"u"?document:{};return ql(e,Ur),e}const Sc={document:Ur,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 Ve(){const e=typeof window<"u"?window:{};return ql(e,Sc),e}function Ac(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function wc(e){const t=e;Object.keys(t).forEach(a=>{try{t[a]=null}catch{}try{delete t[a]}catch{}})}function qr(e,t=0){return setTimeout(e,t)}function el(){return Date.now()}function _c(e){const t=Ve();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}function kc(e,t="x"){const a=Ve();let l,n,r;const i=_c(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 tl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Nc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ke(...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&&!Nc(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&&(tl(t[s])&&tl(n[s])?n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s]):!tl(t[s])&&tl(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s])):t[s]=n[s])}}}return t}function Gt(e,t,a){e.style.setProperty(t,a)}function zr({swiper:e,targetPosition:t,side:a}){const l=Ve(),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=(d,m)=>s==="next"&&d>=m||s==="prev"&&d<=m,c=()=>{i=new Date().getTime(),r===null&&(r=i);const d=Math.max(Math.min((i-r)/u,1),0),m=.5-Math.cos(d*Math.PI)/2;let f=n+m*(t-n);if(o(f,t)&&(f=t),e.wrapperEl.scrollTo({[a]:f}),o(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:f})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(c)};c()}function ut(e,t=""){const a=Ve(),l=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&l.push(...e.assignedElements()),t?l.filter(n=>n.matches(t)):l}function Ic(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 Lc(e,t){const a=Ve();let l=t.contains(e);return!l&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(l=[...t.assignedElements()].includes(e),l||(l=Ic(e,t))),l}function al(e){try{console.warn(e);return}catch{}}function ll(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:Ac(t)),a}function Oc(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 Dc(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 xt(e,t){return Ve().getComputedStyle(e,null).getPropertyValue(t)}function nl(e){let t=e,a;if(t){for(a=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(a+=1);return a}}function Vr(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 zl(e,t,a){const l=Ve();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 sa(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:a=>a}).createHTML(t):e.innerHTML=t}let Vl;function Pc(){const e=Ve(),t=Mt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Gr(){return Vl||(Vl=Pc()),Vl}let Gl;function Mc({userAgent:e}={}){const t=Gr(),a=Ve(),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_]+))?/),d=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let f=l==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&f&&t.touch&&E.indexOf(`${i}x${u}`)>=0&&(o=n.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),f=!1),s&&!m&&(r.os="android",r.android=!0),(o||d||c)&&(r.os="ios",r.ios=!0),r}function Yr(e={}){return Gl||(Gl=Mc(e)),Gl}let Yl;function Bc(){const e=Ve(),t=Yr();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 Wr(){return Yl||(Yl=Bc()),Yl}function Fc({swiper:e,on:t,emit:a}){const l=Ve();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:d,height:m}=e;let f=d,E=m;c.forEach(({contentBoxSize:b,contentRect:h,target:v})=>{v&&v!==e.el||(f=h?h.width:(b[0]||b).inlineSize,E=h?h.height:(b[0]||b).blockSize)}),(f!==d||E!==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 Rc({swiper:e,extendParams:t,on:a,emit:l}){const n=[],r=Ve(),i=(o,c={})=>{const d=r.MutationObserver||r.WebkitMutationObserver,m=new d(f=>{if(e.__preventObserver__)return;if(f.length===1){l("observerUpdate",f[0]);return}const E=function(){l("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(E):r.setTimeout(E,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=Vr(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 Hc={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 $c(){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(xt(l,"padding-left")||0,10)-parseInt(xt(l,"padding-right")||0,10),a=a-parseInt(xt(l,"padding-top")||0,10)-parseInt(xt(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 Uc(){const e=this;function t(A,x){return parseFloat(A.getPropertyValue(e.getDirectionLabel(x))||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=ut(n,`.${e.params.slideClass}, swiper-slide`),c=u?e.virtual.slides.length:o.length;let d=[];const m=[],f=[];let E=a.slidesOffsetBefore;typeof E=="function"&&(E=a.slidesOffsetBefore.call(e));let b=a.slidesOffsetAfter;typeof b=="function"&&(b=a.slidesOffsetAfter.call(e));const h=e.snapGrid.length,v=e.slidesGrid.length,g=e.size-E-b;let y=a.spaceBetween,S=-E,_=0,w=0;if(typeof g>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*g:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-E-b,o.forEach(A=>{r?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(Gt(l,"--swiper-centered-offset-before",""),Gt(l,"--swiper-centered-offset-after","")),a.cssMode&&(Gt(l,"--swiper-slides-offset-before",`${E}px`),Gt(l,"--swiper-slides-offset-after",`${b}px`));const P=a.grid&&a.grid.rows>1&&e.grid;P?e.grid.initSlides(o):e.grid&&e.grid.unsetSlides();let L;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){L=0;const x=o[A];if(!(x&&(P&&e.grid.updateSlide(A,x,o),xt(x,"display")==="none"))){if(u&&a.slidesPerView==="auto")a.virtual.slidesPerViewAutoSlideSize&&(L=a.virtual.slidesPerViewAutoSlideSize),L&&x&&(a.roundLengths&&(L=Math.floor(L)),x.style[e.getDirectionLabel("width")]=`${L}px`);else if(a.slidesPerView==="auto"){T&&(x.style[e.getDirectionLabel("width")]="");const k=getComputedStyle(x),D=x.style.transform,I=x.style.webkitTransform;if(D&&(x.style.transform="none"),I&&(x.style.webkitTransform="none"),a.roundLengths)L=e.isHorizontal()?zl(x,"width"):zl(x,"height");else{const C=t(k,"width"),B=t(k,"padding-left"),$=t(k,"padding-right"),F=t(k,"margin-left"),z=t(k,"margin-right"),O=k.getPropertyValue("box-sizing");if(O&&O==="border-box")L=C+F+z;else{const{clientWidth:W,offsetWidth:G}=x;L=C+B+$+F+z+(G-W)}}D&&(x.style.transform=D),I&&(x.style.webkitTransform=I),a.roundLengths&&(L=Math.floor(L))}else L=(g-(a.slidesPerView-1)*y)/a.slidesPerView,a.roundLengths&&(L=Math.floor(L)),x&&(x.style[e.getDirectionLabel("width")]=`${L}px`);x&&(x.swiperSlideSize=L),f.push(L),a.centeredSlides?(S=S+L/2+_/2+y,_===0&&A!==0&&(S=S-g/2-y),A===0&&(S=S-g/2-y),Math.abs(S)<1/1e3&&(S=0),a.roundLengths&&(S=Math.floor(S)),w%a.slidesPerGroup===0&&d.push(S),m.push(S)):(a.roundLengths&&(S=Math.floor(S)),(w-Math.min(e.params.slidesPerGroupSkip,w))%e.params.slidesPerGroup===0&&d.push(S),m.push(S),S=S+L+y),e.virtualSize+=L+y,_=L,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,g)+b,r&&i&&(a.effect==="slide"||a.effect==="coverflow")&&(l.style.width=`${e.virtualSize+y}px`),a.setWrapperSize&&(l.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),P&&e.grid.updateWrapperSize(L,d),!a.centeredSlides){const A=a.slidesPerView!=="auto"&&a.slidesPerView%1!==0,x=a.snapToSlideEdge&&!a.loop&&(a.slidesPerView==="auto"||A);let k=d.length;if(x){let I;if(a.slidesPerView==="auto"){I=1;let C=0;for(let B=f.length-1;B>=0&&(C+=f[B]+(B<f.length-1?y:0),C<=g);B-=1)I=f.length-B}else I=Math.floor(a.slidesPerView);k=Math.max(c-I,0)}const D=[];for(let I=0;I<d.length;I+=1){let C=d[I];a.roundLengths&&(C=Math.floor(C)),x?I<=k&&D.push(C):d[I]<=e.virtualSize-g&&D.push(C)}d=D,Math.floor(e.virtualSize-g)-Math.floor(d[d.length-1])>1&&(x||d.push(e.virtualSize-g))}if(u&&a.loop){const A=f[0]+y;if(a.slidesPerGroup>1){const x=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/a.slidesPerGroup),k=A*a.slidesPerGroup;for(let D=0;D<x;D+=1)d.push(d[d.length-1]+k)}for(let x=0;x<e.virtual.slidesBefore+e.virtual.slidesAfter;x+=1)a.slidesPerGroup===1&&d.push(d[d.length-1]+A),m.push(m[m.length-1]+A),e.virtualSize+=A}if(d.length===0&&(d=[0]),y!==0){const A=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");o.filter((x,k)=>!a.cssMode||a.loop?!0:k!==o.length-1).forEach(x=>{x.style[A]=`${y}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let A=0;f.forEach(k=>{A+=k+(y||0)}),A-=y;const x=A>g?A-g:0;d=d.map(k=>k<=0?-E:k>x?x+b:k)}if(a.centerInsufficientSlides){let A=0;f.forEach(k=>{A+=k+(y||0)}),A-=y;const x=(E||0)+(b||0);if(A+x<g){const k=(g-A-x)/2;d.forEach((D,I)=>{d[I]=D-k}),m.forEach((D,I)=>{m[I]=D+k})}}if(Object.assign(e,{slides:o,snapGrid:d,slidesGrid:m,slidesSizesGrid:f}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){Gt(l,"--swiper-centered-offset-before",`${-d[0]}px`),Gt(l,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const A=-e.snapGrid[0],x=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(k=>k+A),e.slidesGrid=e.slidesGrid.map(k=>k+x)}if(c!==s&&e.emit("slidesLengthChange"),d.length!==h&&(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`,x=e.el.classList.contains(A);c<=a.maxBackfaceHiddenSlides?x||e.el.classList.add(A):x&&e.el.classList.remove(A)}}function qc(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 zc(){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 jr=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function Vc(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 d=(i+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),m=(i-r[0]+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),f=-(i-c),E=f+t.slidesSizesGrid[s],b=f>=0&&f<=t.size-t.slidesSizesGrid[s],h=f>=0&&f<t.size-1||E>1&&E<=t.size||f<=0&&E>=t.size;h&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s)),jr(o,h,a.slideVisibleClass),jr(o,b,a.slideFullyVisibleClass),o.progress=n?-d:d,o.originalProgress=n?-m:m}}function Gc(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,d=Math.abs(e-t.maxTranslate())<1;r=c||n<=0,i=d||n>=1,c&&(n=0),d&&(n=1)}if(a.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[c],f=t.slidesGrid[d],E=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=m?u=(b-m)/E:u=(b+E-f)/E,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 Wl=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function Yc(){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=d=>ut(l,`.${a.slideClass}${d}, swiper-slide${d}`)[0];let s,o,c;if(r)if(a.loop){let d=n-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),s=u(`[data-swiper-slide-index="${d}"]`)}else s=u(`[data-swiper-slide-index="${n}"]`);else i?(s=t.find(d=>d.column===n),c=t.find(d=>d.column===n+1),o=t.find(d=>d.column===n-1)):s=t[n];s&&(i||(c=Dc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!c&&(c=t[0]),o=Oc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!o===0&&(o=t[t.length-1]))),t.forEach(d=>{Wl(d,d===s,a.slideActiveClass),Wl(d,d===c,a.slideNextClass),Wl(d,d===o,a.slidePrevClass)}),e.emitSlidesClasses()}const rl=(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()}},jl=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},Xl=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)&&jl(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)&&jl(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)&&jl(e,i)};function Wc(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 jc(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=f=>{let E=f-t.virtual.slidesBefore;return E<0&&(E=t.virtual.slides.length+E),E>=t.virtual.slides.length&&(E-=t.virtual.slides.length),E};if(typeof s>"u"&&(s=Wc(t)),l.indexOf(a)>=0)o=l.indexOf(a);else{const f=Math.min(n.slidesPerGroupSkip,s);o=f+Math.floor((s-f)/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 d=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(d){const f=t.slides.find(b=>b.column===s);let E=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(E)&&(E=Math.max(t.slides.indexOf(f),0)),m=Math.floor(E/n.grid.rows)}else if(t.slides[s]){const f=t.slides[s].getAttribute("data-swiper-slide-index");f?m=parseInt(f,10):m=s}else m=s;Object.assign(t,{previousSnapIndex:u,snapIndex:o,previousRealIndex:i,realIndex:m,previousIndex:r,activeIndex:s}),t.initialized&&Xl(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function Xc(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 Kc={updateSize:$c,updateSlides:Uc,updateAutoHeight:qc,updateSlidesOffset:zc,updateSlidesProgress:Vc,updateProgress:Gc,updateSlidesClasses:Yc,updateActiveIndex:jc,updateClickedSlide:Xc};function Qc(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=kc(r,e);return i+=t.cssOverflowAdjustment(),l&&(i=-i),i||0}function Jc(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 d=a.maxTranslate()-a.minTranslate();d===0?c=0:c=(e-a.minTranslate())/d,c!==i&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)}function Zc(){return-this.snapGrid[0]}function ed(){return-this.snapGrid[this.snapGrid.length-1]}function td(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 d=r.isHorizontal();if(t===0)u[d?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return zr({swiper:r,targetPosition:-c,side:d?"left":"top"}),!0;u.scrollTo({[d?"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 ad={getTranslate:Qc,setTranslate:Jc,minTranslate:Zc,maxTranslate:ed,translateTo:td};function ld(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 Xr({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 nd(e=!0,t){const a=this,{params:l}=a;l.cssMode||(l.autoHeight&&a.updateAutoHeight(),Xr({swiper:a,runCallbacks:e,direction:t,step:"Start"}))}function rd(e=!0,t){const a=this,{params:l}=a;a.animating=!1,!l.cssMode&&(a.setTransition(0),Xr({swiper:a,runCallbacks:e,direction:t,step:"End"}))}var id={setTransition:ld,transitionStart:nd,transitionEnd:rd};function ud(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:d,rtlTranslate:m,wrapperEl:f,enabled:E}=r;if(!E&&!l&&!n||r.destroyed||r.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const b=Math.min(r.params.slidesPerGroupSkip,i);let h=b+Math.floor((i-b)/r.params.slidesPerGroup);h>=s.length&&(h=s.length-1);const v=-s[h];if(u.normalizeSlideIndex)for(let P=0;P<o.length;P+=1){const L=-Math.floor(v*100),T=Math.floor(o[P]*100),A=Math.floor(o[P+1]*100);typeof o[P+1]<"u"?L>=T&&L<A-(A-T)/2?i=P:L>=T&&L<A&&(i=P+1):L>=T&&(i=P)}if(r.initialized&&i!==d&&(!r.allowSlideNext&&(m?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate())||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(d||0)!==i))return!1;i!==(c||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let g;i>d?g="next":i<d?g="prev":g="reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&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 P=r.isHorizontal(),L=m?v:-v;if(t===0)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[P?"scrollLeft":"scrollTop"]=L})):f[P?"scrollLeft":"scrollTop"]=L,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return zr({swiper:r,targetPosition:L,side:P?"left":"top"}),!0;f.scrollTo({[P?"left":"top"]:L,behavior:"smooth"})}return!0}const w=Wr().isSafari;return y&&!n&&w&&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(L){!r||r.destroyed||L.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 sd(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 b=i*n.params.grid.rows;u=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).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:d}=n.params,m=o||!!c||!!d;let f=n.params.slidesPerView;f==="auto"?f=n.slidesPerViewDynamic():(f=Math.ceil(parseFloat(n.params.slidesPerView,10)),m&&f%2===0&&(f=f+1));let E=s-u<f;if(m&&(E=E||u<Math.ceil(f/2)),l&&m&&n.params.slidesPerView!=="auto"&&!r&&(E=!1),E){const b=m?u<n.activeIndex?"prev":"next":u-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:b,slideTo:!0,activeSlideIndex:b==="next"?u+1:u-s+1,slideRealIndex:b==="next"?n.realIndex:void 0})}if(r){const b=i*n.params.grid.rows;i=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).column}else i=n.getSlideIndexByData(i)}return requestAnimationFrame(()=>{n.slideTo(i,t,a,l)}),n}function od(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 cd(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 d=u?l.translate:-l.translate;function m(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const f=m(d),E=r.map(g=>m(g)),b=n.freeMode&&n.freeMode.enabled;let h=r[E.indexOf(f)-1];if(typeof h>"u"&&(n.cssMode||b)){let g;r.forEach((y,S)=>{f>=y&&(g=S)}),typeof g<"u"&&(h=b?r[g]:r[g>0?g-1:g])}let v=0;if(typeof h<"u"&&(v=i.indexOf(h),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 dd(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 fd(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 pd(){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(ut(a,`${i}[data-swiper-slide-index="${r}"]`)[0]),qr(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}var hd={slideTo:ud,slideToLoop:sd,slideNext:od,slidePrev:cd,slideReset:dd,slideToClosest:fd,slideToClickedSlide:pd};function bd(e,t){const a=this,{params:l,slidesEl:n}=a;if(!l.loop||a.virtual&&a.params.virtual.enabled)return;const r=()=>{ut(n,`.${l.slideClass}, swiper-slide`).forEach((E,b)=>{E.setAttribute("data-swiper-slide-index",b)})},i=()=>{const f=ut(n,`.${l.slideBlankClass}`);f.forEach(E=>{E.remove()}),f.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,d=f=>{for(let E=0;E<f;E+=1){const b=a.isElement?ll("swiper-slide",[l.slideBlankClass]):ll("div",[l.slideClass,l.slideBlankClass]);a.slidesEl.append(b)}};if(o){if(l.loopAddBlankSlides){const f=s-a.slides.length%s;d(f),a.recalcSlides(),a.updateSlides()}else al("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 f=l.grid.rows-a.slides.length%l.grid.rows;d(f),a.recalcSlides(),a.updateSlides()}else al("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 md({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:d,slidesEl:m,params:f}=s,{centeredSlides:E,slidesOffsetBefore:b,slidesOffsetAfter:h,initialSlide:v}=f,g=E||!!b||!!h;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!g&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):g&&s.snapIndex<f.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=d,s.emit("loopFix");return}let y=f.slidesPerView;y==="auto"?y=s.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),g&&y%2===0&&(y=y+1));const S=f.slidesPerGroupAuto?y:f.slidesPerGroup;let _=g?Math.max(S,Math.ceil(y/2)):S;_%S!==0&&(_+=S-_%S),_+=f.loopAdditionalSlides,s.loopedSlides=_;const w=s.grid&&f.grid&&f.grid.rows>1;o.length<y+_||s.params.effect==="cards"&&o.length<y+_*2?al("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"):w&&f.grid.fill==="row"&&al("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const P=[],L=[],T=w?Math.ceil(o.length/f.grid.rows):o.length,A=r&&T-v<y&&!g;let x=A?v:s.activeIndex;typeof n>"u"?n=s.getSlideIndex(o.find(F=>F.classList.contains(f.slideActiveClass))):x=n;const k=a==="next"||!a,D=a==="prev"||!a;let I=0,C=0;const $=(w?o[n].column:n)+(g&&typeof l>"u"?-y/2+.5:0);if($<_){I=Math.max(_-$,S);for(let F=0;F<_-$;F+=1){const z=F-Math.floor(F/T)*T;if(w){const O=T-z-1;for(let W=o.length-1;W>=0;W-=1)o[W].column===O&&P.push(W)}else P.push(T-z-1)}}else if($+y>T-_){C=Math.max($-(T-_*2),S),A&&(C=Math.max(C,y-T+v+1));for(let F=0;F<C;F+=1){const z=F-Math.floor(F/T)*T;w?o.forEach((O,W)=>{O.column===z&&L.push(W)}):L.push(z)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),s.params.effect==="cards"&&o.length<y+_*2&&(L.includes(n)&&L.splice(L.indexOf(n),1),P.includes(n)&&P.splice(P.indexOf(n),1)),D&&P.forEach(F=>{o[F].swiperLoopMoveDOM=!0,m.prepend(o[F]),o[F].swiperLoopMoveDOM=!1}),k&&L.forEach(F=>{o[F].swiperLoopMoveDOM=!0,m.append(o[F]),o[F].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"?s.updateSlides():w&&(P.length>0&&D||L.length>0&&k)&&s.slides.forEach((F,z)=>{s.grid.updateSlide(z,F,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(P.length>0&&D){if(typeof e>"u"){const F=s.slidesGrid[x],O=s.slidesGrid[x+I]-F;u?s.setTranslate(s.translate-O):(s.slideTo(x+Math.ceil(I),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-O,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-O))}else if(l){const F=w?P.length/f.grid.rows:P.length;s.slideTo(s.activeIndex+F,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(L.length>0&&k)if(typeof e>"u"){const F=s.slidesGrid[x],O=s.slidesGrid[x-C]-F;u?s.setTranslate(s.translate-O):(s.slideTo(x-C,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-O,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-O))}else{const F=w?L.length/f.grid.rows:L.length;s.slideTo(s.activeIndex-F,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=d,s.controller&&s.controller.control&&!i){const F={slideRealIndex:e,direction:a,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...F,slideTo:z.params.slidesPerView===f.slidesPerView?t:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...F,slideTo:s.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}s.emit("loopFix")}function vd(){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 gd={loopCreate:bd,loopFix:md,loopDestroy:vd};function Ed(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 yd(){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 Td={setGrabCursor:Ed,unsetGrabCursor:yd};function xd(e,t=this){function a(l){if(!l||l===Mt()||l===Ve())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 Kr(e,t,a){const l=Ve(),{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 Cd(e){const t=this,a=Mt();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"){Kr(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"&&!Lc(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 d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?xd(d,s):s.closest(d))){t.allowClick=!0;return}if(r.swipeHandler&&!s.closest(r.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const f=i.currentX,E=i.currentY;if(!Kr(t,l,f))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=f,i.startY=E,n.touchStartTime=el(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let b=!0;s.matches(n.focusableElements)&&(b=!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 h=b&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||h)&&!s.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function Sd(e){const t=Mt(),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(_=>_.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,d=o.pageY;if(s.preventedByNestedSwiper){r.startX=c,r.startY=d;return}if(!a.allowTouchMove){s.target.matches(l.focusableElements)||(a.allowClick=!1),l.isTouched&&(Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d}),l.touchStartTime=el());return}if(n.touchReleaseOnEdges&&!n.loop)if(a.isVertical()){if(d<r.startY&&a.translate<=a.maxTranslate()||d>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=d;const m=r.currentX-r.startX,f=r.currentY-r.startY;if(a.params.threshold&&Math.sqrt(m**2+f**2)<a.params.threshold)return;if(typeof l.isScrolling>"u"){let _;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?l.isScrolling=!1:m*m+f*f>=25&&(_=Math.atan2(Math.abs(f),Math.abs(m))*180/Math.PI,l.isScrolling=a.isHorizontal()?_>n.touchAngle:90-_>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 E=a.isHorizontal()?m:f,b=a.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(E=Math.abs(E)*(i?1:-1),b=Math.abs(b)*(i?1:-1)),r.diff=E,E*=n.touchRatio,i&&(E=-E,b=-b);const h=a.touchesDirection;a.swipeDirection=E>0?"prev":"next",a.touchesDirection=b>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 _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});a.wrapperEl.dispatchEvent(_)}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&&h!==a.touchesDirection&&v&&g&&Math.abs(E)>=1){Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}a.emit("sliderMove",s),l.isMoved=!0,l.currentTranslate=E+l.startTranslate;let y=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),E>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()&&(y=!1,n.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+E)**S))):E<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()&&(y=!1,n.resistance&&(l.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-l.startTranslate-E)**S))),y&&(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(E)>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 Ad(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(_=>_.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 d=el(),m=d-a.touchStartTime;if(t.allowClick){const _=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(_&&_[0]||l.target,_),t.emit("tap click",l),m<300&&d-a.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(a.lastClickTime=el(),qr(()=>{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 f;if(i.followFinger?f=s?t.translate:-t.translate:f=-a.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const E=f>=-t.maxTranslate()&&!t.params.loop;let b=0,h=t.slidesSizesGrid[0];for(let _=0;_<o.length;_+=_<i.slidesPerGroupSkip?1:i.slidesPerGroup){const w=_<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof o[_+w]<"u"?(E||f>=o[_]&&f<o[_+w])&&(b=_,h=o[_+w]-o[_]):(E||f>=o[_])&&(b=_,h=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 y=(f-o[b])/h,S=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(m>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?v:b+S):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+S):g!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(g):t.slideTo(b))}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(b+S):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:b+S),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:b))}}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 wd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function _d(){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 kd(e){const t=this;rl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Nd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Jr=(e,t)=>{const a=Mt(),{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 Id(){const e=this,{params:t}=e;e.onTouchStart=Cd.bind(e),e.onTouchMove=Sd.bind(e),e.onTouchEnd=Ad.bind(e),e.onDocumentTouchStart=Nd.bind(e),t.cssMode&&(e.onScroll=_d.bind(e)),e.onClick=wd.bind(e),e.onLoad=kd.bind(e),Jr(e,"on")}function Ld(){Jr(this,"off")}var Od={attachEvents:Id,detachEvents:Ld};const Zr=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Dd(){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=Mt(),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 d=(o in r?r[o]:void 0)||e.originalParams,m=Zr(e,l),f=Zr(e,d),E=e.params.grabCursor,b=d.grabCursor,h=l.enabled;m&&!f?(n.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&f&&(n.classList.add(`${l.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&l.grid.fill==="column")&&n.classList.add(`${l.containerModifierClass}grid-column`),e.emitContainerClasses()),E&&!b?e.unsetGrabCursor():!E&&b&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof d[w]>"u")return;const P=l[w]&&l[w].enabled,L=d[w]&&d[w].enabled;P&&!L&&e[w].disable(),!P&&L&&e[w].enable()});const v=d.direction&&d.direction!==l.direction,g=l.loop&&(d.slidesPerView!==l.slidesPerView||v),y=l.loop;v&&a&&e.changeDirection(),Ke(e.params,d);const S=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!S?e.disable():!h&&S&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",d),a&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&_?(e.loopCreate(t),e.updateSlides()):y&&!_&&e.loopDestroy()),e.emit("breakpoint",d)}function Pd(e,t="window",a){if(!e||t==="container"&&!a)return;let l=!1;const n=Ve(),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 Md={setBreakpoint:Dd,getBreakpoint:Pd};function Bd(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 Fd(){const e=this,{classNames:t,params:a,rtl:l,el:n,device:r}=e,i=Bd(["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 Rd(){const e=this,{el:t,classNames:a}=e;!t||typeof t=="string"||(t.classList.remove(...a),e.emitContainerClasses())}var Hd={addClasses:Fd,removeClasses:Rd};function $d(){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 Ud={checkOverflow:$d},Kl={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 qd(e,t){return function(l={}){const n=Object.keys(l)[0],r=l[n];if(typeof r!="object"||r===null){Ke(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)){Ke(t,l);return}typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),Ke(t,l)}}const Ql={eventsEmitter:Hc,update:Kc,translate:ad,transition:id,slide:hd,loop:gd,grabCursor:Td,events:Od,breakpoints:Md,checkOverflow:Ud,classes:Hd},Jl={};let Zl=class yt{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=Ke({},l),a&&!l.el&&(l.el=a);const n=Mt();if(l.el&&typeof l.el=="string"&&n.querySelectorAll(l.el).length>1){const s=[];return n.querySelectorAll(l.el).forEach(o=>{const c=Ke({},l,{el:o});s.push(new yt(c))}),s}const r=this;r.__swiper__=!0,r.support=Gr(),r.device=Yr({userAgent:l.userAgent}),r.browser=Wr(),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:qd(l,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=Ke({},Kl,i);return r.params=Ke({},u,Jl,l),r.originalParams=Ke({},r.params),r.passedParams=Ke({},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=ut(a,`.${l.slideClass}, swiper-slide`),r=nl(n[0]);return nl(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=ut(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 d=r[o]?Math.ceil(r[o].swiperSlideSize):0,m;for(let f=o+1;f<r.length;f+=1)r[f]&&!m&&(d+=Math.ceil(r[f].swiperSlideSize),c+=1,d>s&&(m=!0));for(let f=o-1;f>=0;f-=1)r[f]&&!m&&(d+=r[f].swiperSlideSize,c+=1,d>s&&(m=!0))}else if(t==="current")for(let d=o+1;d<r.length;d+=1)(a?i[d]+u[d]-i[o]<s:i[d]-i[o]<s)&&(c+=1);else for(let d=o-1;d>=0;d-=1)i[o]-i[d]<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&&rl(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()):ut(l,n())[0];return!i&&a.params.createElements&&(i=ll("div",a.params.wrapperClass),l.append(i),ut(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"||xt(l,"direction")==="rtl",rtlTranslate:a.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||xt(l,"direction")==="rtl"),wrongRTL:xt(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?rl(a,r):r.addEventListener("load",i=>{rl(a,i.target)})}),Xl(a),a.initialized=!0,Xl(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),wc(l)),l.destroyed=!0),null}static extendDefaults(t){Ke(Jl,t)}static get extendedDefaults(){return Jl}static get defaults(){return Kl}static installModule(t){yt.prototype.__modules__||(yt.prototype.__modules__=[]);const a=yt.prototype.__modules__;typeof t=="function"&&a.indexOf(t)<0&&a.push(t)}static use(t){return Array.isArray(t)?(t.forEach(a=>yt.installModule(a)),yt):(yt.installModule(t),yt)}};Object.keys(Ql).forEach(e=>{Object.keys(Ql[e]).forEach(t=>{Zl.prototype[t]=Ql[e][t]})}),Zl.use([Fc,Rc]);const ei=["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 Bt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Yt(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]:Bt(t[l])&&Bt(e[l])&&Object.keys(t[l]).length>0?t[l].__swiper__?e[l]=t[l]:Yt(e[l],t[l]):e[l]=t[l]})}function ti(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function ai(e={}){return e.pagination&&typeof e.pagination.el>"u"}function li(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function ni(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 zd(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Vd({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:n,prevEl:r,scrollbarEl:i,paginationEl:u}){const s=l.filter(L=>L!=="children"&&L!=="direction"&&L!=="wrapperClass"),{params:o,pagination:c,navigation:d,scrollbar:m,virtual:f,thumbs:E}=e;let b,h,v,g,y,S,_,w;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&!a.thumbs.swiper.destroyed&&o.thumbs&&(!o.thumbs.swiper||o.thumbs.swiper.destroyed)&&(b=!0),l.includes("controller")&&a.controller&&a.controller.control&&o.controller&&!o.controller.control&&(h=!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)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const P=L=>{e[L]&&(e[L].destroy(),L==="navigation"?(e.isElement&&(e[L].prevEl.remove(),e[L].nextEl.remove()),o[L].prevEl=void 0,o[L].nextEl=void 0,e[L].prevEl=void 0,e[L].nextEl=void 0):(e.isElement&&e[L].el.remove(),o[L].el=void 0,e[L].el=void 0))};l.includes("loop")&&e.isElement&&(o.loop&&!a.loop?S=!0:!o.loop&&a.loop?_=!0:w=!0),s.forEach(L=>{if(Bt(o[L])&&Bt(a[L]))Object.assign(o[L],a[L]),(L==="navigation"||L==="pagination"||L==="scrollbar")&&"enabled"in a[L]&&!a[L].enabled&&P(L);else{const T=a[L];(T===!0||T===!1)&&(L==="navigation"||L==="pagination"||L==="scrollbar")?T===!1&&P(L):o[L]=a[L]}}),s.includes("controller")&&!h&&e.controller&&e.controller.control&&o.controller&&o.controller.control&&(e.controller.control=o.controller.control),l.includes("children")&&t&&f&&o.virtual.enabled?(f.slides=t,f.update(!0)):l.includes("virtual")&&f&&o.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),l.includes("children")&&t&&o.loop&&(w=!0),b&&E.init()&&E.update(!0),h&&(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()),y&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),sa(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"),sa(r,e.navigation.arrowSvg),r.part.add("button-prev"),e.el.appendChild(r))),n&&(o.navigation.nextEl=n),r&&(o.navigation.prevEl=r),d.init(),d.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),(S||w)&&e.loopDestroy(),(_||w)&&e.loopCreate(),e.update()}function Gd(e={},t=!0){const a={on:{}},l={},n={};Yt(a,Kl),a._emitClasses=!0,a.init=!1;const r={},i=ei.map(s=>s.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(s=>{typeof e[s]>"u"||(i.indexOf(s)>=0?Bt(e[s])?(a[s]={},n[s]={},Yt(a[s],e[s]),Yt(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 Yd({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:n,swiper:r},i){ti(i)&&t&&a&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),ai(i)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),li(i)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(e)}function Wd(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 ei.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Bt(e[s])&&Bt(t[s])){const o=Object.keys(e[s]),c=Object.keys(t[s]);o.length!==c.length?i(s):(o.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}),c.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}))}else e[s]!==t[s]&&i(s)}),r}const jd=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 il(){return il=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},il.apply(this,arguments)}function ri(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ii(e){const t=[];return N.Children.toArray(e).forEach(a=>{ri(a)?t.push(a):a.props&&a.props.children&&ii(a.props.children).forEach(l=>t.push(l))}),t}function Xd(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return N.Children.toArray(e).forEach(l=>{if(ri(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=ii(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 Kd(e,t,a){if(!a)return null;const l=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},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,d)=>N.cloneElement(c,{swiper:e,style:n,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function oa(e,t){return typeof window>"u"?N.useEffect(e,t):N.useLayoutEffect(e,t)}const ui=N.createContext(null),Qd=N.createContext(null),si=N.forwardRef(({className:e,tag:t="div",wrapperTag:a="div",children:l,onSwiper:n,...r}={},i)=>{let u=!1;const[s,o]=N.useState("swiper"),[c,d]=N.useState(null),[m,f]=N.useState(!1),E=N.useRef(!1),b=N.useRef(null),h=N.useRef(null),v=N.useRef(null),g=N.useRef(null),y=N.useRef(null),S=N.useRef(null),_=N.useRef(null),w=N.useRef(null),{params:P,passedParams:L,rest:T,events:A}=Gd(r),{slides:x,slots:k}=Xd(l),D=()=>{f(!m)};Object.assign(P.on,{_containerClasses(F,z){o(z)}});const I=()=>{Object.assign(P.on,A),u=!0;const F={...P};if(delete F.wrapperClass,h.current=new Zl(F),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=x;const z={cache:!1,slides:x,renderExternal:d,renderExternalUpdate:!1};Yt(h.current.params.virtual,z),Yt(h.current.originalParams.virtual,z)}};b.current||I(),h.current&&h.current.on("_beforeBreakpoint",D);const C=()=>{u||!A||!h.current||Object.keys(A).forEach(F=>{h.current.on(F,A[F])})},B=()=>{!A||!h.current||Object.keys(A).forEach(F=>{h.current.off(F,A[F])})};N.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",D)}),N.useEffect(()=>{!E.current&&h.current&&(h.current.emitSlidesClasses(),E.current=!0)}),oa(()=>{if(i&&(i.current=b.current),!!b.current)return h.current.destroyed&&I(),Yd({el:b.current,nextEl:y.current,prevEl:S.current,paginationEl:_.current,scrollbarEl:w.current,swiper:h.current},P),n&&!h.current.destroyed&&n(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),oa(()=>{C();const F=Wd(L,v.current,x,g.current,z=>z.key);return v.current=L,g.current=x,F.length&&h.current&&!h.current.destroyed&&Vd({swiper:h.current,slides:x,passedParams:L,changedParams:F,nextEl:y.current,prevEl:S.current,scrollbarEl:w.current,paginationEl:_.current}),()=>{B()}}),oa(()=>{jd(h.current)},[c]);function $(){return P.virtual?Kd(h.current,x,c):x.map((F,z)=>N.cloneElement(F,{swiper:h.current,swiperSlideIndex:z}))}return N.createElement(t,il({ref:b,className:ni(`${s}${e?` ${e}`:""}`)},T),N.createElement(Qd.Provider,{value:h.current},k["container-start"],N.createElement(a,{className:zd(P.wrapperClass)},k["wrapper-start"],$(),k["wrapper-end"]),ti(P)&&N.createElement(N.Fragment,null,N.createElement("div",{ref:S,className:"swiper-button-prev"}),N.createElement("div",{ref:y,className:"swiper-button-next"})),li(P)&&N.createElement("div",{ref:w,className:"swiper-scrollbar"}),ai(P)&&N.createElement("div",{ref:_,className:"swiper-pagination"}),k["container-end"]))});si.displayName="Swiper";const oi=N.forwardRef(({tag:e="div",children:t,className:a="",swiper:l,zoom:n,lazy:r,virtualIndex:i,swiperSlideIndex:u,...s}={},o)=>{const c=N.useRef(null),[d,m]=N.useState("swiper-slide"),[f,E]=N.useState(!1);function b(y,S,_){S===c.current&&m(_)}oa(()=>{if(typeof u<"u"&&(c.current.swiperSlideIndex=u),o&&(o.current=c.current),!(!c.current||!l)){if(l.destroyed){d!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",b),()=>{l&&l.off("_slideClass",b)}}}),oa(()=>{l&&c.current&&!l.destroyed&&m(l.getSlideClasses(c.current))},[l]);const h={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},v=()=>typeof t=="function"?t(h):t,g=()=>{E(!0)};return N.createElement(e,il({ref:c,className:ni(`${d}${a?` ${a}`:""}`),"data-swiper-slide-index":i,onLoad:g},s),n&&N.createElement(ui.Provider,{value:h},N.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof n=="number"?n:void 0},v(),r&&!f&&N.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!n&&N.createElement(ui.Provider,{value:h},v(),r&&!f&&N.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});oi.displayName="SwiperSlide";function ci(e,t,a,l){return e.params.createElements&&Object.keys(l).forEach(n=>{if(!a[n]&&a.auto===!0){let r=ut(e.el,`.${l[n]}`)[0];r||(r=ll("div",l[n]),r.className=l[n],e.el.append(r)),a[n]=r,t[n]=r}}),a}const di='<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 Jd({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:di};function n(f){let E;return f&&typeof f=="string"&&e.isElement&&(E=e.el.querySelector(f)||e.hostEl.querySelector(f),E)?E:(f&&(typeof f=="string"&&(E=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&E&&E.length>1&&e.el.querySelectorAll(f).length===1?E=e.el.querySelector(f):E&&E.length===1&&(E=E[0])),f&&!E?f:E)}function r(f,E){const b=e.params.navigation;f=Me(f),f.forEach(h=>{h&&(h.classList[E?"add":"remove"](...b.disabledClass.split(" ")),h.tagName==="BUTTON"&&(h.disabled=E),e.params.watchOverflow&&e.enabled&&h.classList[e.isLocked?"add":"remove"](b.lockClass))})}function i(){const{nextEl:f,prevEl:E}=e.navigation;if(e.params.loop){r(E,!1),r(f,!1);return}r(E,e.isBeginning&&!e.params.rewind),r(f,e.isEnd&&!e.params.rewind)}function u(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function o(){const f=e.params.navigation;if(e.params.navigation=ci(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let E=n(f.nextEl),b=n(f.prevEl);Object.assign(e.navigation,{nextEl:E,prevEl:b}),E=Me(E),b=Me(b);const h=(v,g)=>{if(v){if(f.addIcons&&v.matches(".swiper-button-next,.swiper-button-prev")&&!v.querySelector("svg")){const y=document.createElement("div");sa(y,di),v.appendChild(y.querySelector("svg")),y.remove()}v.addEventListener("click",g==="next"?s:u)}!e.enabled&&v&&v.classList.add(...f.lockClass.split(" "))};E.forEach(v=>h(v,"next")),b.forEach(v=>h(v,"prev"))}function c(){let{nextEl:f,prevEl:E}=e.navigation;f=Me(f),E=Me(E);const b=(h,v)=>{h.removeEventListener("click",v==="next"?s:u),h.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(h=>b(h,"next")),E.forEach(h=>b(h,"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:f,prevEl:E}=e.navigation;if(f=Me(f),E=Me(E),e.enabled){i();return}[...f,...E].filter(b=>!!b).forEach(b=>b.classList.add(e.params.navigation.lockClass))}),a("click",(f,E)=>{let{nextEl:b,prevEl:h}=e.navigation;b=Me(b),h=Me(h);const v=E.target;let g=h.includes(v)||b.includes(v);if(e.isElement&&!g){const y=E.path||E.composedPath&&E.composedPath();y&&(g=y.find(S=>b.includes(S)||h.includes(S)))}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 y;b.length?y=b[0].classList.contains(e.params.navigation.hiddenClass):h.length&&(y=h[0].classList.contains(e.params.navigation.hiddenClass)),l(y===!0?"navigationShow":"navigationHide"),[...b,...h].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{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:d,disable:m,update:i,init:o,destroy:c})}function ca(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function Zd({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:y}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${y}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${y}-${g}-${g}`)))}function o(v,g,y){if(v=v%y,g=g%y,g===v+1)return"next";if(g===v-1)return"previous"}function c(v){const g=v.target.closest(ca(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const y=nl(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const S=o(e.realIndex,y,e.slides.length);S==="next"?e.slideNext():S==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function d(){const v=e.rtl,g=e.params.pagination;if(u())return;let y=e.pagination.el;y=Me(y);let S,_;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(_=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,_=e.previousSnapIndex):(_=e.previousIndex||0,S=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const L=e.pagination.bullets;let T,A,x;if(g.dynamicBullets&&(r=zl(L[0],e.isHorizontal()?"width":"height"),y.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&_!==void 0&&(i+=S-(_||0),i>g.dynamicMainBullets-1?i=g.dynamicMainBullets-1:i<0&&(i=0)),T=Math.max(S-i,0),A=T+(Math.min(L.length,g.dynamicMainBullets)-1),x=(A+T)/2),L.forEach(k=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(I=>`${g.bulletActiveClass}${I}`)].map(I=>typeof I=="string"&&I.includes(" ")?I.split(" "):I).flat();k.classList.remove(...D)}),y.length>1)L.forEach(k=>{const D=nl(k);D===S?k.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),g.dynamicBullets&&(D>=T&&D<=A&&k.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),D===T&&s(k,"prev"),D===A&&s(k,"next"))});else{const k=L[S];if(k&&k.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&L.forEach((D,I)=>{D.setAttribute("part",I===S?"bullet-active":"bullet")}),g.dynamicBullets){const D=L[T],I=L[A];for(let C=T;C<=A;C+=1)L[C]&&L[C].classList.add(...`${g.bulletActiveClass}-main`.split(" "));s(D,"prev"),s(I,"next")}}if(g.dynamicBullets){const k=Math.min(L.length,g.dynamicMainBullets+4),D=(r*k-r)/2-x*r,I=v?"right":"left";L.forEach(C=>{C.style[e.isHorizontal()?I:"top"]=`${D}px`})}}y.forEach((L,T)=>{if(g.type==="fraction"&&(L.querySelectorAll(ca(g.currentClass)).forEach(A=>{A.textContent=g.formatFractionCurrent(S+1)}),L.querySelectorAll(ca(g.totalClass)).forEach(A=>{A.textContent=g.formatFractionTotal(P)})),g.type==="progressbar"){let A;g.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const x=(S+1)/P;let k=1,D=1;A==="horizontal"?k=x:D=x,L.querySelectorAll(ca(g.progressbarFillClass)).forEach(I=>{I.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${D})`,I.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(sa(L,g.renderCustom(e,S+1,P)),T===0&&l("paginationRender",L)):(T===0&&l("paginationRender",L),l("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.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 y=e.pagination.el;y=Me(y);let S="";if(v.type==="bullets"){let _=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&_>g&&(_=g);for(let w=0;w<_;w+=1)v.renderBullet?S+=v.renderBullet.call(e,w,v.bulletClass):S+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?S=v.renderFraction.call(e,v.currentClass,v.totalClass):S=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?S=v.renderProgressbar.call(e,v.progressbarFillClass):S=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(_=>{v.type!=="custom"&&sa(_,S||""),v.type==="bullets"&&e.pagination.bullets.push(..._.querySelectorAll(ca(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",y[0])}function f(){e.params.pagination=ci(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(y=>Vr(y,".swiper")[0]===e.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Me(g),g.forEach(y=>{v.type==="bullets"&&v.clickable&&y.classList.add(...(v.clickableClass||"").split(" ")),y.classList.add(v.modifierClass+v.type),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(y.classList.add(`${v.modifierClass}${v.type}-dynamic`),i=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&y.classList.add(v.progressbarOppositeClass),v.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(v.lockClass)}))}function E(){const v=e.params.pagination;if(u())return;let g=e.pagination.el;g&&(g=Me(g),g.forEach(y=>{y.classList.remove(v.hiddenClass),y.classList.remove(v.modifierClass+v.type),y.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(y.classList.remove(...(v.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.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(y=>{y.classList.remove(v.horizontalClass,v.verticalClass),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?h():(f(),m(),d())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),a("snapIndexChange",()=>{d()}),a("snapGridLengthChange",()=>{m(),d()}),a("destroy",()=>{E()}),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",()=>{d()}),a("click",(v,g)=>{const y=g.target,S=Me(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.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 _=S[0].classList.contains(e.params.pagination.hiddenClass);l(_===!0?"paginationShow":"paginationHide"),S.forEach(w=>w.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{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))),f(),m(),d()},h=()=>{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))),E()};Object.assign(e.pagination,{enable:b,disable:h,render:m,update:d,init:f,destroy:E})}function hy(){}function by(){}function fi(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 pi(e,t){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const ef=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,af={};function hi(e,t){return(af.jsx?tf:ef).test(e)}const lf=/[ \t\n\f\r]/g;function nf(e){return typeof e=="object"?e.type==="text"?bi(e.value):!1:bi(e)}function bi(e){return e.replace(lf,"")===""}class da{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}}da.prototype.normal={},da.prototype.property={},da.prototype.space=void 0;function mi(e,t){const a={},l={};for(const n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new da(a,l,t)}function fa(e){return e.toLowerCase()}class Ye{constructor(t,a){this.attribute=a,this.property=t}}Ye.prototype.attribute="",Ye.prototype.booleanish=!1,Ye.prototype.boolean=!1,Ye.prototype.commaOrSpaceSeparated=!1,Ye.prototype.commaSeparated=!1,Ye.prototype.defined=!1,Ye.prototype.mustUseProperty=!1,Ye.prototype.number=!1,Ye.prototype.overloadedBoolean=!1,Ye.prototype.property="",Ye.prototype.spaceSeparated=!1,Ye.prototype.space=void 0;let rf=0;const me=Ft(),Pe=Ft(),en=Ft(),ee=Ft(),_e=Ft(),Wt=Ft(),Qe=Ft();function Ft(){return 2**++rf}const tn=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:Pe,commaOrSpaceSeparated:Qe,commaSeparated:Wt,number:ee,overloadedBoolean:en,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),an=Object.keys(tn);class ln extends Ye{constructor(t,a,l,n){let r=-1;if(super(t,a),vi(this,"space",n),typeof l=="number")for(;++r<an.length;){const i=an[r];vi(this,an[r],(l&tn[i])===tn[i])}}}ln.prototype.defined=!0;function vi(e,t,a){a&&(e[t]=a)}function jt(e){const t={},a={};for(const[l,n]of Object.entries(e.properties)){const r=new ln(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[fa(l)]=l,a[fa(r.attribute)]=l}return new da(t,a,e.space)}const gi=jt({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:_e,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:ee,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:_e,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Pe,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ei(e,t){return t in e?e[t]:t}function yi(e,t){return Ei(e,t.toLowerCase())}const uf=jt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wt,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:_e,autoFocus:me,autoPlay:me,blocking:_e,capture:null,charSet:null,checked:me,cite:null,className:_e,cols:ee,colSpan:null,content:null,contentEditable:Pe,controls:me,controlsList:_e,coords:ee|Wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:en,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:_e,height:ee,hidden:en,high:ee,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:_e,itemRef:_e,itemScope:me,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,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:me,optimum:ee,pattern:null,ping:_e,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:_e,required:me,reversed:me,rows:ee,rowSpan:ee,sandbox:_e,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:Pe,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:yi}),sf=jt({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:Qe,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:_e,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:Wt,g2:Wt,glyphName:Wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ei}),Ti=jt({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()}}),xi=jt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yi}),Ci=jt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),of={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"},cf=/[A-Z]/g,Si=/-[a-z]/g,df=/^data[-\w.:]+$/i;function ul(e,t){const a=fa(t);let l=t,n=Ye;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&df.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(Si,pf);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!Si.test(r)){let i=r.replace(cf,ff);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=ln}return new n(l,t)}function ff(e){return"-"+e.toLowerCase()}function pf(e){return e.charAt(1).toUpperCase()}const pa=mi([gi,uf,Ti,xi,Ci],"html"),Ct=mi([gi,sf,Ti,xi,Ci],"svg");function Ai(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function wi(e){return e.join(" ").trim()}function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={},rn,_i;function hf(){if(_i)return rn;_i=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="*",d="",m="comment",f="declaration";function E(h,v){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];v=v||{};var g=1,y=1;function S(I){var C=I.match(t);C&&(g+=C.length);var B=I.lastIndexOf(s);y=~B?I.length-B:y+I.length}function _(){var I={line:g,column:y};return function(C){return C.position=new w(I),T(),C}}function w(I){this.start=I,this.end={line:g,column:y},this.source=v.source}w.prototype.content=h;function P(I){var C=new Error(v.source+":"+g+":"+y+": "+I);if(C.reason=I,C.filename=v.source,C.line=g,C.column=y,C.source=h,!v.silent)throw C}function L(I){var C=I.exec(h);if(C){var B=C[0];return S(B),h=h.slice(B.length),C}}function T(){L(a)}function A(I){var C;for(I=I||[];C=x();)C!==!1&&I.push(C);return I}function x(){var I=_();if(!(o!=h.charAt(0)||c!=h.charAt(1))){for(var C=2;d!=h.charAt(C)&&(c!=h.charAt(C)||o!=h.charAt(C+1));)++C;if(C+=2,d===h.charAt(C-1))return P("End of comment missing");var B=h.slice(2,C-2);return y+=2,S(B),h=h.slice(C),y+=2,I({type:m,comment:B})}}function k(){var I=_(),C=L(l);if(C){if(x(),!L(n))return P("property missing ':'");var B=L(r),$=I({type:f,property:b(C[0].replace(e,d)),value:B?b(B[0].replace(e,d)):d});return L(i),$}}function D(){var I=[];A(I);for(var C;C=k();)C!==!1&&(I.push(C),A(I));return I}return T(),D()}function b(h){return h?h.replace(u,d):d}return rn=E,rn}var ki;function bf(){if(ki)return Xt;ki=1;var e=Xt&&Xt.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=a;const t=e(hf());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 Xt}var ha={},Ni;function mf(){if(Ni)return ha;Ni=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.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 ha.camelCase=s,ha}var ba,Ii;function vf(){if(Ii)return ba;Ii=1;var e=ba&&ba.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(bf()),a=mf();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,ba=l,ba}var gf=vf();const Ef=nn(gf),sl=Li("end"),st=Li("start");function Li(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 Oi(e){const t=st(e),a=sl(e);if(t&&a)return{start:t,end:a}}function ma(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Di(e.position):"start"in e||"end"in e?Di(e):"line"in e||"column"in e?un(e):""}function un(e){return Pi(e&&e.line)+":"+Pi(e&&e.column)}function Di(e){return un(e&&e.start)+"-"+un(e&&e.end)}function Pi(e){return e&&typeof e=="number"?e:1}class Ue 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=ma(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}}Ue.prototype.file="",Ue.prototype.name="",Ue.prototype.reason="",Ue.prototype.message="",Ue.prototype.stack="",Ue.prototype.column=void 0,Ue.prototype.line=void 0,Ue.prototype.ancestors=void 0,Ue.prototype.cause=void 0,Ue.prototype.fatal=void 0,Ue.prototype.place=void 0,Ue.prototype.ruleId=void 0,Ue.prototype.source=void 0;const sn={}.hasOwnProperty,yf=new Map,Tf=/[A-Z]/g,xf=new Set(["table","tbody","thead","tfoot","tr"]),Cf=new Set(["td","th"]),Mi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Sf(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=Of(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=Lf(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"?Ct:pa,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=Bi(n,e,void 0);return r&&typeof r!="string"?r:n.create(e,n.Fragment,{children:r||void 0},void 0)}function Bi(e,t,a){if(t.type==="element")return Af(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return wf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kf(e,t,a);if(t.type==="mdxjsEsm")return _f(e,t);if(t.type==="root")return Nf(e,t,a);if(t.type==="text")return If(e,t)}function Af(e,t,a){const l=e.schema;let n=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(n=Ct,e.schema=n),e.ancestors.push(t);const r=Ri(e,t.tagName,!1),i=Df(e,t);let u=cn(e,t);return xf.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!nf(s):!0})),Fi(e,i,r,t),on(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function wf(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)}va(e,t.position)}function _f(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);va(e,t.position)}function kf(e,t,a){const l=e.schema;let n=l;t.name==="svg"&&l.space==="html"&&(n=Ct,e.schema=n),e.ancestors.push(t);const r=t.name===null?e.Fragment:Ri(e,t.name,!0),i=Pf(e,t),u=cn(e,t);return Fi(e,i,r,t),on(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function Nf(e,t,a){const l={};return on(l,cn(e,t)),e.create(t,e.Fragment,l,a)}function If(e,t){return t.value}function Fi(e,t,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=l)}function on(e,t){if(t.length>0){const a=t.length>1?t:t[0];a&&(e.children=a)}}function Lf(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 Of(e,t){return a;function a(l,n,r,i){const u=Array.isArray(r.children),s=st(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 Df(e,t){const a={};let l,n;for(n in t.properties)if(n!=="children"&&sn.call(t.properties,n)){const r=Mf(e,n,t.properties[n]);if(r){const[i,u]=r;e.tableCellAlignToStyle&&i==="align"&&typeof u=="string"&&Cf.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 Pf(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 va(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 va(e,t.position);else r=l.value===null?!0:l.value;a[n]=r}return a}function cn(e,t){const a=[];let l=-1;const n=e.passKeys?new Map:yf;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=Bi(e,r,i);u!==void 0&&a.push(u)}return a}function Mf(e,t,a){const l=ul(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?pi(a):wi(a)),l.property==="style"){let n=typeof a=="object"?a:Bf(e,String(a));return e.stylePropertyNameCase==="css"&&(n=Ff(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&l.space?of[l.property]||l.property:l.attribute,a]}}function Bf(e,t){try{return Ef(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const l=a,n=new Ue("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=Mi+"#cannot-parse-style-attribute",n}}function Ri(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=hi(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=hi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const n=l.value;return sn.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(l);va(e)}function va(e,t){const a=new Ue("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=Mi+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Ff(e){const t={};let a;for(a in e)sn.call(e,a)&&(t[Rf(a)]=e[a]);return t}function Rf(e){let t=e.replace(Tf,Hf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Hf(e){return"-"+e.toLowerCase()}const dn={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"]},$f={};function Uf(e,t){const a=$f,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Hi(e,l,n)}function Hi(e,t,a){if(qf(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 $i(e.children,t,a)}return Array.isArray(e)?$i(e,t,a):""}function $i(e,t,a){const l=[];let n=-1;for(;++n<e.length;)l[n]=Hi(e[n],t,a);return l.join("")}function qf(e){return!!(e&&typeof e=="object")}const Ui=document.createElement("i");function ga(e){const t="&"+e+";";Ui.innerHTML=t;const a=Ui.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ot(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 et(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const qi={}.hasOwnProperty;function zf(e){const t={};let a=-1;for(;++a<e.length;)Vf(t,e[a]);return t}function Vf(e,t){let a;for(a in t){const n=(qi.call(e,a)?e[a]:void 0)||(e[a]={}),r=t[a];let i;if(r)for(i in r){qi.call(n,i)||(n[i]=[]);const u=r[i];Gf(n[i],Array.isArray(u)?u:u?[u]:[])}}}function Gf(e,t){let a=-1;const l=[];for(;++a<t.length;)(t[a].add==="after"?e:l).push(t[a]);ot(e,0,0,l)}function zi(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 Kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ct=St(/[A-Za-z]/),Je=St(/[\dA-Za-z]/),Yf=St(/[#-'*+\--9=?A-Z^-~]/);function fn(e){return e!==null&&(e<32||e===127)}const pn=St(/\d/),Wf=St(/[\dA-Fa-f]/),jf=St(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function Oe(e){return e!==null&&(e<0||e===32)}function xe(e){return e===-2||e===-1||e===32}const Ea=St(new RegExp("\\p{P}|\\p{S}","u")),ya=St(/\s/);function St(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Qt(e){const t=[];let a=-1,l=0,n=0;for(;++a<e.length;){const r=e.charCodeAt(a);let i="";if(r===37&&Je(e.charCodeAt(a+1))&&Je(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 Ce(e,t,a,l){const n=l?l-1:Number.POSITIVE_INFINITY;let r=0;return i;function i(s){return xe(s)?(e.enter(a),u(s)):t(s)}function u(s){return xe(s)&&r++<n?(e.consume(s),u):(e.exit(a),t(s))}}const Xf={tokenize:Kf};function Kf(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"),Ce(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 ue(u)?(e.consume(u),e.exit("chunkText"),r):(e.consume(u),i)}}const Qf={tokenize:Jf},Vi={tokenize:Zf};function Jf(e){const t=this,a=[];let l=0,n,r,i;return u;function u(y){if(l<a.length){const S=a[l];return t.containerState=S[1],e.attempt(S[0].continuation,s,o)(y)}return o(y)}function s(y){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const S=t.events.length;let _=S,w;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){w=t.events[_][1].end;break}v(l);let P=S;for(;P<t.events.length;)t.events[P][1].end={...w},P++;return ot(t.events,_+1,0,t.events.slice(S)),t.events.length=P,o(y)}return u(y)}function o(y){if(l===a.length){if(!n)return m(y);if(n.currentConstruct&&n.currentConstruct.concrete)return E(y);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vi,c,d)(y)}function c(y){return n&&g(),v(l),m(y)}function d(y){return t.parser.lazy[t.now().line]=l!==a.length,i=t.now().offset,E(y)}function m(y){return t.containerState={},e.attempt(Vi,f,E)(y)}function f(y){return l++,a.push([t.currentConstruct,t.containerState]),m(y)}function E(y){if(y===null){n&&g(),v(0),e.consume(y);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:r}),b(y)}function b(y){if(y===null){h(e.exit("chunkFlow"),!0),v(0),e.consume(y);return}return ue(y)?(e.consume(y),h(e.exit("chunkFlow")),l=0,t.interrupt=void 0,u):(e.consume(y),b)}function h(y,S){const _=t.sliceStream(y);if(S&&_.push(null),y.previous=r,r&&(r.next=y),r=y,n.defineSkip(y.start),n.write(_),t.parser.lazy[y.start.line]){let w=n.events.length;for(;w--;)if(n.events[w][1].start.offset<i&&(!n.events[w][1].end||n.events[w][1].end.offset>i))return;const P=t.events.length;let L=P,T,A;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(T){A=t.events[L][1].end;break}T=!0}for(v(l),w=P;w<t.events.length;)t.events[w][1].end={...A},w++;ot(t.events,L+1,0,t.events.slice(P)),t.events.length=w}}function v(y){let S=a.length;for(;S-- >y;){const _=a[S];t.containerState=_[1],_[0].exit.call(t,e)}a.length=y}function g(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function Zf(e,t,a){return Ce(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Gi(e){if(e===null||Oe(e)||ya(e))return 1;if(Ea(e))return 2}function hn(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 bn={name:"attention",resolveAll:ep,tokenize:tp};function ep(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 d={...e[l][1].end},m={...e[a][1].start};Yi(d,-s),Yi(m,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,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=et(o,[["enter",e[l][1],t],["exit",e[l][1],t]])),o=et(o,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",r,t]]),o=et(o,hn(t.parser.constructs.insideSpan.null,e.slice(l+1,a),t)),o=et(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=et(o,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,ot(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 tp(e,t){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,n=Gi(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=Gi(s),d=!c||c===2&&n||a.includes(s),m=!n||n===2&&c||a.includes(l);return o._open=!!(r===42?d:d&&(n||!m)),o._close=!!(r===42?m:m&&(c||!d)),t(s)}}function Yi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ap={name:"autolink",tokenize:lp};function lp(e,t,a){let l=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(f){return ct(f)?(e.consume(f),i):f===64?a(f):o(f)}function i(f){return f===43||f===45||f===46||Je(f)?(l=1,u(f)):o(f)}function u(f){return f===58?(e.consume(f),l=0,s):(f===43||f===45||f===46||Je(f))&&l++<32?(e.consume(f),u):(l=0,o(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||fn(f)?a(f):(e.consume(f),s)}function o(f){return f===64?(e.consume(f),c):Yf(f)?(e.consume(f),o):a(f)}function c(f){return Je(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),l=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):m(f)}function m(f){if((f===45||Je(f))&&l++<63){const E=f===45?m:d;return e.consume(f),E}return a(f)}}const ol={partial:!0,tokenize:np};function np(e,t,a){return l;function l(r){return xe(r)?Ce(e,n,"linePrefix")(r):n(r)}function n(r){return r===null||ue(r)?t(r):a(r)}}const Wi={continuation:{tokenize:ip},exit:up,name:"blockQuote",tokenize:rp};function rp(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 xe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function ip(e,t,a){const l=this;return n;function n(i){return xe(i)?Ce(e,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):r(i)}function r(i){return e.attempt(Wi,t,a)(i)}}function up(e){e.exit("blockQuote")}const ji={name:"characterEscape",tokenize:sp};function sp(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 jf(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(r)}}const Xi={name:"characterReference",tokenize:op};function op(e,t,a){const l=this;let n=0,r,i;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),r=31,i=Je,c(d))}function o(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=Wf,c):(e.enter("characterReferenceValue"),r=7,i=pn,c(d))}function c(d){if(d===59&&n){const m=e.exit("characterReferenceValue");return i===Je&&!ga(l.sliceSerialize(m))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&n++<r?(e.consume(d),c):a(d)}}const Ki={partial:!0,tokenize:dp},Qi={concrete:!0,name:"codeFenced",tokenize:cp};function cp(e,t,a){const l=this,n={partial:!0,tokenize:_};let r=0,i=0,u;return s;function s(w){return o(w)}function o(w){const P=l.events[l.events.length-1];return r=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===u?(i++,e.consume(w),c):i<3?a(w):(e.exit("codeFencedFenceSequence"),xe(w)?Ce(e,d,"whitespace")(w):d(w))}function d(w){return w===null||ue(w)?(e.exit("codeFencedFence"),l.interrupt?t(w):e.check(Ki,b,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||ue(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):xe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ce(e,f,"whitespace")(w)):w===96&&w===u?a(w):(e.consume(w),m)}function f(w){return w===null||ue(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||ue(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===u?a(w):(e.consume(w),E)}function b(w){return e.attempt(n,S,h)(w)}function h(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),v}function v(w){return r>0&&xe(w)?Ce(e,g,"linePrefix",r+1)(w):g(w)}function g(w){return w===null||ue(w)?e.check(Ki,b,S)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||ue(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),y)}function S(w){return e.exit("codeFenced"),t(w)}function _(w,P,L){let T=0;return A;function A(C){return w.enter("lineEnding"),w.consume(C),w.exit("lineEnding"),x}function x(C){return w.enter("codeFencedFence"),xe(C)?Ce(w,k,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):k(C)}function k(C){return C===u?(w.enter("codeFencedFenceSequence"),D(C)):L(C)}function D(C){return C===u?(T++,w.consume(C),D):T>=i?(w.exit("codeFencedFenceSequence"),xe(C)?Ce(w,I,"whitespace")(C):I(C)):L(C)}function I(C){return C===null||ue(C)?(w.exit("codeFencedFence"),P(C)):L(C)}}}function dp(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 mn={name:"codeIndented",tokenize:pp},fp={partial:!0,tokenize:hp};function pp(e,t,a){const l=this;return n;function n(o){return e.enter("codeIndented"),Ce(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):ue(o)?e.attempt(fp,i,s)(o):(e.enter("codeFlowValue"),u(o))}function u(o){return o===null||ue(o)?(e.exit("codeFlowValue"),i(o)):(e.consume(o),u)}function s(o){return e.exit("codeIndented"),t(o)}}function hp(e,t,a){const l=this;return n;function n(i){return l.parser.lazy[l.now().line]?a(i):ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):Ce(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):ue(i)?n(i):a(i)}}const bp={name:"codeText",previous:vp,resolve:mp,tokenize:gp};function mp(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 vp(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gp(e,t,a){let l=0,n,r;return i;function i(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),l++,u):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?a(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(r=e.enter("codeTextSequence"),n=0,c(d)):ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(d))}function o(d){return d===null||d===32||d===96||ue(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),o)}function c(d){return d===96?(e.consume(d),n++,c):n===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",o(d))}}class Ep{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&&Ta(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),Ta(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ta(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);Ta(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ta(this.left,a.reverse())}}}function Ta(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 Ji(e){const t={};let a=-1,l,n,r,i,u,s,o;const c=new Ep(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,yp(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 ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!o}function yp(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,d,m=-1,f=a,E=0,b=0;const h=[b];for(;f;){for(;e.get(++n)[1]!==f;);r.push(n),f._tokenizer||(c=l.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=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&&(b=m+1,h.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),m=h.length;m--;){const v=u.slice(h[m],h[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[E+s[m][0]]=E+s[m][1],E+=s[m][1]-s[m][0]-1;return o}const Tp={resolve:Cp,tokenize:Sp},xp={partial:!0,tokenize:Ap};function Cp(e){return Ji(e),e}function Sp(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):ue(u)?e.check(xp,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 Ap(e,t,a){const l=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ce(e,r,"linePrefix")}function r(i){if(i===null||ue(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 Zi(e,t,a,l,n,r,i,u,s){const o=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(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||fn(v)?a(v):(e.enter(l),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(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"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(u),m(v)):v===null||v===60||ue(v)?a(v):(e.consume(v),v===92?E:f)}function E(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function b(v){return!c&&(v===null||v===41||Oe(v))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(l),t(v)):c<o&&v===40?(e.consume(v),c++,b):v===41?(e.consume(v),c--,b):v===null||v===32||v===40||fn(v)?a(v):(e.consume(v),v===92?h:b)}function h(v){return v===40||v===41||v===92?(e.consume(v),b):b(v)}}function eu(e,t,a,l,n,r){const i=this;let u=0,s;return o;function o(f){return e.enter(l),e.enter(n),e.consume(f),e.exit(n),e.enter(r),c}function c(f){return u>999||f===null||f===91||f===93&&!s||f===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(r),e.enter(n),e.consume(f),e.exit(n),e.exit(l),t):ue(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||ue(f)||u++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!xe(f)),f===92?m:d)}function m(f){return f===91||f===92||f===93?(e.consume(f),u++,d):d(f)}}function tu(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):ue(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ce(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===i||m===null||ue(m)?(e.exit("chunkString"),o(m)):(e.consume(m),m===92?d:c)}function d(m){return m===i||m===92?(e.consume(m),c):c(m)}}function vt(e,t){let a;return l;function l(n){return ue(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,l):xe(n)?Ce(e,l,a?"linePrefix":"lineSuffix")(n):t(n)}}const wp={name:"definition",tokenize:kp},_p={partial:!0,tokenize:Np};function kp(e,t,a){const l=this;let n;return r;function r(f){return e.enter("definition"),i(f)}function i(f){return eu.call(l,e,u,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function u(f){return n=Kt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):a(f)}function s(f){return Oe(f)?vt(e,o)(f):o(f)}function o(f){return Zi(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(_p,d,d)(f)}function d(f){return xe(f)?Ce(e,m,"whitespace")(f):m(f)}function m(f){return f===null||ue(f)?(e.exit("definition"),l.parser.defined.push(n),t(f)):a(f)}}function Np(e,t,a){return l;function l(u){return Oe(u)?vt(e,n)(u):a(u)}function n(u){return tu(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function r(u){return xe(u)?Ce(e,i,"whitespace")(u):i(u)}function i(u){return u===null||ue(u)?t(u):a(u)}}const Ip={name:"hardBreakEscape",tokenize:Lp};function Lp(e,t,a){return l;function l(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return ue(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const Op={name:"headingAtx",resolve:Dp,tokenize:Pp};function Dp(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"},ot(e,l,a-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function Pp(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||Oe(c)?(e.exit("atxHeadingSequence"),u(c)):a(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||ue(c)?(e.exit("atxHeading"),t(c)):xe(c)?Ce(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||Oe(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),o)}}const Mp=["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"],au=["pre","script","style","textarea"],Bp={concrete:!0,name:"htmlFlow",resolveTo:Hp,tokenize:$p},Fp={partial:!0,tokenize:qp},Rp={partial:!0,tokenize:Up};function Hp(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 $p(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),d}function d(R){return R===33?(e.consume(R),m):R===47?(e.consume(R),r=!0,b):R===63?(e.consume(R),n=3,l.interrupt?t:O):ct(R)?(e.consume(R),i=String.fromCharCode(R),h):a(R)}function m(R){return R===45?(e.consume(R),n=2,f):R===91?(e.consume(R),n=5,u=0,E):ct(R)?(e.consume(R),n=4,l.interrupt?t:O):a(R)}function f(R){return R===45?(e.consume(R),l.interrupt?t:O):a(R)}function E(R){const K="CDATA[";return R===K.charCodeAt(u++)?(e.consume(R),u===K.length?l.interrupt?t:k:E):a(R)}function b(R){return ct(R)?(e.consume(R),i=String.fromCharCode(R),h):a(R)}function h(R){if(R===null||R===47||R===62||Oe(R)){const K=R===47,re=i.toLowerCase();return!K&&!r&&au.includes(re)?(n=1,l.interrupt?t(R):k(R)):Mp.includes(i.toLowerCase())?(n=6,K?(e.consume(R),v):l.interrupt?t(R):k(R)):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(R):r?g(R):y(R))}return R===45||Je(R)?(e.consume(R),i+=String.fromCharCode(R),h):a(R)}function v(R){return R===62?(e.consume(R),l.interrupt?t:k):a(R)}function g(R){return xe(R)?(e.consume(R),g):A(R)}function y(R){return R===47?(e.consume(R),A):R===58||R===95||ct(R)?(e.consume(R),S):xe(R)?(e.consume(R),y):A(R)}function S(R){return R===45||R===46||R===58||R===95||Je(R)?(e.consume(R),S):_(R)}function _(R){return R===61?(e.consume(R),w):xe(R)?(e.consume(R),_):y(R)}function w(R){return R===null||R===60||R===61||R===62||R===96?a(R):R===34||R===39?(e.consume(R),s=R,P):xe(R)?(e.consume(R),w):L(R)}function P(R){return R===s?(e.consume(R),s=null,T):R===null||ue(R)?a(R):(e.consume(R),P)}function L(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Oe(R)?_(R):(e.consume(R),L)}function T(R){return R===47||R===62||xe(R)?y(R):a(R)}function A(R){return R===62?(e.consume(R),x):a(R)}function x(R){return R===null||ue(R)?k(R):xe(R)?(e.consume(R),x):a(R)}function k(R){return R===45&&n===2?(e.consume(R),B):R===60&&n===1?(e.consume(R),$):R===62&&n===4?(e.consume(R),W):R===63&&n===3?(e.consume(R),O):R===93&&n===5?(e.consume(R),z):ue(R)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Fp,G,D)(R)):R===null||ue(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),k)}function D(R){return e.check(Rp,I,G)(R)}function I(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),C}function C(R){return R===null||ue(R)?D(R):(e.enter("htmlFlowData"),k(R))}function B(R){return R===45?(e.consume(R),O):k(R)}function $(R){return R===47?(e.consume(R),i="",F):k(R)}function F(R){if(R===62){const K=i.toLowerCase();return au.includes(K)?(e.consume(R),W):k(R)}return ct(R)&&i.length<8?(e.consume(R),i+=String.fromCharCode(R),F):k(R)}function z(R){return R===93?(e.consume(R),O):k(R)}function O(R){return R===62?(e.consume(R),W):R===45&&n===2?(e.consume(R),O):k(R)}function W(R){return R===null||ue(R)?(e.exit("htmlFlowData"),G(R)):(e.consume(R),W)}function G(R){return e.exit("htmlFlow"),t(R)}}function Up(e,t,a){const l=this;return n;function n(i){return ue(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 qp(e,t,a){return l;function l(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ol,t,a)}}const zp={name:"htmlText",tokenize:Vp};function Vp(e,t,a){const l=this;let n,r,i;return u;function u(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),s}function s(O){return O===33?(e.consume(O),o):O===47?(e.consume(O),_):O===63?(e.consume(O),y):ct(O)?(e.consume(O),L):a(O)}function o(O){return O===45?(e.consume(O),c):O===91?(e.consume(O),r=0,E):ct(O)?(e.consume(O),g):a(O)}function c(O){return O===45?(e.consume(O),f):a(O)}function d(O){return O===null?a(O):O===45?(e.consume(O),m):ue(O)?(i=d,$(O)):(e.consume(O),d)}function m(O){return O===45?(e.consume(O),f):d(O)}function f(O){return O===62?B(O):O===45?m(O):d(O)}function E(O){const W="CDATA[";return O===W.charCodeAt(r++)?(e.consume(O),r===W.length?b:E):a(O)}function b(O){return O===null?a(O):O===93?(e.consume(O),h):ue(O)?(i=b,$(O)):(e.consume(O),b)}function h(O){return O===93?(e.consume(O),v):b(O)}function v(O){return O===62?B(O):O===93?(e.consume(O),v):b(O)}function g(O){return O===null||O===62?B(O):ue(O)?(i=g,$(O)):(e.consume(O),g)}function y(O){return O===null?a(O):O===63?(e.consume(O),S):ue(O)?(i=y,$(O)):(e.consume(O),y)}function S(O){return O===62?B(O):y(O)}function _(O){return ct(O)?(e.consume(O),w):a(O)}function w(O){return O===45||Je(O)?(e.consume(O),w):P(O)}function P(O){return ue(O)?(i=P,$(O)):xe(O)?(e.consume(O),P):B(O)}function L(O){return O===45||Je(O)?(e.consume(O),L):O===47||O===62||Oe(O)?T(O):a(O)}function T(O){return O===47?(e.consume(O),B):O===58||O===95||ct(O)?(e.consume(O),A):ue(O)?(i=T,$(O)):xe(O)?(e.consume(O),T):B(O)}function A(O){return O===45||O===46||O===58||O===95||Je(O)?(e.consume(O),A):x(O)}function x(O){return O===61?(e.consume(O),k):ue(O)?(i=x,$(O)):xe(O)?(e.consume(O),x):T(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),n=O,D):ue(O)?(i=k,$(O)):xe(O)?(e.consume(O),k):(e.consume(O),I)}function D(O){return O===n?(e.consume(O),n=void 0,C):O===null?a(O):ue(O)?(i=D,$(O)):(e.consume(O),D)}function I(O){return O===null||O===34||O===39||O===60||O===61||O===96?a(O):O===47||O===62||Oe(O)?T(O):(e.consume(O),I)}function C(O){return O===47||O===62||Oe(O)?T(O):a(O)}function B(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):a(O)}function $(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),F}function F(O){return xe(O)?Ce(e,z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):z(O)}function z(O){return e.enter("htmlTextData"),i(O)}}const vn={name:"labelEnd",resolveAll:jp,resolveTo:Xp,tokenize:Kp},Gp={tokenize:Qp},Yp={tokenize:Jp},Wp={tokenize:Zp};function jp(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&&ot(e,0,e.length,a),e}function Xp(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=et(u,e.slice(r+1,r+l+3)),u=et(u,[["enter",c,t]]),u=et(u,hn(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),u=et(u,[["exit",c,t],e[i-2],e[i-1],["exit",o,t]]),u=et(u,e.slice(i+1)),u=et(u,[["exit",s,t]]),ot(e,r,e.length,u),e}function Kp(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?d(m):(i=l.parser.defined.includes(Kt(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(Gp,c,i?c:d)(m):m===91?e.attempt(Yp,c,i?o:d)(m):i?c(m):d(m)}function o(m){return e.attempt(Wp,c,d)(m)}function c(m){return t(m)}function d(m){return r._balanced=!0,a(m)}}function Qp(e,t,a){return l;function l(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),n}function n(d){return Oe(d)?vt(e,r)(d):r(d)}function r(d){return d===41?c(d):Zi(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return Oe(d)?vt(e,s)(d):c(d)}function u(d){return a(d)}function s(d){return d===34||d===39||d===40?tu(e,o,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function o(d){return Oe(d)?vt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function Jp(e,t,a){const l=this;return n;function n(u){return eu.call(l,e,r,i,"reference","referenceMarker","referenceString")(u)}function r(u){return l.parser.defined.includes(Kt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(u):a(u)}function i(u){return a(u)}}function Zp(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 eh={name:"labelStartImage",resolveAll:vn.resolveAll,tokenize:th};function th(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 ah={name:"labelStartLink",resolveAll:vn.resolveAll,tokenize:lh};function lh(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 gn={name:"lineEnding",tokenize:nh};function nh(e,t){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ce(e,t,"linePrefix")}}const cl={name:"thematicBreak",tokenize:rh};function rh(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||ue(o))?(e.exit("thematicBreak"),t(o)):a(o)}function s(o){return o===n?(e.consume(o),l++,s):(e.exit("thematicBreakSequence"),xe(o)?Ce(e,u,"whitespace")(o):u(o))}}const We={continuation:{tokenize:oh},exit:dh,name:"list",tokenize:sh},ih={partial:!0,tokenize:fh},uh={partial:!0,tokenize:ch};function sh(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(f){const E=l.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!l.containerState.marker||f===l.containerState.marker:pn(f)){if(l.containerState.type||(l.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(cl,a,o)(f):o(f);if(!l.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return a(f)}function s(f){return pn(f)&&++i<10?(e.consume(f),s):(!l.interrupt||i<2)&&(l.containerState.marker?f===l.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),o(f)):a(f)}function o(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||f,e.check(ol,l.interrupt?a:c,e.attempt(ih,m,d))}function c(f){return l.containerState.initialBlankLine=!0,r++,m(f)}function d(f){return xe(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):a(f)}function m(f){return l.containerState.size=r+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function oh(e,t,a){const l=this;return l.containerState._closeFlow=void 0,e.check(ol,n,r);function n(u){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Ce(e,t,"listItemIndent",l.containerState.size+1)(u)}function r(u){return l.containerState.furtherBlankLines||!xe(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(uh,t,i)(u))}function i(u){return l.containerState._closeFlow=!0,l.interrupt=void 0,Ce(e,e.attempt(We,t,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function ch(e,t,a){const l=this;return Ce(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 dh(e){e.exit(this.containerState.type)}function fh(e,t,a){const l=this;return Ce(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!xe(r)&&i&&i[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const lu={name:"setextUnderline",resolveTo:ph,tokenize:hh};function ph(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 hh(e,t,a){const l=this;let n;return r;function r(o){let c=l.events.length,d;for(;c--;)if(l.events[c][1].type!=="lineEnding"&&l.events[c][1].type!=="linePrefix"&&l.events[c][1].type!=="content"){d=l.events[c][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||d)?(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"),xe(o)?Ce(e,s,"lineSuffix")(o):s(o))}function s(o){return o===null||ue(o)?(e.exit("setextHeadingLine"),t(o)):a(o)}}const bh={tokenize:mh};function mh(e){const t=this,a=e.attempt(ol,l,e.attempt(this.parser.constructs.flowInitial,n,Ce(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Tp,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 vh={resolveAll:ru()},gh=nu("string"),Eh=nu("text");function nu(e){return{resolveAll:ru(e==="text"?yh: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 d=n[c];let m=-1;if(d)for(;++m<d.length;){const f=d[m];if(!f.previous||f.previous.call(l,l.previous))return!0}return!1}}}function ru(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 yh(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 Th=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:wp},disable:{null:[]},document:{42:We,43:We,45:We,48:We,49:We,50:We,51:We,52:We,53:We,54:We,55:We,56:We,57:We,62:Wi},flow:{35:Op,42:cl,45:[lu,cl],60:Bp,61:lu,95:cl,96:Qi,126:Qi},flowInitial:{[-2]:mn,[-1]:mn,32:mn},insideSpan:{null:[bn,vh]},string:{38:Xi,92:ji},text:{[-5]:gn,[-4]:gn,[-3]:gn,33:eh,38:Xi,42:bn,60:[ap,zp],91:ah,92:[Ip,ji],93:vn,95:bn,96:bp}},Symbol.toStringTag,{value:"Module"}));function xh(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:P(_),check:P(w),consume:g,enter:y,exit:S,interrupt:P(w,{interrupt:!0})},o={code:null,containerState:{},defineSkip:b,events:[],now:E,parser:e,previous:null,sliceSerialize:m,sliceStream:f,write:d};let c=t.tokenize.call(o,s);return t.resolveAll&&r.push(t),o;function d(x){return i=et(i,x),h(),i[i.length-1]!==null?[]:(L(t,0),o.events=hn(r,o.events,o),o.events)}function m(x,k){return Sh(f(x),k)}function f(x){return Ch(i,x)}function E(){const{_bufferIndex:x,_index:k,line:D,column:I,offset:C}=l;return{_bufferIndex:x,_index:k,line:D,column:I,offset:C}}function b(x){n[x.line]=x.column,A()}function h(){let x;for(;l._index<i.length;){const k=i[l._index];if(typeof k=="string")for(x=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===x&&l._bufferIndex<k.length;)v(k.charCodeAt(l._bufferIndex));else v(k)}}function v(x){c=c(x)}function g(x){ue(x)?(l.line++,l.column=1,l.offset+=x===-3?2:1,A()):x!==-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=x}function y(x,k){const D=k||{};return D.type=x,D.start=E(),o.events.push(["enter",D,o]),u.push(D),D}function S(x){const k=u.pop();return k.end=E(),o.events.push(["exit",k,o]),k}function _(x,k){L(x,k.from)}function w(x,k){k.restore()}function P(x,k){return D;function D(I,C,B){let $,F,z,O;return Array.isArray(I)?G(I):"tokenize"in I?G([I]):W(I);function W(le){return Y;function Y(ae){const ce=ae!==null&&le[ae],ge=ae!==null&&le.null,he=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return G(he)(ae)}}function G(le){return $=le,F=0,le.length===0?B:R(le[F])}function R(le){return Y;function Y(ae){return O=T(),z=le,le.partial||(o.currentConstruct=le),le.name&&o.parser.constructs.disable.null.includes(le.name)?re():le.tokenize.call(k?Object.assign(Object.create(o),k):o,s,K,re)(ae)}}function K(le){return x(z,O),C}function re(le){return O.restore(),++F<$.length?R($[F]):B}}}function L(x,k){x.resolveAll&&!r.includes(x)&&r.push(x),x.resolve&&ot(o.events,k,o.events.length-k,x.resolve(o.events.slice(k),o)),x.resolveTo&&(o.events=x.resolveTo(o.events,o))}function T(){const x=E(),k=o.previous,D=o.currentConstruct,I=o.events.length,C=Array.from(u);return{from:I,restore:B};function B(){l=x,o.previous=k,o.currentConstruct=D,o.events.length=I,u=C,A()}}function A(){l.line in n&&l.column<2&&(l.column=n[l.line],l.offset+=n[l.line]-1)}}function Ch(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 Sh(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=`
|
|
40
|
+
`).trim().length>0&&y<g){const D=window.getSelection();if(D&&D.rangeCount>0){const I=D.getRangeAt(0),C=I.startContainer,B=C.nodeType===Node.ELEMENT_NODE?C.closest('[data-type="variable"][data-multi-key]'):C.parentElement?.closest('[data-type="variable"][data-multi-key]');if(B){const $=B.dataset.key;if($){const F=document.createRange();F.setStartBefore(B),F.setEnd(I.startContainer,I.startOffset);const z=F.toString().length;f.current={key:$,offset:z}}}}m(I=>({...I,[v.key]:y+1}))}}})},[u,e,t,o,c,s,d,f,a,l,r,i,m,n,b,E]),xc=({disabled:e,lockStructure:t,config:a,editorRef:l,handleInput:n,onEnterSend:r,onReportChipDeleted:i})=>N.useCallback(u=>{if(e){u.preventDefault();return}const s=u.target;if(s&&(s.tagName==="TEXTAREA"||s.tagName==="INPUT")&&s.closest?.('[data-variable-render="antd-textarea"]'))return;{const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0);if(!d.collapsed&&d.startContainer===d.endContainer&&d.startContainer.nodeType===Node.ELEMENT_NODE&&d.endOffset-d.startOffset===1){const m=d.startContainer.childNodes[d.startOffset];if(m?.nodeType===Node.ELEMENT_NODE&&m.getAttribute?.("data-report-url")&&m.getAttribute?.("data-type")==="variable"&&!["Shift","Control","Alt","Meta","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","CapsLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"].includes(u.key)&&!u.ctrlKey&&!u.metaKey&&!u.altKey){u.preventDefault();const E=m,b=E.dataset.key||"",h=E.getAttribute("data-node-type")||"",v=E.dataset.multiKey||"";E.removeAttribute("data-report-url"),E.removeAttribute("data-report-name"),E.classList.remove("rte-report-name-chip"),E.contentEditable="true";const g=E.querySelector(".rte-report-dropdown-host");g?.parentNode&&g.parentNode.removeChild(g);const y=E.querySelector(".rte-report-chip-clear-host");if(y?.parentNode&&y.parentNode.removeChild(y),E.textContent="",E.classList.add("show-placeholder"),g)g.classList.remove("hidden"),g.style.display="",E.appendChild(g);else{const S=document.createElement("span");S.contentEditable="false",S.className="rte-report-dropdown-host",S.dataset.key=b,S.dataset.nodeType=h,v&&(S.dataset.multiKey=v),E.appendChild(S)}E.classList.add("rte-variable-with-icon"),i?.(b,h),E.focus(),u.key.length===1&&(document.execCommand("insertText",!1,u.key),E.classList.remove("show-placeholder")),n();return}}}}if(u.key==="Enter"){const c=u.target,d=c?.closest?.('[data-type="variable"]'),m=!!c?.closest?.('[data-type="richtext"]'),f=c?.tagName==="TEXTAREA"||!!c?.closest?.('[data-type="textarea"]');if(d){const E=d.getAttribute("data-node-type")||"";if(E==="report-url"||E==="markdown"||E==="markdown-name"){u.preventDefault();return}if(!(()=>{const v=d.dataset.multiKey;if(v)return a.find(_=>Ue(_.type)&&_.key===v)?.allowNewline!==!1;const g=d.dataset.key;return a.find(S=>S.type==="variable"&&S.key===g)?.allowNewline!==!1})()){u.preventDefault();return}u.preventDefault();const h=window.getSelection();if(h&&h.rangeCount>0){const v=h.getRangeAt(0);v.deleteContents();const g=document.createElement("br");v.insertNode(g);const y=document.createTextNode("");g.parentNode?.insertBefore(y,g.nextSibling),v.setStart(y,0),v.collapse(!0),h.removeAllRanges(),h.addRange(v)}n();return}if(!m&&!f){u.preventDefault(),a.length===0&&!u.shiftKey&&r&&r();return}}const o=window.getSelection();if(o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest('[data-type="text"]'):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest('[data-type="text"]'))),d){if(u.preventDefault(),u.stopPropagation(),l.current){const m=l.current.querySelector('[data-type="variable"], [data-type="upload"]');m&&m.focus()}return}}if(t&&o&&o.rangeCount>0){const c=o.anchorNode;let d=null;if(c&&(c.nodeType===Node.ELEMENT_NODE?d=c.closest(".tag-node"):c.nodeType===Node.TEXT_NODE&&c.parentElement&&(d=c.parentElement.closest(".tag-node"))),d){if(u.preventDefault(),u.stopPropagation(),l.current){const m=l.current.querySelector('[data-type="variable"], [data-type="upload"]');m&&m.focus()}return}}if(u.key==="Escape"&&l.current){if(t){u.preventDefault();return}l.current.innerHTML="",l.current.focus()}if(u.key==="Backspace"){const c=window.getSelection();if(c&&c.rangeCount>0){const d=c.getRangeAt(0),m=c.anchorNode;if(t){let E=null,b=null;if(m&&(m.nodeType===Node.ELEMENT_NODE?(E=m.closest(".tag-node"),b=m.closest('[data-type="text"]')):m.nodeType===Node.TEXT_NODE&&m.parentElement&&(E=m.parentElement.closest(".tag-node"),b=m.parentElement.closest('[data-type="text"]'))),(E||b)&&d.collapsed&&d.startOffset===0){u.preventDefault();return}}let f=null;if(m&&(m.nodeType===Node.ELEMENT_NODE?f=m.closest('[data-type="variable"]'):m.nodeType===Node.TEXT_NODE&&m.parentElement&&(f=m.parentElement.closest('[data-type="variable"]'))),f){if(f.getAttribute("data-report-url")){u.preventDefault();const v=f.dataset.key||"",g=f.getAttribute("data-node-type")||"",y=f.dataset.multiKey||"";f.removeAttribute("data-report-url"),f.removeAttribute("data-report-name"),f.classList.remove("rte-report-name-chip"),f.contentEditable="true";const S=f.querySelector(".rte-report-dropdown-host");S?.parentNode&&S.parentNode.removeChild(S);const _=f.querySelector(".rte-report-chip-clear-host");if(_?.parentNode&&_.parentNode.removeChild(_),f.textContent="",f.classList.add("show-placeholder"),S)S.classList.remove("hidden"),S.style.display="",f.appendChild(S);else{const w=document.createElement("span");w.contentEditable="false",w.className="rte-report-dropdown-host",w.dataset.key=v,w.dataset.nodeType=g,y&&(w.dataset.multiKey=y),f.appendChild(w)}f.classList.add("rte-variable-with-icon"),i?.(v,g),f.focus(),n();return}if(!d.collapsed)return;const E=f.innerText;if(E===""||E===""){u.preventDefault();return}if((()=>{try{const v=document.createRange();v.selectNodeContents(f),v.setEnd(d.startContainer,d.startOffset);const g=v.cloneContents(),y=document.createTreeWalker(g,NodeFilter.SHOW_ALL);for(;y.nextNode();){const S=y.currentNode;if(S.nodeType===Node.ELEMENT_NODE){if(S.tagName==="BR")return!1}else if(S.nodeType===Node.TEXT_NODE&&(S.textContent||"").replace(/\u200B/g,"").trim().length>0)return!1}return!0}catch{return d.startOffset===0}})()){u.preventDefault();return}if(E.startsWith("")&&d.startOffset===1){u.preventDefault();return}}}}},[a,e,l,n,t,r,i]),Cc=({lockStructure:e,onAgentExit:t,editorRef:a,setPopoverVisible:l,isDraggingRef:n,mouseDownPosRef:r})=>{const i=(...m)=>{},u=m=>{try{const f=window.getSelection();if(!f)return i(m,"no selection");const E=f.rangeCount>0?f.getRangeAt(0):null;i(m,{rangeCount:f.rangeCount,isCollapsed:f.isCollapsed,anchorNode:f.anchorNode?.nodeType===Node.TEXT_NODE?"TEXT":f.anchorNode?.nodeName,anchorOffset:f.anchorOffset,focusNode:f.focusNode?.nodeType===Node.TEXT_NODE?"TEXT":f.focusNode?.nodeName,focusOffset:f.focusOffset,range:E?{startContainer:E.startContainer.nodeType===Node.TEXT_NODE?"TEXT":E.startContainer.nodeName,startOffset:E.startOffset,endContainer:E.endContainer.nodeType===Node.TEXT_NODE?"TEXT":E.endContainer.nodeName,endOffset:E.endOffset}:null})}catch{}},s=N.useCallback(m=>{const f=m.target;if(i("mousedown",{tag:f.tagName,cls:f.className}),u("before mousedown"),f.closest(".rte-datepicker-wrapper")||f.closest(".rte-datepicker-host")||f.closest(".rte-select-wrapper")||f.closest(".rte-select-host")||f.closest(".ant-select-dropdown"))return;if(f.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 h=f.closest(".tag-node"),v=f.closest('[data-type="text"]');if(h||v){m.preventDefault(),m.stopPropagation();const g=window.getSelection();g&&g.removeAllRanges();return}}const b=f.closest('[data-type="variable"]');if(b){if(i("mousedown on variable",{key:b.dataset.key,multiKey:b.dataset.multiKey,nodeType:b.getAttribute("data-node-type")||"",render:b.dataset.variableRender||"v1",classes:b.className}),b.dataset.variableRender==="antd-textarea")return;if(b.getAttribute("data-report-url")){console.log("[RTE-REPORT] React mouseHandlers hit name chip",{key:b.dataset.key,hasDropdownHost:!!b.querySelector(".rte-report-dropdown-host")}),m.preventDefault(),b.hasAttribute("tabindex")||b.setAttribute("tabindex","-1"),b.focus(),window.getSelection()?.removeAllRanges();return}const h=!!f.closest(".variable-info-icon"),v=b.classList.contains("show-placeholder")||(b.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;if(i("v1 variable mousedown",{isPlaceholder:v,isOnIcon:h,innerText:b.innerText}),v&&!h){m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mousedown)");const g=window.getSelection();if(!g)return;const y=b;y.focus();const S=document.createTreeWalker(y,NodeFilter.SHOW_TEXT),_=S.nextNode()?S.currentNode:null,w=document.createRange();_?(w.setStart(_,0),w.collapse(!0)):(w.selectNodeContents(y),w.collapse(!0)),g.removeAllRanges(),g.addRange(w),u("raf after setRange (mousedown)")});return}return}r.current={x:m.clientX,y:m.clientY},n.current=!1,f.closest(".file-remove-btn")&&(m.preventDefault(),m.stopPropagation())},[a,n,e,r,t,l]),o=N.useCallback(m=>{if(!m.target.closest('[data-type="variable"]')&&r.current){const b=Math.abs(m.clientX-r.current.x),h=Math.abs(m.clientY-r.current.y);(b>3||h>3)&&(n.current=!0)}},[n,r]),c=N.useCallback(m=>{const f=m.target;i("mouseup",{tag:f.tagName,cls:f.className}),u("before mouseup");const E=f.closest('[data-type="variable"]');if(E){if(E.getAttribute("data-report-url")){m.preventDefault(),r.current=null,n.current=!1;return}if(E.dataset.variableRender!=="antd-textarea"){const b=!!f.closest(".variable-info-icon"),h=E.classList.contains("show-placeholder")||(E.innerText||"").replace(/[\u200B\n]/g,"").trim().length===0;i("v1 variable mouseup",{key:E.dataset.key,isPlaceholder:h,isOnIcon:b,classes:E.className}),h&&!b&&(m.preventDefault(),window.requestAnimationFrame(()=>{u("raf before setRange (mouseup)");const v=window.getSelection();if(!v)return;const g=E;g.focus();const y=document.createTreeWalker(g,NodeFilter.SHOW_TEXT),S=y.nextNode()?y.currentNode:null,_=document.createRange();S?(_.setStart(S,0),_.collapse(!0)):(_.selectNodeContents(g),_.collapse(!0)),v.removeAllRanges(),v.addRange(_),u("raf after setRange (mouseup)")}))}r.current=null,n.current=!1;return}r.current=null,n.current=!1},[n,r]),d=N.useCallback(m=>{const E=m.target.closest('[data-type="variable"]');if(E){const b=window.getSelection();if(b){const h=document.createRange(),v=E.textContent||"";if(v.replace(/\u200B/g,"")){let y=0,S=v.length;v.startsWith("")&&(y=1),v.endsWith("")&&v.length>1&&(S=v.length-1);const _=E.firstChild;_&&_.nodeType===Node.TEXT_NODE?(h.setStart(_,y),h.setEnd(_,S)):h.selectNodeContents(E)}else h.selectNodeContents(E),h.collapse(!0);b.removeAllRanges(),b.addRange(h)}}},[]);return{handleMouseDown:s,handleMouseMove:o,handleMouseUp:c,handleDoubleClick:d}},Sc=({disabled:e,config:t,multiVariableCounts:a,setMultiVariableCounts:l,editorRef:n,handleInput:r,markdownAnalyzeRef:i,reportAnalyzeRef:u,markdownNameAnalyzeRef:s,markdownAnalyzeStateRef:o,markdownRawTextRef:c,setMarkdownAnalyzeState:d,setFooterFiles:m,footerFiles:f,messageApi:E,onPasteUnsupported:b})=>N.useCallback(h=>{const v=t.some(A=>A.type==="tag"),g=Array.from(h.clipboardData.files);if(g.length>0&&v){h.preventDefault();return}if(g.length>0){h.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"],x=[];let k=!1;for(const D of g){const I=(D.name||"").split(".").pop()?.toLowerCase()||"";A.includes(I)?x.push(D):k=!0}if(k&&b?.(),x.length>0){const I=f.reduce(($,F)=>$+F.size,0),C=[];let B=I;for(const $ of x){if(B+$.size>52428800){E.error("文件总大小不能超过 50MB");break}C.push($),B+=$.size}C.length>0&&m($=>[...C,...$])}return}const y=h.target;if(y&&(y.tagName==="TEXTAREA"||y.tagName==="INPUT")&&y.closest?.('[data-variable-render="antd-textarea"]'))return;if(e){h.preventDefault();return}h.preventDefault();const _=(h.clipboardData.getData("text/plain")||"").replace(/\r\n/g,`
|
|
41
|
+
`).replace(/\n+$/g,""),w=window.getSelection();if(w&&w.rangeCount>0){const A=w.anchorNode;if(A){let x=null;if(A.nodeType===Node.ELEMENT_NODE?x=A.closest('[data-type="variable"]'):A.nodeType===Node.TEXT_NODE&&A.parentElement&&(x=A.parentElement.closest('[data-type="variable"]')),x){const k=x.dataset.multiKey;if(k){const C=/[、,,\s\n\r\t]+/,B=_.split(C).map($=>$.trim()).filter($=>$.length>0);if(B.length>1){const $=parseInt(x.dataset.index||"0",10),F=t.find(Y=>Ue(Y.type)&&Y.key===k)?.maxCount||9,z=a[k]||1,O=Math.min($+B.length,F);O>z&&l(le=>({...le,[k]:O}));const W=[];for(let le=0;le<z;le++){const Y=`${k}_${le}`,ae=n.current.querySelector(`[data-type="variable"][data-key="${Y}"][data-multi-key="${k}"]`);if(ae){const ce=ae.innerText.replace(/[\u200B\n]/g,"").trim();W.push(ce)}}W.splice($,1,...B.slice(0,F-$));const G=W.slice(0,F);G.length>0&&G[G.length-1]!==""&&G.length<F&&G.push("");const R=Math.max(G.length,1),K={};G.forEach((le,Y)=>{le&&(K[`${k}_${Y}`]=le)}),n.current.querySelectorAll('[data-type="variable"]').forEach(le=>{const Y=le.dataset.key,ae=le.dataset.multiKey;if(Y&&ae!==k){const ce=le.innerText.replace(/[\u200B\n]/g,"").trim();ce&&(K[Y]=ce)}}),n.current.__tempVariableValues=K,l(le=>({...le,[k]:R}));return}}const D=x.getAttribute("data-node-type")||"";if(!(D==="markdown"||D==="report-url"||D==="markdown-name")){const C=(()=>{const $=x.getAttribute("data-node-type")||"";if($==="report-url"||$==="markdown"||$==="markdown-name")return!1;const F=x.dataset.multiKey;if(F)return t.find(G=>Ue(G.type)&&G.key===F)?.allowNewline!==!1;const z=x.dataset.key;return t.find(W=>W.type==="variable"&&W.key===z)?.allowNewline!==!1})(),B=window.getSelection();if(B&&B.rangeCount>0){const $=B.getRangeAt(0);$.deleteContents();const F=document.createDocumentFragment(),O=(C?_:_.replace(/\n+/g," ")).split(`
|
|
42
|
+
`);for(let G=0;G<O.length;G++)F.appendChild(document.createTextNode(O[G])),C&&G<O.length-1&&F.appendChild(document.createElement("br"));$.insertNode(F),B.removeAllRanges();const W=document.createRange();W.selectNodeContents(x),W.collapse(!1),B.addRange(W)}r();return}}}}let P=!1,L="";const T=window.getSelection();if(T&&T.rangeCount>0){const A=T.anchorNode;if(A){let x=null;if(A.nodeType===Node.ELEMENT_NODE?x=A.closest('[data-type="variable"]'):A.nodeType===Node.TEXT_NODE&&A.parentElement&&(x=A.parentElement.closest('[data-type="variable"]')),x){const k=x.getAttribute("data-node-type")||"",D=x.dataset.key;if(k==="markdown"&&D&&/20\d{2}-\d{2}-\d{2}/.test(_))P=!0,L=D,c.current[D]=_,d(I=>({...I,[D]:{...I[D],status:"loading",error:void 0}}));else if(k==="report-url"&&D){document.execCommand("insertText",!1,_),r(),setTimeout(()=>{const I=x.innerText.replace(/[\u200B\n]/g,"").trim();u.current(D,I)},0);return}else if(k==="markdown-name"&&D){document.execCommand("insertText",!1,_),r(),setTimeout(()=>{const I=x.innerText.replace(/[\u200B\n]/g,"").trim();s.current(D,I)},0);return}}}}if(P&&L){setTimeout(()=>{i.current(L,_)},0);return}document.execCommand("insertText",!1,_),r(),setTimeout(()=>{/20\d{2}-\d{2}-\d{2}/.test(_)&&o.current.tableData?.status==="success"&&(d(x=>({...x,tableData:{status:"loading",modules:[],lastParsedText:_,error:void 0}})),setTimeout(()=>{c.current.tableData=_,i.current("tableData",_)},0))},0)},[t,e,n,r,i,o,c,a,b,u,m,f,E,d,l]);async function $r(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 Ac=({config:e,files:t,footerFiles:a,onFooterFilesClear:l,onSend:n,isProcessing:r,disabled:i,loading:u,isFormValid:s,editorRef:o,markdownAnalyzeState:c,markdownNameAnalyzeState:d,videoState:m})=>N.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 y=new FormData;y.append("fullPrompt",g),a.forEach(S=>{y.append("fileUrls",S)}),n(y,g),l()}else n(g,g);if(o.current){o.current.textContent="";const y=new Event("input",{bubbles:!0});o.current.dispatchEvent(y)}return}const f=o.current;let E="";const b={},h=g=>{if(!(g.nodeType===Node.ELEMENT_NODE&&g.style.display==="none")){if(g.nodeType===Node.TEXT_NODE)E+=(g.textContent||"").replace(/\u200B/g,"");else if(g.nodeType===Node.ELEMENT_NODE){const y=g,S=y.dataset.type,_=y.dataset.key;if(S==="variable"&&_){let w="";const P=document.createTreeWalker(y,NodeFilter.SHOW_TEXT,{acceptNode:A=>{const x=y.querySelector(".variable-info-icon");return x&&x.contains(A)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});for(;P.nextNode();)w+=P.currentNode.textContent||"";const T=y.getAttribute("data-report-url")||w.replace(/[\u200B\n]/g,"").trim();if(T){const A=y.dataset.multiKey;if(A){(!b[A]||!Array.isArray(b[A]))&&(b[A]=[]);const x=b[A];x.push(T),x.length>1&&(E+=" "),E+=T}else b[_]=T,E+=T;if(y.dataset.nodeType==="report-url")if(b.url===void 0)b.url=T;else{const x=b.url;Array.isArray(x)?x.push(T):b.url=[String(x),T]}if(y.dataset.nodeType==="markdown-name"){const x=`${_}__sourceText`;b[x]===void 0&&(b[x]=T)}if(y.dataset.nodeType==="markdown"){const x=y.dataset.sourceTextKey||`${_}__sourceText`;if(b[x]===void 0)b[x]=T;else{const D=b[x];Array.isArray(D)?D.push(T):b[x]=[String(D),T]}const k=`${_}__markdown`;b[k]===void 0&&(b[k]=[Rr(T)])}}}else if((S==="select"||S==="searchable-select"||S==="cascader")&&_){const w=(y.getAttribute("data-value")||"").trim();w&&(b[_]=w,E+=w)}else if(S==="textarea"&&_){const P=(y.value||"").replace(/\u200B/g,"").trim();P&&(b[_]=P,E+=P)}else if(S==="richtext"&&_){const w=y,P=w.dataset.nodeType,L=(w.textContent||"").replace(/\u200B/g,"").trim();if(L)if(P==="report-module"||P==="markdown-module"){(!b[_]||!Array.isArray(b[_]))&&(b[_]=[]);const T=b[_];T.push(L),T.length>1&&(E+=" "),E+=L}else b[_]=L,E+=L}else if(S==="datepicker"&&_){const P=(y.getAttribute("data-value")||"").trim();if(P)if(P.includes(",")){const L=P.split(",");L.length===2?(b[_]=L,E+=`[${L[0]}, ${L[1]}]`):(b[_]=P,E+=P)}else b[_]=P,E+=P}else if(S==="number-input"&&_){const P=(y.value||"").trim();P&&(b[_]=P,E+=P)}else if(S==="upload"&&_){const w=y.dataset.batchKey;if(w){const P=e.find(L=>L.type==="upload"&&L.key===w);if(P&&typeof P.maxCount=="number"&&typeof P.minCount=="number"){const L=[];for(let T=0;T<P.maxCount;T++){const A=`${w}-${T}`,x=t[A];x&&L.push(x)}b[w]||(b[w]=L.length>0?L:null,L.length>0&&(E+=` [附带${L.length}个文件: ${L.map(T=>typeof T=="string"?T.split("/").pop()||"file":T.name).join(", ")}] `))}else if(b[_]=t[_]??null,t[_]){const L=t[_];E+=` [附带文件: ${typeof L=="string"?L.split("/").pop()||"file":L.name}] `}}else if(b[_]=t[_]??null,t[_]){const P=t[_];E+=` [附带文件: ${typeof P=="string"?P.split("/").pop()||"file":P.name}] `}}else if((S==="video-url"||S==="video-upload")&&_){const w=m?.[_];if(w?.status==="success"&&w.videoUrl){b[_]=w.videoUrl,w.file&&(b[`${_}__file`]=w.file);const P=w.fileName||"视频";E+=` [附带视频: ${P}] `}}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"&&!S&&y.classList.contains("tag-node")?E+=y.innerText:y.childNodes.forEach(h)}}}};if(f.childNodes.forEach(h),E=E.trim(),!E)return;Object.keys(c).forEach(g=>{const y=c[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(_=>(_?.markdown||"").trim()).filter(_=>_.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),Object.keys(d).forEach(g=>{const y=d[g];if(!y||!y.modules||y.modules.length===0)return;const S=y.modules.map(_=>(_?.markdown||"").trim()).filter(_=>_.length>0);S.length!==0&&(b[`${g}__markdown`]=S)}),(async()=>{for(const y of Object.keys(b)){const S=b[y];if(typeof S=="string"&&S.startsWith("http")){if(e.find(w=>w.type==="upload"&&w.key===y)){const w=await $r(S);w&&(b[y]=w)}}else if(Array.isArray(S)&&e.find(w=>w.type==="upload"&&w.key===y)){for(let w=0;w<S.length;w++)if(typeof S[w]=="string"&&S[w].startsWith("http")){const P=await $r(S[w]);P&&(S[w]=P)}}}const g=new FormData;g.append("fullPrompt",E),Object.keys(b).forEach(y=>{const S=b[y];if(S!=null)if(S instanceof File)g.append(y,S);else if(Array.isArray(S)){const _=e.some(T=>Ue(T.type)&&T.key===y),w=e.some(T=>T.type==="report-url"&&T.key===y),P=y.endsWith("__markdown");_||w||P||y==="url"?S.forEach(T=>{T!=null&&T!==""&&g.append(y,String(T))}):S.forEach((T,A)=>{T!=null&&(T instanceof File?g.append(`${y}[${A}]`,T):typeof T=="string"?g.append(`${y}[${A}]`,T):g.append(`${y}[${A}]`,String(T)))})}else typeof S=="string"?g.append(y,S):g.append(y,String(S))}),a.length>0&&a.forEach(y=>{g.append("fileUrls",y)}),n(g,E),a.length>0&&l()})()},[e,t,a,l,n,r,i,u,s,o,c,d,m]);function Ur(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Ul(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]:Ur(t[l])&&Ur(e[l])&&Object.keys(t[l]).length>0&&Ul(e[l],t[l])})}const qr={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 Pt(){const e=typeof document<"u"?document:{};return Ul(e,qr),e}const wc={document:qr,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 Ge(){const e=typeof window<"u"?window:{};return Ul(e,wc),e}function _c(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function kc(e){const t=e;Object.keys(t).forEach(a=>{try{t[a]=null}catch{}try{delete t[a]}catch{}})}function zr(e,t=0){return setTimeout(e,t)}function Ja(){return Date.now()}function Nc(e){const t=Ge();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}function Ic(e,t="x"){const a=Ge();let l,n,r;const i=Nc(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 Za(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Lc(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ke(...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&&!Lc(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&&(Za(t[s])&&Za(n[s])?n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s]):!Za(t[s])&&Za(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:Ke(t[s],n[s])):t[s]=n[s])}}}return t}function Gt(e,t,a){e.style.setProperty(t,a)}function Vr({swiper:e,targetPosition:t,side:a}){const l=Ge(),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=(d,m)=>s==="next"&&d>=m||s==="prev"&&d<=m,c=()=>{i=new Date().getTime(),r===null&&(r=i);const d=Math.max(Math.min((i-r)/u,1),0),m=.5-Math.cos(d*Math.PI)/2;let f=n+m*(t-n);if(o(f,t)&&(f=t),e.wrapperEl.scrollTo({[a]:f}),o(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:f})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(c)};c()}function ut(e,t=""){const a=Ge(),l=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&l.push(...e.assignedElements()),t?l.filter(n=>n.matches(t)):l}function Oc(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 Dc(e,t){const a=Ge();let l=t.contains(e);return!l&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(l=[...t.assignedElements()].includes(e),l||(l=Oc(e,t))),l}function el(e){try{console.warn(e);return}catch{}}function tl(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:_c(t)),a}function Pc(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 xt(e,t){return Ge().getComputedStyle(e,null).getPropertyValue(t)}function al(e){let t=e,a;if(t){for(a=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(a+=1);return a}}function Gr(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 ql(e,t,a){const l=Ge();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 ua(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:a=>a}).createHTML(t):e.innerHTML=t}let zl;function Bc(){const e=Ge(),t=Pt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Yr(){return zl||(zl=Bc()),zl}let Vl;function Fc({userAgent:e}={}){const t=Yr(),a=Ge(),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_]+))?/),d=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=l==="Win32";let f=l==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!o&&f&&t.touch&&E.indexOf(`${i}x${u}`)>=0&&(o=n.match(/(Version)\/([\d.]+)/),o||(o=[0,1,"13_0_0"]),f=!1),s&&!m&&(r.os="android",r.android=!0),(o||d||c)&&(r.os="ios",r.ios=!0),r}function Wr(e={}){return Vl||(Vl=Fc(e)),Vl}let Gl;function Rc(){const e=Ge(),t=Wr();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 jr(){return Gl||(Gl=Rc()),Gl}function Hc({swiper:e,on:t,emit:a}){const l=Ge();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:d,height:m}=e;let f=d,E=m;c.forEach(({contentBoxSize:b,contentRect:h,target:v})=>{v&&v!==e.el||(f=h?h.width:(b[0]||b).inlineSize,E=h?h.height:(b[0]||b).blockSize)}),(f!==d||E!==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 $c({swiper:e,extendParams:t,on:a,emit:l}){const n=[],r=Ge(),i=(o,c={})=>{const d=r.MutationObserver||r.WebkitMutationObserver,m=new d(f=>{if(e.__preventObserver__)return;if(f.length===1){l("observerUpdate",f[0]);return}const E=function(){l("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(E):r.setTimeout(E,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=Gr(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 Uc={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 qc(){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(xt(l,"padding-left")||0,10)-parseInt(xt(l,"padding-right")||0,10),a=a-parseInt(xt(l,"padding-top")||0,10)-parseInt(xt(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 zc(){const e=this;function t(A,x){return parseFloat(A.getPropertyValue(e.getDirectionLabel(x))||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=ut(n,`.${e.params.slideClass}, swiper-slide`),c=u?e.virtual.slides.length:o.length;let d=[];const m=[],f=[];let E=a.slidesOffsetBefore;typeof E=="function"&&(E=a.slidesOffsetBefore.call(e));let b=a.slidesOffsetAfter;typeof b=="function"&&(b=a.slidesOffsetAfter.call(e));const h=e.snapGrid.length,v=e.slidesGrid.length,g=e.size-E-b;let y=a.spaceBetween,S=-E,_=0,w=0;if(typeof g>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*g:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y-E-b,o.forEach(A=>{r?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(Gt(l,"--swiper-centered-offset-before",""),Gt(l,"--swiper-centered-offset-after","")),a.cssMode&&(Gt(l,"--swiper-slides-offset-before",`${E}px`),Gt(l,"--swiper-slides-offset-after",`${b}px`));const P=a.grid&&a.grid.rows>1&&e.grid;P?e.grid.initSlides(o):e.grid&&e.grid.unsetSlides();let L;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){L=0;const x=o[A];if(!(x&&(P&&e.grid.updateSlide(A,x,o),xt(x,"display")==="none"))){if(u&&a.slidesPerView==="auto")a.virtual.slidesPerViewAutoSlideSize&&(L=a.virtual.slidesPerViewAutoSlideSize),L&&x&&(a.roundLengths&&(L=Math.floor(L)),x.style[e.getDirectionLabel("width")]=`${L}px`);else if(a.slidesPerView==="auto"){T&&(x.style[e.getDirectionLabel("width")]="");const k=getComputedStyle(x),D=x.style.transform,I=x.style.webkitTransform;if(D&&(x.style.transform="none"),I&&(x.style.webkitTransform="none"),a.roundLengths)L=e.isHorizontal()?ql(x,"width"):ql(x,"height");else{const C=t(k,"width"),B=t(k,"padding-left"),$=t(k,"padding-right"),F=t(k,"margin-left"),z=t(k,"margin-right"),O=k.getPropertyValue("box-sizing");if(O&&O==="border-box")L=C+F+z;else{const{clientWidth:W,offsetWidth:G}=x;L=C+B+$+F+z+(G-W)}}D&&(x.style.transform=D),I&&(x.style.webkitTransform=I),a.roundLengths&&(L=Math.floor(L))}else L=(g-(a.slidesPerView-1)*y)/a.slidesPerView,a.roundLengths&&(L=Math.floor(L)),x&&(x.style[e.getDirectionLabel("width")]=`${L}px`);x&&(x.swiperSlideSize=L),f.push(L),a.centeredSlides?(S=S+L/2+_/2+y,_===0&&A!==0&&(S=S-g/2-y),A===0&&(S=S-g/2-y),Math.abs(S)<1/1e3&&(S=0),a.roundLengths&&(S=Math.floor(S)),w%a.slidesPerGroup===0&&d.push(S),m.push(S)):(a.roundLengths&&(S=Math.floor(S)),(w-Math.min(e.params.slidesPerGroupSkip,w))%e.params.slidesPerGroup===0&&d.push(S),m.push(S),S=S+L+y),e.virtualSize+=L+y,_=L,w+=1}}if(e.virtualSize=Math.max(e.virtualSize,g)+b,r&&i&&(a.effect==="slide"||a.effect==="coverflow")&&(l.style.width=`${e.virtualSize+y}px`),a.setWrapperSize&&(l.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),P&&e.grid.updateWrapperSize(L,d),!a.centeredSlides){const A=a.slidesPerView!=="auto"&&a.slidesPerView%1!==0,x=a.snapToSlideEdge&&!a.loop&&(a.slidesPerView==="auto"||A);let k=d.length;if(x){let I;if(a.slidesPerView==="auto"){I=1;let C=0;for(let B=f.length-1;B>=0&&(C+=f[B]+(B<f.length-1?y:0),C<=g);B-=1)I=f.length-B}else I=Math.floor(a.slidesPerView);k=Math.max(c-I,0)}const D=[];for(let I=0;I<d.length;I+=1){let C=d[I];a.roundLengths&&(C=Math.floor(C)),x?I<=k&&D.push(C):d[I]<=e.virtualSize-g&&D.push(C)}d=D,Math.floor(e.virtualSize-g)-Math.floor(d[d.length-1])>1&&(x||d.push(e.virtualSize-g))}if(u&&a.loop){const A=f[0]+y;if(a.slidesPerGroup>1){const x=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/a.slidesPerGroup),k=A*a.slidesPerGroup;for(let D=0;D<x;D+=1)d.push(d[d.length-1]+k)}for(let x=0;x<e.virtual.slidesBefore+e.virtual.slidesAfter;x+=1)a.slidesPerGroup===1&&d.push(d[d.length-1]+A),m.push(m[m.length-1]+A),e.virtualSize+=A}if(d.length===0&&(d=[0]),y!==0){const A=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");o.filter((x,k)=>!a.cssMode||a.loop?!0:k!==o.length-1).forEach(x=>{x.style[A]=`${y}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let A=0;f.forEach(k=>{A+=k+(y||0)}),A-=y;const x=A>g?A-g:0;d=d.map(k=>k<=0?-E:k>x?x+b:k)}if(a.centerInsufficientSlides){let A=0;f.forEach(k=>{A+=k+(y||0)}),A-=y;const x=(E||0)+(b||0);if(A+x<g){const k=(g-A-x)/2;d.forEach((D,I)=>{d[I]=D-k}),m.forEach((D,I)=>{m[I]=D+k})}}if(Object.assign(e,{slides:o,snapGrid:d,slidesGrid:m,slidesSizesGrid:f}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){Gt(l,"--swiper-centered-offset-before",`${-d[0]}px`),Gt(l,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const A=-e.snapGrid[0],x=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(k=>k+A),e.slidesGrid=e.slidesGrid.map(k=>k+x)}if(c!==s&&e.emit("slidesLengthChange"),d.length!==h&&(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`,x=e.el.classList.contains(A);c<=a.maxBackfaceHiddenSlides?x||e.el.classList.add(A):x&&e.el.classList.remove(A)}}function Vc(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 Gc(){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 Xr=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function Yc(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 d=(i+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),m=(i-r[0]+(a.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+u),f=-(i-c),E=f+t.slidesSizesGrid[s],b=f>=0&&f<=t.size-t.slidesSizesGrid[s],h=f>=0&&f<t.size-1||E>1&&E<=t.size||f<=0&&E>=t.size;h&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s)),Xr(o,h,a.slideVisibleClass),Xr(o,b,a.slideFullyVisibleClass),o.progress=n?-d:d,o.originalProgress=n?-m:m}}function Wc(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,d=Math.abs(e-t.maxTranslate())<1;r=c||n<=0,i=d||n>=1,c&&(n=0),d&&(n=1)}if(a.loop){const c=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[c],f=t.slidesGrid[d],E=t.slidesGrid[t.slidesGrid.length-1],b=Math.abs(e);b>=m?u=(b-m)/E:u=(b+E-f)/E,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 Yl=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};function jc(){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=d=>ut(l,`.${a.slideClass}${d}, swiper-slide${d}`)[0];let s,o,c;if(r)if(a.loop){let d=n-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),s=u(`[data-swiper-slide-index="${d}"]`)}else s=u(`[data-swiper-slide-index="${n}"]`);else i?(s=t.find(d=>d.column===n),c=t.find(d=>d.column===n+1),o=t.find(d=>d.column===n-1)):s=t[n];s&&(i||(c=Mc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!c&&(c=t[0]),o=Pc(s,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!o===0&&(o=t[t.length-1]))),t.forEach(d=>{Yl(d,d===s,a.slideActiveClass),Yl(d,d===c,a.slideNextClass),Yl(d,d===o,a.slidePrevClass)}),e.emitSlidesClasses()}const ll=(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()}},Wl=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},jl=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)&&Wl(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)&&Wl(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)&&Wl(e,i)};function Xc(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 Kc(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=f=>{let E=f-t.virtual.slidesBefore;return E<0&&(E=t.virtual.slides.length+E),E>=t.virtual.slides.length&&(E-=t.virtual.slides.length),E};if(typeof s>"u"&&(s=Xc(t)),l.indexOf(a)>=0)o=l.indexOf(a);else{const f=Math.min(n.slidesPerGroupSkip,s);o=f+Math.floor((s-f)/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 d=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(d){const f=t.slides.find(b=>b.column===s);let E=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(E)&&(E=Math.max(t.slides.indexOf(f),0)),m=Math.floor(E/n.grid.rows)}else if(t.slides[s]){const f=t.slides[s].getAttribute("data-swiper-slide-index");f?m=parseInt(f,10):m=s}else m=s;Object.assign(t,{previousSnapIndex:u,snapIndex:o,previousRealIndex:i,realIndex:m,previousIndex:r,activeIndex:s}),t.initialized&&jl(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function Qc(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 Jc={updateSize:qc,updateSlides:zc,updateAutoHeight:Vc,updateSlidesOffset:Gc,updateSlidesProgress:Yc,updateProgress:Wc,updateSlidesClasses:jc,updateActiveIndex:Kc,updateClickedSlide:Qc};function Zc(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=Ic(r,e);return i+=t.cssOverflowAdjustment(),l&&(i=-i),i||0}function ed(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 d=a.maxTranslate()-a.minTranslate();d===0?c=0:c=(e-a.minTranslate())/d,c!==i&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)}function td(){return-this.snapGrid[0]}function ad(){return-this.snapGrid[this.snapGrid.length-1]}function ld(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 d=r.isHorizontal();if(t===0)u[d?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return Vr({swiper:r,targetPosition:-c,side:d?"left":"top"}),!0;u.scrollTo({[d?"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 nd={getTranslate:Zc,setTranslate:ed,minTranslate:td,maxTranslate:ad,translateTo:ld};function rd(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 Kr({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 id(e=!0,t){const a=this,{params:l}=a;l.cssMode||(l.autoHeight&&a.updateAutoHeight(),Kr({swiper:a,runCallbacks:e,direction:t,step:"Start"}))}function ud(e=!0,t){const a=this,{params:l}=a;a.animating=!1,!l.cssMode&&(a.setTransition(0),Kr({swiper:a,runCallbacks:e,direction:t,step:"End"}))}var sd={setTransition:rd,transitionStart:id,transitionEnd:ud};function od(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:d,rtlTranslate:m,wrapperEl:f,enabled:E}=r;if(!E&&!l&&!n||r.destroyed||r.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const b=Math.min(r.params.slidesPerGroupSkip,i);let h=b+Math.floor((i-b)/r.params.slidesPerGroup);h>=s.length&&(h=s.length-1);const v=-s[h];if(u.normalizeSlideIndex)for(let P=0;P<o.length;P+=1){const L=-Math.floor(v*100),T=Math.floor(o[P]*100),A=Math.floor(o[P+1]*100);typeof o[P+1]<"u"?L>=T&&L<A-(A-T)/2?i=P:L>=T&&L<A&&(i=P+1):L>=T&&(i=P)}if(r.initialized&&i!==d&&(!r.allowSlideNext&&(m?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate())||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(d||0)!==i))return!1;i!==(c||0)&&a&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let g;i>d?g="next":i<d?g="prev":g="reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&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 P=r.isHorizontal(),L=m?v:-v;if(t===0)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[P?"scrollLeft":"scrollTop"]=L})):f[P?"scrollLeft":"scrollTop"]=L,y&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Vr({swiper:r,targetPosition:L,side:P?"left":"top"}),!0;f.scrollTo({[P?"left":"top"]:L,behavior:"smooth"})}return!0}const w=jr().isSafari;return y&&!n&&w&&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(L){!r||r.destroyed||L.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 cd(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 b=i*n.params.grid.rows;u=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).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:d}=n.params,m=o||!!c||!!d;let f=n.params.slidesPerView;f==="auto"?f=n.slidesPerViewDynamic():(f=Math.ceil(parseFloat(n.params.slidesPerView,10)),m&&f%2===0&&(f=f+1));let E=s-u<f;if(m&&(E=E||u<Math.ceil(f/2)),l&&m&&n.params.slidesPerView!=="auto"&&!r&&(E=!1),E){const b=m?u<n.activeIndex?"prev":"next":u-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:b,slideTo:!0,activeSlideIndex:b==="next"?u+1:u-s+1,slideRealIndex:b==="next"?n.realIndex:void 0})}if(r){const b=i*n.params.grid.rows;i=n.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===b).column}else i=n.getSlideIndexByData(i)}return requestAnimationFrame(()=>{n.slideTo(i,t,a,l)}),n}function dd(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 fd(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 d=u?l.translate:-l.translate;function m(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const f=m(d),E=r.map(g=>m(g)),b=n.freeMode&&n.freeMode.enabled;let h=r[E.indexOf(f)-1];if(typeof h>"u"&&(n.cssMode||b)){let g;r.forEach((y,S)=>{f>=y&&(g=S)}),typeof g<"u"&&(h=b?r[g]:r[g>0?g-1:g])}let v=0;if(typeof h<"u"&&(v=i.indexOf(h),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 pd(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 hd(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 bd(){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(ut(a,`${i}[data-swiper-slide-index="${r}"]`)[0]),zr(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}var md={slideTo:od,slideToLoop:cd,slideNext:dd,slidePrev:fd,slideReset:pd,slideToClosest:hd,slideToClickedSlide:bd};function vd(e,t){const a=this,{params:l,slidesEl:n}=a;if(!l.loop||a.virtual&&a.params.virtual.enabled)return;const r=()=>{ut(n,`.${l.slideClass}, swiper-slide`).forEach((E,b)=>{E.setAttribute("data-swiper-slide-index",b)})},i=()=>{const f=ut(n,`.${l.slideBlankClass}`);f.forEach(E=>{E.remove()}),f.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,d=f=>{for(let E=0;E<f;E+=1){const b=a.isElement?tl("swiper-slide",[l.slideBlankClass]):tl("div",[l.slideClass,l.slideBlankClass]);a.slidesEl.append(b)}};if(o){if(l.loopAddBlankSlides){const f=s-a.slides.length%s;d(f),a.recalcSlides(),a.updateSlides()}else el("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 f=l.grid.rows-a.slides.length%l.grid.rows;d(f),a.recalcSlides(),a.updateSlides()}else el("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 gd({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:d,slidesEl:m,params:f}=s,{centeredSlides:E,slidesOffsetBefore:b,slidesOffsetAfter:h,initialSlide:v}=f,g=E||!!b||!!h;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!g&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):g&&s.snapIndex<f.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=d,s.emit("loopFix");return}let y=f.slidesPerView;y==="auto"?y=s.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),g&&y%2===0&&(y=y+1));const S=f.slidesPerGroupAuto?y:f.slidesPerGroup;let _=g?Math.max(S,Math.ceil(y/2)):S;_%S!==0&&(_+=S-_%S),_+=f.loopAdditionalSlides,s.loopedSlides=_;const w=s.grid&&f.grid&&f.grid.rows>1;o.length<y+_||s.params.effect==="cards"&&o.length<y+_*2?el("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"):w&&f.grid.fill==="row"&&el("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const P=[],L=[],T=w?Math.ceil(o.length/f.grid.rows):o.length,A=r&&T-v<y&&!g;let x=A?v:s.activeIndex;typeof n>"u"?n=s.getSlideIndex(o.find(F=>F.classList.contains(f.slideActiveClass))):x=n;const k=a==="next"||!a,D=a==="prev"||!a;let I=0,C=0;const $=(w?o[n].column:n)+(g&&typeof l>"u"?-y/2+.5:0);if($<_){I=Math.max(_-$,S);for(let F=0;F<_-$;F+=1){const z=F-Math.floor(F/T)*T;if(w){const O=T-z-1;for(let W=o.length-1;W>=0;W-=1)o[W].column===O&&P.push(W)}else P.push(T-z-1)}}else if($+y>T-_){C=Math.max($-(T-_*2),S),A&&(C=Math.max(C,y-T+v+1));for(let F=0;F<C;F+=1){const z=F-Math.floor(F/T)*T;w?o.forEach((O,W)=>{O.column===z&&L.push(W)}):L.push(z)}}if(s.__preventObserver__=!0,requestAnimationFrame(()=>{s.__preventObserver__=!1}),s.params.effect==="cards"&&o.length<y+_*2&&(L.includes(n)&&L.splice(L.indexOf(n),1),P.includes(n)&&P.splice(P.indexOf(n),1)),D&&P.forEach(F=>{o[F].swiperLoopMoveDOM=!0,m.prepend(o[F]),o[F].swiperLoopMoveDOM=!1}),k&&L.forEach(F=>{o[F].swiperLoopMoveDOM=!0,m.append(o[F]),o[F].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"?s.updateSlides():w&&(P.length>0&&D||L.length>0&&k)&&s.slides.forEach((F,z)=>{s.grid.updateSlide(z,F,s.slides)}),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(P.length>0&&D){if(typeof e>"u"){const F=s.slidesGrid[x],O=s.slidesGrid[x+I]-F;u?s.setTranslate(s.translate-O):(s.slideTo(x+Math.ceil(I),0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-O,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-O))}else if(l){const F=w?P.length/f.grid.rows:P.length;s.slideTo(s.activeIndex+F,0,!1,!0),s.touchEventsData.currentTranslate=s.translate}}else if(L.length>0&&k)if(typeof e>"u"){const F=s.slidesGrid[x],O=s.slidesGrid[x-C]-F;u?s.setTranslate(s.translate-O):(s.slideTo(x-C,0,!1,!0),l&&(s.touchEventsData.startTranslate=s.touchEventsData.startTranslate-O,s.touchEventsData.currentTranslate=s.touchEventsData.currentTranslate-O))}else{const F=w?L.length/f.grid.rows:L.length;s.slideTo(s.activeIndex-F,0,!1,!0)}}if(s.allowSlidePrev=c,s.allowSlideNext=d,s.controller&&s.controller.control&&!i){const F={slideRealIndex:e,direction:a,setTranslate:l,activeSlideIndex:n,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...F,slideTo:z.params.slidesPerView===f.slidesPerView?t:!1})}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix({...F,slideTo:s.controller.control.params.slidesPerView===f.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 yd={loopCreate:vd,loopFix:gd,loopDestroy:Ed};function Td(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 xd(){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 Cd={setGrabCursor:Td,unsetGrabCursor:xd};function Sd(e,t=this){function a(l){if(!l||l===Pt()||l===Ge())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 Qr(e,t,a){const l=Ge(),{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 Ad(e){const t=this,a=Pt();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"){Qr(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"&&!Dc(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 d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(m?Sd(d,s):s.closest(d))){t.allowClick=!0;return}if(r.swipeHandler&&!s.closest(r.swipeHandler))return;i.currentX=l.pageX,i.currentY=l.pageY;const f=i.currentX,E=i.currentY;if(!Qr(t,l,f))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=f,i.startY=E,n.touchStartTime=Ja(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let b=!0;s.matches(n.focusableElements)&&(b=!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 h=b&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||h)&&!s.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function wd(e){const t=Pt(),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(_=>_.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,d=o.pageY;if(s.preventedByNestedSwiper){r.startX=c,r.startY=d;return}if(!a.allowTouchMove){s.target.matches(l.focusableElements)||(a.allowClick=!1),l.isTouched&&(Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d}),l.touchStartTime=Ja());return}if(n.touchReleaseOnEdges&&!n.loop)if(a.isVertical()){if(d<r.startY&&a.translate<=a.maxTranslate()||d>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=d;const m=r.currentX-r.startX,f=r.currentY-r.startY;if(a.params.threshold&&Math.sqrt(m**2+f**2)<a.params.threshold)return;if(typeof l.isScrolling>"u"){let _;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?l.isScrolling=!1:m*m+f*f>=25&&(_=Math.atan2(Math.abs(f),Math.abs(m))*180/Math.PI,l.isScrolling=a.isHorizontal()?_>n.touchAngle:90-_>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 E=a.isHorizontal()?m:f,b=a.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(E=Math.abs(E)*(i?1:-1),b=Math.abs(b)*(i?1:-1)),r.diff=E,E*=n.touchRatio,i&&(E=-E,b=-b);const h=a.touchesDirection;a.swipeDirection=E>0?"prev":"next",a.touchesDirection=b>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 _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});a.wrapperEl.dispatchEvent(_)}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&&h!==a.touchesDirection&&v&&g&&Math.abs(E)>=1){Object.assign(r,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;return}a.emit("sliderMove",s),l.isMoved=!0,l.currentTranslate=E+l.startTranslate;let y=!0,S=n.resistanceRatio;if(n.touchReleaseOnEdges&&(S=0),E>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()&&(y=!1,n.resistance&&(l.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+l.startTranslate+E)**S))):E<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()&&(y=!1,n.resistance&&(l.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-l.startTranslate-E)**S))),y&&(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(E)>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 _d(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(_=>_.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 d=Ja(),m=d-a.touchStartTime;if(t.allowClick){const _=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(_&&_[0]||l.target,_),t.emit("tap click",l),m<300&&d-a.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(a.lastClickTime=Ja(),zr(()=>{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 f;if(i.followFinger?f=s?t.translate:-t.translate:f=-a.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}const E=f>=-t.maxTranslate()&&!t.params.loop;let b=0,h=t.slidesSizesGrid[0];for(let _=0;_<o.length;_+=_<i.slidesPerGroupSkip?1:i.slidesPerGroup){const w=_<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof o[_+w]<"u"?(E||f>=o[_]&&f<o[_+w])&&(b=_,h=o[_+w]-o[_]):(E||f>=o[_])&&(b=_,h=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 y=(f-o[b])/h,S=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(m>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?v:b+S):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+S):g!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(g):t.slideTo(b))}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(b+S):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:b+S),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:b))}}function Jr(){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 kd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Nd(){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 Id(e){const t=this;ll(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Ld(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Zr=(e,t)=>{const a=Pt(),{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",Jr,!0):e[o]("observerUpdate",Jr,!0),n[s]("load",e.onLoad,{capture:!0}))};function Od(){const e=this,{params:t}=e;e.onTouchStart=Ad.bind(e),e.onTouchMove=wd.bind(e),e.onTouchEnd=_d.bind(e),e.onDocumentTouchStart=Ld.bind(e),t.cssMode&&(e.onScroll=Nd.bind(e)),e.onClick=kd.bind(e),e.onLoad=Id.bind(e),Zr(e,"on")}function Dd(){Zr(this,"off")}var Pd={attachEvents:Od,detachEvents:Dd};const ei=(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=Pt(),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 d=(o in r?r[o]:void 0)||e.originalParams,m=ei(e,l),f=ei(e,d),E=e.params.grabCursor,b=d.grabCursor,h=l.enabled;m&&!f?(n.classList.remove(`${l.containerModifierClass}grid`,`${l.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&f&&(n.classList.add(`${l.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&l.grid.fill==="column")&&n.classList.add(`${l.containerModifierClass}grid-column`),e.emitContainerClasses()),E&&!b?e.unsetGrabCursor():!E&&b&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof d[w]>"u")return;const P=l[w]&&l[w].enabled,L=d[w]&&d[w].enabled;P&&!L&&e[w].disable(),!P&&L&&e[w].enable()});const v=d.direction&&d.direction!==l.direction,g=l.loop&&(d.slidesPerView!==l.slidesPerView||v),y=l.loop;v&&a&&e.changeDirection(),Ke(e.params,d);const S=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!S?e.disable():!h&&S&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",d),a&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&_?(e.loopCreate(t),e.updateSlides()):y&&!_&&e.loopDestroy()),e.emit("breakpoint",d)}function Bd(e,t="window",a){if(!e||t==="container"&&!a)return;let l=!1;const n=Ge(),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 Fd={setBreakpoint:Md,getBreakpoint:Bd};function Rd(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 Hd(){const e=this,{classNames:t,params:a,rtl:l,el:n,device:r}=e,i=Rd(["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 $d(){const e=this,{el:t,classNames:a}=e;!t||typeof t=="string"||(t.classList.remove(...a),e.emitContainerClasses())}var Ud={addClasses:Hd,removeClasses:$d};function qd(){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 zd={checkOverflow:qd},Xl={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(l={}){const n=Object.keys(l)[0],r=l[n];if(typeof r!="object"||r===null){Ke(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)){Ke(t,l);return}typeof e[n]=="object"&&!("enabled"in e[n])&&(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),Ke(t,l)}}const Kl={eventsEmitter:Uc,update:Jc,translate:nd,transition:sd,slide:md,loop:yd,grabCursor:Cd,events:Pd,breakpoints:Fd,checkOverflow:zd,classes:Ud},Ql={};let Jl=class yt{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=Ke({},l),a&&!l.el&&(l.el=a);const n=Pt();if(l.el&&typeof l.el=="string"&&n.querySelectorAll(l.el).length>1){const s=[];return n.querySelectorAll(l.el).forEach(o=>{const c=Ke({},l,{el:o});s.push(new yt(c))}),s}const r=this;r.__swiper__=!0,r.support=Yr(),r.device=Wr({userAgent:l.userAgent}),r.browser=jr(),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:Vd(l,i),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const u=Ke({},Xl,i);return r.params=Ke({},u,Ql,l),r.originalParams=Ke({},r.params),r.passedParams=Ke({},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=ut(a,`.${l.slideClass}, swiper-slide`),r=al(n[0]);return al(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=ut(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 d=r[o]?Math.ceil(r[o].swiperSlideSize):0,m;for(let f=o+1;f<r.length;f+=1)r[f]&&!m&&(d+=Math.ceil(r[f].swiperSlideSize),c+=1,d>s&&(m=!0));for(let f=o-1;f>=0;f-=1)r[f]&&!m&&(d+=r[f].swiperSlideSize,c+=1,d>s&&(m=!0))}else if(t==="current")for(let d=o+1;d<r.length;d+=1)(a?i[d]+u[d]-i[o]<s:i[d]-i[o]<s)&&(c+=1);else for(let d=o-1;d>=0;d-=1)i[o]-i[d]<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&&ll(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()):ut(l,n())[0];return!i&&a.params.createElements&&(i=tl("div",a.params.wrapperClass),l.append(i),ut(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"||xt(l,"direction")==="rtl",rtlTranslate:a.params.direction==="horizontal"&&(l.dir.toLowerCase()==="rtl"||xt(l,"direction")==="rtl"),wrongRTL:xt(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?ll(a,r):r.addEventListener("load",i=>{ll(a,i.target)})}),jl(a),a.initialized=!0,jl(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),kc(l)),l.destroyed=!0),null}static extendDefaults(t){Ke(Ql,t)}static get extendedDefaults(){return Ql}static get defaults(){return Xl}static installModule(t){yt.prototype.__modules__||(yt.prototype.__modules__=[]);const a=yt.prototype.__modules__;typeof t=="function"&&a.indexOf(t)<0&&a.push(t)}static use(t){return Array.isArray(t)?(t.forEach(a=>yt.installModule(a)),yt):(yt.installModule(t),yt)}};Object.keys(Kl).forEach(e=>{Object.keys(Kl[e]).forEach(t=>{Jl.prototype[t]=Kl[e][t]})}),Jl.use([Hc,$c]);const ti=["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 Mt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Yt(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]:Mt(t[l])&&Mt(e[l])&&Object.keys(t[l]).length>0?t[l].__swiper__?e[l]=t[l]:Yt(e[l],t[l]):e[l]=t[l]})}function ai(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function li(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ni(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function ri(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 Gd(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Yd({swiper:e,slides:t,passedParams:a,changedParams:l,nextEl:n,prevEl:r,scrollbarEl:i,paginationEl:u}){const s=l.filter(L=>L!=="children"&&L!=="direction"&&L!=="wrapperClass"),{params:o,pagination:c,navigation:d,scrollbar:m,virtual:f,thumbs:E}=e;let b,h,v,g,y,S,_,w;l.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&!a.thumbs.swiper.destroyed&&o.thumbs&&(!o.thumbs.swiper||o.thumbs.swiper.destroyed)&&(b=!0),l.includes("controller")&&a.controller&&a.controller.control&&o.controller&&!o.controller.control&&(h=!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)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const P=L=>{e[L]&&(e[L].destroy(),L==="navigation"?(e.isElement&&(e[L].prevEl.remove(),e[L].nextEl.remove()),o[L].prevEl=void 0,o[L].nextEl=void 0,e[L].prevEl=void 0,e[L].nextEl=void 0):(e.isElement&&e[L].el.remove(),o[L].el=void 0,e[L].el=void 0))};l.includes("loop")&&e.isElement&&(o.loop&&!a.loop?S=!0:!o.loop&&a.loop?_=!0:w=!0),s.forEach(L=>{if(Mt(o[L])&&Mt(a[L]))Object.assign(o[L],a[L]),(L==="navigation"||L==="pagination"||L==="scrollbar")&&"enabled"in a[L]&&!a[L].enabled&&P(L);else{const T=a[L];(T===!0||T===!1)&&(L==="navigation"||L==="pagination"||L==="scrollbar")?T===!1&&P(L):o[L]=a[L]}}),s.includes("controller")&&!h&&e.controller&&e.controller.control&&o.controller&&o.controller.control&&(e.controller.control=o.controller.control),l.includes("children")&&t&&f&&o.virtual.enabled?(f.slides=t,f.update(!0)):l.includes("virtual")&&f&&o.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),l.includes("children")&&t&&o.loop&&(w=!0),b&&E.init()&&E.update(!0),h&&(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()),y&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),ua(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"),ua(r,e.navigation.arrowSvg),r.part.add("button-prev"),e.el.appendChild(r))),n&&(o.navigation.nextEl=n),r&&(o.navigation.prevEl=r),d.init(),d.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),l.includes("direction")&&e.changeDirection(a.direction,!1),(S||w)&&e.loopDestroy(),(_||w)&&e.loopCreate(),e.update()}function Wd(e={},t=!0){const a={on:{}},l={},n={};Yt(a,Xl),a._emitClasses=!0,a.init=!1;const r={},i=ti.map(s=>s.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(s=>{typeof e[s]>"u"||(i.indexOf(s)>=0?Mt(e[s])?(a[s]={},n[s]={},Yt(a[s],e[s]),Yt(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 jd({el:e,nextEl:t,prevEl:a,paginationEl:l,scrollbarEl:n,swiper:r},i){ai(i)&&t&&a&&(r.params.navigation.nextEl=t,r.originalParams.navigation.nextEl=t,r.params.navigation.prevEl=a,r.originalParams.navigation.prevEl=a),li(i)&&l&&(r.params.pagination.el=l,r.originalParams.pagination.el=l),ni(i)&&n&&(r.params.scrollbar.el=n,r.originalParams.scrollbar.el=n),r.init(e)}function Xd(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 ti.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Mt(e[s])&&Mt(t[s])){const o=Object.keys(e[s]),c=Object.keys(t[s]);o.length!==c.length?i(s):(o.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}),c.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}))}else e[s]!==t[s]&&i(s)}),r}const Kd=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 nl(){return nl=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},nl.apply(this,arguments)}function ii(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ui(e){const t=[];return N.Children.toArray(e).forEach(a=>{ii(a)?t.push(a):a.props&&a.props.children&&ui(a.props.children).forEach(l=>t.push(l))}),t}function Qd(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return N.Children.toArray(e).forEach(l=>{if(ii(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=ui(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 Jd(e,t,a){if(!a)return null;const l=c=>{let d=c;return c<0?d=t.length+c:d>=t.length&&(d=d-t.length),d},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,d)=>N.cloneElement(c,{swiper:e,style:n,key:c.props.virtualIndex||c.key||`slide-${d}`}))}function sa(e,t){return typeof window>"u"?N.useEffect(e,t):N.useLayoutEffect(e,t)}const si=N.createContext(null),Zd=N.createContext(null),oi=N.forwardRef(({className:e,tag:t="div",wrapperTag:a="div",children:l,onSwiper:n,...r}={},i)=>{let u=!1;const[s,o]=N.useState("swiper"),[c,d]=N.useState(null),[m,f]=N.useState(!1),E=N.useRef(!1),b=N.useRef(null),h=N.useRef(null),v=N.useRef(null),g=N.useRef(null),y=N.useRef(null),S=N.useRef(null),_=N.useRef(null),w=N.useRef(null),{params:P,passedParams:L,rest:T,events:A}=Wd(r),{slides:x,slots:k}=Qd(l),D=()=>{f(!m)};Object.assign(P.on,{_containerClasses(F,z){o(z)}});const I=()=>{Object.assign(P.on,A),u=!0;const F={...P};if(delete F.wrapperClass,h.current=new Jl(F),h.current.virtual&&h.current.params.virtual.enabled){h.current.virtual.slides=x;const z={cache:!1,slides:x,renderExternal:d,renderExternalUpdate:!1};Yt(h.current.params.virtual,z),Yt(h.current.originalParams.virtual,z)}};b.current||I(),h.current&&h.current.on("_beforeBreakpoint",D);const C=()=>{u||!A||!h.current||Object.keys(A).forEach(F=>{h.current.on(F,A[F])})},B=()=>{!A||!h.current||Object.keys(A).forEach(F=>{h.current.off(F,A[F])})};N.useEffect(()=>()=>{h.current&&h.current.off("_beforeBreakpoint",D)}),N.useEffect(()=>{!E.current&&h.current&&(h.current.emitSlidesClasses(),E.current=!0)}),sa(()=>{if(i&&(i.current=b.current),!!b.current)return h.current.destroyed&&I(),jd({el:b.current,nextEl:y.current,prevEl:S.current,paginationEl:_.current,scrollbarEl:w.current,swiper:h.current},P),n&&!h.current.destroyed&&n(h.current),()=>{h.current&&!h.current.destroyed&&h.current.destroy(!0,!1)}},[]),sa(()=>{C();const F=Xd(L,v.current,x,g.current,z=>z.key);return v.current=L,g.current=x,F.length&&h.current&&!h.current.destroyed&&Yd({swiper:h.current,slides:x,passedParams:L,changedParams:F,nextEl:y.current,prevEl:S.current,scrollbarEl:w.current,paginationEl:_.current}),()=>{B()}}),sa(()=>{Kd(h.current)},[c]);function $(){return P.virtual?Jd(h.current,x,c):x.map((F,z)=>N.cloneElement(F,{swiper:h.current,swiperSlideIndex:z}))}return N.createElement(t,nl({ref:b,className:ri(`${s}${e?` ${e}`:""}`)},T),N.createElement(Zd.Provider,{value:h.current},k["container-start"],N.createElement(a,{className:Gd(P.wrapperClass)},k["wrapper-start"],$(),k["wrapper-end"]),ai(P)&&N.createElement(N.Fragment,null,N.createElement("div",{ref:S,className:"swiper-button-prev"}),N.createElement("div",{ref:y,className:"swiper-button-next"})),ni(P)&&N.createElement("div",{ref:w,className:"swiper-scrollbar"}),li(P)&&N.createElement("div",{ref:_,className:"swiper-pagination"}),k["container-end"]))});oi.displayName="Swiper";const ci=N.forwardRef(({tag:e="div",children:t,className:a="",swiper:l,zoom:n,lazy:r,virtualIndex:i,swiperSlideIndex:u,...s}={},o)=>{const c=N.useRef(null),[d,m]=N.useState("swiper-slide"),[f,E]=N.useState(!1);function b(y,S,_){S===c.current&&m(_)}sa(()=>{if(typeof u<"u"&&(c.current.swiperSlideIndex=u),o&&(o.current=c.current),!(!c.current||!l)){if(l.destroyed){d!=="swiper-slide"&&m("swiper-slide");return}return l.on("_slideClass",b),()=>{l&&l.off("_slideClass",b)}}}),sa(()=>{l&&c.current&&!l.destroyed&&m(l.getSlideClasses(c.current))},[l]);const h={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},v=()=>typeof t=="function"?t(h):t,g=()=>{E(!0)};return N.createElement(e,nl({ref:c,className:ri(`${d}${a?` ${a}`:""}`),"data-swiper-slide-index":i,onLoad:g},s),n&&N.createElement(si.Provider,{value:h},N.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof n=="number"?n:void 0},v(),r&&!f&&N.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}}))),!n&&N.createElement(si.Provider,{value:h},v(),r&&!f&&N.createElement("div",{className:"swiper-lazy-preloader",ref:y=>{y&&(y.lazyPreloaderManaged=!0)}})))});ci.displayName="SwiperSlide";function di(e,t,a,l){return e.params.createElements&&Object.keys(l).forEach(n=>{if(!a[n]&&a.auto===!0){let r=ut(e.el,`.${l[n]}`)[0];r||(r=tl("div",l[n]),r.className=l[n],e.el.append(r)),a[n]=r,t[n]=r}}),a}const fi='<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 ef({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:fi};function n(f){let E;return f&&typeof f=="string"&&e.isElement&&(E=e.el.querySelector(f)||e.hostEl.querySelector(f),E)?E:(f&&(typeof f=="string"&&(E=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&E&&E.length>1&&e.el.querySelectorAll(f).length===1?E=e.el.querySelector(f):E&&E.length===1&&(E=E[0])),f&&!E?f:E)}function r(f,E){const b=e.params.navigation;f=Me(f),f.forEach(h=>{h&&(h.classList[E?"add":"remove"](...b.disabledClass.split(" ")),h.tagName==="BUTTON"&&(h.disabled=E),e.params.watchOverflow&&e.enabled&&h.classList[e.isLocked?"add":"remove"](b.lockClass))})}function i(){const{nextEl:f,prevEl:E}=e.navigation;if(e.params.loop){r(E,!1),r(f,!1);return}r(E,e.isBeginning&&!e.params.rewind),r(f,e.isEnd&&!e.params.rewind)}function u(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),l("navigationPrev"))}function s(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),l("navigationNext"))}function o(){const f=e.params.navigation;if(e.params.navigation=di(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let E=n(f.nextEl),b=n(f.prevEl);Object.assign(e.navigation,{nextEl:E,prevEl:b}),E=Me(E),b=Me(b);const h=(v,g)=>{if(v){if(f.addIcons&&v.matches(".swiper-button-next,.swiper-button-prev")&&!v.querySelector("svg")){const y=document.createElement("div");ua(y,fi),v.appendChild(y.querySelector("svg")),y.remove()}v.addEventListener("click",g==="next"?s:u)}!e.enabled&&v&&v.classList.add(...f.lockClass.split(" "))};E.forEach(v=>h(v,"next")),b.forEach(v=>h(v,"prev"))}function c(){let{nextEl:f,prevEl:E}=e.navigation;f=Me(f),E=Me(E);const b=(h,v)=>{h.removeEventListener("click",v==="next"?s:u),h.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(h=>b(h,"next")),E.forEach(h=>b(h,"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:f,prevEl:E}=e.navigation;if(f=Me(f),E=Me(E),e.enabled){i();return}[...f,...E].filter(b=>!!b).forEach(b=>b.classList.add(e.params.navigation.lockClass))}),a("click",(f,E)=>{let{nextEl:b,prevEl:h}=e.navigation;b=Me(b),h=Me(h);const v=E.target;let g=h.includes(v)||b.includes(v);if(e.isElement&&!g){const y=E.path||E.composedPath&&E.composedPath();y&&(g=y.find(S=>b.includes(S)||h.includes(S)))}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 y;b.length?y=b[0].classList.contains(e.params.navigation.hiddenClass):h.length&&(y=h[0].classList.contains(e.params.navigation.hiddenClass)),l(y===!0?"navigationShow":"navigationHide"),[...b,...h].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{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:d,disable:m,update:i,init:o,destroy:c})}function oa(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function tf({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:y}=e.params.pagination;v&&(v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${y}-${g}`),v=v[`${g==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${y}-${g}-${g}`)))}function o(v,g,y){if(v=v%y,g=g%y,g===v+1)return"next";if(g===v-1)return"previous"}function c(v){const g=v.target.closest(oa(e.params.pagination.bulletClass));if(!g)return;v.preventDefault();const y=al(g)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const S=o(e.realIndex,y,e.slides.length);S==="next"?e.slideNext():S==="previous"?e.slidePrev():e.slideToLoop(y)}else e.slideTo(y)}function d(){const v=e.rtl,g=e.params.pagination;if(u())return;let y=e.pagination.el;y=Me(y);let S,_;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(_=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,_=e.previousSnapIndex):(_=e.previousIndex||0,S=e.activeIndex||0),g.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const L=e.pagination.bullets;let T,A,x;if(g.dynamicBullets&&(r=ql(L[0],e.isHorizontal()?"width":"height"),y.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${r*(g.dynamicMainBullets+4)}px`}),g.dynamicMainBullets>1&&_!==void 0&&(i+=S-(_||0),i>g.dynamicMainBullets-1?i=g.dynamicMainBullets-1:i<0&&(i=0)),T=Math.max(S-i,0),A=T+(Math.min(L.length,g.dynamicMainBullets)-1),x=(A+T)/2),L.forEach(k=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(I=>`${g.bulletActiveClass}${I}`)].map(I=>typeof I=="string"&&I.includes(" ")?I.split(" "):I).flat();k.classList.remove(...D)}),y.length>1)L.forEach(k=>{const D=al(k);D===S?k.classList.add(...g.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),g.dynamicBullets&&(D>=T&&D<=A&&k.classList.add(...`${g.bulletActiveClass}-main`.split(" ")),D===T&&s(k,"prev"),D===A&&s(k,"next"))});else{const k=L[S];if(k&&k.classList.add(...g.bulletActiveClass.split(" ")),e.isElement&&L.forEach((D,I)=>{D.setAttribute("part",I===S?"bullet-active":"bullet")}),g.dynamicBullets){const D=L[T],I=L[A];for(let C=T;C<=A;C+=1)L[C]&&L[C].classList.add(...`${g.bulletActiveClass}-main`.split(" "));s(D,"prev"),s(I,"next")}}if(g.dynamicBullets){const k=Math.min(L.length,g.dynamicMainBullets+4),D=(r*k-r)/2-x*r,I=v?"right":"left";L.forEach(C=>{C.style[e.isHorizontal()?I:"top"]=`${D}px`})}}y.forEach((L,T)=>{if(g.type==="fraction"&&(L.querySelectorAll(oa(g.currentClass)).forEach(A=>{A.textContent=g.formatFractionCurrent(S+1)}),L.querySelectorAll(oa(g.totalClass)).forEach(A=>{A.textContent=g.formatFractionTotal(P)})),g.type==="progressbar"){let A;g.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const x=(S+1)/P;let k=1,D=1;A==="horizontal"?k=x:D=x,L.querySelectorAll(oa(g.progressbarFillClass)).forEach(I=>{I.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${D})`,I.style.transitionDuration=`${e.params.speed}ms`})}g.type==="custom"&&g.renderCustom?(ua(L,g.renderCustom(e,S+1,P)),T===0&&l("paginationRender",L)):(T===0&&l("paginationRender",L),l("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.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 y=e.pagination.el;y=Me(y);let S="";if(v.type==="bullets"){let _=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&_>g&&(_=g);for(let w=0;w<_;w+=1)v.renderBullet?S+=v.renderBullet.call(e,w,v.bulletClass):S+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?S=v.renderFraction.call(e,v.currentClass,v.totalClass):S=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?S=v.renderProgressbar.call(e,v.progressbarFillClass):S=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(_=>{v.type!=="custom"&&ua(_,S||""),v.type==="bullets"&&e.pagination.bullets.push(..._.querySelectorAll(oa(v.bulletClass)))}),v.type!=="custom"&&l("paginationRender",y[0])}function f(){e.params.pagination=di(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(y=>Gr(y,".swiper")[0]===e.el))),Array.isArray(g)&&g.length===1&&(g=g[0]),Object.assign(e.pagination,{el:g}),g=Me(g),g.forEach(y=>{v.type==="bullets"&&v.clickable&&y.classList.add(...(v.clickableClass||"").split(" ")),y.classList.add(v.modifierClass+v.type),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(y.classList.add(`${v.modifierClass}${v.type}-dynamic`),i=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&y.classList.add(v.progressbarOppositeClass),v.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(v.lockClass)}))}function E(){const v=e.params.pagination;if(u())return;let g=e.pagination.el;g&&(g=Me(g),g.forEach(y=>{y.classList.remove(v.hiddenClass),y.classList.remove(v.modifierClass+v.type),y.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(y.classList.remove(...(v.clickableClass||"").split(" ")),y.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.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(y=>{y.classList.remove(v.horizontalClass,v.verticalClass),y.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),a("init",()=>{e.params.pagination.enabled===!1?h():(f(),m(),d())}),a("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),a("snapIndexChange",()=>{d()}),a("snapGridLengthChange",()=>{m(),d()}),a("destroy",()=>{E()}),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",()=>{d()}),a("click",(v,g)=>{const y=g.target,S=Me(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.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 _=S[0].classList.contains(e.params.pagination.hiddenClass);l(_===!0?"paginationShow":"paginationHide"),S.forEach(w=>w.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{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))),f(),m(),d()},h=()=>{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))),E()};Object.assign(e.pagination,{enable:b,disable:h,render:m,update:d,init:f,destroy:E})}function my(){}function vy(){}function pi(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 hi(e,t){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const af=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nf={};function bi(e,t){return(nf.jsx?lf:af).test(e)}const rf=/[ \t\n\f\r]/g;function uf(e){return typeof e=="object"?e.type==="text"?mi(e.value):!1:mi(e)}function mi(e){return e.replace(rf,"")===""}class ca{constructor(t,a,l){this.normal=a,this.property=t,l&&(this.space=l)}}ca.prototype.normal={},ca.prototype.property={},ca.prototype.space=void 0;function vi(e,t){const a={},l={};for(const n of e)Object.assign(a,n.property),Object.assign(l,n.normal);return new ca(a,l,t)}function da(e){return e.toLowerCase()}class We{constructor(t,a){this.attribute=a,this.property=t}}We.prototype.attribute="",We.prototype.booleanish=!1,We.prototype.boolean=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.commaSeparated=!1,We.prototype.defined=!1,We.prototype.mustUseProperty=!1,We.prototype.number=!1,We.prototype.overloadedBoolean=!1,We.prototype.property="",We.prototype.spaceSeparated=!1,We.prototype.space=void 0;let sf=0;const be=Bt(),Pe=Bt(),Zl=Bt(),ee=Bt(),ke=Bt(),Wt=Bt(),Qe=Bt();function Bt(){return 2**++sf}const en=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Pe,commaOrSpaceSeparated:Qe,commaSeparated:Wt,number:ee,overloadedBoolean:Zl,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),tn=Object.keys(en);class an extends We{constructor(t,a,l,n){let r=-1;if(super(t,a),gi(this,"space",n),typeof l=="number")for(;++r<tn.length;){const i=tn[r];gi(this,tn[r],(l&en[i])===en[i])}}}an.prototype.defined=!0;function gi(e,t,a){a&&(e[t]=a)}function jt(e){const t={},a={};for(const[l,n]of Object.entries(e.properties)){const r=new an(l,e.transform(e.attributes||{},l),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),t[l]=r,a[da(l)]=l,a[da(r.attribute)]=l}return new ca(t,a,e.space)}const Ei=jt({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:ke,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:ee,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:ke,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Pe,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yi(e,t){return t in e?e[t]:t}function Ti(e,t){return yi(e,t.toLowerCase())}const of=jt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wt,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:ke,autoFocus:be,autoPlay:be,blocking:ke,capture:null,charSet:null,checked:be,cite:null,className:ke,cols:ee,colSpan:null,content:null,contentEditable:Pe,controls:be,controlsList:ke,coords:ee|Wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:Zl,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:ke,height:ee,hidden:Zl,high:ee,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:ke,itemRef:ke,itemScope:be,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:ee,pattern:null,ping:ke,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:ke,required:be,reversed:be,rows:ee,rowSpan:ee,sandbox:ke,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Pe,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:Ti}),cf=jt({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:Qe,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:ke,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:Wt,g2:Wt,glyphName:Wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yi}),xi=jt({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()}}),Ci=jt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ti}),Si=jt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),df={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"},ff=/[A-Z]/g,Ai=/-[a-z]/g,pf=/^data[-\w.:]+$/i;function rl(e,t){const a=da(t);let l=t,n=We;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&pf.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(Ai,bf);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!Ai.test(r)){let i=r.replace(ff,hf);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=an}return new n(l,t)}function hf(e){return"-"+e.toLowerCase()}function bf(e){return e.charAt(1).toUpperCase()}const fa=vi([Ei,of,xi,Ci,Si],"html"),Ct=vi([Ei,cf,xi,Ci,Si],"svg");function wi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _i(e){return e.join(" ").trim()}function ln(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={},nn,ki;function mf(){if(ki)return nn;ki=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="*",d="",m="comment",f="declaration";function E(h,v){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];v=v||{};var g=1,y=1;function S(I){var C=I.match(t);C&&(g+=C.length);var B=I.lastIndexOf(s);y=~B?I.length-B:y+I.length}function _(){var I={line:g,column:y};return function(C){return C.position=new w(I),T(),C}}function w(I){this.start=I,this.end={line:g,column:y},this.source=v.source}w.prototype.content=h;function P(I){var C=new Error(v.source+":"+g+":"+y+": "+I);if(C.reason=I,C.filename=v.source,C.line=g,C.column=y,C.source=h,!v.silent)throw C}function L(I){var C=I.exec(h);if(C){var B=C[0];return S(B),h=h.slice(B.length),C}}function T(){L(a)}function A(I){var C;for(I=I||[];C=x();)C!==!1&&I.push(C);return I}function x(){var I=_();if(!(o!=h.charAt(0)||c!=h.charAt(1))){for(var C=2;d!=h.charAt(C)&&(c!=h.charAt(C)||o!=h.charAt(C+1));)++C;if(C+=2,d===h.charAt(C-1))return P("End of comment missing");var B=h.slice(2,C-2);return y+=2,S(B),h=h.slice(C),y+=2,I({type:m,comment:B})}}function k(){var I=_(),C=L(l);if(C){if(x(),!L(n))return P("property missing ':'");var B=L(r),$=I({type:f,property:b(C[0].replace(e,d)),value:B?b(B[0].replace(e,d)):d});return L(i),$}}function D(){var I=[];A(I);for(var C;C=k();)C!==!1&&(I.push(C),A(I));return I}return T(),D()}function b(h){return h?h.replace(u,d):d}return nn=E,nn}var Ni;function vf(){if(Ni)return Xt;Ni=1;var e=Xt&&Xt.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=a;const t=e(mf());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 Xt}var pa={},Ii;function gf(){if(Ii)return pa;Ii=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.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 pa.camelCase=s,pa}var ha,Li;function Ef(){if(Li)return ha;Li=1;var e=ha&&ha.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(vf()),a=gf();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,ha=l,ha}var yf=Ef();const Tf=ln(yf),il=Oi("end"),st=Oi("start");function Oi(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 Di(e){const t=st(e),a=il(e);if(t&&a)return{start:t,end:a}}function ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pi(e.position):"start"in e||"end"in e?Pi(e):"line"in e||"column"in e?rn(e):""}function rn(e){return Mi(e&&e.line)+":"+Mi(e&&e.column)}function Pi(e){return rn(e&&e.start)+"-"+rn(e&&e.end)}function Mi(e){return e&&typeof e=="number"?e:1}class qe 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=ba(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}}qe.prototype.file="",qe.prototype.name="",qe.prototype.reason="",qe.prototype.message="",qe.prototype.stack="",qe.prototype.column=void 0,qe.prototype.line=void 0,qe.prototype.ancestors=void 0,qe.prototype.cause=void 0,qe.prototype.fatal=void 0,qe.prototype.place=void 0,qe.prototype.ruleId=void 0,qe.prototype.source=void 0;const un={}.hasOwnProperty,xf=new Map,Cf=/[A-Z]/g,Sf=new Set(["table","tbody","thead","tfoot","tr"]),Af=new Set(["td","th"]),Bi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wf(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=Pf(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=Df(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"?Ct:fa,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=Fi(n,e,void 0);return r&&typeof r!="string"?r:n.create(e,n.Fragment,{children:r||void 0},void 0)}function Fi(e,t,a){if(t.type==="element")return _f(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return kf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return If(e,t,a);if(t.type==="mdxjsEsm")return Nf(e,t);if(t.type==="root")return Lf(e,t,a);if(t.type==="text")return Of(e,t)}function _f(e,t,a){const l=e.schema;let n=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(n=Ct,e.schema=n),e.ancestors.push(t);const r=Hi(e,t.tagName,!1),i=Mf(e,t);let u=on(e,t);return Sf.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!uf(s):!0})),Ri(e,i,r,t),sn(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function kf(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)}ma(e,t.position)}function Nf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ma(e,t.position)}function If(e,t,a){const l=e.schema;let n=l;t.name==="svg"&&l.space==="html"&&(n=Ct,e.schema=n),e.ancestors.push(t);const r=t.name===null?e.Fragment:Hi(e,t.name,!0),i=Bf(e,t),u=on(e,t);return Ri(e,i,r,t),sn(i,u),e.ancestors.pop(),e.schema=l,e.create(t,r,i,a)}function Lf(e,t,a){const l={};return sn(l,on(e,t)),e.create(t,e.Fragment,l,a)}function Of(e,t){return t.value}function Ri(e,t,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=l)}function sn(e,t){if(t.length>0){const a=t.length>1?t:t[0];a&&(e.children=a)}}function Df(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 Pf(e,t){return a;function a(l,n,r,i){const u=Array.isArray(r.children),s=st(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"&&un.call(t.properties,n)){const r=Ff(e,n,t.properties[n]);if(r){const[i,u]=r;e.tableCellAlignToStyle&&i==="align"&&typeof u=="string"&&Af.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 Bf(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 ma(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 ma(e,t.position);else r=l.value===null?!0:l.value;a[n]=r}return a}function on(e,t){const a=[];let l=-1;const n=e.passKeys?new Map:xf;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=Fi(e,r,i);u!==void 0&&a.push(u)}return a}function Ff(e,t,a){const l=rl(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?hi(a):_i(a)),l.property==="style"){let n=typeof a=="object"?a:Rf(e,String(a));return e.stylePropertyNameCase==="css"&&(n=Hf(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&l.space?df[l.property]||l.property:l.attribute,a]}}function Rf(e,t){try{return Tf(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const l=a,n=new qe("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=Bi+"#cannot-parse-style-attribute",n}}function Hi(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=bi(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=bi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const n=l.value;return un.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(l);ma(e)}function ma(e,t){const a=new qe("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=Bi+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Hf(e){const t={};let a;for(a in e)un.call(e,a)&&(t[$f(a)]=e[a]);return t}function $f(e){let t=e.replace(Cf,Uf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Uf(e){return"-"+e.toLowerCase()}const cn={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"]},qf={};function zf(e,t){const a=qf,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return $i(e,l,n)}function $i(e,t,a){if(Vf(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 Ui(e.children,t,a)}return Array.isArray(e)?Ui(e,t,a):""}function Ui(e,t,a){const l=[];let n=-1;for(;++n<e.length;)l[n]=$i(e[n],t,a);return l.join("")}function Vf(e){return!!(e&&typeof e=="object")}const qi=document.createElement("i");function va(e){const t="&"+e+";";qi.innerHTML=t;const a=qi.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ot(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 et(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const zi={}.hasOwnProperty;function Gf(e){const t={};let a=-1;for(;++a<e.length;)Yf(t,e[a]);return t}function Yf(e,t){let a;for(a in t){const n=(zi.call(e,a)?e[a]:void 0)||(e[a]={}),r=t[a];let i;if(r)for(i in r){zi.call(n,i)||(n[i]=[]);const u=r[i];Wf(n[i],Array.isArray(u)?u:u?[u]:[])}}}function Wf(e,t){let a=-1;const l=[];for(;++a<t.length;)(t[a].add==="after"?e:l).push(t[a]);ot(e,0,0,l)}function Vi(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 Kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ct=St(/[A-Za-z]/),Je=St(/[\dA-Za-z]/),jf=St(/[#-'*+\--9=?A-Z^-~]/);function dn(e){return e!==null&&(e<32||e===127)}const fn=St(/\d/),Xf=St(/[\dA-Fa-f]/),Kf=St(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Oe(e){return e!==null&&(e<0||e===32)}function Te(e){return e===-2||e===-1||e===32}const ga=St(new RegExp("\\p{P}|\\p{S}","u")),Ea=St(/\s/);function St(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Qt(e){const t=[];let a=-1,l=0,n=0;for(;++a<e.length;){const r=e.charCodeAt(a);let i="";if(r===37&&Je(e.charCodeAt(a+1))&&Je(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 xe(e,t,a,l){const n=l?l-1:Number.POSITIVE_INFINITY;let r=0;return i;function i(s){return Te(s)?(e.enter(a),u(s)):t(s)}function u(s){return Te(s)&&r++<n?(e.consume(s),u):(e.exit(a),t(s))}}const Qf={tokenize:Jf};function Jf(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"),xe(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 ie(u)?(e.consume(u),e.exit("chunkText"),r):(e.consume(u),i)}}const Zf={tokenize:ep},Gi={tokenize:tp};function ep(e){const t=this,a=[];let l=0,n,r,i;return u;function u(y){if(l<a.length){const S=a[l];return t.containerState=S[1],e.attempt(S[0].continuation,s,o)(y)}return o(y)}function s(y){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const S=t.events.length;let _=S,w;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){w=t.events[_][1].end;break}v(l);let P=S;for(;P<t.events.length;)t.events[P][1].end={...w},P++;return ot(t.events,_+1,0,t.events.slice(S)),t.events.length=P,o(y)}return u(y)}function o(y){if(l===a.length){if(!n)return m(y);if(n.currentConstruct&&n.currentConstruct.concrete)return E(y);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gi,c,d)(y)}function c(y){return n&&g(),v(l),m(y)}function d(y){return t.parser.lazy[t.now().line]=l!==a.length,i=t.now().offset,E(y)}function m(y){return t.containerState={},e.attempt(Gi,f,E)(y)}function f(y){return l++,a.push([t.currentConstruct,t.containerState]),m(y)}function E(y){if(y===null){n&&g(),v(0),e.consume(y);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:r}),b(y)}function b(y){if(y===null){h(e.exit("chunkFlow"),!0),v(0),e.consume(y);return}return ie(y)?(e.consume(y),h(e.exit("chunkFlow")),l=0,t.interrupt=void 0,u):(e.consume(y),b)}function h(y,S){const _=t.sliceStream(y);if(S&&_.push(null),y.previous=r,r&&(r.next=y),r=y,n.defineSkip(y.start),n.write(_),t.parser.lazy[y.start.line]){let w=n.events.length;for(;w--;)if(n.events[w][1].start.offset<i&&(!n.events[w][1].end||n.events[w][1].end.offset>i))return;const P=t.events.length;let L=P,T,A;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(T){A=t.events[L][1].end;break}T=!0}for(v(l),w=P;w<t.events.length;)t.events[w][1].end={...A},w++;ot(t.events,L+1,0,t.events.slice(P)),t.events.length=w}}function v(y){let S=a.length;for(;S-- >y;){const _=a[S];t.containerState=_[1],_[0].exit.call(t,e)}a.length=y}function g(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function tp(e,t,a){return xe(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yi(e){if(e===null||Oe(e)||Ea(e))return 1;if(ga(e))return 2}function pn(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 hn={name:"attention",resolveAll:ap,tokenize:lp};function ap(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 d={...e[l][1].end},m={...e[a][1].start};Wi(d,-s),Wi(m,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,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=et(o,[["enter",e[l][1],t],["exit",e[l][1],t]])),o=et(o,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",r,t]]),o=et(o,pn(t.parser.constructs.insideSpan.null,e.slice(l+1,a),t)),o=et(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=et(o,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,ot(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 lp(e,t){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,n=Yi(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=Yi(s),d=!c||c===2&&n||a.includes(s),m=!n||n===2&&c||a.includes(l);return o._open=!!(r===42?d:d&&(n||!m)),o._close=!!(r===42?m:m&&(c||!d)),t(s)}}function Wi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const np={name:"autolink",tokenize:rp};function rp(e,t,a){let l=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(f){return ct(f)?(e.consume(f),i):f===64?a(f):o(f)}function i(f){return f===43||f===45||f===46||Je(f)?(l=1,u(f)):o(f)}function u(f){return f===58?(e.consume(f),l=0,s):(f===43||f===45||f===46||Je(f))&&l++<32?(e.consume(f),u):(l=0,o(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||dn(f)?a(f):(e.consume(f),s)}function o(f){return f===64?(e.consume(f),c):jf(f)?(e.consume(f),o):a(f)}function c(f){return Je(f)?d(f):a(f)}function d(f){return f===46?(e.consume(f),l=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):m(f)}function m(f){if((f===45||Je(f))&&l++<63){const E=f===45?m:d;return e.consume(f),E}return a(f)}}const ul={partial:!0,tokenize:ip};function ip(e,t,a){return l;function l(r){return Te(r)?xe(e,n,"linePrefix")(r):n(r)}function n(r){return r===null||ie(r)?t(r):a(r)}}const ji={continuation:{tokenize:sp},exit:op,name:"blockQuote",tokenize:up};function up(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 Te(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function sp(e,t,a){const l=this;return n;function n(i){return Te(i)?xe(e,r,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):r(i)}function r(i){return e.attempt(ji,t,a)(i)}}function op(e){e.exit("blockQuote")}const Xi={name:"characterEscape",tokenize:cp};function cp(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 Kf(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(r)}}const Ki={name:"characterReference",tokenize:dp};function dp(e,t,a){const l=this;let n=0,r,i;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),r=31,i=Je,c(d))}function o(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=Xf,c):(e.enter("characterReferenceValue"),r=7,i=fn,c(d))}function c(d){if(d===59&&n){const m=e.exit("characterReferenceValue");return i===Je&&!va(l.sliceSerialize(m))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&n++<r?(e.consume(d),c):a(d)}}const Qi={partial:!0,tokenize:pp},Ji={concrete:!0,name:"codeFenced",tokenize:fp};function fp(e,t,a){const l=this,n={partial:!0,tokenize:_};let r=0,i=0,u;return s;function s(w){return o(w)}function o(w){const P=l.events[l.events.length-1];return r=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===u?(i++,e.consume(w),c):i<3?a(w):(e.exit("codeFencedFenceSequence"),Te(w)?xe(e,d,"whitespace")(w):d(w))}function d(w){return w===null||ie(w)?(e.exit("codeFencedFence"),l.interrupt?t(w):e.check(Qi,b,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):Te(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),xe(e,f,"whitespace")(w)):w===96&&w===u?a(w):(e.consume(w),m)}function f(w){return w===null||ie(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===u?a(w):(e.consume(w),E)}function b(w){return e.attempt(n,S,h)(w)}function h(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),v}function v(w){return r>0&&Te(w)?xe(e,g,"linePrefix",r+1)(w):g(w)}function g(w){return w===null||ie(w)?e.check(Qi,b,S)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||ie(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),y)}function S(w){return e.exit("codeFenced"),t(w)}function _(w,P,L){let T=0;return A;function A(C){return w.enter("lineEnding"),w.consume(C),w.exit("lineEnding"),x}function x(C){return w.enter("codeFencedFence"),Te(C)?xe(w,k,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):k(C)}function k(C){return C===u?(w.enter("codeFencedFenceSequence"),D(C)):L(C)}function D(C){return C===u?(T++,w.consume(C),D):T>=i?(w.exit("codeFencedFenceSequence"),Te(C)?xe(w,I,"whitespace")(C):I(C)):L(C)}function I(C){return C===null||ie(C)?(w.exit("codeFencedFence"),P(C)):L(C)}}}function pp(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 bn={name:"codeIndented",tokenize:bp},hp={partial:!0,tokenize:mp};function bp(e,t,a){const l=this;return n;function n(o){return e.enter("codeIndented"),xe(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):ie(o)?e.attempt(hp,i,s)(o):(e.enter("codeFlowValue"),u(o))}function u(o){return o===null||ie(o)?(e.exit("codeFlowValue"),i(o)):(e.consume(o),u)}function s(o){return e.exit("codeIndented"),t(o)}}function mp(e,t,a){const l=this;return n;function n(i){return l.parser.lazy[l.now().line]?a(i):ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):xe(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):ie(i)?n(i):a(i)}}const vp={name:"codeText",previous:Ep,resolve:gp,tokenize:yp};function gp(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 yp(e,t,a){let l=0,n,r;return i;function i(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),l++,u):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?a(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(r=e.enter("codeTextSequence"),n=0,c(d)):ie(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),o(d))}function o(d){return d===null||d===32||d===96||ie(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),o)}function c(d){return d===96?(e.consume(d),n++,c):n===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",o(d))}}class Tp{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&&ya(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),ya(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ya(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);ya(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ya(this.left,a.reverse())}}}function ya(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 Tp(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,xp(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 ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!o}function xp(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,d,m=-1,f=a,E=0,b=0;const h=[b];for(;f;){for(;e.get(++n)[1]!==f;);r.push(n),f._tokenizer||(c=l.sliceStream(f),f.next||c.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=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&&(b=m+1,h.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),m=h.length;m--;){const v=u.slice(h[m],h[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[E+s[m][0]]=E+s[m][1],E+=s[m][1]-s[m][0]-1;return o}const Cp={resolve:Ap,tokenize:wp},Sp={partial:!0,tokenize:_p};function Ap(e){return Zi(e),e}function wp(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):ie(u)?e.check(Sp,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 _p(e,t,a){const l=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),xe(e,r,"linePrefix")}function r(i){if(i===null||ie(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 eu(e,t,a,l,n,r,i,u,s){const o=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(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||dn(v)?a(v):(e.enter(l),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(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"}),f(v))}function f(v){return v===62?(e.exit("chunkString"),e.exit(u),m(v)):v===null||v===60||ie(v)?a(v):(e.consume(v),v===92?E:f)}function E(v){return v===60||v===62||v===92?(e.consume(v),f):f(v)}function b(v){return!c&&(v===null||v===41||Oe(v))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(l),t(v)):c<o&&v===40?(e.consume(v),c++,b):v===41?(e.consume(v),c--,b):v===null||v===32||v===40||dn(v)?a(v):(e.consume(v),v===92?h:b)}function h(v){return v===40||v===41||v===92?(e.consume(v),b):b(v)}}function tu(e,t,a,l,n,r){const i=this;let u=0,s;return o;function o(f){return e.enter(l),e.enter(n),e.consume(f),e.exit(n),e.enter(r),c}function c(f){return u>999||f===null||f===91||f===93&&!s||f===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):f===93?(e.exit(r),e.enter(n),e.consume(f),e.exit(n),e.exit(l),t):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||ie(f)||u++>999?(e.exit("chunkString"),c(f)):(e.consume(f),s||(s=!Te(f)),f===92?m:d)}function m(f){return f===91||f===92||f===93?(e.consume(f),u++,d):d(f)}}function au(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):ie(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),xe(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===i||m===null||ie(m)?(e.exit("chunkString"),o(m)):(e.consume(m),m===92?d:c)}function d(m){return m===i||m===92?(e.consume(m),c):c(m)}}function mt(e,t){let a;return l;function l(n){return ie(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,l):Te(n)?xe(e,l,a?"linePrefix":"lineSuffix")(n):t(n)}}const kp={name:"definition",tokenize:Ip},Np={partial:!0,tokenize:Lp};function Ip(e,t,a){const l=this;let n;return r;function r(f){return e.enter("definition"),i(f)}function i(f){return tu.call(l,e,u,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function u(f){return n=Kt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):a(f)}function s(f){return Oe(f)?mt(e,o)(f):o(f)}function o(f){return eu(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(Np,d,d)(f)}function d(f){return Te(f)?xe(e,m,"whitespace")(f):m(f)}function m(f){return f===null||ie(f)?(e.exit("definition"),l.parser.defined.push(n),t(f)):a(f)}}function Lp(e,t,a){return l;function l(u){return Oe(u)?mt(e,n)(u):a(u)}function n(u){return au(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function r(u){return Te(u)?xe(e,i,"whitespace")(u):i(u)}function i(u){return u===null||ie(u)?t(u):a(u)}}const Op={name:"hardBreakEscape",tokenize:Dp};function Dp(e,t,a){return l;function l(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return ie(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const Pp={name:"headingAtx",resolve:Mp,tokenize:Bp};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"},ot(e,l,a-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function Bp(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||Oe(c)?(e.exit("atxHeadingSequence"),u(c)):a(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):Te(c)?xe(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||Oe(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),o)}}const Fp=["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"],lu=["pre","script","style","textarea"],Rp={concrete:!0,name:"htmlFlow",resolveTo:Up,tokenize:qp},Hp={partial:!0,tokenize:Vp},$p={partial:!0,tokenize:zp};function Up(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 qp(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),d}function d(R){return R===33?(e.consume(R),m):R===47?(e.consume(R),r=!0,b):R===63?(e.consume(R),n=3,l.interrupt?t:O):ct(R)?(e.consume(R),i=String.fromCharCode(R),h):a(R)}function m(R){return R===45?(e.consume(R),n=2,f):R===91?(e.consume(R),n=5,u=0,E):ct(R)?(e.consume(R),n=4,l.interrupt?t:O):a(R)}function f(R){return R===45?(e.consume(R),l.interrupt?t:O):a(R)}function E(R){const K="CDATA[";return R===K.charCodeAt(u++)?(e.consume(R),u===K.length?l.interrupt?t:k:E):a(R)}function b(R){return ct(R)?(e.consume(R),i=String.fromCharCode(R),h):a(R)}function h(R){if(R===null||R===47||R===62||Oe(R)){const K=R===47,re=i.toLowerCase();return!K&&!r&&lu.includes(re)?(n=1,l.interrupt?t(R):k(R)):Fp.includes(i.toLowerCase())?(n=6,K?(e.consume(R),v):l.interrupt?t(R):k(R)):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(R):r?g(R):y(R))}return R===45||Je(R)?(e.consume(R),i+=String.fromCharCode(R),h):a(R)}function v(R){return R===62?(e.consume(R),l.interrupt?t:k):a(R)}function g(R){return Te(R)?(e.consume(R),g):A(R)}function y(R){return R===47?(e.consume(R),A):R===58||R===95||ct(R)?(e.consume(R),S):Te(R)?(e.consume(R),y):A(R)}function S(R){return R===45||R===46||R===58||R===95||Je(R)?(e.consume(R),S):_(R)}function _(R){return R===61?(e.consume(R),w):Te(R)?(e.consume(R),_):y(R)}function w(R){return R===null||R===60||R===61||R===62||R===96?a(R):R===34||R===39?(e.consume(R),s=R,P):Te(R)?(e.consume(R),w):L(R)}function P(R){return R===s?(e.consume(R),s=null,T):R===null||ie(R)?a(R):(e.consume(R),P)}function L(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Oe(R)?_(R):(e.consume(R),L)}function T(R){return R===47||R===62||Te(R)?y(R):a(R)}function A(R){return R===62?(e.consume(R),x):a(R)}function x(R){return R===null||ie(R)?k(R):Te(R)?(e.consume(R),x):a(R)}function k(R){return R===45&&n===2?(e.consume(R),B):R===60&&n===1?(e.consume(R),$):R===62&&n===4?(e.consume(R),W):R===63&&n===3?(e.consume(R),O):R===93&&n===5?(e.consume(R),z):ie(R)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(Hp,G,D)(R)):R===null||ie(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),k)}function D(R){return e.check($p,I,G)(R)}function I(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),C}function C(R){return R===null||ie(R)?D(R):(e.enter("htmlFlowData"),k(R))}function B(R){return R===45?(e.consume(R),O):k(R)}function $(R){return R===47?(e.consume(R),i="",F):k(R)}function F(R){if(R===62){const K=i.toLowerCase();return lu.includes(K)?(e.consume(R),W):k(R)}return ct(R)&&i.length<8?(e.consume(R),i+=String.fromCharCode(R),F):k(R)}function z(R){return R===93?(e.consume(R),O):k(R)}function O(R){return R===62?(e.consume(R),W):R===45&&n===2?(e.consume(R),O):k(R)}function W(R){return R===null||ie(R)?(e.exit("htmlFlowData"),G(R)):(e.consume(R),W)}function G(R){return e.exit("htmlFlow"),t(R)}}function zp(e,t,a){const l=this;return n;function n(i){return ie(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 Vp(e,t,a){return l;function l(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ul,t,a)}}const Gp={name:"htmlText",tokenize:Yp};function Yp(e,t,a){const l=this;let n,r,i;return u;function u(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),s}function s(O){return O===33?(e.consume(O),o):O===47?(e.consume(O),_):O===63?(e.consume(O),y):ct(O)?(e.consume(O),L):a(O)}function o(O){return O===45?(e.consume(O),c):O===91?(e.consume(O),r=0,E):ct(O)?(e.consume(O),g):a(O)}function c(O){return O===45?(e.consume(O),f):a(O)}function d(O){return O===null?a(O):O===45?(e.consume(O),m):ie(O)?(i=d,$(O)):(e.consume(O),d)}function m(O){return O===45?(e.consume(O),f):d(O)}function f(O){return O===62?B(O):O===45?m(O):d(O)}function E(O){const W="CDATA[";return O===W.charCodeAt(r++)?(e.consume(O),r===W.length?b:E):a(O)}function b(O){return O===null?a(O):O===93?(e.consume(O),h):ie(O)?(i=b,$(O)):(e.consume(O),b)}function h(O){return O===93?(e.consume(O),v):b(O)}function v(O){return O===62?B(O):O===93?(e.consume(O),v):b(O)}function g(O){return O===null||O===62?B(O):ie(O)?(i=g,$(O)):(e.consume(O),g)}function y(O){return O===null?a(O):O===63?(e.consume(O),S):ie(O)?(i=y,$(O)):(e.consume(O),y)}function S(O){return O===62?B(O):y(O)}function _(O){return ct(O)?(e.consume(O),w):a(O)}function w(O){return O===45||Je(O)?(e.consume(O),w):P(O)}function P(O){return ie(O)?(i=P,$(O)):Te(O)?(e.consume(O),P):B(O)}function L(O){return O===45||Je(O)?(e.consume(O),L):O===47||O===62||Oe(O)?T(O):a(O)}function T(O){return O===47?(e.consume(O),B):O===58||O===95||ct(O)?(e.consume(O),A):ie(O)?(i=T,$(O)):Te(O)?(e.consume(O),T):B(O)}function A(O){return O===45||O===46||O===58||O===95||Je(O)?(e.consume(O),A):x(O)}function x(O){return O===61?(e.consume(O),k):ie(O)?(i=x,$(O)):Te(O)?(e.consume(O),x):T(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),n=O,D):ie(O)?(i=k,$(O)):Te(O)?(e.consume(O),k):(e.consume(O),I)}function D(O){return O===n?(e.consume(O),n=void 0,C):O===null?a(O):ie(O)?(i=D,$(O)):(e.consume(O),D)}function I(O){return O===null||O===34||O===39||O===60||O===61||O===96?a(O):O===47||O===62||Oe(O)?T(O):(e.consume(O),I)}function C(O){return O===47||O===62||Oe(O)?T(O):a(O)}function B(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):a(O)}function $(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),F}function F(O){return Te(O)?xe(e,z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):z(O)}function z(O){return e.enter("htmlTextData"),i(O)}}const mn={name:"labelEnd",resolveAll:Kp,resolveTo:Qp,tokenize:Jp},Wp={tokenize:Zp},jp={tokenize:eh},Xp={tokenize:th};function Kp(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&&ot(e,0,e.length,a),e}function Qp(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=et(u,e.slice(r+1,r+l+3)),u=et(u,[["enter",c,t]]),u=et(u,pn(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),u=et(u,[["exit",c,t],e[i-2],e[i-1],["exit",o,t]]),u=et(u,e.slice(i+1)),u=et(u,[["exit",s,t]]),ot(e,r,e.length,u),e}function Jp(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?d(m):(i=l.parser.defined.includes(Kt(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(Wp,c,i?c:d)(m):m===91?e.attempt(jp,c,i?o:d)(m):i?c(m):d(m)}function o(m){return e.attempt(Xp,c,d)(m)}function c(m){return t(m)}function d(m){return r._balanced=!0,a(m)}}function Zp(e,t,a){return l;function l(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),n}function n(d){return Oe(d)?mt(e,r)(d):r(d)}function r(d){return d===41?c(d):eu(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return Oe(d)?mt(e,s)(d):c(d)}function u(d){return a(d)}function s(d){return d===34||d===39||d===40?au(e,o,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function o(d){return Oe(d)?mt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function eh(e,t,a){const l=this;return n;function n(u){return tu.call(l,e,r,i,"reference","referenceMarker","referenceString")(u)}function r(u){return l.parser.defined.includes(Kt(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(u):a(u)}function i(u){return a(u)}}function th(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 ah={name:"labelStartImage",resolveAll:mn.resolveAll,tokenize:lh};function lh(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 nh={name:"labelStartLink",resolveAll:mn.resolveAll,tokenize:rh};function rh(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 vn={name:"lineEnding",tokenize:ih};function ih(e,t){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),xe(e,t,"linePrefix")}}const sl={name:"thematicBreak",tokenize:uh};function uh(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||ie(o))?(e.exit("thematicBreak"),t(o)):a(o)}function s(o){return o===n?(e.consume(o),l++,s):(e.exit("thematicBreakSequence"),Te(o)?xe(e,u,"whitespace")(o):u(o))}}const je={continuation:{tokenize:dh},exit:ph,name:"list",tokenize:ch},sh={partial:!0,tokenize:hh},oh={partial:!0,tokenize:fh};function ch(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(f){const E=l.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!l.containerState.marker||f===l.containerState.marker:fn(f)){if(l.containerState.type||(l.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(sl,a,o)(f):o(f);if(!l.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return a(f)}function s(f){return fn(f)&&++i<10?(e.consume(f),s):(!l.interrupt||i<2)&&(l.containerState.marker?f===l.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),o(f)):a(f)}function o(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||f,e.check(ul,l.interrupt?a:c,e.attempt(sh,m,d))}function c(f){return l.containerState.initialBlankLine=!0,r++,m(f)}function d(f){return Te(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):a(f)}function m(f){return l.containerState.size=r+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function dh(e,t,a){const l=this;return l.containerState._closeFlow=void 0,e.check(ul,n,r);function n(u){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,xe(e,t,"listItemIndent",l.containerState.size+1)(u)}function r(u){return l.containerState.furtherBlankLines||!Te(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(oh,t,i)(u))}function i(u){return l.containerState._closeFlow=!0,l.interrupt=void 0,xe(e,e.attempt(je,t,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function fh(e,t,a){const l=this;return xe(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 ph(e){e.exit(this.containerState.type)}function hh(e,t,a){const l=this;return xe(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!Te(r)&&i&&i[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const nu={name:"setextUnderline",resolveTo:bh,tokenize:mh};function bh(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 mh(e,t,a){const l=this;let n;return r;function r(o){let c=l.events.length,d;for(;c--;)if(l.events[c][1].type!=="lineEnding"&&l.events[c][1].type!=="linePrefix"&&l.events[c][1].type!=="content"){d=l.events[c][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||d)?(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"),Te(o)?xe(e,s,"lineSuffix")(o):s(o))}function s(o){return o===null||ie(o)?(e.exit("setextHeadingLine"),t(o)):a(o)}}const vh={tokenize:gh};function gh(e){const t=this,a=e.attempt(ul,l,e.attempt(this.parser.constructs.flowInitial,n,xe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Cp,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:iu()},yh=ru("string"),Th=ru("text");function ru(e){return{resolveAll:iu(e==="text"?xh: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 d=n[c];let m=-1;if(d)for(;++m<d.length;){const f=d[m];if(!f.previous||f.previous.call(l,l.previous))return!0}return!1}}}function iu(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 xh(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 Ch=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:kp},disable:{null:[]},document:{42:je,43:je,45:je,48:je,49:je,50:je,51:je,52:je,53:je,54:je,55:je,56:je,57:je,62:ji},flow:{35:Pp,42:sl,45:[nu,sl],60:Rp,61:nu,95:sl,96:Ji,126:Ji},flowInitial:{[-2]:bn,[-1]:bn,32:bn},insideSpan:{null:[hn,Eh]},string:{38:Ki,92:Xi},text:{[-5]:vn,[-4]:vn,[-3]:vn,33:ah,38:Ki,42:hn,60:[np,Gp],91:nh,92:[Op,Xi],93:mn,95:hn,96:vp}},Symbol.toStringTag,{value:"Module"}));function Sh(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:P(_),check:P(w),consume:g,enter:y,exit:S,interrupt:P(w,{interrupt:!0})},o={code:null,containerState:{},defineSkip:b,events:[],now:E,parser:e,previous:null,sliceSerialize:m,sliceStream:f,write:d};let c=t.tokenize.call(o,s);return t.resolveAll&&r.push(t),o;function d(x){return i=et(i,x),h(),i[i.length-1]!==null?[]:(L(t,0),o.events=pn(r,o.events,o),o.events)}function m(x,k){return wh(f(x),k)}function f(x){return Ah(i,x)}function E(){const{_bufferIndex:x,_index:k,line:D,column:I,offset:C}=l;return{_bufferIndex:x,_index:k,line:D,column:I,offset:C}}function b(x){n[x.line]=x.column,A()}function h(){let x;for(;l._index<i.length;){const k=i[l._index];if(typeof k=="string")for(x=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===x&&l._bufferIndex<k.length;)v(k.charCodeAt(l._bufferIndex));else v(k)}}function v(x){c=c(x)}function g(x){ie(x)?(l.line++,l.column=1,l.offset+=x===-3?2:1,A()):x!==-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=x}function y(x,k){const D=k||{};return D.type=x,D.start=E(),o.events.push(["enter",D,o]),u.push(D),D}function S(x){const k=u.pop();return k.end=E(),o.events.push(["exit",k,o]),k}function _(x,k){L(x,k.from)}function w(x,k){k.restore()}function P(x,k){return D;function D(I,C,B){let $,F,z,O;return Array.isArray(I)?G(I):"tokenize"in I?G([I]):W(I);function W(le){return Y;function Y(ae){const ce=ae!==null&&le[ae],me=ae!==null&&le.null,pe=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(me)?me:me?[me]:[]];return G(pe)(ae)}}function G(le){return $=le,F=0,le.length===0?B:R(le[F])}function R(le){return Y;function Y(ae){return O=T(),z=le,le.partial||(o.currentConstruct=le),le.name&&o.parser.constructs.disable.null.includes(le.name)?re():le.tokenize.call(k?Object.assign(Object.create(o),k):o,s,K,re)(ae)}}function K(le){return x(z,O),C}function re(le){return O.restore(),++F<$.length?R($[F]):B}}}function L(x,k){x.resolveAll&&!r.includes(x)&&r.push(x),x.resolve&&ot(o.events,k,o.events.length-k,x.resolve(o.events.slice(k),o)),x.resolveTo&&(o.events=x.resolveTo(o.events,o))}function T(){const x=E(),k=o.previous,D=o.currentConstruct,I=o.events.length,C=Array.from(u);return{from:I,restore:B};function B(){l=x,o.previous=k,o.currentConstruct=D,o.events.length=I,u=C,A()}}function A(){l.line in n&&l.column<2&&(l.column=n[l.line],l.offset+=n[l.line]-1)}}function Ah(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 wh(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
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 Ah(e){const l={constructs:zf([Th,...(e||{}).extensions||[]]),content:n(Xf),defined:[],document:n(Qf),flow:n(bh),lazy:{},string:n(gh),text:n(Eh)};return l;function n(r){return i;function i(u){return xh(l,r,u)}}}function wh(e){for(;!Ji(e););return e}const iu=/[\0\t\n\r]/g;function _h(){let e=1,t="",a=!0,l;return n;function n(r,i,u){const s=[];let o,c,d,m,f;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(i||void 0).decode(r)),d=0,t="",a&&(r.charCodeAt(0)===65279&&d++,a=void 0);d<r.length;){if(iu.lastIndex=d,o=iu.exec(r),m=o&&o.index!==void 0?o.index:r.length,f=r.charCodeAt(m),!o){t=r.slice(d);break}if(f===10&&d===m&&l)s.push(-3),l=void 0;else switch(l&&(s.push(-5),l=void 0),d<m&&(s.push(r.slice(d,m)),e+=m-d),f){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}d=m+1}return u&&(l&&s.push(-5),t&&s.push(t),s.push(null)),s}}const kh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nh(e){return e.replace(kh,Ih)}function Ih(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){const n=a.charCodeAt(1),r=n===120||n===88;return zi(a.slice(r?2:1),r?16:10)}return ga(a)||e}const uu={}.hasOwnProperty;function Lh(e,t,a){return typeof t!="string"&&(a=t,t=void 0),Oh(a)(wh(Ah(a).document().write(_h()(e,t,!0))))}function Oh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(Ua),autolinkProtocol:T,autolinkEmail:T,atxHeading:r(ia),blockQuote:r(ge),characterEscape:T,characterReference:T,codeFenced:r(he),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(he,i),codeText:r($e,i),codeTextData:T,data:T,codeFlowValue:T,definition:r(ze),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(It),hardBreakEscape:r(Ol),hardBreakTrailing:r(Ol),htmlFlow:r($a,i),htmlFlowData:T,htmlText:r($a,i),htmlTextData:T,image:r(mr),label:i,link:r(Ua),listItem:r(Pl),listItemValue:m,listOrdered:r(Dl,d),listUnordered:r(Dl),paragraph:r(nt),reference:R,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(ia),strong:r(qa),thematicBreak:r(gr)},exit:{atxHeading:s(),atxHeadingSequence:_,autolink:s(),autolinkEmail:ce,autolinkProtocol:ae,blockQuote:s(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:le,characterReference:Y,codeFenced:s(h),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:E,codeFlowValue:A,codeIndented:s(v),codeText:s(C),codeTextData:A,data:A,definition:s(),definitionDestinationString:S,definitionLabelString:g,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(k),hardBreakTrailing:s(k),htmlFlow:s(D),htmlFlowData:A,htmlText:s(I),htmlTextData:A,image:s($),label:z,labelText:F,lineEnding:x,link:s(B),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:K,resourceDestinationString:O,resourceTitleString:W,resource:G,setextHeading:s(L),setextHeadingLineSequence:P,setextHeadingText:w,strong:s(),thematicBreak:s()}};su(t,(e||{}).mdastExtensions||[]);const a={};return l;function l(X){let te={type:"root",children:[]};const de={stack:[te],tokenStack:[],config:t,enter:u,exit:o,buffer:i,resume:c,data:a},Ee=[];let we=-1;for(;++we<X.length;)if(X[we][1].type==="listOrdered"||X[we][1].type==="listUnordered")if(X[we][0]==="enter")Ee.push(we);else{const Re=Ee.pop();we=n(X,Re,we)}for(we=-1;++we<X.length;){const Re=t[X[we][0]];uu.call(Re,X[we][1].type)&&Re[X[we][1].type].call(Object.assign({sliceSerialize:X[we][2].sliceSerialize},de),X[we][1])}if(de.tokenStack.length>0){const Re=de.tokenStack[de.tokenStack.length-1];(Re[1]||ou).call(de,void 0,Re[0])}for(te.position={start:At(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:At(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},we=-1;++we<t.transforms.length;)te=t.transforms[we](te)||te;return te}function n(X,te,de){let Ee=te-1,we=-1,Re=!1,Et,rt,pt,Lt;for(;++Ee<=de;){const Ge=X[Ee];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ge[0]==="enter"?we++:we--,Lt=void 0;break}case"lineEndingBlank":{Ge[0]==="enter"&&(Et&&!Lt&&!we&&!pt&&(pt=Ee),Lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lt=void 0}if(!we&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||we===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(Et){let at=Ee;for(rt=void 0;at--;){const it=X[at];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;rt&&(X[rt][1].type="lineEndingBlank",Re=!0),it[1].type="lineEnding",rt=at}else if(!(it[1].type==="linePrefix"||it[1].type==="blockQuotePrefix"||it[1].type==="blockQuotePrefixWhitespace"||it[1].type==="blockQuoteMarker"||it[1].type==="listItemIndent"))break}pt&&(!rt||pt<rt)&&(Et._spread=!0),Et.end=Object.assign({},rt?X[rt][1].start:Ge[1].end),X.splice(rt||Ee,0,["exit",Et,Ge[2]]),Ee++,de++}if(Ge[1].type==="listItemPrefix"){const at={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};Et=at,X.splice(Ee,0,["enter",at,Ge[2]]),Ee++,de++,pt=void 0,Lt=!0}}}return X[te][1]._spread=Re,de}function r(X,te){return de;function de(Ee){u.call(this,X(Ee),Ee),te&&te.call(this,Ee)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(X,te,de){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([te,de||void 0]),X.position={start:At(te.start),end:void 0}}function s(X){return te;function te(de){X&&X.call(this,de),o.call(this,de)}}function o(X,te){const de=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==X.type&&(te?te.call(this,X,Ee[0]):(Ee[1]||ou).call(this,X,Ee[0]));else throw new Error("Cannot close `"+X.type+"` ("+ma({start:X.start,end:X.end})+"): it’s not open");de.position.end=At(X.end)}function c(){return Uf(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(X){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function f(){const X=this.resume(),te=this.stack[this.stack.length-1];te.lang=X}function E(){const X=this.resume(),te=this.stack[this.stack.length-1];te.meta=X}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X.replace(/(\r?\n|\r)$/g,"")}function g(X){const te=this.resume(),de=this.stack[this.stack.length-1];de.label=te,de.identifier=Kt(this.sliceSerialize(X)).toLowerCase()}function y(){const X=this.resume(),te=this.stack[this.stack.length-1];te.title=X}function S(){const X=this.resume(),te=this.stack[this.stack.length-1];te.url=X}function _(X){const te=this.stack[this.stack.length-1];if(!te.depth){const de=this.sliceSerialize(X).length;te.depth=de}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function P(X){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function T(X){const de=this.stack[this.stack.length-1].children;let Ee=de[de.length-1];(!Ee||Ee.type!=="text")&&(Ee=vr(),Ee.position={start:At(X.start),end:void 0},de.push(Ee)),this.stack.push(Ee)}function A(X){const te=this.stack.pop();te.value+=this.sliceSerialize(X),te.position.end=At(X.end)}function x(X){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=te.children[te.children.length-1];de.position.end=At(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(T.call(this,X),A.call(this,X))}function k(){this.data.atHardBreak=!0}function D(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function I(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function C(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function B(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=te,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=te,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function F(X){const te=this.sliceSerialize(X),de=this.stack[this.stack.length-2];de.label=Nh(te),de.identifier=Kt(te).toLowerCase()}function z(){const X=this.stack[this.stack.length-1],te=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Ee=X.children;de.children=Ee}else de.alt=te}function O(){const X=this.resume(),te=this.stack[this.stack.length-1];te.url=X}function W(){const X=this.resume(),te=this.stack[this.stack.length-1];te.title=X}function G(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function K(X){const te=this.resume(),de=this.stack[this.stack.length-1];de.label=te,de.identifier=Kt(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function re(X){this.data.characterReferenceType=X.type}function le(X){const te=this.sliceSerialize(X),de=this.data.characterReferenceType;let Ee;de?(Ee=zi(te,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=ga(te);const we=this.stack[this.stack.length-1];we.value+=Ee}function Y(X){const te=this.stack.pop();te.position.end=At(X.end)}function ae(X){A.call(this,X);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(X)}function ce(X){A.call(this,X);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(X)}function ge(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function $e(){return{type:"inlineCode",value:""}}function ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function It(){return{type:"emphasis",children:[]}}function ia(){return{type:"heading",depth:0,children:[]}}function Ol(){return{type:"break"}}function $a(){return{type:"html",value:""}}function mr(){return{type:"image",title:null,url:"",alt:null}}function Ua(){return{type:"link",title:null,url:"",children:[]}}function Dl(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Pl(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function nt(){return{type:"paragraph",children:[]}}function qa(){return{type:"strong",children:[]}}function vr(){return{type:"text",value:""}}function gr(){return{type:"thematicBreak"}}}function At(e){return{line:e.line,column:e.column,offset:e.offset}}function su(e,t){let a=-1;for(;++a<t.length;){const l=t[a];Array.isArray(l)?su(e,l):Dh(e,l)}}function Dh(e,t){let a;for(a in t)if(uu.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 ou(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ma({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ma({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ma({start:t.start,end:t.end})+") is still open")}function Ph(e){const t=this;t.parser=a;function a(l){return Lh(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mh(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 Bh(e,t){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
46
|
-
`}]}function
|
|
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
|
|
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 _h(e){const l={constructs:Gf([Ch,...(e||{}).extensions||[]]),content:n(Qf),defined:[],document:n(Zf),flow:n(vh),lazy:{},string:n(yh),text:n(Th)};return l;function n(r){return i;function i(u){return Sh(l,r,u)}}}function kh(e){for(;!Zi(e););return e}const uu=/[\0\t\n\r]/g;function Nh(){let e=1,t="",a=!0,l;return n;function n(r,i,u){const s=[];let o,c,d,m,f;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(i||void 0).decode(r)),d=0,t="",a&&(r.charCodeAt(0)===65279&&d++,a=void 0);d<r.length;){if(uu.lastIndex=d,o=uu.exec(r),m=o&&o.index!==void 0?o.index:r.length,f=r.charCodeAt(m),!o){t=r.slice(d);break}if(f===10&&d===m&&l)s.push(-3),l=void 0;else switch(l&&(s.push(-5),l=void 0),d<m&&(s.push(r.slice(d,m)),e+=m-d),f){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}d=m+1}return u&&(l&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Ih=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lh(e){return e.replace(Ih,Oh)}function Oh(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){const n=a.charCodeAt(1),r=n===120||n===88;return Vi(a.slice(r?2:1),r?16:10)}return va(a)||e}const su={}.hasOwnProperty;function Dh(e,t,a){return typeof t!="string"&&(a=t,t=void 0),Ph(a)(kh(_h(a).document().write(Nh()(e,t,!0))))}function Ph(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r($a),autolinkProtocol:T,autolinkEmail:T,atxHeading:r(ia),blockQuote:r(me),characterEscape:T,characterReference:T,codeFenced:r(pe),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(pe,i),codeText:r(He,i),codeTextData:T,data:T,codeFlowValue:T,definition:r(Ve),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(It),hardBreakEscape:r(Il),hardBreakTrailing:r(Il),htmlFlow:r(Ha,i),htmlFlowData:T,htmlText:r(Ha,i),htmlTextData:T,image:r(br),label:i,link:r($a),listItem:r(Ol),listItemValue:m,listOrdered:r(Ll,d),listUnordered:r(Ll),paragraph:r(nt),reference:R,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(ia),strong:r(Ua),thematicBreak:r(vr)},exit:{atxHeading:s(),atxHeadingSequence:_,autolink:s(),autolinkEmail:ce,autolinkProtocol:ae,blockQuote:s(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:le,characterReference:Y,codeFenced:s(h),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:E,codeFlowValue:A,codeIndented:s(v),codeText:s(C),codeTextData:A,data:A,definition:s(),definitionDestinationString:S,definitionLabelString:g,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(k),hardBreakTrailing:s(k),htmlFlow:s(D),htmlFlowData:A,htmlText:s(I),htmlTextData:A,image:s($),label:z,labelText:F,lineEnding:x,link:s(B),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:K,resourceDestinationString:O,resourceTitleString:W,resource:G,setextHeading:s(L),setextHeadingLineSequence:P,setextHeadingText:w,strong:s(),thematicBreak:s()}};ou(t,(e||{}).mdastExtensions||[]);const a={};return l;function l(X){let te={type:"root",children:[]};const de={stack:[te],tokenStack:[],config:t,enter:u,exit:o,buffer:i,resume:c,data:a},ve=[];let _e=-1;for(;++_e<X.length;)if(X[_e][1].type==="listOrdered"||X[_e][1].type==="listUnordered")if(X[_e][0]==="enter")ve.push(_e);else{const Re=ve.pop();_e=n(X,Re,_e)}for(_e=-1;++_e<X.length;){const Re=t[X[_e][0]];su.call(Re,X[_e][1].type)&&Re[X[_e][1].type].call(Object.assign({sliceSerialize:X[_e][2].sliceSerialize},de),X[_e][1])}if(de.tokenStack.length>0){const Re=de.tokenStack[de.tokenStack.length-1];(Re[1]||cu).call(de,void 0,Re[0])}for(te.position={start:At(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:At(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<t.transforms.length;)te=t.transforms[_e](te)||te;return te}function n(X,te,de){let ve=te-1,_e=-1,Re=!1,gt,rt,pt,Lt;for(;++ve<=de;){const Ye=X[ve];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?_e++:_e--,Lt=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(gt&&!Lt&&!_e&&!pt&&(pt=ve),Lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lt=void 0}if(!_e&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||_e===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(gt){let at=ve;for(rt=void 0;at--;){const it=X[at];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;rt&&(X[rt][1].type="lineEndingBlank",Re=!0),it[1].type="lineEnding",rt=at}else if(!(it[1].type==="linePrefix"||it[1].type==="blockQuotePrefix"||it[1].type==="blockQuotePrefixWhitespace"||it[1].type==="blockQuoteMarker"||it[1].type==="listItemIndent"))break}pt&&(!rt||pt<rt)&&(gt._spread=!0),gt.end=Object.assign({},rt?X[rt][1].start:Ye[1].end),X.splice(rt||ve,0,["exit",gt,Ye[2]]),ve++,de++}if(Ye[1].type==="listItemPrefix"){const at={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};gt=at,X.splice(ve,0,["enter",at,Ye[2]]),ve++,de++,pt=void 0,Lt=!0}}}return X[te][1]._spread=Re,de}function r(X,te){return de;function de(ve){u.call(this,X(ve),ve),te&&te.call(this,ve)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(X,te,de){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([te,de||void 0]),X.position={start:At(te.start),end:void 0}}function s(X){return te;function te(de){X&&X.call(this,de),o.call(this,de)}}function o(X,te){const de=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==X.type&&(te?te.call(this,X,ve[0]):(ve[1]||cu).call(this,X,ve[0]));else throw new Error("Cannot close `"+X.type+"` ("+ba({start:X.start,end:X.end})+"): it’s not open");de.position.end=At(X.end)}function c(){return zf(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(X){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function f(){const X=this.resume(),te=this.stack[this.stack.length-1];te.lang=X}function E(){const X=this.resume(),te=this.stack[this.stack.length-1];te.meta=X}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X.replace(/(\r?\n|\r)$/g,"")}function g(X){const te=this.resume(),de=this.stack[this.stack.length-1];de.label=te,de.identifier=Kt(this.sliceSerialize(X)).toLowerCase()}function y(){const X=this.resume(),te=this.stack[this.stack.length-1];te.title=X}function S(){const X=this.resume(),te=this.stack[this.stack.length-1];te.url=X}function _(X){const te=this.stack[this.stack.length-1];if(!te.depth){const de=this.sliceSerialize(X).length;te.depth=de}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function P(X){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function T(X){const de=this.stack[this.stack.length-1].children;let ve=de[de.length-1];(!ve||ve.type!=="text")&&(ve=mr(),ve.position={start:At(X.start),end:void 0},de.push(ve)),this.stack.push(ve)}function A(X){const te=this.stack.pop();te.value+=this.sliceSerialize(X),te.position.end=At(X.end)}function x(X){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=te.children[te.children.length-1];de.position.end=At(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(T.call(this,X),A.call(this,X))}function k(){this.data.atHardBreak=!0}function D(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function I(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function C(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function B(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=te,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=te,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function F(X){const te=this.sliceSerialize(X),de=this.stack[this.stack.length-2];de.label=Lh(te),de.identifier=Kt(te).toLowerCase()}function z(){const X=this.stack[this.stack.length-1],te=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ve=X.children;de.children=ve}else de.alt=te}function O(){const X=this.resume(),te=this.stack[this.stack.length-1];te.url=X}function W(){const X=this.resume(),te=this.stack[this.stack.length-1];te.title=X}function G(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function K(X){const te=this.resume(),de=this.stack[this.stack.length-1];de.label=te,de.identifier=Kt(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function re(X){this.data.characterReferenceType=X.type}function le(X){const te=this.sliceSerialize(X),de=this.data.characterReferenceType;let ve;de?(ve=Vi(te,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=va(te);const _e=this.stack[this.stack.length-1];_e.value+=ve}function Y(X){const te=this.stack.pop();te.position.end=At(X.end)}function ae(X){A.call(this,X);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(X)}function ce(X){A.call(this,X);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(X)}function me(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function He(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function It(){return{type:"emphasis",children:[]}}function ia(){return{type:"heading",depth:0,children:[]}}function Il(){return{type:"break"}}function Ha(){return{type:"html",value:""}}function br(){return{type:"image",title:null,url:"",alt:null}}function $a(){return{type:"link",title:null,url:"",children:[]}}function Ll(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ol(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function nt(){return{type:"paragraph",children:[]}}function Ua(){return{type:"strong",children:[]}}function mr(){return{type:"text",value:""}}function vr(){return{type:"thematicBreak"}}}function At(e){return{line:e.line,column:e.column,offset:e.offset}}function ou(e,t){let a=-1;for(;++a<t.length;){const l=t[a];Array.isArray(l)?ou(e,l):Mh(e,l)}}function Mh(e,t){let a;for(a in t)if(su.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 cu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ba({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is still open")}function Bh(e){const t=this;t.parser=a;function a(l){return Dh(l,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Fh(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 Rh(e,t){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
46
|
+
`}]}function Hh(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 $h(e,t){const a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Uh(e,t){const a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function qh(e,t){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),n=Qt(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 zh(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 Vh(e,t){if(e.options.allowDangerousHtml){const a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function du(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 Gh(e,t){const a=String(t.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return du(e,t);const n={src:Qt(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 Yh(e,t){const a={src:Qt(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 Wh(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 jh(e,t){const a=String(t.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return du(e,t);const n={href:Qt(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 Xh(e,t){const a={href:Qt(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 Kh(e,t,a){const l=e.all(t),n=a?Qh(a):fu(t),r={},i=[];if(typeof t.checked=="boolean"){const c=l[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},l.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),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
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
|
|
49
|
+
`});const o={type:"element",tagName:"li",properties:r,children:i};return e.patch(t,o),e.applyData(t,o)}function Qh(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=fu(a[l])}return t}function fu(e){const t=e.spread;return t??e.children.length>1}function Jh(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 Zh(e,t){const a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function eb(e,t){const a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function tb(e,t){const a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ab(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=st(t.children[1]),s=il(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 lb(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 d=t.children[s],m={},f=i?i[s]:void 0;f&&(m.align=f);let E={type:"element",tagName:r,properties:m,children:[]};d&&(E.children=e.all(d),e.patch(d,E),E=e.applyData(d,E)),o.push(E)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(o,!0)};return e.patch(t,c),e.applyData(t,c)}function nb(e,t){const a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}const pu=9,hu=32;function rb(e){const t=String(e),a=/\r?\n|\r/g;let l=a.exec(t),n=0;const r=[];for(;l;)r.push(bu(t.slice(n,l.index),n>0,!0),l[0]),n=l.index+l[0].length,l=a.exec(t);return r.push(bu(t.slice(n),n>0,!1)),r.join("")}function bu(e,t,a){let l=0,n=e.length;if(t){let r=e.codePointAt(l);for(;r===pu||r===hu;)l++,r=e.codePointAt(l)}if(a){let r=e.codePointAt(n-1);for(;r===pu||r===hu;)n--,r=e.codePointAt(n-1)}return n>l?e.slice(l,n):""}function ib(e,t){const a={type:"text",value:rb(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function ub(e,t){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}const sb={blockquote:Fh,break:Rh,code:Hh,delete:$h,emphasis:Uh,footnoteReference:qh,heading:zh,html:Vh,imageReference:Gh,image:Yh,inlineCode:Wh,linkReference:jh,link:Xh,listItem:Kh,list:Jh,paragraph:Zh,root:eb,strong:tb,table:ab,tableCell:nb,tableRow:lb,text:ib,thematicBreak:ub,toml:ol,yaml:ol,definition:ol,footnoteDefinition:ol};function ol(){}const mu=-1,cl=0,Ta=1,dl=2,gn=3,En=4,yn=5,Tn=6,vu=7,gu=8,Eu=typeof self=="object"?self:globalThis,ob=(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 cl:case mu:return a(i,n);case Ta:{const u=a([],n);for(const s of i)u.push(l(s));return u}case dl:{const u=a({},n);for(const[s,o]of i)u[l(s)]=l(o);return u}case gn:return a(new Date(i),n);case En:{const{source:u,flags:s}=i;return a(new RegExp(u,s),n)}case yn:{const u=a(new Map,n);for(const[s,o]of i)u.set(l(s),l(o));return u}case Tn:{const u=a(new Set,n);for(const s of i)u.add(l(s));return u}case vu:{const{name:u,message:s}=i;return a(new Eu[u](s),n)}case gu: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 Eu[r](i),n)};return l},yu=e=>ob(new Map,e)(0),Jt="",{toString:cb}={},{keys:db}=Object,xa=e=>{const t=typeof e;if(t!=="object"||!e)return[cl,t];const a=cb.call(e).slice(8,-1);switch(a){case"Array":return[Ta,Jt];case"Object":return[dl,Jt];case"Date":return[gn,Jt];case"RegExp":return[En,Jt];case"Map":return[yn,Jt];case"Set":return[Tn,Jt];case"DataView":return[Ta,a]}return a.includes("Array")?[Ta,a]:a.includes("Error")?[vu,a]:[dl,a]},fl=([e,t])=>e===cl&&(t==="function"||t==="symbol"),fb=(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]=xa(i);switch(u){case cl:{let c=i;switch(s){case"bigint":u=gu,c=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return n([mu],i)}return n([u,c],i)}case Ta:{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=[],d=n([u,c],i);for(const m of i)c.push(r(m));return d}case dl:{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=[],d=n([u,c],i);for(const m of db(i))(e||!fl(xa(i[m])))&&c.push([r(m),r(i[m])]);return d}case gn:return n([u,i.toISOString()],i);case En:{const{source:c,flags:d}=i;return n([u,{source:c,flags:d}],i)}case yn:{const c=[],d=n([u,c],i);for(const[m,f]of i)(e||!(fl(xa(m))||fl(xa(f))))&&c.push([r(m),r(f)]);return d}case Tn:{const c=[],d=n([u,c],i);for(const m of i)(e||!fl(xa(m)))&&c.push(r(m));return d}}const{message:o}=i;return n([u,{name:s,message:o}],i)};return r},Tu=(e,{json:t,lossy:a}={})=>{const l=[];return fb(!(t||a),!!t,new Map,l)(e),l},Ft=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yu(Tu(e,t)):structuredClone(e):(e,t)=>yu(Tu(e,t));function pb(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 hb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function bb(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||pb,l=e.options.footnoteBackLabel||hb,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),d=String(o.identifier).toUpperCase(),m=Qt(d.toLowerCase());let f=0;const E=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++f<=b;){E.length>0&&E.push({type:"text",value:" "});let g=typeof a=="string"?a:a(s,f);typeof g=="string"&&(g={type:"text",value:g}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(s,f),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const h=c[c.length-1];if(h&&h.type==="element"&&h.tagName==="p"){const g=h.children[h.children.length-1];g&&g.type==="text"?g.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...E)}else c.push(...E);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:{...Ft(i),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
|
|
50
50
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
51
|
-
`}]}}const
|
|
51
|
+
`}]}}const xu=function(e){if(e==null)return Eb;if(typeof e=="function")return pl(e);if(typeof e=="object")return Array.isArray(e)?mb(e):vb(e);if(typeof e=="string")return gb(e);throw new Error("Expected function, string, or object as test")};function mb(e){const t=[];let a=-1;for(;++a<e.length;)t[a]=xu(e[a]);return pl(l);function l(...n){let r=-1;for(;++r<t.length;)if(t[r].apply(this,n))return!0;return!1}}function vb(e){const t=e;return pl(a);function a(l){const n=l;let r;for(r in e)if(n[r]!==t[r])return!1;return!0}}function gb(e){return pl(t);function t(a){return a&&a.type===e}}function pl(e){return t;function t(a,l,n){return!!(yb(a)&&e.call(this,a,typeof l=="number"?l:void 0,n||void 0))}}function Eb(){return!0}function yb(e){return e!==null&&typeof e=="object"&&"type"in e}function _y(e){return e}const Cu=[],Tb=!0,Su=!1,xb="skip";function Au(e,t,a,l){let n;typeof t=="function"&&typeof a!="function"?(l=a,a=t):n=t;const r=xu(n),i=l?-1:1;u(e,void 0,[])();function u(s,o,c){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return m;function m(){let f=Cu,E,b,h;if((!t||r(s,o,c[c.length-1]||void 0))&&(f=Cb(a(s,c)),f[0]===Su))return f;if("children"in s&&s.children){const v=s;if(v.children&&f[0]!==xb)for(b=(l?v.children.length:-1)+i,h=c.concat(v);b>-1&&b<v.children.length;){const g=v.children[b];if(E=u(g,b,h)(),E[0]===Su)return E;b=typeof E[1]=="number"?E[1]:b+i}}return f}}}function Cb(e){return Array.isArray(e)?e:typeof e=="number"?[Tb,e]:e==null?Cu:[e]}function hl(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),Au(e,r,u,n);function u(s,o){const c=o[o.length-1],d=c?c.children.indexOf(s):void 0;return i(s,d,c)}}const xn={}.hasOwnProperty,Sb={};function Ab(e,t){const a=t||Sb,l=new Map,n=new Map,r=new Map,i={...sb,...a.handlers},u={all:o,applyData:_b,definitionById:l,footnoteById:n,footnoteCounts:r,footnoteOrder:[],handlers:i,one:s,options:a,patch:wb,wrap:Nb};return hl(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?l:n,m=String(c.identifier).toUpperCase();d.has(m)||d.set(m,c)}}),u;function s(c,d){const m=c.type,f=u.handlers[m];if(xn.call(u.handlers,m)&&f)return f(u,c,d);if(u.options.passThrough&&u.options.passThrough.includes(m)){if("children"in c){const{children:b,...h}=c,v=Ft(h);return v.children=u.all(c),v}return Ft(c)}return(u.options.unknownHandler||kb)(u,c,d)}function o(c){const d=[];if("children"in c){const m=c.children;let f=-1;for(;++f<m.length;){const E=u.one(m[f],c);if(E){if(f&&m[f-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=wu(E.value)),!Array.isArray(E)&&E.type==="element")){const b=E.children[0];b&&b.type==="text"&&(b.value=wu(b.value))}Array.isArray(E)?d.push(...E):d.push(E)}}}return d}}function wb(e,t){e.position&&(t.position=Di(e))}function _b(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,Ft(r)),"children"in a&&a.children&&n!==null&&n!==void 0&&(a.children=n)}return a}function kb(e,t){const a=t.data||{},l="value"in t&&!(xn.call(a,"hProperties")||xn.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 Nb(e,t){const a=[];let l=-1;for(t&&a.push({type:"text",value:`
|
|
52
52
|
`});++l<e.length;)l&&a.push({type:"text",value:`
|
|
53
53
|
`}),a.push(e[l]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
54
|
-
`}),a}function
|
|
55
|
-
`},n),r}function kb(e,t){return e&&"run"in e?async function(a,l){const n=wu(a,{file:l,...t});await e.run(n,l)}:function(a,l){return wu(a,{file:l,...e||t})}}function _u(e){if(e)throw e}var Sn,ku;function Nb(){if(ku)return Sn;ku=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"),d=o.constructor&&o.constructor.prototype&&e.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!c&&!d)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 Sn=function s(){var o,c,d,m,f,E,b=arguments[0],h=1,v=arguments.length,g=!1;for(typeof b=="boolean"&&(g=b,b=arguments[1]||{},h=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});h<v;++h)if(o=arguments[h],o!=null)for(c in o)d=u(b,c),m=u(o,c),b!==m&&(g&&m&&(r(m)||(f=n(m)))?(f?(f=!1,E=d&&n(d)?d:[]):E=d&&r(d)?d:{},i(b,{name:c,newValue:s(g,E,m)})):typeof m<"u"&&i(b,{name:c,newValue:m}));return b},Sn}var Ib=Nb();const An=nn(Ib);function wn(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 Lb(){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 d=-1;if(s){i(s);return}for(;++d<n.length;)(o[d]===null||o[d]===void 0)&&(o[d]=n[d]);n=o,c?Ob(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 Ob(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 dt={basename:Db,dirname:Pb,extname:Mb,join:Bb,sep:"/"};function Db(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Sa(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 Pb(e){if(Sa(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 Mb(e){Sa(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 Bb(...e){let t=-1,a;for(;++t<e.length;)Sa(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":Fb(a)}function Fb(e){Sa(e);const t=e.codePointAt(0)===47;let a=Rb(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function Rb(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 Sa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Hb={cwd:$b};function $b(){return"/"}function _n(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ub(e){if(typeof e=="string")e=new URL(e);else if(!_n(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 qb(e)}function qb(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 kn=["history","path","basename","stem","extname","dirname"];class Nu{constructor(t){let a;t?_n(t)?a={path:t}:typeof t=="string"||zb(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":Hb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<kn.length;){const r=kn[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)kn.includes(n)||(this[n]=a[n])}get basename(){return typeof this.path=="string"?dt.basename(this.path):void 0}set basename(t){In(t,"basename"),Nn(t,"basename"),this.path=dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?dt.dirname(this.path):void 0}set dirname(t){Iu(this.basename,"dirname"),this.path=dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?dt.extname(this.path):void 0}set extname(t){if(Nn(t,"extname"),Iu(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=dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_n(t)&&(t=Ub(t)),In(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?dt.basename(this.path,this.extname):void 0}set stem(t){In(t,"stem"),Nn(t,"stem"),this.path=dt.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 Ue(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 Nn(e,t){if(e&&e.includes(dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+dt.sep+"`")}function In(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Iu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function zb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vb=function(e){const l=this.constructor.prototype,n=l[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,l),r},Gb={}.hasOwnProperty;class Ln extends Vb{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=Lb()}copy(){const t=new Ln;let a=-1;for(;++a<this.attachers.length;){const l=this.attachers[a];t.use(...l)}return t.data(An(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(Pn("data",this.frozen),this.namespace[t]=a,this):Gb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Pn("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=vl(t),l=this.parser||this.Parser;return On("parse",l),l(String(a),a)}process(t,a){const l=this;return this.freeze(),On("process",this.parser||this.Parser),Dn("process",this.compiler||this.Compiler),a?n(void 0,a):new Promise(n);function n(r,i){const u=vl(t),s=l.parse(u);l.run(s,u,function(c,d,m){if(c||!d||!m)return o(c);const f=d,E=l.stringify(f,m);jb(E)?m.value=E:m.result=E,o(c,m)});function o(c,d){c||!d?i(c):r?r(d):a(void 0,d)}}}processSync(t){let a=!1,l;return this.freeze(),On("processSync",this.parser||this.Parser),Dn("processSync",this.compiler||this.Compiler),this.process(t,n),Ou("processSync","process",a),l;function n(r,i){a=!0,_u(r),l=i}}run(t,a,l){Lu(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=vl(a);n.run(t,s,o);function o(c,d,m){const f=d||t;c?u(c):i?i(f):l(void 0,f,m)}}}runSync(t,a){let l=!1,n;return this.run(t,a,r),Ou("runSync","run",l),n;function r(i,u){_u(i),n=u,l=!0}}stringify(t,a){this.freeze();const l=vl(a),n=this.compiler||this.Compiler;return Dn("stringify",n),Lu(t),n(t,l)}use(t,...a){const l=this.attachers,n=this.namespace;if(Pn("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,...d]=o;s(c,d)}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=An(!0,n.settings,o.settings))}function u(o){let c=-1;if(o!=null)if(Array.isArray(o))for(;++c<o.length;){const d=o[c];r(d)}else throw new TypeError("Expected a list of plugins, not `"+o+"`")}function s(o,c){let d=-1,m=-1;for(;++d<l.length;)if(l[d][0]===o){m=d;break}if(m===-1)l.push([o,...c]);else if(c.length>0){let[f,...E]=c;const b=l[m][1];wn(b)&&wn(f)&&(f=An(!0,b,f)),l[m]=[o,f,...E]}}}}const Yb=new Ln().freeze();function On(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Dn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pn(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 Lu(e){if(!wn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ou(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vl(e){return Wb(e)?e:new Nu(e)}function Wb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function jb(e){return typeof e=="string"||Xb(e)}function Xb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Du=[],Pu={allowDangerousHtml:!0},Qb=/^(https?|ircs?|mailto|xmpp)$/i,Jb=[{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 Mn(e){const t=Zb(e),a=em(e);return tm(t.runSync(t.parse(a),a),e)}function Zb(e){const t=e.rehypePlugins||Du,a=e.remarkPlugins||Du,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pu}:Pu;return Yb().use(Ph).use(a).use(kb,l).use(t)}function em(e){const t=e.children||"",a=new Nu;return typeof t=="string"&&(a.value=t),a}function tm(e,t){const a=t.allowedElements,l=t.allowElement,n=t.components,r=t.disallowedElements,i=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||am;for(const c of Jb)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Kb+c.id,void 0);return ml(e,o),Sf(e,{Fragment:q.Fragment,components:n,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function o(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return i?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in dn)if(Object.hasOwn(dn,f)&&Object.hasOwn(c.properties,f)){const E=c.properties[f],b=dn[f];(b===null||b.includes(c.tagName))&&(c.properties[f]=s(String(E||""),f,c))}}if(c.type==="element"){let f=a?!a.includes(c.tagName):r?r.includes(c.tagName):!1;if(!f&&l&&typeof d=="number"&&(f=!l(c,d,m)),f&&m&&typeof d=="number")return u&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function am(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||Qb.test(e.slice(0,t))?e:""}const Mu=/[#.]/g;function lm(e,t){const a=e||"",l={};let n=0,r,i;for(;n<a.length;){Mu.lastIndex=n;const u=Mu.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 Bu(e,t,a){const l=a?um(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=lm(r,t);const o=s.tagName.toLowerCase(),c=l?l.get(o):void 0;if(s.tagName=c||o,nm(i))u.unshift(i);else for(const[d,m]of Object.entries(i))rm(e,s.properties,d,m)}for(const o of u)Bn(s.children,o);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return n}function nm(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 rm(e,t,a,l){const n=ul(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=Ai(l):n.commaSeparated?r=fi(l):n.commaOrSpaceSeparated?r=Ai(fi(l).join(" ")):r=Fu(n,n.property,l):Array.isArray(l)?r=[...l]:r=n.property==="style"?im(l):String(l);if(Array.isArray(r)){const i=[];for(const u of r)i.push(Fu(n,n.property,u));r=i}n.property==="className"&&Array.isArray(t.className)&&(r=t.className.concat(r)),t[n.property]=r}}function Bn(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)Bn(e,a);else if(typeof t=="object"&&"type"in t)t.type==="root"?Bn(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Fu(e,t,a){if(typeof a=="string"){if(e.number&&a&&!Number.isNaN(Number(a)))return Number(a);if((e.boolean||e.overloadedBoolean)&&(a===""||fa(a)===fa(t)))return!0}return a}function im(e){const t=[];for(const[a,l]of Object.entries(e))t.push([a,l].join(": "));return t.join("; ")}function um(e){const t=new Map;for(const a of e)t.set(a.toLowerCase(),a);return t}const sm=["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"],om=Bu(pa,"div"),cm=Bu(Ct,"g",sm);function dm(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=Ru(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=Ru(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 Ru(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 Ht={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Hu={}.hasOwnProperty,fm=Object.prototype;function pm(e,t){const a=t||{};return Fn({file:a.file||void 0,location:!1,schema:a.space==="svg"?Ct:pa,verbose:a.verbose||!1},e)}function Fn(e,t){let a;switch(t.nodeName){case"#comment":{const l=t;return a={type:"comment",value:l.data},gl(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:$u(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){const r=String(e.file),i=dm(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"},gl(e,l,a),a}case"#text":{const l=t;return a={type:"text",value:l.value},gl(e,l,a),a}default:return a=hm(e,t),a}}function $u(e,t){let a=-1;const l=[];for(;++a<t.length;){const n=Fn(e,t[a]);l.push(n)}return l}function hm(e,t){const a=e.schema;e.schema=t.namespaceURI===Ht.svg?Ct:pa;let l=-1;const n={};for(;++l<t.attrs.length;){const u=t.attrs[l],s=(u.prefix?u.prefix+":":"")+u.name;Hu.call(fm,s)||(n[s]=u.value)}const i=(e.schema.space==="svg"?cm:om)(t.tagName,n,$u(e,t.childNodes));if(gl(e,t,i),i.tagName==="template"){const u=t,s=u.sourceCodeLocation,o=s&&s.startTag&&Zt(s.startTag),c=s&&s.endTag&&Zt(s.endTag),d=Fn(e,u.content);o&&c&&e.file&&(d.position={start:o.end,end:c.start}),i.content=d}return e.schema=a,i}function gl(e,t,a){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const l=bm(e,a,t.sourceCodeLocation);l&&(e.location=!0,a.position=l)}}function bm(e,t,a){const l=Zt(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)Hu.call(a.attrs,i)&&(r[ul(e.schema,i).property]=Zt(a.attrs[i]));a.startTag;const u=Zt(a.startTag),s=a.endTag?Zt(a.endTag):void 0,o={opening:u};s&&(o.closing=s),o.properties=r,t.data={position:o}}}return l}function Zt(e){const t=Uu({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=Uu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||a?{start:t,end:a}:void 0}function Uu(e){return e.line&&e.column?e:void 0}const qu={}.hasOwnProperty;function zu(e,t){const a=t||{};function l(n,...r){let i=l.invalid;const u=l.handlers;if(n&&qu.call(n,e)){const s=String(n[e]);i=qu.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 mm={},vm={}.hasOwnProperty,Vu=zu("type",{handlers:{root:Em,element:Sm,text:xm,comment:Cm,doctype:Tm}});function gm(e,t){const l=(t||mm).space;return Vu(e,l==="svg"?Ct:pa)}function Em(e,t){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=Rn(e.children,a,t),ea(e,a),a}function ym(e,t){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=Rn(e.children,a,t),ea(e,a),a}function Tm(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ea(e,t),t}function xm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ea(e,t),t}function Cm(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ea(e,t),t}function Sm(e,t){const a=t;let l=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(l=Ct);const n=[];let r;if(e.properties){for(r in e.properties)if(r!=="children"&&vm.call(e.properties,r)){const s=Am(l,r,e.properties[r]);s&&n.push(s)}}const i=l.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:n,namespaceURI:Ht[i],childNodes:[],parentNode:null};return u.childNodes=Rn(e.children,u,l),ea(e,u),e.tagName==="template"&&e.content&&(u.content=ym(e.content,l)),u}function Am(e,t,a){const l=ul(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?pi(a):wi(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=Ht[l.space]}return n}function Rn(e,t,a){let l=-1;const n=[];if(e)for(;++l<e.length;){const r=Vu(e[l],a);r.parentNode=t,n.push(r)}return n}function ea(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 wm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],_m=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]),Le="�";var M;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(M||(M={}));const je={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Gu(e){return e>=55296&&e<=57343}function km(e){return e>=56320&&e<=57343}function Nm(e,t){return(e-55296)*1024+9216+t}function Yu(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Wu(e){return e>=64976&&e<=65007||_m.has(e)}var j;(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"})(j||(j={}));const Im=65536;class Lm{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=Im,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(km(a))return this.pos++,this._addGap(),Nm(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(j.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,M.EOF;const l=this.html.charCodeAt(a);return l===M.CARRIAGE_RETURN?M.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,M.EOF;let t=this.html.charCodeAt(this.pos);return t===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):t===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Gu(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===M.LINE_FEED||t===M.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Yu(t)?this._err(j.controlCharacterInInputStream):Wu(t)&&this._err(j.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ye;(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"})(ye||(ye={}));function ju(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 Om=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Dm=new 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 Pm(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Dm.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 Mm=32;var wt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wt||(wt={}));function Hn(e){return e>=Be.ZERO&&e<=Be.NINE}function Bm(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function Fm(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||Hn(e)}function Rm(e){return e===Be.EQUALS||Fm(e)}var Fe;(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"})(Fe||(Fe={}));var gt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(gt||(gt={}));class Hm{constructor(t,a,l){this.decodeTree=t,this.emitCodePoint=a,this.errors=l,this.state=Fe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gt.Strict}startEntity(t){this.decodeMode=t,this.state=Fe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case Fe.EntityStart:return t.charCodeAt(a)===Be.NUM?(this.state=Fe.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=Fe.NamedEntity,this.stateNamedEntity(t,a));case Fe.NumericStart:return this.stateNumericStart(t,a);case Fe.NumericDecimal:return this.stateNumericDecimal(t,a);case Fe.NumericHex:return this.stateNumericHex(t,a);case Fe.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|Mm)===Be.LOWER_X?(this.state=Fe.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=Fe.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(Hn(n)||Bm(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(Hn(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===gt.Strict)return 0;return this.emitCodePoint(Pm(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&wt.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){const i=t.charCodeAt(a);if(this.treeIndex=$m(l,n,this.treeIndex+Math.max(1,r),i),this.treeIndex<0)return this.result===0||this.decodeMode===gt.Attribute&&(r===0||Rm(i))?0:this.emitNotTerminatedNamedEntity();if(n=l[this.treeIndex],r=(n&wt.VALUE_LENGTH)>>14,r!==0){if(i===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==gt.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]&wt.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]&~wt.VALUE_LENGTH:n[t+1],l),a===3&&this.emitCodePoint(n[t+2],l),l}end(){var t;switch(this.state){case Fe.NamedEntity:return this.result!==0&&(this.decodeMode!==gt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fe.NumericDecimal:return this.emitNumericEntity(0,2);case Fe.NumericHex:return this.emitNumericEntity(0,3);case Fe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fe.EntityStart:return 0}}}function $m(e,t,a,l){const n=(t&wt.BRANCH_LENGTH)>>7,r=t&wt.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 J;(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/"})(J||(J={}));var $t;(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"})($t||($t={}));var tt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tt||(tt={}));var V;(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"})(V||(V={}));var p;(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"})(p||(p={}));const Um=new Map([[V.A,p.A],[V.ADDRESS,p.ADDRESS],[V.ANNOTATION_XML,p.ANNOTATION_XML],[V.APPLET,p.APPLET],[V.AREA,p.AREA],[V.ARTICLE,p.ARTICLE],[V.ASIDE,p.ASIDE],[V.B,p.B],[V.BASE,p.BASE],[V.BASEFONT,p.BASEFONT],[V.BGSOUND,p.BGSOUND],[V.BIG,p.BIG],[V.BLOCKQUOTE,p.BLOCKQUOTE],[V.BODY,p.BODY],[V.BR,p.BR],[V.BUTTON,p.BUTTON],[V.CAPTION,p.CAPTION],[V.CENTER,p.CENTER],[V.CODE,p.CODE],[V.COL,p.COL],[V.COLGROUP,p.COLGROUP],[V.DD,p.DD],[V.DESC,p.DESC],[V.DETAILS,p.DETAILS],[V.DIALOG,p.DIALOG],[V.DIR,p.DIR],[V.DIV,p.DIV],[V.DL,p.DL],[V.DT,p.DT],[V.EM,p.EM],[V.EMBED,p.EMBED],[V.FIELDSET,p.FIELDSET],[V.FIGCAPTION,p.FIGCAPTION],[V.FIGURE,p.FIGURE],[V.FONT,p.FONT],[V.FOOTER,p.FOOTER],[V.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[V.FORM,p.FORM],[V.FRAME,p.FRAME],[V.FRAMESET,p.FRAMESET],[V.H1,p.H1],[V.H2,p.H2],[V.H3,p.H3],[V.H4,p.H4],[V.H5,p.H5],[V.H6,p.H6],[V.HEAD,p.HEAD],[V.HEADER,p.HEADER],[V.HGROUP,p.HGROUP],[V.HR,p.HR],[V.HTML,p.HTML],[V.I,p.I],[V.IMG,p.IMG],[V.IMAGE,p.IMAGE],[V.INPUT,p.INPUT],[V.IFRAME,p.IFRAME],[V.KEYGEN,p.KEYGEN],[V.LABEL,p.LABEL],[V.LI,p.LI],[V.LINK,p.LINK],[V.LISTING,p.LISTING],[V.MAIN,p.MAIN],[V.MALIGNMARK,p.MALIGNMARK],[V.MARQUEE,p.MARQUEE],[V.MATH,p.MATH],[V.MENU,p.MENU],[V.META,p.META],[V.MGLYPH,p.MGLYPH],[V.MI,p.MI],[V.MO,p.MO],[V.MN,p.MN],[V.MS,p.MS],[V.MTEXT,p.MTEXT],[V.NAV,p.NAV],[V.NOBR,p.NOBR],[V.NOFRAMES,p.NOFRAMES],[V.NOEMBED,p.NOEMBED],[V.NOSCRIPT,p.NOSCRIPT],[V.OBJECT,p.OBJECT],[V.OL,p.OL],[V.OPTGROUP,p.OPTGROUP],[V.OPTION,p.OPTION],[V.P,p.P],[V.PARAM,p.PARAM],[V.PLAINTEXT,p.PLAINTEXT],[V.PRE,p.PRE],[V.RB,p.RB],[V.RP,p.RP],[V.RT,p.RT],[V.RTC,p.RTC],[V.RUBY,p.RUBY],[V.S,p.S],[V.SCRIPT,p.SCRIPT],[V.SEARCH,p.SEARCH],[V.SECTION,p.SECTION],[V.SELECT,p.SELECT],[V.SOURCE,p.SOURCE],[V.SMALL,p.SMALL],[V.SPAN,p.SPAN],[V.STRIKE,p.STRIKE],[V.STRONG,p.STRONG],[V.STYLE,p.STYLE],[V.SUB,p.SUB],[V.SUMMARY,p.SUMMARY],[V.SUP,p.SUP],[V.TABLE,p.TABLE],[V.TBODY,p.TBODY],[V.TEMPLATE,p.TEMPLATE],[V.TEXTAREA,p.TEXTAREA],[V.TFOOT,p.TFOOT],[V.TD,p.TD],[V.TH,p.TH],[V.THEAD,p.THEAD],[V.TITLE,p.TITLE],[V.TR,p.TR],[V.TRACK,p.TRACK],[V.TT,p.TT],[V.U,p.U],[V.UL,p.UL],[V.SVG,p.SVG],[V.VAR,p.VAR],[V.WBR,p.WBR],[V.XMP,p.XMP]]);function ta(e){var t;return(t=Um.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const Z=p,qm={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},$n=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);V.STYLE,V.SCRIPT,V.XMP,V.IFRAME,V.NOEMBED,V.NOFRAMES,V.PLAINTEXT;var H;(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"})(H||(H={}));const De={DATA:H.DATA,RCDATA:H.RCDATA,RAWTEXT:H.RAWTEXT,SCRIPT_DATA:H.SCRIPT_DATA,PLAINTEXT:H.PLAINTEXT,CDATA_SECTION:H.CDATA_SECTION};function zm(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function Aa(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function Vm(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function _t(e){return Vm(e)||Aa(e)}function Xu(e){return _t(e)||zm(e)}function El(e){return e+32}function Ku(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function Qu(e){return Ku(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function Gm(e){return e===M.NULL?j.nullCharacterReference:e>1114111?j.characterReferenceOutsideUnicodeRange:Gu(e)?j.surrogateCharacterReference:Wu(e)?j.noncharacterCharacterReference:Yu(e)||e===M.CARRIAGE_RETURN?j.controlCharacterReference:null}class Ym{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=H.DATA,this.returnState=H.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Lm(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hm(Om,(l,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(l)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(j.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:l=>{this._err(j.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+l)},validateNumericCharacterReference:l=>{const n=Gm(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:ye.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ye.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ye.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ye.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(ju(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(j.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=ta(t.tagName),t.type===ye.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(j.endTagWithAttributes),t.selfClosing&&this._err(j.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 ye.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ye.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ye.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:ye.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=Ku(t)?ye.WHITESPACE_CHARACTER:t===M.NULL?ye.NULL_CHARACTER:ye.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ye.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=H.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gt.Attribute:gt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===H.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===H.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===H.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case H.DATA:{this._stateData(t);break}case H.RCDATA:{this._stateRcdata(t);break}case H.RAWTEXT:{this._stateRawtext(t);break}case H.SCRIPT_DATA:{this._stateScriptData(t);break}case H.PLAINTEXT:{this._statePlaintext(t);break}case H.TAG_OPEN:{this._stateTagOpen(t);break}case H.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case H.TAG_NAME:{this._stateTagName(t);break}case H.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case H.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case H.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case H.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case H.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case H.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case H.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case H.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case H.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case H.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case H.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case H.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case H.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case H.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case H.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case H.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case H.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case H.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case H.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case H.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case H.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case H.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case H.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case H.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case H.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case H.BOGUS_COMMENT:{this._stateBogusComment(t);break}case H.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case H.COMMENT_START:{this._stateCommentStart(t);break}case H.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case H.COMMENT:{this._stateComment(t);break}case H.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case H.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case H.COMMENT_END:{this._stateCommentEnd(t);break}case H.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case H.DOCTYPE:{this._stateDoctype(t);break}case H.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case H.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case H.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case H.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case H.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case H.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case H.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case H.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case H.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case H.CDATA_SECTION:{this._stateCdataSection(t);break}case H.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case H.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case H.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case H.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=H.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitCodePoint(t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=H.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Le);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case M.LESS_THAN_SIGN:{this.state=H.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Le);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Le);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Le);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_t(t))this._createStartTagToken(),this.state=H.TAG_NAME,this._stateTagName(t);else switch(t){case M.EXCLAMATION_MARK:{this.state=H.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=H.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(j.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t);break}case M.EOF:{this._err(j.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=H.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_t(t))this._createEndTagToken(),this.state=H.TAG_NAME,this._stateTagName(t);else switch(t){case M.GREATER_THAN_SIGN:{this._err(j.missingEndTagName),this.state=H.DATA;break}case M.EOF:{this._err(j.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=H.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.tagName+=Le;break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(Aa(t)?El(t):t)}}_stateRcdataLessThanSign(t){t===M.SOLIDUS?this.state=H.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=H.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_t(t)?(this.state=H.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=H.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 M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=H.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=H.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=H.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===M.SOLIDUS?this.state=H.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_t(t)?(this.state=H.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case M.SOLIDUS:{this.state=H.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=H.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=H.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_t(t)?(this.state=H.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===M.HYPHEN_MINUS?(this.state=H.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===M.HYPHEN_MINUS?(this.state=H.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Le);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_ESCAPED,this._emitChars(Le);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=H.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_ESCAPED,this._emitChars(Le);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===M.SOLIDUS?this.state=H.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_t(t)?(this._emitChars("<"),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_t(t)?(this.state=H.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Qu(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<je.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Le);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Le);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=H.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Le);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===M.SOLIDUS?(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Qu(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<je.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=H.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=H.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._err(j.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=H.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=H.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=H.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=H.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(j.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.name+=Le;break}default:this.currentAttr.name+=String.fromCodePoint(Aa(t)?El(t):t)}}_stateAfterAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=H.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=H.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=H.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=H.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=H.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingAttributeValue),this.state=H.DATA,this.emitCurrentTagToken();break}default:this.state=H.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case M.QUOTATION_MARK:{this.state=H.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Le;break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case M.APOSTROPHE:{this.state=H.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Le;break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=H.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=H.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Le;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(j.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=H.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=H.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=H.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBetweenAttributes),this.state=H.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case M.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=H.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.unexpectedSolidusInTag),this.state=H.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const a=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentComment(a);break}case M.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.data+=Le;break}default:a.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(je.DASH_DASH,!0)?(this._createCommentToken(je.DASH_DASH.length+1),this.state=H.COMMENT_START):this._consumeSequenceIfMatch(je.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(je.DOCTYPE.length+1),this.state=H.DOCTYPE):this._consumeSequenceIfMatch(je.CDATA_START,!0)?this.inForeignNode?this.state=H.CDATA_SECTION:(this._err(j.cdataInHtmlContent),this._createCommentToken(je.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=H.BOGUS_COMMENT):this._ensureHibernation()||(this._err(j.incorrectlyOpenedComment),this._createCommentToken(2),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=H.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=H.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=H.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=H.COMMENT,this._stateComment(t)}}_stateComment(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{a.data+="<",this.state=H.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.data+=Le;break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const a=this.currentToken;switch(t){case M.EXCLAMATION_MARK:{a.data+="!",this.state=H.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=H.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===M.HYPHEN_MINUS?this.state=H.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=H.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===M.HYPHEN_MINUS?this.state=H.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=H.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==M.GREATER_THAN_SIGN&&t!==M.EOF&&this._err(j.nestedComment),this.state=H.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_END;break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=H.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const a=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentComment(a);break}case M.EXCLAMATION_MARK:{this.state=H.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{a.data+="-";break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=H.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{a.data+="--!",this.state=H.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(j.incorrectlyClosedComment),this.state=H.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=H.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=H.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case M.EOF:{this._err(j.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBeforeDoctypeName),this.state=H.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Aa(t))this._createDoctypeToken(String.fromCharCode(El(t))),this.state=H.DOCTYPE_NAME;else switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(j.unexpectedNullCharacter),this._createDoctypeToken(Le),this.state=H.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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=H.DOCTYPE_NAME}}_stateDoctypeName(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.name+=Le;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(Aa(t)?El(t):t)}}_stateAfterDoctypeName(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(je.PUBLIC,!1)?this.state=H.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(je.SYSTEM,!1)?this.state=H.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(j.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.publicId+=Le;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.APOSTROPHE:{this.state=H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.publicId+=Le;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.QUOTATION_MARK:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.QUOTATION_MARK:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.systemId+=Le;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.APOSTROPHE:{this.state=H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.systemId+=Le;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const a=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.NULL:{this._err(j.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case M.RIGHT_SQUARE_BRACKET:{this.state=H.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(j.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===M.RIGHT_SQUARE_BRACKET?this.state=H.CDATA_SECTION_END:(this._emitChars("]"),this.state=H.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case M.GREATER_THAN_SIGN:{this.state=H.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=H.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Xu(this.preprocessor.peek(1))?H.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Xu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===M.SEMICOLON&&this._err(j.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Ju=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),Zu=new Set([...Ju,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),yl=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),Wm=new Set([...yl,p.OL,p.UL]),jm=new Set([...yl,p.BUTTON]),es=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),ts=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),Xm=new Set([p.TR,p.TEMPLATE,p.HTML]),Km=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),Qm=new Set([p.TABLE,p.TEMPLATE,p.HTML]),Jm=new Set([p.TD,p.TH]);class Zm{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=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.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])!==J.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($n,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Jm,J.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(Qm,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Km,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Xm,J.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]===p.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]===p.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 J.HTML:{if(n===t)return!0;if(a.has(n))return!1;break}case J.SVG:{if(ts.has(n))return!1;break}case J.MATHML:{if(es.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,yl)}hasInListItemScope(t){return this.hasInDynamicScope(t,Wm)}hasInButtonScope(t){return this.hasInDynamicScope(t,jm)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if($n.has(a))return!0;if(yl.has(a))return!1;break}case J.SVG:{if(ts.has(a))return!1;break}case J.MATHML:{if(es.has(a))return!1;break}}}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===J.HTML)switch(this.tagIDs[a]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===J.HTML)switch(this.tagIDs[a]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Ju.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Zu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Zu.has(this.currentTagId);)this.pop()}}const Un=3;var ft;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ft||(ft={}));const as={type:ft.Marker};class e0{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===ft.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<Un)return;const a=this.treeAdapter.getAttrList(t),l=this._getNoahArkConditionCandidates(t,a);if(l.length<Un)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>=Un&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(as)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:ft.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const l=this.entries.indexOf(this.bookmark);this.entries.splice(l,0,{type:ft.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(as);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const a=this.entries.find(l=>l.type===ft.Marker||this.treeAdapter.getTagName(l.element)===t);return a&&a.type===ft.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===ft.Element&&a.element===t)}}const kt={createDocument(){return{nodeName:"#document",mode:tt.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};kt.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(kt.isTextNode(a)){a.value+=t;return}}kt.appendChild(e,kt.createTextNode(t))},insertTextBefore(e,t,a){const l=e.childNodes[e.childNodes.indexOf(a)-1];l&&kt.isTextNode(l)?l.value+=t:kt.insertBefore(e,kt.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}}},ls="html",t0="about:legacy-compat",a0="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ns=["+//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//"],l0=[...ns,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],n0=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),rs=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],r0=[...rs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function is(e,t){return t.some(a=>e.startsWith(a))}function i0(e){return e.name===ls&&e.publicId===null&&(e.systemId===null||e.systemId===t0)}function u0(e){if(e.name!==ls)return tt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===a0)return tt.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),n0.has(a))return tt.QUIRKS;let l=t===null?l0:ns;if(is(a,l))return tt.QUIRKS;if(l=t===null?rs:r0,is(a,l))return tt.LIMITED_QUIRKS}return tt.NO_QUIRKS}const us={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},s0="definitionurl",o0="definitionURL",c0=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])),d0=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),f0=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])),p0=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function h0(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:l})=>l===$t.COLOR||l===$t.SIZE||l===$t.FACE)||p0.has(t)}function ss(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===s0){e.attrs[t].name=o0;break}}function os(e){for(let t=0;t<e.attrs.length;t++){const a=c0.get(e.attrs[t].name);a!=null&&(e.attrs[t].name=a)}}function qn(e){for(let t=0;t<e.attrs.length;t++){const a=d0.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 b0(e){const t=f0.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ta(e.tagName))}function m0(e,t){return t===J.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function v0(e,t,a){if(t===J.MATHML&&e===p.ANNOTATION_XML){for(let l=0;l<a.length;l++)if(a[l].name===$t.ENCODING){const n=a[l].value.toLowerCase();return n===us.TEXT_HTML||n===us.APPLICATION_XML}}return t===J.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function g0(e,t,a,l){return(!l||l===J.HTML)&&v0(e,t,a)||(!l||l===J.MATHML)&&m0(e,t)}const E0="hidden",y0=8,T0=3;var U;(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"})(U||(U={}));const x0={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},cs=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),ds={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:kt,onParseError:null};class fs{constructor(t,a,l=null,n=null){this.fragmentContext=l,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...ds,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new Ym(this.options,this),this.activeFormattingElements=new e0(this.treeAdapter),this.fragmentContextID=l?ta(this.treeAdapter.getTagName(l)):p.UNKNOWN,this._setContextModes(l??this.document,this.fragmentContextID),this.openElements=new Zm(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={...ds,...a};t??(t=l.treeAdapter.createElement(V.TEMPLATE,J.HTML,[]));const n=l.treeAdapter.createElement("documentmock",J.HTML,[]),r=new this(l,n,t);return r.fragmentContextID===p.TEMPLATE&&r.tmplInsertionModeStack.unshift(U.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:x0,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)===J.HTML;this.currentNotInHTML=!l,this.tokenizer.inForeignNode=!l&&t!==void 0&&a!==void 0&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,J.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=De.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)===V.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=De.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=De.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=De.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=De.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,J.HTML,[]);this._attachElementToTree(l,null),this.openElements.push(l,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,J.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(V.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.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===ye.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===p.SVG&&this.treeAdapter.getTagName(a)===V.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&l!==void 0&&!this._isIntegrationPoint(l,a,J.HTML)}_processToken(t){switch(t.type){case ye.CHARACTER:{this.onCharacter(t);break}case ye.NULL_CHARACTER:{this.onNullCharacter(t);break}case ye.COMMENT:{this.onComment(t);break}case ye.DOCTYPE:{this.onDoctype(t);break}case ye.START_TAG:{this._processStartTag(t);break}case ye.END_TAG:{this.onEndTag(t);break}case ye.EOF:{this.onEof(t);break}case ye.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,l){const n=this.treeAdapter.getNamespaceURI(a),r=this.treeAdapter.getAttrList(a);return g0(t,n,r,l)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(n=>n.type===ft.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=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=U.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=U.IN_TABLE;return}case p.BODY:{this.insertionMode=U.IN_BODY;return}case p.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const l=this.openElements.tagIDs[a];if(l===p.TEMPLATE)break;if(l===p.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return cs.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 p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case p.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 qm[l].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Jv(this,t);return}switch(this.insertionMode){case U.INITIAL:{wa(this,t);break}case U.BEFORE_HTML:{_a(this,t);break}case U.BEFORE_HEAD:{ka(this,t);break}case U.IN_HEAD:{Na(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Ia(this,t);break}case U.AFTER_HEAD:{La(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{hs(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Yn(this,t);break}case U.IN_TABLE_TEXT:{xs(this,t);break}case U.IN_COLUMN_GROUP:{Cl(this,t);break}case U.AFTER_BODY:{wl(this,t);break}case U.AFTER_AFTER_BODY:{_l(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Qv(this,t);return}switch(this.insertionMode){case U.INITIAL:{wa(this,t);break}case U.BEFORE_HTML:{_a(this,t);break}case U.BEFORE_HEAD:{ka(this,t);break}case U.IN_HEAD:{Na(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Ia(this,t);break}case U.AFTER_HEAD:{La(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Yn(this,t);break}case U.IN_COLUMN_GROUP:{Cl(this,t);break}case U.AFTER_BODY:{wl(this,t);break}case U.AFTER_AFTER_BODY:{_l(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Vn(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{Vn(this,t);break}case U.IN_TABLE_TEXT:{Pa(this,t);break}case U.AFTER_BODY:{N0(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{I0(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{L0(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,j.misplacedDoctype);break}case U.IN_TABLE_TEXT:{Pa(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,j.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Zv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{wa(this,t);break}case U.BEFORE_HTML:{O0(this,t);break}case U.BEFORE_HEAD:{P0(this,t);break}case U.IN_HEAD:{lt(this,t);break}case U.IN_HEAD_NO_SCRIPT:{F0(this,t);break}case U.AFTER_HEAD:{H0(this,t);break}case U.IN_BODY:{qe(this,t);break}case U.IN_TABLE:{aa(this,t);break}case U.IN_TABLE_TEXT:{Pa(this,t);break}case U.IN_CAPTION:{Mv(this,t);break}case U.IN_COLUMN_GROUP:{Wn(this,t);break}case U.IN_TABLE_BODY:{Sl(this,t);break}case U.IN_ROW:{Al(this,t);break}case U.IN_CELL:{Rv(this,t);break}case U.IN_SELECT:{As(this,t);break}case U.IN_SELECT_IN_TABLE:{$v(this,t);break}case U.IN_TEMPLATE:{qv(this,t);break}case U.AFTER_BODY:{Vv(this,t);break}case U.IN_FRAMESET:{Gv(this,t);break}case U.AFTER_FRAMESET:{Wv(this,t);break}case U.AFTER_AFTER_BODY:{Xv(this,t);break}case U.AFTER_AFTER_FRAMESET:{Kv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?eg(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{wa(this,t);break}case U.BEFORE_HTML:{D0(this,t);break}case U.BEFORE_HEAD:{M0(this,t);break}case U.IN_HEAD:{B0(this,t);break}case U.IN_HEAD_NO_SCRIPT:{R0(this,t);break}case U.AFTER_HEAD:{$0(this,t);break}case U.IN_BODY:{xl(this,t);break}case U.TEXT:{Av(this,t);break}case U.IN_TABLE:{Oa(this,t);break}case U.IN_TABLE_TEXT:{Pa(this,t);break}case U.IN_CAPTION:{Bv(this,t);break}case U.IN_COLUMN_GROUP:{Fv(this,t);break}case U.IN_TABLE_BODY:{jn(this,t);break}case U.IN_ROW:{Ss(this,t);break}case U.IN_CELL:{Hv(this,t);break}case U.IN_SELECT:{ws(this,t);break}case U.IN_SELECT_IN_TABLE:{Uv(this,t);break}case U.IN_TEMPLATE:{zv(this,t);break}case U.AFTER_BODY:{ks(this,t);break}case U.IN_FRAMESET:{Yv(this,t);break}case U.AFTER_FRAMESET:{jv(this,t);break}case U.AFTER_AFTER_BODY:{_l(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{wa(this,t);break}case U.BEFORE_HTML:{_a(this,t);break}case U.BEFORE_HEAD:{ka(this,t);break}case U.IN_HEAD:{Na(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Ia(this,t);break}case U.AFTER_HEAD:{La(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{ys(this,t);break}case U.TEXT:{wv(this,t);break}case U.IN_TABLE_TEXT:{Pa(this,t);break}case U.IN_TEMPLATE:{_s(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Gn(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===M.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{ps(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Yn(this,t);break}case U.IN_TABLE_TEXT:{Ts(this,t);break}}}}function C0(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):Es(e,t),a}function S0(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 A0(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>=T0;!u||s?(s&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(i)):(i=w0(e,u),l===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(l),e.treeAdapter.appendChild(i,l),l=i)}return l}function w0(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 _0(e,t,a){const l=e.treeAdapter.getTagName(t),n=ta(l);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(a);else{const r=e.treeAdapter.getNamespaceURI(t);n===p.TEMPLATE&&r===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function k0(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 zn(e,t){for(let a=0;a<y0;a++){const l=C0(e,t);if(!l)break;const n=S0(e,l);if(!n)break;e.activeFormattingElements.bookmark=l;const r=A0(e,n,l.element),i=e.openElements.getCommonAncestor(l.element);e.treeAdapter.detachNode(r),i&&_0(e,i,r),k0(e,n,l)}}function Vn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function N0(e,t){e._appendCommentNode(t,e.openElements.items[0])}function I0(e,t){e._appendCommentNode(t,e.document)}function Gn(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 L0(e,t){e._setDocumentType(t);const a=t.forceQuirks?tt.QUIRKS:u0(t);i0(t)||e._err(t,j.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=U.BEFORE_HTML}function wa(e,t){e._err(t,j.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tt.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function O0(e,t){t.tagID===p.HTML?(e._insertElement(t,J.HTML),e.insertionMode=U.BEFORE_HEAD):_a(e,t)}function D0(e,t){const a=t.tagID;(a===p.HTML||a===p.HEAD||a===p.BODY||a===p.BR)&&_a(e,t)}function _a(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function P0(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:ka(e,t)}}function M0(e,t){const a=t.tagID;a===p.HEAD||a===p.BODY||a===p.HTML||a===p.BR?ka(e,t):e._err(t,j.endTagWithoutMatchingOpenElement)}function ka(e,t){e._insertFakeElement(V.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function lt(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,De.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,De.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,De.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,De.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case p.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:Na(e,t)}}function B0(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{Na(e,t);break}case p.TEMPLATE:{Ut(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Ut(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,j.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,j.endTagWithoutMatchingOpenElement)}function Na(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function F0(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{lt(e,t);break}case p.NOSCRIPT:{e._err(t,j.nestedNoscriptInHead);break}default:Ia(e,t)}}function R0(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case p.BR:{Ia(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Ia(e,t){const a=t.type===ye.EOF?j.openElementsLeftAfterEof:j.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function H0(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=U.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,j.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),lt(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:La(e,t)}}function $0(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{La(e,t);break}case p.TEMPLATE:{Ut(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function La(e,t){e._insertFakeElement(V.BODY,p.BODY),e.insertionMode=U.IN_BODY,Tl(e,t)}function Tl(e,t){switch(t.type){case ye.CHARACTER:{hs(e,t);break}case ye.WHITESPACE_CHARACTER:{ps(e,t);break}case ye.COMMENT:{Vn(e,t);break}case ye.START_TAG:{qe(e,t);break}case ye.END_TAG:{xl(e,t);break}case ye.EOF:{ys(e,t);break}}}function ps(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function hs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function U0(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function q0(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function z0(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_FRAMESET)}function V0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function G0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&$n.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function Y0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function W0(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),a||(e.formElement=e.openElements.current))}function j0(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===p.LI&&n===p.LI||(a===p.DD||a===p.DT)&&(n===p.DD||n===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==p.ADDRESS&&n!==p.DIV&&n!==p.P&&e._isSpecialElement(e.openElements.items[l],n))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function X0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=De.PLAINTEXT}function K0(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Q0(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(V.A);a&&(zn(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function J0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Z0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(zn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ev(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function tv(e,t){e.treeAdapter.getDocumentMode(e.document)!==tt.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function bs(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ms(e){const t=ju(e,$t.TYPE);return t!=null&&t.toLowerCase()===E0}function av(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),ms(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function lv(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function nv(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function rv(e,t){t.tagName=V.IMG,t.tagID=p.IMG,bs(e,t)}function iv(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=De.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function uv(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,De.RAWTEXT)}function sv(e,t){e.framesetOk=!1,e._switchToTextParsing(t,De.RAWTEXT)}function vs(e,t){e._switchToTextParsing(t,De.RAWTEXT)}function ov(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function cv(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function dv(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function fv(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,J.HTML)}function pv(e,t){e._reconstructActiveFormattingElements(),ss(t),qn(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function hv(e,t){e._reconstructActiveFormattingElements(),os(t),qn(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function gs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function qe(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{J0(e,t);break}case p.A:{Q0(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{G0(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{V0(e,t);break}case p.LI:case p.DD:case p.DT:{j0(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{bs(e,t);break}case p.HR:{nv(e,t);break}case p.RB:case p.RTC:{dv(e,t);break}case p.RT:case p.RP:{fv(e,t);break}case p.PRE:case p.LISTING:{Y0(e,t);break}case p.XMP:{uv(e,t);break}case p.SVG:{hv(e,t);break}case p.HTML:{U0(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{lt(e,t);break}case p.BODY:{q0(e,t);break}case p.FORM:{W0(e,t);break}case p.NOBR:{Z0(e,t);break}case p.MATH:{pv(e,t);break}case p.TABLE:{tv(e,t);break}case p.INPUT:{av(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{lv(e,t);break}case p.IMAGE:{rv(e,t);break}case p.BUTTON:{K0(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{ev(e,t);break}case p.IFRAME:{sv(e,t);break}case p.SELECT:{ov(e,t);break}case p.OPTION:case p.OPTGROUP:{cv(e,t);break}case p.NOEMBED:case p.NOFRAMES:{vs(e,t);break}case p.FRAMESET:{z0(e,t);break}case p.TEXTAREA:{iv(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?vs(e,t):gs(e,t);break}case p.PLAINTEXT:{X0(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:gs(e,t)}}function bv(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function mv(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=U.AFTER_BODY,ks(e,t))}function vv(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function gv(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):a&&e.openElements.remove(a))}function Ev(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(V.P,p.P),e._closePElement()}function yv(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function Tv(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function xv(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Cv(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function Sv(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(V.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function Es(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!==p.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 xl(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{zn(e,t);break}case p.P:{Ev(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{vv(e,t);break}case p.LI:{yv(e);break}case p.DD:case p.DT:{Tv(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{xv(e);break}case p.BR:{Sv(e);break}case p.BODY:{bv(e,t);break}case p.HTML:{mv(e,t);break}case p.FORM:{gv(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{Cv(e,t);break}case p.TEMPLATE:{Ut(e,t);break}default:Es(e,t)}}function ys(e,t){e.tmplInsertionModeStack.length>0?_s(e,t):Gn(e,t)}function Av(e,t){var a;t.tagID===p.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function wv(e,t){e._err(t,j.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Yn(e,t){if(e.openElements.currentTagId!==void 0&&cs.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case ye.CHARACTER:{xs(e,t);break}case ye.WHITESPACE_CHARACTER:{Ts(e,t);break}}else Da(e,t)}function _v(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_CAPTION}function kv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function Nv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.COLGROUP,p.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Wn(e,t)}function Iv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_TABLE_BODY}function Lv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.TBODY,p.TBODY),e.insertionMode=U.IN_TABLE_BODY,Sl(e,t)}function Ov(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Dv(e,t){ms(t)?e._appendElement(t,J.HTML):Da(e,t),t.ackSelfClosing=!0}function Pv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function aa(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{Lv(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{lt(e,t);break}case p.COL:{Nv(e,t);break}case p.FORM:{Pv(e,t);break}case p.TABLE:{Ov(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{Iv(e,t);break}case p.INPUT:{Dv(e,t);break}case p.CAPTION:{_v(e,t);break}case p.COLGROUP:{kv(e,t);break}default:Da(e,t)}}function Oa(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{Ut(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Da(e,t)}}function Da(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Tl(e,t),e.fosterParentingEnabled=a}function Ts(e,t){e.pendingCharacterTokens.push(t)}function xs(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Pa(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)Da(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Cs=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function Mv(e,t){const a=t.tagID;Cs.has(a)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,aa(e,t)):qe(e,t)}function Bv(e,t){const a=t.tagID;switch(a){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,a===p.TABLE&&Oa(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:xl(e,t)}}function Wn(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.COL:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{lt(e,t);break}default:Cl(e,t)}}function Fv(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case p.TEMPLATE:{Ut(e,t);break}case p.COL:break;default:Cl(e,t)}}function Cl(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Sl(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(V.TR,p.TR),e.insertionMode=U.IN_ROW,Al(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,aa(e,t));break}default:aa(e,t)}}function jn(e,t){const a=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Oa(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:Oa(e,t)}}function Al(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Sl(e,t));break}default:aa(e,t)}}function Ss(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,jn(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,jn(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:Oa(e,t)}}function Rv(e,t){const a=t.tagID;Cs.has(a)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Al(e,t)):qe(e,t)}function Hv(e,t){const a=t.tagID;switch(a){case p.TD:case p.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),Ss(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:xl(e,t)}}function As(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{lt(e,t);break}}}function ws(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{Ut(e,t);break}}}function $v(e,t){const a=t.tagID;a===p.CAPTION||a===p.TABLE||a===p.TBODY||a===p.TFOOT||a===p.THEAD||a===p.TR||a===p.TD||a===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):As(e,t)}function Uv(e,t){const a=t.tagID;a===p.CAPTION||a===p.TABLE||a===p.TBODY||a===p.TFOOT||a===p.THEAD||a===p.TR||a===p.TD||a===p.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ws(e,t)}function qv(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{lt(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,aa(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Wn(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Sl(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Al(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,qe(e,t)}}function zv(e,t){t.tagID===p.TEMPLATE&&Ut(e,t)}function _s(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Gn(e,t)}function Vv(e,t){t.tagID===p.HTML?qe(e,t):wl(e,t)}function ks(e,t){var a;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.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 wl(e,t)}function wl(e,t){e.insertionMode=U.IN_BODY,Tl(e,t)}function Gv(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.FRAMESET:{e._insertElement(t,J.HTML);break}case p.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{lt(e,t);break}}}function Yv(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function Wv(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.NOFRAMES:{lt(e,t);break}}}function jv(e,t){t.tagID===p.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function Xv(e,t){t.tagID===p.HTML?qe(e,t):_l(e,t)}function _l(e,t){e.insertionMode=U.IN_BODY,Tl(e,t)}function Kv(e,t){switch(t.tagID){case p.HTML:{qe(e,t);break}case p.NOFRAMES:{lt(e,t);break}}}function Qv(e,t){t.chars=Le,e._insertCharacters(t)}function Jv(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ns(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Zv(e,t){if(h0(t))Ns(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),l=e.treeAdapter.getNamespaceURI(a);l===J.MATHML?ss(t):l===J.SVG&&(b0(t),os(t)),qn(t),t.selfClosing?e._appendElement(t,l):e._insertElement(t,l),t.ackSelfClosing=!0}}function eg(e,t){if(t.tagID===p.P||t.tagID===p.BR){Ns(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)===J.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(l);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(a);break}}}V.AREA,V.BASE,V.BASEFONT,V.BGSOUND,V.BR,V.COL,V.EMBED,V.FRAME,V.HR,V.IMG,V.INPUT,V.KEYGEN,V.LINK,V.META,V.PARAM,V.SOURCE,V.TRACK,V.WBR;const tg=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ag=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Is={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ls(e,t){const a=fg(e),l=zu("type",{handlers:{root:lg,element:ng,text:rg,comment:Ds,doctype:ig,raw:sg},unknown:og}),n={parser:a?new fs(Is):fs.getFragmentParser(void 0,Is),handle(u){l(u,n)},stitches:!1,options:t||{}};l(e,n),la(n,st());const r=a?n.parser.document:n.parser.getFragment(),i=pm(r,{file:n.options.file});return n.stitches&&ml(i,"comment",function(u,s,o){const c=u;if(c.value.stitch&&o&&s!==void 0){const d=o.children;return d[s]=c.value.stitch,s}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function Os(e,t){let a=-1;if(e)for(;++a<e.length;)t.handle(e[a])}function lg(e,t){Os(e.children,t)}function ng(e,t){cg(e,t),Os(e.children,t),dg(e,t)}function rg(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const a={type:ye.CHARACTER,chars:e.value,location:Ma(e)};la(t,st(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function ig(e,t){const a={type:ye.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ma(e)};la(t,st(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function ug(e,t){t.stitches=!0;const a=pg(e);if("children"in e&&"children"in a){const l=Ls({type:"root",children:e.children},t.options);a.children=l.children}Ds({type:"comment",value:{stitch:a}},t)}function Ds(e,t){const a=e.value,l={type:ye.COMMENT,data:a,location:Ma(e)};la(t,st(e)),t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken)}function sg(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,Ps(t,st(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tg,"<$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 og(e,t){const a=e;if(t.options.passThrough&&t.options.passThrough.includes(a.type))ug(a,t);else{let l="";throw ag.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 la(e,t){Ps(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=De.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 Ps(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 cg(e,t){const a=e.tagName.toLowerCase();if(t.parser.tokenizer.state===De.PLAINTEXT)return;la(t,st(e));const l=t.parser.openElements.current;let n="namespaceURI"in l?l.namespaceURI:Ht.html;n===Ht.html&&a==="svg"&&(n=Ht.svg);const r=gm({...e,children:[]},{space:n===Ht.svg?"svg":"html"}),i={type:ye.START_TAG,tagName:a,tagID:ta(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in r?r.attrs:[],location:Ma(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=a}function dg(e,t){const a=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&wm.includes(a)||t.parser.tokenizer.state===De.PLAINTEXT)return;la(t,sl(e));const l={type:ye.END_TAG,tagName:a,tagID:ta(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ma(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),a===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===De.RCDATA||t.parser.tokenizer.state===De.RAWTEXT||t.parser.tokenizer.state===De.SCRIPT_DATA)&&(t.parser.tokenizer.state=De.DATA)}function fg(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ma(e){const t=st(e)||{line:void 0,column:void 0,offset:void 0},a=sl(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 pg(e){return"children"in e?Rt({...e,children:[]}):Rt(e)}function Xn(e){return function(t,a){return Ls(t,{...e,file:a})}}const qt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],na={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...qt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...qt],h2:[["className","sr-only"]],img:[...qt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...qt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...qt],table:[...qt],ul:[...qt,["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"]},Nt={}.hasOwnProperty;function hg(e,t){let a={type:"root",children:[]};const l={schema:t?{...na,...t}:na,stack:[]},n=Ms(l,e);return n&&(Array.isArray(n)?n.length===1?a=n[0]:a.children=n:a=n),a}function Ms(e,t){if(t&&typeof t=="object"){const a=t;switch(typeof a.type=="string"?a.type:""){case"comment":return bg(e,a);case"doctype":return mg(e,a);case"element":return vg(e,a);case"root":return gg(e,a);case"text":return Eg(e,a)}}}function bg(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 Ba(r,t),r}}function mg(e,t){if(e.schema.allowDoctypes){const a={type:"doctype"};return Ba(a,t),a}}function vg(e,t){const a=typeof t.tagName=="string"?t.tagName:"";e.stack.push(a);const l=Bs(e,t.children),n=yg(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&&Nt.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 Ba(i,t),i}function gg(e,t){const l={type:"root",children:Bs(e,t.children)};return Ba(l,t),l}function Eg(e,t){const l={type:"text",value:typeof t.value=="string"?t.value:""};return Ba(l,t),l}function Bs(e,t){const a=[];if(Array.isArray(t)){const l=t;let n=-1;for(;++n<l.length;){const r=Ms(e,l[n]);r&&(Array.isArray(r)?a.push(...r):a.push(r))}}return a}function yg(e,t){const a=e.stack[e.stack.length-1],l=e.schema.attributes,n=e.schema.required,r=l&&Nt.call(l,a)?l[a]:void 0,i=l&&Nt.call(l,"*")?l["*"]:void 0,u=t&&typeof t=="object"?t:{},s={};let o;for(o in u)if(Nt.call(u,o)){const c=u[o];let d=Fs(e,Hs(r,o),o,c);d==null&&(d=Fs(e,Hs(i,o),o,c)),d!=null&&(s[o]=d)}if(n&&Nt.call(n,a)){const c=n[a];for(o in c)Nt.call(c,o)&&!Nt.call(s,o)&&(s[o]=c[o])}return s}function Fs(e,t,a,l){return t?Array.isArray(l)?Tg(e,t,a,l):Rs(e,t,a,l):void 0}function Tg(e,t,a,l){let n=-1;const r=[];for(;++n<l.length;){const i=Rs(e,t,a,l[n]);(typeof i=="number"||typeof i=="string")&&r.push(i)}return r}function Rs(e,t,a,l){if(!(typeof l!="boolean"&&typeof l!="number"&&typeof l!="string")&&xg(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 xg(e,t,a){const l=e.schema.protocols&&Nt.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 Ba(e,t){const a=Oi(t);t.data&&(e.data=Rt(t.data)),a&&(e.position=a)}function Hs(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 Kn(e){return function(t){return hg(t,e)}}function $s(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 Cg=["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"],Us={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 qs(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function Sg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ag(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function zs(e){return Ag(e)||qs(e)}const wg=["","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 Qn(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,d=(s?s.column:0)||1,m=E(),f;for(r--;++r<=e.length;)if(f===10&&(d=(o?o[i]:0)||1),f=e.charCodeAt(r),f===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(f),d++;continue}const g=r+1;let y=g,S=g,_;if(v===35){S=++y;const D=e.charCodeAt(S);D===88||D===120?(_="hexadecimal",S=++y):_="decimal"}else _="named";let w="",P="",L="";const T=_==="named"?zs:_==="decimal"?qs:Sg;for(S--;++S<=e.length;){const D=e.charCodeAt(S);if(!T(D))break;L+=String.fromCharCode(D),_==="named"&&Cg.includes(L)&&(w=L,P=ga(L))}let A=e.charCodeAt(S)===59;if(A){S++;const D=_==="named"?ga(L):!1;D&&(w=L,P=D)}let x=1+S-g,k="";if(!(!A&&a.nonTerminated===!1))if(!L)_!=="named"&&b(4,x);else if(_==="named"){if(A&&!P)b(5,1);else if(w!==L&&(S=y+w.length,x=1+S-y,A=!1),!A){const D=w?1:3;if(a.attribute){const I=e.charCodeAt(S);I===61?(b(D,x),P=""):zs(I)?P="":b(D,x)}else b(D,x)}k=P}else{A||b(2,x);let D=Number.parseInt(L,_==="hexadecimal"?16:10);if(_g(D))b(7,x),k="�";else if(D in Us)b(6,x),k=Us[D];else{let I="";kg(D)&&b(6,x),D>65535&&(D-=65536,I+=String.fromCharCode(D>>>10|55296),D=56320|D&1023),k=I+String.fromCharCode(D)}}if(k){h(),m=E(),r=S-1,d+=S-g+1,n.push(k);const D=E();D.offset++,a.reference&&a.reference.call(a.referenceContext||void 0,k,{start:m,end:D},e.slice(g-1,S)),m=D}else L=e.slice(g-1,S),u+=L,d+=L.length,r=S-1}else f===10&&(c++,i++,d=0),Number.isNaN(f)?h():(u+=String.fromCharCode(f),d++);return n.join("");function E(){return{line:c,column:d,offset:r+((s?s.offset:0)||0)}}function b(v,g){let y;a.warning&&(y=E(),y.column+=g,y.offset+=g,a.warning.call(a.warningContext||void 0,wg[v],y,v))}function h(){u&&(n.push(u),a.text&&a.text.call(a.textContext||void 0,u,{start:m,end:E()}),u="")}}function _g(e){return e>=55296&&e<=57343||e>1114111}function kg(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 Ng=/["&'<>`]/g,Ig=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Og=/[|\\{}()[\]^$+*?.]/g,Vs=new WeakMap;function Dg(e,t){if(e=e.replace(t.subset?Pg(t.subset):Ng,l),t.subset||t.escapeOnly)return e;return e.replace(Ig,a).replace(Lg,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 Pg(e){let t=Vs.get(e);return t||(t=Mg(e),Vs.set(e,t)),t}function Mg(e){const t=[];let a=-1;for(;++a<e.length;)t.push(e[a].replace(Og,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Bg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Fg(e,t){return Dg(e,Object.assign({format:Bg},t))}const Rg={}.hasOwnProperty,Hg={},Gs=/^[^\t\n\r "#'.<=>`}]+$/,$g=/^[^\t\n\r "'<=>`}]+$/;function Ug(){return{canContainEols:["textDirective"],enter:{directiveContainer:zg,directiveContainerAttributes:er,directiveContainerLabel:Yg,directiveLeaf:Vg,directiveLeafAttributes:er,directiveText:Gg,directiveTextAttributes:er},exit:{directiveContainer:ir,directiveContainerAttributeClassValue:ar,directiveContainerAttributeIdValue:tr,directiveContainerAttributeName:nr,directiveContainerAttributeValue:lr,directiveContainerAttributes:rr,directiveContainerLabel:Wg,directiveContainerName:Zn,directiveLeaf:ir,directiveLeafAttributeClassValue:ar,directiveLeafAttributeIdValue:tr,directiveLeafAttributeName:nr,directiveLeafAttributeValue:lr,directiveLeafAttributes:rr,directiveLeafName:Zn,directiveText:ir,directiveTextAttributeClassValue:ar,directiveTextAttributeIdValue:tr,directiveTextAttributeName:nr,directiveTextAttributeValue:lr,directiveTextAttributes:rr,directiveTextName:Zn}}}function qg(e){const t=Hg;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return a.peek=jg,{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=
|
|
54
|
+
`}),a}function wu(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function _u(e,t){const a=Ab(e,t),l=a.one(e,void 0),n=bb(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 Ib(e,t){return e&&"run"in e?async function(a,l){const n=_u(a,{file:l,...t});await e.run(n,l)}:function(a,l){return _u(a,{file:l,...e||t})}}function ku(e){if(e)throw e}var Cn,Nu;function Lb(){if(Nu)return Cn;Nu=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"),d=o.constructor&&o.constructor.prototype&&e.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!c&&!d)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 Cn=function s(){var o,c,d,m,f,E,b=arguments[0],h=1,v=arguments.length,g=!1;for(typeof b=="boolean"&&(g=b,b=arguments[1]||{},h=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});h<v;++h)if(o=arguments[h],o!=null)for(c in o)d=u(b,c),m=u(o,c),b!==m&&(g&&m&&(r(m)||(f=n(m)))?(f?(f=!1,E=d&&n(d)?d:[]):E=d&&r(d)?d:{},i(b,{name:c,newValue:s(g,E,m)})):typeof m<"u"&&i(b,{name:c,newValue:m}));return b},Cn}var Ob=Lb();const Sn=ln(Ob);function An(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 Db(){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 d=-1;if(s){i(s);return}for(;++d<n.length;)(o[d]===null||o[d]===void 0)&&(o[d]=n[d]);n=o,c?Pb(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 Pb(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 dt={basename:Mb,dirname:Bb,extname:Fb,join:Rb,sep:"/"};function Mb(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ca(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 Bb(e){if(Ca(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 Fb(e){Ca(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 Rb(...e){let t=-1,a;for(;++t<e.length;)Ca(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":Hb(a)}function Hb(e){Ca(e);const t=e.codePointAt(0)===47;let a=$b(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function $b(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 Ca(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ub={cwd:qb};function qb(){return"/"}function wn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zb(e){if(typeof e=="string")e=new URL(e);else if(!wn(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 Vb(e)}function Vb(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 _n=["history","path","basename","stem","extname","dirname"];class Iu{constructor(t){let a;t?wn(t)?a={path:t}:typeof t=="string"||Gb(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":Ub.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<_n.length;){const r=_n[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)_n.includes(n)||(this[n]=a[n])}get basename(){return typeof this.path=="string"?dt.basename(this.path):void 0}set basename(t){Nn(t,"basename"),kn(t,"basename"),this.path=dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?dt.dirname(this.path):void 0}set dirname(t){Lu(this.basename,"dirname"),this.path=dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?dt.extname(this.path):void 0}set extname(t){if(kn(t,"extname"),Lu(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=dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wn(t)&&(t=zb(t)),Nn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?dt.basename(this.path,this.extname):void 0}set stem(t){Nn(t,"stem"),kn(t,"stem"),this.path=dt.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 qe(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 kn(e,t){if(e&&e.includes(dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+dt.sep+"`")}function Nn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Lu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yb=function(e){const l=this.constructor.prototype,n=l[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,l),r},Wb={}.hasOwnProperty;class In extends Yb{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=Db()}copy(){const t=new In;let a=-1;for(;++a<this.attachers.length;){const l=this.attachers[a];t.use(...l)}return t.data(Sn(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(Dn("data",this.frozen),this.namespace[t]=a,this):Wb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Dn("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=bl(t),l=this.parser||this.Parser;return Ln("parse",l),l(String(a),a)}process(t,a){const l=this;return this.freeze(),Ln("process",this.parser||this.Parser),On("process",this.compiler||this.Compiler),a?n(void 0,a):new Promise(n);function n(r,i){const u=bl(t),s=l.parse(u);l.run(s,u,function(c,d,m){if(c||!d||!m)return o(c);const f=d,E=l.stringify(f,m);Kb(E)?m.value=E:m.result=E,o(c,m)});function o(c,d){c||!d?i(c):r?r(d):a(void 0,d)}}}processSync(t){let a=!1,l;return this.freeze(),Ln("processSync",this.parser||this.Parser),On("processSync",this.compiler||this.Compiler),this.process(t,n),Du("processSync","process",a),l;function n(r,i){a=!0,ku(r),l=i}}run(t,a,l){Ou(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=bl(a);n.run(t,s,o);function o(c,d,m){const f=d||t;c?u(c):i?i(f):l(void 0,f,m)}}}runSync(t,a){let l=!1,n;return this.run(t,a,r),Du("runSync","run",l),n;function r(i,u){ku(i),n=u,l=!0}}stringify(t,a){this.freeze();const l=bl(a),n=this.compiler||this.Compiler;return On("stringify",n),Ou(t),n(t,l)}use(t,...a){const l=this.attachers,n=this.namespace;if(Dn("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,...d]=o;s(c,d)}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=Sn(!0,n.settings,o.settings))}function u(o){let c=-1;if(o!=null)if(Array.isArray(o))for(;++c<o.length;){const d=o[c];r(d)}else throw new TypeError("Expected a list of plugins, not `"+o+"`")}function s(o,c){let d=-1,m=-1;for(;++d<l.length;)if(l[d][0]===o){m=d;break}if(m===-1)l.push([o,...c]);else if(c.length>0){let[f,...E]=c;const b=l[m][1];An(b)&&An(f)&&(f=Sn(!0,b,f)),l[m]=[o,f,...E]}}}}const jb=new In().freeze();function Ln(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function On(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dn(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 Ou(e){if(!An(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Du(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bl(e){return Xb(e)?e:new Iu(e)}function Xb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Kb(e){return typeof e=="string"||Qb(e)}function Qb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Jb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pu=[],Mu={allowDangerousHtml:!0},Zb=/^(https?|ircs?|mailto|xmpp)$/i,em=[{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 Pn(e){const t=tm(e),a=am(e);return lm(t.runSync(t.parse(a),a),e)}function tm(e){const t=e.rehypePlugins||Pu,a=e.remarkPlugins||Pu,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Mu}:Mu;return jb().use(Bh).use(a).use(Ib,l).use(t)}function am(e){const t=e.children||"",a=new Iu;return typeof t=="string"&&(a.value=t),a}function lm(e,t){const a=t.allowedElements,l=t.allowElement,n=t.components,r=t.disallowedElements,i=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||nm;for(const c of em)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Jb+c.id,void 0);return hl(e,o),wf(e,{Fragment:q.Fragment,components:n,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function o(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return i?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let f;for(f in cn)if(Object.hasOwn(cn,f)&&Object.hasOwn(c.properties,f)){const E=c.properties[f],b=cn[f];(b===null||b.includes(c.tagName))&&(c.properties[f]=s(String(E||""),f,c))}}if(c.type==="element"){let f=a?!a.includes(c.tagName):r?r.includes(c.tagName):!1;if(!f&&l&&typeof d=="number"&&(f=!l(c,d,m)),f&&m&&typeof d=="number")return u&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function nm(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||Zb.test(e.slice(0,t))?e:""}const Bu=/[#.]/g;function rm(e,t){const a=e||"",l={};let n=0,r,i;for(;n<a.length;){Bu.lastIndex=n;const u=Bu.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 Fu(e,t,a){const l=a?om(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=rm(r,t);const o=s.tagName.toLowerCase(),c=l?l.get(o):void 0;if(s.tagName=c||o,im(i))u.unshift(i);else for(const[d,m]of Object.entries(i))um(e,s.properties,d,m)}for(const o of u)Mn(s.children,o);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return n}function im(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 um(e,t,a,l){const n=rl(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=wi(l):n.commaSeparated?r=pi(l):n.commaOrSpaceSeparated?r=wi(pi(l).join(" ")):r=Ru(n,n.property,l):Array.isArray(l)?r=[...l]:r=n.property==="style"?sm(l):String(l);if(Array.isArray(r)){const i=[];for(const u of r)i.push(Ru(n,n.property,u));r=i}n.property==="className"&&Array.isArray(t.className)&&(r=t.className.concat(r)),t[n.property]=r}}function Mn(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)Mn(e,a);else if(typeof t=="object"&&"type"in t)t.type==="root"?Mn(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ru(e,t,a){if(typeof a=="string"){if(e.number&&a&&!Number.isNaN(Number(a)))return Number(a);if((e.boolean||e.overloadedBoolean)&&(a===""||da(a)===da(t)))return!0}return a}function sm(e){const t=[];for(const[a,l]of Object.entries(e))t.push([a,l].join(": "));return t.join("; ")}function om(e){const t=new Map;for(const a of e)t.set(a.toLowerCase(),a);return t}const cm=["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"],dm=Fu(fa,"div"),fm=Fu(Ct,"g",cm);function pm(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=Hu(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=Hu(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 Hu(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 Rt={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/"},$u={}.hasOwnProperty,hm=Object.prototype;function bm(e,t){const a=t||{};return Bn({file:a.file||void 0,location:!1,schema:a.space==="svg"?Ct:fa,verbose:a.verbose||!1},e)}function Bn(e,t){let a;switch(t.nodeName){case"#comment":{const l=t;return a={type:"comment",value:l.data},ml(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:Uu(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){const r=String(e.file),i=pm(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"},ml(e,l,a),a}case"#text":{const l=t;return a={type:"text",value:l.value},ml(e,l,a),a}default:return a=mm(e,t),a}}function Uu(e,t){let a=-1;const l=[];for(;++a<t.length;){const n=Bn(e,t[a]);l.push(n)}return l}function mm(e,t){const a=e.schema;e.schema=t.namespaceURI===Rt.svg?Ct:fa;let l=-1;const n={};for(;++l<t.attrs.length;){const u=t.attrs[l],s=(u.prefix?u.prefix+":":"")+u.name;$u.call(hm,s)||(n[s]=u.value)}const i=(e.schema.space==="svg"?fm:dm)(t.tagName,n,Uu(e,t.childNodes));if(ml(e,t,i),i.tagName==="template"){const u=t,s=u.sourceCodeLocation,o=s&&s.startTag&&Zt(s.startTag),c=s&&s.endTag&&Zt(s.endTag),d=Bn(e,u.content);o&&c&&e.file&&(d.position={start:o.end,end:c.start}),i.content=d}return e.schema=a,i}function ml(e,t,a){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const l=vm(e,a,t.sourceCodeLocation);l&&(e.location=!0,a.position=l)}}function vm(e,t,a){const l=Zt(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)$u.call(a.attrs,i)&&(r[rl(e.schema,i).property]=Zt(a.attrs[i]));a.startTag;const u=Zt(a.startTag),s=a.endTag?Zt(a.endTag):void 0,o={opening:u};s&&(o.closing=s),o.properties=r,t.data={position:o}}}return l}function Zt(e){const t=qu({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=qu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||a?{start:t,end:a}:void 0}function qu(e){return e.line&&e.column?e:void 0}const zu={}.hasOwnProperty;function Vu(e,t){const a=t||{};function l(n,...r){let i=l.invalid;const u=l.handlers;if(n&&zu.call(n,e)){const s=String(n[e]);i=zu.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 gm={},Em={}.hasOwnProperty,Gu=Vu("type",{handlers:{root:Tm,element:wm,text:Sm,comment:Am,doctype:Cm}});function ym(e,t){const l=(t||gm).space;return Gu(e,l==="svg"?Ct:fa)}function Tm(e,t){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=Fn(e.children,a,t),ea(e,a),a}function xm(e,t){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=Fn(e.children,a,t),ea(e,a),a}function Cm(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ea(e,t),t}function Sm(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ea(e,t),t}function Am(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ea(e,t),t}function wm(e,t){const a=t;let l=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(l=Ct);const n=[];let r;if(e.properties){for(r in e.properties)if(r!=="children"&&Em.call(e.properties,r)){const s=_m(l,r,e.properties[r]);s&&n.push(s)}}const i=l.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:n,namespaceURI:Rt[i],childNodes:[],parentNode:null};return u.childNodes=Fn(e.children,u,l),ea(e,u),e.tagName==="template"&&e.content&&(u.content=xm(e.content,l)),u}function _m(e,t,a){const l=rl(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?hi(a):_i(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=Rt[l.space]}return n}function Fn(e,t,a){let l=-1;const n=[];if(e)for(;++l<e.length;){const r=Gu(e[l],a);r.parentNode=t,n.push(r)}return n}function ea(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 km=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Nm=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]),Ie="�";var M;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(M||(M={}));const Xe={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Yu(e){return e>=55296&&e<=57343}function Im(e){return e>=56320&&e<=57343}function Lm(e,t){return(e-55296)*1024+9216+t}function Wu(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ju(e){return e>=64976&&e<=65007||Nm.has(e)}var j;(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"})(j||(j={}));const Om=65536;class Dm{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Om,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,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(Im(a))return this.pos++,this._addGap(),Lm(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(j.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,M.EOF;const l=this.html.charCodeAt(a);return l===M.CARRIAGE_RETURN?M.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,M.EOF;let t=this.html.charCodeAt(this.pos);return t===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):t===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Yu(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===M.LINE_FEED||t===M.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Wu(t)?this._err(j.controlCharacterInInputStream):ju(t)&&this._err(j.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ge;(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"})(ge||(ge={}));function Xu(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 Pm=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))),Mm=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=Mm.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 Fm=32;var wt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wt||(wt={}));function Rn(e){return e>=Be.ZERO&&e<=Be.NINE}function Rm(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function Hm(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||Rn(e)}function $m(e){return e===Be.EQUALS||Hm(e)}var Fe;(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"})(Fe||(Fe={}));var vt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(vt||(vt={}));class Um{constructor(t,a,l){this.decodeTree=t,this.emitCodePoint=a,this.errors=l,this.state=Fe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vt.Strict}startEntity(t){this.decodeMode=t,this.state=Fe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case Fe.EntityStart:return t.charCodeAt(a)===Be.NUM?(this.state=Fe.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=Fe.NamedEntity,this.stateNamedEntity(t,a));case Fe.NumericStart:return this.stateNumericStart(t,a);case Fe.NumericDecimal:return this.stateNumericDecimal(t,a);case Fe.NumericHex:return this.stateNumericHex(t,a);case Fe.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|Fm)===Be.LOWER_X?(this.state=Fe.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=Fe.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(Rn(n)||Rm(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(Rn(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===vt.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,a){const{decodeTree:l}=this;let n=l[this.treeIndex],r=(n&wt.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){const i=t.charCodeAt(a);if(this.treeIndex=qm(l,n,this.treeIndex+Math.max(1,r),i),this.treeIndex<0)return this.result===0||this.decodeMode===vt.Attribute&&(r===0||$m(i))?0:this.emitNotTerminatedNamedEntity();if(n=l[this.treeIndex],r=(n&wt.VALUE_LENGTH)>>14,r!==0){if(i===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==vt.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]&wt.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]&~wt.VALUE_LENGTH:n[t+1],l),a===3&&this.emitCodePoint(n[t+2],l),l}end(){var t;switch(this.state){case Fe.NamedEntity:return this.result!==0&&(this.decodeMode!==vt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fe.NumericDecimal:return this.emitNumericEntity(0,2);case Fe.NumericHex:return this.emitNumericEntity(0,3);case Fe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fe.EntityStart:return 0}}}function qm(e,t,a,l){const n=(t&wt.BRANCH_LENGTH)>>7,r=t&wt.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 J;(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/"})(J||(J={}));var Ht;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ht||(Ht={}));var tt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tt||(tt={}));var V;(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"})(V||(V={}));var p;(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"})(p||(p={}));const zm=new Map([[V.A,p.A],[V.ADDRESS,p.ADDRESS],[V.ANNOTATION_XML,p.ANNOTATION_XML],[V.APPLET,p.APPLET],[V.AREA,p.AREA],[V.ARTICLE,p.ARTICLE],[V.ASIDE,p.ASIDE],[V.B,p.B],[V.BASE,p.BASE],[V.BASEFONT,p.BASEFONT],[V.BGSOUND,p.BGSOUND],[V.BIG,p.BIG],[V.BLOCKQUOTE,p.BLOCKQUOTE],[V.BODY,p.BODY],[V.BR,p.BR],[V.BUTTON,p.BUTTON],[V.CAPTION,p.CAPTION],[V.CENTER,p.CENTER],[V.CODE,p.CODE],[V.COL,p.COL],[V.COLGROUP,p.COLGROUP],[V.DD,p.DD],[V.DESC,p.DESC],[V.DETAILS,p.DETAILS],[V.DIALOG,p.DIALOG],[V.DIR,p.DIR],[V.DIV,p.DIV],[V.DL,p.DL],[V.DT,p.DT],[V.EM,p.EM],[V.EMBED,p.EMBED],[V.FIELDSET,p.FIELDSET],[V.FIGCAPTION,p.FIGCAPTION],[V.FIGURE,p.FIGURE],[V.FONT,p.FONT],[V.FOOTER,p.FOOTER],[V.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[V.FORM,p.FORM],[V.FRAME,p.FRAME],[V.FRAMESET,p.FRAMESET],[V.H1,p.H1],[V.H2,p.H2],[V.H3,p.H3],[V.H4,p.H4],[V.H5,p.H5],[V.H6,p.H6],[V.HEAD,p.HEAD],[V.HEADER,p.HEADER],[V.HGROUP,p.HGROUP],[V.HR,p.HR],[V.HTML,p.HTML],[V.I,p.I],[V.IMG,p.IMG],[V.IMAGE,p.IMAGE],[V.INPUT,p.INPUT],[V.IFRAME,p.IFRAME],[V.KEYGEN,p.KEYGEN],[V.LABEL,p.LABEL],[V.LI,p.LI],[V.LINK,p.LINK],[V.LISTING,p.LISTING],[V.MAIN,p.MAIN],[V.MALIGNMARK,p.MALIGNMARK],[V.MARQUEE,p.MARQUEE],[V.MATH,p.MATH],[V.MENU,p.MENU],[V.META,p.META],[V.MGLYPH,p.MGLYPH],[V.MI,p.MI],[V.MO,p.MO],[V.MN,p.MN],[V.MS,p.MS],[V.MTEXT,p.MTEXT],[V.NAV,p.NAV],[V.NOBR,p.NOBR],[V.NOFRAMES,p.NOFRAMES],[V.NOEMBED,p.NOEMBED],[V.NOSCRIPT,p.NOSCRIPT],[V.OBJECT,p.OBJECT],[V.OL,p.OL],[V.OPTGROUP,p.OPTGROUP],[V.OPTION,p.OPTION],[V.P,p.P],[V.PARAM,p.PARAM],[V.PLAINTEXT,p.PLAINTEXT],[V.PRE,p.PRE],[V.RB,p.RB],[V.RP,p.RP],[V.RT,p.RT],[V.RTC,p.RTC],[V.RUBY,p.RUBY],[V.S,p.S],[V.SCRIPT,p.SCRIPT],[V.SEARCH,p.SEARCH],[V.SECTION,p.SECTION],[V.SELECT,p.SELECT],[V.SOURCE,p.SOURCE],[V.SMALL,p.SMALL],[V.SPAN,p.SPAN],[V.STRIKE,p.STRIKE],[V.STRONG,p.STRONG],[V.STYLE,p.STYLE],[V.SUB,p.SUB],[V.SUMMARY,p.SUMMARY],[V.SUP,p.SUP],[V.TABLE,p.TABLE],[V.TBODY,p.TBODY],[V.TEMPLATE,p.TEMPLATE],[V.TEXTAREA,p.TEXTAREA],[V.TFOOT,p.TFOOT],[V.TD,p.TD],[V.TH,p.TH],[V.THEAD,p.THEAD],[V.TITLE,p.TITLE],[V.TR,p.TR],[V.TRACK,p.TRACK],[V.TT,p.TT],[V.U,p.U],[V.UL,p.UL],[V.SVG,p.SVG],[V.VAR,p.VAR],[V.WBR,p.WBR],[V.XMP,p.XMP]]);function ta(e){var t;return(t=zm.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const Z=p,Vm={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Hn=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);V.STYLE,V.SCRIPT,V.XMP,V.IFRAME,V.NOEMBED,V.NOFRAMES,V.PLAINTEXT;var H;(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"})(H||(H={}));const De={DATA:H.DATA,RCDATA:H.RCDATA,RAWTEXT:H.RAWTEXT,SCRIPT_DATA:H.SCRIPT_DATA,PLAINTEXT:H.PLAINTEXT,CDATA_SECTION:H.CDATA_SECTION};function Gm(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function Sa(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function Ym(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function _t(e){return Ym(e)||Sa(e)}function Ku(e){return _t(e)||Gm(e)}function vl(e){return e+32}function Qu(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function Ju(e){return Qu(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function Wm(e){return e===M.NULL?j.nullCharacterReference:e>1114111?j.characterReferenceOutsideUnicodeRange:Yu(e)?j.surrogateCharacterReference:ju(e)?j.noncharacterCharacterReference:Wu(e)||e===M.CARRIAGE_RETURN?j.controlCharacterReference:null}class jm{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=H.DATA,this.returnState=H.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Dm(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Um(Pm,(l,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(l)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(j.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:l=>{this._err(j.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+l)},validateNumericCharacterReference:l=>{const n=Wm(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:ge.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ge.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ge.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ge.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(Xu(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(j.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=ta(t.tagName),t.type===ge.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(j.endTagWithAttributes),t.selfClosing&&this._err(j.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 ge.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ge.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ge.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:ge.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=Qu(t)?ge.WHITESPACE_CHARACTER:t===M.NULL?ge.NULL_CHARACTER:ge.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ge.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=H.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?vt.Attribute:vt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===H.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===H.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===H.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case H.DATA:{this._stateData(t);break}case H.RCDATA:{this._stateRcdata(t);break}case H.RAWTEXT:{this._stateRawtext(t);break}case H.SCRIPT_DATA:{this._stateScriptData(t);break}case H.PLAINTEXT:{this._statePlaintext(t);break}case H.TAG_OPEN:{this._stateTagOpen(t);break}case H.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case H.TAG_NAME:{this._stateTagName(t);break}case H.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case H.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case H.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case H.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case H.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case H.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case H.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case H.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case H.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case H.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case H.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case H.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case H.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case H.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case H.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case H.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case H.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case H.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case H.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case H.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case H.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case H.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case H.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case H.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case H.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case H.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case H.BOGUS_COMMENT:{this._stateBogusComment(t);break}case H.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case H.COMMENT_START:{this._stateCommentStart(t);break}case H.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case H.COMMENT:{this._stateComment(t);break}case H.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case H.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case H.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case H.COMMENT_END:{this._stateCommentEnd(t);break}case H.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case H.DOCTYPE:{this._stateDoctype(t);break}case H.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case H.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case H.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case H.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case H.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case H.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case H.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case H.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case H.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case H.CDATA_SECTION:{this._stateCdataSection(t);break}case H.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case H.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case H.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case H.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=H.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitCodePoint(t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=H.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Ie);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case M.LESS_THAN_SIGN:{this.state=H.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Ie);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Ie);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Ie);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_t(t))this._createStartTagToken(),this.state=H.TAG_NAME,this._stateTagName(t);else switch(t){case M.EXCLAMATION_MARK:{this.state=H.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=H.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(j.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t);break}case M.EOF:{this._err(j.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=H.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_t(t))this._createEndTagToken(),this.state=H.TAG_NAME,this._stateTagName(t);else switch(t){case M.GREATER_THAN_SIGN:{this._err(j.missingEndTagName),this.state=H.DATA;break}case M.EOF:{this._err(j.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(j.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=H.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.tagName+=Ie;break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(Sa(t)?vl(t):t)}}_stateRcdataLessThanSign(t){t===M.SOLIDUS?this.state=H.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=H.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_t(t)?(this.state=H.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=H.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 M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=H.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=H.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=H.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===M.SOLIDUS?this.state=H.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_t(t)?(this.state=H.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case M.SOLIDUS:{this.state=H.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=H.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=H.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_t(t)?(this.state=H.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===M.HYPHEN_MINUS?(this.state=H.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===M.HYPHEN_MINUS?(this.state=H.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=H.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Ie);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=H.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===M.SOLIDUS?this.state=H.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_t(t)?(this._emitChars("<"),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_t(t)?(this.state=H.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Xe.SCRIPT,!1)&&Ju(this.preprocessor.peek(Xe.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<Xe.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=H.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this._emitChars(Ie);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=H.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case M.EOF:{this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===M.SOLIDUS?(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Xe.SCRIPT,!1)&&Ju(this.preprocessor.peek(Xe.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a<Xe.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=H.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=H.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=H.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._err(j.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=H.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=H.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=H.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=H.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(j.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(Sa(t)?vl(t):t)}}_stateAfterAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=H.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=H.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=H.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=H.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=H.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingAttributeValue),this.state=H.DATA,this.emitCurrentTagToken();break}default:this.state=H.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case M.QUOTATION_MARK:{this.state=H.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case M.APOSTROPHE:{this.state=H.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=H.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=H.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(j.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(j.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=H.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=H.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=H.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBetweenAttributes),this.state=H.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case M.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=H.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(j.eofInTag),this._emitEOFToken();break}default:this._err(j.unexpectedSolidusInTag),this.state=H.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const a=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentComment(a);break}case M.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.data+=Ie;break}default:a.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Xe.DASH_DASH,!0)?(this._createCommentToken(Xe.DASH_DASH.length+1),this.state=H.COMMENT_START):this._consumeSequenceIfMatch(Xe.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Xe.DOCTYPE.length+1),this.state=H.DOCTYPE):this._consumeSequenceIfMatch(Xe.CDATA_START,!0)?this.inForeignNode?this.state=H.CDATA_SECTION:(this._err(j.cdataInHtmlContent),this._createCommentToken(Xe.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=H.BOGUS_COMMENT):this._ensureHibernation()||(this._err(j.incorrectlyOpenedComment),this._createCommentToken(2),this.state=H.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=H.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=H.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptClosingOfEmptyComment),this.state=H.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=H.COMMENT,this._stateComment(t)}}_stateComment(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{a.data+="<",this.state=H.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.data+=Ie;break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const a=this.currentToken;switch(t){case M.EXCLAMATION_MARK:{a.data+="!",this.state=H.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=H.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===M.HYPHEN_MINUS?this.state=H.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=H.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===M.HYPHEN_MINUS?this.state=H.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=H.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==M.GREATER_THAN_SIGN&&t!==M.EOF&&this._err(j.nestedComment),this.state=H.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=H.COMMENT_END;break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=H.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const a=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentComment(a);break}case M.EXCLAMATION_MARK:{this.state=H.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{a.data+="-";break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=H.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const a=this.currentToken;switch(t){case M.HYPHEN_MINUS:{a.data+="--!",this.state=H.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(j.incorrectlyClosedComment),this.state=H.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(j.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=H.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=H.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case M.EOF:{this._err(j.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingWhitespaceBeforeDoctypeName),this.state=H.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Sa(t))this._createDoctypeToken(String.fromCharCode(vl(t))),this.state=H.DOCTYPE_NAME;else switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(j.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=H.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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=H.DOCTYPE_NAME}}_stateDoctypeName(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.name+=Ie;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(Sa(t)?vl(t):t)}}_stateAfterDoctypeName(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Xe.PUBLIC,!1)?this.state=H.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xe.SYSTEM,!1)?this.state=H.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(j.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.publicId="",this.state=H.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.publicId+=Ie;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.APOSTROPHE:{this.state=H.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.publicId+=Ie;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.QUOTATION_MARK:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.QUOTATION_MARK:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=H.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(j.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const a=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=H.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(j.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const a=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.systemId+=Ie;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.APOSTROPHE:{this.state=H.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(j.unexpectedNullCharacter),a.systemId+=Ie;break}case M.GREATER_THAN_SIGN:{this._err(j.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.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 M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.EOF:{this._err(j.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(j.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=H.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const a=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=H.DATA;break}case M.NULL:{this._err(j.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case M.RIGHT_SQUARE_BRACKET:{this.state=H.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(j.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===M.RIGHT_SQUARE_BRACKET?this.state=H.CDATA_SECTION_END:(this._emitChars("]"),this.state=H.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case M.GREATER_THAN_SIGN:{this.state=H.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=H.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ku(this.preprocessor.peek(1))?H.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ku(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===M.SEMICOLON&&this._err(j.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Zu=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),es=new Set([...Zu,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),gl=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),Xm=new Set([...gl,p.OL,p.UL]),Km=new Set([...gl,p.BUTTON]),ts=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),as=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),Qm=new Set([p.TR,p.TEMPLATE,p.HTML]),Jm=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),Zm=new Set([p.TABLE,p.TEMPLATE,p.HTML]),e0=new Set([p.TD,p.TH]);class t0{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=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.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])!==J.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(Hn,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(e0,J.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(Zm,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Jm,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Qm,J.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]===p.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]===p.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 J.HTML:{if(n===t)return!0;if(a.has(n))return!1;break}case J.SVG:{if(as.has(n))return!1;break}case J.MATHML:{if(ts.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,gl)}hasInListItemScope(t){return this.hasInDynamicScope(t,Xm)}hasInButtonScope(t){return this.hasInDynamicScope(t,Km)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(Hn.has(a))return!0;if(gl.has(a))return!1;break}case J.SVG:{if(as.has(a))return!1;break}case J.MATHML:{if(ts.has(a))return!1;break}}}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===J.HTML)switch(this.tagIDs[a]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===J.HTML)switch(this.tagIDs[a]){case t:return!0;case p.OPTION:case p.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&&es.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&es.has(this.currentTagId);)this.pop()}}const $n=3;var ft;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ft||(ft={}));const ls={type:ft.Marker};class a0{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===ft.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<$n)return;const a=this.treeAdapter.getAttrList(t),l=this._getNoahArkConditionCandidates(t,a);if(l.length<$n)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>=$n&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(ls)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:ft.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const l=this.entries.indexOf(this.bookmark);this.entries.splice(l,0,{type:ft.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(ls);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const a=this.entries.find(l=>l.type===ft.Marker||this.treeAdapter.getTagName(l.element)===t);return a&&a.type===ft.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===ft.Element&&a.element===t)}}const kt={createDocument(){return{nodeName:"#document",mode:tt.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};kt.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(kt.isTextNode(a)){a.value+=t;return}}kt.appendChild(e,kt.createTextNode(t))},insertTextBefore(e,t,a){const l=e.childNodes[e.childNodes.indexOf(a)-1];l&&kt.isTextNode(l)?l.value+=t:kt.insertBefore(e,kt.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}}},ns="html",l0="about:legacy-compat",n0="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",rs=["+//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//"],r0=[...rs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],i0=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),is=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],u0=[...is,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function us(e,t){return t.some(a=>e.startsWith(a))}function s0(e){return e.name===ns&&e.publicId===null&&(e.systemId===null||e.systemId===l0)}function o0(e){if(e.name!==ns)return tt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===n0)return tt.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),i0.has(a))return tt.QUIRKS;let l=t===null?r0:rs;if(us(a,l))return tt.QUIRKS;if(l=t===null?is:u0,us(a,l))return tt.LIMITED_QUIRKS}return tt.NO_QUIRKS}const ss={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},c0="definitionurl",d0="definitionURL",f0=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])),p0=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),h0=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])),b0=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function m0(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:l})=>l===Ht.COLOR||l===Ht.SIZE||l===Ht.FACE)||b0.has(t)}function os(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===c0){e.attrs[t].name=d0;break}}function cs(e){for(let t=0;t<e.attrs.length;t++){const a=f0.get(e.attrs[t].name);a!=null&&(e.attrs[t].name=a)}}function Un(e){for(let t=0;t<e.attrs.length;t++){const a=p0.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 v0(e){const t=h0.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ta(e.tagName))}function g0(e,t){return t===J.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function E0(e,t,a){if(t===J.MATHML&&e===p.ANNOTATION_XML){for(let l=0;l<a.length;l++)if(a[l].name===Ht.ENCODING){const n=a[l].value.toLowerCase();return n===ss.TEXT_HTML||n===ss.APPLICATION_XML}}return t===J.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function y0(e,t,a,l){return(!l||l===J.HTML)&&E0(e,t,a)||(!l||l===J.MATHML)&&g0(e,t)}const T0="hidden",x0=8,C0=3;var U;(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"})(U||(U={}));const S0={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ds=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),fs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:kt,onParseError:null};class ps{constructor(t,a,l=null,n=null){this.fragmentContext=l,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.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={...fs,...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 jm(this.options,this),this.activeFormattingElements=new a0(this.treeAdapter),this.fragmentContextID=l?ta(this.treeAdapter.getTagName(l)):p.UNKNOWN,this._setContextModes(l??this.document,this.fragmentContextID),this.openElements=new t0(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={...fs,...a};t??(t=l.treeAdapter.createElement(V.TEMPLATE,J.HTML,[]));const n=l.treeAdapter.createElement("documentmock",J.HTML,[]),r=new this(l,n,t);return r.fragmentContextID===p.TEMPLATE&&r.tmplInsertionModeStack.unshift(U.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:S0,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)===J.HTML;this.currentNotInHTML=!l,this.tokenizer.inForeignNode=!l&&t!==void 0&&a!==void 0&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,J.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=De.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)===V.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=De.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=De.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=De.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=De.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,J.HTML,[]);this._attachElementToTree(l,null),this.openElements.push(l,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,J.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(V.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.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===ge.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===p.SVG&&this.treeAdapter.getTagName(a)===V.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&l!==void 0&&!this._isIntegrationPoint(l,a,J.HTML)}_processToken(t){switch(t.type){case ge.CHARACTER:{this.onCharacter(t);break}case ge.NULL_CHARACTER:{this.onNullCharacter(t);break}case ge.COMMENT:{this.onComment(t);break}case ge.DOCTYPE:{this.onDoctype(t);break}case ge.START_TAG:{this._processStartTag(t);break}case ge.END_TAG:{this.onEndTag(t);break}case ge.EOF:{this.onEof(t);break}case ge.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,l){const n=this.treeAdapter.getNamespaceURI(a),r=this.treeAdapter.getAttrList(a);return y0(t,n,r,l)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(n=>n.type===ft.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=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=U.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=U.IN_TABLE;return}case p.BODY:{this.insertionMode=U.IN_BODY;return}case p.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const l=this.openElements.tagIDs[a];if(l===p.TEMPLATE)break;if(l===p.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return ds.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 p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case p.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 Vm[l].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){eg(this,t);return}switch(this.insertionMode){case U.INITIAL:{Aa(this,t);break}case U.BEFORE_HTML:{wa(this,t);break}case U.BEFORE_HEAD:{_a(this,t);break}case U.IN_HEAD:{ka(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case U.AFTER_HEAD:{Ia(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{bs(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Gn(this,t);break}case U.IN_TABLE_TEXT:{Cs(this,t);break}case U.IN_COLUMN_GROUP:{Tl(this,t);break}case U.AFTER_BODY:{Sl(this,t);break}case U.AFTER_AFTER_BODY:{Al(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zv(this,t);return}switch(this.insertionMode){case U.INITIAL:{Aa(this,t);break}case U.BEFORE_HTML:{wa(this,t);break}case U.BEFORE_HEAD:{_a(this,t);break}case U.IN_HEAD:{ka(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case U.AFTER_HEAD:{Ia(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Gn(this,t);break}case U.IN_COLUMN_GROUP:{Tl(this,t);break}case U.AFTER_BODY:{Sl(this,t);break}case U.AFTER_AFTER_BODY:{Al(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){zn(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{zn(this,t);break}case U.IN_TABLE_TEXT:{Da(this,t);break}case U.AFTER_BODY:{L0(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{O0(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{D0(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,j.misplacedDoctype);break}case U.IN_TABLE_TEXT:{Da(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,j.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?tg(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{Aa(this,t);break}case U.BEFORE_HTML:{P0(this,t);break}case U.BEFORE_HEAD:{B0(this,t);break}case U.IN_HEAD:{lt(this,t);break}case U.IN_HEAD_NO_SCRIPT:{H0(this,t);break}case U.AFTER_HEAD:{U0(this,t);break}case U.IN_BODY:{ze(this,t);break}case U.IN_TABLE:{aa(this,t);break}case U.IN_TABLE_TEXT:{Da(this,t);break}case U.IN_CAPTION:{Fv(this,t);break}case U.IN_COLUMN_GROUP:{Yn(this,t);break}case U.IN_TABLE_BODY:{xl(this,t);break}case U.IN_ROW:{Cl(this,t);break}case U.IN_CELL:{$v(this,t);break}case U.IN_SELECT:{ws(this,t);break}case U.IN_SELECT_IN_TABLE:{qv(this,t);break}case U.IN_TEMPLATE:{Vv(this,t);break}case U.AFTER_BODY:{Yv(this,t);break}case U.IN_FRAMESET:{Wv(this,t);break}case U.AFTER_FRAMESET:{Xv(this,t);break}case U.AFTER_AFTER_BODY:{Qv(this,t);break}case U.AFTER_AFTER_FRAMESET:{Jv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ag(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{Aa(this,t);break}case U.BEFORE_HTML:{M0(this,t);break}case U.BEFORE_HEAD:{F0(this,t);break}case U.IN_HEAD:{R0(this,t);break}case U.IN_HEAD_NO_SCRIPT:{$0(this,t);break}case U.AFTER_HEAD:{q0(this,t);break}case U.IN_BODY:{yl(this,t);break}case U.TEXT:{_v(this,t);break}case U.IN_TABLE:{La(this,t);break}case U.IN_TABLE_TEXT:{Da(this,t);break}case U.IN_CAPTION:{Rv(this,t);break}case U.IN_COLUMN_GROUP:{Hv(this,t);break}case U.IN_TABLE_BODY:{Wn(this,t);break}case U.IN_ROW:{As(this,t);break}case U.IN_CELL:{Uv(this,t);break}case U.IN_SELECT:{_s(this,t);break}case U.IN_SELECT_IN_TABLE:{zv(this,t);break}case U.IN_TEMPLATE:{Gv(this,t);break}case U.AFTER_BODY:{Ns(this,t);break}case U.IN_FRAMESET:{jv(this,t);break}case U.AFTER_FRAMESET:{Kv(this,t);break}case U.AFTER_AFTER_BODY:{Al(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{Aa(this,t);break}case U.BEFORE_HTML:{wa(this,t);break}case U.BEFORE_HEAD:{_a(this,t);break}case U.IN_HEAD:{ka(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Na(this,t);break}case U.AFTER_HEAD:{Ia(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{Ts(this,t);break}case U.TEXT:{kv(this,t);break}case U.IN_TABLE_TEXT:{Da(this,t);break}case U.IN_TEMPLATE:{ks(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Vn(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===M.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{hs(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Gn(this,t);break}case U.IN_TABLE_TEXT:{xs(this,t);break}}}}function A0(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):ys(e,t),a}function w0(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 _0(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>=C0;!u||s?(s&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(i)):(i=k0(e,u),l===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(l),e.treeAdapter.appendChild(i,l),l=i)}return l}function k0(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 N0(e,t,a){const l=e.treeAdapter.getTagName(t),n=ta(l);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(a);else{const r=e.treeAdapter.getNamespaceURI(t);n===p.TEMPLATE&&r===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function I0(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 qn(e,t){for(let a=0;a<x0;a++){const l=A0(e,t);if(!l)break;const n=w0(e,l);if(!n)break;e.activeFormattingElements.bookmark=l;const r=_0(e,n,l.element),i=e.openElements.getCommonAncestor(l.element);e.treeAdapter.detachNode(r),i&&N0(e,i,r),I0(e,n,l)}}function zn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function L0(e,t){e._appendCommentNode(t,e.openElements.items[0])}function O0(e,t){e._appendCommentNode(t,e.document)}function Vn(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 D0(e,t){e._setDocumentType(t);const a=t.forceQuirks?tt.QUIRKS:o0(t);s0(t)||e._err(t,j.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=U.BEFORE_HTML}function Aa(e,t){e._err(t,j.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tt.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function P0(e,t){t.tagID===p.HTML?(e._insertElement(t,J.HTML),e.insertionMode=U.BEFORE_HEAD):wa(e,t)}function M0(e,t){const a=t.tagID;(a===p.HTML||a===p.HEAD||a===p.BODY||a===p.BR)&&wa(e,t)}function wa(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function B0(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:_a(e,t)}}function F0(e,t){const a=t.tagID;a===p.HEAD||a===p.BODY||a===p.HTML||a===p.BR?_a(e,t):e._err(t,j.endTagWithoutMatchingOpenElement)}function _a(e,t){e._insertFakeElement(V.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function lt(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,De.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,De.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,De.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,De.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case p.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:ka(e,t)}}function R0(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{ka(e,t);break}case p.TEMPLATE:{$t(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function $t(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,j.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,j.endTagWithoutMatchingOpenElement)}function ka(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function H0(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{lt(e,t);break}case p.NOSCRIPT:{e._err(t,j.nestedNoscriptInHead);break}default:Na(e,t)}}function $0(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case p.BR:{Na(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Na(e,t){const a=t.type===ge.EOF?j.openElementsLeftAfterEof:j.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function U0(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=U.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,j.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),lt(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,j.misplacedStartTagForHeadElement);break}default:Ia(e,t)}}function q0(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Ia(e,t);break}case p.TEMPLATE:{$t(e,t);break}default:e._err(t,j.endTagWithoutMatchingOpenElement)}}function Ia(e,t){e._insertFakeElement(V.BODY,p.BODY),e.insertionMode=U.IN_BODY,El(e,t)}function El(e,t){switch(t.type){case ge.CHARACTER:{bs(e,t);break}case ge.WHITESPACE_CHARACTER:{hs(e,t);break}case ge.COMMENT:{zn(e,t);break}case ge.START_TAG:{ze(e,t);break}case ge.END_TAG:{yl(e,t);break}case ge.EOF:{Ts(e,t);break}}}function hs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function bs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function z0(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function V0(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function G0(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_FRAMESET)}function Y0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function W0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Hn.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function j0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function X0(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),a||(e.formElement=e.openElements.current))}function K0(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===p.LI&&n===p.LI||(a===p.DD||a===p.DT)&&(n===p.DD||n===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==p.ADDRESS&&n!==p.DIV&&n!==p.P&&e._isSpecialElement(e.openElements.items[l],n))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Q0(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=De.PLAINTEXT}function J0(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Z0(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(V.A);a&&(qn(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ev(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function tv(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(qn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function av(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function lv(e,t){e.treeAdapter.getDocumentMode(e.document)!==tt.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function ms(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function vs(e){const t=Xu(e,Ht.TYPE);return t!=null&&t.toLowerCase()===T0}function nv(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),vs(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function rv(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function iv(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uv(e,t){t.tagName=V.IMG,t.tagID=p.IMG,ms(e,t)}function sv(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=De.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function ov(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,De.RAWTEXT)}function cv(e,t){e.framesetOk=!1,e._switchToTextParsing(t,De.RAWTEXT)}function gs(e,t){e._switchToTextParsing(t,De.RAWTEXT)}function dv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function fv(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function pv(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function hv(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,J.HTML)}function bv(e,t){e._reconstructActiveFormattingElements(),os(t),Un(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function mv(e,t){e._reconstructActiveFormattingElements(),cs(t),Un(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Es(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function ze(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{ev(e,t);break}case p.A:{Z0(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{W0(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{Y0(e,t);break}case p.LI:case p.DD:case p.DT:{K0(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{ms(e,t);break}case p.HR:{iv(e,t);break}case p.RB:case p.RTC:{pv(e,t);break}case p.RT:case p.RP:{hv(e,t);break}case p.PRE:case p.LISTING:{j0(e,t);break}case p.XMP:{ov(e,t);break}case p.SVG:{mv(e,t);break}case p.HTML:{z0(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{lt(e,t);break}case p.BODY:{V0(e,t);break}case p.FORM:{X0(e,t);break}case p.NOBR:{tv(e,t);break}case p.MATH:{bv(e,t);break}case p.TABLE:{lv(e,t);break}case p.INPUT:{nv(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{rv(e,t);break}case p.IMAGE:{uv(e,t);break}case p.BUTTON:{J0(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{av(e,t);break}case p.IFRAME:{cv(e,t);break}case p.SELECT:{dv(e,t);break}case p.OPTION:case p.OPTGROUP:{fv(e,t);break}case p.NOEMBED:case p.NOFRAMES:{gs(e,t);break}case p.FRAMESET:{G0(e,t);break}case p.TEXTAREA:{sv(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?gs(e,t):Es(e,t);break}case p.PLAINTEXT:{Q0(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:Es(e,t)}}function vv(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function gv(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=U.AFTER_BODY,Ns(e,t))}function Ev(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function yv(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):a&&e.openElements.remove(a))}function Tv(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(V.P,p.P),e._closePElement()}function xv(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function Cv(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function Sv(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Av(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function wv(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(V.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function ys(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!==p.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 yl(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{qn(e,t);break}case p.P:{Tv(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{Ev(e,t);break}case p.LI:{xv(e);break}case p.DD:case p.DT:{Cv(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{Sv(e);break}case p.BR:{wv(e);break}case p.BODY:{vv(e,t);break}case p.HTML:{gv(e,t);break}case p.FORM:{yv(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{Av(e,t);break}case p.TEMPLATE:{$t(e,t);break}default:ys(e,t)}}function Ts(e,t){e.tmplInsertionModeStack.length>0?ks(e,t):Vn(e,t)}function _v(e,t){var a;t.tagID===p.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function kv(e,t){e._err(t,j.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Gn(e,t){if(e.openElements.currentTagId!==void 0&&ds.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case ge.CHARACTER:{Cs(e,t);break}case ge.WHITESPACE_CHARACTER:{xs(e,t);break}}else Oa(e,t)}function Nv(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_CAPTION}function Iv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function Lv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.COLGROUP,p.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Yn(e,t)}function Ov(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_TABLE_BODY}function Dv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.TBODY,p.TBODY),e.insertionMode=U.IN_TABLE_BODY,xl(e,t)}function Pv(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Mv(e,t){vs(t)?e._appendElement(t,J.HTML):Oa(e,t),t.ackSelfClosing=!0}function Bv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function aa(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{Dv(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{lt(e,t);break}case p.COL:{Lv(e,t);break}case p.FORM:{Bv(e,t);break}case p.TABLE:{Pv(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{Ov(e,t);break}case p.INPUT:{Mv(e,t);break}case p.CAPTION:{Nv(e,t);break}case p.COLGROUP:{Iv(e,t);break}default:Oa(e,t)}}function La(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{$t(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Oa(e,t)}}function Oa(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,El(e,t),e.fosterParentingEnabled=a}function xs(e,t){e.pendingCharacterTokens.push(t)}function Cs(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Da(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)Oa(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ss=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function Fv(e,t){const a=t.tagID;Ss.has(a)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,aa(e,t)):ze(e,t)}function Rv(e,t){const a=t.tagID;switch(a){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,a===p.TABLE&&La(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:yl(e,t)}}function Yn(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.COL:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{lt(e,t);break}default:Tl(e,t)}}function Hv(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case p.TEMPLATE:{$t(e,t);break}case p.COL:break;default:Tl(e,t)}}function Tl(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function xl(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(V.TR,p.TR),e.insertionMode=U.IN_ROW,Cl(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,aa(e,t));break}default:aa(e,t)}}function Wn(e,t){const a=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,La(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:La(e,t)}}function Cl(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,xl(e,t));break}default:aa(e,t)}}function As(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Wn(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Wn(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:La(e,t)}}function $v(e,t){const a=t.tagID;Ss.has(a)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Cl(e,t)):ze(e,t)}function Uv(e,t){const a=t.tagID;switch(a){case p.TD:case p.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),As(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:yl(e,t)}}function ws(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{lt(e,t);break}}}function _s(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{$t(e,t);break}}}function qv(e,t){const a=t.tagID;a===p.CAPTION||a===p.TABLE||a===p.TBODY||a===p.TFOOT||a===p.THEAD||a===p.TR||a===p.TD||a===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ws(e,t)}function zv(e,t){const a=t.tagID;a===p.CAPTION||a===p.TABLE||a===p.TBODY||a===p.TFOOT||a===p.THEAD||a===p.TR||a===p.TD||a===p.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):_s(e,t)}function Vv(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{lt(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,aa(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Yn(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,xl(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Cl(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,ze(e,t)}}function Gv(e,t){t.tagID===p.TEMPLATE&&$t(e,t)}function ks(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Vn(e,t)}function Yv(e,t){t.tagID===p.HTML?ze(e,t):Sl(e,t)}function Ns(e,t){var a;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.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 Sl(e,t)}function Sl(e,t){e.insertionMode=U.IN_BODY,El(e,t)}function Wv(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.FRAMESET:{e._insertElement(t,J.HTML);break}case p.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{lt(e,t);break}}}function jv(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function Xv(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.NOFRAMES:{lt(e,t);break}}}function Kv(e,t){t.tagID===p.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function Qv(e,t){t.tagID===p.HTML?ze(e,t):Al(e,t)}function Al(e,t){e.insertionMode=U.IN_BODY,El(e,t)}function Jv(e,t){switch(t.tagID){case p.HTML:{ze(e,t);break}case p.NOFRAMES:{lt(e,t);break}}}function Zv(e,t){t.chars=Ie,e._insertCharacters(t)}function eg(e,t){e._insertCharacters(t),e.framesetOk=!1}function Is(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function tg(e,t){if(m0(t))Is(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),l=e.treeAdapter.getNamespaceURI(a);l===J.MATHML?os(t):l===J.SVG&&(v0(t),cs(t)),Un(t),t.selfClosing?e._appendElement(t,l):e._insertElement(t,l),t.ackSelfClosing=!0}}function ag(e,t){if(t.tagID===p.P||t.tagID===p.BR){Is(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)===J.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(l);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(a);break}}}V.AREA,V.BASE,V.BASEFONT,V.BGSOUND,V.BR,V.COL,V.EMBED,V.FRAME,V.HR,V.IMG,V.INPUT,V.KEYGEN,V.LINK,V.META,V.PARAM,V.SOURCE,V.TRACK,V.WBR;const lg=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ng=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ls={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Os(e,t){const a=hg(e),l=Vu("type",{handlers:{root:rg,element:ig,text:ug,comment:Ps,doctype:sg,raw:cg},unknown:dg}),n={parser:a?new ps(Ls):ps.getFragmentParser(void 0,Ls),handle(u){l(u,n)},stitches:!1,options:t||{}};l(e,n),la(n,st());const r=a?n.parser.document:n.parser.getFragment(),i=bm(r,{file:n.options.file});return n.stitches&&hl(i,"comment",function(u,s,o){const c=u;if(c.value.stitch&&o&&s!==void 0){const d=o.children;return d[s]=c.value.stitch,s}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function Ds(e,t){let a=-1;if(e)for(;++a<e.length;)t.handle(e[a])}function rg(e,t){Ds(e.children,t)}function ig(e,t){fg(e,t),Ds(e.children,t),pg(e,t)}function ug(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const a={type:ge.CHARACTER,chars:e.value,location:Pa(e)};la(t,st(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function sg(e,t){const a={type:ge.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Pa(e)};la(t,st(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function og(e,t){t.stitches=!0;const a=bg(e);if("children"in e&&"children"in a){const l=Os({type:"root",children:e.children},t.options);a.children=l.children}Ps({type:"comment",value:{stitch:a}},t)}function Ps(e,t){const a=e.value,l={type:ge.COMMENT,data:a,location:Pa(e)};la(t,st(e)),t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken)}function cg(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,Ms(t,st(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(lg,"<$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 dg(e,t){const a=e;if(t.options.passThrough&&t.options.passThrough.includes(a.type))og(a,t);else{let l="";throw ng.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 la(e,t){Ms(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=De.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 Ms(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 fg(e,t){const a=e.tagName.toLowerCase();if(t.parser.tokenizer.state===De.PLAINTEXT)return;la(t,st(e));const l=t.parser.openElements.current;let n="namespaceURI"in l?l.namespaceURI:Rt.html;n===Rt.html&&a==="svg"&&(n=Rt.svg);const r=ym({...e,children:[]},{space:n===Rt.svg?"svg":"html"}),i={type:ge.START_TAG,tagName:a,tagID:ta(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in r?r.attrs:[],location:Pa(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=a}function pg(e,t){const a=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&km.includes(a)||t.parser.tokenizer.state===De.PLAINTEXT)return;la(t,il(e));const l={type:ge.END_TAG,tagName:a,tagID:ta(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Pa(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),a===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===De.RCDATA||t.parser.tokenizer.state===De.RAWTEXT||t.parser.tokenizer.state===De.SCRIPT_DATA)&&(t.parser.tokenizer.state=De.DATA)}function hg(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Pa(e){const t=st(e)||{line:void 0,column:void 0,offset:void 0},a=il(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 bg(e){return"children"in e?Ft({...e,children:[]}):Ft(e)}function jn(e){return function(t,a){return Os(t,{...e,file:a})}}const Ut=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],na={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ut,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ut],h2:[["className","sr-only"]],img:[...Ut,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ut,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ut],table:[...Ut],ul:[...Ut,["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"]},Nt={}.hasOwnProperty;function mg(e,t){let a={type:"root",children:[]};const l={schema:t?{...na,...t}:na,stack:[]},n=Bs(l,e);return n&&(Array.isArray(n)?n.length===1?a=n[0]:a.children=n:a=n),a}function Bs(e,t){if(t&&typeof t=="object"){const a=t;switch(typeof a.type=="string"?a.type:""){case"comment":return vg(e,a);case"doctype":return gg(e,a);case"element":return Eg(e,a);case"root":return yg(e,a);case"text":return Tg(e,a)}}}function vg(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 Ma(r,t),r}}function gg(e,t){if(e.schema.allowDoctypes){const a={type:"doctype"};return Ma(a,t),a}}function Eg(e,t){const a=typeof t.tagName=="string"?t.tagName:"";e.stack.push(a);const l=Fs(e,t.children),n=xg(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&&Nt.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 Ma(i,t),i}function yg(e,t){const l={type:"root",children:Fs(e,t.children)};return Ma(l,t),l}function Tg(e,t){const l={type:"text",value:typeof t.value=="string"?t.value:""};return Ma(l,t),l}function Fs(e,t){const a=[];if(Array.isArray(t)){const l=t;let n=-1;for(;++n<l.length;){const r=Bs(e,l[n]);r&&(Array.isArray(r)?a.push(...r):a.push(r))}}return a}function xg(e,t){const a=e.stack[e.stack.length-1],l=e.schema.attributes,n=e.schema.required,r=l&&Nt.call(l,a)?l[a]:void 0,i=l&&Nt.call(l,"*")?l["*"]:void 0,u=t&&typeof t=="object"?t:{},s={};let o;for(o in u)if(Nt.call(u,o)){const c=u[o];let d=Rs(e,$s(r,o),o,c);d==null&&(d=Rs(e,$s(i,o),o,c)),d!=null&&(s[o]=d)}if(n&&Nt.call(n,a)){const c=n[a];for(o in c)Nt.call(c,o)&&!Nt.call(s,o)&&(s[o]=c[o])}return s}function Rs(e,t,a,l){return t?Array.isArray(l)?Cg(e,t,a,l):Hs(e,t,a,l):void 0}function Cg(e,t,a,l){let n=-1;const r=[];for(;++n<l.length;){const i=Hs(e,t,a,l[n]);(typeof i=="number"||typeof i=="string")&&r.push(i)}return r}function Hs(e,t,a,l){if(!(typeof l!="boolean"&&typeof l!="number"&&typeof l!="string")&&Sg(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 Sg(e,t,a){const l=e.schema.protocols&&Nt.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 Ma(e,t){const a=Di(t);t.data&&(e.data=Ft(t.data)),a&&(e.position=a)}function $s(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 Xn(e){return function(t){return mg(t,e)}}function Us(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 Ag=["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"],qs={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 zs(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function wg(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function _g(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Vs(e){return _g(e)||zs(e)}const kg=["","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 Kn(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,d=(s?s.column:0)||1,m=E(),f;for(r--;++r<=e.length;)if(f===10&&(d=(o?o[i]:0)||1),f=e.charCodeAt(r),f===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(f),d++;continue}const g=r+1;let y=g,S=g,_;if(v===35){S=++y;const D=e.charCodeAt(S);D===88||D===120?(_="hexadecimal",S=++y):_="decimal"}else _="named";let w="",P="",L="";const T=_==="named"?Vs:_==="decimal"?zs:wg;for(S--;++S<=e.length;){const D=e.charCodeAt(S);if(!T(D))break;L+=String.fromCharCode(D),_==="named"&&Ag.includes(L)&&(w=L,P=va(L))}let A=e.charCodeAt(S)===59;if(A){S++;const D=_==="named"?va(L):!1;D&&(w=L,P=D)}let x=1+S-g,k="";if(!(!A&&a.nonTerminated===!1))if(!L)_!=="named"&&b(4,x);else if(_==="named"){if(A&&!P)b(5,1);else if(w!==L&&(S=y+w.length,x=1+S-y,A=!1),!A){const D=w?1:3;if(a.attribute){const I=e.charCodeAt(S);I===61?(b(D,x),P=""):Vs(I)?P="":b(D,x)}else b(D,x)}k=P}else{A||b(2,x);let D=Number.parseInt(L,_==="hexadecimal"?16:10);if(Ng(D))b(7,x),k="�";else if(D in qs)b(6,x),k=qs[D];else{let I="";Ig(D)&&b(6,x),D>65535&&(D-=65536,I+=String.fromCharCode(D>>>10|55296),D=56320|D&1023),k=I+String.fromCharCode(D)}}if(k){h(),m=E(),r=S-1,d+=S-g+1,n.push(k);const D=E();D.offset++,a.reference&&a.reference.call(a.referenceContext||void 0,k,{start:m,end:D},e.slice(g-1,S)),m=D}else L=e.slice(g-1,S),u+=L,d+=L.length,r=S-1}else f===10&&(c++,i++,d=0),Number.isNaN(f)?h():(u+=String.fromCharCode(f),d++);return n.join("");function E(){return{line:c,column:d,offset:r+((s?s.offset:0)||0)}}function b(v,g){let y;a.warning&&(y=E(),y.column+=g,y.offset+=g,a.warning.call(a.warningContext||void 0,kg[v],y,v))}function h(){u&&(n.push(u),a.text&&a.text.call(a.textContext||void 0,u,{start:m,end:E()}),u="")}}function Ng(e){return e>=55296&&e<=57343||e>1114111}function Ig(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 Lg=/["&'<>`]/g,Og=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Dg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Pg=/[|\\{}()[\]^$+*?.]/g,Gs=new WeakMap;function Mg(e,t){if(e=e.replace(t.subset?Bg(t.subset):Lg,l),t.subset||t.escapeOnly)return e;return e.replace(Og,a).replace(Dg,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 Bg(e){let t=Gs.get(e);return t||(t=Fg(e),Gs.set(e,t)),t}function Fg(e){const t=[];let a=-1;for(;++a<e.length;)t.push(e[a].replace(Pg,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function Rg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Hg(e,t){return Mg(e,Object.assign({format:Rg},t))}const $g={}.hasOwnProperty,Ug={},Ys=/^[^\t\n\r "#'.<=>`}]+$/,qg=/^[^\t\n\r "'<=>`}]+$/;function zg(){return{canContainEols:["textDirective"],enter:{directiveContainer:Gg,directiveContainerAttributes:Zn,directiveContainerLabel:jg,directiveLeaf:Yg,directiveLeafAttributes:Zn,directiveText:Wg,directiveTextAttributes:Zn},exit:{directiveContainer:rr,directiveContainerAttributeClassValue:tr,directiveContainerAttributeIdValue:er,directiveContainerAttributeName:lr,directiveContainerAttributeValue:ar,directiveContainerAttributes:nr,directiveContainerLabel:Xg,directiveContainerName:Jn,directiveLeaf:rr,directiveLeafAttributeClassValue:tr,directiveLeafAttributeIdValue:er,directiveLeafAttributeName:lr,directiveLeafAttributeValue:ar,directiveLeafAttributes:nr,directiveLeafName:Jn,directiveText:rr,directiveTextAttributeClassValue:tr,directiveTextAttributeIdValue:er,directiveTextAttributeName:lr,directiveTextAttributeValue:ar,directiveTextAttributes:nr,directiveTextName:Jn}}}function Vg(e){const t=Ug;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return a.peek=Kg,{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=Qg(r),d=u.enter(r.type);let m=o.move(c+(r.name||"")),f;if(r.type==="containerDirective"){const E=(r.children||[])[0];f=Ws(E)?E:void 0}else f=r;if(f&&f.children&&f.children.length>0){const E=u.enter("label"),b=`${r.type}Label`,h=u.enter(b);m+=o.move("["),m+=o.move(u.containerPhrasing(f,{...o.current(),before:m,after:"]"})),m+=o.move("]"),h(),E()}if(m+=o.move(l(r,u)),r.type==="containerDirective"){const E=(r.children||[])[0];let b=r;Ws(E)&&(b=Object.assign({},r,{children:r.children.slice(1)})),b&&b.children&&b.children.length>0&&(m+=o.move(`
|
|
58
58
|
`),m+=o.move(u.containerFlow(b,o.current()))),m+=o.move(`
|
|
59
|
-
`+c)}return d(),m}function l(r,i){const u=r.attributes||{},s=[];let o,c,d,m;for(m in u)if(
|
|
60
|
-
`,"\r"];return r+"="+d+Fg(i,{subset:m})+d}}function zg(e){Jn.call(this,"containerDirective",e)}function Vg(e){Jn.call(this,"leafDirective",e)}function Gg(e){Jn.call(this,"textDirective",e)}function Jn(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Zn(e){const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.name=this.sliceSerialize(e)}function Yg(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function Wg(e){this.exit(e)}function er(){this.data.directiveAttributes=[],this.buffer()}function tr(e){this.data.directiveAttributes.push(["id",Qn(this.sliceSerialize(e),{attribute:!0})])}function ar(e){this.data.directiveAttributes.push(["class",Qn(this.sliceSerialize(e),{attribute:!0})])}function lr(e){const t=this.data.directiveAttributes;t[t.length-1][1]=Qn(this.sliceSerialize(e),{attribute:!0})}function nr(e){this.data.directiveAttributes.push([this.sliceSerialize(e),""])}function rr(){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 ir(e){this.exit(e)}function jg(){return":"}function Ys(e){return!!(e&&e.type==="paragraph"&&e.data&&e.data.directiveLabel)}function Xg(e){let t=0;return e.type==="containerDirective"?(Su(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 ur(e,t,a,l,n,r,i,u,s,o,c,d,m,f,E){let b,h;return v;function v(C){return e.enter(l),e.enter(n),e.consume(C),e.exit(n),g}function g(C){return C===35?(b=i,y(C)):C===46?(b=u,y(C)):E&&xe(C)?Ce(e,g,"whitespace")(C):!E&&Oe(C)?vt(e,g)(C):C===null||ue(C)||ya(C)||Ea(C)&&C!==45&&C!==95?I(C):(e.enter(r),e.enter(s),e.consume(C),w)}function y(C){const B=b+"Marker";return e.enter(r),e.enter(b),e.enter(B),e.consume(C),e.exit(B),S}function S(C){if(C===null||C===34||C===35||C===39||C===46||C===60||C===61||C===62||C===96||C===125||Oe(C))return a(C);const B=b+"Value";return e.enter(B),e.consume(C),_}function _(C){if(C===null||C===34||C===39||C===60||C===61||C===62||C===96)return a(C);if(C===35||C===46||C===125||Oe(C)){const B=b+"Value";return e.exit(B),e.exit(b),e.exit(r),g(C)}return e.consume(C),_}function w(C){return C===null||ue(C)||ya(C)||Ea(C)&&C!==45&&C!==46&&C!==58&&C!==95?(e.exit(s),E&&xe(C)?Ce(e,P,"whitespace")(C):!E&&Oe(C)?vt(e,P)(C):P(C)):(e.consume(C),w)}function P(C){return C===61?(e.enter(o),e.consume(C),e.exit(o),L):(e.exit(r),g(C))}function L(C){return C===null||C===60||C===61||C===62||C===96||C===125||E&&ue(C)?a(C):C===34||C===39?(e.enter(c),e.enter(m),e.consume(C),e.exit(m),h=C,A):E&&xe(C)?Ce(e,L,"whitespace")(C):!E&&Oe(C)?vt(e,L)(C):(e.enter(d),e.enter(f),e.consume(C),h=void 0,T)}function T(C){return C===null||C===34||C===39||C===60||C===61||C===62||C===96?a(C):C===125||Oe(C)?(e.exit(f),e.exit(d),e.exit(r),g(C)):(e.consume(C),T)}function A(C){return C===h?(e.enter(m),e.consume(C),e.exit(m),e.exit(c),e.exit(r),D):(e.enter(d),x(C))}function x(C){return C===h?(e.exit(d),A(C)):C===null?a(C):ue(C)?E?a(C):vt(e,x)(C):(e.enter(f),e.consume(C),k)}function k(C){return C===h||C===null||ue(C)?(e.exit(f),x(C)):(e.consume(C),k)}function D(C){return C===125||Oe(C)?g(C):I(C)}function I(C){return C===125?(e.enter(n),e.consume(C),e.exit(n),e.exit(l),t):a(C)}}function sr(e,t,a,l,n,r,i){let u=0,s=0,o;return c;function c(h){return e.enter(l),e.enter(n),e.consume(h),e.exit(n),d}function d(h){return h===93?(e.enter(n),e.consume(h),e.exit(n),e.exit(l),t):(e.enter(r),m(h))}function m(h){if(h===93&&!s)return b(h);const v=e.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:o});return o&&(o.next=v),o=v,f(h)}function f(h){return h===null||u>999||h===91&&++s>32?a(h):h===93&&!s--?(e.exit("chunkText"),b(h)):ue(h)?i?a(h):(e.consume(h),e.exit("chunkText"),m):(e.consume(h),h===92?E:f)}function E(h){return h===91||h===92||h===93?(e.consume(h),u++,f):f(h)}function b(h){return e.exit(r),e.enter(n),e.consume(h),e.exit(n),e.exit(l),t}}function or(e,t,a,l){const n=this;return r;function r(u){return u===null||ue(u)||Ea(u)||ya(u)?a(u):(e.enter(l),e.consume(u),i)}function i(u){return u===null||ue(u)||ya(u)||Ea(u)&&u!==45&&u!==95?(e.exit(l),n.previous===45||n.previous===95?a(u):t(u)):(e.consume(u),i)}}const Kg={tokenize:Zg,concrete:!0},Qg={tokenize:eE,partial:!0},Jg={tokenize:tE,partial:!0},kl={tokenize:aE,partial:!0};function Zg(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"),or.call(l,e,c,a,"directiveContainerName")(T))}function c(T){return T===91?e.attempt(Qg,d,d)(T):d(T)}function d(T){return T===123?e.attempt(Jg,m,m)(T):m(T)}function m(T){return Ce(e,f,"whitespace")(T)}function f(T){return e.exit("directiveContainerFence"),T===null?P(T):ue(T)?l.interrupt?t(T):e.attempt(kl,E,P)(T):a(T)}function E(T){return T===null?P(T):ue(T)?e.check(kl,y,P)(T):(e.enter("directiveContainerContent"),b(T))}function b(T){return e.attempt({tokenize:L,partial:!0},w,r?Ce(e,h,"linePrefix",r+1):h)(T)}function h(T){return T===null?w(T):ue(T)?e.check(kl,g,w)(T):g(T)}function v(T){if(T===null){const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,w(T)}return ue(T)?e.check(kl,S,_)(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 y(T){return e.enter("directiveContainerContent"),b(T)}function S(T){e.consume(T);const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,b}function _(T){const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,w(T)}function w(T){return e.exit("directiveContainerContent"),P(T)}function P(T){return e.exit("directiveContainer"),t(T)}function L(T,A,x){let k=0;return Ce(T,D,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(B){return T.enter("directiveContainerFence"),T.enter("directiveContainerSequence"),I(B)}function I(B){return B===58?(T.consume(B),k++,I):k<i?x(B):(T.exit("directiveContainerSequence"),Ce(T,C,"whitespace")(B))}function C(B){return B===null||ue(B)?(T.exit("directiveContainerFence"),A(B)):x(B)}}}function eE(e,t,a){return sr(e,t,a,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function tE(e,t,a){return ur(e,t,a,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function aE(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 lE={tokenize:iE},nE={tokenize:uE,partial:!0},rE={tokenize:sE,partial:!0};function iE(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"),or.call(l,e,i,a,"directiveLeafName")):a(c)}function i(c){return c===91?e.attempt(nE,u,u)(c):u(c)}function u(c){return c===123?e.attempt(rE,s,s)(c):s(c)}function s(c){return Ce(e,o,"whitespace")(c)}function o(c){return c===null||ue(c)?(e.exit("directiveLeaf"),t(c)):a(c)}}function uE(e,t,a){return sr(e,t,a,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function sE(e,t,a){return ur(e,t,a,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const oE={tokenize:pE,previous:fE},cE={tokenize:hE,partial:!0},dE={tokenize:bE,partial:!0};function fE(e){return e!==58||this.events[this.events.length-1][1].type==="characterEscape"}function pE(e,t,a){const l=this;return n;function n(s){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(s),e.exit("directiveTextMarker"),or.call(l,e,r,a,"directiveTextName")}function r(s){return s===58?a(s):s===91?e.attempt(cE,i,i)(s):i(s)}function i(s){return s===123?e.attempt(dE,u,u)(s):u(s)}function u(s){return e.exit("directiveText"),t(s)}}function hE(e,t,a){return sr(e,t,a,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function bE(e,t,a){return ur(e,t,a,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function mE(){return{text:{58:oE},flow:{58:[Kg,lE]}}}function cr(){const t=this.data(),a=t.micromarkExtensions||(t.micromarkExtensions=[]),l=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),n=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);a.push(mE()),l.push(Ug()),n.push(qg())}const dr={...na,attributes:{...na.attributes||{},span:[...(na.attributes||{}).span||[],"style"],font:[...(na.attributes||{}).font||[],"color"]}},fr=()=>e=>{ml(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}})},vE=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}}},gE=({config:e,files:t,debugTooltipSticky:a=!1,videoState:l})=>{const[n,r]=N.useState(null),[i,u]=N.useState(!1),s=N.useRef(null),o=N.useRef(null),c=N.useRef(null),d=200,m=200,f=N.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)},[]),E=N.useCallback(()=>{f(),u(!0)},[f]),b=N.useCallback(x=>{if(f(),x){r(x),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)},d)},[f]);N.useEffect(()=>()=>{f()},[f]);const[h,v]=N.useState(0),g=N.useRef(null),[y,S]=N.useState(!1),_=N.useRef(new Map),[w,P]=N.useState(357),[L,T]=N.useState("bottom");return N.useEffect(()=>{v(0),S(!1),T("bottom")},[n?.key,n?.type]),N.useEffect(()=>{const x=_.current,k=new Set,D=I=>{if(!I||k.has(I)||x.has(I))return;k.add(I);const C=new window.Image;C.decoding="async",C.onload=()=>{const B=C.naturalWidth||C.width||0,$=C.naturalHeight||C.height||0;B>0&&$>0&&x.set(I,`${B} / ${$}`)},C.src=I};e.forEach(I=>{const C=I.tooltip;if(!C)return;const $=typeof C=="string"?(()=>{try{return JSON.parse(C)}catch{return null}})():C;if(!$||$.type!=="steps")return;const F=$.images;Array.isArray(F)&&F.forEach(z=>{typeof z=="string"&&D(z)})})},[e]),N.useLayoutEffect(()=>{if(!i)return;if(n?.type!=="upload"&&n?.type!=="tag"&&n?.type!=="variable"){P(null);return}const x=requestAnimationFrame(()=>{const k=document.querySelector(".rte-steps-tooltip"),D=document.querySelector(".rte-steps-tooltip-title"),I=document.querySelector(".rte-steps-tooltip-step-badge");if(!k||!D||!I)return;const C=window.getComputedStyle(k),B=Number.parseFloat(C.paddingLeft)||0,$=Number.parseFloat(C.paddingRight)||0,F=Math.ceil(D.getBoundingClientRect().width||0),z=Math.ceil(I.getBoundingClientRect().width||0),W=F+16+z+Math.ceil(B+$),G=357,R=Math.max(240,Math.floor(window.innerWidth-32));P(Math.min(Math.max(W,G),R));const K=n?.anchorEl;if(K){const re=K.getBoundingClientRect(),le=k.getBoundingClientRect(),Y=Math.ceil(le.height||0),ae=Math.max(0,Math.floor(window.innerHeight-re.bottom)),ce=Math.max(0,Math.floor(re.top)),he=ae<Y+12&&ce>ae;T(he?"top":"bottom")}});return()=>cancelAnimationFrame(x)},[i,n?.key,n?.type,h,n?.anchorEl]),N.useEffect(()=>{if(!a)return;const x=k=>{k.key==="Escape"&&b(null)};return window.addEventListener("keydown",x,!0),()=>window.removeEventListener("keydown",x,!0)},[a,b]),{tooltipPortal:n?.anchorEl?(()=>{if(!document.body.contains(n.anchorEl))return null;let x="",k={background:"#fff",padding:12,borderRadius:8,border:"0.5px solid #E5E5E5",boxShadow:"0 4px 20px 0 rgba(129, 124, 143, 0.2)"},D=!1;const I=$=>{const F=vE($);if(!F)return null;if(F.kind==="text")return{node:F.text,steps:!1};const z=F.data,O=Math.max(0,z.images?.length||0);if(O<=0)return{node:z.title,steps:!1};const W=Math.min(Math.max(h,0),O-1),G=Array.isArray(z.stepDescriptions)&&z.stepDescriptions[W]||"",R=(z.disclaimer||"").trim(),K=Array.isArray(z.images)?z.images[W]:void 0,re=typeof K=="string"?_.current.get(K):void 0;return{node:q.jsxs("div",{className:"rte-steps-tooltip",style:w?{width:`${w}px`}:void 0,onMouseEnter:()=>E(),onMouseLeave:()=>{a||b(null)},onClick:Y=>{Y.preventDefault(),Y.stopPropagation()},children:[q.jsxs("div",{className:"rte-steps-tooltip-header",children:[q.jsx("div",{className:"rte-steps-tooltip-title",children:z.title}),q.jsxs("div",{className:"rte-steps-tooltip-step-badge",children:["步骤 ",W+1,"/",O]})]}),z.description?q.jsx("div",{className:"rte-steps-tooltip-desc",children:q.jsx(Mn,{remarkPlugins:[cr,fr],rehypePlugins:[Xn,[Kn,dr]],components:{p:({children:Y})=>q.jsx("p",{style:{margin:0},children:Y})},children:z.description})}):null,q.jsx("div",{className:"rte-steps-tooltip-media",style:re?{"--rte-steps-tooltip-aspect":re}:void 0,children:q.jsx(pe.Image.PreviewGroup,{preview:{visible:y,current:W,onVisibleChange:Y=>S(Y),onChange:Y=>{const ae=Math.min(Math.max(Y,0),O-1);v(ae),g.current?.slideTo(ae)}},children:q.jsx(si,{className:"rte-steps-tooltip-swiper",modules:[Jd,Zd],navigation:!0,pagination:{clickable:!0},initialSlide:W,onSwiper:Y=>{g.current=Y},onSlideChange:Y=>v(Y.activeIndex),children:z.images.map((Y,ae)=>q.jsx(oi,{children:q.jsx(pe.Image,{className:"rte-steps-tooltip-img",src:Y,alt:`step-${ae+1}`,width:"100%",style:{width:"100%",display:"block"},imgStyle:{width:"100%",height:"100%",objectFit:"contain",display:"block"},preview:{mask:null},onClick:()=>{v(ae),g.current?.slideTo(ae),S(!0)}})},`${Y}-${ae}`))},`${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(Mn,{remarkPlugins:[cr,fr],rehypePlugins:[Xn,[Kn,dr]],components:{p:({children:Y})=>q.jsx("p",{style:{margin:0},children:Y})},children:G})})}),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(Mn,{remarkPlugins:[cr,fr],rehypePlugins:[Xn,[Kn,dr]],components:{p:({children:Y})=>q.jsx("p",{style:{margin:0},children:Y})},children:R})})]}):null]}),steps:!0}};if(n.type==="upload"){const $=n.anchorEl.dataset.tooltip,F=I($);if(F)x=F.node,D=F.steps;else{const z=e.find(W=>W.type==="upload"&&W.key===n.key),O=I(typeof z?.tooltip=="string"?z?.tooltip:z?.tooltip?JSON.stringify(z.tooltip):"");x=O?.node||"",D=O?.steps||!1}}else if(n.type==="tag"){const $=n.anchorEl.dataset.tooltip,F=I($);x=F?.node||"",D=F?.steps||!1}else if(n.type==="upload-label")x=n.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName||n.anchorEl.dataset.fileName||"";else if(n.type==="variable"){const $=n.anchorEl.dataset.tooltip,F=I($);x=F?.node||"",D=F?.steps||!1}else if(n.type==="upload-preview"){const $=t[n.key];let F=null,z=!1;typeof $=="string"?F=$:$ instanceof File&&($.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name||""))&&(F=URL.createObjectURL($),z=!0),F?(x=q.jsx("div",{className:"rte-upload-preview",children:q.jsx("img",{className:"rte-upload-preview-img",src:F,alt:"preview"})}),k={background:"#fff",padding:0,borderRadius:4,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"},z&&setTimeout(()=>URL.revokeObjectURL(F),1e3)):x=""}else if(n.type==="video-preview"){const $=l?.[n.key];$?.status==="success"&&$.videoUrl?(x=q.jsx("div",{className:"rte-video-preview",children:q.jsx("video",{src:$.videoUrl,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{width:120,height:120,borderRadius:8,objectFit:"cover"}})}),k={background:"#fff",padding:0,borderRadius:8,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"}):x=""}if(!x)return null;D&&(k={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",B=L;return Tt.createPortal(q.jsx(pe.Tooltip,{arrow:!1,zIndex:999,destroyTooltipOnHide:!1,autoAdjustOverflow:!D,align:D?{points:B==="top"?["bc","tc"]:["tc","bc"],offset:B==="top"?[0,-4]:[0,4]}:void 0,title:n.type==="upload-preview"?q.jsx("div",{onMouseEnter:()=>E(),onMouseLeave:()=>{a||b(null)},onClick:$=>{$.preventDefault(),$.stopPropagation()},children:x}):D?x:q.jsx("div",{style:{maxWidth:"200px",fontSize:"12px",color:C},onMouseEnter:()=>E(),onMouseLeave:()=>{a||b(null)},onClick:$=>{$.preventDefault(),$.stopPropagation()},children:x}),open:i,placement:D?B==="top"?"top":"bottom":n.type==="upload-preview"?"topLeft":"top",getPopupContainer:()=>document.body,overlayInnerStyle:k,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:b}},EE=(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=Ze(e.tooltip),i=r?` data-tooltip="${oe(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>`},yE=(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>`},TE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,Ws=(e,t)=>{const l=(e.key?t[e.key]:void 0)||e.text||"",n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Ze(e.tooltip),i=r?` data-tooltip="${oe(r)}" data-variable-key="${e.key||""}"`:"";if(e.useAntd===!0){const m=l?encodeURIComponent(l):"",f=oe(e.placeholder||""),E=e.allowNewline===!1?' data-allow-newline="0"':' data-allow-newline="1"',b=Qa(l||e.placeholder||""),h=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="${f}" data-estimated-width="${Math.min(600,b+h)}"${E}${n}${i} class="rte-variable-host-v2"></span>`}const u=!l,s=u?"":oe(l).replace(/\n/g,"<br/>"),o=u?"show-placeholder":"",c=r&&u?"rte-variable-with-icon":"",d=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 ${d}" data-variable-key="${e.key}" data-tooltip="${oe(r)}" ></i>`:""}</span>`},xE=(e,t)=>{const a=Ws(e,t);return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${TE}${a}</span>`:a},js=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,CE=e=>/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(e);function pr(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=CE(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=ec(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 SE=(e,t)=>{const a=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",l=Ze(e.tooltip),n=l?` data-tooltip="${oe(l)}"`:"",{hasFile:r,fileName:i,uploadIcon:u}=pr(t[e.key],e.text),s=r?"":"hidden",o=l&&!r?"":"hidden",c=r?"has-file":"",d=r&&i?` data-file-name="${i.replace(/"/g,""")}"`:"",m=(e.text||"").trim(),E=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"${d}>${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="${oe(l)}" ></i>`:""}<span class="file-remove-btn ${s}" title="移除文件">×</span></span></span>`,hintHtml:E}},AE=(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=Ze(e.tooltip),y=g?` data-tooltip="${oe(g)}"`:"",S=e.minCount||1,_=e.maxCount||3;let w=0;for(let A=0;A<_;A++){const x=`${e.key}-${A}`;t[x]!=null&&(w+=1)}const P=Math.min(_,Math.max(S,w+(w<_?1:0)));let L="";for(let A=0;A<P;A++){const x=`${e.key}-${A}`,{hasFile:k,fileName:D,uploadIcon:I}=pr(t[x],e.text),C=k?"":"hidden",B=g&&!k?"":"hidden",$=k?"has-file":"",F=k&&D?` data-file-name="${D.replace(/"/g,""")}"`:"",z=` data-batch-key="${e.key}"`,O=` data-batch-index="${A}"`,W=`<span contenteditable="false" data-type="upload" data-key="${x}"${z}${O}${y} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${I}</span><span class="upload-label"${F}>${D||e.text}</span>${g?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${x}" data-tooltip="${oe(g)}" ></i>`:""}<span class="file-remove-btn ${C}" title="移除文件">×</span></span></span>`;L+=W}return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${js}<span class="rte-upload-batch-chips">${L}${a}</span></span>`:`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-upload-batch-chips">${L}${a}</span>`}const r=Ze(e.tooltip),i=r?` data-tooltip="${oe(r)}"`:"",{hasFile:u,fileName:s,uploadIcon:o}=pr(t[e.key],e.text),c=u?"":"hidden",d=r&&!u?"":"hidden",m=u?"has-file":"",f=u&&s?` data-file-name="${s.replace(/"/g,""")}"`:"",E=(e.text||"").trim(),h=u&&e.showHint===!0&&E.length>=12?`<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${E}</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"${f}>${s||e.text}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${d}" data-upload-key="${e.key}" data-tooltip="${oe(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">${js}${v}${a}</span>${h}`:v+a+h},wE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,_E=(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">${wE}${u}</span>`:u},kE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,NE=(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">${kE}${u}</span>`:u},IE=(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>`,d=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}${d}</div>`,f=`<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">${f}</div>`:f},LE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,OE=(e,t,a)=>{const l=`${e.key}__url`,r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0,i=e.key?t[e.key]:void 0,u=r??i??e.text??"",s=!u,o=s?"":u,c=s?"show-placeholder":"",d=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",m=Ze(e.tooltip),f=m?` data-tooltip="${oe(m)}" data-variable-key="${e.key||""}"`:"",E=m&&s?"":"hidden",b=a&&m,h=m&&s?"rte-variable-with-icon":"";let v="";b?v=`<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>`:m&&(v=`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${oe(m)}" ></i>`);const g=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${oe(e.placeholder||"")}"${d}${f} class="variable-chip rte-report-url ${c}${h?` ${h}`:""}">${o}${v}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${LE}${g}</span>`:g},DE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,PE=(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}"`:"",d=Ze(e.tooltip),m=d?` data-tooltip="${oe(d)}" data-variable-key="${e.key||""}"`:"",f=d&&u?"rte-variable-with-icon":"",E=d&&u?"":"hidden",b=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${oe(e.placeholder||"")}"${c}${m} class="variable-chip rte-markdown-name ${o}${f?` ${f}`:""}">${s}${d?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${oe(d)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${DE}${b}</span>`:b},ME=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,BE=(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}"`:"",d=e.sourceTextKey?` data-source-text-key="${oe(e.sourceTextKey)}"`:"",m=Ze(e.tooltip),f=m?` data-tooltip="${oe(m)}" data-variable-key="${e.key||""}"`:"",E=m&&u?"rte-variable-with-icon":"",b=m&&u?"":"hidden",h=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${oe(e.placeholder||"")}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E?` ${E}`:""}">${s}${m?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${b}" data-variable-key="${e.key}" data-tooltip="${oe(m)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${ME}${h}</span>`:h},FE=(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="${oe(e.placeholder)}"`:"",c=r,d=`<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}">${d}</div>`,f=`<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">${f}</div>`:f},RE=(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="${oe(e.placeholder)}"`:"",c=r,m=typeof c=="string"&&c.startsWith("请补充:")?' data-is-placeholder="true"':"",f=`<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>`,E=`<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${f}</div>`,b=`<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${E}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${b}</div>`:b},HE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,$E=(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">${HE}${i}</span>`:i},UE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,qE=(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?oe(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="${oe(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">${UE}${m}</span>`:m},zE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,Xs=(e,t,a,l)=>{const n=e.maxCount||9,r=a[e.key]||1,i=Math.min(r,n);if(e.required){const o=e.exclusionGroup?`data-group="${e.exclusionGroup}"`:"",c=Ze(e.tooltip);let d="";for(let m=0;m<i;m++){const f=`${e.key}_${m}`,E=t[f]||"",b=!E,h=b?"":oe(E).replace(/\n/g,"<br/>"),v=b?"show-placeholder":"",g=c&&b?"rte-variable-with-icon":"",y=c?` data-tooltip="${oe(c)}" data-variable-key="${e.key||""}"`:"",S=c&&b?"":"hidden",_=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",w=l&&c;let P="";w?P=`<span contenteditable="false" class="rte-report-dropdown-host ${S}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>`:c&&(P=`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${S}" data-variable-key="${e.key}" data-tooltip="${oe(c)}" ></i>`);const L=`<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${m}" data-placeholder="${e.placeholder||""}"${_}${y} class="variable-chip ${v}${g?` ${g}`:""}">${h}${P}</span>`;m===0?d+=`<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${zE}${L}</span>`:d+=L}return d}const u=Ze(e.tooltip);let s="";for(let o=0;o<i;o++){const c=`${e.key}_${o}`,d=t[c]||"",m=!d,f=m?"":oe(d).replace(/\n/g,"<br/>"),E=m?"show-placeholder":"",b=u&&m?"rte-variable-with-icon":"",h=u?` data-tooltip="${oe(u)}" data-variable-key="${e.key||""}"`:"",v=u&&m?"":"hidden",g=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",y=l&&u;let S="";y?S=`<span contenteditable="false" class="rte-report-dropdown-host ${v}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>`:u&&(S=`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${oe(u)}" ></i>`);const _=`<span contenteditable="true" data-type="variable" data-key="${c}" data-multi-key="${e.key}" data-index="${o}" data-placeholder="${e.placeholder||""}"${g}${h} class="variable-chip ${E}${b?` ${b}`:""}">${f}${S}</span>`;s+=_}return s},VE=(e,t,a)=>Xs(e,t,a,!0).replace(/data-node-type="multi-variable"/g,'data-node-type="multi-variable-select"'),hr=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,GE=(e,t)=>{const a=e.key,l=t[a],n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Ze(e.tooltip),i=r?` data-tooltip="${oe(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",d=2*Math.PI*6.5,m=d*(1-o/100),f=`<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="${d}" 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>${f}</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="${oe(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="${oe(o)}">${oe(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`}else{const o=e.placeholder||"请粘贴想要分析的抖音视频链接",c=r?"rte-variable-with-icon":"",d=r?"":"hidden",m=`<span contenteditable="true" data-type="variable" data-key="${a}" data-node-type="video-url" data-placeholder="${oe(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 ${d}" data-variable-key="${a}" data-tooltip="${oe(r)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${hr}${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">${hr}${s}</span>`:s},YE=(e,t)=>{const a=e.key,l=t[a],n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Ze(e.tooltip),i=r?` data-tooltip="${oe(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||"上传中...",d=l.thumbnail||"",m=2*Math.PI*6.5,f=m*(1-o/100),E=`<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="${f}" 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="${oe(d)}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${E}</span><span class="video-label">${oe(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="${oe(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="${oe(o)}">${oe(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">${oe(o)}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${c}" data-upload-key="${a}" data-tooltip="${oe(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">${hr}${s}</span>`:s},WE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,jE=(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">${WE}${u}</span>`:u},XE=[{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:"国外"}]}],KE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,QE=(e,t)=>{const a=t[e.key]||e.defaultValue||"",l=e.cascaderOptions&&e.cascaderOptions.length>0?e.cascaderOptions:XE,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">${KE}${s}</span>`:s};function JE(e,t,a,l,n,r={},i,u,s,o){if(!e.current)return;const c=/[;;,,。.!!??::、]/,d=h=>{const v=(h??"").trim();return v.length===1&&c.test(v)},m=h=>{const v=h??"",g=v.match(new RegExp(`^\\s*(${c.source})`));if(!g)return null;const y=g[1],S=v.replace(new RegExp(`^\\s*${c.source}`),"");return{punct:y,rest:S}},f=h=>`<span data-type="text" class="rte-inline-punct" contenteditable="false">${h}</span>`,E=[];let b=0;for(;b<t.length;){const h=t[b],v=b+1<t.length?t[b+1]:null;let g=!1;if(h.type==="text"&&(h.text?.includes("icon-bitian")||h.className==="rte-text-required")&&v){const T=v.type==="upload"&&v.exclusionGroup==="fileInput"&&h.exclusionGroup==="fileInput"&&h.exclusionGroup===v.exclusionGroup,A=v.type==="variable"&&v.exclusionGroup==="textInput"&&h.exclusionGroup==="textInput"&&h.exclusionGroup===v.exclusionGroup;if(T){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let I="";h.className?I=`<span class="${h.className}">${h.text??""}</span>`:I=h.text??"";const C=v,{uploadHtml:B,hintHtml:$}=SE(C,a);E.push(k+I+B+D+$),b+=2;continue}if(A){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let I="";h.className?I=`<span class="${h.className}">${h.text??""}</span>`:I=h.text??"";const B=Ws(v,n);E.push(k+I+B+D),b+=2;continue}}const S=h.exclusionGroup?`data-group="${h.exclusionGroup}"`:"",_=h.exclusionGroup?`<span ${S} class="exclusion-wrapper">`:"",w=h.exclusionGroup?"</span>":"";let P="";if(h.type==="tag")P=EE(h,{lockStructure:l,hideButtons:i});else if(h.type==="text")P=yE(h,l);else if(h.type==="variable"&&h.key)P=xE(h,n);else if(h.type==="report-url"&&h.key)P=OE(h,n,o);else if(h.type==="markdown-name"&&h.key)P=PE(h,n);else if(h.type==="markdown"&&h.key)P=BE(h,n);else if(h.type==="upload"&&h.key){const T=!!v&&v.type==="text"&&!v.className&&!v.exclusionGroup&&d(v.text),A=T?(v.text??"").trim():"",x=A?f(A):"";T&&(g=!0),P=AE(h,a,x)}else h.type==="select"&&h.key?P=_E(h,n):h.type==="textarea"&&h.key?P=NE(h,n):h.type==="richtext"&&h.key?P=IE(h,n):h.type==="report-module"&&h.key?P=FE(h,n):h.type==="markdown-module"&&h.key?P=RE(h,n):h.type==="datepicker"&&h.key?P=$E(h,n):h.type==="number-input"&&h.key?P=qE(h,n):h.type==="multi-variable"&&h.key?P=Xs(h,n,r,!1):h.type==="multi-variable-select"&&h.key?P=VE(h,n,r):h.type==="video-url"&&h.key?P=GE(h,s||{}):h.type==="video-upload"&&h.key?P=YE(h,s||{}):h.type==="searchable-select"&&h.key?P=jE(h,n):h.type==="cascader"&&h.key&&(P=QE(h,n));const L=_+P+w;if(h.type==="text"&&!h.className&&!h.exclusionGroup){if(d(h.text)&&E.length>0){const A=E[E.length-1],x=(h.text??"").trim();E[E.length-1]=`<span class="rte-inline-group">${A}${f(x)}</span>`,b++;continue}const T=m(h.text);if(T&&E.length>0){const A=E[E.length-1];E[E.length-1]=`<span class="rte-inline-group">${A}${f(T.punct)}</span>`;const x=T.rest;if(x){const k=x.replace(/\n/g,"<br/>");E.push(`<span data-type="text" contenteditable="false">${k}</span>`)}b++;continue}}E.push(L),b+=g?2:1}e.current&&(e.current.innerHTML=E.join(""),setTimeout(()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="variable"]').forEach(v=>{if(v.dataset.variableRender==="antd-textarea")return;if(v.innerText.replace(/\n/g,"").replace(/\u200B/g,""))v.classList.remove("show-placeholder");else{const S=Array.from(v.childNodes),_=v.querySelector(".variable-info-icon");S.forEach(P=>{if(P.nodeType===Node.TEXT_NODE){v.removeChild(P);return}P.nodeType===Node.ELEMENT_NODE&&P.tagName==="BR"&&v.removeChild(P)});const w=document.createTextNode("");_&&_.parentNode===v?v.insertBefore(w,_):v.firstChild?v.insertBefore(w,v.firstChild):v.appendChild(w),v.classList.add("show-placeholder")}})},0))}function ZE(e,t,a,l,n={},r,i,u,s,o,c,d,m){const f=N.useRef(new Set),E=N.useRef(""),b=N.useRef(!1),h=N.useRef({}),v=N.useCallback(()=>{if(!e.current)return;if(t.length===0){e.current.innerHTML="";return}const g=t.filter(A=>A.key&&A.type!=="report-module"&&A.type!=="markdown-module").map(A=>`${A.type}:${A.key}`).join("|");E.current!==g&&(E.current=g,f.current=new Set,b.current=!0);const y=b.current;let S={};const _={},w=new Set,P=!!e.current?.__tempVariableValues;if(e.current&&!y){if(m&&!P){const x=new Set;e.current.querySelectorAll('[data-type="variable"]').forEach(k=>{k.dataset.key&&x.add(k.dataset.key)});for(const k of Object.keys(m.current))x.has(k)||delete m.current[k]}e.current.querySelectorAll('[data-type="variable"]').forEach(x=>{const k=x.dataset.key;if(!k)return;!P&&!x.getAttribute("data-report-url")&&m?.current&&delete m.current[k];let D="";if(x.dataset.variableRender==="antd-textarea"){const I=(x.getAttribute("data-value")||"").trim();try{D=I?decodeURIComponent(I).replace(/\r\n/g,`
|
|
59
|
+
`+c)}return d(),m}function l(r,i){const u=r.attributes||{},s=[];let o,c,d,m;for(m in u)if($g.call(u,m)&&u[m]!==void 0&&u[m]!==null){const f=String(u[m]);if(m==="id")d=t.preferShortcut!==!1&&Ys.test(f)?"#"+f:n("id",f,r,i);else if(m==="class"){const E=f.split(/[\t\n\r ]+/g),b=[],h=[];let v=-1;for(;++v<E.length;)(t.preferShortcut!==!1&&Ys.test(E[v])?h:b).push(E[v]);o=b.length>0?n("class",b.join(" "),r,i):"",c=h.length>0?"."+h.join("."):""}else s.push(n(m,f,r,i))}return o&&s.unshift(o),c&&s.unshift(c),d&&s.unshift(d),s.length>0?"{"+s.join(" ")+"}":""}function n(r,i,u,s){if(t.collapseEmptyAttributes!==!1&&!i)return r;if(t.preferUnquoted&&qg.test(i))return r+"="+i;const o=t.quote||s.options.quote||'"',c=o==='"'?"'":'"',d=t.quoteSmart&&Us(i,o)>Us(i,c)?c:o,m=u.type==="textDirective"?[d]:[d,`
|
|
60
|
+
`,"\r"];return r+"="+d+Hg(i,{subset:m})+d}}function Gg(e){Qn.call(this,"containerDirective",e)}function Yg(e){Qn.call(this,"leafDirective",e)}function Wg(e){Qn.call(this,"textDirective",e)}function Qn(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Jn(e){const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.name=this.sliceSerialize(e)}function jg(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function Xg(e){this.exit(e)}function Zn(){this.data.directiveAttributes=[],this.buffer()}function er(e){this.data.directiveAttributes.push(["id",Kn(this.sliceSerialize(e),{attribute:!0})])}function tr(e){this.data.directiveAttributes.push(["class",Kn(this.sliceSerialize(e),{attribute:!0})])}function ar(e){const t=this.data.directiveAttributes;t[t.length-1][1]=Kn(this.sliceSerialize(e),{attribute:!0})}function lr(e){this.data.directiveAttributes.push([this.sliceSerialize(e),""])}function nr(){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 rr(e){this.exit(e)}function Kg(){return":"}function Ws(e){return!!(e&&e.type==="paragraph"&&e.data&&e.data.directiveLabel)}function Qg(e){let t=0;return e.type==="containerDirective"?(Au(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 ir(e,t,a,l,n,r,i,u,s,o,c,d,m,f,E){let b,h;return v;function v(C){return e.enter(l),e.enter(n),e.consume(C),e.exit(n),g}function g(C){return C===35?(b=i,y(C)):C===46?(b=u,y(C)):E&&Te(C)?xe(e,g,"whitespace")(C):!E&&Oe(C)?mt(e,g)(C):C===null||ie(C)||Ea(C)||ga(C)&&C!==45&&C!==95?I(C):(e.enter(r),e.enter(s),e.consume(C),w)}function y(C){const B=b+"Marker";return e.enter(r),e.enter(b),e.enter(B),e.consume(C),e.exit(B),S}function S(C){if(C===null||C===34||C===35||C===39||C===46||C===60||C===61||C===62||C===96||C===125||Oe(C))return a(C);const B=b+"Value";return e.enter(B),e.consume(C),_}function _(C){if(C===null||C===34||C===39||C===60||C===61||C===62||C===96)return a(C);if(C===35||C===46||C===125||Oe(C)){const B=b+"Value";return e.exit(B),e.exit(b),e.exit(r),g(C)}return e.consume(C),_}function w(C){return C===null||ie(C)||Ea(C)||ga(C)&&C!==45&&C!==46&&C!==58&&C!==95?(e.exit(s),E&&Te(C)?xe(e,P,"whitespace")(C):!E&&Oe(C)?mt(e,P)(C):P(C)):(e.consume(C),w)}function P(C){return C===61?(e.enter(o),e.consume(C),e.exit(o),L):(e.exit(r),g(C))}function L(C){return C===null||C===60||C===61||C===62||C===96||C===125||E&&ie(C)?a(C):C===34||C===39?(e.enter(c),e.enter(m),e.consume(C),e.exit(m),h=C,A):E&&Te(C)?xe(e,L,"whitespace")(C):!E&&Oe(C)?mt(e,L)(C):(e.enter(d),e.enter(f),e.consume(C),h=void 0,T)}function T(C){return C===null||C===34||C===39||C===60||C===61||C===62||C===96?a(C):C===125||Oe(C)?(e.exit(f),e.exit(d),e.exit(r),g(C)):(e.consume(C),T)}function A(C){return C===h?(e.enter(m),e.consume(C),e.exit(m),e.exit(c),e.exit(r),D):(e.enter(d),x(C))}function x(C){return C===h?(e.exit(d),A(C)):C===null?a(C):ie(C)?E?a(C):mt(e,x)(C):(e.enter(f),e.consume(C),k)}function k(C){return C===h||C===null||ie(C)?(e.exit(f),x(C)):(e.consume(C),k)}function D(C){return C===125||Oe(C)?g(C):I(C)}function I(C){return C===125?(e.enter(n),e.consume(C),e.exit(n),e.exit(l),t):a(C)}}function ur(e,t,a,l,n,r,i){let u=0,s=0,o;return c;function c(h){return e.enter(l),e.enter(n),e.consume(h),e.exit(n),d}function d(h){return h===93?(e.enter(n),e.consume(h),e.exit(n),e.exit(l),t):(e.enter(r),m(h))}function m(h){if(h===93&&!s)return b(h);const v=e.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:o});return o&&(o.next=v),o=v,f(h)}function f(h){return h===null||u>999||h===91&&++s>32?a(h):h===93&&!s--?(e.exit("chunkText"),b(h)):ie(h)?i?a(h):(e.consume(h),e.exit("chunkText"),m):(e.consume(h),h===92?E:f)}function E(h){return h===91||h===92||h===93?(e.consume(h),u++,f):f(h)}function b(h){return e.exit(r),e.enter(n),e.consume(h),e.exit(n),e.exit(l),t}}function sr(e,t,a,l){const n=this;return r;function r(u){return u===null||ie(u)||ga(u)||Ea(u)?a(u):(e.enter(l),e.consume(u),i)}function i(u){return u===null||ie(u)||Ea(u)||ga(u)&&u!==45&&u!==95?(e.exit(l),n.previous===45||n.previous===95?a(u):t(u)):(e.consume(u),i)}}const Jg={tokenize:tE,concrete:!0},Zg={tokenize:aE,partial:!0},eE={tokenize:lE,partial:!0},wl={tokenize:nE,partial:!0};function tE(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"),sr.call(l,e,c,a,"directiveContainerName")(T))}function c(T){return T===91?e.attempt(Zg,d,d)(T):d(T)}function d(T){return T===123?e.attempt(eE,m,m)(T):m(T)}function m(T){return xe(e,f,"whitespace")(T)}function f(T){return e.exit("directiveContainerFence"),T===null?P(T):ie(T)?l.interrupt?t(T):e.attempt(wl,E,P)(T):a(T)}function E(T){return T===null?P(T):ie(T)?e.check(wl,y,P)(T):(e.enter("directiveContainerContent"),b(T))}function b(T){return e.attempt({tokenize:L,partial:!0},w,r?xe(e,h,"linePrefix",r+1):h)(T)}function h(T){return T===null?w(T):ie(T)?e.check(wl,g,w)(T):g(T)}function v(T){if(T===null){const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,w(T)}return ie(T)?e.check(wl,S,_)(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 y(T){return e.enter("directiveContainerContent"),b(T)}function S(T){e.consume(T);const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,b}function _(T){const A=e.exit("chunkDocument");return l.parser.lazy[A.start.line]=!1,w(T)}function w(T){return e.exit("directiveContainerContent"),P(T)}function P(T){return e.exit("directiveContainer"),t(T)}function L(T,A,x){let k=0;return xe(T,D,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(B){return T.enter("directiveContainerFence"),T.enter("directiveContainerSequence"),I(B)}function I(B){return B===58?(T.consume(B),k++,I):k<i?x(B):(T.exit("directiveContainerSequence"),xe(T,C,"whitespace")(B))}function C(B){return B===null||ie(B)?(T.exit("directiveContainerFence"),A(B)):x(B)}}}function aE(e,t,a){return ur(e,t,a,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function lE(e,t,a){return ir(e,t,a,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function nE(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 rE={tokenize:sE},iE={tokenize:oE,partial:!0},uE={tokenize:cE,partial:!0};function sE(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"),sr.call(l,e,i,a,"directiveLeafName")):a(c)}function i(c){return c===91?e.attempt(iE,u,u)(c):u(c)}function u(c){return c===123?e.attempt(uE,s,s)(c):s(c)}function s(c){return xe(e,o,"whitespace")(c)}function o(c){return c===null||ie(c)?(e.exit("directiveLeaf"),t(c)):a(c)}}function oE(e,t,a){return ur(e,t,a,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function cE(e,t,a){return ir(e,t,a,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const dE={tokenize:bE,previous:hE},fE={tokenize:mE,partial:!0},pE={tokenize:vE,partial:!0};function hE(e){return e!==58||this.events[this.events.length-1][1].type==="characterEscape"}function bE(e,t,a){const l=this;return n;function n(s){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(s),e.exit("directiveTextMarker"),sr.call(l,e,r,a,"directiveTextName")}function r(s){return s===58?a(s):s===91?e.attempt(fE,i,i)(s):i(s)}function i(s){return s===123?e.attempt(pE,u,u)(s):u(s)}function u(s){return e.exit("directiveText"),t(s)}}function mE(e,t,a){return ur(e,t,a,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function vE(e,t,a){return ir(e,t,a,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function gE(){return{text:{58:dE},flow:{58:[Jg,rE]}}}function or(){const t=this.data(),a=t.micromarkExtensions||(t.micromarkExtensions=[]),l=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),n=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);a.push(gE()),l.push(zg()),n.push(Vg())}const cr={...na,attributes:{...na.attributes||{},span:[...(na.attributes||{}).span||[],"style"],font:[...(na.attributes||{}).font||[],"color"]}},dr=()=>e=>{hl(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}})},EE=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}}},yE=({config:e,files:t,debugTooltipSticky:a=!1,videoState:l})=>{const[n,r]=N.useState(null),[i,u]=N.useState(!1),s=N.useRef(null),o=N.useRef(null),c=N.useRef(null),d=200,m=200,f=N.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)},[]),E=N.useCallback(()=>{f(),u(!0)},[f]),b=N.useCallback(x=>{if(f(),x){r(x),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)},d)},[f]);N.useEffect(()=>()=>{f()},[f]);const[h,v]=N.useState(0),g=N.useRef(null),[y,S]=N.useState(!1),_=N.useRef(new Map),[w,P]=N.useState(357),[L,T]=N.useState("bottom");return N.useEffect(()=>{v(0),S(!1),T("bottom")},[n?.key,n?.type]),N.useEffect(()=>{const x=_.current,k=new Set,D=I=>{if(!I||k.has(I)||x.has(I))return;k.add(I);const C=new window.Image;C.decoding="async",C.onload=()=>{const B=C.naturalWidth||C.width||0,$=C.naturalHeight||C.height||0;B>0&&$>0&&x.set(I,`${B} / ${$}`)},C.src=I};e.forEach(I=>{const C=I.tooltip;if(!C)return;const $=typeof C=="string"?(()=>{try{return JSON.parse(C)}catch{return null}})():C;if(!$||$.type!=="steps")return;const F=$.images;Array.isArray(F)&&F.forEach(z=>{typeof z=="string"&&D(z)})})},[e]),N.useLayoutEffect(()=>{if(!i)return;if(n?.type!=="upload"&&n?.type!=="tag"&&n?.type!=="variable"){P(null);return}const x=requestAnimationFrame(()=>{const k=document.querySelector(".rte-steps-tooltip"),D=document.querySelector(".rte-steps-tooltip-title"),I=document.querySelector(".rte-steps-tooltip-step-badge");if(!k||!D||!I)return;const C=window.getComputedStyle(k),B=Number.parseFloat(C.paddingLeft)||0,$=Number.parseFloat(C.paddingRight)||0,F=Math.ceil(D.getBoundingClientRect().width||0),z=Math.ceil(I.getBoundingClientRect().width||0),W=F+16+z+Math.ceil(B+$),G=357,R=Math.max(240,Math.floor(window.innerWidth-32));P(Math.min(Math.max(W,G),R));const K=n?.anchorEl;if(K){const re=K.getBoundingClientRect(),le=k.getBoundingClientRect(),Y=Math.ceil(le.height||0),ae=Math.max(0,Math.floor(window.innerHeight-re.bottom)),ce=Math.max(0,Math.floor(re.top)),pe=ae<Y+12&&ce>ae;T(pe?"top":"bottom")}});return()=>cancelAnimationFrame(x)},[i,n?.key,n?.type,h,n?.anchorEl]),N.useEffect(()=>{if(!a)return;const x=k=>{k.key==="Escape"&&b(null)};return window.addEventListener("keydown",x,!0),()=>window.removeEventListener("keydown",x,!0)},[a,b]),{tooltipPortal:n?.anchorEl?(()=>{if(!document.body.contains(n.anchorEl))return null;let x="",k={background:"#fff",padding:12,borderRadius:8,border:"0.5px solid #E5E5E5",boxShadow:"0 4px 20px 0 rgba(129, 124, 143, 0.2)"},D=!1;const I=$=>{const F=EE($);if(!F)return null;if(F.kind==="text")return{node:F.text,steps:!1};const z=F.data,O=Math.max(0,z.images?.length||0);if(O<=0)return{node:z.title,steps:!1};const W=Math.min(Math.max(h,0),O-1),G=Array.isArray(z.stepDescriptions)&&z.stepDescriptions[W]||"",R=(z.disclaimer||"").trim(),K=Array.isArray(z.images)?z.images[W]:void 0,re=typeof K=="string"?_.current.get(K):void 0;return{node:q.jsxs("div",{className:"rte-steps-tooltip",style:w?{width:`${w}px`}:void 0,onMouseEnter:()=>E(),onMouseLeave:()=>{a||b(null)},onClick:Y=>{Y.preventDefault(),Y.stopPropagation()},children:[q.jsxs("div",{className:"rte-steps-tooltip-header",children:[q.jsx("div",{className:"rte-steps-tooltip-title",children:z.title}),q.jsxs("div",{className:"rte-steps-tooltip-step-badge",children:["步骤 ",W+1,"/",O]})]}),z.description?q.jsx("div",{className:"rte-steps-tooltip-desc",children:q.jsx(Pn,{remarkPlugins:[or,dr],rehypePlugins:[jn,[Xn,cr]],components:{p:({children:Y})=>q.jsx("p",{style:{margin:0},children:Y})},children:z.description})}):null,q.jsx("div",{className:"rte-steps-tooltip-media",style:re?{"--rte-steps-tooltip-aspect":re}:void 0,children:q.jsx(fe.Image.PreviewGroup,{preview:{visible:y,current:W,onVisibleChange:Y=>S(Y),onChange:Y=>{const ae=Math.min(Math.max(Y,0),O-1);v(ae),g.current?.slideTo(ae)}},children:q.jsx(oi,{className:"rte-steps-tooltip-swiper",modules:[ef,tf],navigation:!0,pagination:{clickable:!0},initialSlide:W,onSwiper:Y=>{g.current=Y},onSlideChange:Y=>v(Y.activeIndex),children:z.images.map((Y,ae)=>q.jsx(ci,{children:q.jsx(fe.Image,{className:"rte-steps-tooltip-img",src:Y,alt:`step-${ae+1}`,width:"100%",style:{width:"100%",display:"block"},imgStyle:{width:"100%",height:"100%",objectFit:"contain",display:"block"},preview:{mask:null},onClick:()=>{v(ae),g.current?.slideTo(ae),S(!0)}})},`${Y}-${ae}`))},`${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(Pn,{remarkPlugins:[or,dr],rehypePlugins:[jn,[Xn,cr]],components:{p:({children:Y})=>q.jsx("p",{style:{margin:0},children:Y})},children:G})})}),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(Pn,{remarkPlugins:[or,dr],rehypePlugins:[jn,[Xn,cr]],components:{p:({children:Y})=>q.jsx("p",{style:{margin:0},children:Y})},children:R})})]}):null]}),steps:!0}};if(n.type==="upload"){const $=n.anchorEl.dataset.tooltip,F=I($);if(F)x=F.node,D=F.steps;else{const z=e.find(W=>W.type==="upload"&&W.key===n.key),O=I(typeof z?.tooltip=="string"?z?.tooltip:z?.tooltip?JSON.stringify(z.tooltip):"");x=O?.node||"",D=O?.steps||!1}}else if(n.type==="tag"){const $=n.anchorEl.dataset.tooltip,F=I($);x=F?.node||"",D=F?.steps||!1}else if(n.type==="upload-label")x=n.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName||n.anchorEl.dataset.fileName||"";else if(n.type==="variable"){const $=n.anchorEl.dataset.tooltip,F=I($);x=F?.node||"",D=F?.steps||!1}else if(n.type==="upload-preview"){const $=t[n.key];let F=null,z=!1;typeof $=="string"?F=$:$ instanceof File&&($.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name||""))&&(F=URL.createObjectURL($),z=!0),F?(x=q.jsx("div",{className:"rte-upload-preview",children:q.jsx("img",{className:"rte-upload-preview-img",src:F,alt:"preview"})}),k={background:"#fff",padding:0,borderRadius:4,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"},z&&setTimeout(()=>URL.revokeObjectURL(F),1e3)):x=""}else if(n.type==="video-preview"){const $=l?.[n.key];$?.status==="success"&&$.videoUrl?(x=q.jsx("div",{className:"rte-video-preview",children:q.jsx("video",{src:$.videoUrl,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{width:120,height:120,borderRadius:8,objectFit:"cover"}})}),k={background:"#fff",padding:0,borderRadius:8,boxShadow:"0 2px 12px 0 rgba(153, 153, 153, 0.25)"}):x=""}if(!x)return null;D&&(k={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",B=L;return Tt.createPortal(q.jsx(fe.Tooltip,{arrow:!1,zIndex:999,destroyTooltipOnHide:!1,autoAdjustOverflow:!D,align:D?{points:B==="top"?["bc","tc"]:["tc","bc"],offset:B==="top"?[0,-4]:[0,4]}:void 0,title:n.type==="upload-preview"?q.jsx("div",{onMouseEnter:()=>E(),onMouseLeave:()=>{a||b(null)},onClick:$=>{$.preventDefault(),$.stopPropagation()},children:x}):D?x:q.jsx("div",{style:{maxWidth:"200px",fontSize:"12px",color:C},onMouseEnter:()=>E(),onMouseLeave:()=>{a||b(null)},onClick:$=>{$.preventDefault(),$.stopPropagation()},children:x}),open:i,placement:D?B==="top"?"top":"bottom":n.type==="upload-preview"?"topLeft":"top",getPopupContainer:()=>document.body,overlayInnerStyle:k,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:b}},TE=(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=Ze(e.tooltip),i=r?` data-tooltip="${se(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>`},xE=(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>`},CE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,js=(e,t)=>{const l=(e.key?t[e.key]:void 0)||e.text||"",n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Ze(e.tooltip),i=r?` data-tooltip="${se(r)}" data-variable-key="${e.key||""}"`:"";if(e.useAntd===!0){const m=l?encodeURIComponent(l):"",f=se(e.placeholder||""),E=e.allowNewline===!1?' data-allow-newline="0"':' data-allow-newline="1"',b=Xa(l||e.placeholder||""),h=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="${f}" data-estimated-width="${Math.min(600,b+h)}"${E}${n}${i} class="rte-variable-host-v2"></span>`}const u=!l,s=u?"":se(l).replace(/\n/g,"<br/>"),o=u?"show-placeholder":"",c=r&&u?"rte-variable-with-icon":"",d=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 ${d}" data-variable-key="${e.key}" data-tooltip="${se(r)}" ></i>`:""}</span>`},SE=(e,t)=>{const a=js(e,t);return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${CE}${a}</span>`:a},Xs=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,AE=e=>/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(e);function fr(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=AE(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=ac(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 wE=(e,t)=>{const a=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",l=Ze(e.tooltip),n=l?` data-tooltip="${se(l)}"`:"",{hasFile:r,fileName:i,uploadIcon:u}=fr(t[e.key],e.text),s=r?"":"hidden",o=l&&!r?"":"hidden",c=r?"has-file":"",d=r&&i?` data-file-name="${i.replace(/"/g,""")}"`:"",m=(e.text||"").trim(),E=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"${d}>${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="${se(l)}" ></i>`:""}<span class="file-remove-btn ${s}" title="移除文件">×</span></span></span>`,hintHtml:E}},_E=(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=Ze(e.tooltip),y=g?` data-tooltip="${se(g)}"`:"",S=e.minCount||1,_=e.maxCount||3;let w=0;for(let A=0;A<_;A++){const x=`${e.key}-${A}`;t[x]!=null&&(w+=1)}const P=Math.min(_,Math.max(S,w+(w<_?1:0)));let L="";for(let A=0;A<P;A++){const x=`${e.key}-${A}`,{hasFile:k,fileName:D,uploadIcon:I}=fr(t[x],e.text),C=k?"":"hidden",B=g&&!k?"":"hidden",$=k?"has-file":"",F=k&&D?` data-file-name="${D.replace(/"/g,""")}"`:"",z=` data-batch-key="${e.key}"`,O=` data-batch-index="${A}"`,W=`<span contenteditable="false" data-type="upload" data-key="${x}"${z}${O}${y} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${I}</span><span class="upload-label"${F}>${D||e.text}</span>${g?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${x}" data-tooltip="${se(g)}" ></i>`:""}<span class="file-remove-btn ${C}" title="移除文件">×</span></span></span>`;L+=W}return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Xs}<span class="rte-upload-batch-chips">${L}${a}</span></span>`:`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-upload-batch-chips">${L}${a}</span>`}const r=Ze(e.tooltip),i=r?` data-tooltip="${se(r)}"`:"",{hasFile:u,fileName:s,uploadIcon:o}=fr(t[e.key],e.text),c=u?"":"hidden",d=r&&!u?"":"hidden",m=u?"has-file":"",f=u&&s?` data-file-name="${s.replace(/"/g,""")}"`:"",E=(e.text||"").trim(),h=u&&e.showHint===!0&&E.length>=12?`<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${E}</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"${f}>${s||e.text}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${d}" data-upload-key="${e.key}" data-tooltip="${se(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">${Xs}${v}${a}</span>${h}`:v+a+h},kE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,NE=(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">${kE}${u}</span>`:u},IE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,LE=(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">${IE}${u}</span>`:u},OE=(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>`,d=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}${d}</div>`,f=`<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">${f}</div>`:f},DE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,PE=(e,t,a)=>{const l=`${e.key}__url`,r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0,i=e.key?t[e.key]:void 0,u=r??i??e.text??"",s=!u,o=s?"":u,c=s?"show-placeholder":"",d=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",m=Ze(e.tooltip),f=m?` data-tooltip="${se(m)}" data-variable-key="${e.key||""}"`:"",E=m&&s?"":"hidden",b=a&&m,h=m&&s?"rte-variable-with-icon":"";let v="";b?v=`<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>`:m&&(v=`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${se(m)}" ></i>`);const g=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${se(e.placeholder||"")}"${d}${f} class="variable-chip rte-report-url ${c}${h?` ${h}`:""}">${o}${v}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${DE}${g}</span>`:g},ME=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,BE=(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}"`:"",d=Ze(e.tooltip),m=d?` data-tooltip="${se(d)}" data-variable-key="${e.key||""}"`:"",f=d&&u?"rte-variable-with-icon":"",E=d&&u?"":"hidden",b=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${se(e.placeholder||"")}"${c}${m} class="variable-chip rte-markdown-name ${o}${f?` ${f}`:""}">${s}${d?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${se(d)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${ME}${b}</span>`:b},FE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,RE=(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}"`:"",d=e.sourceTextKey?` data-source-text-key="${se(e.sourceTextKey)}"`:"",m=Ze(e.tooltip),f=m?` data-tooltip="${se(m)}" data-variable-key="${e.key||""}"`:"",E=m&&u?"rte-variable-with-icon":"",b=m&&u?"":"hidden",h=`<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${se(e.placeholder||"")}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E?` ${E}`:""}">${s}${m?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${b}" data-variable-key="${e.key}" data-tooltip="${se(m)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${FE}${h}</span>`:h},HE=(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="${se(e.placeholder)}"`:"",c=r,d=`<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}">${d}</div>`,f=`<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">${f}</div>`:f},$E=(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="${se(e.placeholder)}"`:"",c=r,m=typeof c=="string"&&c.startsWith("请补充:")?' data-is-placeholder="true"':"",f=`<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>`,E=`<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${f}</div>`,b=`<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${E}</div>`;return e.required?`<div ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper rte-richtext-required">${b}</div>`:b},UE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,qE=(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">${UE}${i}</span>`:i},zE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,VE=(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?se(e.placeholder):"",i=r?` placeholder="${r}"`:"",u=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",s=a||e.placeholder||"",o=Xa(s),c=`<input type="text" inputmode="numeric" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${se(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">${zE}${m}</span>`:m},GE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,Ks=(e,t,a,l)=>{const n=e.maxCount||9,r=a[e.key]||1,i=Math.min(r,n);if(e.required){const o=e.exclusionGroup?`data-group="${e.exclusionGroup}"`:"",c=Ze(e.tooltip);let d="";for(let m=0;m<i;m++){const f=`${e.key}_${m}`,E=t[f]||"",b=!E,h=b?"":se(E).replace(/\n/g,"<br/>"),v=b?"show-placeholder":"",g=c&&b?"rte-variable-with-icon":"",y=c?` data-tooltip="${se(c)}" data-variable-key="${e.key||""}"`:"",S=c&&b?"":"hidden",_=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",w=l&&c;let P="";w?P=`<span contenteditable="false" class="rte-report-dropdown-host ${S}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>`:c&&(P=`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${S}" data-variable-key="${e.key}" data-tooltip="${se(c)}" ></i>`);const L=`<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${m}" data-placeholder="${e.placeholder||""}"${_}${y} class="variable-chip ${v}${g?` ${g}`:""}">${h}${P}</span>`;m===0?d+=`<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${GE}${L}</span>`:d+=L}return d}const u=Ze(e.tooltip);let s="";for(let o=0;o<i;o++){const c=`${e.key}_${o}`,d=t[c]||"",m=!d,f=m?"":se(d).replace(/\n/g,"<br/>"),E=m?"show-placeholder":"",b=u&&m?"rte-variable-with-icon":"",h=u?` data-tooltip="${se(u)}" data-variable-key="${e.key||""}"`:"",v=u&&m?"":"hidden",g=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",y=l&&u;let S="";y?S=`<span contenteditable="false" class="rte-report-dropdown-host ${v}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>`:u&&(S=`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${se(u)}" ></i>`);const _=`<span contenteditable="true" data-type="variable" data-key="${c}" data-multi-key="${e.key}" data-index="${o}" data-placeholder="${e.placeholder||""}"${g}${h} class="variable-chip ${E}${b?` ${b}`:""}">${f}${S}</span>`;s+=_}return s},YE=(e,t,a)=>Ks(e,t,a,!0).replace(/data-node-type="multi-variable"/g,'data-node-type="multi-variable-select"'),pr=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,WE=(e,t)=>{const a=e.key,l=t[a],n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Ze(e.tooltip),i=r?` data-tooltip="${se(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",d=2*Math.PI*6.5,m=d*(1-o/100),f=`<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="${d}" 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>${f}</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="${se(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="${se(o)}">${se(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`}else{const o=e.placeholder||"请粘贴想要分析的抖音视频链接",c=r?"rte-variable-with-icon":"",d=r?"":"hidden",m=`<span contenteditable="true" data-type="variable" data-key="${a}" data-node-type="video-url" data-placeholder="${se(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 ${d}" data-variable-key="${a}" data-tooltip="${se(r)}" ></i>`:""}</span>`;return e.required?`<span ${e.exclusionGroup?`data-group="${e.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">${pr}${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">${pr}${s}</span>`:s},jE=(e,t)=>{const a=e.key,l=t[a],n=e.exclusionGroup?` data-group="${e.exclusionGroup}"`:"",r=Ze(e.tooltip),i=r?` data-tooltip="${se(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||"上传中...",d=l.thumbnail||"",m=2*Math.PI*6.5,f=m*(1-o/100),E=`<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="${f}" 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="${se(d)}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${E}</span><span class="video-label">${se(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="${se(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="${se(o)}">${se(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">${se(o)}</span>${r?`<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${c}" data-upload-key="${a}" data-tooltip="${se(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">${pr}${s}</span>`:s},XE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,KE=(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">${XE}${u}</span>`:u},QE=[{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:"国外"}]}],JE=`<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,ZE=(e,t)=>{const a=t[e.key]||e.defaultValue||"",l=e.cascaderOptions&&e.cascaderOptions.length>0?e.cascaderOptions:QE,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">${JE}${s}</span>`:s};function e1(e,t,a,l,n,r={},i,u,s,o){if(!e.current)return;const c=/[;;,,。.!!??::、]/,d=h=>{const v=(h??"").trim();return v.length===1&&c.test(v)},m=h=>{const v=h??"",g=v.match(new RegExp(`^\\s*(${c.source})`));if(!g)return null;const y=g[1],S=v.replace(new RegExp(`^\\s*${c.source}`),"");return{punct:y,rest:S}},f=h=>`<span data-type="text" class="rte-inline-punct" contenteditable="false">${h}</span>`,E=[];let b=0;for(;b<t.length;){const h=t[b],v=b+1<t.length?t[b+1]:null;let g=!1;if(h.type==="text"&&(h.text?.includes("icon-bitian")||h.className==="rte-text-required")&&v){const T=v.type==="upload"&&v.exclusionGroup==="fileInput"&&h.exclusionGroup==="fileInput"&&h.exclusionGroup===v.exclusionGroup,A=v.type==="variable"&&v.exclusionGroup==="textInput"&&h.exclusionGroup==="textInput"&&h.exclusionGroup===v.exclusionGroup;if(T){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let I="";h.className?I=`<span class="${h.className}">${h.text??""}</span>`:I=h.text??"";const C=v,{uploadHtml:B,hintHtml:$}=wE(C,a);E.push(k+I+B+D+$),b+=2;continue}if(A){const k=`<span ${h.exclusionGroup?`data-group="${h.exclusionGroup}"`:""} class="exclusion-wrapper required-upload-group">`,D="</span>";let I="";h.className?I=`<span class="${h.className}">${h.text??""}</span>`:I=h.text??"";const B=js(v,n);E.push(k+I+B+D),b+=2;continue}}const S=h.exclusionGroup?`data-group="${h.exclusionGroup}"`:"",_=h.exclusionGroup?`<span ${S} class="exclusion-wrapper">`:"",w=h.exclusionGroup?"</span>":"";let P="";if(h.type==="tag")P=TE(h,{lockStructure:l,hideButtons:i});else if(h.type==="text")P=xE(h,l);else if(h.type==="variable"&&h.key)P=SE(h,n);else if(h.type==="report-url"&&h.key)P=PE(h,n,o);else if(h.type==="markdown-name"&&h.key)P=BE(h,n);else if(h.type==="markdown"&&h.key)P=RE(h,n);else if(h.type==="upload"&&h.key){const T=!!v&&v.type==="text"&&!v.className&&!v.exclusionGroup&&d(v.text),A=T?(v.text??"").trim():"",x=A?f(A):"";T&&(g=!0),P=_E(h,a,x)}else h.type==="select"&&h.key?P=NE(h,n):h.type==="textarea"&&h.key?P=LE(h,n):h.type==="richtext"&&h.key?P=OE(h,n):h.type==="report-module"&&h.key?P=HE(h,n):h.type==="markdown-module"&&h.key?P=$E(h,n):h.type==="datepicker"&&h.key?P=qE(h,n):h.type==="number-input"&&h.key?P=VE(h,n):h.type==="multi-variable"&&h.key?P=Ks(h,n,r,!1):h.type==="multi-variable-select"&&h.key?P=YE(h,n,r):h.type==="video-url"&&h.key?P=WE(h,s||{}):h.type==="video-upload"&&h.key?P=jE(h,s||{}):h.type==="searchable-select"&&h.key?P=KE(h,n):h.type==="cascader"&&h.key&&(P=ZE(h,n));const L=_+P+w;if(h.type==="text"&&!h.className&&!h.exclusionGroup){if(d(h.text)&&E.length>0){const A=E[E.length-1],x=(h.text??"").trim();E[E.length-1]=`<span class="rte-inline-group">${A}${f(x)}</span>`,b++;continue}const T=m(h.text);if(T&&E.length>0){const A=E[E.length-1];E[E.length-1]=`<span class="rte-inline-group">${A}${f(T.punct)}</span>`;const x=T.rest;if(x){const k=x.replace(/\n/g,"<br/>");E.push(`<span data-type="text" contenteditable="false">${k}</span>`)}b++;continue}}E.push(L),b+=g?2:1}e.current&&(e.current.innerHTML=E.join(""),setTimeout(()=>{if(!e.current)return;e.current.querySelectorAll('[data-type="variable"]').forEach(v=>{if(v.dataset.variableRender==="antd-textarea")return;if(v.innerText.replace(/\n/g,"").replace(/\u200B/g,""))v.classList.remove("show-placeholder");else{const S=Array.from(v.childNodes),_=v.querySelector(".variable-info-icon");S.forEach(P=>{if(P.nodeType===Node.TEXT_NODE){v.removeChild(P);return}P.nodeType===Node.ELEMENT_NODE&&P.tagName==="BR"&&v.removeChild(P)});const w=document.createTextNode("");_&&_.parentNode===v?v.insertBefore(w,_):v.firstChild?v.insertBefore(w,v.firstChild):v.appendChild(w),v.classList.add("show-placeholder")}})},0))}function t1(e,t,a,l,n={},r,i,u,s,o,c,d,m){const f=N.useRef(new Set),E=N.useRef(""),b=N.useRef(!1),h=N.useRef({}),v=N.useCallback(()=>{if(!e.current)return;if(t.length===0){e.current.innerHTML="";return}const g=t.filter(A=>A.key&&A.type!=="report-module"&&A.type!=="markdown-module").map(A=>`${A.type}:${A.key}`).join("|");E.current!==g&&(E.current=g,f.current=new Set,b.current=!0);const y=b.current;let S={};const _={},w=new Set,P=!!e.current?.__tempVariableValues;if(e.current&&!y){if(m&&!P){const x=new Set;e.current.querySelectorAll('[data-type="variable"]').forEach(k=>{k.dataset.key&&x.add(k.dataset.key)});for(const k of Object.keys(m.current))x.has(k)||delete m.current[k]}e.current.querySelectorAll('[data-type="variable"]').forEach(x=>{const k=x.dataset.key;if(!k)return;!P&&!x.getAttribute("data-report-url")&&m?.current&&delete m.current[k];let D="";if(x.dataset.variableRender==="antd-textarea"){const I=(x.getAttribute("data-value")||"").trim();try{D=I?decodeURIComponent(I).replace(/\r\n/g,`
|
|
61
61
|
`).trim():""}catch{D=I.trim()}}else{const I=(x.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
62
62
|
`);D=I.replace(/\n/g,"").trim().length>0?I:""}if(D)f.current.add(k);else if(f.current.has(k)){w.add(k);const I=x.getAttribute("data-node-type");I==="report-url"?w.add(`${k}__url`):I==="markdown-name"&&w.add(`${k}__name`)}})}const T=e.current.__tempVariableValues;if(T?(S=T,setTimeout(()=>{if(e.current){const A=e.current;A.__tempVariableValues===T&&delete A.__tempVariableValues}},100)):y||(e.current.querySelectorAll('[data-type="variable"]').forEach($=>{const F=$.dataset.key;if(F){const z=$.getAttribute("data-report-url");if(z){const G=$.dataset.multiKey,R=G?`${G}::${F}`:F;_[R]={url:z,name:$.getAttribute("data-report-name")||$.innerText.replace(/\u200B/g,"").trim(),multiKey:G}}const O=()=>{if($.dataset.variableRender==="antd-textarea"){const K=($.getAttribute("data-value")||"").trim();if(!K)return"";try{return decodeURIComponent(K).replace(/\r\n/g,`
|
|
63
63
|
`).trim()}catch{return K.trim()}}const G=($.innerText||"").replace(/\u200B/g,"").replace(/\r\n/g,`
|
|
64
|
-
`);return G.replace(/\n/g,"").trim().length>0?G:""},W=$.getAttribute("data-node-type");if(W==="report-url")z&&(S[`${F}__url`]=z);else{const G=O();G&&(W==="markdown-name"?S[`${F}__name`]=G:S[F]=G)}}}),e.current.querySelectorAll('[data-type="select"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.getAttribute("data-value")||"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="searchable-select"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.getAttribute("data-value")||"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="textarea"]').forEach($=>{const F=$.dataset.key;if(F){const z=$.value.replace(/[\u200B]/g,"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="richtext"]').forEach($=>{const F=$.dataset.key;if(F){const z=$.getAttribute("data-node-type")||"",O=z==="report-module"||z==="markdown-module",W=O?($.innerHTML||"").replace(/[\u200B]/g,"").trim():($.textContent||"").replace(/[\u200B]/g,"").trim();if(O){const G=Number.parseInt($.getAttribute("data-module-index")||"0",10);S[`${F}__module_${Number.isFinite(G)?G:0}`]=W}else W&&(S[F]=W)}}),e.current.querySelectorAll('[data-type="datepicker"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.getAttribute("data-value")||"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="number-input"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.value||"").trim();z&&(S[F]=z)}})),o&&Object.keys(o).length>0){const A=new Set(t.filter(k=>k.type==="upload"&&k.key).map(k=>k.key)),x={};y||Object.entries(o).forEach(([k,D])=>{if(!Array.isArray(D))return;let I=0;for(let B=0;B<D.length;B++)`${k}_${B}`in S&&I++;let C=-1;for(let B=0;B<D.length;B++)f.current.has(`${k}_${B}`)&&(C=B);if(C>=I&&I<D.length)for(let B=I;B<D.length;B++)w.add(`${k}_${B}`)}),Object.entries(o).forEach(([k,D])=>{A.has(k)||(Array.isArray(D)?D.forEach((I,C)=>{I!=null&&String(I).trim()!==""&&(x[`${k}_${C}`]=String(I))}):D!=null&&String(D).trim()!==""&&(t.find(C=>C.key===k&&C.type==="report-url")?x[`${k}__url`]=String(D):x[k]=String(D)))}),Object.entries(x).forEach(([k,D])=>{const I=k in S,C=w.has(k),B=h.current[k]!==D;!C&&(!I||B)&&(S[k]=D)});for(const k of Object.keys(h.current))!(k in x)&&k in S&&delete S[k];h.current=x}if(JE(e,t,a,l,S,n,u,s,c,d),m&&e.current)for(const[A,{name:x,url:k}]of Object.entries(m.current)){const D=e.current.querySelector(`[data-type="variable"][data-key="${A}"]`);if(console.log("[RTE-REPORT] restore loop",{key:A,foundEl:!!D,hostBefore:!!D?.querySelector(".rte-report-dropdown-host")}),!D)continue;const I=D.querySelector(".rte-report-dropdown-host");I&&(I.style.display="",I.style.visibility="",I.classList.remove("hidden"),I.classList.add("rte-report-dropdown-host-quiet"));const C=[document.createTextNode(x)];I&&C.push(I),D.setAttribute("data-report-url",k),D.setAttribute("data-report-name",x),D.removeAttribute("data-tooltip"),D.contentEditable="false",D.classList.add("rte-report-name-chip"),D.classList.remove("show-placeholder","rte-variable-with-icon"),D.replaceChildren(...C),Hl(D),console.log("[RTE-REPORT] restore done",{key:A,hostAfter:!!D.querySelector(".rte-report-dropdown-host")})}if(y&&(b.current=!1),setTimeout(()=>{if(Ja(e),m?.current)for(const[A,x]of Object.entries(m.current))_[A]||(_[A]=x);if(Object.keys(_).length>0&&e.current)for(const[A,x]of Object.entries(_)){let k=null;if(x.multiKey){const C=A.split("::")[1];k=e.current.querySelector(`[data-type="variable"][data-multi-key="${x.multiKey}"][data-key="${C}"]`)}else k=e.current.querySelector(`[data-type="variable"][data-key="${A}"]`);if(!k)continue;const D=k.querySelector(".rte-report-dropdown-host");D&&(D.style.display="",D.style.visibility="",D.classList.remove("hidden"),D.classList.add("rte-report-dropdown-host-quiet"));const I=[document.createTextNode(x.name)];D&&I.push(D),k.classList.remove("show-placeholder","rte-variable-with-icon"),k.classList.add("rte-report-name-chip"),k.setAttribute("data-report-url",x.url),k.setAttribute("data-report-name",x.name),k.contentEditable="false",k.replaceChildren(...I),Hl(k)}Za(e,t,a,c)},0),r?.current){const{key:A,offset:x}=r.current;setTimeout(()=>{if(!e.current)return;const k=e.current.querySelector(`[data-type="variable"][data-key="${A}"]`);if(k){if(k.dataset.variableRender==="antd-textarea"){const D=k.querySelector("textarea");if(D){D.focus();try{const I=D.value?.length??0;D.setSelectionRange(Math.min(x,I),Math.min(x,I))}catch{}r.current=null;return}}try{const D=document.createRange(),I=document.createTreeWalker(k,NodeFilter.SHOW_TEXT,null);let C=0,B=null,$=0;for(;I.nextNode();){const F=I.currentNode,z=F.textContent?.length||0;if(C+z>=x){B=F,$=x-C;break}C+=z}if(B){D.setStart(B,Math.min($,B.textContent?.length||0)),D.collapse(!0);const F=window.getSelection();F&&(F.removeAllRanges(),F.addRange(D),k.focus())}else{D.selectNodeContents(k),D.collapse(!1);const F=window.getSelection();F&&(F.removeAllRanges(),F.addRange(D),k.focus())}}catch{const D=document.createRange();D.selectNodeContents(k),D.collapse(!1);const I=window.getSelection();I&&(I.removeAllRanges(),I.addRange(D),k.focus())}r.current=null}},0)}},[t,a,l,e,n,r,i,u,s,o,c,d]);N.useEffect(()=>{v()},[v])}function e1(e,t,a,l,n){N.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 f=c.dataset.tooltip||"";let E=!1;try{const h=JSON.parse(f);h&&h.type==="steps"&&Array.isArray(h.images)&&(E=!0)}catch{}if(E){const b=c.closest('[data-type="upload"], [data-type="video-upload"]');l({key:m,anchorEl:b||c,type:"upload"})}else{const b=c.closest('[data-type="upload"], [data-type="video-upload"]');l({key:m,anchorEl:b||c,type:"upload"})}}return}const d=o.target?.closest('[data-type="upload"]');if(d){const m=d.dataset.key;if(m){const f=a[m];f&&i(f)&&l({key:m,anchorEl:d,type:"upload-preview"})}}},s=o=>{if(n)return;const c=o.target?.closest(".upload-info-icon"),d=o.relatedTarget;if(d?.closest?.(".rte-tooltip-overlay"))return;if(c&&c.classList.contains("upload-info-icon")){const f=c.closest('[data-type="upload"], [data-type="video-upload"]');if(d&&f&&f.contains(d))return;if(!d||!r.contains(d))l(null);else{const E=d.closest('[data-type="upload"], [data-type="video-upload"]');(!E||E!==f)&&l(null)}return}const m=o.target?.closest('[data-type="upload"], [data-type="video-upload"]');if(m){const f=d;if(f?.closest?.(".rte-tooltip-overlay")||f&&m.contains(f))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 t1(e,t,a,l,n){N.useEffect(()=>{const r=e.current;if(!r)return;const i=c=>{if(l==="hideTagClose")return;const d=c.currentTarget,m=d.dataset.tooltip,f=d.dataset.tagKey||"";m&&a({key:f,anchorEl:d,type:"tag"})},u=c=>{n||c.relatedTarget?.closest?.(".rte-tooltip-overlay")||a(null)};let s;const o=()=>{r.querySelectorAll(".tag-node[data-tooltip]").forEach(d=>{d.addEventListener("mouseenter",i),d.addEventListener("mouseleave",u)})};return s=requestAnimationFrame(()=>{s=requestAnimationFrame(o)}),()=>{cancelAnimationFrame(s),r.querySelectorAll(".tag-node[data-tooltip]").forEach(d=>{d.removeEventListener("mouseenter",i),d.removeEventListener("mouseleave",u)})}},[t,e,a,l,n])}function a1(e,t,a,l){N.useEffect(()=>{const n=e.current;if(!n)return;const r=u=>{if(u.target?.closest(".rte-report-dropdown-host"))return;const o=u.target?.closest(".variable-info-icon");if(o&&o.classList.contains("variable-info-icon")){const c=o.dataset.variableKey;c&&a({key:c,anchorEl:o,type:"variable"});return}},i=u=>{if(l)return;const s=u.target,o=u.relatedTarget;if(o?.closest?.(".rte-tooltip-overlay"))return;if(s?.closest?.(".variable-info-icon")){if(!o||!n.contains(o)){a(null);return}!!o.closest?.(".variable-info-icon")||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 l1(e,t,a,l,n){N.useEffect(()=>{const r=e.current;if(!r)return;const i=d=>typeof d=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(d):d.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(d.name||""),u=d=>{const m=d.currentTarget,f=m.dataset.fileName,E=m.closest('[data-type="upload"]'),b=E?.dataset.key||"",h=b?a[b]:null;if(h&&i(h)){l({key:b,anchorEl:E||m,type:"upload-preview"});return}f&&l({key:b,anchorEl:E||m,type:"upload-label"})},s=d=>{n||d.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 n1(e,t,a,l,n,r){N.useEffect(()=>{const i=setTimeout(()=>{Za(e,t,a,n),Ul(e,t,a,l,n)},0);return()=>clearTimeout(i)},[a,t,e,l,n,r])}function r1(e,t){const a=N.useRef(0),l=N.useRef(0);N.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,d=0;const m=()=>{c=!0},f=()=>{c=!1,d=Date.now()},E=()=>{d=Date.now()},b=g=>{i(g.target)&&(a.current=Date.now()),u(g.target)&&(l.current=Date.now())},h=()=>{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 y=window.getSelection();if(!y||y.rangeCount===0||t.current||n||c||Date.now()-d<500)return;const S=y.getRangeAt(0);if(!S.collapsed)return e.current.contains(S.commonAncestorContainer),void 0;const _=y.anchorNode;if(!_||!e.current.contains(_))return;let w=!1,P=!1;if(_.nodeType===Node.ELEMENT_NODE){const T=_;(T.closest('[data-type="datepicker"]')||T.closest(".rte-datepicker-wrapper")||T.closest(".rte-datepicker-host"))&&(w=!0),(T.closest('[data-type="select"]')||T.closest(".rte-select-wrapper")||T.closest(".rte-select-host"))&&(P=!0)}else if(_.parentElement){const T=_.parentElement;(T.closest('[data-type="datepicker"]')||T.closest(".rte-datepicker-wrapper")||T.closest(".rte-datepicker-host"))&&(w=!0),(T.closest('[data-type="select"]')||T.closest(".rte-select-wrapper")||T.closest(".rte-select-host"))&&(P=!0)}if(w||P)return;let L=null;if(_.nodeType===Node.ELEMENT_NODE?L=_.closest('[data-type="variable"]'):_.nodeType===Node.TEXT_NODE&&_.parentElement&&(L=_.parentElement.closest('[data-type="variable"]')),!L){if(Date.now()-r>500)return;const T=e.current.querySelectorAll('[data-type="variable"]');if(T.length>0){let A=null;for(const x of Array.from(T))if(x.style.display!=="none"){A=x;break}if(!A&&T.length>0&&(A=T[0]),A){const x=document.createRange();x.selectNodeContents(A),x.collapse(!1),y.removeAllRanges(),y.addRange(x),A.focus()}else y.removeAllRanges()}else y.removeAllRanges()}},v=e.current;return v&&(v.addEventListener("compositionstart",m),v.addEventListener("compositionend",f),v.addEventListener("input",E)),document.addEventListener("mousedown",s),document.addEventListener("mouseup",o),document.addEventListener("focusin",b),document.addEventListener("selectionchange",h),()=>{v&&(v.removeEventListener("compositionstart",m),v.removeEventListener("compositionend",f),v.removeEventListener("input",E)),document.removeEventListener("mousedown",s),document.removeEventListener("mouseup",o),document.removeEventListener("focusin",b),document.removeEventListener("selectionchange",h)}},[e,t])}var Nl={exports:{}},i1=Nl.exports,Ks;function Qs(){return Ks||(Ks=1,function(e,t){(function(a,l){e.exports=l()})(i1,function(){var a=1e3,l=6e4,n=36e5,r="millisecond",i="second",u="minute",s="hour",o="day",c="week",d="month",m="quarter",f="year",E="date",b="Invalid Date",h=/^(\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(I){var C=["th","st","nd","rd"],B=I%100;return"["+I+(C[(B-20)%10]||C[B]||C[0])+"]"}},y=function(I,C,B){var $=String(I);return!$||$.length>=C?I:""+Array(C+1-$.length).join(B)+I},S={s:y,z:function(I){var C=-I.utcOffset(),B=Math.abs(C),$=Math.floor(B/60),F=B%60;return(C<=0?"+":"-")+y($,2,"0")+":"+y(F,2,"0")},m:function I(C,B){if(C.date()<B.date())return-I(B,C);var $=12*(B.year()-C.year())+(B.month()-C.month()),F=C.clone().add($,d),z=B-F<0,O=C.clone().add($+(z?-1:1),d);return+(-($+(B-F)/(z?F-O:O-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:f,w:c,d:o,D:E,h:s,m:u,s:i,ms:r,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},_="en",w={};w[_]=g;var P="$isDayjsObject",L=function(I){return I instanceof k||!(!I||!I[P])},T=function I(C,B,$){var F;if(!C)return _;if(typeof C=="string"){var z=C.toLowerCase();w[z]&&(F=z),B&&(w[z]=B,F=z);var O=C.split("-");if(!F&&O.length>1)return I(O[0])}else{var W=C.name;w[W]=C,F=W}return!$&&F&&(_=F),F||!$&&_},A=function(I,C){if(L(I))return I.clone();var B=typeof C=="object"?C:{};return B.date=I,B.args=arguments,new k(B)},x=S;x.l=T,x.i=L,x.w=function(I,C){return A(I,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var k=function(){function I(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[P]=!0}var C=I.prototype;return C.parse=function(B){this.$d=function($){var F=$.date,z=$.utc;if(F===null)return new Date(NaN);if(x.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var O=F.match(h);if(O){var W=O[2]-1||0,G=(O[7]||"0").substring(0,3);return z?new Date(Date.UTC(O[1],W,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)):new Date(O[1],W,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)}}return new Date(F)}(B),this.init()},C.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},C.$utils=function(){return x},C.isValid=function(){return this.$d.toString()!==b},C.isSame=function(B,$){var F=A(B);return this.startOf($)<=F&&F<=this.endOf($)},C.isAfter=function(B,$){return A(B)<this.startOf($)},C.isBefore=function(B,$){return this.endOf($)<A(B)},C.$g=function(B,$,F){return x.u(B)?this[$]:this.set(F,B)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(B,$){var F=this,z=!!x.u($)||$,O=x.p(B),W=function(ce,ge){var he=x.w(F.$u?Date.UTC(F.$y,ge,ce):new Date(F.$y,ge,ce),F);return z?he:he.endOf(o)},G=function(ce,ge){return x.w(F.toDate()[ce].apply(F.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ge)),F)},R=this.$W,K=this.$M,re=this.$D,le="set"+(this.$u?"UTC":"");switch(O){case f:return z?W(1,0):W(31,11);case d:return z?W(1,K):W(0,K+1);case c:var Y=this.$locale().weekStart||0,ae=(R<Y?R+7:R)-Y;return W(z?re-ae:re+(6-ae),K);case o:case E:return G(le+"Hours",0);case s:return G(le+"Minutes",1);case u:return G(le+"Seconds",2);case i:return G(le+"Milliseconds",3);default:return this.clone()}},C.endOf=function(B){return this.startOf(B,!1)},C.$set=function(B,$){var F,z=x.p(B),O="set"+(this.$u?"UTC":""),W=(F={},F[o]=O+"Date",F[E]=O+"Date",F[d]=O+"Month",F[f]=O+"FullYear",F[s]=O+"Hours",F[u]=O+"Minutes",F[i]=O+"Seconds",F[r]=O+"Milliseconds",F)[z],G=z===o?this.$D+($-this.$W):$;if(z===d||z===f){var R=this.clone().set(E,1);R.$d[W](G),R.init(),this.$d=R.set(E,Math.min(this.$D,R.daysInMonth())).$d}else W&&this.$d[W](G);return this.init(),this},C.set=function(B,$){return this.clone().$set(B,$)},C.get=function(B){return this[x.p(B)]()},C.add=function(B,$){var F,z=this;B=Number(B);var O=x.p($),W=function(K){var re=A(z);return x.w(re.date(re.date()+Math.round(K*B)),z)};if(O===d)return this.set(d,this.$M+B);if(O===f)return this.set(f,this.$y+B);if(O===o)return W(1);if(O===c)return W(7);var G=(F={},F[u]=l,F[s]=n,F[i]=a,F)[O]||1,R=this.$d.getTime()+B*G;return x.w(R,this)},C.subtract=function(B,$){return this.add(-1*B,$)},C.format=function(B){var $=this,F=this.$locale();if(!this.isValid())return F.invalidDate||b;var z=B||"YYYY-MM-DDTHH:mm:ssZ",O=x.z(this),W=this.$H,G=this.$m,R=this.$M,K=F.weekdays,re=F.months,le=F.meridiem,Y=function(ge,he,$e,ze){return ge&&(ge[he]||ge($,z))||$e[he].slice(0,ze)},ae=function(ge){return x.s(W%12||12,ge,"0")},ce=le||function(ge,he,$e){var ze=ge<12?"AM":"PM";return $e?ze.toLowerCase():ze};return z.replace(v,function(ge,he){return he||function($e){switch($e){case"YY":return String($.$y).slice(-2);case"YYYY":return x.s($.$y,4,"0");case"M":return R+1;case"MM":return x.s(R+1,2,"0");case"MMM":return Y(F.monthsShort,R,re,3);case"MMMM":return Y(re,R);case"D":return $.$D;case"DD":return x.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Y(F.weekdaysMin,$.$W,K,2);case"ddd":return Y(F.weekdaysShort,$.$W,K,3);case"dddd":return K[$.$W];case"H":return String(W);case"HH":return x.s(W,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return ce(W,G,!0);case"A":return ce(W,G,!1);case"m":return String(G);case"mm":return x.s(G,2,"0");case"s":return String($.$s);case"ss":return x.s($.$s,2,"0");case"SSS":return x.s($.$ms,3,"0");case"Z":return O}return null}(ge)||O.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(B,$,F){var z,O=this,W=x.p($),G=A(B),R=(G.utcOffset()-this.utcOffset())*l,K=this-G,re=function(){return x.m(O,G)};switch(W){case f:z=re()/12;break;case d:z=re();break;case m:z=re()/3;break;case c:z=(K-R)/6048e5;break;case o:z=(K-R)/864e5;break;case s:z=K/n;break;case u:z=K/l;break;case i:z=K/a;break;default:z=K}return F?z:x.a(z)},C.daysInMonth=function(){return this.endOf(d).$D},C.$locale=function(){return w[this.$L]},C.locale=function(B,$){if(!B)return this.$L;var F=this.clone(),z=T(B,$,!0);return z&&(F.$L=z),F},C.clone=function(){return x.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()},I}(),D=k.prototype;return A.prototype=D,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",o],["$M",d],["$y",f],["$D",E]].forEach(function(I){D[I[1]]=function(C){return this.$g(C,I[0],I[1])}}),A.extend=function(I,C){return I.$i||(I(C,k,A),I.$i=!0),A},A.locale=T,A.isDayjs=L,A.unix=function(I){return A(1e3*I)},A.en=w[_],A.Ls=w,A.p={},A})}(Nl)),Nl.exports}var u1=Qs();const Il=nn(u1);var Ll={exports:{}},s1=Ll.exports,Js;function o1(){return Js||(Js=1,function(e,t){(function(a,l){e.exports=l(Qs())})(s1,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})}(Ll)),Ll.exports}o1();function Fa(e){"@babel/helpers - typeof";return Fa=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},Fa(e)}function c1(e,t){if(Fa(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var l=a.call(e,t);if(Fa(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d1(e){var t=c1(e,"string");return Fa(t)=="symbol"?t:t+""}function f1(e,t,a){return(t=d1(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 eo(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){f1(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 p1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},h1=eo(eo({},p1),{},{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 b1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},to={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},h1),timePickerLocale:Object.assign({},b1)};to.lang.ok="确定",Il.locale("zh-cn");const{RangePicker:m1}=pe.DatePicker,v1=({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]=N.useState(()=>{if(!l)return null;const b=l.split(",");return b.length===2&&b[0]&&b[1]?[Il(b[0]),Il(b[1])]:null}),[o,c]=N.useState(null),d=b=>b?i&&b.isAfter(Il(),"day")?!0:!r||!o||!o[0]?!1:Math.abs(b.diff(o[0],"days"))>r:!1,m=b=>{c(b)},f=b=>{if(s(b),c(null),b&&b[0]&&b[1]){const h=`${b[0].format("YYYY-MM-DD")},${b[1].format("YYYY-MM-DD")}`;e.setAttribute("data-value",h),t(a,h)}else e.setAttribute("data-value",""),t(a,"")},E=b=>{c(b?u:null)};return Tt.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(m1,{value:u,disabledDate:d,onCalendarChange:m,onChange:f,onOpenChange:E,placeholder:[n||"开始日期",n||"结束日期"],style:{width:"100%"},size:"small",allowClear:!0,locale:to,getPopupContainer:()=>document.body,popupClassName:"rte-datepicker-dropdown"})}),e)},g1=e=>{const[t,a]=N.useState([]);return N.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(v1,{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 d=c;(d.classList?.contains("rte-datepicker-host")||d.querySelector?.(".rte-datepicker-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-datepicker-host")||d.querySelector?.(".rte-datepicker-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},ao=({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:d,background:m="transparent",hideButtons:f,maxHeight:E,minHeight:b,editorMinHeight:h,editorPadding:v,footerPadding:g,collapsed:y=!1,reportAnalyze:S,markdownAnalyze:_,markdownNameAnalyze:w,onCollapsedChange:P,collapseTransitionMs:L=260,debugTooltipSticky:T=!1,nodeValues:A,onFilesChange:x,onFooterFilesChange:k,showFooterUpload:D=!0,footerFiles:I,videoUrlParse:C,videoUpload:B,reportListFetch:$,onReportGoGenerate:F,onViewReport:z,hideCurrentSessionReport:O,reportNameResolve:W})=>{const[G,R]=pe.message.useMessage(),K=N.useRef(null),re=N.useRef(null),le=N.useRef(null),Y=N.useRef(null),ae=N.useRef(null),ce=N.useRef(null),ge=N.useRef("");if(!ge.current){const Q=Math.random().toString(36).slice(2,8);ge.current=`rte_${Q}`}const[he,$e]=N.useState({});N.useEffect(()=>{x?.(he)},[he,x]);const[ze,It]=N.useState([]),ia=N.useRef(!1);N.useEffect(()=>{if(!I)return;if(!(I.length===ze.length&&I.every((ne,ie)=>{const be=ze[ie];return be&&ne.name===be.name&&ne.size===be.size&&ne.lastModified===be.lastModified})))if(I.reduce((be,se)=>be+se.size,0)>52428800){const be=[];let se=0;for(const Te of I){if(se+Te.size>52428800)break;be.push(Te),se+=Te.size}G.error("文件总大小不能超过 50MB"),It(be)}else ia.current=!0,It(I)},[I]),N.useEffect(()=>{if(ia.current){ia.current=!1;return}k?.(ze)},[ze,k]);const[Ol,$a]=N.useState(null),[mr,Ua]=N.useState(null),[Dl,Pl]=N.useState(null),[nt,qa]=N.useState({}),[vr,gr]=N.useState(""),[X,te]=N.useState(!1),de=N.useRef(null),Ee=N.useRef(null),{tooltipPortal:we,setPopoverVisible:Re}=gE({config:e,files:he,debugTooltipSticky:T,videoState:nt}),{handleFileChange:Et,handleRemoveFile:rt}=tc({config:e,messageApi:G,activeBatchKey:mr,activeFileKey:Ol,activeBatchStartIndex:Dl,setActiveFileKey:$a,setActiveBatchKey:Ua,setActiveBatchStartIndex:Pl,setFiles:$e}),pt=N.useRef(null),[Lt,Ge]=N.useState({showLeft:!1,showRight:!1}),at=N.useCallback(()=>{const Q=pt.current;Q&&Ge({showLeft:Q.scrollLeft>0,showRight:Q.scrollLeft+Q.clientWidth<Q.scrollWidth-1})},[]),it=N.useCallback(Q=>{if(!Q.target.files||Q.target.files.length===0)return;const ne=10*1024*1024,ie=50*1024*1024,be=Te=>Te.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Te.name||""),se=Array.from(Q.target.files).filter(Te=>be(Te)&&Te.size>ne?(G.error("图片大小不能超过 10MB"),!1):!0);It(Te=>{const fe=Te.reduce((Ne,Ie)=>Ne+Ie.size,0),ve=[];let Ae=fe;for(const Ne of se){if(Ae+Ne.size>ie){G.error("文件总大小不能超过 50MB");break}ve.push(Ne),Ae+=Ne.size}return ve.length>0?[...Te,...ve]:Te}),Q.target.value="",setTimeout(at,0)},[G,at]),O1=N.useCallback(Q=>{It(ne=>ne.filter((ie,be)=>be!==Q)),setTimeout(at,0)},[at]),D1=N.useCallback(()=>{const Q=pt.current;Q&&Q.scrollBy({left:200,behavior:"smooth"})},[]),P1=N.useCallback(()=>{const Q=pt.current;Q&&Q.scrollBy({left:-200,behavior:"smooth"})},[]),Er=N.useRef(!1),M1=N.useRef(null),{handleMouseDown:B1,handleMouseMove:F1,handleMouseUp:R1,handleDoubleClick:H1}=Tc({lockStructure:r,onAgentExit:s,editorRef:Y,setPopoverVisible:Re,isDraggingRef:Er,mouseDownPosRef:M1}),[fo,Ml]=N.useState(!1),po=N.useRef(null),[$1,ho]=N.useState(!0),U1=N.useRef(0),[bo,q1]=N.useState(58),[z1,V1]=N.useState(58),[mo,G1]=N.useState(!1),[Bl,yr]=N.useState(null),za=N.useRef(!1),Va=N.useRef(!1),ht=N.useRef(null),[Tr,Ga]=N.useState({}),Ot=N.useRef(()=>{}),Dt=N.useRef({}),ua=N.useRef({}),[zt,Fl]=N.useState({}),vo=N.useRef(()=>{}),Y1=N.useRef({}),xr=N.useRef(zt);N.useEffect(()=>{xr.current=zt},[zt]);const[Vt,Cr]=N.useState({}),go=N.useRef(()=>{}),Eo=N.useRef(Vt);N.useEffect(()=>{Eo.current=Vt},[Vt]);const[bt,Ya]=N.useState(()=>{const Q={};return e.forEach(ne=>{He(ne.type)&&ne.key&&(Q[ne.key]=1)}),Q});cc({config:e,editorRef:Y,files:he,setFiles:$e,multiVariableCounts:bt,setMultiVariableCounts:Ya,reportAnalyzeState:Tr,setReportAnalyzeState:Ga,markdownAnalyzeState:zt,setMarkdownAnalyzeState:Fl,markdownNameAnalyzeState:Vt,setMarkdownNameAnalyzeState:Cr,nodeValues:A,resolvedReportNamesRef:Dt});const yo=N.useRef(A);if(A!==yo.current&&(yo.current=A,A)){const Q={};let ne=!1;e.forEach(ie=>{if(He(ie.type)&&ie.key){const be=A[ie.key],se=Array.isArray(be)?be.filter(Te=>Te.trim().length>0):be;if(Array.isArray(se)&&se.length>0){const Te=ie.maxCount??9,fe=Math.min(se.length+1,Te);bt[ie.key]!==fe&&(Q[ie.key]=fe,ne=!0)}}}),ne&&Ya(ie=>({...ie,...Q}))}const ke=bc({config:e,reportAnalyzeState:Tr,markdownAnalyzeState:zt,markdownNameAnalyzeState:Vt}),Wa=N.useRef(()=>{}),{handleReportUrlBlur:W1,handleMarkdownBlur:j1,handleMarkdownNameBlur:X1,handleMultiVariableNameResolve:Rl}=fc({reportAnalyze:S,markdownAnalyze:_,markdownNameAnalyze:w,reportAnalyzeState:Tr,setReportAnalyzeState:Ga,markdownAnalyzeState:zt,setMarkdownAnalyzeState:Fl,markdownNameAnalyzeState:Vt,setMarkdownNameAnalyzeState:Cr,editorRef:Y,reportAnalyzeRef:Ot,markdownAnalyzeRef:vo,markdownNameAnalyzeRef:go,markdownAnalyzeStateRef:xr,markdownNameAnalyzeStateRef:Eo,reportNameResolve:W,applyReportNameChipRef:Wa});Go(Y,W1,[ke]),Jo(Y,X1,[ke]),Zo(Y,j1,[ke]),N.useEffect(()=>{const Q=Y.current;if(!Q||!W)return;const ne=ie=>{const be=ie.target;if(!be)return;const se=be.closest?.('[data-type="variable"][data-multi-key]');if(!se||!Q.contains(se)||se.getAttribute("data-report-url"))return;const Te=se.dataset.key;if(!Te)return;const fe=(se.innerText||"").replace(/[\u200B\n]/g,"").trim(),ve=se.dataset.multiKey,Ne=(ve?ke.find(Ie=>He(Ie.type)&&Ie.key===ve):void 0)?.type==="multi-variable-select"?"multi-variable-select":"multi-variable";Rl(Te,fe,Ne)};return Q.addEventListener("focusout",ne),()=>Q.removeEventListener("focusout",ne)},[Y,Rl,ke,W]),N.useEffect(()=>{if(!Y.current||!W)return;const ne=window.requestAnimationFrame(()=>{if(!Y.current)return;Y.current.querySelectorAll('[data-type="variable"][data-multi-key]:not([data-report-url])').forEach(be=>{const se=be.dataset.key;if(!se)return;const Te=(be.innerText||"").replace(/[\u200B\n]/g,"").trim();if(!/^https?:\/\//i.test(Te))return;const fe=Dt.current[se];if(fe?.url===Te){Wa.current(se,fe.name,fe.url);return}if(ua.current[se]===Te)return;ua.current[se]=Te;const ve=be.dataset.multiKey,Ne=(ve?ke.find(Ie=>He(Ie.type)&&Ie.key===ve):void 0)?.type==="multi-variable-select"?"multi-variable-select":"multi-variable";Rl(se,Te,Ne)});for(const be of Object.keys(ua.current)){const se=Y.current.querySelector(`[data-type="variable"][data-key="${be}"]`);(!se||se.getAttribute("data-report-url"))&&delete ua.current[be]}});return()=>window.cancelAnimationFrame(ne)},[bt,Y,W,ke,Rl]),Vo(Y,[ke]),Wa.current=(Q,ne,ie)=>{const be=Y.current;if(!be)return;const se=be.querySelector(`[data-type="variable"][data-key="${Q}"]`);if(!se){Dt.current[Q]={name:ne,url:ie};return}if(se.getAttribute("data-report-url")===ie){Dt.current[Q]={name:ne,url:ie};return}const Te=(se.innerText||"").replace(/[\u200B\n]/g,"").trim();if(/^https?:\/\//i.test(Te)&&Te!==ie)return;Dt.current[Q]={name:ne,url:ie},ua.current[Q]===ie&&delete ua.current[Q];const fe=se.querySelector(".rte-report-dropdown-host");fe&&(fe.style.display="",fe.style.visibility="",fe.classList.remove("hidden"),fe.classList.add("rte-report-dropdown-host-quiet"));const ve=[document.createTextNode(ne)];fe&&ve.push(fe),se.classList.remove("show-placeholder","rte-variable-with-icon"),se.classList.add("rte-report-name-chip"),se.setAttribute("data-report-url",ie),se.setAttribute("data-report-name",ne),se.contentEditable="false",se.replaceChildren(...ve),Hl(se),setTimeout(()=>{Ar.current()},0)};const K1=N.useCallback((Q,ne,ie)=>{Y.current&&(ne==="report-url"?(Wa.current(Q,ie.name,ie.url),setTimeout(()=>{Ot.current(Q,ie.url)},0)):(ne==="multi-variable"||ne==="multi-variable-select")&&(Wa.current(Q,ie.name,ie.url),ne==="multi-variable-select"&&setTimeout(()=>{Ot.current(Q,ie.url)},0)))},[Y,Ot]),Q1=jo(Y,$,K1,F,z,bt,O);ZE(Y,ke,he,r,bt,po,void 0,f,void 0,A,nt,!!$,Dt);const Sr=N.useRef(new Set),To=N.useRef(ke),xo=N.useRef(A);(To.current!==ke||xo.current!==A)&&(To.current=ke,xo.current=A,Sr.current=new Set),N.useEffect(()=>{if(!A||!ke||ke.length===0)return;const Q=ke.filter(fe=>fe.type==="upload"&&fe.key);if(Q.length===0)return;const ne={},ie=(fe,ve)=>{ve&&(ve instanceof File?ne[fe]=ve:typeof ve=="string"&&ve.trim()&&(ne[fe]=ve.trim()))};for(const fe of Q){const ve=fe.key;if(Sr.current.has(ve))continue;const Ae=A[ve],Ne=typeof fe.maxCount=="number"&&fe.maxCount>1;if(Array.isArray(Ae)&&Ae.length>0){Ne?Ae.forEach((Ie,Xe)=>ie(`${ve}-${Xe}`,Ie)):ie(ve,Ae[0]);continue}if(Ae&&!Array.isArray(Ae)){ie(ve,Ae);continue}if(Ne)for(let Ie=0;Ie<fe.maxCount;Ie++){const Xe=`${ve}-${Ie}`,Pt=A[Xe];if(!Pt)break;ie(Xe,Pt)}}if(Object.keys(ne).length===0)return;for(const fe of Q)A[fe.key]!==void 0&&Sr.current.add(fe.key);$e(fe=>{const ve={...fe};let Ae=!1;for(const Ne of Q){const Ie=Ne.key;if(A[Ie]===void 0)continue;if(typeof Ne.maxCount=="number"&&Ne.maxCount>1)for(let Pt=0;Pt<Ne.maxCount;Pt++){const _r=`${Ie}-${Pt}`;!ne[_r]&&fe[_r]&&(ve[_r]=null,Ae=!0)}}for(const[Ne,Ie]of Object.entries(ne))fe[Ne]!==Ie&&(ve[Ne]=Ie,Ae=!0);return Ae?ve:fe});const be=Object.entries(ne).filter(([,fe])=>typeof fe=="string");if(be.length===0)return;const se=async fe=>{const ve=fe.split("/").pop()?.split("?")[0]||"file",Ae=decodeURIComponent(ve),Ne=async Ie=>{const Xe=await Ie.blob();return new File([Xe],Ae,{type:Xe.type||"application/octet-stream"})};try{const Ie=`/api/image-proxy?url=${encodeURIComponent(fe)}`,Xe=await fetch(Ie);if(Xe.ok)return Ne(Xe)}catch{}return null};let Te=!1;return Promise.all(be.map(async([fe,ve])=>{const Ae=await se(ve);return Ae?{key:fe,file:Ae}:null})).then(fe=>{if(Te)return;const ve={};for(const Ae of fe)Ae&&(ve[Ae.key]=Ae.file);Object.keys(ve).length>0&&$e(Ae=>{const Ne={...Ae};let Ie=!1;for(const[Xe,Pt]of Object.entries(ve))typeof Ne[Xe]=="string"&&(Ne[Xe]=Pt,Ie=!0);return Ie?Ne:Ae})}),()=>{Te=!0}},[A,ke]);const ja=N.useRef(new Set),Co=N.useRef(""),So=(e||[]).filter(Q=>Q.key&&Q.type!=="report-module"&&Q.type!=="markdown-module").map(Q=>`${Q.type}:${Q.key}`).join("|");Co.current!==So&&(Co.current=So,ja.current=new Set),N.useEffect(()=>{if(!A||!e||e.length===0)return;const Q=e.filter(ie=>ie.type==="report-url"&&ie.key),ne=e.filter(ie=>ie.type==="multi-variable-select"&&ie.key);if(!(Q.length===0&&ne.length===0)){for(const ie of Q){const be=ie.key;if(ja.current.has(be))continue;const se=A[be]??A[`${be}__url`];if(!se||typeof se=="string"&&!se.trim())continue;const Te=Array.isArray(se)?se[0]:String(se);Te&&(ja.current.add(be),setTimeout(()=>{Ot.current(be,Te)},100))}for(const ie of ne){const be=ie.key,se=A[be];!Array.isArray(se)||se.length===0||se.forEach((Te,fe)=>{const ve=typeof Te=="string"?Te.trim():"";if(!ve)return;const Ae=`${be}_${fe}`;ja.current.has(Ae)||(ja.current.add(Ae),setTimeout(()=>{Ot.current(Ae,ve)},100))})}}},[A,e,Ot]),e1(Y,ke,he,Re,T),t1(Y,ke,Re,f,T),l1(Y,ke,he,Re,T),a1(Y,ke,Re,T),n1(Y,ke,he,Ml,nt,A),rc(Y,C,nt,qa,[ke]);const J1=ic(B,qa,Y);uc(Y,nt,Re,T),r1(Y,Er);const Ao=Po(Y),Z1=Bo(Y),ey=Ro(Y),wo=zo(Y);N.useEffect(()=>{if(!Y.current)return;Y.current.querySelectorAll(".rte-richtext-toggle").forEach(ne=>{const ie=ne.getAttribute("data-expanded")==="true";ne.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>'})},[ke,Y]);const _o=g1(Y),{measureExpandedContentHeight:Xa}=pc({collapsed:y,collapseTransitionMs:L,contentRef:re,contentBodyRef:le,editorRef:Y,debugIdRef:ge,setCollapsedContentMaxHeightPx:q1,setExpandedContentMaxHeightPx:V1,setIsCollapseAnimating:G1,effectiveConfig:ke,files:he,multiVariableCounts:bt,selectPortalsLength:Ao.length,datePickerPortalsLength:_o.length,variablePortalsLength:wo.length}),ty=()=>{if(y)return;const Q=le.current;if(!Q)return;const ne=Math.ceil(Q.getBoundingClientRect().height||0);ne>0&&yr(ne),za.current=!0,Va.current=!1,ht.current&&(window.clearTimeout(ht.current),ht.current=null)};N.useEffect(()=>{const Q=()=>{za.current&&(Va.current=!0,ht.current&&window.clearTimeout(ht.current),ht.current=window.setTimeout(()=>{ht.current=null,za.current=!1,Va.current=!1,yr(null),window.requestAnimationFrame(()=>Xa())},450))};return window.addEventListener("focus",Q),()=>window.removeEventListener("focus",Q)},[Xa]),N.useEffect(()=>{!za.current||!Va.current||(ht.current&&(window.clearTimeout(ht.current),ht.current=null),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{yr(null),Xa(),za.current=!1,Va.current=!1})}))},[he,Xa]),hc({config:e,editorRef:Y,setIsEmpty:ho,setIsFormValid:Ml});const ay=gc({disabled:l,collapsed:y,onCollapsedChange:P,config:e,lockStructure:r,editorRef:Y,containerRef:K,fileInputRef:ae,onBeforeFilePickerOpen:ty,files:he,setFiles:$e,handleRemoveFile:rt,setActiveBatchKey:Ua,setActiveBatchStartIndex:Pl,setActiveFileKey:$a,isDraggingRef:Er,richtextPrevScrollTopRef:U1,videoState:nt,setVideoState:qa,videoFileInputRef:de,activeVideoKeyRef:Ee,onImagePreview:Q=>{gr(Q),te(!0)}}),Ka=Ec({config:e,editorRef:Y,setIsEmpty:ho,setIsFormValid:Ml,setReportAnalyzeState:Ga,setMarkdownAnalyzeState:Fl,setMarkdownNameAnalyzeState:Cr,collapsed:y,measureExpandedContentHeight:Xa,effectiveConfig:ke,files:he,multiVariableCounts:bt,setMultiVariableCounts:Ya,savedCursorRef:po,videoState:nt,resolvedReportNamesRef:Dt}),Ar=N.useRef(Ka);Ar.current=Ka;const ly=xc({disabled:l,config:e,multiVariableCounts:bt,setMultiVariableCounts:Ya,editorRef:Y,handleInput:Ka,markdownAnalyzeRef:vo,reportAnalyzeRef:Ot,markdownNameAnalyzeRef:go,markdownAnalyzeStateRef:xr,markdownRawTextRef:Y1,setMarkdownAnalyzeState:Fl,setFooterFiles:It,footerFiles:ze,messageApi:G,onPasteUnsupported:()=>G.warning("暂不支持上传该文件类型")});vc({config:e,effectiveConfig:ke,files:he,editorRef:Y,setIsFormValid:Ml,multiVariableCounts:bt,setMultiVariableCounts:Ya,videoState:nt});const wr=N.useCallback((Q,ne)=>{delete Dt.current[Q],ne==="report-url"&&Ga(ie=>({...ie,[Q]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}))},[Ga]),ny=N.useCallback(Q=>{const{nodeKey:ne,nodeType:ie}=Qo(Q);wr(ne,ie),Q.focus(),Ar.current()},[wr]),ry=Ko(Y,ny,bt),ko=Cc({config:e,files:he,footerFiles:ze,onFooterFilesClear:()=>It([]),onSend:t,isProcessing:a,disabled:l,loading:o,isFormValid:fo,editorRef:Y,markdownAnalyzeState:zt,markdownNameAnalyzeState:Vt,videoState:nt}),iy=yc({disabled:l,lockStructure:r,config:e,editorRef:Y,handleInput:Ka,onEnterSend:ko,onReportChipDeleted:wr}),uy={...n?{width:typeof n=="number"?`${n}px`:n}:{},...d?{border:d}:{},...m?{background:m}:{},...E?{maxHeight:typeof E=="number"?`${E}px`:E}:{},...b&&!y?{minHeight:typeof b=="number"?`${b}px`:b}:{},...ze.length>0?{height:"220px"}:{},...E?{"--rte-richtext-fullscreen-height":typeof E=="number"?`${E}px`:E}:{},...h?{"--rte-editor-min-height":typeof h=="number"?`${h}px`:h}:{},...v?{"--rte-editor-padding":v}:{},...g?{"--rte-footer-padding":g}:{}},sy=typeof L=="number"&&Number.isFinite(L)&&L>=0?L:260,oy={overflow:"hidden"},cy=Bl!=null?`${Bl}px`:y?`${bo}px`:`${Math.max(z1,bo)}px`,dy=Bl!=null||y||mo?"hidden":"auto",No=N.useRef(y),Io=No.current!==y;Io&&(No.current=y);const fy=Bl!=null?"none":Io||mo?`max-height ${sy}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none",py={maxHeight:cy,minHeight:y?0:void 0,overflow:dy,overscrollBehavior:"contain",transition:fy,willChange:"max-height"};return q.jsxs("div",{className:"rich-text-editor",style:uy,"data-disabled":l,ref:K,children:[R,q.jsxs("div",{className:"rich-text-editor-content",ref:re,style:oy,children:[ze.length>0&&q.jsxs("div",{className:"rte-footer-files-wrapper",children:[Lt.showLeft&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-left",children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-left",onClick:P1,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:pt,onScroll:at,children:ze.map((Q,ne)=>{const ie=Q.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Q.name||""),be=Q.size<1024?`${Q.size}B`:Q.size<1024*1024?`${Math.round(Q.size/1024)}KB`:`${(Q.size/(1024*1024)).toFixed(1)}MB`;return q.jsxs("div",{className:"rte-footer-file-chip",children:[ie?q.jsx(pe.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(Q),alt:Q.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 se=(Q.name||"").split(".").pop()?.toLowerCase()||"";return["xls","xla","xlb","xlc","xlm","xlsx","xlt","xlw","csv","tsv","iif"].includes(se)?"icon-a-xlsxcsv":["doc","docx","dot","odt","rtf","wiz"].includes(se)?"icon-docx":["ppt","pptx","pot","ppa","pps","pwz"].includes(se)?"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(se)?"icon-txt":se==="pdf"?"icon-pdf":["html","htm","json","ics","ifb"].includes(se)?"icon-a-htmljson":se==="md"?"icon-md":"icon-lianjie"})()}`})})}),q.jsxs("div",{className:"rte-footer-file-info",children:[q.jsx("span",{className:"rte-footer-file-name",title:Q.name,children:Q.name}),q.jsx("span",{className:"rte-footer-file-size",children:be})]}),q.jsx("span",{className:"rte-footer-file-remove",onClick:()=>O1(ne),children:q.jsx("i",{className:"iconfont icon-guanbi ",style:{width:"8px",height:"8px",fontSize:"8px",display:"flex",alignItems:"center"}})})]},`${Q.name}-${Q.size}-${ne}`)})}),Lt.showRight&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-right",children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-right",onClick:D1,children:q.jsx("svg",{style:{width:"16px",height:"16px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})})]}),q.jsxs("div",{ref:le,className:"rich-text-editor-content-body",style:py,children:[q.jsx("div",{ref:Y,className:`rte-editor ${e.length===0?"rte-editor-default":""} ${$1&&c?"rte-editor-empty":""}`,contentEditable:e.length===0,suppressContentEditableWarning:!0,"data-placeholder":c,onMouseDown:B1,onMouseMove:F1,onMouseUp:R1,onClick:ay,onDoubleClick:H1,onInput:Ka,onKeyDown:iy,onPaste:ly}),q.jsx("input",{type:"file",ref:ae,className:"rte-file-input",accept:".csv,.xlsx,.xls,.txt,.pdf,image/*",onChange:Et}),q.jsx("input",{type:"file",ref:de,className:"rte-file-input",accept:"video/*",onChange:Q=>{const ne=Q.target.files?.[0],ie=Ee.current;ne&&ne.size>1024*1024*1024?G.warning("视频文件不能超过1GB"):ne&&ie&&J1(ie,ne),Ee.current=null,de.current&&(de.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:f!=="hideAgent"&&q.jsx(pe.Dropdown,{placement:"topLeft",menu:{items:i.filter(Q=>Q.isShowNew!==1).map(Q=>({key:Q.key,label:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Q.icon&&q.jsx("i",{className:Q.icon}),q.jsx("span",{children:Q.label})]}),onClick:()=>{u?.(Q)}}))},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(Q=>Q.type==="tag")&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"rte-footer-upload-btn",onClick:()=>ce.current?.click(),title:"上传文件",children:q.jsx("i",{className:"iconfont icon-lianjie",style:{fontSize:"16px"}})}),q.jsx("input",{type:"file",ref:ce,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:it})]})]}),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 Q=e.find(ie=>ie.type==="tag");if(!Q||!Q.text)return null;const ne=i.find(ie=>ie.label===Q.text);return!ne||ne.points===void 0||ne.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(ne.points)]}),ne.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:ko,disabled:a||l||o||!fo,className:"rich-text-editor-send-button",children:a||o?q.jsx("span",{className:"rte-send-spinner"}):q.jsx("i",{className:"iconfont icon-fasong"})})]})]}),we,q.jsx(pe.Image,{style:{display:"none"},src:vr,preview:{visible:X,onVisibleChange:Q=>te(Q)}}),_o,Ao,Z1,ey,wo,Q1,ry]})};ao.__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 lo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",E1=[{label:"5页",value:5},{label:"10页",value:10},{label:"15页",value:15},{label:"30页",value:30}],y1=({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:lo,alt:"自动加载",width:14,height:14}),q.jsxs("span",{children:["正在加载第",a.currentPage,"/",a.totalPages,"页"]}),q.jsx(pe.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:lo,alt:"自动加载",width:14,height:14}),q.jsx("span",{children:"自动加载"})]}),q.jsx(pe.Select,{value:t,onChange:n,options:E1,disabled:e,size:"small",className:"auto_load_select",popupMatchSelectWidth:84})]})]}),T1=({current:e,loadIcon:t,pageSize:a,total:l,cachedPages:n,loadedCount:r,autoLoading:i=!1,loadingProgress:u,onChange:s,onLoadNextPage:o,onStartAutoLoad:c,onStopLoading:d})=>{const[m,f]=N.useState(5),E=Math.ceil(l/a),b=N.useMemo(()=>n.length>=E,[n,E]),h=()=>Array.from({length:E},(y,S)=>S+1).filter(y=>!n.includes(y)).slice(0,m),v=(g,y,S)=>{const _=n.includes(g);return y==="prev"||y==="next"||y==="jump-prev"||y==="jump-next"?q.jsx("div",{className:"pageBox",children:S}):q.jsxs("div",{className:"pageBox",style:{backgroundColor:e===g?"#2563EB":"#f5f5f5",color:e===g?"#fff":_?"#171717":"#a3a3a3"},children:[g,!_&&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,"条数据"]}),!b&&q.jsx(y1,{loadIcon:t||void 0,autoLoading:i,batchSize:m,loadingProgress:u,disabled:!o||!c,onBatchSizeChange:f,onLoadNextPage:()=>o?.(),onStartAutoLoad:()=>{const g=h();c?.(g)},onStopLoad:()=>d?.()})]}),q.jsx(pe.Pagination,{current:e,pageSize:a,total:l,onChange:g=>s(g),showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>"",itemRender:v})]})},no=e=>{const{loading:t,autoLoading:a,loadingProgress:l,columns:n=[],dataSource:r=[],total:i,current:u,pageSize:s,cachedPages:o,onChangePage:c,onLoadNextPage:d,onStartAutoLoad:m,onStopLoading:f,...E}=e,b=N.useRef(null),h=N.useCallback(v=>{c(v),o.includes(v)&&b.current?.scrollTo({key:`${(v-1)*s+1}`})},[o,c,s]);return q.jsxs("div",{className:"flex flex-col",children:[q.jsx(pe.Table,{ref:b,...E,columns:n,dataSource:r,pagination:!1,virtual:!0}),q.jsx(T1,{loading:t,autoLoading:a,loadingProgress:l,current:u,pageSize:s,total:i,loadedCount:r.length,cachedPages:o,onChange:h,onLoadNextPage:d,onStartAutoLoad:m,onStopLoading:f})]})};no.__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 ro=({texts:e=[],placeholder:t="请输入内容",animationSpeed:a=100,autoPlay:l=!0,value:n,onChange:r,...i})=>{const[u,s]=N.useState(""),[o,c]=N.useState(0),[d,m]=N.useState(!1),[f,E]=N.useState(!1),[b,h]=N.useState(!1),v=N.useRef(void 0),g=N.useRef(void 0),y=N.useRef(e),S=N.useRef(o),_=N.useRef(f),w=N.useRef(u);N.useEffect(()=>{y.current=e,S.current=o,_.current=f,w.current=u});const P=N.useCallback((I,C)=>{let B=0;h(!0);const $=()=>{B<I.length?(s(I.slice(0,B+1)),B++,g.current=window.setTimeout($,a)):(h(!1),C?.())};$()},[a]),L=N.useCallback(I=>{let C=w.current.length;const B=()=>{C>0?(s(w.current.slice(0,C-1)),C--,g.current=window.setTimeout(B,a/2)):I?.()};B()},[a]),T=N.useCallback(()=>{if(y.current.length===0||_.current)return;m(!0);const I=y.current[S.current];w.current?L(()=>{P(I,()=>{v.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),m(!1)},2e3)})}):P(I,()=>{v.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),m(!1)},2e3)})},[L,P]);N.useEffect(()=>(l&&e.length>0&&!f&&T(),()=>{v.current&&window.clearTimeout(v.current),g.current&&window.clearTimeout(g.current)}),[o,f,l,e.length,T]),N.useEffect(()=>{!d&&l&&e.length>0&&!f&&T()},[o,d,l,e.length,f,T]);const A=I=>{E(!0),v.current&&window.clearTimeout(v.current),g.current&&window.clearTimeout(g.current),m(!1),h(!1),i.onFocus?.(I)},x=I=>{E(!1),!n&&e.length>0&&(s(""),c(0)),i.onBlur?.(I)},k=I=>{r?.(I.target.value),i.onChange?.(I)},D=()=>f||n?t:u||t;return q.jsxs("div",{style:{position:"relative"},children:[q.jsx(pe.Input,{...i,value:n,onChange:k,onFocus:A,onBlur:x,placeholder:D(),style:{...i.style,position:"relative",zIndex:1}}),!f&&!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}),b&&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 G.replace(/\n/g,"").trim().length>0?G:""},W=$.getAttribute("data-node-type");if(W==="report-url")z&&(S[`${F}__url`]=z);else{const G=O();G&&(W==="markdown-name"?S[`${F}__name`]=G:S[F]=G)}}}),e.current.querySelectorAll('[data-type="select"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.getAttribute("data-value")||"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="searchable-select"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.getAttribute("data-value")||"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="textarea"]').forEach($=>{const F=$.dataset.key;if(F){const z=$.value.replace(/[\u200B]/g,"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="richtext"]').forEach($=>{const F=$.dataset.key;if(F){const z=$.getAttribute("data-node-type")||"",O=z==="report-module"||z==="markdown-module",W=O?($.innerHTML||"").replace(/[\u200B]/g,"").trim():($.textContent||"").replace(/[\u200B]/g,"").trim();if(O){const G=Number.parseInt($.getAttribute("data-module-index")||"0",10);S[`${F}__module_${Number.isFinite(G)?G:0}`]=W}else W&&(S[F]=W)}}),e.current.querySelectorAll('[data-type="datepicker"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.getAttribute("data-value")||"").trim();z&&(S[F]=z)}}),e.current.querySelectorAll('[data-type="number-input"]').forEach($=>{const F=$.dataset.key;if(F){const z=($.value||"").trim();z&&(S[F]=z)}})),o&&Object.keys(o).length>0){const A=new Set(t.filter(k=>k.type==="upload"&&k.key).map(k=>k.key)),x={};y||Object.entries(o).forEach(([k,D])=>{if(!Array.isArray(D))return;let I=0;for(let B=0;B<D.length;B++)`${k}_${B}`in S&&I++;let C=-1;for(let B=0;B<D.length;B++)f.current.has(`${k}_${B}`)&&(C=B);if(C>=I&&I<D.length)for(let B=I;B<D.length;B++)w.add(`${k}_${B}`)}),Object.entries(o).forEach(([k,D])=>{A.has(k)||(Array.isArray(D)?D.forEach((I,C)=>{I!=null&&String(I).trim()!==""&&(x[`${k}_${C}`]=String(I))}):D!=null&&String(D).trim()!==""&&(t.find(C=>C.key===k&&C.type==="report-url")?x[`${k}__url`]=String(D):x[k]=String(D)))}),Object.entries(x).forEach(([k,D])=>{const I=k in S,C=w.has(k),B=h.current[k]!==D;!C&&(!I||B)&&(S[k]=D)});for(const k of Object.keys(h.current))!(k in x)&&k in S&&delete S[k];h.current=x}if(e1(e,t,a,l,S,n,u,s,c,d),m&&e.current)for(const[A,{name:x,url:k}]of Object.entries(m.current)){const D=e.current.querySelector(`[data-type="variable"][data-key="${A}"]`);if(console.log("[RTE-REPORT] restore loop",{key:A,foundEl:!!D,hostBefore:!!D?.querySelector(".rte-report-dropdown-host")}),!D)continue;const I=D.querySelector(".rte-report-dropdown-host");I&&(I.style.display="",I.style.visibility="",I.classList.remove("hidden"),I.classList.add("rte-report-dropdown-host-quiet"));const C=[document.createTextNode(x)];I&&C.push(I),D.setAttribute("data-report-url",k),D.setAttribute("data-report-name",x),D.removeAttribute("data-tooltip"),D.contentEditable="false",D.classList.add("rte-report-name-chip"),D.classList.remove("show-placeholder","rte-variable-with-icon"),D.replaceChildren(...C),Rl(D),console.log("[RTE-REPORT] restore done",{key:A,hostAfter:!!D.querySelector(".rte-report-dropdown-host")})}if(y&&(b.current=!1),setTimeout(()=>{if(Ka(e),m?.current)for(const[A,x]of Object.entries(m.current))_[A]||(_[A]=x);if(Object.keys(_).length>0&&e.current)for(const[A,x]of Object.entries(_)){let k=null;if(x.multiKey){const C=A.split("::")[1];k=e.current.querySelector(`[data-type="variable"][data-multi-key="${x.multiKey}"][data-key="${C}"]`)}else k=e.current.querySelector(`[data-type="variable"][data-key="${A}"]`);if(!k)continue;const D=k.querySelector(".rte-report-dropdown-host");D&&(D.style.display="",D.style.visibility="",D.classList.remove("hidden"),D.classList.add("rte-report-dropdown-host-quiet"));const I=[document.createTextNode(x.name)];D&&I.push(D),k.classList.remove("show-placeholder","rte-variable-with-icon"),k.classList.add("rte-report-name-chip"),k.setAttribute("data-report-url",x.url),k.setAttribute("data-report-name",x.name),k.contentEditable="false",k.replaceChildren(...I),Rl(k)}Qa(e,t,a,c)},0),r?.current){const{key:A,offset:x}=r.current;setTimeout(()=>{if(!e.current)return;const k=e.current.querySelector(`[data-type="variable"][data-key="${A}"]`);if(k){if(k.dataset.variableRender==="antd-textarea"){const D=k.querySelector("textarea");if(D){D.focus();try{const I=D.value?.length??0;D.setSelectionRange(Math.min(x,I),Math.min(x,I))}catch{}r.current=null;return}}try{const D=document.createRange(),I=document.createTreeWalker(k,NodeFilter.SHOW_TEXT,null);let C=0,B=null,$=0;for(;I.nextNode();){const F=I.currentNode,z=F.textContent?.length||0;if(C+z>=x){B=F,$=x-C;break}C+=z}if(B){D.setStart(B,Math.min($,B.textContent?.length||0)),D.collapse(!0);const F=window.getSelection();F&&(F.removeAllRanges(),F.addRange(D),k.focus())}else{D.selectNodeContents(k),D.collapse(!1);const F=window.getSelection();F&&(F.removeAllRanges(),F.addRange(D),k.focus())}}catch{const D=document.createRange();D.selectNodeContents(k),D.collapse(!1);const I=window.getSelection();I&&(I.removeAllRanges(),I.addRange(D),k.focus())}r.current=null}},0)}},[t,a,l,e,n,r,i,u,s,o,c,d]);N.useEffect(()=>{v()},[v])}function a1(e,t,a,l,n){N.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 f=c.dataset.tooltip||"";let E=!1;try{const h=JSON.parse(f);h&&h.type==="steps"&&Array.isArray(h.images)&&(E=!0)}catch{}if(E){const b=c.closest('[data-type="upload"], [data-type="video-upload"]');l({key:m,anchorEl:b||c,type:"upload"})}else{const b=c.closest('[data-type="upload"], [data-type="video-upload"]');l({key:m,anchorEl:b||c,type:"upload"})}}return}const d=o.target?.closest('[data-type="upload"]');if(d){const m=d.dataset.key;if(m){const f=a[m];f&&i(f)&&l({key:m,anchorEl:d,type:"upload-preview"})}}},s=o=>{if(n)return;const c=o.target?.closest(".upload-info-icon"),d=o.relatedTarget;if(d?.closest?.(".rte-tooltip-overlay"))return;if(c&&c.classList.contains("upload-info-icon")){const f=c.closest('[data-type="upload"], [data-type="video-upload"]');if(d&&f&&f.contains(d))return;if(!d||!r.contains(d))l(null);else{const E=d.closest('[data-type="upload"], [data-type="video-upload"]');(!E||E!==f)&&l(null)}return}const m=o.target?.closest('[data-type="upload"], [data-type="video-upload"]');if(m){const f=d;if(f?.closest?.(".rte-tooltip-overlay")||f&&m.contains(f))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 l1(e,t,a,l,n){N.useEffect(()=>{const r=e.current;if(!r)return;const i=c=>{if(l==="hideTagClose")return;const d=c.currentTarget,m=d.dataset.tooltip,f=d.dataset.tagKey||"";m&&a({key:f,anchorEl:d,type:"tag"})},u=c=>{n||c.relatedTarget?.closest?.(".rte-tooltip-overlay")||a(null)};let s;const o=()=>{r.querySelectorAll(".tag-node[data-tooltip]").forEach(d=>{d.addEventListener("mouseenter",i),d.addEventListener("mouseleave",u)})};return s=requestAnimationFrame(()=>{s=requestAnimationFrame(o)}),()=>{cancelAnimationFrame(s),r.querySelectorAll(".tag-node[data-tooltip]").forEach(d=>{d.removeEventListener("mouseenter",i),d.removeEventListener("mouseleave",u)})}},[t,e,a,l,n])}function n1(e,t,a,l){N.useEffect(()=>{const n=e.current;if(!n)return;const r=u=>{if(u.target?.closest(".rte-report-dropdown-host"))return;const o=u.target?.closest(".variable-info-icon");if(o&&o.classList.contains("variable-info-icon")){const c=o.dataset.variableKey;c&&a({key:c,anchorEl:o,type:"variable"});return}},i=u=>{if(l)return;const s=u.target,o=u.relatedTarget;if(o?.closest?.(".rte-tooltip-overlay"))return;if(s?.closest?.(".variable-info-icon")){if(!o||!n.contains(o)){a(null);return}!!o.closest?.(".variable-info-icon")||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 r1(e,t,a,l,n){N.useEffect(()=>{const r=e.current;if(!r)return;const i=d=>typeof d=="string"?/\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(d):d.type?.startsWith("image/")?!0:/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(d.name||""),u=d=>{const m=d.currentTarget,f=m.dataset.fileName,E=m.closest('[data-type="upload"]'),b=E?.dataset.key||"",h=b?a[b]:null;if(h&&i(h)){l({key:b,anchorEl:E||m,type:"upload-preview"});return}f&&l({key:b,anchorEl:E||m,type:"upload-label"})},s=d=>{n||d.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 i1(e,t,a,l,n,r){N.useEffect(()=>{const i=setTimeout(()=>{Qa(e,t,a,n),$l(e,t,a,l,n)},0);return()=>clearTimeout(i)},[a,t,e,l,n,r])}function u1(e,t){const a=N.useRef(0),l=N.useRef(0);N.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,d=0;const m=()=>{c=!0},f=()=>{c=!1,d=Date.now()},E=()=>{d=Date.now()},b=g=>{i(g.target)&&(a.current=Date.now()),u(g.target)&&(l.current=Date.now())},h=()=>{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 y=window.getSelection();if(!y||y.rangeCount===0||t.current||n||c||Date.now()-d<500)return;const S=y.getRangeAt(0);if(!S.collapsed)return e.current.contains(S.commonAncestorContainer),void 0;const _=y.anchorNode;if(!_||!e.current.contains(_))return;let w=!1,P=!1;if(_.nodeType===Node.ELEMENT_NODE){const T=_;(T.closest('[data-type="datepicker"]')||T.closest(".rte-datepicker-wrapper")||T.closest(".rte-datepicker-host"))&&(w=!0),(T.closest('[data-type="select"]')||T.closest(".rte-select-wrapper")||T.closest(".rte-select-host"))&&(P=!0)}else if(_.parentElement){const T=_.parentElement;(T.closest('[data-type="datepicker"]')||T.closest(".rte-datepicker-wrapper")||T.closest(".rte-datepicker-host"))&&(w=!0),(T.closest('[data-type="select"]')||T.closest(".rte-select-wrapper")||T.closest(".rte-select-host"))&&(P=!0)}if(w||P)return;let L=null;if(_.nodeType===Node.ELEMENT_NODE?L=_.closest('[data-type="variable"]'):_.nodeType===Node.TEXT_NODE&&_.parentElement&&(L=_.parentElement.closest('[data-type="variable"]')),!L){if(Date.now()-r>500)return;const T=e.current.querySelectorAll('[data-type="variable"]');if(T.length>0){let A=null;for(const x of Array.from(T))if(x.style.display!=="none"){A=x;break}if(!A&&T.length>0&&(A=T[0]),A){const x=document.createRange();x.selectNodeContents(A),x.collapse(!1),y.removeAllRanges(),y.addRange(x),A.focus()}else y.removeAllRanges()}else y.removeAllRanges()}},v=e.current;return v&&(v.addEventListener("compositionstart",m),v.addEventListener("compositionend",f),v.addEventListener("input",E)),document.addEventListener("mousedown",s),document.addEventListener("mouseup",o),document.addEventListener("focusin",b),document.addEventListener("selectionchange",h),()=>{v&&(v.removeEventListener("compositionstart",m),v.removeEventListener("compositionend",f),v.removeEventListener("input",E)),document.removeEventListener("mousedown",s),document.removeEventListener("mouseup",o),document.removeEventListener("focusin",b),document.removeEventListener("selectionchange",h)}},[e,t])}var _l={exports:{}},s1=_l.exports,Qs;function Js(){return Qs||(Qs=1,function(e,t){(function(a,l){e.exports=l()})(s1,function(){var a=1e3,l=6e4,n=36e5,r="millisecond",i="second",u="minute",s="hour",o="day",c="week",d="month",m="quarter",f="year",E="date",b="Invalid Date",h=/^(\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(I){var C=["th","st","nd","rd"],B=I%100;return"["+I+(C[(B-20)%10]||C[B]||C[0])+"]"}},y=function(I,C,B){var $=String(I);return!$||$.length>=C?I:""+Array(C+1-$.length).join(B)+I},S={s:y,z:function(I){var C=-I.utcOffset(),B=Math.abs(C),$=Math.floor(B/60),F=B%60;return(C<=0?"+":"-")+y($,2,"0")+":"+y(F,2,"0")},m:function I(C,B){if(C.date()<B.date())return-I(B,C);var $=12*(B.year()-C.year())+(B.month()-C.month()),F=C.clone().add($,d),z=B-F<0,O=C.clone().add($+(z?-1:1),d);return+(-($+(B-F)/(z?F-O:O-F))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:f,w:c,d:o,D:E,h:s,m:u,s:i,ms:r,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},_="en",w={};w[_]=g;var P="$isDayjsObject",L=function(I){return I instanceof k||!(!I||!I[P])},T=function I(C,B,$){var F;if(!C)return _;if(typeof C=="string"){var z=C.toLowerCase();w[z]&&(F=z),B&&(w[z]=B,F=z);var O=C.split("-");if(!F&&O.length>1)return I(O[0])}else{var W=C.name;w[W]=C,F=W}return!$&&F&&(_=F),F||!$&&_},A=function(I,C){if(L(I))return I.clone();var B=typeof C=="object"?C:{};return B.date=I,B.args=arguments,new k(B)},x=S;x.l=T,x.i=L,x.w=function(I,C){return A(I,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var k=function(){function I(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[P]=!0}var C=I.prototype;return C.parse=function(B){this.$d=function($){var F=$.date,z=$.utc;if(F===null)return new Date(NaN);if(x.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var O=F.match(h);if(O){var W=O[2]-1||0,G=(O[7]||"0").substring(0,3);return z?new Date(Date.UTC(O[1],W,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)):new Date(O[1],W,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)}}return new Date(F)}(B),this.init()},C.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},C.$utils=function(){return x},C.isValid=function(){return this.$d.toString()!==b},C.isSame=function(B,$){var F=A(B);return this.startOf($)<=F&&F<=this.endOf($)},C.isAfter=function(B,$){return A(B)<this.startOf($)},C.isBefore=function(B,$){return this.endOf($)<A(B)},C.$g=function(B,$,F){return x.u(B)?this[$]:this.set(F,B)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(B,$){var F=this,z=!!x.u($)||$,O=x.p(B),W=function(ce,me){var pe=x.w(F.$u?Date.UTC(F.$y,me,ce):new Date(F.$y,me,ce),F);return z?pe:pe.endOf(o)},G=function(ce,me){return x.w(F.toDate()[ce].apply(F.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(me)),F)},R=this.$W,K=this.$M,re=this.$D,le="set"+(this.$u?"UTC":"");switch(O){case f:return z?W(1,0):W(31,11);case d:return z?W(1,K):W(0,K+1);case c:var Y=this.$locale().weekStart||0,ae=(R<Y?R+7:R)-Y;return W(z?re-ae:re+(6-ae),K);case o:case E:return G(le+"Hours",0);case s:return G(le+"Minutes",1);case u:return G(le+"Seconds",2);case i:return G(le+"Milliseconds",3);default:return this.clone()}},C.endOf=function(B){return this.startOf(B,!1)},C.$set=function(B,$){var F,z=x.p(B),O="set"+(this.$u?"UTC":""),W=(F={},F[o]=O+"Date",F[E]=O+"Date",F[d]=O+"Month",F[f]=O+"FullYear",F[s]=O+"Hours",F[u]=O+"Minutes",F[i]=O+"Seconds",F[r]=O+"Milliseconds",F)[z],G=z===o?this.$D+($-this.$W):$;if(z===d||z===f){var R=this.clone().set(E,1);R.$d[W](G),R.init(),this.$d=R.set(E,Math.min(this.$D,R.daysInMonth())).$d}else W&&this.$d[W](G);return this.init(),this},C.set=function(B,$){return this.clone().$set(B,$)},C.get=function(B){return this[x.p(B)]()},C.add=function(B,$){var F,z=this;B=Number(B);var O=x.p($),W=function(K){var re=A(z);return x.w(re.date(re.date()+Math.round(K*B)),z)};if(O===d)return this.set(d,this.$M+B);if(O===f)return this.set(f,this.$y+B);if(O===o)return W(1);if(O===c)return W(7);var G=(F={},F[u]=l,F[s]=n,F[i]=a,F)[O]||1,R=this.$d.getTime()+B*G;return x.w(R,this)},C.subtract=function(B,$){return this.add(-1*B,$)},C.format=function(B){var $=this,F=this.$locale();if(!this.isValid())return F.invalidDate||b;var z=B||"YYYY-MM-DDTHH:mm:ssZ",O=x.z(this),W=this.$H,G=this.$m,R=this.$M,K=F.weekdays,re=F.months,le=F.meridiem,Y=function(me,pe,He,Ve){return me&&(me[pe]||me($,z))||He[pe].slice(0,Ve)},ae=function(me){return x.s(W%12||12,me,"0")},ce=le||function(me,pe,He){var Ve=me<12?"AM":"PM";return He?Ve.toLowerCase():Ve};return z.replace(v,function(me,pe){return pe||function(He){switch(He){case"YY":return String($.$y).slice(-2);case"YYYY":return x.s($.$y,4,"0");case"M":return R+1;case"MM":return x.s(R+1,2,"0");case"MMM":return Y(F.monthsShort,R,re,3);case"MMMM":return Y(re,R);case"D":return $.$D;case"DD":return x.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Y(F.weekdaysMin,$.$W,K,2);case"ddd":return Y(F.weekdaysShort,$.$W,K,3);case"dddd":return K[$.$W];case"H":return String(W);case"HH":return x.s(W,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return ce(W,G,!0);case"A":return ce(W,G,!1);case"m":return String(G);case"mm":return x.s(G,2,"0");case"s":return String($.$s);case"ss":return x.s($.$s,2,"0");case"SSS":return x.s($.$ms,3,"0");case"Z":return O}return null}(me)||O.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(B,$,F){var z,O=this,W=x.p($),G=A(B),R=(G.utcOffset()-this.utcOffset())*l,K=this-G,re=function(){return x.m(O,G)};switch(W){case f:z=re()/12;break;case d:z=re();break;case m:z=re()/3;break;case c:z=(K-R)/6048e5;break;case o:z=(K-R)/864e5;break;case s:z=K/n;break;case u:z=K/l;break;case i:z=K/a;break;default:z=K}return F?z:x.a(z)},C.daysInMonth=function(){return this.endOf(d).$D},C.$locale=function(){return w[this.$L]},C.locale=function(B,$){if(!B)return this.$L;var F=this.clone(),z=T(B,$,!0);return z&&(F.$L=z),F},C.clone=function(){return x.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()},I}(),D=k.prototype;return A.prototype=D,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",o],["$M",d],["$y",f],["$D",E]].forEach(function(I){D[I[1]]=function(C){return this.$g(C,I[0],I[1])}}),A.extend=function(I,C){return I.$i||(I(C,k,A),I.$i=!0),A},A.locale=T,A.isDayjs=L,A.unix=function(I){return A(1e3*I)},A.en=w[_],A.Ls=w,A.p={},A})}(_l)),_l.exports}var o1=Js();const kl=ln(o1);var Nl={exports:{}},c1=Nl.exports,Zs;function d1(){return Zs||(Zs=1,function(e,t){(function(a,l){e.exports=l(Js())})(c1,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})}(Nl)),Nl.exports}d1();function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function f1(e,t){if(Ba(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var l=a.call(e,t);if(Ba(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p1(e){var t=f1(e,"string");return Ba(t)=="symbol"?t:t+""}function h1(e,t,a){return(t=p1(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function eo(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 to(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?eo(Object(a),!0).forEach(function(l){h1(e,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eo(Object(a)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(a,l))})}return e}var b1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},m1=to(to({},b1),{},{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 v1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},ao={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},m1),timePickerLocale:Object.assign({},v1)};ao.lang.ok="确定",kl.locale("zh-cn");const{RangePicker:g1}=fe.DatePicker,E1=({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]=N.useState(()=>{if(!l)return null;const b=l.split(",");return b.length===2&&b[0]&&b[1]?[kl(b[0]),kl(b[1])]:null}),[o,c]=N.useState(null),d=b=>b?i&&b.isAfter(kl(),"day")?!0:!r||!o||!o[0]?!1:Math.abs(b.diff(o[0],"days"))>r:!1,m=b=>{c(b)},f=b=>{if(s(b),c(null),b&&b[0]&&b[1]){const h=`${b[0].format("YYYY-MM-DD")},${b[1].format("YYYY-MM-DD")}`;e.setAttribute("data-value",h),t(a,h)}else e.setAttribute("data-value",""),t(a,"")},E=b=>{c(b?u:null)};return Tt.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(g1,{value:u,disabledDate:d,onCalendarChange:m,onChange:f,onOpenChange:E,placeholder:[n||"开始日期",n||"结束日期"],style:{width:"100%"},size:"small",allowClear:!0,locale:ao,getPopupContainer:()=>document.body,popupClassName:"rte-datepicker-dropdown"})}),e)},y1=e=>{const[t,a]=N.useState([]);return N.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(E1,{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 d=c;(d.classList?.contains("rte-datepicker-host")||d.querySelector?.(".rte-datepicker-host"))&&(o=!0)}}),s.removedNodes.forEach(c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c;(d.classList?.contains("rte-datepicker-host")||d.querySelector?.(".rte-datepicker-host"))&&(o=!0)}}),o){u=!0;break}}u&&n()});return r.observe(l,{childList:!0,subtree:!0}),()=>r.disconnect()},[e]),t},lo=({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:d,background:m="transparent",hideButtons:f,maxHeight:E,minHeight:b,editorMinHeight:h,editorPadding:v,footerPadding:g,collapsed:y=!1,reportAnalyze:S,markdownAnalyze:_,markdownNameAnalyze:w,onCollapsedChange:P,collapseTransitionMs:L=260,debugTooltipSticky:T=!1,nodeValues:A,onFilesChange:x,onFooterFilesChange:k,showFooterUpload:D=!0,footerFiles:I,videoUrlParse:C,videoUpload:B,reportListFetch:$,onReportGoGenerate:F,onViewReport:z,hideCurrentSessionReport:O,reportNameResolve:W})=>{const[G,R]=fe.message.useMessage(),K=N.useRef(null),re=N.useRef(null),le=N.useRef(null),Y=N.useRef(null),ae=N.useRef(null),ce=N.useRef(null),me=N.useRef("");if(!me.current){const Q=Math.random().toString(36).slice(2,8);me.current=`rte_${Q}`}const[pe,He]=N.useState({});N.useEffect(()=>{x?.(pe)},[pe,x]);const[Ve,It]=N.useState([]),ia=N.useRef(!1);N.useEffect(()=>{if(!I)return;if(!(I.length===Ve.length&&I.every((ne,ue)=>{const Ee=Ve[ue];return Ee&&ne.name===Ee.name&&ne.size===Ee.size&&ne.lastModified===Ee.lastModified})))if(I.reduce((Ee,oe)=>Ee+oe.size,0)>52428800){const Ee=[];let oe=0;for(const Ae of I){if(oe+Ae.size>52428800)break;Ee.push(Ae),oe+=Ae.size}G.error("文件总大小不能超过 50MB"),It(Ee)}else ia.current=!0,It(I)},[I]),N.useEffect(()=>{if(ia.current){ia.current=!1;return}k?.(Ve)},[Ve,k]);const[Il,Ha]=N.useState(null),[br,$a]=N.useState(null),[Ll,Ol]=N.useState(null),[nt,Ua]=N.useState({}),[mr,vr]=N.useState(""),[X,te]=N.useState(!1),de=N.useRef(null),ve=N.useRef(null),{tooltipPortal:_e,setPopoverVisible:Re}=yE({config:e,files:pe,debugTooltipSticky:T,videoState:nt}),{handleFileChange:gt,handleRemoveFile:rt}=lc({config:e,messageApi:G,activeBatchKey:br,activeFileKey:Il,activeBatchStartIndex:Ll,setActiveFileKey:Ha,setActiveBatchKey:$a,setActiveBatchStartIndex:Ol,setFiles:He}),pt=N.useRef(null),[Lt,Ye]=N.useState({showLeft:!1,showRight:!1}),at=N.useCallback(()=>{const Q=pt.current;Q&&Ye({showLeft:Q.scrollLeft>0,showRight:Q.scrollLeft+Q.clientWidth<Q.scrollWidth-1})},[]),it=N.useCallback(Q=>{if(!Q.target.files||Q.target.files.length===0)return;const ne=10*1024*1024,ue=50*1024*1024,Ee=Ae=>Ae.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Ae.name||""),oe=Array.from(Q.target.files).filter(Ae=>Ee(Ae)&&Ae.size>ne?(G.error("图片大小不能超过 10MB"),!1):!0);It(Ae=>{const he=Ae.reduce((we,Ne)=>we+Ne.size,0),ye=[];let Ce=he;for(const we of oe){if(Ce+we.size>ue){G.error("文件总大小不能超过 50MB");break}ye.push(we),Ce+=we.size}return ye.length>0?[...Ae,...ye]:Ae}),Q.target.value="",setTimeout(at,0)},[G,at]),P1=N.useCallback(Q=>{It(ne=>ne.filter((ue,Ee)=>Ee!==Q)),setTimeout(at,0)},[at]),M1=N.useCallback(()=>{const Q=pt.current;Q&&Q.scrollBy({left:200,behavior:"smooth"})},[]),B1=N.useCallback(()=>{const Q=pt.current;Q&&Q.scrollBy({left:-200,behavior:"smooth"})},[]),gr=N.useRef(!1),F1=N.useRef(null),{handleMouseDown:R1,handleMouseMove:H1,handleMouseUp:$1,handleDoubleClick:U1}=Cc({lockStructure:r,onAgentExit:s,editorRef:Y,setPopoverVisible:Re,isDraggingRef:gr,mouseDownPosRef:F1}),[po,Dl]=N.useState(!1),ho=N.useRef(null),[q1,bo]=N.useState(!0),z1=N.useRef(0),[mo,V1]=N.useState(58),[G1,Y1]=N.useState(58),[vo,W1]=N.useState(!1),[Pl,Er]=N.useState(null),qa=N.useRef(!1),za=N.useRef(!1),ht=N.useRef(null),[yr,Va]=N.useState({}),Ot=N.useRef(()=>{}),qt=N.useRef({}),Tr=N.useRef(!1),Ml=N.useRef(null),xr=N.useCallback(()=>{Tr.current=!0,Ml.current!==null&&window.clearTimeout(Ml.current),Ml.current=window.setTimeout(()=>{Tr.current=!1,Ml.current=null},50)},[]),[zt,Bl]=N.useState({}),go=N.useRef(()=>{}),j1=N.useRef({}),Cr=N.useRef(zt);N.useEffect(()=>{Cr.current=zt},[zt]);const[Vt,Sr]=N.useState({}),Eo=N.useRef(()=>{}),yo=N.useRef(Vt);N.useEffect(()=>{yo.current=Vt},[Vt]);const[Et,Ga]=N.useState(()=>{const Q={};return e.forEach(ne=>{Ue(ne.type)&&ne.key&&(Q[ne.key]=1)}),Q});fc({config:e,editorRef:Y,files:pe,setFiles:He,multiVariableCounts:Et,setMultiVariableCounts:Ga,reportAnalyzeState:yr,setReportAnalyzeState:Va,markdownAnalyzeState:zt,setMarkdownAnalyzeState:Bl,markdownNameAnalyzeState:Vt,setMarkdownNameAnalyzeState:Sr,nodeValues:A,resolvedReportNamesRef:qt});const To=N.useRef(A);if(A!==To.current&&(To.current=A,A)){const Q={};let ne=!1;e.forEach(ue=>{if(Ue(ue.type)&&ue.key){const Ee=A[ue.key],oe=Array.isArray(Ee)?Ee.filter(Ae=>Ae.trim().length>0):Ee;if(Array.isArray(oe)&&oe.length>0){const Ae=ue.maxCount??9,he=Math.min(oe.length+1,Ae);Et[ue.key]!==he&&(Q[ue.key]=he,ne=!0)}}}),ne&&(xr(),Ga(ue=>({...ue,...Q})))}const Le=vc({config:e,reportAnalyzeState:yr,markdownAnalyzeState:zt,markdownNameAnalyzeState:Vt}),Fl=N.useRef(()=>{}),{handleReportUrlBlur:X1,handleMarkdownBlur:K1,handleMarkdownNameBlur:Q1,handleMultiVariableNameResolve:xo}=hc({reportAnalyze:S,markdownAnalyze:_,markdownNameAnalyze:w,reportAnalyzeState:yr,setReportAnalyzeState:Va,markdownAnalyzeState:zt,setMarkdownAnalyzeState:Bl,markdownNameAnalyzeState:Vt,setMarkdownNameAnalyzeState:Sr,editorRef:Y,reportAnalyzeRef:Ot,markdownAnalyzeRef:go,markdownNameAnalyzeRef:Eo,markdownAnalyzeStateRef:Cr,markdownNameAnalyzeStateRef:yo,reportNameResolve:W,applyReportNameChipRef:Fl});Wo(Y,X1,[Le]),ec(Y,Q1,[Le]),tc(Y,K1,[Le]),N.useEffect(()=>{const Q=Y.current;if(!Q||!W)return;const ne=ue=>{const Ee=ue.target;if(!Ee)return;const oe=Ee.closest?.('[data-type="variable"][data-multi-key]');if(!oe)return;const Ae=oe.dataset.key;if(!Ae||Tr.current&&!Q.contains(oe))return;const he=Q.contains(oe)?oe:Q.querySelector(`[data-type="variable"][data-key="${Ae}"]`);if(!he||he.getAttribute("data-report-url"))return;const ye=(he.innerText||"").replace(/[\u200B\n]/g,"").trim(),Ce=he.dataset.multiKey,Ne=(Ce?Le.find($e=>Ue($e.type)&&$e.key===Ce):void 0)?.type==="multi-variable-select"?"multi-variable-select":"multi-variable";xo(Ae,ye,Ne)};return Q.addEventListener("focusout",ne),()=>Q.removeEventListener("focusout",ne)},[Y,xo,Le,W]),Yo(Y,[Le]),Fl.current=(Q,ne,ue)=>{const Ee=Y.current;if(!Ee)return;const oe=Ee.querySelector(`[data-type="variable"][data-key="${Q}"]`);if(!oe){qt.current[Q]={name:ne,url:ue};return}if(oe.getAttribute("data-report-url")===ue){qt.current[Q]={name:ne,url:ue};return}const Ae=oe.getAttribute("data-report-url"),he=(oe.innerText||"").replace(/[\u200B\n]/g,"").trim();if(!(!Ae&&he==="")&&!(Ae===ue||he===ue))return;qt.current[Q]={name:ne,url:ue};const we=oe.querySelector(".rte-report-dropdown-host");we&&(we.style.display="",we.style.visibility="",we.classList.remove("hidden"),we.classList.add("rte-report-dropdown-host-quiet"));const Ne=[document.createTextNode(ne)];we&&Ne.push(we),oe.classList.remove("show-placeholder","rte-variable-with-icon"),oe.classList.add("rte-report-name-chip"),oe.setAttribute("data-report-url",ue),oe.setAttribute("data-report-name",ne),oe.contentEditable="false",oe.replaceChildren(...Ne),Rl(oe),setTimeout(()=>{wr.current()},0)};const J1=N.useCallback((Q,ne,ue)=>{Y.current&&(ne==="report-url"?(Fl.current(Q,ue.name,ue.url),setTimeout(()=>{Ot.current(Q,ue.url)},0)):(ne==="multi-variable"||ne==="multi-variable-select")&&(Fl.current(Q,ue.name,ue.url),ne==="multi-variable-select"&&setTimeout(()=>{Ot.current(Q,ue.url)},0)))},[Y,Ot]),Z1=Ko(Y,$,J1,F,z,Et,O);t1(Y,Le,pe,r,Et,ho,void 0,f,void 0,A,nt,!!$,qt);const Ar=N.useRef(new Set),Co=N.useRef(Le),So=N.useRef(A);(Co.current!==Le||So.current!==A)&&(Co.current=Le,So.current=A,Ar.current=new Set),N.useEffect(()=>{if(!A||!Le||Le.length===0)return;const Q=Le.filter(he=>he.type==="upload"&&he.key);if(Q.length===0)return;const ne={},ue=(he,ye)=>{ye&&(ye instanceof File?ne[he]=ye:typeof ye=="string"&&ye.trim()&&(ne[he]=ye.trim()))};for(const he of Q){const ye=he.key;if(Ar.current.has(ye))continue;const Ce=A[ye],we=typeof he.maxCount=="number"&&he.maxCount>1;if(Array.isArray(Ce)&&Ce.length>0){we?Ce.forEach((Ne,$e)=>ue(`${ye}-${$e}`,Ne)):ue(ye,Ce[0]);continue}if(Ce&&!Array.isArray(Ce)){ue(ye,Ce);continue}if(we)for(let Ne=0;Ne<he.maxCount;Ne++){const $e=`${ye}-${Ne}`,Dt=A[$e];if(!Dt)break;ue($e,Dt)}}if(Object.keys(ne).length===0)return;for(const he of Q)A[he.key]!==void 0&&Ar.current.add(he.key);He(he=>{const ye={...he};let Ce=!1;for(const we of Q){const Ne=we.key;if(A[Ne]===void 0)continue;if(typeof we.maxCount=="number"&&we.maxCount>1)for(let Dt=0;Dt<we.maxCount;Dt++){const kr=`${Ne}-${Dt}`;!ne[kr]&&he[kr]&&(ye[kr]=null,Ce=!0)}}for(const[we,Ne]of Object.entries(ne))he[we]!==Ne&&(ye[we]=Ne,Ce=!0);return Ce?ye:he});const Ee=Object.entries(ne).filter(([,he])=>typeof he=="string");if(Ee.length===0)return;const oe=async he=>{const ye=he.split("/").pop()?.split("?")[0]||"file",Ce=decodeURIComponent(ye),we=async Ne=>{const $e=await Ne.blob();return new File([$e],Ce,{type:$e.type||"application/octet-stream"})};try{const Ne=`/api/image-proxy?url=${encodeURIComponent(he)}`,$e=await fetch(Ne);if($e.ok)return we($e)}catch{}return null};let Ae=!1;return Promise.all(Ee.map(async([he,ye])=>{const Ce=await oe(ye);return Ce?{key:he,file:Ce}:null})).then(he=>{if(Ae)return;const ye={};for(const Ce of he)Ce&&(ye[Ce.key]=Ce.file);Object.keys(ye).length>0&&He(Ce=>{const we={...Ce};let Ne=!1;for(const[$e,Dt]of Object.entries(ye))typeof we[$e]=="string"&&(we[$e]=Dt,Ne=!0);return Ne?we:Ce})}),()=>{Ae=!0}},[A,Le]);const Ya=N.useRef(new Set),Ao=N.useRef(""),wo=(e||[]).filter(Q=>Q.key&&Q.type!=="report-module"&&Q.type!=="markdown-module").map(Q=>`${Q.type}:${Q.key}`).join("|");Ao.current!==wo&&(Ao.current=wo,Ya.current=new Set),N.useEffect(()=>{if(!A||!e||e.length===0)return;const Q=e.filter(ue=>ue.type==="report-url"&&ue.key),ne=e.filter(ue=>ue.type==="multi-variable-select"&&ue.key);if(!(Q.length===0&&ne.length===0)){for(const ue of Q){const Ee=ue.key;if(Ya.current.has(Ee))continue;const oe=A[Ee]??A[`${Ee}__url`];if(!oe||typeof oe=="string"&&!oe.trim())continue;const Ae=Array.isArray(oe)?oe[0]:String(oe);Ae&&(Ya.current.add(Ee),setTimeout(()=>{Ot.current(Ee,Ae)},100))}for(const ue of ne){const Ee=ue.key,oe=A[Ee];!Array.isArray(oe)||oe.length===0||oe.forEach((Ae,he)=>{const ye=typeof Ae=="string"?Ae.trim():"";if(!ye)return;const Ce=`${Ee}_${he}`;Ya.current.has(Ce)||(Ya.current.add(Ce),setTimeout(()=>{Ot.current(Ce,ye)},100))})}}},[A,e,Ot]),a1(Y,Le,pe,Re,T),l1(Y,Le,Re,f,T),r1(Y,Le,pe,Re,T),n1(Y,Le,Re,T),i1(Y,Le,pe,Dl,nt,A),uc(Y,C,nt,Ua,[Le]);const ey=sc(B,Ua,Y);oc(Y,nt,Re,T),u1(Y,gr);const _o=Bo(Y),ty=Ro(Y),ay=$o(Y),ko=Go(Y);N.useEffect(()=>{if(!Y.current)return;Y.current.querySelectorAll(".rte-richtext-toggle").forEach(ne=>{const ue=ne.getAttribute("data-expanded")==="true";ne.innerHTML=ue?'<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>'})},[Le,Y]);const No=y1(Y),{measureExpandedContentHeight:Wa}=bc({collapsed:y,collapseTransitionMs:L,contentRef:re,contentBodyRef:le,editorRef:Y,debugIdRef:me,setCollapsedContentMaxHeightPx:V1,setExpandedContentMaxHeightPx:Y1,setIsCollapseAnimating:W1,effectiveConfig:Le,files:pe,multiVariableCounts:Et,selectPortalsLength:_o.length,datePickerPortalsLength:No.length,variablePortalsLength:ko.length}),ly=()=>{if(y)return;const Q=le.current;if(!Q)return;const ne=Math.ceil(Q.getBoundingClientRect().height||0);ne>0&&Er(ne),qa.current=!0,za.current=!1,ht.current&&(window.clearTimeout(ht.current),ht.current=null)};N.useEffect(()=>{const Q=()=>{qa.current&&(za.current=!0,ht.current&&window.clearTimeout(ht.current),ht.current=window.setTimeout(()=>{ht.current=null,qa.current=!1,za.current=!1,Er(null),window.requestAnimationFrame(()=>Wa())},450))};return window.addEventListener("focus",Q),()=>window.removeEventListener("focus",Q)},[Wa]),N.useEffect(()=>{!qa.current||!za.current||(ht.current&&(window.clearTimeout(ht.current),ht.current=null),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{Er(null),Wa(),qa.current=!1,za.current=!1})}))},[pe,Wa]),mc({config:e,editorRef:Y,setIsEmpty:bo,setIsFormValid:Dl});const ny=yc({disabled:l,collapsed:y,onCollapsedChange:P,config:e,lockStructure:r,editorRef:Y,containerRef:K,fileInputRef:ae,onBeforeFilePickerOpen:ly,files:pe,setFiles:He,handleRemoveFile:rt,setActiveBatchKey:$a,setActiveBatchStartIndex:Ol,setActiveFileKey:Ha,isDraggingRef:gr,richtextPrevScrollTopRef:z1,videoState:nt,setVideoState:Ua,videoFileInputRef:de,activeVideoKeyRef:ve,onImagePreview:Q=>{vr(Q),te(!0)}}),ja=Tc({config:e,editorRef:Y,setIsEmpty:bo,setIsFormValid:Dl,setReportAnalyzeState:Va,setMarkdownAnalyzeState:Bl,setMarkdownNameAnalyzeState:Sr,collapsed:y,measureExpandedContentHeight:Wa,effectiveConfig:Le,files:pe,multiVariableCounts:Et,setMultiVariableCounts:Ga,savedCursorRef:ho,videoState:nt,resolvedReportNamesRef:qt}),wr=N.useRef(ja);wr.current=ja;const ry=Sc({disabled:l,config:e,multiVariableCounts:Et,setMultiVariableCounts:Ga,editorRef:Y,handleInput:ja,markdownAnalyzeRef:go,reportAnalyzeRef:Ot,markdownNameAnalyzeRef:Eo,markdownAnalyzeStateRef:Cr,markdownRawTextRef:j1,setMarkdownAnalyzeState:Bl,setFooterFiles:It,footerFiles:Ve,messageApi:G,onPasteUnsupported:()=>G.warning("暂不支持上传该文件类型")});Ec({config:e,effectiveConfig:Le,files:pe,editorRef:Y,setIsFormValid:Dl,multiVariableCounts:Et,setMultiVariableCounts:Ga,videoState:nt});const _r=N.useCallback((Q,ne)=>{delete qt.current[Q],ne==="report-url"&&Va(ue=>({...ue,[Q]:{status:"idle",modules:[],lastParsedUrl:void 0,error:void 0}}))},[Va]),iy=N.useCallback(Q=>{const{nodeKey:ne,nodeType:ue}=Zo(Q);_r(ne,ue),Q.focus(),wr.current()},[_r]),uy=Jo(Y,iy,Et),Io=Ac({config:e,files:pe,footerFiles:Ve,onFooterFilesClear:()=>It([]),onSend:t,isProcessing:a,disabled:l,loading:o,isFormValid:po,editorRef:Y,markdownAnalyzeState:zt,markdownNameAnalyzeState:Vt,videoState:nt}),sy=xc({disabled:l,lockStructure:r,config:e,editorRef:Y,handleInput:ja,onEnterSend:Io,onReportChipDeleted:_r}),oy={...n?{width:typeof n=="number"?`${n}px`:n}:{},...d?{border:d}:{},...m?{background:m}:{},...E?{maxHeight:typeof E=="number"?`${E}px`:E}:{},...b&&!y?{minHeight:typeof b=="number"?`${b}px`:b}:{},...Ve.length>0?{height:"220px"}:{},...E?{"--rte-richtext-fullscreen-height":typeof E=="number"?`${E}px`:E}:{},...h?{"--rte-editor-min-height":typeof h=="number"?`${h}px`:h}:{},...v?{"--rte-editor-padding":v}:{},...g?{"--rte-footer-padding":g}:{}},cy=typeof L=="number"&&Number.isFinite(L)&&L>=0?L:260,dy={overflow:"hidden"},fy=Pl!=null?`${Pl}px`:y?`${mo}px`:`${Math.max(G1,mo)}px`,py=Pl!=null||y||vo?"hidden":"auto",Lo=N.useRef(y),Oo=Lo.current!==y;Oo&&(Lo.current=y);const hy=Pl!=null?"none":Oo||vo?`max-height ${cy}ms cubic-bezier(0.4, 0, 0.2, 1)`:"none",by={maxHeight:fy,minHeight:y?0:void 0,overflow:py,overscrollBehavior:"contain",transition:hy,willChange:"max-height"};return q.jsxs("div",{className:"rich-text-editor",style:oy,"data-disabled":l,ref:K,children:[R,q.jsxs("div",{className:"rich-text-editor-content",ref:re,style:dy,children:[Ve.length>0&&q.jsxs("div",{className:"rte-footer-files-wrapper",children:[Lt.showLeft&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-left",children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-left",onClick:B1,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:pt,onScroll:at,children:Ve.map((Q,ne)=>{const ue=Q.type?.startsWith("image/")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Q.name||""),Ee=Q.size<1024?`${Q.size}B`:Q.size<1024*1024?`${Math.round(Q.size/1024)}KB`:`${(Q.size/(1024*1024)).toFixed(1)}MB`;return q.jsxs("div",{className:"rte-footer-file-chip",children:[ue?q.jsx(fe.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(Q),alt:Q.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 oe=(Q.name||"").split(".").pop()?.toLowerCase()||"";return["xls","xla","xlb","xlc","xlm","xlsx","xlt","xlw","csv","tsv","iif"].includes(oe)?"icon-a-xlsxcsv":["doc","docx","dot","odt","rtf","wiz"].includes(oe)?"icon-docx":["ppt","pptx","pot","ppa","pps","pwz"].includes(oe)?"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(oe)?"icon-txt":oe==="pdf"?"icon-pdf":["html","htm","json","ics","ifb"].includes(oe)?"icon-a-htmljson":oe==="md"?"icon-md":"icon-lianjie"})()}`})})}),q.jsxs("div",{className:"rte-footer-file-info",children:[q.jsx("span",{className:"rte-footer-file-name",title:Q.name,children:Q.name}),q.jsx("span",{className:"rte-footer-file-size",children:Ee})]}),q.jsx("span",{className:"rte-footer-file-remove",onClick:()=>P1(ne),children:q.jsx("i",{className:"iconfont icon-guanbi ",style:{width:"8px",height:"8px",fontSize:"8px",display:"flex",alignItems:"center"}})})]},`${Q.name}-${Q.size}-${ne}`)})}),Lt.showRight&&q.jsx("div",{className:"rte-footer-files-mask rte-footer-files-mask-right",children:q.jsx("span",{className:"rte-footer-files-arrow rte-footer-files-arrow-right",onClick:M1,children:q.jsx("svg",{style:{width:"16px",height:"16px"},"aria-hidden":"true",children:q.jsx("use",{xlinkHref:"#icon-fanhuijiantou"})})})})]}),q.jsxs("div",{ref:le,className:"rich-text-editor-content-body",style:by,children:[q.jsx("div",{ref:Y,className:`rte-editor ${e.length===0?"rte-editor-default":""} ${q1&&c?"rte-editor-empty":""}`,contentEditable:e.length===0,suppressContentEditableWarning:!0,"data-placeholder":c,onMouseDown:R1,onMouseMove:H1,onMouseUp:$1,onClick:ny,onDoubleClick:U1,onInput:()=>{xr(),ja()},onKeyDown:sy,onPaste:Q=>{xr(),ry(Q)}}),q.jsx("input",{type:"file",ref:ae,className:"rte-file-input",accept:".csv,.xlsx,.xls,.txt,.pdf,image/*",onChange:gt}),q.jsx("input",{type:"file",ref:de,className:"rte-file-input",accept:"video/*",onChange:Q=>{const ne=Q.target.files?.[0],ue=ve.current;ne&&ne.size>1024*1024*1024?G.warning("视频文件不能超过1GB"):ne&&ue&&ey(ue,ne),ve.current=null,de.current&&(de.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:f!=="hideAgent"&&q.jsx(fe.Dropdown,{placement:"topLeft",menu:{items:i.filter(Q=>Q.isShowNew!==1).map(Q=>({key:Q.key,label:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Q.icon&&q.jsx("i",{className:Q.icon}),q.jsx("span",{children:Q.label})]}),onClick:()=>{u?.(Q)}}))},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(Q=>Q.type==="tag")&&q.jsxs(q.Fragment,{children:[q.jsx("div",{className:"rte-footer-upload-btn",onClick:()=>ce.current?.click(),title:"上传文件",children:q.jsx("i",{className:"iconfont icon-lianjie",style:{fontSize:"16px"}})}),q.jsx("input",{type:"file",ref:ce,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:it})]})]}),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 Q=e.find(ue=>ue.type==="tag");if(!Q||!Q.text)return null;const ne=i.find(ue=>ue.label===Q.text);return!ne||ne.points===void 0||ne.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(ne.points)]}),ne.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:Io,disabled:a||l||o||!po,className:"rich-text-editor-send-button",children:a||o?q.jsx("span",{className:"rte-send-spinner"}):q.jsx("i",{className:"iconfont icon-fasong"})})]})]}),_e,q.jsx(fe.Image,{style:{display:"none"},src:mr,preview:{visible:X,onVisibleChange:Q=>te(Q)}}),No,_o,ty,ay,ko,Z1,uy]})};lo.__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 no="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",T1=[{label:"5页",value:5},{label:"10页",value:10},{label:"15页",value:15},{label:"30页",value:30}],x1=({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:no,alt:"自动加载",width:14,height:14}),q.jsxs("span",{children:["正在加载第",a.currentPage,"/",a.totalPages,"页"]}),q.jsx(fe.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:no,alt:"自动加载",width:14,height:14}),q.jsx("span",{children:"自动加载"})]}),q.jsx(fe.Select,{value:t,onChange:n,options:T1,disabled:e,size:"small",className:"auto_load_select",popupMatchSelectWidth:84})]})]}),C1=({current:e,loadIcon:t,pageSize:a,total:l,cachedPages:n,loadedCount:r,autoLoading:i=!1,loadingProgress:u,onChange:s,onLoadNextPage:o,onStartAutoLoad:c,onStopLoading:d})=>{const[m,f]=N.useState(5),E=Math.ceil(l/a),b=N.useMemo(()=>n.length>=E,[n,E]),h=()=>Array.from({length:E},(y,S)=>S+1).filter(y=>!n.includes(y)).slice(0,m),v=(g,y,S)=>{const _=n.includes(g);return y==="prev"||y==="next"||y==="jump-prev"||y==="jump-next"?q.jsx("div",{className:"pageBox",children:S}):q.jsxs("div",{className:"pageBox",style:{backgroundColor:e===g?"#2563EB":"#f5f5f5",color:e===g?"#fff":_?"#171717":"#a3a3a3"},children:[g,!_&&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(bt.InfoCircleOutlined,{style:{color:"#2563EB",marginRight:"4px"}}),"已加载: ",r,"/",l,"条数据"]}),!b&&q.jsx(x1,{loadIcon:t||void 0,autoLoading:i,batchSize:m,loadingProgress:u,disabled:!o||!c,onBatchSizeChange:f,onLoadNextPage:()=>o?.(),onStartAutoLoad:()=>{const g=h();c?.(g)},onStopLoad:()=>d?.()})]}),q.jsx(fe.Pagination,{current:e,pageSize:a,total:l,onChange:g=>s(g),showSizeChanger:!1,showQuickJumper:!1,showTotal:()=>"",itemRender:v})]})},ro=e=>{const{loading:t,autoLoading:a,loadingProgress:l,columns:n=[],dataSource:r=[],total:i,current:u,pageSize:s,cachedPages:o,onChangePage:c,onLoadNextPage:d,onStartAutoLoad:m,onStopLoading:f,...E}=e,b=N.useRef(null),h=N.useCallback(v=>{c(v),o.includes(v)&&b.current?.scrollTo({key:`${(v-1)*s+1}`})},[o,c,s]);return q.jsxs("div",{className:"flex flex-col",children:[q.jsx(fe.Table,{ref:b,...E,columns:n,dataSource:r,pagination:!1,virtual:!0}),q.jsx(C1,{loading:t,autoLoading:a,loadingProgress:l,current:u,pageSize:s,total:i,loadedCount:r.length,cachedPages:o,onChange:h,onLoadNextPage:d,onStartAutoLoad:m,onStopLoading:f})]})};ro.__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 io=({texts:e=[],placeholder:t="请输入内容",animationSpeed:a=100,autoPlay:l=!0,value:n,onChange:r,...i})=>{const[u,s]=N.useState(""),[o,c]=N.useState(0),[d,m]=N.useState(!1),[f,E]=N.useState(!1),[b,h]=N.useState(!1),v=N.useRef(void 0),g=N.useRef(void 0),y=N.useRef(e),S=N.useRef(o),_=N.useRef(f),w=N.useRef(u);N.useEffect(()=>{y.current=e,S.current=o,_.current=f,w.current=u});const P=N.useCallback((I,C)=>{let B=0;h(!0);const $=()=>{B<I.length?(s(I.slice(0,B+1)),B++,g.current=window.setTimeout($,a)):(h(!1),C?.())};$()},[a]),L=N.useCallback(I=>{let C=w.current.length;const B=()=>{C>0?(s(w.current.slice(0,C-1)),C--,g.current=window.setTimeout(B,a/2)):I?.()};B()},[a]),T=N.useCallback(()=>{if(y.current.length===0||_.current)return;m(!0);const I=y.current[S.current];w.current?L(()=>{P(I,()=>{v.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),m(!1)},2e3)})}):P(I,()=>{v.current=window.setTimeout(()=>{c(C=>(C+1)%y.current.length),m(!1)},2e3)})},[L,P]);N.useEffect(()=>(l&&e.length>0&&!f&&T(),()=>{v.current&&window.clearTimeout(v.current),g.current&&window.clearTimeout(g.current)}),[o,f,l,e.length,T]),N.useEffect(()=>{!d&&l&&e.length>0&&!f&&T()},[o,d,l,e.length,f,T]);const A=I=>{E(!0),v.current&&window.clearTimeout(v.current),g.current&&window.clearTimeout(g.current),m(!1),h(!1),i.onFocus?.(I)},x=I=>{E(!1),!n&&e.length>0&&(s(""),c(0)),i.onBlur?.(I)},k=I=>{r?.(I.target.value),i.onChange?.(I)},D=()=>f||n?t:u||t;return q.jsxs("div",{style:{position:"relative"},children:[q.jsx(fe.Input,{...i,value:n,onChange:k,onFocus:A,onBlur:x,placeholder:D(),style:{...i.style,position:"relative",zIndex:1}}),!f&&!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}),b&&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
|
+
`})]})};io.__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 uo=({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:d=4,style:m,...f})=>{const[E,b]=N.useState(""),[h,v]=N.useState(0),[g,y]=N.useState(!1),[S,_]=N.useState(!1),[w,P]=N.useState(!1),[L,T]=N.useState(n||""),A=N.useRef(void 0),x=N.useRef(void 0),k=N.useRef(e),D=N.useRef(h),I=N.useRef(S),C=N.useRef(E),B=N.useRef(null);N.useEffect(()=>{k.current=e,D.current=h,I.current=S,C.current=E});const $=N.useCallback((Y,ae)=>{let ce=0;P(!0);const me=()=>{ce<Y.length?(b(Y.slice(0,ce+1)),ce++,x.current=window.setTimeout(me,a)):(P(!1),ae?.())};me()},[a]),F=N.useCallback(Y=>{let ae=C.current.length;const ce=()=>{ae>0?(b(C.current.slice(0,ae-1)),ae--,x.current=window.setTimeout(ce,a/2)):Y?.()};ce()},[a]),z=N.useCallback(()=>{if(k.current.length===0||I.current)return;y(!0);const Y=k.current[D.current];C.current?F(()=>{$(Y,()=>{A.current=window.setTimeout(()=>{v(ae=>(ae+1)%k.current.length),y(!1)},2e3)})}):$(Y,()=>{A.current=window.setTimeout(()=>{v(ae=>(ae+1)%k.current.length),y(!1)},2e3)})},[F,$]);N.useEffect(()=>(l&&e.length>0&&!S&&z(),()=>{A.current&&window.clearTimeout(A.current),x.current&&window.clearTimeout(x.current)}),[h,S,l,e.length,z]),N.useEffect(()=>{!g&&l&&e.length>0&&!S&&z()},[h,g,l,e.length,S,z]);const O=Y=>{_(!0),A.current&&window.clearTimeout(A.current),x.current&&window.clearTimeout(x.current),y(!1),P(!1),f.onFocus?.(Y)},W=Y=>{_(!1),!n&&e.length>0&&(b(""),v(0)),f.onBlur?.(Y)},G=Y=>{const ae=Y.target.value;u&&ae.length>u||(r?r(ae):T(ae),f.onChange?.(Y))},R=()=>{const Y=r?n:L;Y.trim()&&!c&&(i?.(Y),r||T(""))},K=Y=>{(Y.ctrlKey||Y.metaKey)&&Y.key==="Enter"&&(Y.preventDefault(),R()),f.onKeyDown?.(Y)},re=r?n:L,le=c||!re.trim()||(u?re.length>u:!1);return q.jsxs("div",{style:{position:"relative",...m},children:[q.jsxs("div",{style:{position:"relative"},children:[q.jsx("textarea",{ref:B,value:r?n:L,onChange:G,onFocus:Y=>{Y.target.style.borderColor="#1890ff",Y.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.2)",O(Y)},onBlur:Y=>{Y.target.style.borderColor="#d9d9d9",Y.target.style.boxShadow="none",W(Y)},onKeyDown:K,placeholder:S||re?t:"",maxLength:u,rows:d,disabled:c,style:{width:"100%",minHeight:`${d*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",...f.style},...f}),!S&&!re&&E&&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:E}),w&&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(fe.Button,{type:"primary",size:"small",icon:q.jsx(bt.SendOutlined,{}),onClick:R,disabled:le,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:[re.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
|
-
`})]})};io.__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 br=({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:d,onVideoEnded:m,className:f,style:E,...b})=>{const h=N.useRef(null),[v,g]=N.useState(!1),[y,S]=N.useState(!1),[_,w]=N.useState(!1),P=N.useCallback(()=>{h.current&&(h.current.play(),g(!0),c?.())},[c]),L=N.useCallback(()=>{h.current&&(h.current.pause(),g(!1),d?.())},[d]),T=N.useCallback($=>{$.stopPropagation(),v?L():P()},[v,P,L]),A=N.useCallback(()=>{S(!0),u&&!v&&P()},[u,v,P]),x=N.useCallback(()=>{S(!1),u&&v&&L()},[u,v,L]),k=N.useCallback(()=>{w(!0),o?.()},[o]),D=N.useCallback(()=>{g(!0),c?.()},[c]),I=N.useCallback(()=>{g(!1),d?.()},[d]),C=N.useCallback(()=>{g(!1),m?.()},[m]),B=N.useCallback($=>{s?.($)},[s]);return q.jsx(pe.Card,{...b,className:`video-card ${f||""}`,style:{width:a,height:l,padding:0,overflow:"hidden",cursor:s?"pointer":"default",border:"none",borderRadius:0,...E},bordered:!1,onMouseEnter:A,onMouseLeave:x,onClick:B,children:q.jsxs("div",{className:"video-card-container",children:[q.jsx("video",{ref:h,src:e,poster:t,preload:"metadata",onLoadedData:k,onPlay:D,onPause:I,onEnded:C,muted:!0,loop:!0}),i&&q.jsx("div",{className:`video-play-button ${y?"hovered":""}`,onClick:T,children:v?q.jsx(mt.PauseCircleOutlined,{className:"play-icon"}):q.jsx(mt.PlayCircleOutlined,{className:"play-icon"})}),!_&&q.jsx("div",{className:"video-loading-mask",children:q.jsx("div",{className:"loading-spinner"})})]})})};br.__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 x1=e=>[".mp4",".webm",".ogg",".mov",".avi",".wmv",".flv",".mkv"].some(a=>e.toLowerCase().includes(a)),C1=e=>e.type?e.type:x1(e.url)?"video":"image",uo=({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=N.useRef(null),[o,c]=N.useState(t||n.md||3),d=N.useRef(new Map),m=N.useCallback(()=>{if(!l||t)return t||n.md||3;const h=window.innerWidth;return h<576?n.xs||1:h<768?n.sm||2:h<992?n.md||3:h<1200?n.lg||4:h<1600?n.xl||5:n.xxl||6},[l,t,n]),f=N.useCallback(()=>{if(!s.current)return;const h=o,v=s.current,y=(v.offsetWidth-a*(h-1))/h,S=new Array(h).fill(0);e.forEach((w,P)=>{const L=w.id||P,T=d.current.get(L);if(!T)return;const A=Math.min(...S),x=S.indexOf(A),k=x*(y+a),D=S[x];T.style.position="absolute",T.style.left=`${k}px`,T.style.top=`${D}px`,T.style.width=`${y}px`,S[x]+=T.offsetHeight+a});const _=Math.max(...S);v.style.height=`${_}px`},[e,o,a]);N.useEffect(()=>{const h=()=>{const v=m();v!==o&&c(v)};if(l)return window.addEventListener("resize",h),h(),()=>window.removeEventListener("resize",h)},[l,m,o]),N.useEffect(()=>{const h=setTimeout(()=>{f()},100);return()=>clearTimeout(h)},[e,o,f]);const E=N.useCallback(()=>{f()},[f]),b=N.useCallback(h=>{u&&u(h),h.onClick?.(h)},[u]);return q.jsx("div",{ref:s,className:`waterfall-container ${r||""}`,style:{position:"relative",width:"100%",...i},children:e.map((h,v)=>{const g=h.id||v,y=C1(h);return q.jsx("div",{ref:S=>{S?d.current.set(g,S):d.current.delete(g)},className:"waterfall-item",children:y==="video"?q.jsx("div",{style:{width:"100%",position:"relative",paddingBottom:"56.25%",cursor:u||h.onClick?"pointer":"default"},children:q.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:q.jsx(br,{src:h.url,poster:h.poster,width:"100%",height:"100%",onClick:()=>b(h),onVideoLoaded:E,autoPlayOnHover:!0,showPlayButton:!1})})}):q.jsx("div",{className:"waterfall-image-wrapper",onClick:()=>b(h),style:{cursor:u||h.onClick?"pointer":"default"},children:q.jsx("img",{src:h.url,alt:`瀑布流图片 ${v+1}`,className:"waterfall-image",onLoad:E,onError:E,style:{display:"block",width:"100%",height:"auto"}})})},g)})})};uo.__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 Ra=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ra={日期:"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"},S1=["日期","展现量","点击量","花费(元)","点击率","平均点击花费(元)","总成交金额(元)","总成交笔数","点击转化率","总购物车数","收藏宝贝数","收藏店铺数","总收藏数","宝贝收藏成本(元)","千次展现花费(元)","总预售成交金额(元)","总预售成交笔数","直接预售成交金额(元)","直接预售成交笔数","间接预售成交金额(元)","间接预售成交笔数","拍下订单笔数","拍下订单金额(元)","直接成交金额(元)","间接成交金额(元)","直接成交笔数","间接成交笔数","投入产出比","含预售投产比","总成交成本(元)","引导访问潜客数","成交人数","人均成交笔数","人均成交金额","直接购物车数","间接购物车数","加购率","店铺收藏成本(元)","总收藏加购数","总收藏加购成本(元)","宝贝收藏加购数","宝贝收藏加购成本(元)","宝贝收藏率","加购成本(元)","直接收藏宝贝数","间接收藏宝贝数","优惠券领取量","购物金充值笔数","购物金充值金额(元)","旺旺咨询量","引导访问量","引导访问人数","引导访问潜客占比","引导访问率","深度访问量","平均访问页面数","成交新客数","成交新客占比","自然流量转化金额","自然流量曝光量"],Ha=e=>ra[e]??e,A1=e=>e?!!(ra[e]!==void 0||e.length<=20&&/[\u4e00-\u9fff]/.test(e)):!1,w1=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=>ra[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=>ra[s]!==void 0);return i.length>=2&&u?i:[]}const n=a.filter(A1);return n.some(i=>ra[i]!==void 0)&&n.length>=2&&n.length/a.length>=.5?n:[]},_1=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},k1=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!==""),so=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?w1(n[0]):[],i=r.length>=2,u=i?r:S1,s=i||n.length>0&&n[0].includes("展现量")?1:0,o=u.filter(v=>v!=="日期"),c=o.length,d=[];l.forEach((v,g)=>{const y=g+s;if(y>=n.length)return;const S=n[y];let _=S.split(/[\r\n]+/).map(L=>L.trim()).filter(L=>L!=="");_.length<c&&(_=k1(S));const w=L=>_.length===c*2?_[L*2]??"":_[L]??"",P={};P[Ha("日期")]=v,o.forEach((L,T)=>{const A=w(T),x=_1(A),k=Ha(L);P[k]=x}),d.push(P)});const m=u.filter(v=>{const g=Ha(v);return d.some(y=>{const S=y[g];return S!==void 0&&String(S).trim()!==""})}),f=`| ${m.join(" | ")} |`,E=`| ${m.map(()=>"---").join(" | ")} |`,b=d.map(v=>`| ${m.map(y=>{const S=Ha(y);return v[S]??"-"}).join(" | ")} |`);return{markdown:[f,E,...b].join(`
|
|
75
|
-
`),jsonData:d}},
|
|
76
|
-
`);if(t.length<2)return
|
|
74
|
+
`})]})};uo.__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 hr=({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:d,onVideoEnded:m,className:f,style:E,...b})=>{const h=N.useRef(null),[v,g]=N.useState(!1),[y,S]=N.useState(!1),[_,w]=N.useState(!1),P=N.useCallback(()=>{h.current&&(h.current.play(),g(!0),c?.())},[c]),L=N.useCallback(()=>{h.current&&(h.current.pause(),g(!1),d?.())},[d]),T=N.useCallback($=>{$.stopPropagation(),v?L():P()},[v,P,L]),A=N.useCallback(()=>{S(!0),u&&!v&&P()},[u,v,P]),x=N.useCallback(()=>{S(!1),u&&v&&L()},[u,v,L]),k=N.useCallback(()=>{w(!0),o?.()},[o]),D=N.useCallback(()=>{g(!0),c?.()},[c]),I=N.useCallback(()=>{g(!1),d?.()},[d]),C=N.useCallback(()=>{g(!1),m?.()},[m]),B=N.useCallback($=>{s?.($)},[s]);return q.jsx(fe.Card,{...b,className:`video-card ${f||""}`,style:{width:a,height:l,padding:0,overflow:"hidden",cursor:s?"pointer":"default",border:"none",borderRadius:0,...E},bordered:!1,onMouseEnter:A,onMouseLeave:x,onClick:B,children:q.jsxs("div",{className:"video-card-container",children:[q.jsx("video",{ref:h,src:e,poster:t,preload:"metadata",onLoadedData:k,onPlay:D,onPause:I,onEnded:C,muted:!0,loop:!0}),i&&q.jsx("div",{className:`video-play-button ${y?"hovered":""}`,onClick:T,children:v?q.jsx(bt.PauseCircleOutlined,{className:"play-icon"}):q.jsx(bt.PlayCircleOutlined,{className:"play-icon"})}),!_&&q.jsx("div",{className:"video-loading-mask",children:q.jsx("div",{className:"loading-spinner"})})]})})};hr.__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 S1=e=>[".mp4",".webm",".ogg",".mov",".avi",".wmv",".flv",".mkv"].some(a=>e.toLowerCase().includes(a)),A1=e=>e.type?e.type:S1(e.url)?"video":"image",so=({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=N.useRef(null),[o,c]=N.useState(t||n.md||3),d=N.useRef(new Map),m=N.useCallback(()=>{if(!l||t)return t||n.md||3;const h=window.innerWidth;return h<576?n.xs||1:h<768?n.sm||2:h<992?n.md||3:h<1200?n.lg||4:h<1600?n.xl||5:n.xxl||6},[l,t,n]),f=N.useCallback(()=>{if(!s.current)return;const h=o,v=s.current,y=(v.offsetWidth-a*(h-1))/h,S=new Array(h).fill(0);e.forEach((w,P)=>{const L=w.id||P,T=d.current.get(L);if(!T)return;const A=Math.min(...S),x=S.indexOf(A),k=x*(y+a),D=S[x];T.style.position="absolute",T.style.left=`${k}px`,T.style.top=`${D}px`,T.style.width=`${y}px`,S[x]+=T.offsetHeight+a});const _=Math.max(...S);v.style.height=`${_}px`},[e,o,a]);N.useEffect(()=>{const h=()=>{const v=m();v!==o&&c(v)};if(l)return window.addEventListener("resize",h),h(),()=>window.removeEventListener("resize",h)},[l,m,o]),N.useEffect(()=>{const h=setTimeout(()=>{f()},100);return()=>clearTimeout(h)},[e,o,f]);const E=N.useCallback(()=>{f()},[f]),b=N.useCallback(h=>{u&&u(h),h.onClick?.(h)},[u]);return q.jsx("div",{ref:s,className:`waterfall-container ${r||""}`,style:{position:"relative",width:"100%",...i},children:e.map((h,v)=>{const g=h.id||v,y=A1(h);return q.jsx("div",{ref:S=>{S?d.current.set(g,S):d.current.delete(g)},className:"waterfall-item",children:y==="video"?q.jsx("div",{style:{width:"100%",position:"relative",paddingBottom:"56.25%",cursor:u||h.onClick?"pointer":"default"},children:q.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:q.jsx(hr,{src:h.url,poster:h.poster,width:"100%",height:"100%",onClick:()=>b(h),onVideoLoaded:E,autoPlayOnHover:!0,showPlayButton:!1})})}):q.jsx("div",{className:"waterfall-image-wrapper",onClick:()=>b(h),style:{cursor:u||h.onClick?"pointer":"default"},children:q.jsx("img",{src:h.url,alt:`瀑布流图片 ${v+1}`,className:"waterfall-image",onLoad:E,onError:E,style:{display:"block",width:"100%",height:"auto"}})})},g)})})};so.__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 Fa=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ra={日期:"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"},w1=["日期","展现量","点击量","花费(元)","点击率","平均点击花费(元)","总成交金额(元)","总成交笔数","点击转化率","总购物车数","收藏宝贝数","收藏店铺数","总收藏数","宝贝收藏成本(元)","千次展现花费(元)","总预售成交金额(元)","总预售成交笔数","直接预售成交金额(元)","直接预售成交笔数","间接预售成交金额(元)","间接预售成交笔数","拍下订单笔数","拍下订单金额(元)","直接成交金额(元)","间接成交金额(元)","直接成交笔数","间接成交笔数","投入产出比","含预售投产比","总成交成本(元)","引导访问潜客数","成交人数","人均成交笔数","人均成交金额","直接购物车数","间接购物车数","加购率","店铺收藏成本(元)","总收藏加购数","总收藏加购成本(元)","宝贝收藏加购数","宝贝收藏加购成本(元)","宝贝收藏率","加购成本(元)","直接收藏宝贝数","间接收藏宝贝数","优惠券领取量","购物金充值笔数","购物金充值金额(元)","旺旺咨询量","引导访问量","引导访问人数","引导访问潜客占比","引导访问率","深度访问量","平均访问页面数","成交新客数","成交新客占比","自然流量转化金额","自然流量曝光量"],Ra=e=>ra[e]??e,_1=e=>e?!!(ra[e]!==void 0||e.length<=20&&/[\u4e00-\u9fff]/.test(e)):!1,k1=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=>ra[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=>ra[s]!==void 0);return i.length>=2&&u?i:[]}const n=a.filter(_1);return n.some(i=>ra[i]!==void 0)&&n.length>=2&&n.length/a.length>=.5?n:[]},N1=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},I1=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!==""),oo=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?k1(n[0]):[],i=r.length>=2,u=i?r:w1,s=i||n.length>0&&n[0].includes("展现量")?1:0,o=u.filter(v=>v!=="日期"),c=o.length,d=[];l.forEach((v,g)=>{const y=g+s;if(y>=n.length)return;const S=n[y];let _=S.split(/[\r\n]+/).map(L=>L.trim()).filter(L=>L!=="");_.length<c&&(_=I1(S));const w=L=>_.length===c*2?_[L*2]??"":_[L]??"",P={};P[Ra("日期")]=v,o.forEach((L,T)=>{const A=w(T),x=N1(A),k=Ra(L);P[k]=x}),d.push(P)});const m=u.filter(v=>{const g=Ra(v);return d.some(y=>{const S=y[g];return S!==void 0&&String(S).trim()!==""})}),f=`| ${m.join(" | ")} |`,E=`| ${m.map(()=>"---").join(" | ")} |`,b=d.map(v=>`| ${m.map(y=>{const S=Ra(y);return v[S]??"-"}).join(" | ")} |`);return{markdown:[f,E,...b].join(`
|
|
75
|
+
`),jsonData:d}},co=e=>{if(!e)return"";const t=e.trim().split(`
|
|
76
|
+
`);if(t.length<2)return Fa(e);const a=t[1],n=/^\|[\s-|]+\|$/.test(a.trim());if(!a||!n)return Fa(e);const i=t[0].split("|").map(d=>d.trim()).filter(d=>d!==""),u=t.slice(2).map(d=>d.split("|").map(m=>m.trim()).filter((m,f,E)=>f>0&&f<E.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(d=>{c+=`<th style="${s}">${Fa(d)}</th>`}),c+="</tr></thead>",c+="<tbody>",u.forEach(d=>{c+="<tr>",i.forEach((m,f)=>{const E=d[f]||"-";c+=`<td style="${o}">${Fa(E)}</td>`}),c+="</tr>"}),c+="</tbody></table></div>",c},fo=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 d=Ra(c),m=s.textContent?.trim()||"";i[d]=m==="-"?"":m}),Object.keys(i).length>0&&t.push(i)}),t},L1=e=>async t=>{const a=oo(t.text);return e&&e(a.jsonData),{modules:[{title:"推广分析表格",content:co(a.markdown),markdown:a.markdown}]}},O1=(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=fo(t);i.length>0&&(r=i)}return r.length===0&&a&&a.length>0&&(r=a),{grossProfitMargin:l,refundRate:n,tableData:r}},D1={algorithm:fe.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"}}};Se.AdvancedTable=Fr,Se.AppModal=Lr,Se.BackButton=Mr,Se.Button=Nr,Se.Card=Ir,Se.DynamicInput=io,Se.DynamicTextArea=uo,Se.EmptyAndSpin=Pr,Se.HEADER_TO_FIELD=ra,Se.LinkButton=Br,Se.PageTable=Or,Se.RichTextEditor=lo,Se.VideoCard=hr,Se.VirtualTable=ro,Se.Waterfall=so,Se.XcIcon=Dr,Se.buildPromotionSendPayload=O1,Se.createMarkdownAnalyze=L1,Se.escapeHtml=Fa,Se.extractTableDataFromHtml=fo,Se.lightTheme=D1,Se.parsePromotionTableMarkdown=oo,Se.renderMarkdownToHtml=co,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});
|
|
77
77
|
//# sourceMappingURL=index.umd.js.map
|