diff --git a/gptadmin/assets/ai.6b8c1644.js b/gptadmin/assets/ai.6b8c1644.js new file mode 100644 index 0000000..1e97f69 --- /dev/null +++ b/gptadmin/assets/ai.6b8c1644.js @@ -0,0 +1 @@ +var e=Object.defineProperty,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,t=(o,a,n)=>a in o?e(o,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[a]=n,l=(e,l)=>{for(var p in l||(l={}))a.call(l,p)&&t(e,p,l[p]);if(o)for(var p of o(l))n.call(l,p)&&t(e,p,l[p]);return e};import{c as p,f as s}from"./index.7bae97b9.js";import{u as r}from"./useBasicForm.d295827a.js";import{_ as i,a as c}from"./index.ed21fdb7.js";import{d,r as u,o as m,h as b,i as f,c as h,f as g,w as v,b as y,u as _,g as k,E as w,v as P,x as I}from"./vendor.1bc4be78.js";const q=[{field:"channel",component:"RadioGroup",label:"使用渠道",required:!0,defaultValue:"gptlink",componentProps:{options:[{label:"GPTLink",value:"gptlink"},{label:"OpenAI",value:"openai"}]}},{field:"default_system_prompt",component:"Input",label:"默认提示词",required:!1,componentProps:{placeholder:"用户不使用模型/角色时,默认的 system prompt"}},{field:"gptlink_key",component:"Input",label:"密钥",required:!0,componentProps:{placeholder:"请输入密钥"},ifShow:({values:e})=>"gptlink"===e.channel},{field:"openai_key",component:"Input",label:"密钥",required:!0,componentProps:{placeholder:"请输入密钥,如有多个密钥每行填写一个,仅用于重试3次请求,无效的key不会主动剔除",type:"textarea",rows:5},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_model",component:"Input",label:"使用模型",required:!0,componentProps:{placeholder:"示例:gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-4"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_tokens",component:"Input",label:"合计最大tokens",required:!0,componentProps:{placeholder:"上下文对话合计返回的最大tokens,示例值:4000",type:"number"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_response_tokens",component:"Input",label:"返回最大Tokens",required:!0,componentProps:{placeholder:"每次请求返回的最大tokens,示例值:1000",type:"number"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_host",component:"Input",label:"自定义API域名",required:!1,componentProps:{placeholder:"不填写默认为:https://api.openai.com,需要支持http2协议,格式为:https://10.10.10.18"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_proxy_host",component:"Input",label:"代理地址",required:!1,componentProps:{placeholder:"代理的地址,需要支持socket5协议,格式为:10.10.10.18:7890"},ifShow:({values:e})=>"openai"===e.channel}],V=[{field:"padding",component:"Input",label:"敬请期待",required:!1,slot:"padding"}];const j={class:"cb-page open"},S=(e=>(P("data-v-6a28b47e"),e=e(),I(),e))((()=>y("div",{style:{"margin-bottom":"10px"}},[k("GPTLink密钥获取:"),y("a",{href:"https://gpt-link.com",target:"_blank"},"点此前往")],-1))),x={class:"cb-m-b-40"},C={class:"cb-m-l-60"},O=k("确认");var T=i(d({__name:"ai",setup(e){const o=u("11"),a=u([{value:"11",name:"对话配置"},{value:"12",name:"绘画配置"}]),{register:n,validate:t,setFieldsValue:i,resetFields:d,setProps:k}=r({options:{labelCol:{span:6},wrapperCol:{span:8}},schemas:q});m((()=>{T()}));const P=e=>{d();k({schemas:{11:q,12:V}[e]}),setTimeout((()=>{T()}),50)},I=async()=>{try{const e=await t(),a={type:o.value,config:l({},e)};e.agreement&&(a.config={agreements:l({},e)});const{err_code:n}=await c().open.openConfig(a);n||w.success("保存成功")}catch(e){}},T=async()=>{try{const{data:e}=await c().open.getConfig({type:o.value});i(l({},e.config))}catch(e){}};return(e,t)=>{const l=b("el-card"),r=b("CbTab"),i=b("el-button");return f(),h("div",j,[g(l,null,{default:v((()=>[S])),_:1}),g(l,{class:"open-main"},{default:v((()=>[y("div",x,[g(r,{tabs:a.value,modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),onChange:P},null,8,["tabs","modelValue"])]),g(_(p),{onRegister:_(n)},{agreement:v((({model:e,field:o})=>[g(_(s),{modelValue:e[o],"onUpdate:modelValue":a=>e[o]=a},null,8,["modelValue","onUpdate:modelValue"])])),padding:v((({model:e,field:o})=>[])),_:1},8,["onRegister"]),y("div",C,[g(i,{type:"primary",onClick:I},{default:v((()=>[O])),_:1})])])),_:1})])}}}),[["__scopeId","data-v-6a28b47e"]]);export{T as default}; diff --git a/gptadmin/assets/ai.b8b01632.js b/gptadmin/assets/ai.b8b01632.js new file mode 100644 index 0000000..a71e556 --- /dev/null +++ b/gptadmin/assets/ai.b8b01632.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,t=(a,o,n)=>o in a?e(a,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[o]=n,l=(e,l)=>{for(var p in l||(l={}))o.call(l,p)&&t(e,p,l[p]);if(a)for(var p of a(l))n.call(l,p)&&t(e,p,l[p]);return e};import{c as p,f as s}from"./index.a35ddce3.js";import{u as r}from"./useBasicForm.a463284a.js";import{_ as i,a as c}from"./index.a7987ea2.js";import{d,r as u,o as m,h as f,i as b,c as h,f as g,w as v,b as y,u as _,g as k,E as w,v as P,x as I}from"./vendor.1bc4be78.js";const q=[{field:"channel",component:"RadioGroup",label:"使用渠道",required:!0,defaultValue:"gptlink",componentProps:{options:[{label:"GPTLink",value:"gptlink"},{label:"OpenAI",value:"openai"}]}},{field:"default_system_prompt",component:"Input",label:"默认提示词",required:!1,componentProps:{placeholder:"用户不使用模型/角色时,默认的 system prompt"}},{field:"gptlink_key",component:"Input",label:"密钥",required:!0,componentProps:{placeholder:"请输入密钥"},ifShow:({values:e})=>"gptlink"===e.channel},{field:"openai_key",component:"Input",label:"密钥",required:!0,componentProps:{placeholder:"请输入密钥,如有多个密钥每行填写一个,仅用于重试3次请求,无效的key不会主动剔除",type:"textarea",rows:5},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_model",component:"Input",label:"使用模型",required:!0,componentProps:{placeholder:"示例:gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-4"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_tokens",component:"Input",label:"合计最大tokens",required:!0,componentProps:{placeholder:"上下文对话合计返回的最大tokens,示例值:4000",type:"number"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_response_tokens",component:"Input",label:"返回最大Tokens",required:!0,componentProps:{placeholder:"每次请求返回的最大tokens,示例值:1000",type:"number"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_host",component:"Input",label:"自定义API域名",required:!1,componentProps:{placeholder:"不填写默认为:https://api.openai.com,需要支持http2协议,格式为:https://10.10.10.18"},ifShow:({values:e})=>"openai"===e.channel},{field:"openai_proxy_host",component:"Input",label:"代理地址",required:!1,componentProps:{placeholder:"代理的地址,需要支持socket5协议,格式为:10.10.10.18:7890"},ifShow:({values:e})=>"openai"===e.channel}],V=[{field:"padding",component:"Input",label:"敬请期待",required:!1,slot:"padding"}];const j={class:"cb-page open"},S=(e=>(P("data-v-6a28b47e"),e=e(),I(),e))((()=>y("div",{style:{"margin-bottom":"10px"}},[k("GPTLink密钥获取:"),y("a",{href:"https://gpt-link.com",target:"_blank"},"点此前往")],-1))),x={class:"cb-m-b-40"},C={class:"cb-m-l-60"},O=k("确认");var T=i(d({__name:"ai",setup(e){const a=u("11"),o=u([{value:"11",name:"对话配置"},{value:"12",name:"绘画配置"}]),{register:n,validate:t,setFieldsValue:i,resetFields:d,setProps:k}=r({options:{labelCol:{span:6},wrapperCol:{span:8}},schemas:q});m((()=>{T()}));const P=e=>{d();k({schemas:{11:q,12:V}[e]}),setTimeout((()=>{T()}),50)},I=async()=>{try{const e=await t(),o={type:a.value,config:l({},e)};e.agreement&&(o.config={agreements:l({},e)});const{err_code:n}=await c().open.openConfig(o);n||w.success("保存成功")}catch(e){}},T=async()=>{try{const{data:e}=await c().open.getConfig({type:a.value});i(l({},e.config))}catch(e){}};return(e,t)=>{const l=f("el-card"),r=f("CbTab"),i=f("el-button");return b(),h("div",j,[g(l,null,{default:v((()=>[S])),_:1}),g(l,{class:"open-main"},{default:v((()=>[y("div",x,[g(r,{tabs:o.value,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),onChange:P},null,8,["tabs","modelValue"])]),g(_(p),{onRegister:_(n)},{agreement:v((({model:e,field:a})=>[g(_(s),{modelValue:e[a],"onUpdate:modelValue":o=>e[a]=o},null,8,["modelValue","onUpdate:modelValue"])])),padding:v((({model:e,field:a})=>[])),_:1},8,["onRegister"]),y("div",C,[g(i,{type:"primary",onClick:I},{default:v((()=>[O])),_:1})])])),_:1})])}}}),[["__scopeId","data-v-6a28b47e"]]);export{T as default}; diff --git a/gptadmin/assets/error.a05db5f9.js b/gptadmin/assets/error.a05db5f9.js new file mode 100644 index 0000000..06e8ff6 --- /dev/null +++ b/gptadmin/assets/error.a05db5f9.js @@ -0,0 +1 @@ +import{d as t,bw as e,n as s,c as a,f as r,u as _,h as E,i as n}from"./vendor.1bc4be78.js";import{b as O}from"./index.a35ddce3.js";import{_ as o}from"./index.a7987ea2.js";var u,N;(N=u||(u={}))[N.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",N[N.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",N[N.ERROR=500]="ERROR",N[N.NET_WORK_ERROR=1e4]="NET_WORK_ERROR",N[N.PAGE_NOT_DATA=10100]="PAGE_NOT_DATA";const R=t({components:{CbEmpty:O},props:{status:{type:Number,default:u.PAGE_NOT_FOUND}},setup(t){const{query:a}=e(),r=s((()=>{const{status:e}=a,{status:s}=t;return Number(e)||s})),E=s((()=>{let t="";switch(_(r)){case u.PAGE_NOT_FOUND:t="抱歉,你访问的页面不存在";break;case u.PAGE_NOT_ACCESS:t="抱歉,你无权访问该页面";break;case u.ERROR:t="抱歉,服务器出错啦"}return t}));return{getStatus:r,getTitle:E}}}),c={class:"page-error"};var A=o(R,[["render",function(t,e,s,_,O,o){const u=E("CbEmpty");return n(),a("div",c,[r(u,{name:t.getStatus,title:t.getTitle},null,8,["name","title"])])}],["__scopeId","data-v-1cbe7d30"]]);export{A as default}; diff --git a/gptadmin/assets/error.fda4abec.js b/gptadmin/assets/error.fda4abec.js new file mode 100644 index 0000000..10b8dcb --- /dev/null +++ b/gptadmin/assets/error.fda4abec.js @@ -0,0 +1 @@ +import{d as t,bw as e,n as s,c as a,f as r,u as _,h as E,i as n}from"./vendor.1bc4be78.js";import{b as O}from"./index.7bae97b9.js";import{_ as o}from"./index.ed21fdb7.js";var u,N;(N=u||(u={}))[N.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",N[N.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",N[N.ERROR=500]="ERROR",N[N.NET_WORK_ERROR=1e4]="NET_WORK_ERROR",N[N.PAGE_NOT_DATA=10100]="PAGE_NOT_DATA";const R=t({components:{CbEmpty:O},props:{status:{type:Number,default:u.PAGE_NOT_FOUND}},setup(t){const{query:a}=e(),r=s((()=>{const{status:e}=a,{status:s}=t;return Number(e)||s})),E=s((()=>{let t="";switch(_(r)){case u.PAGE_NOT_FOUND:t="抱歉,你访问的页面不存在";break;case u.PAGE_NOT_ACCESS:t="抱歉,你无权访问该页面";break;case u.ERROR:t="抱歉,服务器出错啦"}return t}));return{getStatus:r,getTitle:E}}}),A={class:"page-error"};var c=o(R,[["render",function(t,e,s,_,O,o){const u=E("CbEmpty");return n(),a("div",A,[r(u,{name:t.getStatus,title:t.getTitle},null,8,["name","title"])])}],["__scopeId","data-v-1cbe7d30"]]);export{c as default}; diff --git a/gptadmin/assets/index.082e08c2.js b/gptadmin/assets/index.082e08c2.js new file mode 100644 index 0000000..2472ca2 --- /dev/null +++ b/gptadmin/assets/index.082e08c2.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,n=(a,t,o)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,p=(e,a)=>{for(var t in a||(a={}))l.call(a,t)&&n(e,t,a[t]);if(o)for(var t of o(a))r.call(a,t)&&n(e,t,a[t]);return e};import{e as s}from"./index.7bae97b9.js";import{a as i}from"./index.ed21fdb7.js";import{d as c,bw as d,r as m,a as u,o as b,i as f,c as P,f as g,w as _,u as y}from"./vendor.1bc4be78.js";import{_ as h}from"./userSelect.74610bdb.js";const O={class:"cb-page page-user"},j=c({__name:"index",setup(e){const o=d(),l=[{label:"套餐名称",prop:"package_name"},{label:"用户昵称",prop:"nickname",customRender:({user:e})=>e.nickname||"暂无"},{label:"用户手机号",prop:"mobile",customRender:({user:e})=>e.mobile||"暂无"},{label:"订单金额",prop:"price"},{label:"订单来源",prop:"platform",customRender:({platform:e})=>({1:"gpt-link",2:"魔法书"}[e])},{label:"订单状态",prop:"status",customRender:({status:e})=>({1:"未支付",2:"已支付"}[e])},{label:"支付流水号",prop:"paid_no"},{label:"商户订单号",prop:"trade_no"},{label:"下单时间",prop:"created_at"}],r=m(null),n=u({}),c={style:{marginBottom:"20px"}},j=function(e){const{package_id:a}=e;return{labelWidth:100,submitOnReset:!0,actionColOptions:{offset:0,span:8,style:{textAlign:"left"}},baseColProps:{span:8},rowProps:{gutter:24},labelPosition:"left",schemas:[{field:"nickname",component:"Input",label:"用户昵称:",componentProps:{placeholder:"请输入用户昵称"}},{field:"mobile",component:"Input",label:"手机号:",componentProps:{placeholder:"请输入手机号"}},{field:"trade_no",component:"Input",label:"商户订单号:",componentProps:{placeholder:"请输入支付流水号"}},{field:"status",component:"Select",label:"订单状态:",componentProps:{style:{width:"100%"},options:[{label:"未支付",value:"1"},{label:"已支付",value:"2"}]}},{field:"package_id",component:"ApiSelect",label:"套餐:",componentProps:{style:{width:"100%"},api:i().chatGPT.packageList,resultField:"data",labelField:"name",valueField:"id"},defaultValue:a?Number(a):""},{field:"created_at",component:"DatePicker",label:"下单时间:",componentProps:{type:"datetimerange",startPlaceholder:"开始日期",endPlaceholder:"结束日期",format:"YYYY-MM-DD"},defaultValue:[]}],submitButtonOptions:{text:"搜索"},resetButtonOptions:{}}}({package_id:o.query.id||""});b((()=>{}));const k=e=>{n.created_at=(e.created_at||[]).join("~")};return(e,o)=>{return f(),P("div",O,[g(y(s),{columns:y(l),api:y(i)().chatGPT.orderList,onHandleSearchInfoChange:k,"form-config":y(j),"form-card-options":c,extraParams:(d=p({},n),m={with_query:["member"]},a(d,t(m))),ref_key:"tableRef",ref:r},{"form-user_id":_((({model:e,field:a})=>[g(h,{modelValue:e[a],"onUpdate:modelValue":t=>e[a]=t},null,8,["modelValue","onUpdate:modelValue"])])),_:1},8,["columns","api","form-config","extraParams"])]);var d,m}}});export{j as default}; diff --git a/gptadmin/assets/index.384ee87a.js b/gptadmin/assets/index.384ee87a.js new file mode 100644 index 0000000..09e4f9c --- /dev/null +++ b/gptadmin/assets/index.384ee87a.js @@ -0,0 +1 @@ +import{_ as e}from"./index.a7987ea2.js";import{d as a,L as t,h as n,i as s,c as o,f as r,w as i,s as l,a1 as u}from"./vendor.1bc4be78.js";function d({route:e,openCache:a,cacheTabs:t,enableTransition:n,def:s}){if(!n)return;const o=t.includes(e.name),r="fade-slide";let i=r;return a&&(i=o&&e.meta.loaded?r:void 0),i||e.meta.transitionName||s}const c=a({name:"PageLayout",setup:()=>(t((()=>{document.getElementsByClassName("layout-content")[0].scrollTo(0,0)})),{getTransitionName:d})}),m={class:"layout-page"};var f=e(c,[["render",function(e,a,t,d,c,f){const p=n("RouterView");return s(),o("div",m,[r(p,null,{default:i((({Component:e,route:a})=>[(s(),l(u(e),{key:a.fullPath}))])),_:1})])}],["__scopeId","data-v-664bbf9e"]]);export{f as default}; diff --git a/gptadmin/assets/index.4429b45c.js b/gptadmin/assets/index.4429b45c.js new file mode 100644 index 0000000..6b489f9 --- /dev/null +++ b/gptadmin/assets/index.4429b45c.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(a,l,t)=>l in a?e(a,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[l]=t,n=(e,a)=>{for(var l in a||(a={}))r.call(a,l)&&s(e,l,a[l]);if(t)for(var l of t(a))o.call(a,l)&&s(e,l,a[l]);return e},u=(e,t)=>a(e,l(t));import{d,bw as c,r as p,n as m,h as i,i as b,c as f,f as g,w as v,u as _,g as k,o as y,b as h,t as w,s as x,E as P,v as j,x as I}from"./vendor.1bc4be78.js";import{a as O,_ as R}from"./index.ed21fdb7.js";import{e as C}from"./index.7bae97b9.js";import{u as V}from"./useBasicTable.8c567ae6.js";const q=[{label:"编号",prop:"id"},{label:"套餐名称",prop:"package",customRender:e=>e.package.name},{label:"问答机会",prop:"packageNum",customRender:e=>"-1"==e.package.num?"不限次数":e.package.num},{label:"兑换码",prop:"code"},{label:"用户昵称",prop:"member",customRender:e=>e.member?e.member.nickname:""},{label:"用户手机号",prop:"member",customRender:e=>e.member?e.member.mobile:""},{label:"兑换时间",prop:"updated_at"},{label:"使用状态",prop:"status",customRender:({status:e})=>({1:"未兑换",2:"已兑换",3:"已过期"}[e])}],S=[{field:"status",component:"Select",label:"使用状态:",componentProps:{style:{width:"100%"},options:[{label:"全部",value:""},{label:"未兑换",value:"1"},{label:"已兑换",value:"2"}]}},{field:"nickname",component:"Input",label:"昵称:",componentProps:{placeholder:"请输入昵称"}},{field:"mobile",component:"Input",label:"手机号:",componentProps:{placeholder:"请输入手机号"}},{field:"code",component:"Input",label:"兑换码:",componentProps:{placeholder:"请输入兑换码"}}],U={class:"cb-page"},$=k(" 导出兑换码 "),E=d({__name:"cdkTable",props:{cdkInfo:{type:Object,default:()=>({})}},setup(e){const a=e,l=c(),t=p({}),r=m((()=>n({with_query:["package","member","group"],group_id:l.params.id},k))),{registerTable:o,setProps:s,reload:d,extraParams:k}=V({columns:q,formSchemas:S}),y=e=>{t.value=e},h=async()=>{try{const e=await O().code.cdkExport(u(n({},t.value),{with_query:["package","member","group"],is_all:!0,group_id:l.params.id}));Math.random().toString().slice(-10);w(`${l.params.id}-${a.cdkInfo.name||""}-${a.cdkInfo.num||0}个兑换码`,e)}catch(e){}},w=(e,a)=>{let l=`${e}.xls`,t=document.createElement("a");t.download=l,t.style.display="none";let r=new Blob([a],{type:"application/vnd.ms-excel"});const o=URL.createObjectURL(r);t.href=o,document.body.appendChild(t),t.click(),document.body.removeChild(t)};return(e,a)=>{const l=i("el-button");return b(),f("div",U,[g(_(C),{onRegister:_(o),api:e.$api.code.getCdkList,extraParams:_(r),onHandleSearchInfoChange:y},{"cb-table-header":v((()=>[g(l,{type:"primary",onClick:h},{default:v((()=>[$])),_:1})])),_:1},8,["onRegister","api","extraParams"])])}}});const T={class:"detail cb-page"},L={class:"cb-m-b-20"},B={key:0,class:"detail-form"},D=(e=>(j("data-v-5dfb416a"),e=e(),I(),e))((()=>h("p",{style:{color:"#ccc"}},"是否结算/收取费用/备注,由管理员手动写入存储,可修改,仅供跟进参考",-1))),F=k("保存");var H=R(d({__name:"index",setup(e){const a=c(),l=p("1"),t=p([{value:"1",name:"兑换码详情管理"},{value:"2",name:"兑换码管理"}]),r=p(null),o=p({name:"",status:"",price:"",remark:"",package:{}}),s={price:[{required:!0,message:"请输入收取费用",trigger:"blur"}],name:[{required:!0,message:"请输入分组名称",trigger:"blur"}],status:[{required:!0,message:"请输入结算状态",trigger:"blur"}],remark:[{required:!0,message:"请输入备注",trigger:"blur"}]};y((()=>{d(a.params.id)}));const d=async e=>{try{const{data:a,err_code:l}=await O().code.getCdkDetail({id:e,with_query:["package"]});l||(o.value=u(n({},a),{status:a.status+""}))}catch(a){}},m=()=>{r.value.validate((async(e,a)=>{if(e){const{name:e,status:a,price:t,remark:r,id:s}=o.value;try{const{data:l,err_code:o}=await O().code.editCdk({id:s,name:e,status:a,price:t,remark:r});o||P.success("保存成功")}catch(l){}}}))};return(e,a)=>{const n=i("CbTab"),u=i("el-form-item"),d=i("el-col"),c=i("el-row"),p=i("el-input"),_=i("el-button"),y=i("el-form"),P=i("el-card");return b(),f("div",T,[g(P,null,{default:v((()=>[h("div",L,[g(n,{tabs:t.value,modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e)},null,8,["tabs","modelValue"])]),"1"===l.value?(b(),f("div",B,[g(y,{ref_key:"ruleFormRef",ref:r,model:o.value,rules:s,class:"demo-form-inline","label-width":"100px"},{default:v((()=>[g(c,{gutter:20},{default:v((()=>[g(d,{span:12},{default:v((()=>[g(u,{label:"批次编号:"},{default:v((()=>[k(w(o.value.id),1)])),_:1})])),_:1}),g(d,{span:12},{default:v((()=>[g(u,{label:"生成时间:"},{default:v((()=>[k(w(o.value.created_at),1)])),_:1})])),_:1}),g(d,{span:12},{default:v((()=>[g(u,{label:"选择套餐:"},{default:v((()=>[k(w(o.value.package.name),1)])),_:1})])),_:1}),g(d,{span:12},{default:v((()=>[g(u,{label:"问答机会:"},{default:v((()=>[k(w("-1"==o.value.package.num?"不限次数":o.value.package.num+"次"),1)])),_:1})])),_:1}),g(d,{span:12},{default:v((()=>[g(u,{label:"套餐价格:"},{default:v((()=>[k(w("¥"+o.value.package.price),1)])),_:1})])),_:1}),g(d,{span:12},{default:v((()=>[g(u,{label:"生成数量:"},{default:v((()=>[k(w(o.value.num),1)])),_:1})])),_:1}),g(d,{span:12},{default:v((()=>[g(u,{label:"总价值:"},{default:v((()=>[k(w("¥"+o.value.num*o.value.package.price),1)])),_:1})])),_:1})])),_:1}),g(u,{label:"分组名称:",prop:"name"},{default:v((()=>[g(p,{modelValue:o.value.name,"onUpdate:modelValue":a[1]||(a[1]=e=>o.value.name=e),placeholder:"请输入分组名称"},null,8,["modelValue"])])),_:1}),g(u,{label:"备注:",prop:"remark"},{default:v((()=>[g(p,{modelValue:o.value.remark,"onUpdate:modelValue":a[2]||(a[2]=e=>o.value.remark=e),type:"textarea",rows:3,placeholder:"请输入备注",maxlength:300},null,8,["modelValue"]),D])),_:1}),g(u,null,{default:v((()=>[g(_,{type:"primary",onClick:m},{default:v((()=>[F])),_:1})])),_:1})])),_:1},8,["model"])])):(b(),x(E,{key:1,cdkInfo:o.value},null,8,["cdkInfo"]))])),_:1})])}}}),[["__scopeId","data-v-5dfb416a"]]);export{H as default}; diff --git a/gptadmin/assets/index.47f6e8f7.js b/gptadmin/assets/index.47f6e8f7.js new file mode 100644 index 0000000..528613e --- /dev/null +++ b/gptadmin/assets/index.47f6e8f7.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,t=(a,o,l)=>o in a?e(a,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[o]=l;import{c as r,d as n,e as d}from"./index.7bae97b9.js";import{d as p,a as s,H as c,n as i,h as m,i as u,c as b,f,w as h,u as g,b as k,g as y,E as P,v as _,x as v,m as x,aA as C}from"./vendor.1bc4be78.js";import{u as V}from"./useBasicTable.8c567ae6.js";import{u as w}from"./useDialog.6d3ee2da.js";import{a as R,_ as j}from"./index.ed21fdb7.js";import{u as I}from"./useBasicForm.d295827a.js";const S=[{label:"批次编号",prop:"id"},{label:"分组名称",prop:"name"},{label:"套餐名称",prop:"package",customRender:e=>e.package.name},{label:"问答机会",prop:"packageNum",customRender:e=>"-1"==e.package.num?"不限次数":e.package.num},{label:"套餐价格",prop:"packagePrice",customRender:e=>e.package.price},{label:"兑换码数量",prop:"num"},{label:"总价值",prop:"packagePrice",customRender:e=>e.package.price*e.num},{label:"创建时间",prop:"created_at"},{label:"操作",slot:"handle",width:"120px"}],F=[{field:"name",component:"Input",label:"分组名称:",componentProps:{placeholder:"请输入分组名称"}},{field:"created_at",component:"DatePicker",label:"创建时间:",componentProps:{type:"datetimerange",startPlaceholder:"开始日期",endPlaceholder:"结束日期",format:"YYYY-MM-DD"},defaultValue:[]}],O=[{field:"name",label:"分组名称",component:"Input",required:!0,componentProps:{placeholder:"请输入分组名称,50字以内",maxlength:50}},{field:"package_id",component:"ApiSelect",label:"选择套餐",required:!0,componentProps:{style:{width:"100%"},api:R().chatGPT.packageList,resultField:"data",labelField:"name",valueField:"id"}},{field:"num",label:"生成数量",component:"InputNumber",required:!0,componentProps:{placeholder:"请输入分组名称,50字以内",min:1,max:500},defaultValue:1},{field:"remark",label:"备注",component:"Input",required:!0,componentProps:{type:"textarea",placeholder:"请写清楚本批次兑换码用途,300字以内",maxlength:300}}];const q={class:"box"},D=(e=>(_("data-v-3dc6b118"),e=e(),v(),e))((()=>k("div",{class:"tip"},"输入正整数,请按需生成兑换码数量,上限500",-1))),B=y("¥"),H=y("取消"),T=y("提交");var Y=j(p({__name:"AddRedemptionCode",props:{modelValue:{type:[Boolean],default:!1}},emits:["update:modelValue","reload"],setup(e,{emit:a}){const o=e;s({active:0,type:1,delivery_service_codes:[]});const{register:l,resetFields:t,clearValidate:d,validate:p,setFieldsValue:y}=I({schemas:O}),{handlePopup:_}=w({emit:a,props:o,watchShow:async()=>{c((()=>{t(),setTimeout((()=>{d()}))}))}});i((()=>o));const v=async()=>{try{const e=await p();await R().code.addCdk(e),P.success("操作成功"),_(!1),a("reload")}catch(e){}};return(a,o)=>{const t=m("CbNumberInput"),d=m("el-button");return u(),b("div",null,[f(g(n),{"dialog-props":{title:"新增兑换码",modelValue:e.modelValue,showClose:!0,width:"800px"},scrollBarProps:{maxHeight:700},center:"",onCancel:o[1]||(o[1]=e=>g(_)(!1))},{foot:h((()=>[f(d,{onClick:o[0]||(o[0]=e=>g(_)(!1))},{default:h((()=>[H])),_:1}),f(d,{type:"primary",onClick:v},{default:h((()=>[T])),_:1})])),default:h((()=>[k("div",q,[f(g(r),{onRegister:g(l)},{"number-bottom":h((()=>[D])),money:h((({model:e,field:a})=>[f(t,{mode:"double",min:0,fixed:2,modelValue:e[a],"onUpdate:modelValue":o=>e[a]=o,placeholder:"0.00"},{prepend:h((()=>[B])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:1},8,["onRegister"])])])),_:1},8,["dialog-props"])])}}}),[["__scopeId","data-v-3dc6b118"]]);const A={class:"cb-page"},E=y(" 新增兑换码 "),N=y(" 兑换码管理 "),U=p({__name:"index",setup(e){const r=x(),n=i((()=>((e,r)=>{for(var n in r||(r={}))o.call(r,n)&&t(e,n,r[n]);if(a)for(var n of a(r))l.call(r,n)&&t(e,n,r[n]);return e})({with_query:["package"]},y))),{registerTable:p,setProps:s,reload:c,handleSearchInfoChange:k,extraParams:y}=V({columns:S,formSchemas:F}),{openEdit:P,showDialog:_}=w({});return(e,a)=>{const o=m("el-button");return u(),b("div",A,[f(g(d),{onRegister:g(p),api:e.$api.code.getCdkGroup,extraParams:g(n),onHandleSearchInfoChange:g(k)},{"cb-table-header":h((()=>[f(o,{type:"primary",onClick:g(P)},{default:h((()=>[E])),_:1},8,["onClick"])])),handle:h((e=>[f(o,{size:"small",onClick:a=>g(r).push({path:`/operate/code/info/${e.id}`})},{default:h((()=>[N])),_:2},1032,["onClick"])])),_:1},8,["onRegister","api","extraParams","onHandleSearchInfoChange"]),f(Y,{modelValue:g(_),"onUpdate:modelValue":a[0]||(a[0]=e=>C(_)?_.value=e:null),onReload:g(c)},null,8,["modelValue","onReload"])])}}});export{U as default}; diff --git a/gptadmin/assets/index.4847aa2e.js b/gptadmin/assets/index.4847aa2e.js new file mode 100644 index 0000000..47f34c6 --- /dev/null +++ b/gptadmin/assets/index.4847aa2e.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,i=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l,r=(e,a)=>{for(var t in a||(a={}))o.call(a,t)&&i(e,t,a[t]);if(l)for(var t of l(a))s.call(a,t)&&i(e,t,a[t]);return e};import{c as d,d as n,e as p}from"./index.7bae97b9.js";import{a as c,_ as u}from"./index.ed21fdb7.js";import{ay as m,d as b,i as h,c as f,f as g,w as v,b as y,u as w,E as _,a as x,r as P,P as D,Q as k,g as V,t as j,e as O,v as C,x as T,h as R,aA as S}from"./vendor.1bc4be78.js";import{u as B}from"./useBasicTable.8c567ae6.js";import{u as G}from"./useDialog.6d3ee2da.js";import{u as E}from"./useBasicForm.d295827a.js";const $=[{field:"package_id",label:"赠送套餐:",component:"ApiSelect",defaultValue:[],componentProps:{placeholder:"请选择套餐",style:{width:"100%"},api:c().chatGPT.packageList,resultField:"data",labelField:"name",valueField:"id",filterable:!0}}],F={class:"box"},I=b({__name:"GiftDialog",props:{modelValue:{type:[Boolean],default:!1},editData:{type:[null,Object],default:()=>null}},emits:["update:modelValue","reload"],setup(e,{emit:a}){const t=e,{register:l,validate:o}=E({schemas:$}),{handlePopup:s}=G({emit:a,props:t,watchShow:async()=>{t.editData}}),i=async()=>{try{const{id:l}=t.editData,i=await o();if(!i.package_id)return void _.error("请选择套餐");try{await c().chatGPT.sendPackage(r({user_id:l},i)),_.success("赠送成功")}catch(e){}s(!1),a("reload")}catch(e){}};return(a,t)=>(h(),f("div",null,[g(w(n),{"dialog-props":{title:"赠送套餐",modelValue:e.modelValue,showClose:!0,width:"400px"},center:"",onCancel:t[0]||(t[0]=e=>w(s)(!1)),onSubmit:i},{default:v((()=>[y("div",F,[g(w(d),{onRegister:w(l)},null,8,["onRegister"])])])),_:1},8,["dialog-props"])]))}});const A=e=>(C("data-v-d4c57166"),e=e(),T(),e),L={key:0,class:"box"},U={class:"box-balance"},M=A((()=>y("div",{class:"box-balance-title"}," 套餐余额: ",-1))),Q={class:"cb-m-r-25"},q=A((()=>y("span",null,"套餐名称:",-1))),z={key:0},H=A((()=>y("span",null,"到期时间:",-1))),J={key:1},K=A((()=>y("span",null,"剩余有效次数:",-1)));var N=u(b({__name:"BalanceDetail",props:{modelValue:{type:[Boolean],default:!1},editData:{type:[null,Object],default:()=>null}},emits:["update:modelValue","reload"],setup(e,{emit:l}){const o=e,s=x({}),i=P([]),{registerTable:d,reload:u}=B({columns:[{label:"套餐名称",prop:"package_name"},{label:"问答机会",prop:"num",slot:"num",width:"120"},{label:"日期",prop:"created_at"}],showTableCard:!1}),{handlePopup:m}=G({emit:l,props:o,watchShow:async()=>{if(o.editData){const{id:e}=o.editData,{data:a}=await c().chatGPT.getEnablePackage({user_id:e});i.value=a}}});return(l,o)=>(h(),f("div",null,[g(w(n),{"dialog-props":{title:"套餐余额",modelValue:e.modelValue,showClose:!0,width:"650px"},"btn-props":{submitBtnOptions:{show:!1}},center:"",onCancel:o[0]||(o[0]=e=>w(m)(!1))},{default:v((()=>{return[e.modelValue&&e.editData?(h(),f("div",L,[y("div",U,[M,(h(!0),f(D,null,k(i.value,(e=>(h(),f("div",{key:e.id,class:"box-balance-item cb-flex"},[y("div",Q,[q,V(j(e.name),1)]),-1===e.num?(h(),f("div",z,[H,V(j(e.expired_at),1)])):(h(),f("div",J,[K,V(j(e.num-e.used),1)]))])))),128))]),g(w(p),{onRegister:w(d),api:l.$api.user.getPackageRecord,height:"auto",extraParams:(o=r({},s),n={user_id:e.editData.id},a(o,t(n)))},{num:v((e=>[V(j(-1===e.num?`+ ${e.expired_day}天`:`+ ${e.num}次`),1)])),_:1},8,["onRegister","api","extraParams"])])):O("",!0)];var o,n})),_:1},8,["dialog-props"])]))}}),[["__scopeId","data-v-d4c57166"]]);const W={class:"cb-page page-user"},X=V(" 查看 "),Y=V(" 赠送 "),Z=b({__name:"index",setup(e){const{showDialog:a,editData:t,openEdit:l}=G({}),{showDialog:o,editData:s,openEdit:i}=G({}),{registerTable:r,reload:d}=B({columns:[{label:"头像",prop:"avatar",slot:"avatar",width:100},{label:"昵称",prop:"nickname"},{label:"手机号",prop:"mobile",width:200},{label:"套餐余额",slot:"balance",width:100},{label:"创建时间",prop:"register_at",width:200},{label:"用户状态",prop:"status",customRender:({status:e})=>{const a={1:"正常",2:"冻结中"};return 1==e?a[e]:m("span",{style:{color:"red"}},{default:()=>a[e]})}},{label:"操作",width:100,slot:"handles"}],formSchemas:[{field:"nickname",component:"Input",label:"昵称",componentProps:{placeholder:"请输入昵称"}},{field:"mobile",component:"Input",label:"手机号",componentProps:{placeholder:"请输入手机号"}}]});return(e,n)=>{const u=R("el-image"),m=R("el-button");return h(),f("div",W,[g(w(p),{onRegister:w(r),api:e.$api.chatGPT.memberList},{avatar:v((({avatar:a})=>[g(u,{style:{width:"50px",height:"50px"},src:a||e.$images.default,fit:"fill"},null,8,["src"])])),balance:v((e=>[g(m,{type:"text",onClick:a=>w(i)(e)},{default:v((()=>[X])),_:2},1032,["onClick"])])),handles:v((e=>[g(m,{type:"text",onClick:a=>w(l)(e)},{default:v((()=>[Y])),_:2},1032,["onClick"]),g(m,{type:"text",onClick:a=>(async e=>{await c().chatGPT.changeMemberStatus(e.id),_.success("修改成功"),d()})(e)},{default:v((()=>[V(j(1===e.status?"封禁":"解封"),1)])),_:2},1032,["onClick"])])),_:1},8,["onRegister","api"]),g(I,{modelValue:w(a),"onUpdate:modelValue":n[0]||(n[0]=e=>S(a)?a.value=e:null),editData:w(t)},null,8,["modelValue","editData"]),g(N,{modelValue:w(o),"onUpdate:modelValue":n[1]||(n[1]=e=>S(o)?o.value=e:null),editData:w(s)},null,8,["modelValue","editData"])])}}});export{Z as default}; diff --git a/gptadmin/assets/index.4fe6dbde.js b/gptadmin/assets/index.4fe6dbde.js new file mode 100644 index 0000000..793cd14 --- /dev/null +++ b/gptadmin/assets/index.4fe6dbde.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,s=(t,r,o)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,n=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&s(e,r,t[r]);if(o)for(var r of o(t))l.call(t,r)&&s(e,r,t[r]);return e};import{e as p}from"./index.a35ddce3.js";import{d as i,bw as c,r as m,a as u,o as b,i as d,c as f,f as P,u as y}from"./vendor.1bc4be78.js";import{a as O}from"./index.a7987ea2.js";const g={class:"cb-page page-user"},h=i({__name:"index",setup(e){const o=c(),a=[{label:"订单编号",prop:"trade_no"},{label:"订单ID",prop:"order_id"},{label:"利率",prop:"ratio",customRender:({ratio:e})=>e+"%"},{label:"分销员昵称",prop:"nickname",customRender:({user:e})=>e.nickname||"暂无"},{label:"分销员手机号",prop:"mobile",customRender:({user:e})=>e.mobile||"暂无"},{label:"客户昵称",prop:"customNickname",customRender:({custom:e})=>e.nickname||"暂无"},{label:"客户手机号",prop:"customMobile",customRender:({custom:e})=>e.mobile||"暂无"},{label:"订单金额",prop:"order_price"},{label:"佣金",prop:"price"},{label:"订单状态",prop:"status",customRender:({status:e})=>({1:"未支付",2:"已支付"}[e])}],l=m(null),s=u({}),i={style:{marginBottom:"20px"}},h=(o.query.id,{labelWidth:100,submitOnReset:!0,actionColOptions:{offset:0,span:8,style:{textAlign:"left"}},baseColProps:{span:8},rowProps:{gutter:24},labelPosition:"left",schemas:[{field:"status",component:"Select",label:"订单状态:",componentProps:{style:{width:"100%"},options:[{label:"未支付",value:"1"},{label:"已支付",value:"2"}]}},{field:"created_at",component:"DatePicker",label:"下单时间:",componentProps:{type:"datetimerange",startPlaceholder:"开始日期",endPlaceholder:"结束日期",format:"YYYY-MM-DD"},defaultValue:[]}],submitButtonOptions:{text:"搜索"},resetButtonOptions:{}});b((()=>{}));const j=e=>{s.created_at=(e.created_at||[]).join("~")};return(e,o)=>{return d(),f("div",g,[P(y(p),{columns:y(a),api:y(O)().chatGPT.getSalesmanOrder,onHandleSearchInfoChange:j,"form-config":y(h),"form-card-options":i,extraParams:(c=n({},s),m={with_query:["member"]},t(c,r(m))),ref_key:"tableRef",ref:l},null,8,["columns","api","form-config","extraParams"])]);var c,m}}});export{h as default}; diff --git a/gptadmin/assets/index.524432e1.js b/gptadmin/assets/index.524432e1.js new file mode 100644 index 0000000..fe2d802 --- /dev/null +++ b/gptadmin/assets/index.524432e1.js @@ -0,0 +1 @@ +var e=Object.defineProperty,l=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(l,a,t)=>a in l?e(l,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[a]=t,i=(e,l)=>{for(var a in l||(l={}))o.call(l,a)&&s(e,a,l[a]);if(t)for(var a of t(l))n.call(l,a)&&s(e,a,l[a]);return e},d=(e,t)=>l(e,a(t));import{a as r,M as c,E as p,d as u,h as m,i as b,s as h,w as f,b as v,f as g,u as w,g as y,v as V,x as P,m as k,o as _,c as x,az as I,P as q,Q as C,av as D,t as j,bx as U,by as N,aA as O,a0 as S}from"./vendor.1bc4be78.js";import{a as L,_ as G}from"./index.a7987ea2.js";import{c as T,d as z}from"./index.a35ddce3.js";import{u as B}from"./useDialog.9249a547.js";import{u as E}from"./useBasicForm.a463284a.js";const R=()=>{const e=r({packageList:[],page:{page:1,per_page:199}}),l=async()=>{try{const{data:l}=await L().chatGPT.packageList(i({},e.page));e.packageList=l}catch(l){}};return d(i({},c(e)),{onGetPackageList:l,onCreatePackage:async(e,l)=>{try{const a=!!e.id,{err_code:t}=await L().chatGPT[a?"putPackage":"savePackage"](i({},e));t||(p.success(a?"修改成功":"新增成功"),l&&l())}catch(a){}},onPackageShow:async e=>{try{const{err_code:a}=await L().chatGPT.putPackageShow({id:e.id});a||l()}catch(a){}},onCheckInputValue:e=>{}})};const F=e=>(V("data-v-13a1dcd2"),e=e(),P(),e),A={class:"package"},H=y(" ¥ "),M=F((()=>v("div",{class:"text"},"购买后展示到个人中心的名称",-1))),Q=F((()=>v("div",{class:"text"},[v("p",null,"支持输入0-10000的整数"),v("p",null,"按天数:购买后几天有效,输入0时表示有效期至2099年"),v("p",null,"按次数:购买后可使用几次对话")],-1))),J=F((()=>v("div",{class:"text"},"有多个套餐时等级越高,则优先扣费",-1)));var K=G(u({__name:"ListCreateDialog",props:{modelValue:{type:[Boolean],default:!1},editData:{type:[Array],default:()=>null}},emits:["update:modelValue","reload"],setup(e,{emit:l}){var a;const t=e,{register:o,validate:n,setFieldsValue:s,resetFields:r,setProps:c}=E({schemas:(null==(a=t.editData)||a.id,[{field:"name",component:"Input",label:"套餐名称",required:!0,componentProps:{maxlength:"20",placeholder:"售卖时的名称"}},{field:"show_name",component:"Input",label:"显示名称",required:!0,slot:"show_name",componentProps:{placeholder:"请输入展示名称"}},{field:"code",component:"Select",label:"类型",componentProps:{style:{width:"100%"},options:[{label:"按次数",value:"num"},{label:"按天数",value:"date"}]},defaultValue:"num",required:!0},{field:"num",component:"InputNumber",label:"有效数量",required:!0,slot:"num"},{field:"price",component:"Input",label:"价格",required:!0,slot:"price"},{field:"level",component:"InputNumber",label:"扣费等级",required:!0,slot:"level"},{field:"sort",component:"InputNumber",label:"排序",required:!0,componentProps:{style:{width:"100%"},min:0},defaultValue:0},{field:"show",component:"Input",label:"是否展示",required:!0,defaultValue:"0",show:!1}])}),{getEditId:p,getEdit:u,handlePopup:y}=B({props:t,emit:l,watchShow:e=>{if(t.editData){const{identity:e,type:l,show:a,id:o}=t.editData;c({schemas:[{field:"name",component:"Input",label:"套餐名称",required:!0,componentProps:{maxlength:"20",placeholder:"售卖时的名称"}},{field:"show_name",component:"Input",label:"显示名称",required:!0,slot:"show_name",componentProps:{placeholder:"请输入展示名称"}},{field:"code",component:"Select",label:"类型",componentProps:{style:{width:"100%"},options:[{label:"按次数",value:"num"},{label:"按天数",value:"date"}]},defaultValue:"num",required:!0},{field:"num",component:"InputNumber",label:"有效数量",required:!0,slot:"num"},{field:"price",component:"Input",label:"价格",required:!0,slot:"price"},{field:"level",component:"InputNumber",label:"扣费等级",required:!0,slot:"level"},{field:"sort",component:"InputNumber",label:"排序",required:!0,componentProps:{style:{width:"100%"},min:0},defaultValue:0},{field:"show",component:"Input",label:"是否展示",required:!0,defaultValue:"0",show:!1}]}),s(d(i({},t.editData),{identity:e+"",type:l+"",show:a+""}))}else c({schemas:[{field:"name",component:"Input",label:"套餐名称",required:!0,componentProps:{maxlength:"20",placeholder:"售卖时的名称"}},{field:"show_name",component:"Input",label:"显示名称",required:!0,slot:"show_name",componentProps:{placeholder:"请输入展示名称"}},{field:"code",component:"Select",label:"类型",componentProps:{style:{width:"100%"},options:[{label:"按次数",value:"num"},{label:"按天数",value:"date"}]},defaultValue:"num",required:!0},{field:"num",component:"InputNumber",label:"有效数量",required:!0,slot:"num"},{field:"price",component:"Input",label:"价格",required:!0,slot:"price"},{field:"level",component:"InputNumber",label:"扣费等级",required:!0,slot:"level"},{field:"sort",component:"InputNumber",label:"排序",required:!0,componentProps:{style:{width:"100%"},min:0},defaultValue:0},{field:"show",component:"Input",label:"是否展示",required:!0,defaultValue:"0",show:!1}]})}}),{onCreatePackage:V,onCheckInputValue:P}=R(),k=async()=>{const e=await n(),a=t.editData?d(i({},e),{id:t.editData.id}):e;V(a,(()=>{y(),l("reload")}))},_=()=>{y(!1),r()};return(l,a)=>{const t=m("el-input-number"),n=m("el-input");return b(),h(w(z),{"dialog-props":{title:"套餐新增",modelValue:e.modelValue,showClose:!0,width:"800px"},scrollBarProps:{maxHeight:500},center:"",top:"10vh",onCancel:_,onSubmit:k},{default:f((()=>[v("div",A,[g(w(T),{onRegister:w(o)},{price:f((({model:e,field:l})=>[g(t,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入价格",precision:2,step:.1,min:.01,style:{width:"100%"},"controls-position":"right",class:"input-with-select"},{append:f((()=>[H])),_:2},1032,["modelValue","onUpdate:modelValue","step","min"])])),show_name:f((({model:e,field:l})=>[g(n,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入展示名称",class:"input-with-select"},null,8,["modelValue","onUpdate:modelValue"]),M])),num:f((({model:e,field:l})=>[g(t,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入数量",type:"number",max:1e4,min:0,style:{width:"100%"},"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),Q])),level:f((({model:e,field:l})=>[g(t,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入套餐等级",min:"0",precision:0,style:{width:"100%"},"controls-position":"right",class:"input-with-select"},null,8,["modelValue","onUpdate:modelValue"]),J])),_:1},8,["onRegister"])])])),_:1},8,["dialog-props"])}}}),[["__scopeId","data-v-13a1dcd2"]]);const W={class:"cb-page package"},X={class:"package-head cb-m-b-20"},Y={class:"cb-flex"},Z=v("span",{class:"cb-p-t-2"},"新增",-1),$={key:0,class:"package-list cb-flex"},ee=["onClick"],le={class:"box cb-flex cb-m-b-6"},ae={class:"box-left cb-m-r-10"},te={class:"box-right"},oe={class:"name"},ne={class:"name"},se={class:"name"},ie={class:"name"},de={class:"buttom cb-flex"},re={class:"cb-flex"},ce={class:"cb-m-r-20"},pe={class:"cb-m-r-10"},ue=u({__name:"index",setup(e){const l=k(),{openEdit:a,editData:t,showDialog:o}=B({}),{onGetPackageList:n,packageList:s,onPackageShow:i}=R();_((()=>{n()}));return(e,d)=>{const r=m("el-icon"),c=m("el-button"),u=m("el-switch"),V=m("el-empty"),P=m("el-card");return b(),x("div",W,[g(P,null,{default:f((()=>[v("div",X,[g(c,{type:"primary",onClick:d[0]||(d[0]=e=>w(a)(null))},{default:f((()=>[v("div",Y,[g(r,{size:20,class:"cb-m-r-2"},{default:f((()=>[g(w(I))])),_:1}),Z])])),_:1})]),w(s).length>0?(b(),x("div",$,[(b(!0),x(q,null,C(w(s),(e=>(b(),x("div",{class:"package-list-item cb-p-15",key:e.id},[v("div",{class:"del-icon",onClick:l=>{return a=e,void S.confirm("确定删除吗?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"error"}).then((async()=>{await L().chatGPT.delPackage(a.id),p.success("删除成功"),n()}));var a}},[g(r,null,{default:f((()=>[g(w(D))])),_:1})],8,ee),v("div",le,[v("div",ae," ¥"+j(e.price),1),v("div",te,[v("div",oe,"名称:"+j(e.name),1),v("div",ne,"套餐次数:"+j(-1===e.num?"不限次数":e.num+"次"),1),v("div",se,"有效时间:"+j(0===e.expired_day?"不限时间":e.expired_day+"天"),1),v("div",ie,[y("价格:"+j(e.price)+" ",1),g(r,{size:20,color:"var(--el-color-primary)",onClick:l=>w(a)(e)},{default:f((()=>[g(w(U))])),_:2},1032,["onClick"])])])]),v("div",de,[v("div",re,[v("span",ce," 已支付总金额:"+j(e.order_sum_payment||"0.00"),1),v("span",pe,"购买数量:"+j(e.order_count||0),1),g(r,{size:20,color:"var(--el-color-primary)",onClick:a=>(({id:e})=>{l.push({path:"/operate/member/order",query:{id:e}})})(e)},{default:f((()=>[g(w(N))])),_:2},1032,["onClick"])]),g(u,{modelValue:e.show,"onUpdate:modelValue":l=>e.show=l,onClick:l=>(({id:e})=>{i({id:e})})(e),"active-value":1,"inactive-value":0},null,8,["modelValue","onUpdate:modelValue","onClick"])])])))),128))])):(b(),h(V,{key:1,"image-size":200}))])),_:1}),g(K,{modelValue:w(o),"onUpdate:modelValue":d[1]||(d[1]=e=>O(o)?o.value=e:null),editData:w(t),onReload:w(n)},null,8,["modelValue","editData","onReload"])])}}});export{ue as default}; diff --git a/gptadmin/assets/index.5977777e.js b/gptadmin/assets/index.5977777e.js new file mode 100644 index 0000000..499ec5e --- /dev/null +++ b/gptadmin/assets/index.5977777e.js @@ -0,0 +1 @@ +import{e}from"./index.a35ddce3.js";import{u as a}from"./useBasicTable.a2a9fef8.js";import{d as o,i as l,c as r,f as p,u as n}from"./vendor.1bc4be78.js";import"./index.a7987ea2.js";const t=[{label:"批次编号",prop:"id"},{label:"分组名称",prop:"groupName",customRender:e=>{var a;return(null==(a=e.group)?void 0:a.name)||""}},{label:"套餐名称",prop:"packageName",customRender:e=>{var a;return(null==(a=e.package)?void 0:a.name)||""}},{label:"问答机会",prop:"packageNum",customRender:e=>"-1"==e.package.num?"不限次数":e.package.num},{label:"兑换码",prop:"code"},{label:"用户昵称",prop:"memberNickname",customRender:e=>{var a;return(null==(a=e.member)?void 0:a.nickname)||""}},{label:"用户手机号",prop:"memberMobile",customRender:e=>{var a;return(null==(a=e.member)?void 0:a.mobile)||""}},{label:"兑换时间",prop:"updated_at"},{label:"使用状态",prop:"status",customRender:({status:e})=>({1:"未兑换",2:"已兑换",3:"已过期"}[e])}],m=[{field:"name",component:"Input",label:"分组名称:",componentProps:{placeholder:"请输入分组名称"}},{field:"code",component:"Input",label:"兑换码:",componentProps:{placeholder:"请输入兑换码"}},{field:"nickname",component:"Input",label:"昵称:",componentProps:{placeholder:"请输入昵称"}},{field:"mobile",component:"Input",label:"手机号:",componentProps:{placeholder:"请输入手机号"}},{field:"status",component:"Select",label:"状态:",componentProps:{style:{width:"100%"},options:[{label:"未兑换",value:"1"},{label:"已兑换",value:"2"}]}}],s={class:"cb-page"},c=o({__name:"index",setup(o){const{registerTable:c,setProps:u,reload:d}=a({columns:t,formSchemas:m});return(a,o)=>(l(),r("div",s,[p(n(e),{onRegister:n(c),api:a.$api.code.getCdkList,extraParams:{with_query:["package","member","group"]}},null,8,["onRegister","api"])]))}});export{c as default}; diff --git a/gptadmin/assets/index.5f1d476c.js b/gptadmin/assets/index.5f1d476c.js new file mode 100644 index 0000000..8d0d211 --- /dev/null +++ b/gptadmin/assets/index.5f1d476c.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,r=(a,t,o)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,l=(e,l)=>{for(var s in l||(l={}))t.call(l,s)&&r(e,s,l[s]);if(a)for(var s of a(l))o.call(l,s)&&r(e,s,l[s]);return e};import{e as s}from"./index.a35ddce3.js";import{ay as n,d as p,bw as c,r as i,a as m,o as b,i as d,c as u,f,u as P}from"./vendor.1bc4be78.js";import{a as g}from"./index.a7987ea2.js";const y={class:"cb-page page-user"},h=p({__name:"index",setup(e){c();const a=[{label:"用户昵称",prop:"nickname"},{label:"用户头像",prop:"avatar",customRender:({avatar:e})=>n("img",{src:e,style:{width:"50px"}},null)},{label:"用户手机号",prop:"mobile",customRender:({mobile:e})=>e||"暂无"},{label:"余额",prop:"balance"},{label:"利率",prop:"ratio",customRender:({ratio:e})=>e+"%"},{label:"状态",prop:"status",customRender:({status:e})=>({1:"正常",2:"禁用"}[e])},{label:"创建时间",prop:"created_at"}],t=i(null),o=m({}),r={style:{marginBottom:"20px"}},p={labelWidth:100,submitOnReset:!0,actionColOptions:{offset:0,span:8,style:{textAlign:"left"}},baseColProps:{span:8},rowProps:{gutter:24},labelPosition:"left",schemas:[{field:"mobile",component:"Input",label:"手机号:",componentProps:{placeholder:"请输入手机号"}},{field:"created_at",component:"DatePicker",label:"下单时间:",componentProps:{type:"datetimerange",startPlaceholder:"开始日期",endPlaceholder:"结束日期",format:"YYYY-MM-DD"},defaultValue:[]}],submitButtonOptions:{text:"搜索"},resetButtonOptions:{}};b((()=>{}));const h=e=>{o.created_at=(e.created_at||[]).join("~")};return(e,n)=>(d(),u("div",y,[f(P(s),{columns:P(a),api:P(g)().chatGPT.getSalesmanUser,onHandleSearchInfoChange:h,"form-config":P(p),"form-card-options":r,extraParams:l({},o),ref_key:"tableRef",ref:t},null,8,["columns","api","form-config","extraParams"])]))}});export{h as default}; diff --git a/gptadmin/assets/index.74bec2ed.js b/gptadmin/assets/index.74bec2ed.js new file mode 100644 index 0000000..d81c08d --- /dev/null +++ b/gptadmin/assets/index.74bec2ed.js @@ -0,0 +1 @@ +var e=Object.defineProperty,l=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(l,a,t)=>a in l?e(l,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[a]=t,d=(e,l)=>{for(var a in l||(l={}))o.call(l,a)&&s(e,a,l[a]);if(t)for(var a of t(l))n.call(l,a)&&s(e,a,l[a]);return e},i=(e,t)=>l(e,a(t));import{a as r,M as c,E as p,d as u,h as m,i as b,s as h,w as f,b as v,f as g,u as w,g as y,v as V,x as P,m as k,o as _,c as x,az as I,P as q,Q as C,av as D,t as j,bx as U,by as N,aA as O,a0 as S}from"./vendor.1bc4be78.js";import{a as L,_ as G}from"./index.ed21fdb7.js";import{c as T,d as z}from"./index.7bae97b9.js";import{u as B}from"./useDialog.6d3ee2da.js";import{u as E}from"./useBasicForm.d295827a.js";const R=()=>{const e=r({packageList:[],page:{page:1,per_page:199}}),l=async()=>{try{const{data:l}=await L().chatGPT.packageList(d({},e.page));e.packageList=l}catch(l){}};return i(d({},c(e)),{onGetPackageList:l,onCreatePackage:async(e,l)=>{try{const a=!!e.id,{err_code:t}=await L().chatGPT[a?"putPackage":"savePackage"](d({},e));t||(p.success(a?"修改成功":"新增成功"),l&&l())}catch(a){}},onPackageShow:async e=>{try{const{err_code:a}=await L().chatGPT.putPackageShow({id:e.id});a||l()}catch(a){}},onCheckInputValue:e=>{}})};const F=e=>(V("data-v-13a1dcd2"),e=e(),P(),e),A={class:"package"},H=y(" ¥ "),M=F((()=>v("div",{class:"text"},"购买后展示到个人中心的名称",-1))),Q=F((()=>v("div",{class:"text"},[v("p",null,"支持输入0-10000的整数"),v("p",null,"按天数:购买后几天有效,输入0时表示有效期至2099年"),v("p",null,"按次数:购买后可使用几次对话")],-1))),J=F((()=>v("div",{class:"text"},"有多个套餐时等级越高,则优先扣费",-1)));var K=G(u({__name:"ListCreateDialog",props:{modelValue:{type:[Boolean],default:!1},editData:{type:[Array],default:()=>null}},emits:["update:modelValue","reload"],setup(e,{emit:l}){var a;const t=e,{register:o,validate:n,setFieldsValue:s,resetFields:r,setProps:c}=E({schemas:(null==(a=t.editData)||a.id,[{field:"name",component:"Input",label:"套餐名称",required:!0,componentProps:{maxlength:"20",placeholder:"售卖时的名称"}},{field:"show_name",component:"Input",label:"显示名称",required:!0,slot:"show_name",componentProps:{placeholder:"请输入展示名称"}},{field:"code",component:"Select",label:"类型",componentProps:{style:{width:"100%"},options:[{label:"按次数",value:"num"},{label:"按天数",value:"date"}]},defaultValue:"num",required:!0},{field:"num",component:"InputNumber",label:"有效数量",required:!0,slot:"num"},{field:"price",component:"Input",label:"价格",required:!0,slot:"price"},{field:"level",component:"InputNumber",label:"扣费等级",required:!0,slot:"level"},{field:"sort",component:"InputNumber",label:"排序",required:!0,componentProps:{style:{width:"100%"},min:0},defaultValue:0},{field:"show",component:"Input",label:"是否展示",required:!0,defaultValue:"0",show:!1}])}),{getEditId:p,getEdit:u,handlePopup:y}=B({props:t,emit:l,watchShow:e=>{if(t.editData){const{identity:e,type:l,show:a,id:o}=t.editData;c({schemas:[{field:"name",component:"Input",label:"套餐名称",required:!0,componentProps:{maxlength:"20",placeholder:"售卖时的名称"}},{field:"show_name",component:"Input",label:"显示名称",required:!0,slot:"show_name",componentProps:{placeholder:"请输入展示名称"}},{field:"code",component:"Select",label:"类型",componentProps:{style:{width:"100%"},options:[{label:"按次数",value:"num"},{label:"按天数",value:"date"}]},defaultValue:"num",required:!0},{field:"num",component:"InputNumber",label:"有效数量",required:!0,slot:"num"},{field:"price",component:"Input",label:"价格",required:!0,slot:"price"},{field:"level",component:"InputNumber",label:"扣费等级",required:!0,slot:"level"},{field:"sort",component:"InputNumber",label:"排序",required:!0,componentProps:{style:{width:"100%"},min:0},defaultValue:0},{field:"show",component:"Input",label:"是否展示",required:!0,defaultValue:"0",show:!1}]}),s(i(d({},t.editData),{identity:e+"",type:l+"",show:a+""}))}else c({schemas:[{field:"name",component:"Input",label:"套餐名称",required:!0,componentProps:{maxlength:"20",placeholder:"售卖时的名称"}},{field:"show_name",component:"Input",label:"显示名称",required:!0,slot:"show_name",componentProps:{placeholder:"请输入展示名称"}},{field:"code",component:"Select",label:"类型",componentProps:{style:{width:"100%"},options:[{label:"按次数",value:"num"},{label:"按天数",value:"date"}]},defaultValue:"num",required:!0},{field:"num",component:"InputNumber",label:"有效数量",required:!0,slot:"num"},{field:"price",component:"Input",label:"价格",required:!0,slot:"price"},{field:"level",component:"InputNumber",label:"扣费等级",required:!0,slot:"level"},{field:"sort",component:"InputNumber",label:"排序",required:!0,componentProps:{style:{width:"100%"},min:0},defaultValue:0},{field:"show",component:"Input",label:"是否展示",required:!0,defaultValue:"0",show:!1}]})}}),{onCreatePackage:V,onCheckInputValue:P}=R(),k=async()=>{const e=await n(),a=t.editData?i(d({},e),{id:t.editData.id}):e;V(a,(()=>{y(),l("reload")}))},_=()=>{y(!1),r()};return(l,a)=>{const t=m("el-input-number"),n=m("el-input");return b(),h(w(z),{"dialog-props":{title:"套餐新增",modelValue:e.modelValue,showClose:!0,width:"800px"},scrollBarProps:{maxHeight:500},center:"",top:"10vh",onCancel:_,onSubmit:k},{default:f((()=>[v("div",A,[g(w(T),{onRegister:w(o)},{price:f((({model:e,field:l})=>[g(t,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入价格",precision:2,step:.1,min:.01,style:{width:"100%"},"controls-position":"right",class:"input-with-select"},{append:f((()=>[H])),_:2},1032,["modelValue","onUpdate:modelValue","step","min"])])),show_name:f((({model:e,field:l})=>[g(n,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入展示名称",class:"input-with-select"},null,8,["modelValue","onUpdate:modelValue"]),M])),num:f((({model:e,field:l})=>[g(t,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入数量",type:"number",max:1e4,min:0,style:{width:"100%"},"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),Q])),level:f((({model:e,field:l})=>[g(t,{modelValue:e[l],"onUpdate:modelValue":a=>e[l]=a,placeholder:"请输入套餐等级",min:"0",precision:0,style:{width:"100%"},"controls-position":"right",class:"input-with-select"},null,8,["modelValue","onUpdate:modelValue"]),J])),_:1},8,["onRegister"])])])),_:1},8,["dialog-props"])}}}),[["__scopeId","data-v-13a1dcd2"]]);const W={class:"cb-page package"},X={class:"package-head cb-m-b-20"},Y={class:"cb-flex"},Z=v("span",{class:"cb-p-t-2"},"新增",-1),$={key:0,class:"package-list cb-flex"},ee=["onClick"],le={class:"box cb-flex cb-m-b-6"},ae={class:"box-left cb-m-r-10"},te={class:"box-right"},oe={class:"name"},ne={class:"name"},se={class:"name"},de={class:"name"},ie={class:"buttom cb-flex"},re={class:"cb-flex"},ce={class:"cb-m-r-20"},pe={class:"cb-m-r-10"},ue=u({__name:"index",setup(e){const l=k(),{openEdit:a,editData:t,showDialog:o}=B({}),{onGetPackageList:n,packageList:s,onPackageShow:d}=R();_((()=>{n()}));return(e,i)=>{const r=m("el-icon"),c=m("el-button"),u=m("el-switch"),V=m("el-empty"),P=m("el-card");return b(),x("div",W,[g(P,null,{default:f((()=>[v("div",X,[g(c,{type:"primary",onClick:i[0]||(i[0]=e=>w(a)(null))},{default:f((()=>[v("div",Y,[g(r,{size:20,class:"cb-m-r-2"},{default:f((()=>[g(w(I))])),_:1}),Z])])),_:1})]),w(s).length>0?(b(),x("div",$,[(b(!0),x(q,null,C(w(s),(e=>(b(),x("div",{class:"package-list-item cb-p-15",key:e.id},[v("div",{class:"del-icon",onClick:l=>{return a=e,void S.confirm("确定删除吗?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"error"}).then((async()=>{await L().chatGPT.delPackage(a.id),p.success("删除成功"),n()}));var a}},[g(r,null,{default:f((()=>[g(w(D))])),_:1})],8,ee),v("div",le,[v("div",ae," ¥"+j(e.price),1),v("div",te,[v("div",oe,"名称:"+j(e.name),1),v("div",ne,"套餐次数:"+j(-1===e.num?"不限次数":e.num+"次"),1),v("div",se,"有效时间:"+j(0===e.expired_day?"不限时间":e.expired_day+"天"),1),v("div",de,[y("价格:"+j(e.price)+" ",1),g(r,{size:20,color:"var(--el-color-primary)",onClick:l=>w(a)(e)},{default:f((()=>[g(w(U))])),_:2},1032,["onClick"])])])]),v("div",ie,[v("div",re,[v("span",ce," 已支付总金额:"+j(e.order_sum_payment||"0.00"),1),v("span",pe,"购买数量:"+j(e.order_count||0),1),g(r,{size:20,color:"var(--el-color-primary)",onClick:a=>(({id:e})=>{l.push({path:"/operate/member/order",query:{id:e}})})(e)},{default:f((()=>[g(w(N))])),_:2},1032,["onClick"])]),g(u,{modelValue:e.show,"onUpdate:modelValue":l=>e.show=l,onClick:l=>(({id:e})=>{d({id:e})})(e),"active-value":1,"inactive-value":0},null,8,["modelValue","onUpdate:modelValue","onClick"])])])))),128))])):(b(),h(V,{key:1,"image-size":200}))])),_:1}),g(K,{modelValue:w(o),"onUpdate:modelValue":i[1]||(i[1]=e=>O(o)?o.value=e:null),editData:w(t),onReload:w(n)},null,8,["modelValue","editData","onReload"])])}}});export{ue as default}; diff --git a/gptadmin/assets/index.7bae97b9.js b/gptadmin/assets/index.7bae97b9.js new file mode 100644 index 0000000..9c49415 --- /dev/null +++ b/gptadmin/assets/index.7bae97b9.js @@ -0,0 +1,133 @@ +var __defProp2=Object.defineProperty,__defProps2=Object.defineProperties,__getOwnPropDescs2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols2=Object.getOwnPropertySymbols,__hasOwnProp2=Object.prototype.hasOwnProperty,__propIsEnum2=Object.prototype.propertyIsEnumerable,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues2=(e,t)=>{for(var n in t||(t={}))__hasOwnProp2.call(t,n)&&__defNormalProp2(e,n,t[n]);if(__getOwnPropSymbols2)for(var n of __getOwnPropSymbols2(t))__propIsEnum2.call(t,n)&&__defNormalProp2(e,n,t[n]);return e},__spreadProps2=(e,t)=>__defProps2(e,__getOwnPropDescs2(t)),__objRest=(e,t)=>{var n={};for(var r in e)__hasOwnProp2.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&__getOwnPropSymbols2)for(var r of __getOwnPropSymbols2(e))t.indexOf(r)<0&&__propIsEnum2.call(e,r)&&(n[r]=e[r]);return n};import{d as defineComponent,i as openBlock,c as createElementBlock,a2 as ElHeader,a3 as ElDropdown,a4 as ElDropdownItem,a5 as ElDropdownMenu,n as computed,h as resolveComponent,s as createBlock,w as withCtx,b as createBaseVNode,t as toDisplayString,O as renderSlot,f as createVNode,g as createTextVNode,P as Fragment,a6 as ElMenuItem,R as normalizeClass,a7 as ElSubMenu,a8 as normalizeProps,W as mergeProps,e as createCommentVNode,Q as renderList,a9 as ElMenu,aa as ElAside,r as ref,u as unref,ab as isString$2,ac as shallowRef,o as onMounted,_ as watch,K as watchEffect,ad as toRaw,H as nextTick,L as onBeforeUnmount,a0 as ElMessageBox,E as ElMessage,a as reactive,M as toRefs,q as hooks$1,ae as parseInt$1,af as normalizeStyle,ag as onUnmounted,V as withDirectives,ah as vShow,ai as useCssVars,v as pushScopeId,x as popScopeId,p as getCurrentInstance,aj as withModifiers,ak as Transition,al as useAttrs$1,am as debounce$3,an as withKeys,ao as ElUpload,ap as ElDialog,aq as ElImage,ar as upload_filled_default,as as ElIcon,at as ElProgress,au as check_default,av as delete_default,aw as zoom_in_default,ax as TransitionGroup,ay as h$6,az as plus_default,aA as isRef,G as provide,aB as inject,aC as ElScrollbar,aD as ElButton,aE as createSlots,C as axios,aF as search_default,aG as readonly,aH as isEqual,aI as ElSelect,aJ as ElOption,aK as omit,aL as get,aM as guardReactiveProps,aN as ElDatePicker,aO as ElInput,aP as ElInputNumber,aQ as ElTreeSelect,aR as ElSwitch,aS as ElRadio,aT as ElRadioGroup,aU as ElRadioButton,aV as ElCheckbox,aW as ElCheckboxGroup,aX as ElCascader,aY as ElSlider,aZ as ElRate,a_ as ElTimePicker,a$ as ElTimeSelect,b0 as ElColorPicker,b1 as ElCol,b2 as ElFormItem,y as cloneDeep,b3 as upperFirst$1,b4 as isVNode,b5 as set,b6 as ElForm,b7 as ElRow,b8 as ElTree,b9 as more_filled_default,ba as select_default,bb as edit_default,bc as link_default,bd as ElPagination,be as onBeforeMount,bf as render$1,bg as onActivated,bh as tryOnMounted,bi as tryOnUnmounted,bj as useDebounceFn,bk as isBoolean$1,S as exceljs_min,T as FileSaver_min,bl as ElTable,bm as ElTableColumn,bn as ElCard,bo as ElAlert,bp as arrow_down_default,bq as arrow_up_default,br as minus_default,bs as arrow_right_default,bt as folder_add_default,bu as ElEmpty,bv as pick}from"./vendor.1bc4be78.js";import{_ as _export_sfc$2}from"./index.ed21fdb7.js";const _sfc_main$I=defineComponent({name:"CbTest",setup(){}});function _sfc_render$m(e,t,n,r,o,i){return openBlock(),createElementBlock("div",null,"我是一个测试组件")}var Test=_export_sfc$2(_sfc_main$I,[["render",_sfc_render$m]]);Test.install=e=>{e.component(Test.name,Test)};const _sfc_main$H=defineComponent({name:"CbHeader",components:{ElHeader:ElHeader,ElDropdown:ElDropdown,ElDropdownItem:ElDropdownItem,ElDropdownMenu:ElDropdownMenu},props:{pageTitle:{type:String},picture:{type:String,default:""},nickname:{type:String,default:""}},emits:["clickDropdown"],setup:(e,{emit:t})=>({clickDropdown:e=>{t("clickDropdown",e)},getSurname:computed((()=>e.nickname?e.nickname.slice(0,1):""))})}),_hoisted_1$v={class:"page-header-title"},_hoisted_2$p={class:"page-header-right"},_hoisted_3$k={class:"page-header-front"},_hoisted_4$h=["src"],_hoisted_5$e={key:2,src:"https://finch.cdn.cblink.net/common/image-default.jpg"},_hoisted_6$b=createTextVNode(" 退出登录 ");function _sfc_render$l(e,t,n,r,o,i){const a=resolveComponent("el-dropdown-item"),s=resolveComponent("el-dropdown-menu"),l=resolveComponent("el-dropdown"),u=resolveComponent("el-header");return openBlock(),createBlock(u,{style:{background:"#fff"},height:"80px"},{default:withCtx((()=>[createBaseVNode("div",_hoisted_1$v,toDisplayString(e.pageTitle),1),createBaseVNode("div",_hoisted_2$p,[renderSlot(e.$slots,"default"),createVNode(l,{class:"menu-user-btn menu-hover"},{dropdown:withCtx((()=>[Object.keys(e.$slots).includes("dropdown")?renderSlot(e.$slots,"dropdown",{key:0}):(openBlock(),createBlock(s,{key:1},{default:withCtx((()=>[createVNode(a,{onClick:t[0]||(t[0]=t=>e.clickDropdown("logout"))},{default:withCtx((()=>[_hoisted_6$b])),_:1})])),_:1}))])),default:withCtx((()=>[createBaseVNode("div",_hoisted_3$k,[e.picture?(openBlock(),createElementBlock("img",{key:0,src:e.picture},null,8,_hoisted_4$h)):e.getSurname?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(e.getSurname),1)],64)):(openBlock(),createElementBlock("img",_hoisted_5$e))])])),_:3})])])),_:3})}var Header=_export_sfc$2(_sfc_main$H,[["render",_sfc_render$l]]);Header.install=e=>{e.component(Header.name,Header)};const _Header=Header,_sfc_main$G=defineComponent({name:"MenuItem",components:{ElMenuItem:ElMenuItem},props:{item:Object,defaultActive:String}});function _sfc_render$k(e,t,n,r,o,i){const a=resolveComponent("ElMenuItem");return openBlock(),createBlock(a,{index:e.item.path,class:normalizeClass({"is-active":e.defaultActive===e.item.path})},{default:withCtx((()=>[createTextVNode(toDisplayString(e.item.title),1)])),_:1},8,["index","class"])}var MenuItem=_export_sfc$2(_sfc_main$G,[["render",_sfc_render$k]]);const _sfc_main$F=defineComponent({name:"SubMenuItem",isSubMenu:!0,components:{MenuItem:MenuItem,ElSubMenu:ElSubMenu},props:{item:Object,defaultActive:String},setup:e=>({getShowMenu:computed((()=>{var t;return!(null==(t=e.item.meta)?void 0:t.hideMenu)})),menuHasChildren:function(e){var t;return!(null==(t=e.meta)?void 0:t.hideChildrenInMenu)&&Reflect.has(e,"children")&&!!e.children&&e.children.length>0}})});function _sfc_render$j(e,t,n,r,o,i){const a=resolveComponent("MenuItem"),s=resolveComponent("SubMenuItem",!0),l=resolveComponent("ElSubMenu");return openBlock(),createElementBlock(Fragment,null,[!e.menuHasChildren(e.item)&&e.getShowMenu?(openBlock(),createBlock(a,normalizeProps(mergeProps({key:0},e.$props)),null,16)):createCommentVNode("",!0),e.menuHasChildren(e.item)&&e.getShowMenu?(openBlock(),createBlock(l,{key:1,index:e.item.path},{title:withCtx((()=>[createTextVNode(toDisplayString(e.item.title),1)])),default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.children||[],(t=>(openBlock(),createBlock(s,mergeProps({key:t.path},e.$props,{item:t}),null,16,["item"])))),128))])),_:1},8,["index"])):createCommentVNode("",!0)],64)}var SubMenuItem=_export_sfc$2(_sfc_main$F,[["render",_sfc_render$j]]);const _sfc_main$E=defineComponent({name:"CbMenu",components:{SubMenuItem:SubMenuItem,ElMenu:ElMenu,ElAside:ElAside},props:{menus:Array,showHomeMenu:{type:Boolean,default:!0},homePath:{type:String,default:"/"},homeIcon:{type:String,default:""},homeTitle:{type:String,default:"首页"},webLogo:{type:String,default:"",required:!0},useRouter:{type:Function,required:!0}},setup(e){const{currentRoute:t,push:n,resolve:r}=e.useRouter(),o=ref({});ref("");const i=computed((()=>e)),a=computed((()=>e=>/.(png|jpg|gif|jpeg|webp)$/.test(e||""))),s=computed((()=>unref(i).menus)),l=computed((()=>{var e;const n=unref(s),r=unref(t).matched[0],i=r.path;o.value=r;const a=n.findIndex((e=>e.path===i));return((null==(e=n[a])?void 0:e.children)||[]).filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hideMenu)}))})),u=computed((()=>{const{path:e,meta:n}=unref(t);return n&&n.currentActiveMenu?n.currentActiveMenu:e}));return{menuList:s,iconIsImg:a,childMenuList:l,currentActiveMenu:o,handleMenuClick:function(e){if(isString$2(e))n(e);else{const{path:t,meta:o}=e;o&&o.windowUrl?window.open(o.windowUrl,"_blank"):o&&o.newWindow?window.open(r({path:t}).href,"_blank"):n(t)}},menuHasChildren:function(e){var t;return!(null==(t=e.meta)?void 0:t.hideChildrenInMenu)&&Reflect.has(e,"children")&&!!e.children&&e.children.length>0},getDefaultActive:u}}}),_hoisted_1$u={class:"cb-menu"},_hoisted_2$o={class:"container-menu"},_hoisted_3$j={class:"main-menu-wrapper"},_hoisted_4$g=["href"],_hoisted_5$d=["src"],_hoisted_6$a={class:"main-menu"},_hoisted_7$8=["src"],_hoisted_8$8=["onClick"],_hoisted_9$7=["src"],_hoisted_10$7={key:0,class:"main-menu-sider"},_hoisted_11$5={class:"menu-title"};function _sfc_render$i(e,t,n,r,o,i){const a=resolveComponent("SubMenuItem"),s=resolveComponent("el-menu"),l=resolveComponent("el-aside");return openBlock(),createElementBlock("div",_hoisted_1$u,[createVNode(l,{width:"auto",style:{background:"#fff"}},{default:withCtx((()=>{var n,r;return[createBaseVNode("div",_hoisted_2$o,[createBaseVNode("div",_hoisted_3$j,[createBaseVNode("a",{href:e.homePath,class:"logo"},[createBaseVNode("img",{src:e.webLogo},null,8,_hoisted_5$d)],8,_hoisted_4$g),createBaseVNode("div",_hoisted_6$a,[e.showHomeMenu?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["main-menu-link",{active:e.homePath===e.currentActiveMenu.path}]),onClick:t[0]||(t[0]=t=>e.handleMenuClick(e.homePath))},[e.iconIsImg(e.homeIcon||e.webLogo)?(openBlock(),createElementBlock("img",{key:0,src:e.homeIcon||e.webLogo},null,8,_hoisted_7$8)):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(e.homeIcon||e.webLogo)},null,2)),createTextVNode(" "+toDisplayString(e.homeTitle),1)],2)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.menuList,((t,n)=>(openBlock(),createElementBlock("div",{key:n,class:normalizeClass(["main-menu-link",{active:t.path===e.currentActiveMenu.path||t.redirect&&t.redirect===e.currentActiveMenu.redirect}]),onClick:n=>e.handleMenuClick(t)},[e.iconIsImg(t.meta.icon||e.webLogo)?(openBlock(),createElementBlock("img",{key:0,src:t.meta.icon||e.webLogo},null,8,_hoisted_9$7)):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(t.meta.icon||e.webLogo)},null,2)),createTextVNode(" "+toDisplayString(t.title),1)],10,_hoisted_8$8)))),128))])]),e.childMenuList.length&&e.menuHasChildren(e.currentActiveMenu)?(openBlock(),createElementBlock("div",_hoisted_10$7,[createBaseVNode("div",_hoisted_11$5,toDisplayString((null==(n=e.currentActiveMenu.meta)?void 0:n.menuTitle)||(null==(r=e.currentActiveMenu.meta)?void 0:r.title)),1),createVNode(s,{class:"el-menu-vertical-demo",router:!0,"default-active":e.getDefaultActive},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.childMenuList,(t=>(openBlock(),createBlock(a,{key:t.path,item:t,"default-active":e.getDefaultActive},null,8,["item","default-active"])))),128))])),_:1},8,["default-active"])])):createCommentVNode("",!0)])]})),_:1})])}var Menu=_export_sfc$2(_sfc_main$E,[["render",_sfc_render$i]]);Menu.install=e=>{e.component(Menu.name,Menu)};const _Menu=Menu;var style="",_a$4;if("undefined"==typeof global){if("ActiveXObject"in window){var info="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";info+="\n Sorry, wangEditor V5+ versions do not support IE browser."}globalThisPolyfill(),AggregateErrorPolyfill()}else global&&(null===(_a$4=global.navigator)||void 0===_a$4?void 0:_a$4.userAgent.match("QQBrowser"))&&(globalThisPolyfill(),AggregateErrorPolyfill());function globalThisPolyfill(){"undefined"==typeof globalThis&&(window.globalThis=window)}function AggregateErrorPolyfill(){"undefined"==typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if("object"==typeof global){var globalProperty=Object.getOwnPropertyDescriptor(global,"window");global.window&&!globalProperty.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})} +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function isObject$5(e){return"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,n;return!1!==isObject$5(e)&&(void 0===(t=e.constructor)||!1!==isObject$5(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function n$1(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:s$1(e)?2:v$3(e)?3:0}function u$1(e,t){return 2===o$1(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function a$1(e,t){return 2===o$1(e)?e.get(t):e[t]}function f$3(e,t,n){var r=o$1(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function c$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function s$1(e){return X$6&&e instanceof Map}function v$3(e){return q$6&&e instanceof Set}function p$3(e){return e.o||e.t}function l$1(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tn$7(e);delete t[Q$6];for(var n=nn$7(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=h$4),Object.freeze(e),t&&i$1(e,(function(e,t){return d$3(t,!0)}),!0)),e}function h$4(){n$1(2)}function y$3(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b$3(e){var t=rn$7[e];return t||n$1(18,e),t}function _$6(){return U$6||n$1(0),U$6}function j$5(e,t){t&&(b$3("Patches"),e.u=[],e.s=[],e.v=t)}function O$5(e){g$3(e),e.p.forEach(S$4),e.p=null}function g$3(e){e===U$6&&(U$6=e.l)}function w$3(e){return U$6={p:[],l:U$6,h:e,m:!0,_:0}}function S$4(e){var t=e[Q$6];0===t.i||1===t.i?t.j():t.O=!0}function P$5(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||b$3("ES5").S(t,e,r),r?(n[Q$6].P&&(O$5(t),n$1(4)),r$1(e)&&(e=M$4(t,e),t.l||x$4(t,e)),t.u&&b$3("Patches").M(n[Q$6],e,t.u,t.s)):e=M$4(t,n,[]),O$5(t),t.u&&t.v(t.u,t.s),e!==H$5?e:void 0}function M$4(e,t,n){if(y$3(t))return t;var r=t[Q$6];if(!r)return i$1(t,(function(o,i){return A$5(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return x$4(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=l$1(r.k):r.o;i$1(3===r.i?new Set(o):o,(function(t,i){return A$5(e,r,o,t,i,n)})),x$4(e,o,!1),n&&e.u&&b$3("Patches").R(r,n,e.u,e.s)}return r.o}function A$5(e,t,n,r,o,i){if(o===n&&n$1(5),t$1(o)){var a=M$4(e,o,i&&t&&3!==t.i&&!u$1(t.D,r)?i.concat(r):void 0);if(f$3(n,r,a),!t$1(a))return;e.m=!1}if(r$1(o)&&!y$3(o)){if(!e.h.F&&e._<1)return;M$4(e,o),t&&t.A.l||x$4(e,o)}}function x$4(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&d$3(t,n)}function z$5(e,t){var n=e[Q$6];return(n?p$3(n):e)[t]}function I$5(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function k$5(e){e.P||(e.P=!0,e.l&&k$5(e.l))}function E$4(e){e.o||(e.o=l$1(e.t))}function R$5(e,t,n){var r=s$1(t)?b$3("MapSet").N(t,n):v$3(t)?b$3("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:_$6(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=en$7;n&&(o=[r],i=on$8);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):b$3("ES5").J(t,n);return(n?n.A:_$6()).p.push(r),r}function D$5(e){return t$1(e)||n$1(22,e),function e(t){if(!r$1(t))return t;var n,r=t[Q$6],o=o$1(t);if(r){if(!r.P&&(r.i<4||!b$3("ES5").K(r)))return r.t;r.I=!0,n=F$5(t,o),r.I=!1}else n=F$5(t,o);return i$1(n,(function(t,o){r&&a$1(r.t,t)===o||f$3(n,t,e(o))})),3===o?new Set(n):n}(e)}function F$5(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return l$1(e)}var G$6,U$6,W$6="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X$6="undefined"!=typeof Map,q$6="undefined"!=typeof Set,B$5="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H$5=W$6?Symbol.for("immer-nothing"):((G$6={})["immer-nothing"]=!0,G$6),L$5=W$6?Symbol.for("immer-draftable"):"__$immer_draftable",Q$6=W$6?Symbol.for("immer-state"):"__$immer_state",Y$6={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z$6=""+Object.prototype.constructor,nn$7="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,tn$7=Object.getOwnPropertyDescriptors||function(e){var t={};return nn$7(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},rn$7={},en$7={get:function(e,t){if(t===Q$6)return e;var n,r,o,i=p$3(e);if(!u$1(i,t))return n=e,(o=I$5(i,t))?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(n.k):void 0;var a=i[t];return e.I||!r$1(a)?a:a===z$5(e.t,t)?(E$4(e),e.o[t]=R$5(e.A.h,a,e)):a},has:function(e,t){return t in p$3(e)},ownKeys:function(e){return Reflect.ownKeys(p$3(e))},set:function(e,t,n){var r=I$5(p$3(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=z$5(p$3(e),t),i=null==o?void 0:o[Q$6];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(c$1(n,o)&&(void 0!==n||u$1(e.t,t)))return!0;E$4(e),k$5(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==z$5(e.t,t)||t in e.t?(e.D[t]=!1,E$4(e),k$5(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p$3(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){n$1(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n$1(12)}},on$8={};i$1(en$7,(function(e,t){on$8[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),on$8.deleteProperty=function(e,t){return isNaN(parseInt(t))&&n$1(13),en$7.deleteProperty.call(this,e[0],t)},on$8.set=function(e,t,n){return"length"!==t&&isNaN(parseInt(t))&&n$1(14),en$7.set.call(this,e[0],t,n,e[0])};var un$7=function(){function e(e){var t=this;this.g=B$5,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=b$3("Patches").$;return t$1(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),an$7=new un$7,fn$7=an$7.produce;an$7.produceWithPatches.bind(an$7),an$7.setAutoFreeze.bind(an$7),an$7.setUseProxies.bind(an$7),an$7.applyPatches.bind(an$7);var ln$7=an$7.createDraft.bind(an$7),dn$7=an$7.finishDraft.bind(an$7);function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DIRTY_PATHS=new WeakMap,FLUSHING=new WeakMap,NORMALIZING=new WeakMap,PATH_REFS=new WeakMap,POINT_REFS=new WeakMap,RANGE_REFS=new WeakMap;function ownKeys$9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread$9(e){for(var t=1;t{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Editor$2.pathRefs(e))PathRef.transform(n,t);for(var r of Editor$2.pointRefs(e))PointRef.transform(r,t);for(var o of Editor$2.rangeRefs(e))RangeRef.transform(o,t);var i=new Set,a=[],s=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},l=DIRTY_PATHS.get(e)||[],u=getDirtyPaths(t);for(var c of l){s(Path.transform(c,t))}for(var d of u)s(d);DIRTY_PATHS.set(e,a),Transforms.transform(e,t),e.operations.push(t),Editor$2.normalize(e),"set_selection"===t.type&&(e.marks=null),FLUSHING.get(e)||(FLUSHING.set(e,!0),Promise.resolve().then((()=>{FLUSHING.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Range.isExpanded(r))Transforms.setNodes(e,{[t]:n},{match:Text.isText,split:!0});else{var o=_objectSpread$9(_objectSpread$9({},Editor$2.marks(e)||{}),{},{[t]:n});e.marks=o,FLUSHING.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Range.isCollapsed(n)&&Transforms.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Range.isCollapsed(n)&&Transforms.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Range.isExpanded(n)&&Transforms.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Node$1.fragment(e,t):[]},insertBreak:()=>{Transforms.splitNodes(e,{always:!0})},insertFragment:t=>{Transforms.insertFragment(e,t)},insertNode:t=>{Transforms.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=_objectSpread$9({text:t},r);Transforms.insertNodes(e,o)}else Transforms.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Text.isText(n))if(Element$1.isElement(n)&&0===n.children.length){Transforms.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!Editor$2.isEditor(n)&&(Element$1.isElement(n)&&(e.isInline(n)||0===n.children.length||Text.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a{var{selection:n}=e;if(n)if(Range.isExpanded(n))Transforms.unsetNodes(e,t,{match:Text.isText,split:!0});else{var r=_objectSpread$9({},Editor$2.marks(e)||{});delete r[t],e.marks=r,FLUSHING.get(e)||e.onChange()}}};return e},getDirtyPaths=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Path.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Path.levels(r),...Text.isText(n)?[]:Array.from(Node$1.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Path.ancestors(o),Path.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Path.equals(i,a))return[];var s=[],l=[];for(var u of Path.ancestors(i)){var c=Path.transform(u,e);s.push(c)}for(var d of Path.ancestors(a)){var f=Path.transform(d,e);l.push(f)}var p=l[l.length-1],$=a[a.length-1],h=p.concat($);return[...s,...l,h];case"remove_node":var{path:g}=e;return[...Path.ancestors(g)];case"split_node":var{path:v}=e;return[...Path.levels(v),Path.next(v)];default:return[]}};function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function _objectWithoutProperties$1(e,t){if(null==e)return{};var n,r,o=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var getCharacterDistance=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?codepointsIteratorRTL(e):e,o=CodepointType.None,i=CodepointType.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=getCodepointType(l,u);if([o,i]=n?[i,c]:[c,o],intersects(o,CodepointType.ZWJ)&&intersects(i,CodepointType.ExtPict)&&!endsWithEmojiZWJ(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(intersects(o,CodepointType.RI)&&intersects(i,CodepointType.RI)&&!(s=null!==s?!s:!!n||endsWithOddNumberOfRIs(e.substring(0,e.length-a))))break;if(o!==CodepointType.None&&i!==CodepointType.None&&isBoundaryPair(o,i))break;a+=l.length}return a||1},SPACE=/\s/,PUNCTUATION=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,CHAMELEON=/['\u2018\u2019]/,getWordDistance=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=getCharacterDistance(e,t),[i,a]=splitByCharacterDistance(e,o,t);if(isWordCharacter(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n},splitByCharacterDistance=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},isWordCharacter=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(SPACE.test(t))return!1;if(CHAMELEON.test(t)){var o=getCharacterDistance(n,r),[i,a]=splitByCharacterDistance(n,o,r);if(e(i,a,r))return!0}return!PUNCTUATION.test(t)},codepointsIteratorRTL=function*(e){for(var t=e.length-1,n=0;ne>=55296&&e<=56319,isLowSurrogate=e=>e>=56320&&e<=57343,CodepointType,CodepointType2;CodepointType2=CodepointType||(CodepointType={}),CodepointType2[CodepointType2.None=0]="None",CodepointType2[CodepointType2.Extend=1]="Extend",CodepointType2[CodepointType2.ZWJ=2]="ZWJ",CodepointType2[CodepointType2.RI=4]="RI",CodepointType2[CodepointType2.Prepend=8]="Prepend",CodepointType2[CodepointType2.SpacingMark=16]="SpacingMark",CodepointType2[CodepointType2.L=32]="L",CodepointType2[CodepointType2.V=64]="V",CodepointType2[CodepointType2.T=128]="T",CodepointType2[CodepointType2.LV=256]="LV",CodepointType2[CodepointType2.LVT=512]="LVT",CodepointType2[CodepointType2.ExtPict=1024]="ExtPict",CodepointType2[CodepointType2.Any=2048]="Any";var reExtend=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,rePrepend=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,reSpacingMark=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,reL=/^[\u1100-\u115F\uA960-\uA97C]$/,reV=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,reT=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,reLV=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,reLVT=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,reExtPict=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,getCodepointType=(e,t)=>{var n=CodepointType.Any;return-1!==e.search(reExtend)&&(n|=CodepointType.Extend),8205===t&&(n|=CodepointType.ZWJ),t>=127462&&t<=127487&&(n|=CodepointType.RI),-1!==e.search(rePrepend)&&(n|=CodepointType.Prepend),-1!==e.search(reSpacingMark)&&(n|=CodepointType.SpacingMark),-1!==e.search(reL)&&(n|=CodepointType.L),-1!==e.search(reV)&&(n|=CodepointType.V),-1!==e.search(reT)&&(n|=CodepointType.T),-1!==e.search(reLV)&&(n|=CodepointType.LV),-1!==e.search(reLVT)&&(n|=CodepointType.LVT),-1!==e.search(reExtPict)&&(n|=CodepointType.ExtPict),n};function intersects(e,t){return 0!=(e&t)}var NonBoundaryPairs=[[CodepointType.L,CodepointType.L|CodepointType.V|CodepointType.LV|CodepointType.LVT],[CodepointType.LV|CodepointType.V,CodepointType.V|CodepointType.T],[CodepointType.LVT|CodepointType.T,CodepointType.T],[CodepointType.Any,CodepointType.Extend|CodepointType.ZWJ],[CodepointType.Any,CodepointType.SpacingMark],[CodepointType.Prepend,CodepointType.Any],[CodepointType.ZWJ,CodepointType.ExtPict],[CodepointType.RI,CodepointType.RI]];function isBoundaryPair(e,t){return-1===NonBoundaryPairs.findIndex((n=>intersects(e,n[0])&&intersects(t,n[1])))}var endingEmojiZWJ=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,endsWithEmojiZWJ=e=>-1!==e.search(endingEmojiZWJ),endingRIs=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,endsWithOddNumberOfRIs=e=>{var t=e.match(endingRIs);return null!==t&&t[0].length/2%2==1},isElement$1=e=>isPlainObject$1(e)&&Node$1.isNodeList(e.children)&&!Editor$2.isEditor(e),Element$1={isAncestor:e=>isPlainObject$1(e)&&Node$1.isNodeList(e.children),isElement:isElement$1,isElementList:e=>Array.isArray(e)&&e.every((e=>Element$1.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return isElement$1(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},_excluded$4=["text"],_excluded2$3=["text"];function ownKeys$8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread$8(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Editor$2.path(e,o),s="lowest"===r;for(var[l,u]of Editor$2.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!Text.isText(l)&&!Path.equals(a,u))return[l,u]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Editor$2.point(e,t,{edge:"end"}),focus:Editor$2.end(e,[])},{distance:i=1}=r,a=0;for(var s of Editor$2.positions(e,_objectSpread$8(_objectSpread$8({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Editor$2.start(e,[]),focus:Editor$2.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of Editor$2.positions(e,_objectSpread$8(_objectSpread$8({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Editor$2.start(e,t),Editor$2.end(e,t)],end:(e,t)=>Editor$2.point(e,t,{edge:"end"}),first(e,t){var n=Editor$2.path(e,t,{edge:"start"});return Editor$2.node(e,n)},fragment(e,t){var n=Editor$2.range(e,t);return Node$1.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Editor$2.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Text.isText(t)||Editor$2.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Text.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Element$1.isElement(t)&&!e.isInline(t),isEditor(e){if(!isPlainObject$1(e))return!1;var t=IS_EDITOR_CACHE.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||isPlainObject$1(e.marks))&&(null===e.selection||Range.isRange(e.selection))&&Node$1.isNodeList(e.children)&&Operation.isOperationList(e.operations);return IS_EDITOR_CACHE.set(e,n),n},isEnd(e,t,n){var r=Editor$2.end(e,n);return Point.equals(t,r)},isEdge:(e,t,n)=>Editor$2.isStart(e,t,n)||Editor$2.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Text.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Element$1.isElement(t)&&e.isInline(t),isNormalizing(e){var t=NORMALIZING.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Editor$2.start(e,n);return Point.equals(t,r)},isVoid:(e,t)=>Element$1.isElement(t)&&e.isVoid(t),last(e,t){var n=Editor$2.path(e,t,{edge:"end"});return Editor$2.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Editor$2.path(e,t,n);return[Node$1.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=Editor$2.path(e,n);for(var[l,u]of Node$1.levels(e,s))if(i(l,u)&&(a.push([l,u]),!o&&Editor$2.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Range.isExpanded(n)){var[r]=Editor$2.nodes(e,{match:Text.isText});if(r){var[o]=r;return _objectWithoutProperties$1(o,_excluded$4)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Editor$2.leaf(e,a);if(0===i.offset){var l=Editor$2.previous(e,{at:a,match:Text.isText}),u=Editor$2.above(e,{match:t=>Editor$2.isBlock(e,t)});if(l&&u){var[c,d]=l,[,f]=u;Path.isAncestor(f,d)&&(s=c)}}return _objectWithoutProperties$1(s,_excluded2$3)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Editor$2.after(e,i,{voids:r});if(a){var[,s]=Editor$2.last(e,[]),l=[a.path,s];if(Path.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Path.isPath(i)){var[u]=Editor$2.parent(e,i);o=e=>u.children.includes(e)}else o=()=>!0;var[c]=Editor$2.nodes(e,{at:l,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Editor$2.path(e,t,n);return[Node$1.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,u;if(Span.isSpan(n))l=n[0],u=n[1];else{var c=Editor$2.path(e,n,{edge:"start"}),d=Editor$2.path(e,n,{edge:"end"});l=i?d:c,u=i?c:d}var f,p=Node$1.nodes(e,{reverse:i,from:l,to:u,pass:t=>{var[n]=t;return!a&&Editor$2.isVoid(e,n)}}),$=[];for(var[h,g]of p){var v=f&&0===Path.compare(g,f[1]);if("highest"!==r||!v)if(s(h,g))if("lowest"===r&&v)f=[h,g];else{var m="lowest"===r?f:[h,g];m&&(o?$.push(m):yield m),f=[h,g]}else if(o&&!v&&Text.isText(h))return}"lowest"===r&&f&&(o?$.push(f):yield f),o&&(yield*$)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>DIRTY_PATHS.get(e)||[];if(Editor$2.isNormalizing(e)){if(n){var o=Array.from(Node$1.nodes(e),(e=>{var[,t]=e;return t}));DIRTY_PATHS.set(e,o)}0!==r(e).length&&Editor$2.withoutNormalizing(e,(()=>{for(var t of r(e))if(Node$1.has(e,t)){var n=Editor$2.node(e,t),[o,i]=n;Element$1.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,s=0;0!==r(e).length;){if(s>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=r(e).pop();if(Node$1.has(e,l)){var u=Editor$2.node(e,l);e.normalizeNode(u)}s++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Editor$2.path(e,t,n),o=Path.parent(r);return Editor$2.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Path.isPath(t))if("start"===o){var[,i]=Node$1.first(e,t);t=i}else if("end"===o){var[,a]=Node$1.last(e,t);t=a}return Range.isRange(t)&&(t="start"===o?Range.start(t):"end"===o?Range.end(t):Path.common(t.anchor.path,t.focus.path)),Point.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Node$1.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Editor$2.pathRefs(e).delete(o),o.current=null,t}};return Editor$2.pathRefs(e).add(o),o},pathRefs(e){var t=PATH_REFS.get(e);return t||(t=new Set,PATH_REFS.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Path.isPath(t)){var o;if("end"===r){var[,i]=Node$1.last(e,t);o=i}else{var[,a]=Node$1.first(e,t);o=a}var s=Node$1.get(e,o);if(!Text.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(Range.isRange(t)){var[l,u]=Range.edges(t);return"start"===r?l:u}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Editor$2.pointRefs(e).delete(o),o.current=null,t}};return Editor$2.pointRefs(e).add(o),o},pointRefs(e){var t=POINT_REFS.get(e);return t||(t=new Set,POINT_REFS.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Editor$2.range(e,n),[s,l]=Range.edges(a),u=o?l:s,c=!1,d="",f=0,p=0,$=0;for(var[h,g]of Editor$2.nodes(e,{at:n,reverse:o,voids:i})){if(Element$1.isElement(h)){if(!i&&e.isVoid(h)){yield Editor$2.start(e,g);continue}if(e.isInline(h))continue;if(Editor$2.hasInlines(e,h)){var v=Path.isAncestor(g,l.path)?l:Editor$2.end(e,g),m=Path.isAncestor(g,s.path)?s:Editor$2.start(e,g);d=Editor$2.string(e,{anchor:m,focus:v},{voids:i}),c=!0}}if(Text.isText(h)){var y=Path.equals(g,u.path);for(y?(p=o?u.offset:h.text.length-u.offset,$=u.offset):(p=h.text.length,$=o?p:0),(y||c||"offset"===r)&&(yield{path:g,offset:$},c=!1);;){if(0===f){if(""===d)break;f=b(d,r,o),d=splitByCharacterDistance(d,f,o)[1]}if($=o?$-f:$+f,(p-=f)<0){f=-p;break}f=0,yield{path:g,offset:$}}}}}function b(e,t,n){return"character"===t?getCharacterDistance(e,n):"word"===t?getWordDistance(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Editor$2.before(e,i,{voids:r});if(a){var[,s]=Editor$2.first(e,[]),l=[a.path,s];if(Path.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Path.isPath(i)){var[u]=Editor$2.parent(e,i);o=e=>u.children.includes(e)}else o=()=>!0;var[c]=Editor$2.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Range.isRange(t)&&!n?t:{anchor:Editor$2.start(e,t),focus:Editor$2.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Editor$2.rangeRefs(e).delete(o),o.current=null,t}};return Editor$2.rangeRefs(e).add(o),o},rangeRefs(e){var t=RANGE_REFS.get(e);return t||(t=new Set,RANGE_REFS.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){NORMALIZING.set(e,t)},start:(e,t)=>Editor$2.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Editor$2.range(e,t),[i,a]=Range.edges(o),s="";for(var[l,u]of Editor$2.nodes(e,{at:o,match:Text.isText,voids:r})){var c=l.text;Path.equals(u,a.path)&&(c=c.slice(0,a.offset)),Path.equals(u,i.path)&&(c=c.slice(i.offset)),s+=c}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Range.edges(t);if(0!==o.offset||0!==i.offset||Range.isCollapsed(t))return t;var a=Editor$2.above(e,{at:i,match:t=>Editor$2.isBlock(e,t)}),s=a?a[1]:[],l={anchor:Editor$2.start(e,[]),focus:i},u=!0;for(var[c,d]of Editor$2.nodes(e,{at:l,match:Text.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==c.text||Path.isBefore(d,s)){i={path:d,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Editor$2.above(e,_objectSpread$8(_objectSpread$8({},t),{},{match:t=>Editor$2.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Editor$2.isNormalizing(e);Editor$2.setNormalizing(e,!1);try{t()}finally{Editor$2.setNormalizing(e,n)}Editor$2.normalize(e)}},Span={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Path.isPath)},_excluded$3=["children"],_excluded2$2=["text"],IS_NODE_LIST_CACHE=new WeakMap,Node$1={ancestor(e,t){var n=Node$1.get(e,t);if(Text.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Path.ancestors(t,n)){var o=[Node$1.ancestor(e,r),r];yield o}},child(e,t){if(Text.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Node$1.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Node$1.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Node$1.nodes(e,t))Element$1.isElement(n)&&(yield[n,r])},extractProps:e=>Element$1.isAncestor(e)?_objectWithoutProperties$1(e,_excluded$3):_objectWithoutProperties$1(e,_excluded2$2),first(e,t){for(var n=t.slice(),r=Node$1.get(e,n);r&&!Text.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Text.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return fn$7({children:e.children},(e=>{var[n,r]=Range.edges(t),o=Node$1.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Range.includes(t,n)}});for(var[,i]of o){if(!Range.includes(t,i)){var a=Node$1.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(Path.equals(i,r.path)){var l=Node$1.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(Path.equals(i,n.path)){var u=Node$1.leaf(e,i);u.text=u.text.slice(n.offset)}}Editor$2.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;rText.isText(e)||Element$1.isElement(e)||Editor$2.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=IS_NODE_LIST_CACHE.get(e);if(void 0!==t)return t;var n=e.every((e=>Node$1.isNode(e)));return IS_NODE_LIST_CACHE.set(e,n),n},last(e,t){for(var n=t.slice(),r=Node$1.get(e,n);r&&!Text.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Node$1.get(e,t);if(!Text.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Path.levels(t,n)){var o=Node$1.get(e,r);yield[o,r]}},matches:(e,t)=>Element$1.isElement(e)&&Element$1.isElementProps(t)&&Element$1.matches(e,t)||Text.isText(e)&&Text.isTextProps(t)&&Text.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?Path.isBefore(s,i):Path.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||Text.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=Path.next(s);if(Node$1.has(e,u)){s=u,l=Node$1.get(e,s);continue}}if(r&&0!==s[s.length-1])s=Path.previous(s),l=Node$1.get(e,s);else s=Path.parent(s),l=Node$1.get(e,s),a.add(l)}else{a.add(l);var c=r?l.children.length-1:0;Path.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),l=Node$1.get(e,s)}},parent(e,t){var n=Path.parent(t),r=Node$1.get(e,n);if(Text.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Text.isText(e)?e.text:e.children.map(Node$1.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Node$1.nodes(e,t))Text.isText(n)&&(yield[n,r])}};function ownKeys$7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread$7(e){for(var t=1;tOperation.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!isPlainObject$1(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Path.isPath(e.path)&&Node$1.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Path.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Path.isPath(e.path)&&isPlainObject$1(e.properties);case"move_node":return Path.isPath(e.path)&&Path.isPath(e.newPath);case"set_node":return Path.isPath(e.path)&&isPlainObject$1(e.properties)&&isPlainObject$1(e.newProperties);case"set_selection":return null===e.properties&&Range.isRange(e.newProperties)||null===e.newProperties&&Range.isRange(e.properties)||isPlainObject$1(e.properties)&&isPlainObject$1(e.newProperties);case"split_node":return Path.isPath(e.path)&&"number"==typeof e.position&&isPlainObject$1(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Operation.isOperation(e))),isSelectionOperation:e=>Operation.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Operation.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return _objectSpread$7(_objectSpread$7({},e),{},{type:"remove_node"});case"insert_text":return _objectSpread$7(_objectSpread$7({},e),{},{type:"remove_text"});case"merge_node":return _objectSpread$7(_objectSpread$7({},e),{},{type:"split_node",path:Path.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Path.equals(t,n))return e;if(Path.isSibling(n,t))return _objectSpread$7(_objectSpread$7({},e),{},{path:t,newPath:n});var r=Path.transform(n,e),o=Path.transform(Path.next(n),e);return _objectSpread$7(_objectSpread$7({},e),{},{path:r,newPath:o});case"remove_node":return _objectSpread$7(_objectSpread$7({},e),{},{type:"insert_node"});case"remove_text":return _objectSpread$7(_objectSpread$7({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return _objectSpread$7(_objectSpread$7({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return _objectSpread$7(_objectSpread$7({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return _objectSpread$7(_objectSpread$7({},e),{},{type:"merge_node",path:Path.next(e.path)})}}},Path={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Path.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;rt[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Path.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Path.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Path.equals(r,o)&&ie.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Path.compare(e,t),isAncestor:(e,t)=>e.length-1===Path.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Path.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Path.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Path.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Path.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Path.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Path.isAncestor(t,e)&&!Path.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fn$7(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Path.equals(i,r)||Path.endsBefore(i,r)||Path.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Path.equals(a,r)||Path.isAncestor(a,r))return null;Path.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;Path.equals(s,r)||Path.endsBefore(s,r)?r[s.length-1]-=1:Path.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(Path.equals(u,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Path.endsBefore(u,r)?r[u.length-1]+=1:Path.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if(Path.equals(d,f))return;if(Path.isAncestor(d,r)||Path.equals(d,r)){var p=f.slice();return Path.endsBefore(d,f)&&d.lengtht.offset?1:0:n},isAfter:(e,t)=>1===Point.compare(e,t),isBefore:(e,t)=>-1===Point.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Path.equals(e.path,t.path),isPoint:e=>isPlainObject$1(e)&&"number"==typeof e.offset&&Path.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fn$7(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Path.transform(o,t,n);break;case"insert_text":Path.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Path.equals(t.path,o)&&(e.offset+=t.position),e.path=Path.transform(o,t,n);break;case"remove_text":Path.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Path.equals(t.path,o)||Path.isAncestor(t.path,o))return null;e.path=Path.transform(o,t,n);break;case"split_node":if(Path.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Range.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Range.edges(e);return t},equals:(e,t)=>Point.equals(e.anchor,t.anchor)&&Point.equals(e.focus,t.focus),includes(e,t){if(Range.isRange(t)){if(Range.includes(e,t.anchor)||Range.includes(e,t.focus))return!0;var[n,r]=Range.edges(e),[o,i]=Range.edges(t);return Point.isBefore(n,o)&&Point.isAfter(r,i)}var[a,s]=Range.edges(e),l=!1,u=!1;return Point.isPoint(t)?(l=Point.compare(t,a)>=0,u=Point.compare(t,s)<=0):(l=Path.compare(t,a.path)>=0,u=Path.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=_objectWithoutProperties$1(e,_excluded$2),[r,o]=Range.edges(e),[i,a]=Range.edges(t),s=Point.isBefore(r,i)?i:r,l=Point.isBefore(o,a)?o:a;return Point.isBefore(l,s)?null:_objectSpread$5({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Point.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Point.equals(t,n)},isExpanded:e=>!Range.isCollapsed(e),isForward:e=>!Range.isBackward(e),isRange:e=>isPlainObject$1(e)&&Point.isPoint(e.anchor)&&Point.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Range.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fn$7(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Range.isCollapsed(e);Range.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Range.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=Point.transform(e.anchor,t,{affinity:r}),l=Point.transform(e.focus,t,{affinity:o});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},RangeRef={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Range.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},isDeepEqual=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(isPlainObject$1(r)&&isPlainObject$1(o)){if(!isDeepEqual(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return _objectWithoutProperties$1(e,_excluded$1)}return isDeepEqual(r?o(e):e,r?o(t):t)},isText:e=>isPlainObject$1(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Text.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[_objectSpread$4({},e)];for(var r of t){var o=_objectWithoutProperties$1(r,_excluded2$1),[i,a]=Range.edges(r),s=[],l=0;for(var u of n){var{length:c}=u.text,d=l;if(l+=c,i.offset<=d&&a.offset>=l)Object.assign(u,o),s.push(u);else if(i.offset!==a.offset&&(i.offset===l||a.offset===d)||i.offset>l||a.offsetd){var g=i.offset-d;p=_objectSpread$4(_objectSpread$4({},f),{},{text:f.text.slice(0,g)}),f=_objectSpread$4(_objectSpread$4({},f),{},{text:f.text.slice(g)})}Object.assign(f,o),p&&s.push(p),s.push(f),$&&s.push($)}}n=s}return n}};function ownKeys$3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread$3(e){for(var t=1;t{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Node$1.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of Range.points(t))t[l]=Point.transform(s,n);break;case"insert_text":var{path:u,offset:c,text:d}=n;if(0===d.length)break;var f=Node$1.leaf(e,u),p=f.text.slice(0,c),$=f.text.slice(c);if(f.text=p+d+$,t)for(var[h,g]of Range.points(t))t[g]=Point.transform(h,n);break;case"merge_node":var{path:v}=n,m=Node$1.get(e,v),y=Path.previous(v),b=Node$1.get(e,y),_=Node$1.parent(e,v),w=v[v.length-1];if(Text.isText(m)&&Text.isText(b))b.text+=m.text;else{if(Text.isText(m)||Text.isText(b))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(m," ").concat(b));b.children.push(...m.children)}if(_.children.splice(w,1),t)for(var[E,C]of Range.points(t))t[C]=Point.transform(E,n);break;case"move_node":var{path:S,newPath:x}=n;if(Path.isAncestor(S,x))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(x,"] because the destination is inside itself."));var D=Node$1.get(e,S),k=Node$1.parent(e,S),A=S[S.length-1];k.children.splice(A,1);var B=Path.transform(S,n),P=Node$1.get(e,Path.parent(B)),T=B[B.length-1];if(P.children.splice(T,0,D),t)for(var[O,F]of Range.points(t))t[F]=Point.transform(O,n);break;case"remove_node":var{path:N}=n,R=N[N.length-1];if(Node$1.parent(e,N).children.splice(R,1),t)for(var[I,j]of Range.points(t)){var L=Point.transform(I,n);if(null!=t&&null!=L)t[j]=L;else{var M=void 0,V=void 0;for(var[z,H]of Node$1.texts(e)){if(-1!==Path.compare(H,N)){V=[z,H];break}M=[z,H]}var U=!1;M&&V&&(U=Path.equals(V[1],N)?!Path.hasPrevious(V[1]):Path.common(M[1],N).length2&&void 0!==arguments[2]?arguments[2]:{};Editor$2.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(Node$1.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Editor$2.end(e,[]):[0],l=!0),null==l&&(l=!1),Range.isRange(a))if(r||(a=Editor$2.unhangRange(e,a)),Range.isCollapsed(a))a=a.anchor;else{var[,c]=Range.edges(a),d=Editor$2.pointRef(e,c);Transforms.delete(e,{at:a}),a=d.unref()}if(Point.isPoint(a)){null==s&&(s=Text.isText(u)?e=>Text.isText(e):e.isInline(u)?t=>Text.isText(t)||Editor$2.isInline(e,t):t=>Editor$2.isBlock(e,t));var[f]=Editor$2.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!f)return;var[,p]=f,$=Editor$2.pathRef(e,p),h=Editor$2.isEnd(e,a,p);Transforms.splitNodes(e,{at:a,match:s,mode:i,voids:o});var g=$.unref();a=h?Path.next(g):g}var v=Path.parent(a),m=a[a.length-1];if(o||!Editor$2.void(e,{at:v})){for(var y of t){var b=v.concat(m);m++,e.apply({type:"insert_node",path:b,node:y}),a=Path.next(a)}if(a=Path.previous(a),l){var _=Editor$2.end(e,a);_&&Transforms.select(e,_)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Editor$2.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Path.isPath(n)?matchPath(e,n):t=>Editor$2.isBlock(e,t)),n){var a=Editor$2.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(t=>{var[,n]=t;return Editor$2.pathRef(e,n)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=Editor$2.node(e,Path.parent(u)),[d,f]=c,p=u[u.length-1],{length:$}=d.children;if(1===$){var h=Path.next(f);Transforms.moveNodes(e,{at:u,to:h,voids:o}),Transforms.removeNodes(e,{at:f,voids:o})}else if(0===p)Transforms.moveNodes(e,{at:u,to:f,voids:o});else if(p===$-1){var g=Path.next(f);Transforms.moveNodes(e,{at:u,to:g,voids:o})}else{var v=Path.next(u),m=Path.next(f);Transforms.splitNodes(e,{at:v,voids:o}),Transforms.moveNodes(e,{at:u,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Editor$2.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Path.isPath(r)){var[s]=Editor$2.parent(e,r);n=e=>s.children.includes(e)}else n=t=>Editor$2.isBlock(e,t);if(!o&&Range.isRange(r)&&(r=Editor$2.unhangRange(e,r)),Range.isRange(r))if(Range.isCollapsed(r))r=r.anchor;else{var[,l]=Range.edges(r),u=Editor$2.pointRef(e,l);Transforms.delete(e,{at:r}),r=u.unref(),null==t.at&&Transforms.select(e,r)}var[c]=Editor$2.nodes(e,{at:r,match:n,voids:i,mode:a}),d=Editor$2.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&d){var[f,p]=c,[$,h]=d;if(0!==p.length&&0!==h.length){var g,v,m=Path.next(h),y=Path.common(p,h),b=Path.isSibling(p,h),_=Array.from(Editor$2.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),w=Editor$2.above(e,{at:p,mode:"highest",match:t=>_.includes(t)&&hasSingleChildNest(e,t)}),E=w&&Editor$2.pathRef(e,w[1]);if(Text.isText(f)&&Text.isText($)){var C=_objectWithoutProperties$1(f,_excluded$5);v=$.text.length,g=C}else{if(!Element$1.isElement(f)||!Element$1.isElement($))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(f)," ").concat(JSON.stringify($)));C=_objectWithoutProperties$1(f,_excluded2);v=$.children.length,g=C}b||Transforms.moveNodes(e,{at:p,to:m,voids:i}),E&&Transforms.removeNodes(e,{at:E.current,voids:i}),Element$1.isElement($)&&Editor$2.isEmpty(e,$)||Text.isText($)&&""===$.text&&0!==h[h.length-1]?Transforms.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:m,position:v,properties:g}),E&&E.unref()}}}}))},moveNodes(e,t){Editor$2.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Path.isPath(r)?matchPath(e,r):t=>Editor$2.isBlock(e,t));var s=Editor$2.pathRef(e,n),l=Editor$2.nodes(e,{at:r,match:a,mode:o,voids:i}),u=Array.from(l,(t=>{var[,n]=t;return Editor$2.pathRef(e,n)}));for(var c of u){var d=c.unref(),f=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),s.current&&Path.isSibling(f,d)&&Path.isAfter(f,d)&&(s.current=Path.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Editor$2.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Path.isPath(i)?matchPath(e,i):t=>Editor$2.isBlock(e,t)),!n&&Range.isRange(i)&&(i=Editor$2.unhangRange(e,i));var s=Editor$2.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(s,(t=>{var[,n]=t;return Editor$2.pathRef(e,n)}));for(var u of l){var c=u.unref();if(c){var[d]=Editor$2.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Editor$2.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:l=!1}=n;if(o){if(null==r&&(r=Path.isPath(o)?matchPath(e,o):t=>Editor$2.isBlock(e,t)),!i&&Range.isRange(o)&&(o=Editor$2.unhangRange(e,o)),s&&Range.isRange(o)){if(Range.isCollapsed(o)&&Editor$2.leaf(e,o.anchor)[0].text.length>0)return;var u=Editor$2.rangeRef(e,o,{affinity:"inward"}),[c,d]=Range.edges(o),f="lowest"===a?"lowest":"highest",p=Editor$2.isEnd(e,d,d.path);Transforms.splitNodes(e,{at:d,match:r,mode:f,voids:l,always:!p});var $=Editor$2.isStart(e,c,c.path);Transforms.splitNodes(e,{at:c,match:r,mode:f,voids:l,always:!$}),o=u.unref(),null==n.at&&Transforms.select(e,o)}for(var[h,g]of Editor$2.nodes(e,{at:o,match:r,mode:a,voids:l})){var v={},m={};if(0!==g.length){var y=!1;for(var b in t)"children"!==b&&"text"!==b&&t[b]!==h[b]&&(y=!0,h.hasOwnProperty(b)&&(v[b]=h[b]),null!=t[b]&&(m[b]=t[b]));y&&e.apply({type:"set_node",path:g,properties:v,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Editor$2.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>Editor$2.isBlock(e,t)),Range.isRange(i)&&(i=deleteRange(e,i)),Path.isPath(i)){var l=i,u=Editor$2.point(e,l),[c]=Editor$2.parent(e,l);o=e=>e===c,a=u.path.length-l.length+1,i=u,s=!0}if(i){var d=Editor$2.pointRef(e,i,{affinity:"backward"}),[f]=Editor$2.nodes(e,{at:i,match:o,mode:n,voids:r});if(f){var p=Editor$2.void(e,{at:i,mode:"highest"});if(!r&&p){var[$,h]=p;if(Element$1.isElement($)&&e.isInline($)){var g=Editor$2.after(e,h);if(!g){var v=Path.next(h);Transforms.insertNodes(e,{text:""},{at:v,voids:r}),g=Editor$2.point(e,v)}i=g,s=!0}a=i.path.length-h.length+1,s=!0}var m=Editor$2.pointRef(e,i),y=i.path.length-a,[,b]=f,_=i.path.slice(0,y),w=0===a?i.offset:i.path[y]+0;for(var[E,C]of Editor$2.levels(e,{at:_,reverse:!0,voids:r})){var S=!1;if(C.length2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Transforms.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Editor$2.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Path.isPath(i)?matchPath(e,i):t=>Editor$2.isBlock(e,t)),Path.isPath(i)&&(i=Editor$2.range(e,i));var s=Range.isRange(i)?Editor$2.rangeRef(e,i):null,l=Editor$2.nodes(e,{at:i,match:a,mode:n,voids:o}),u=Array.from(l,(t=>{var[,n]=t;return Editor$2.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Editor$2.node(e,n),a=Editor$2.range(e,n);r&&s&&(a=Range.intersection(s.current,a)),Transforms.liftNodes(e,{at:a,match:e=>Element$1.isAncestor(i)&&i.children.includes(e),voids:o})};for(var d of u)c(d);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Editor$2.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=Path.isPath(s)?matchPath(e,s):e.isInline(t)?t=>Editor$2.isInline(e,t)||Text.isText(t):t=>Editor$2.isBlock(e,t)),o&&Range.isRange(s)){var[l,u]=Range.edges(s),c=Editor$2.rangeRef(e,s,{affinity:"inward"});Transforms.splitNodes(e,{at:u,match:a,voids:i}),Transforms.splitNodes(e,{at:l,match:a,voids:i}),s=c.unref(),null==n.at&&Transforms.select(e,s)}var d=Array.from(Editor$2.nodes(e,{at:s,match:e.isInline(t)?t=>Editor$2.isBlock(e,t):e=>Editor$2.isEditor(e),mode:"lowest",voids:i}));for(var[,f]of d){var p=Range.isRange(s)?Range.intersection(s,Editor$2.range(e,f)):s;if(p){var $=Array.from(Editor$2.nodes(e,{at:p,match:a,mode:r,voids:i}));if($.length>0)if("continue"===function(){var[n]=$,r=$[$.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var s=Path.equals(o,a)?Path.parent(o):Path.common(o,a),l=Editor$2.range(e,o,a),u=Editor$2.node(e,s),[c]=u,d=s.length+1,f=Path.next(a.slice(0,d)),p=_objectSpread$2(_objectSpread$2({},t),{},{children:[]});Transforms.insertNodes(e,p,{at:f,voids:i}),Transforms.moveNodes(e,{at:l,match:e=>Element$1.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:i})}())continue}}}}))}},hasSingleChildNest=(e,t)=>{if(Element$1.isElement(t)){var n=t;return!!Editor$2.isVoid(e,t)||1===n.children.length&&hasSingleChildNest(e,n.children[0])}return!Editor$2.isEditor(t)},deleteRange=(e,t)=>{if(Range.isCollapsed(t))return t.anchor;var[,n]=Range.edges(t),r=Editor$2.pointRef(e,n);return Transforms.delete(e,{at:t}),r.unref()},matchPath=(e,t)=>{var[n]=Editor$2.node(e,t);return e=>e===n};function ownKeys$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread$1(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Transforms.select(e,r.anchor);else if("focus"===n)Transforms.select(e,r.focus);else if("start"===n){var[o]=Range.edges(r);Transforms.select(e,o)}else if("end"===n){var[,i]=Range.edges(r);Transforms.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Range.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Range.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:o},c={};if(null==a||"anchor"===a){var d=i?Editor$2.before(e,s,u):Editor$2.after(e,s,u);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=i?Editor$2.before(e,l,u):Editor$2.after(e,l,u);f&&(c.focus=f)}Transforms.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Editor$2.range(e,t),n)Transforms.setSelection(e,t);else{if(!Range.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Range.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Range.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;Transforms.setSelection(e,{["anchor"===o?"anchor":"focus"]:_objectSpread$1(_objectSpread$1({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Point.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Point.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},TextTransforms={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Editor$2.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Range.isRange(a)&&Range.isCollapsed(a)&&(a=a.anchor),Point.isPoint(a)){var l=Editor$2.void(e,{at:a,mode:"highest"});if(!i&&l){var[,u]=l;a=u}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Editor$2.before(e,a,c)||Editor$2.start(e,[]):Editor$2.after(e,a,c)||Editor$2.end(e,[])},s=!0}}if(Path.isPath(a))Transforms.removeNodes(e,{at:a,voids:i});else if(!Range.isCollapsed(a)){if(!s){var[,d]=Range.edges(a),f=Editor$2.end(e,[]);Point.equals(d,f)||(a=Editor$2.unhangRange(e,a,{voids:i}))}var[p,$]=Range.edges(a),h=Editor$2.above(e,{match:t=>Editor$2.isBlock(e,t),at:p,voids:i}),g=Editor$2.above(e,{match:t=>Editor$2.isBlock(e,t),at:$,voids:i}),v=h&&g&&!Path.equals(h[1],g[1]),m=Path.equals(p.path,$.path),y=i?null:Editor$2.void(e,{at:p,mode:"highest"}),b=i?null:Editor$2.void(e,{at:$,mode:"highest"});if(y){var _=Editor$2.before(e,p);_&&h&&Path.isAncestor(h[1],_.path)&&(p=_)}if(b){var w=Editor$2.after(e,$);w&&g&&Path.isAncestor(g[1],w.path)&&($=w)}var E,C=[];for(var S of Editor$2.nodes(e,{at:a,voids:i})){var[x,D]=S;E&&0===Path.compare(D,E)||(!i&&Editor$2.isVoid(e,x)||!Path.isCommon(D,p.path)&&!Path.isCommon(D,$.path))&&(C.push(S),E=D)}var k=Array.from(C,(t=>{var[,n]=t;return Editor$2.pathRef(e,n)})),A=Editor$2.pointRef(e,p),B=Editor$2.pointRef(e,$);if(!m&&!y){var P=A.current,[T]=Editor$2.leaf(e,P),{path:O}=P,{offset:F}=p,N=T.text.slice(F);N.length>0&&e.apply({type:"remove_text",path:O,offset:F,text:N})}for(var R of k){var I=R.unref();Transforms.removeNodes(e,{at:I,voids:i})}if(!b){var j=B.current,[L]=Editor$2.leaf(e,j),{path:M}=j,V=m?p.offset:0,z=L.text.slice(V,$.offset);z.length>0&&e.apply({type:"remove_text",path:M,offset:V,text:z})}!m&&v&&B.current&&A.current&&Transforms.mergeNodes(e,{at:B.current,hanging:!0,voids:i});var H=n?A.unref()||B.unref():B.unref()||A.unref();null==t.at&&H&&Transforms.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Editor$2.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Range.isRange(i))if(r||(i=Editor$2.unhangRange(e,i)),Range.isCollapsed(i))i=i.anchor;else{var[,a]=Range.edges(i);if(!o&&Editor$2.void(e,{at:a}))return;var s=Editor$2.pointRef(e,a);Transforms.delete(e,{at:i}),i=s.unref()}else Path.isPath(i)&&(i=Editor$2.start(e,i));if(o||!Editor$2.void(e,{at:i})){var l=Editor$2.above(e,{at:i,match:t=>Editor$2.isInline(e,t),mode:"highest",voids:o});if(l){var[,u]=l;if(Editor$2.isEnd(e,i,u))i=Editor$2.after(e,u);else if(Editor$2.isStart(e,i,u)){i=Editor$2.before(e,u)}}var c=Editor$2.above(e,{match:t=>Editor$2.isBlock(e,t),at:i,voids:o}),[,d]=c,f=Editor$2.isStart(e,i,d),p=Editor$2.isEnd(e,i,d),$=f&&p,h=!f||f&&p,g=!p,[,v]=Node$1.first({children:t},[]),[,m]=Node$1.last({children:t},[]),y=[],b=t=>{var[n,r]=t;return!(0===r.length)&&(!!$||!(h&&Path.isAncestor(r,v)&&Element$1.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&Path.isAncestor(r,m)&&Element$1.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var _ of Node$1.nodes({children:t},{pass:b}))b(_)&&y.push(_);var w=[],E=[],C=[],S=!0,x=!1;for(var[D]of y)Element$1.isElement(D)&&!e.isInline(D)?(S=!1,x=!0,E.push(D)):S?w.push(D):C.push(D);var[k]=Editor$2.nodes(e,{at:i,match:t=>Text.isText(t)||Editor$2.isInline(e,t),mode:"highest",voids:o}),[,A]=k,B=Editor$2.isStart(e,i,A),P=Editor$2.isEnd(e,i,A),T=Editor$2.pathRef(e,p?Path.next(d):d),O=Editor$2.pathRef(e,P?Path.next(A):A),F=Editor$2.pathRef(e,d);Transforms.splitNodes(e,{at:i,match:t=>x?Editor$2.isBlock(e,t):Text.isText(t)||Editor$2.isInline(e,t),mode:x?"lowest":"highest",voids:o});var N=Editor$2.pathRef(e,!B||B&&P?Path.next(A):A);if(Transforms.insertNodes(e,w,{at:N.current,match:t=>Text.isText(t)||Editor$2.isInline(e,t),mode:"highest",voids:o}),$&&E.length&&Transforms.delete(e,{at:F.unref(),voids:o}),Transforms.insertNodes(e,E,{at:T.current,match:t=>Editor$2.isBlock(e,t),mode:"lowest",voids:o}),Transforms.insertNodes(e,C,{at:O.current,match:t=>Text.isText(t)||Editor$2.isInline(e,t),mode:"highest",voids:o}),!n.at){var R;R=C.length>0?Path.previous(O.current):E.length>0?Path.previous(T.current):Path.previous(N.current);var I=Editor$2.end(e,R);Transforms.select(e,I)}N.unref(),T.unref(),O.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Editor$2.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Path.isPath(o)&&(o=Editor$2.range(e,o)),Range.isRange(o))if(Range.isCollapsed(o))o=o.anchor;else{var i=Range.end(o);if(!r&&Editor$2.void(e,{at:i}))return;var a=Editor$2.pointRef(e,i);Transforms.delete(e,{at:o,voids:r}),o=a.unref(),Transforms.setSelection(e,{anchor:o,focus:o})}if(r||!Editor$2.void(e,{at:o})){var{path:s,offset:l}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:l,text:t})}}}))}};function ownKeys$a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}function isObject$4(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$4(e){return!!e&&"object"==typeof e}function isString$1(e){return"string"==typeof e||!isArray$1(e)&&isObjectLike$4(e)&&objectToString$4.call(e)==stringTag}function toArray(e){if(!e)return[];if(isArrayLike$1(e))return isString$1(e)?stringToArray$1(e):copyArray(e);if(iteratorSymbol&&e[iteratorSymbol])return iteratorToArray(e[iteratorSymbol]());var t=getTag(e);return(t==mapTag?mapToArray:t==setTag?setToArray:values)(e)}function keys$1(e){return isArrayLike$1(e)?arrayLikeKeys$1(e):baseKeys$1(e)}function values(e){return e?baseValues(e,keys$1(e)):[]}var lodash_toarray=toArray;function isObject$3(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function extend$1(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:isObject$3(t[n])&&isObject$3(e[n])&&Object.keys(t[n]).length>0&&extend$1(e[n],t[n])}))}var ssrDocument={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){var e="undefined"!=typeof document?document:{};return extend$1(e,ssrDocument),e}var ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function getWindow(){var e="undefined"!=typeof window?window:{};return extend$1(e,ssrWindow),e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e2){return!1}}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function makeReactive(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}})}var Dom7=function(e){function t(t){var n;return makeReactive(_assertThisInitialized(n=e.call.apply(e,[this].concat(t))||this)),n}return _inheritsLoose(t,e),t}(_wrapNativeSuper(Array));function arrayFlat(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,arrayFlat(e)):t.push(e)})),t}function arrayFilter(e,t){return Array.prototype.filter.call(e,t)}function arrayUnique(e){for(var t=[],n=0;n=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("0})).length>0}function attr(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n=0&&(t[toCamelCase(o.name.split("data-")[1])]=o.value)}for(var i in t)"false"===t[i]?t[i]=!1:"true"===t[i]?t[i]=!0:parseFloat(t[i])===1*t[i]&&(t[i]*=1);return t}}function val(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r=0;else i.value=e}return this}function on$7(){for(var e=arguments.length,t=new Array(e),n=0;n=0;p-=1){var $=f[p];i&&$.listener===i||i&&$.listener&&$.listener.dom7proxy&&$.listener.dom7proxy===i?(d.removeEventListener(u,$.proxyListener,a),f.splice(p,1)):i||(d.removeEventListener(u,$.proxyListener,a),f.splice(p,1))}}return this}function width(){var e=getWindow();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function height(){var e=getWindow();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function offset(){if(this.length>0){var e=getWindow(),t=getDocument(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-i,left:r.left+l-a}}return null}function hide(){for(var e=0;e=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Dom7)for(n=0;n-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isObject$2(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$3(e){return!!e&&"object"==typeof e}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function identity(e){return e}var lodash_foreach=forEach;if("undefined"!=typeof navigator&&"ReactNative"===navigator.product&&"undefined"==typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!=typeof msCrypto&&"undefined"==typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"==typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let nanoid$3=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var FUNC_ERROR_TEXT$1="Expected a function",NAN$1=NaN,symbolTag$2="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt,freeGlobal$2="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf$2="object"==typeof self&&self&&self.Object===Object&&self,root$2=freeGlobal$2||freeSelf$2||Function("return this")(),objectProto$2=Object.prototype,objectToString$2=objectProto$2.toString,nativeMax$1=Math.max,nativeMin$1=Math.min,now$1=function(){return root$2.Date.now()};function debounce$2(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);function p(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function $(e){return u=e,s=setTimeout(g,t),c?p(e):a}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=now$1();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?nativeMin$1(n,i-(e-u)):n}(e))}function v(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function m(){var e=now$1(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return $(l);if(d)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=toNumber$1(t)||0,isObject$1$1(n)&&(c=!!n.leading,i=(d="maxWait"in n)?nativeMax$1(toNumber$1(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return void 0===s?a:v(now$1())},m}function throttle$1(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$1$1(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),debounce$2(e,t,{leading:r,maxWait:t,trailing:o})}function isObject$1$1(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike$2(e){return!!e&&"object"==typeof e}function isSymbol$2(e){return"symbol"==typeof e||isObjectLike$2(e)&&objectToString$2.call(e)==symbolTag$2}function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$2(e))return NAN$1;if(isObject$1$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$1$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim$1,"");var n=reIsBinary$1.test(e);return n||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),n?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var lodash_throttle=throttle$1;function createElement(e,t){return document.createElement(e,t)}function createElementNS(e,t,n){return document.createElementNS(e,t,n)}function createTextNode(e){return document.createTextNode(e)}function createComment(e){return document.createComment(e)}function insertBefore(e,t,n){e.insertBefore(t,n)}function removeChild(e,t){e.removeChild(t)}function appendChild(e,t){e.appendChild(t)}function parentNode(e){return e.parentNode}function nextSibling(e){return e.nextSibling}function tagName(e){return e.tagName}function setTextContent(e,t){e.textContent=t}function getTextContent(e){return e.textContent}function isElement(e){return 1===e.nodeType}function isText(e){return 3===e.nodeType}function isComment(e){return 8===e.nodeType}const htmlDomApi={createElement:createElement,createElementNS:createElementNS,createTextNode:createTextNode,createComment:createComment,insertBefore:insertBefore,removeChild:removeChild,appendChild:appendChild,parentNode:parentNode,nextSibling:nextSibling,tagName:tagName,setTextContent:setTextContent,getTextContent:getTextContent,isElement:isElement,isText:isText,isComment:isComment};function vnode(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const array=Array.isArray;function primitive(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function isUndef(e){return void 0===e}function isDef$1(e){return void 0!==e}const emptyNode=vnode("",{},[],void 0,void 0);function sameVnode(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function isVnode(e){return void 0!==e.sel}function createKeyToOldIdx(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const hooks=["create","update","remove","destroy","pre","post"];function init(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:htmlDomApi;for(const c of hooks)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let s,l=e.data;if(void 0!==l){const t=null===(o=l.hook)||void 0===o?void 0:o.init;isDef$1(t)&&(t(e),l=e.data)}const u=e.children,c=e.sel;if("!"===c)isUndef(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),d=c.indexOf(".",o),f=o>0?o:c.length,p=d>0?d:c.length,$=-1!==o||-1!==d?c.slice(0,Math.min(f,p)):c,h=e.elm=isDef$1(l)&&isDef$1(s=l.ns)?r.createElementNS(s,$,l):r.createElement($,l);for(f0&&h.setAttribute("class",c.slice(p+1).replace(/\./g," ")),s=0;sh?(f=null==n[m+1]?null:n[m+1].elm,a(e,f,n,$,m,o)):l(e,t,p,h))}(h,g,v,o):isDef$1(v)?(isDef$1(e.text)&&r.setTextContent(h,""),a(h,null,v,0,v.length-1,o)):isDef$1(g)?l(h,g,0,g.length-1):isDef$1(e.text)&&r.setTextContent(h,""):e.text!==t.text&&(isDef$1(g)&&l(h,g,0,g.length-1),r.setTextContent(h,t.text)),null===(p=null==$?void 0:$.postpatch)||void 0===p||p.call($,e,t)}}return function(e,t){let o,a,s;const c=[];for(o=0;oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:baseSlice(e,t,n)}function createCaseFirst(e){return function(t){var n=hasUnicode(t=toString$1(t))?stringToArray(t):void 0,r=n?n[0]:t.charAt(0),o=n?castSlice(n,1).join(""):t.slice(1);return r[e]()+o}}function createCompounder(e){return function(t){return arrayReduce(words(deburr(t).replace(reApos,"")),e,"")}}function isObjectLike$1(e){return!!e&&"object"==typeof e}function isSymbol$1(e){return"symbol"==typeof e||isObjectLike$1(e)&&objectToString$1.call(e)==symbolTag$1}function toString$1(e){return null==e?"":baseToString(e)}var camelCase=createCompounder((function(e,t,n){return t=t.toLowerCase(),e+(n?capitalize(t):t)}));function capitalize(e){return upperFirst(toString$1(e).toLowerCase())}function deburr(e){return(e=toString$1(e))&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var upperFirst=createCaseFirst("toUpperCase");function words(e,t,n){return e=toString$1(e),void 0===(t=n?void 0:t)?hasUnicodeWord(e)?unicodeWords(e):asciiWords(e):e.match(t)||[]}for(var lodash_camelcase=camelCase,IS_MAC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),MODIFIERS={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},ALIASES={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:IS_MAC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},CODES={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},f$2=1;f$2<20;f$2++)CODES["f"+f$2]=111+f$2;function isHotkey(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return parseHotkey(e,t)})),o=function(e){return r.some((function(t){return compareHotkey(t,e)}))};return null==n?o:o(n)}function isKeyHotkey(e,t){return isHotkey(e,{byKey:!0},t)}function parseHotkey(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in MODIFIERS)r[MODIFIERS[a]]=!1;var s=!0,l=!1,u=void 0;try{for(var c,d=o[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value,p=f.endsWith("?")&&f.length>1;p&&(f=f.slice(0,-1));var $=toKeyName(f),h=MODIFIERS[$];if(f.length>1&&!h&&!ALIASES[f]&&!CODES[$])throw new TypeError('Unknown modifier: "'+f+'"');1!==i&&h||(n?r.key=$:r.which=toKeyCode(f)),h&&(r[h]=!p||null)}}catch(g){l=!0,u=g}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}return r}function compareHotkey(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function toKeyCode(e){return e=toKeyName(e),CODES[e]||e.toUpperCase().charCodeAt(0)}function toKeyName(e){return e=e.toLowerCase(),e=ALIASES[e]||e}var isHotkey_1=isHotkey,isKeyHotkey_1=isKeyHotkey,FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root.Date.now()};function debounce$1(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function p(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function $(e){return u=e,s=setTimeout(g,t),c?p(e):a}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=now();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?nativeMin(n,i-(e-u)):n}(e))}function v(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function m(){var e=now(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return $(l);if(d)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=toNumber(t)||0,isObject$6(n)&&(c=!!n.leading,i=(d="maxWait"in n)?nativeMax(toNumber(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return void 0===s?a:v(now())},m}function isObject$6(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$6(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$6(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_debounce=debounce$1,lodash_clonedeep=createCommonjsModule((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",f="[object Promise]",p="[object RegExp]",$="[object Set]",h="[object String]",g="[object Symbol]",v="[object WeakMap]",m="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",x="[object Uint8ClampedArray]",D="[object Uint16Array]",k="[object Uint32Array]",A=/\w*$/,B=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T[o]=T["[object Array]"]=T[m]=T[y]=T[i]=T[a]=T[b]=T[_]=T[w]=T[E]=T[C]=T[u]=T[c]=T[d]=T[p]=T[$]=T[h]=T[g]=T[S]=T[x]=T[D]=T[k]=!0,T["[object Error]"]=T[s]=T[v]=!1;var O="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,F="object"==typeof self&&self&&self.Object===Object&&self,N=O||F||Function("return this")(),R=t&&!t.nodeType&&t,I=R&&e&&!e.nodeType&&e,j=I&&I.exports===R;function L(e,t){return e.set(t[0],t[1]),e}function M(e,t){return e.add(t),e}function V(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(fe||Se),string:new Ce}},xe.prototype.delete=function(e){return Ne(this,e).delete(e)},xe.prototype.get=function(e){return Ne(this,e).get(e)},xe.prototype.has=function(e){return Ne(this,e).has(e)},xe.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},De.prototype.clear=function(){this.__data__=new Se},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new xe(r)}return n.set(e,t),this};var Ie=le?U(le,Object):function(){return[]},je=function(e){return Q.call(e)};function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=r}(e.length)&&!qe(e)}var We=ue||function(){return!1};function qe(e){var t=Ge(e)?Q.call(e):"";return t==s||t==l}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ke(e){return Ue(e)?ke(e):function(e){if(!Me(e))return ce(e);var t=[];for(var n in Object(e))Z.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Pe(e,!0,!0)}})),hasProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_apply;function _classPrivateFieldLooseBase$8(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var id$a=0;function _classPrivateFieldLooseKey$8(e){return"__private_"+id$a+++"_"+e}function insertReplacement(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t1===e?0:1},Array.isArray(e)?e.forEach(_classPrivateFieldLooseBase$8(this,_apply)[_apply],this):_classPrivateFieldLooseBase$8(this,_apply)[_apply](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!hasProperty(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return interpolate(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return interpolate(n,t)}});function _apply2(e){if(null==e||!e.strings)return;const t=this.locale;this.locale=__spreadProps2(__spreadValues2({},t),{strings:__spreadValues2(__spreadValues2({},t.strings),e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}var namespaceEmitter=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,s){var l=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,s=i.length;for(;acrypto.getRandomValues(new Uint8Array(e)),customRandom=(e,t,n)=>{let r=(2<{let i="";for(;;){let a=n(o),s=o;for(;s--;)if(i+=e[a[s]&r]||"",i.length===t)return i}}},customAlphabet=(e,t)=>customRandom(e,t,random),nanoid$2=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var index_browser={nanoid:nanoid$2,customAlphabet:customAlphabet,customRandom:customRandom,urlAlphabet:urlAlphabet,random:random},prettierBytes=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function WildcardMatcher(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}WildcardMatcher.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t=2}return t?n(t.split(";")[0]):n};function _classPrivateFieldLooseBase$7(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var id$9=0;function _classPrivateFieldLooseKey$7(e){return"__private_"+id$9+++"_"+e}var _publish=_classPrivateFieldLooseKey$7("publish");class DefaultStore{constructor(){Object.defineProperty(this,_publish,{value:_publish2}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t=__spreadValues2({},this.state),n=__spreadValues2(__spreadValues2({},this.state),e);this.state=n,_classPrivateFieldLooseBase$7(this,_publish)[_publish](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function _publish2(){for(var e=arguments.length,t=new Array(e),n=0;n{e(...t)}))}DefaultStore.VERSION="2.0.3";var lib$3=function(){return new DefaultStore},getFileNameAndExtension=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},mimeTypes={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"},getFileType$1=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=getFileNameAndExtension(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in mimeTypes?mimeTypes[n]:"application/octet-stream"};function encodeCharacter(e){return e.charCodeAt(0).toString(32)}function encodeFilename(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${encodeCharacter(e)}`,"/")))+t}var generateFileID=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${encodeFilename(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${encodeFilename(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t},supportsUploadProgress=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)},getFileName$1=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"};function pad(e){return e<10?`0${e}`:e.toString()}var getTimeStamp=function(){const e=new Date;return`${pad(e.getHours())}:${pad(e.getMinutes())}:${pad(e.getSeconds())}`};const justErrorsLogger$1={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;ne,onBeforeUpload:e=>e,store:lib$3(),logger:justErrorsLogger,infoTimeout:5e3};if(this.opts=__spreadProps2(__spreadValues2(__spreadValues2({},t),e),{restrictions:__spreadValues2(__spreadValues2({},t.restrictions),e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=debugLogger$1),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=lodash_throttle(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:supportsUploadProgress(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:__spreadValues2({},this.opts.meta),info:[],recoveredState:null}),_classPrivateFieldLooseBase$6(this,_storeUnsubscribe)[_storeUnsubscribe]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),_classPrivateFieldLooseBase$6(this,_addListeners)[_addListeners]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:__spreadProps2(__spreadValues2({},this.getState().files),{[e]:__spreadValues2(__spreadValues2({},this.getState().files[e]),t)})})}i18nInit(){const e=new Translator_1([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=__spreadProps2(__spreadValues2(__spreadValues2({},this.opts),e),{restrictions:__spreadValues2(__spreadValues2({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=__spreadValues2({},this.getState().files),n={};Object.keys(t).forEach((r=>{const o=__spreadValues2({},t[r]);o.progress=__spreadValues2(__spreadValues2({},o.progress),e),n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){_classPrivateFieldLooseBase$6(this,_preProcessors)[_preProcessors].add(e)}removePreProcessor(e){return _classPrivateFieldLooseBase$6(this,_preProcessors)[_preProcessors].delete(e)}addPostProcessor(e){_classPrivateFieldLooseBase$6(this,_postProcessors)[_postProcessors].add(e)}removePostProcessor(e){return _classPrivateFieldLooseBase$6(this,_postProcessors)[_postProcessors].delete(e)}addUploader(e){_classPrivateFieldLooseBase$6(this,_uploaders)[_uploaders].add(e)}removeUploader(e){return _classPrivateFieldLooseBase$6(this,_uploaders)[_uploaders].delete(e)}setMeta(e){const t=__spreadValues2(__spreadValues2({},this.getState().meta),e),n=__spreadValues2({},this.getState().files);Object.keys(n).forEach((t=>{n[t]=__spreadProps2(__spreadValues2({},n[t]),{meta:__spreadValues2(__spreadValues2({},n[t].meta),e)})})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n=__spreadValues2({},this.getState().files);if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r=__spreadValues2(__spreadValues2({},n[e].meta),t);n[e]=__spreadProps2(__spreadValues2({},n[e]),{meta:r}),this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=r.filter((e=>e.progress.uploadStarted)),l=r.filter((e=>e.isPaused)),u=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),d=o.filter((e=>!e.isPaused)),f=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===r.length&&0===f.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return _classPrivateFieldLooseBase$6(this,_checkRestrictions)[_checkRestrictions](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){_classPrivateFieldLooseBase$6(this,_assertNewUploadAllowed)[_assertNewUploadAllowed](e);const{files:t}=this.getState();let n=_classPrivateFieldLooseBase$6(this,_checkAndCreateFileStateObject)[_checkAndCreateFileStateObject](t,e);return t[n.id]&&t[n.id].isGhost&&(n=__spreadProps2(__spreadValues2({},t[n.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:__spreadProps2(__spreadValues2({},t),{[n.id]:n})}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),_classPrivateFieldLooseBase$6(this,_startIfAutoProceed)[_startIfAutoProceed](),n.id}addFiles(e){_classPrivateFieldLooseBase$6(this,_assertNewUploadAllowed)[_assertNewUploadAllowed]();const t=__spreadValues2({},this.getState().files),n=[],r=[];for(let i=0;i{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&_classPrivateFieldLooseBase$6(this,_startIfAutoProceed)[_startIfAutoProceed](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o=__spreadValues2({},n),i=__spreadValues2({},r),a=Object.create(null);function s(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(s);0!==t.length?i[e]=__spreadProps2(__spreadValues2({},r[e]),{fileIDs:t}):delete i[e]}));const l={currentUploads:i,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(a);u.forEach((e=>{this.emit("file-removed",a[e],t)})),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e=__spreadValues2({},this.getState().files);Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n=__spreadProps2(__spreadValues2({},e[t]),{isPaused:!0});e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=__spreadValues2({},this.getState().files);Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n=__spreadProps2(__spreadValues2({},e[t]),{isPaused:!1,error:null});e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=__spreadValues2({},this.getState().files),t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n=__spreadProps2(__spreadValues2({},e[t]),{isPaused:!1,error:null});e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=_classPrivateFieldLooseBase$6(this,_createUpload)[_createUpload](t,{forceAllowNewUpload:!0});return _classPrivateFieldLooseBase$6(this,_runUpload)[_runUpload](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=_classPrivateFieldLooseBase$6(this,_createUpload)[_createUpload]([e],{forceAllowNewUpload:!0});return _classPrivateFieldLooseBase$6(this,_runUpload)[_runUpload](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:__spreadProps2(__spreadValues2({},this.getFile(e.id).progress),{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in _classPrivateFieldLooseBase$6(this,_plugins)[_plugins]?_classPrivateFieldLooseBase$6(this,_plugins)[_plugins][n.type].push(n):_classPrivateFieldLooseBase$6(this,_plugins)[_plugins][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(_classPrivateFieldLooseBase$6(this,_plugins)[_plugins])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[_Symbol$for$1](e){return _classPrivateFieldLooseBase$6(this,_plugins)[_plugins][e]}iteratePlugins(e){Object.values(_classPrivateFieldLooseBase$6(this,_plugins)[_plugins]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=_classPrivateFieldLooseBase$6(this,_plugins)[_plugins][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r=this.getState(),o={plugins:__spreadProps2(__spreadValues2({},r.plugins),{[e.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),_classPrivateFieldLooseBase$6(this,_storeUnsubscribe)[_storeUnsubscribe](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",_classPrivateFieldLooseBase$6(this,_updateOnlineStatus)[_updateOnlineStatus]),window.removeEventListener("offline",_classPrivateFieldLooseBase$6(this,_updateOnlineStatus)[_updateOnlineStatus]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?_classPrivateFieldLooseBase$6(this,_runUpload)[_runUpload](e):(_classPrivateFieldLooseBase$6(this,_removeUpload)[_removeUpload](e),Promise.reject(new Error("Nonexistent upload")))}[_Symbol$for2$1](){return _classPrivateFieldLooseBase$6(this,_createUpload)[_createUpload](...arguments)}addResultData(e,t){if(!_classPrivateFieldLooseBase$6(this,_getUpload)[_getUpload](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r=__spreadProps2(__spreadValues2({},n[e]),{result:__spreadValues2(__spreadValues2({},n[e].result),t)});this.setState({currentUploads:__spreadProps2(__spreadValues2({},n),{[e]:r})})}upload(){var e;null!=(e=_classPrivateFieldLooseBase$6(this,_plugins)[_plugins].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{_classPrivateFieldLooseBase$6(this,_checkMinNumberOfFiles)[_checkMinNumberOfFiles](t),_classPrivateFieldLooseBase$6(this,_checkRequiredMetaFields)[_checkRequiredMetaFields](t)})).catch((e=>{_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=_classPrivateFieldLooseBase$6(this,_createUpload)[_createUpload](r);return _classPrivateFieldLooseBase$6(this,_runUpload)[_runUpload](o)})).catch((e=>{_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](e,{showInformer:!1})})))}}function _checkRestrictions2(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new RestrictionError(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){if(!a.some((t=>t.indexOf("/")>-1?!!e.type&&mimeMatch(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new RestrictionError(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new RestrictionError(this.i18n("exceedsSize",{size:prettierBytes(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new RestrictionError(this.i18n("exceedsSize",{size:prettierBytes(n),file:e.name}));if(r&&null!=e.size&&e.size{const t=this.getFile(e);return _classPrivateFieldLooseBase$6(this,_checkRequiredMetaFieldsOnFile)[_checkRequiredMetaFieldsOnFile](t)}));if(t.length)throw new AggregateRestrictionError(t,`${this.i18n("missingRequiredMetaField")}`)}function _showOrLogErrorAndThrow2(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let s=i;if(a&&(s+=` ${a}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function _assertNewUploadAllowed2(e){const{allowNewUpload:t}=this.getState();!1===t&&_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](new RestrictionError(this.i18n("noMoreFilesAllowed")),{file:e})}function _checkAndCreateFileStateObject2(e,t){const n=getFileType$1(t),r=getFileName$1(n,t),o=getFileNameAndExtension(r).extension,i=Boolean(t.isRemote),a=generateFileID(__spreadProps2(__spreadValues2({},t),{type:n}));if(this.checkIfFileAlreadyExists(a)){const e=new RestrictionError(this.i18n("noDuplicates",{fileName:r}));_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](e,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let u={source:t.source||"",id:a,name:r,extension:o||"",meta:__spreadValues2(__spreadValues2({},this.getState().meta),s),type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(u,e);!1===c?_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](new RestrictionError("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(u=c);try{const t=Object.keys(e).map((t=>e[t]));_classPrivateFieldLooseBase$6(this,_checkRestrictions)[_checkRestrictions](u,t)}catch(d){_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](d,{file:u})}return u}function _startIfAutoProceed2(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function _addListeners2(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),_classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](e,{throwErr:!1})}else _classPrivateFieldLooseBase$6(this,_showOrLogErrorAndThrow)[_showOrLogErrorAndThrow](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:__spreadProps2(__spreadValues2({},n),{postprocess:_classPrivateFieldLooseBase$6(this,_postProcessors)[_postProcessors].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal}),response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:__spreadProps2(__spreadValues2({},this.getFile(e.id).progress),{preprocess:t})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t=__spreadValues2({},this.getState().files);t[e.id]=__spreadProps2(__spreadValues2({},t[e.id]),{progress:__spreadValues2({},t[e.id].progress)}),delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:__spreadProps2(__spreadValues2({},this.getState().files[e.id].progress),{postprocess:t})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t=__spreadValues2({},this.getState().files);t[e.id]=__spreadProps2(__spreadValues2({},t[e.id]),{progress:__spreadValues2({},t[e.id].progress)}),delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&_classPrivateFieldLooseBase$6(this,_checkRequiredMetaFieldsOnFile)[_checkRequiredMetaFieldsOnFile](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",_classPrivateFieldLooseBase$6(this,_updateOnlineStatus)[_updateOnlineStatus]),window.addEventListener("offline",_classPrivateFieldLooseBase$6(this,_updateOnlineStatus)[_updateOnlineStatus]),setTimeout(_classPrivateFieldLooseBase$6(this,_updateOnlineStatus)[_updateOnlineStatus],3e3))}function _createUpload2(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=nanoid$1();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:__spreadProps2(__spreadValues2({},o),{[i]:{fileIDs:e,step:0,result:{}}})}),i}function _getUpload2(e){const{currentUploads:t}=this.getState();return t[e]}function _removeUpload2(e){const t=__spreadValues2({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})}async function _runUpload2(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[..._classPrivateFieldLooseBase$6(this,_preProcessors)[_preProcessors],..._classPrivateFieldLooseBase$6(this,_uploaders)[_uploaders],..._classPrivateFieldLooseBase$6(this,_postProcessors)[_postProcessors]];try{for(let i=r;i{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),_classPrivateFieldLooseBase$6(this,_removeUpload)[_removeUpload](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Uppy.VERSION="2.1.3";var Uppy_1$1=Uppy,preact=createCommonjsModule((function(e,t){var n,r,o,i,a,s,l,u,c={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return g(e,s,o,i,null)}function g(e,t,n,i,a){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(s),s}function v(e){return e.children}function m(e,t){this.props=e,this.context=t}function y(e,t){if(null==t)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?g(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===($=w[f])||$&&h.key==$.key&&h.type===$.type)w[f]=void 0;else for(p=0;p2&&(s.children=arguments.length>3?n.call(arguments,2):r),g(e.type,s,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(_)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=i,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),isDOMElement=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE},findDOMElement=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):isDOMElement(e)?e:null},BasePlugin_1$1=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:__spreadProps2(__spreadValues2({},t),{[this.id]:__spreadValues2(__spreadValues2({},t[this.id]),e)})})}setOptions(e){this.opts=__spreadValues2(__spreadValues2({},this.opts),e),this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Translator_1([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function _classPrivateFieldLooseBase$5(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var id$7=0;function _classPrivateFieldLooseKey$5(e){return"__private_"+id$7+++"_"+e}const{render:render}=preact;function debounce(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i(t=null,e(...n))))),t}}var _updateUI=_classPrivateFieldLooseKey$5("updateUI");class UIPlugin extends BasePlugin_1$1{constructor(){super(...arguments),Object.defineProperty(this,_updateUI,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=findDOMElement(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return _classPrivateFieldLooseBase$5(this,_updateUI)[_updateUI]=debounce((e=>{this.uppy.getPlugin(this.id)&&(render(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),render(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof UIPlugin)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the - + + diff --git a/gptweb/assets/index-09c8cd45.js b/gptweb/assets/index-09c8cd45.js deleted file mode 100644 index 98c8dee..0000000 --- a/gptweb/assets/index-09c8cd45.js +++ /dev/null @@ -1,632 +0,0 @@ -var TI=Object.defineProperty;var xI=(e,t,n)=>t in e?TI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L6=(e,t,n)=>(xI(e,typeof t!="symbol"?t+"":t,n),n);var Nde=_I((Lr,Dr)=>{function wI(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FT={exports:{}},qh={},BT={exports:{}},mt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Q1=Symbol.for("react.element"),SI=Symbol.for("react.portal"),CI=Symbol.for("react.fragment"),AI=Symbol.for("react.strict_mode"),NI=Symbol.for("react.profiler"),kI=Symbol.for("react.provider"),OI=Symbol.for("react.context"),RI=Symbol.for("react.forward_ref"),II=Symbol.for("react.suspense"),MI=Symbol.for("react.memo"),LI=Symbol.for("react.lazy"),D6=Symbol.iterator;function DI(e){return e===null||typeof e!="object"?null:(e=D6&&e[D6]||e["@@iterator"],typeof e=="function"?e:null)}var zT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},UT=Object.assign,HT={};function Hc(e,t,n){this.props=e,this.context=t,this.refs=HT,this.updater=n||zT}Hc.prototype.isReactComponent={};Hc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jT(){}jT.prototype=Hc.prototype;function F2(e,t,n){this.props=e,this.context=t,this.refs=HT,this.updater=n||zT}var B2=F2.prototype=new jT;B2.constructor=F2;UT(B2,Hc.prototype);B2.isPureReactComponent=!0;var P6=Array.isArray,GT=Object.prototype.hasOwnProperty,z2={current:null},VT={key:!0,ref:!0,__self:!0,__source:!0};function KT(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)GT.call(t,r)&&!VT.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,te=w[W];if(0>>1;Wi(Se,A))Cei(Ae,Se)?(w[W]=Ae,w[Ce]=A,W=Ce):(w[W]=Se,w[Te]=A,W=Te);else if(Cei(Ae,A))w[W]=Ae,w[Ce]=A,W=Ce;else break e}}return D}function i(w,D){var A=w.sortIndex-D.sortIndex;return A!==0?A:w.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(w){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=w)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function C(w){if(g=!1,T(w),!m)if(n(l)!==null)m=!0,ne(R);else{var D=n(c);D!==null&&B(C,D.startTime-w)}}function R(w,D){m=!1,g&&(g=!1,p($),$=-1),h=!0;var A=f;try{for(T(D),d=n(l);d!==null&&(!(d.expirationTime>D)||w&&!X());){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var te=W(d.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),T(D)}else r(l);d=n(l)}if(d!==null)var P=!0;else{var Te=n(c);Te!==null&&B(C,Te.startTime-D),P=!1}return P}finally{d=null,f=A,h=!1}}var N=!1,O=null,$=-1,M=5,L=-1;function X(){return!(e.unstable_now()-Lw||125W?(w.sortIndex=A,t(c,w),n(l)===null&&w===n(c)&&(g?(p($),$=-1):g=!0,B(C,A-W))):(w.sortIndex=te,t(l,w),m||h||(m=!0,ne(R))),w},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(w){var D=f;return function(){var A=f;f=D;try{return w.apply(this,arguments)}finally{f=A}}}})(XT);YT.exports=XT;var WI=YT.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var QT=y,Br=WI;function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x4=Object.prototype.hasOwnProperty,qI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,F6={},B6={};function YI(e){return x4.call(B6,e)?!0:x4.call(F6,e)?!1:qI.test(e)?B6[e]=!0:(F6[e]=!0,!1)}function XI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function QI(e,t,n,r){if(t===null||typeof t>"u"||XI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rr(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ln[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ln[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ln[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ln[e]=new rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ln[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ln[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ln[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ln[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ln[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var H2=/[\-:]([a-z])/g;function j2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(H2,j2);Ln[t]=new rr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(H2,j2);Ln[t]=new rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(H2,j2);Ln[t]=new rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ln[e]=new rr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ln.xlinkHref=new rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ln[e]=new rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function G2(e,t,n,r){var i=Ln.hasOwnProperty(t)?Ln[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Lp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Du(e):""}function ZI(e){switch(e.tag){case 5:return Du(e.type);case 16:return Du("Lazy");case 13:return Du("Suspense");case 19:return Du("SuspenseList");case 0:case 2:case 15:return e=Dp(e.type,!1),e;case 11:return e=Dp(e.type.render,!1),e;case 1:return e=Dp(e.type,!0),e;default:return""}}function C4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yl:return"Fragment";case ql:return"Portal";case _4:return"Profiler";case V2:return"StrictMode";case w4:return"Suspense";case S4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ex:return(e.displayName||"Context")+".Consumer";case JT:return(e._context.displayName||"Context")+".Provider";case K2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W2:return t=e.displayName||null,t!==null?t:C4(e.type)||"Memo";case So:t=e._payload,e=e._init;try{return C4(e(t))}catch{}}return null}function JI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return C4(t);case 8:return t===V2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eM(e){var t=nx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function F0(e){e._valueTracker||(e._valueTracker=eM(e))}function rx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function A4(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function U6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ix(e,t){t=t.checked,t!=null&&G2(e,"checked",t,!1)}function N4(e,t){ix(e,t);var n=Yo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?k4(e,t.type,n):t.hasOwnProperty("defaultValue")&&k4(e,t.type,Yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function H6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function k4(e,t,n){(t!=="number"||kf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pu=Array.isArray;function dc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=B0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function m1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tM=["Webkit","ms","Moz","O"];Object.keys(Hu).forEach(function(e){tM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hu[t]=Hu[e]})});function lx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hu.hasOwnProperty(e)&&Hu[e]?(""+t).trim():t+"px"}function cx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var nM=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function I4(e,t){if(t){if(nM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function M4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L4=null;function q2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var D4=null,fc=null,hc=null;function V6(e){if(e=e0(e)){if(typeof D4!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Jh(t),D4(e.stateNode,e.type,t))}}function ux(e){fc?hc?hc.push(e):hc=[e]:fc=e}function dx(){if(fc){var e=fc,t=hc;if(hc=fc=null,V6(e),t)for(e=0;e>>=0,e===0?32:31-(hM(e)/mM|0)|0}var z0=64,U0=4194304;function $u(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=$u(s):(a&=o,a!==0&&(r=$u(a)))}else o=n&~i,o!==0?r=$u(o):a!==0&&(r=$u(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Z1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ni(t),e[t]=n}function yM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gu),e3=String.fromCharCode(32),t3=!1;function Ix(e,t){switch(e){case"keyup":return KM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function qM(e,t){switch(e){case"compositionend":return Mx(t);case"keypress":return t.which!==32?null:(t3=!0,e3);case"textInput":return e=t.data,e===e3&&t3?null:e;default:return null}}function YM(e,t){if(Xl)return e==="compositionend"||!n9&&Ix(e,t)?(e=Ox(),qd=J2=Io=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=a3(n)}}function $x(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$x(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fx(){for(var e=window,t=kf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kf(e.document)}return t}function r9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iL(e){var t=Fx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$x(n.ownerDocument.documentElement,n)){if(r!==null&&r9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=o3(n,a);var o=o3(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ql=null,U4=null,Ku=null,H4=!1;function s3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;H4||Ql==null||Ql!==kf(r)||(r=Ql,"selectionStart"in r&&r9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ku&&E1(Ku,r)||(Ku=r,r=Pf(U4,"onSelect"),0ec||(e.current=q4[ec],q4[ec]=null,ec--)}function $t(e,t){ec++,q4[ec]=e.current,e.current=t}var Xo={},Wn=ss(Xo),br=ss(!1),Ws=Xo;function wc(e,t){var n=e.type.contextTypes;if(!n)return Xo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Er(e){return e=e.childContextTypes,e!=null}function Ff(){Gt(br),Gt(Wn)}function m3(e,t,n){if(Wn.current!==Xo)throw Error(he(168));$t(Wn,t),$t(br,n)}function Wx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(he(108,JI(e)||"Unknown",i));return Jt({},n,r)}function Bf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xo,Ws=Wn.current,$t(Wn,e),$t(br,br.current),!0}function p3(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Wx(e,t,Ws),r.__reactInternalMemoizedMergedChildContext=e,Gt(br),Gt(Wn),$t(Wn,e)):Gt(br),$t(br,n)}var La=null,em=!1,Yp=!1;function qx(e){La===null?La=[e]:La.push(e)}function gL(e){em=!0,qx(e)}function ls(){if(!Yp&&La!==null){Yp=!0;var e=0,t=_t;try{var n=La;for(_t=1;e>=o,i-=o,Pa=1<<32-Ni(t)+i|n<$?(M=O,O=null):M=O.sibling;var L=f(p,O,T[$],C);if(L===null){O===null&&(O=M);break}e&&O&&L.alternate===null&&t(p,O),v=a(L,v,$),N===null?R=L:N.sibling=L,N=L,O=M}if($===T.length)return n(p,O),Kt&&_s(p,$),R;if(O===null){for(;$$?(M=O,O=null):M=O.sibling;var X=f(p,O,L.value,C);if(X===null){O===null&&(O=M);break}e&&O&&X.alternate===null&&t(p,O),v=a(X,v,$),N===null?R=X:N.sibling=X,N=X,O=M}if(L.done)return n(p,O),Kt&&_s(p,$),R;if(O===null){for(;!L.done;$++,L=T.next())L=d(p,L.value,C),L!==null&&(v=a(L,v,$),N===null?R=L:N.sibling=L,N=L);return Kt&&_s(p,$),R}for(O=r(p,O);!L.done;$++,L=T.next())L=h(O,p,$,L.value,C),L!==null&&(e&&L.alternate!==null&&O.delete(L.key===null?$:L.key),v=a(L,v,$),N===null?R=L:N.sibling=L,N=L);return e&&O.forEach(function(Z){return t(p,Z)}),Kt&&_s(p,$),R}function b(p,v,T,C){if(typeof T=="object"&&T!==null&&T.type===Yl&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case $0:e:{for(var R=T.key,N=v;N!==null;){if(N.key===R){if(R=T.type,R===Yl){if(N.tag===7){n(p,N.sibling),v=i(N,T.props.children),v.return=p,p=v;break e}}else if(N.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===So&&x3(R)===N.type){n(p,N.sibling),v=i(N,T.props),v.ref=pu(p,N,T),v.return=p,p=v;break e}n(p,N);break}else t(p,N);N=N.sibling}T.type===Yl?(v=Hs(T.props.children,p.mode,C,T.key),v.return=p,p=v):(C=nf(T.type,T.key,T.props,null,p.mode,C),C.ref=pu(p,v,T),C.return=p,p=C)}return o(p);case ql:e:{for(N=T.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===T.containerInfo&&v.stateNode.implementation===T.implementation){n(p,v.sibling),v=i(v,T.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=rg(T,p.mode,C),v.return=p,p=v}return o(p);case So:return N=T._init,b(p,v,N(T._payload),C)}if(Pu(T))return m(p,v,T,C);if(uu(T))return g(p,v,T,C);q0(p,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,v!==null&&v.tag===6?(n(p,v.sibling),v=i(v,T),v.return=p,p=v):(n(p,v),v=ng(T,p.mode,C),v.return=p,p=v),o(p)):n(p,v)}return b}var Cc=n_(!0),r_=n_(!1),t0={},ra=ss(t0),w1=ss(t0),S1=ss(t0);function Ds(e){if(e===t0)throw Error(he(174));return e}function f9(e,t){switch($t(S1,t),$t(w1,e),$t(ra,t0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R4(t,e)}Gt(ra),$t(ra,t)}function Ac(){Gt(ra),Gt(w1),Gt(S1)}function i_(e){Ds(S1.current);var t=Ds(ra.current),n=R4(t,e.type);t!==n&&($t(w1,e),$t(ra,n))}function h9(e){w1.current===e&&(Gt(ra),Gt(w1))}var Xt=ss(0);function Vf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xp=[];function m9(){for(var e=0;en?n:4,e(!0);var r=Qp.transition;Qp.transition={};try{e(!1),t()}finally{_t=n,Qp.transition=r}}function E_(){return oi().memoizedState}function EL(e,t,n){var r=jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},T_(e))x_(t,n);else if(n=Zx(e,t,n,r),n!==null){var i=er();ki(n,e,r,i),__(n,t,r)}}function TL(e,t,n){var r=jo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(T_(e))x_(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Mi(s,o)){var l=t.interleaved;l===null?(i.next=i,u9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Zx(e,t,i,r),n!==null&&(i=er(),ki(n,e,r,i),__(n,t,r))}}function T_(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function x_(e,t){Wu=Kf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function __(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,X2(e,n)}}var Wf={readContext:ai,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},xL={readContext:ai,useCallback:function(e,t){return Vi().memoizedState=[e,t===void 0?null:t],e},useContext:ai,useEffect:w3,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zd(4194308,4,p_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zd(4,2,e,t)},useMemo:function(e,t){var n=Vi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EL.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=Vi();return e={current:e},t.memoizedState=e},useState:_3,useDebugValue:b9,useDeferredValue:function(e){return Vi().memoizedState=e},useTransition:function(){var e=_3(!1),t=e[0];return e=bL.bind(null,e[1]),Vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,i=Vi();if(Kt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),An===null)throw Error(he(349));Ys&30||s_(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,w3(c_.bind(null,r,a,e),[e]),r.flags|=2048,N1(9,l_.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Vi(),t=An.identifierPrefix;if(Kt){var n=$a,r=Pa;n=(r&~(1<<32-Ni(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=C1++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Yi]=t,e[_1]=r,I_(e,t,!1,!1),t.stateNode=e;e:{switch(o=M4(n,r),n){case"dialog":Ut("cancel",e),Ut("close",e),i=r;break;case"iframe":case"object":case"embed":Ut("load",e),i=r;break;case"video":case"audio":for(i=0;ikc&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vf(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Kt)return Fn(t),null}else 2*sn()-a.renderingStartTime>kc&&n!==1073741824&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sn(),t.sibling=null,n=Xt.current,$t(Xt,r?n&1|2:n&1),t):(Fn(t),null);case 22:case 23:return S9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Fn(t),t.subtreeFlags&6&&(t.flags|=8192)):Fn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function OL(e,t){switch(a9(t),t.tag){case 1:return Er(t.type)&&Ff(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ac(),Gt(br),Gt(Wn),m9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h9(t),null;case 13:if(Gt(Xt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Sc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(Xt),null;case 4:return Ac(),null;case 10:return c9(t.type._context),null;case 22:case 23:return S9(),null;case 24:return null;default:return null}}var X0=!1,zn=!1,RL=typeof WeakSet=="function"?WeakSet:Set,De=null;function ic(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function o5(e,t,n){try{n()}catch(r){rn(e,t,r)}}var M3=!1;function IL(e,t){if(j4=Lf,e=Fx(),r9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=o),f===a&&++u===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(G4={focusedElem:e,selectionRange:n},Lf=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ti(t.type,g),b);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(C){rn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return m=M3,M3=!1,m}function qu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&o5(t,n,a)}i=i.next}while(i!==r)}}function rm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function s5(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function D_(e){var t=e.alternate;t!==null&&(e.alternate=null,D_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yi],delete t[_1],delete t[W4],delete t[mL],delete t[pL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function P_(e){return e.tag===5||e.tag===3||e.tag===4}function L3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||P_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function l5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$f));else if(r!==4&&(e=e.child,e!==null))for(l5(e,t,n),e=e.sibling;e!==null;)l5(e,t,n),e=e.sibling}function c5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(c5(e,t,n),e=e.sibling;e!==null;)c5(e,t,n),e=e.sibling}var On=null,_i=!1;function fo(e,t,n){for(n=n.child;n!==null;)$_(e,t,n),n=n.sibling}function $_(e,t,n){if(na&&typeof na.onCommitFiberUnmount=="function")try{na.onCommitFiberUnmount(Yh,n)}catch{}switch(n.tag){case 5:zn||ic(n,t);case 6:var r=On,i=_i;On=null,fo(e,t,n),On=r,_i=i,On!==null&&(_i?(e=On,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):On.removeChild(n.stateNode));break;case 18:On!==null&&(_i?(e=On,n=n.stateNode,e.nodeType===8?qp(e.parentNode,n):e.nodeType===1&&qp(e,n),y1(e)):qp(On,n.stateNode));break;case 4:r=On,i=_i,On=n.stateNode.containerInfo,_i=!0,fo(e,t,n),On=r,_i=i;break;case 0:case 11:case 14:case 15:if(!zn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&o5(n,t,o),i=i.next}while(i!==r)}fo(e,t,n);break;case 1:if(!zn&&(ic(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rn(n,t,s)}fo(e,t,n);break;case 21:fo(e,t,n);break;case 22:n.mode&1?(zn=(r=zn)||n.memoizedState!==null,fo(e,t,n),zn=r):fo(e,t,n);break;default:fo(e,t,n)}}function D3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RL),t.forEach(function(r){var i=UL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=sn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LL(r/1960))-r,10e?16:e,Mo===null)var r=!1;else{if(e=Mo,Mo=null,Xf=0,bt&6)throw Error(he(331));var i=bt;for(bt|=4,De=e.current;De!==null;){var a=De,o=a.child;if(De.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsn()-_9?Us(e,0):x9|=n),Tr(e,t)}function V_(e,t){t===0&&(e.mode&1?(t=U0,U0<<=1,!(U0&130023424)&&(U0=4194304)):t=1);var n=er();e=Wa(e,t),e!==null&&(Z1(e,t,n),Tr(e,n))}function zL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V_(e,n)}function UL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),V_(e,n)}var K_;K_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||br.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,NL(e,t,n);gr=!!(e.flags&131072)}else gr=!1,Kt&&t.flags&1048576&&Yx(t,Uf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jd(e,t),e=t.pendingProps;var i=wc(t,Wn.current);pc(t,n),i=g9(null,t,r,e,i,n);var a=v9();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Er(r)?(a=!0,Bf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,d9(t),i.updater=tm,t.stateNode=i,i._reactInternals=t,J4(t,r,e,n),t=n5(null,t,r,!0,a,n)):(t.tag=0,Kt&&a&&i9(t),Yn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jL(r),e=Ti(r,e),i){case 0:t=t5(null,t,r,e,n);break e;case 1:t=O3(null,t,r,e,n);break e;case 11:t=N3(null,t,r,e,n);break e;case 14:t=k3(null,t,r,Ti(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),t5(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),O3(e,t,r,i,n);case 3:e:{if(k_(t),e===null)throw Error(he(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Jx(e,t),Gf(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Nc(Error(he(423)),t),t=R3(e,t,r,n,i);break e}else if(r!==i){i=Nc(Error(he(424)),t),t=R3(e,t,r,n,i);break e}else for(Ir=zo(t.stateNode.containerInfo.firstChild),Pr=t,Kt=!0,Si=null,n=r_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sc(),r===i){t=qa(e,t,n);break e}Yn(e,t,r,n)}t=t.child}return t;case 5:return i_(t),e===null&&X4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,V4(r,i)?o=null:a!==null&&V4(r,a)&&(t.flags|=32),N_(e,t),Yn(e,t,o,n),t.child;case 6:return e===null&&X4(t),null;case 13:return O_(e,t,n);case 4:return f9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cc(t,null,r,n):Yn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),N3(e,t,r,i,n);case 7:return Yn(e,t,t.pendingProps,n),t.child;case 8:return Yn(e,t,t.pendingProps.children,n),t.child;case 12:return Yn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$t(Hf,r._currentValue),r._currentValue=o,a!==null)if(Mi(a.value,o)){if(a.children===i.children&&!br.current){t=qa(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ba(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Q4(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(he(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Q4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Yn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pc(t,n),i=ai(i),r=r(i),t.flags|=1,Yn(e,t,r,n),t.child;case 14:return r=t.type,i=Ti(r,t.pendingProps),i=Ti(r.type,i),k3(e,t,r,i,n);case 15:return C_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),Jd(e,t),t.tag=1,Er(r)?(e=!0,Bf(t)):e=!1,pc(t,n),t_(t,r,i),J4(t,r,i,n),n5(null,t,r,!0,e,n);case 19:return R_(e,t,n);case 22:return A_(e,t,n)}throw Error(he(156,t.tag))};function W_(e,t){return yx(e,t)}function HL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,n,r){return new HL(e,t,n,r)}function A9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jL(e){if(typeof e=="function")return A9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===K2)return 11;if(e===W2)return 14}return 2}function Go(e,t){var n=e.alternate;return n===null?(n=ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nf(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")A9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yl:return Hs(n.children,i,a,t);case V2:o=8,i|=8;break;case _4:return e=ei(12,n,t,i|2),e.elementType=_4,e.lanes=a,e;case w4:return e=ei(13,n,t,i),e.elementType=w4,e.lanes=a,e;case S4:return e=ei(19,n,t,i),e.elementType=S4,e.lanes=a,e;case tx:return am(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case JT:o=10;break e;case ex:o=9;break e;case K2:o=11;break e;case W2:o=14;break e;case So:o=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=ei(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Hs(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function am(e,t,n,r){return e=ei(22,e,r,t),e.elementType=tx,e.lanes=n,e.stateNode={isHidden:!1},e}function ng(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function rg(e,t,n){return t=ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GL(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$p(0),this.expirationTimes=$p(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$p(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function N9(e,t,n,r,i,a,o,s,l){return e=new GL(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ei(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},d9(a),e}function VL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q_)}catch(e){console.error(e)}}Q_(),qT.exports=zr;var Vc=qT.exports;const XL=wr(Vc);var j3=Vc;T4.createRoot=j3.createRoot,T4.hydrateRoot=j3.hydrateRoot;/** - * @remix-run/router v1.6.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Oc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZL(){return Math.random().toString(36).substr(2,8)}function V3(e,t){return{usr:e.state,key:e.key,idx:t}}function O1(e,t,n,r){return n===void 0&&(n=null),Tt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ro(t):t,{state:n,key:t&&t.key||r||ZL()})}function Zs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JL(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=dn.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Tt({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=dn.Pop;let b=u(),p=b==null?null:b-c;c=b,l&&l({action:s,location:g.location,delta:p})}function f(b,p){s=dn.Push;let v=O1(g.location,b,p);n&&n(v,b),c=u()+1;let T=V3(v,c),C=g.createHref(v);try{o.pushState(T,"",C)}catch{i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function h(b,p){s=dn.Replace;let v=O1(g.location,b,p);n&&n(v,b),c=u();let T=V3(v,c),C=g.createHref(v);o.replaceState(T,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function m(b){let p=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof b=="string"?b:Zs(b);return ft(p,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,p)}let g={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(G3,d),l=b,()=>{i.removeEventListener(G3,d),l=null}},createHref(b){return t(i,b)},createURL:m,encodeLocation(b){let p=m(b);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:h,go(b){return o.go(b)}};return g}var gn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gn||(gn={}));const eD=new Set(["lazy","caseSensitive","path","id","index","children"]);function tD(e){return e.index===!0}function m5(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(ft(i.index!==!0||!i.children,"Cannot specify children on an index route"),ft(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),tD(i)){let l=Tt({},i,t(i),{id:s});return r[s]=l,l}else{let l=Tt({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=m5(i.children,t,o,r)),l}})}function oc(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ro(t):t,i=Kc(r.pathname||"/",n);if(i==null)return null;let a=Z_(e);nD(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=za([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(ft(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Z_(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:cD(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of J_(a.path))i(a,o,l)}),t}function J_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=J_(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function nD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rD=/^:\w+$/,iD=3,aD=2,oD=1,sD=10,lD=-2,K3=e=>e==="*";function cD(e,t){let n=e.split("/"),r=n.length;return n.some(K3)&&(r+=lD),t&&(r+=aD),n.filter(i=>!K3(i)).reduce((i,a)=>i+(rD.test(a)?iD:a===""?oD:sD),r)}function uD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dD(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(u==="*"){let f=s[d]||"";o=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=pD(s[d]||"",u),c},{}),pathname:a,pathnameBase:o,pattern:e}}function hD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Oc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function mD(e){try{return decodeURI(e)}catch(t){return Oc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pD(e,t){try{return decodeURIComponent(e)}catch(n){return Oc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Kc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ro(e):e;return{pathname:n?n.startsWith("/")?n:vD(n,t):t,search:bD(r),hash:ED(i)}}function vD(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ig(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function um(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function I9(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ro(e):(i=Tt({},e),ft(!i.pathname||!i.pathname.includes("?"),ig("?","pathname","search",i)),ft(!i.pathname||!i.pathname.includes("#"),ig("#","pathname","hash",i)),ft(!i.search||!i.search.includes("#"),ig("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let d=t.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=gD(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const za=e=>e.join("/").replace(/\/\/+/g,"/"),yD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ED=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,TD=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",t),new Response(null,Tt({},r,{headers:i}))};class M9{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ew(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const tw=["post","put","patch","delete"],xD=new Set(tw),_D=["get",...tw],wD=new Set(_D),SD=new Set([301,302,303,307,308]),CD=new Set([307,308]),ag={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},AD={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},W3={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},nw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ND=!rw,kD=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function OD(e){ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t;if(e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let Y=e.detectErrorBoundary;t=J=>({hasErrorBoundary:Y(J)})}else t=kD;let n={},r=m5(e.routes,t,void 0,n),i,a=e.basename||"/",o=Tt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),s=null,l=new Set,c=null,u=null,d=null,f=e.hydrationData!=null,h=oc(r,e.history.location,a),m=null;if(h==null){let Y=xi(404,{pathname:e.history.location.pathname}),{matches:J,route:oe}=ev(r);h=J,m={[oe.id]:Y}}let g=!h.some(Y=>Y.route.lazy)&&(!h.some(Y=>Y.route.loader)||e.hydrationData!=null),b,p={historyAction:e.history.action,location:e.history.location,matches:h,initialized:g,navigation:ag,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},v=dn.Pop,T=!1,C,R=!1,N=!1,O=[],$=[],M=new Map,L=0,X=-1,Z=new Map,Q=new Set,K=new Map,V=new Map,ne=new Map,B=!1;function w(){return s=e.history.listen(Y=>{let{action:J,location:oe,delta:Ne}=Y;if(B){B=!1;return}Oc(ne.size===0||Ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Re=vt({currentLocation:p.location,nextLocation:oe,historyAction:J});if(Re&&Ne!=null){B=!0,e.history.go(Ne*-1),gt(Re,{state:"blocked",location:oe,proceed(){gt(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ne)},reset(){be(Re),W({blockers:new Map(b.state.blockers)})}});return}return Se(J,oe)}),p.initialized||Se(dn.Pop,p.location),b}function D(){s&&s(),l.clear(),C&&C.abort(),p.fetchers.forEach((Y,J)=>j(J)),p.blockers.forEach((Y,J)=>be(J))}function A(Y){return l.add(Y),()=>l.delete(Y)}function W(Y){p=Tt({},p,Y),l.forEach(J=>J(p))}function te(Y,J){var oe,Ne;let Re=p.actionData!=null&&p.navigation.formMethod!=null&&Ma(p.navigation.formMethod)&&p.navigation.state==="loading"&&((oe=Y.state)==null?void 0:oe._isRedirect)!==!0,Ve;J.actionData?Object.keys(J.actionData).length>0?Ve=J.actionData:Ve=null:Re?Ve=p.actionData:Ve=null;let Xe=J.loaderData?J3(p.loaderData,J.loaderData,J.matches||[],J.errors):p.loaderData;for(let[Fe]of ne)be(Fe);let Ie=T===!0||p.navigation.formMethod!=null&&Ma(p.navigation.formMethod)&&((Ne=Y.state)==null?void 0:Ne._isRedirect)!==!0;i&&(r=i,i=void 0),W(Tt({},J,{actionData:Ve,loaderData:Xe,historyAction:v,location:Y,initialized:!0,navigation:ag,revalidation:"idle",restoreScrollPosition:re(Y,J.matches||p.matches),preventScrollReset:Ie,blockers:new Map(p.blockers)})),R||v===dn.Pop||(v===dn.Push?e.history.push(Y,Y.state):v===dn.Replace&&e.history.replace(Y,Y.state)),v=dn.Pop,T=!1,R=!1,N=!1,O=[],$=[]}async function P(Y,J){if(typeof Y=="number"){e.history.go(Y);return}let oe=p5(p.location,p.matches,a,o.v7_prependBasename,Y,J==null?void 0:J.fromRouteId,J==null?void 0:J.relative),{path:Ne,submission:Re,error:Ve}=q3(o.v7_normalizeFormMethod,!1,oe,J),Xe=p.location,Ie=O1(p.location,Ne,J&&J.state);Ie=Tt({},Ie,e.history.encodeLocation(Ie));let Fe=J&&J.replace!=null?J.replace:void 0,et=dn.Push;Fe===!0?et=dn.Replace:Fe===!1||Re!=null&&Ma(Re.formMethod)&&Re.formAction===p.location.pathname+p.location.search&&(et=dn.Replace);let At=J&&"preventScrollReset"in J?J.preventScrollReset===!0:void 0,Pn=vt({currentLocation:Xe,nextLocation:Ie,historyAction:et});if(Pn){gt(Pn,{state:"blocked",location:Ie,proceed(){gt(Pn,{state:"proceeding",proceed:void 0,reset:void 0,location:Ie}),P(Y,J)},reset(){be(Pn),W({blockers:new Map(p.blockers)})}});return}return await Se(et,Ie,{submission:Re,pendingError:Ve,preventScrollReset:At,replace:J&&J.replace})}function Te(){if(en(),W({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){Se(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}Se(v||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function Se(Y,J,oe){C&&C.abort(),C=null,v=Y,R=(oe&&oe.startUninterruptedRevalidation)===!0,G(p.location,p.matches),T=(oe&&oe.preventScrollReset)===!0;let Ne=i||r,Re=oe&&oe.overrideNavigation,Ve=oc(Ne,J,a);if(!Ve){let Tn=xi(404,{pathname:J.pathname}),{matches:xn,route:Vr}=ev(Ne);Dn(),te(J,{matches:xn,loaderData:{},errors:{[Vr.id]:Tn}});return}if(p.initialized&&DD(p.location,J)&&!(oe&&oe.submission&&Ma(oe.submission.formMethod))){te(J,{matches:Ve});return}C=new AbortController;let Xe=bu(e.history,J,C.signal,oe&&oe.submission),Ie,Fe;if(oe&&oe.pendingError)Fe={[sc(Ve).route.id]:oe.pendingError};else if(oe&&oe.submission&&Ma(oe.submission.formMethod)){let Tn=await Ce(Xe,J,oe.submission,Ve,{replace:oe.replace});if(Tn.shortCircuited)return;Ie=Tn.pendingActionData,Fe=Tn.pendingActionError,Re=Tt({state:"loading",location:J},oe.submission),Xe=new Request(Xe.url,{signal:Xe.signal})}let{shortCircuited:et,loaderData:At,errors:Pn}=await Ae(Xe,J,Ve,Re,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Ie,Fe);et||(C=null,te(J,Tt({matches:Ve},Ie?{actionData:Ie}:{},{loaderData:At,errors:Pn})))}async function Ce(Y,J,oe,Ne,Re){en();let Ve=Tt({state:"submitting",location:J},oe);W({navigation:Ve});let Xe,Ie=g5(Ne,J);if(!Ie.route.action&&!Ie.route.lazy)Xe={type:gn.error,error:xi(405,{method:Y.method,pathname:J.pathname,routeId:Ie.route.id})};else if(Xe=await yu("action",Y,Ie,Ne,n,t,a),Y.signal.aborted)return{shortCircuited:!0};if(vc(Xe)){let Fe;return Re&&Re.replace!=null?Fe=Re.replace:Fe=Xe.location===p.location.pathname+p.location.search,await Ct(p,Xe,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(Qu(Xe)){let Fe=sc(Ne,Ie.route.id);return(Re&&Re.replace)!==!0&&(v=dn.Push),{pendingActionData:{},pendingActionError:{[Fe.route.id]:Xe.error}}}if(Ps(Xe))throw xi(400,{type:"defer-action"});return{pendingActionData:{[Ie.route.id]:Xe.data}}}async function Ae(Y,J,oe,Ne,Re,Ve,Xe,Ie,Fe){let et=Ne;et||(et=Tt({state:"loading",location:J,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Re));let At=Re||Ve?Re||Ve:et.formMethod&&et.formAction&&et.formData&&et.formEncType?{formMethod:et.formMethod,formAction:et.formAction,formData:et.formData,formEncType:et.formEncType}:void 0,Pn=i||r,[Tn,xn]=Y3(e.history,p,oe,At,J,N,O,$,K,Pn,a,Ie,Fe);if(Dn(qt=>!(oe&&oe.some(Kr=>Kr.route.id===qt))||Tn&&Tn.some(Kr=>Kr.route.id===qt)),Tn.length===0&&xn.length===0){let qt=le();return te(J,Tt({matches:oe,loaderData:{},errors:Fe||null},Ie?{actionData:Ie}:{},qt?{fetchers:new Map(p.fetchers)}:{})),{shortCircuited:!0}}if(!R){xn.forEach(Kr=>{let Cl=p.fetchers.get(Kr.key),Op={state:"loading",data:Cl&&Cl.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Kr.key,Op)});let qt=Ie||p.actionData;W(Tt({navigation:et},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},xn.length>0?{fetchers:new Map(p.fetchers)}:{}))}X=++L,xn.forEach(qt=>{qt.controller&&M.set(qt.key,qt.controller)});let Vr=()=>xn.forEach(qt=>ie(qt.key));C&&C.signal.addEventListener("abort",Vr);let{results:cu,loaderResults:Cp,fetcherResults:M0}=await or(p.matches,oe,Tn,xn,Y);if(Y.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",Vr),xn.forEach(qt=>M.delete(qt.key));let uo=tv(cu);if(uo)return await Ct(p,uo,{replace:Xe}),{shortCircuited:!0};let{loaderData:L0,errors:Ap}=Z3(p,oe,Tn,Cp,Fe,xn,M0,V);V.forEach((qt,Kr)=>{qt.subscribe(Cl=>{(Cl||qt.done)&&V.delete(Kr)})});let Np=le(),kp=_e(X),D0=Np||kp||xn.length>0;return Tt({loaderData:L0,errors:Ap},D0?{fetchers:new Map(p.fetchers)}:{})}function qe(Y){return p.fetchers.get(Y)||AD}function xe(Y,J,oe,Ne){if(ND)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");M.has(Y)&&ie(Y);let Re=i||r,Ve=p5(p.location,p.matches,a,o.v7_prependBasename,oe,J,Ne==null?void 0:Ne.relative),Xe=oc(Re,Ve,a);if(!Xe){sr(Y,J,xi(404,{pathname:Ve}));return}let{path:Ie,submission:Fe}=q3(o.v7_normalizeFormMethod,!0,Ve,Ne),et=g5(Xe,Ie);if(T=(Ne&&Ne.preventScrollReset)===!0,Fe&&Ma(Fe.formMethod)){st(Y,J,Ie,et,Xe,Fe);return}K.set(Y,{routeId:J,path:Ie}),St(Y,J,Ie,et,Xe,Fe)}async function st(Y,J,oe,Ne,Re,Ve){if(en(),K.delete(Y),!Ne.route.action&&!Ne.route.lazy){let Ar=xi(405,{method:Ve.formMethod,pathname:oe,routeId:J});sr(Y,J,Ar);return}let Xe=p.fetchers.get(Y),Ie=Tt({state:"submitting"},Ve,{data:Xe&&Xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Ie),W({fetchers:new Map(p.fetchers)});let Fe=new AbortController,et=bu(e.history,oe,Fe.signal,Ve);M.set(Y,Fe);let At=await yu("action",et,Ne,Re,n,t,a);if(et.signal.aborted){M.get(Y)===Fe&&M.delete(Y);return}if(vc(At)){M.delete(Y),Q.add(Y);let Ar=Tt({state:"loading"},Ve,{data:void 0," _hasFetcherDoneAnything ":!0});return p.fetchers.set(Y,Ar),W({fetchers:new Map(p.fetchers)}),Ct(p,At,{submission:Ve,isFetchActionRedirect:!0})}if(Qu(At)){sr(Y,J,At.error);return}if(Ps(At))throw xi(400,{type:"defer-action"});let Pn=p.navigation.location||p.location,Tn=bu(e.history,Pn,Fe.signal),xn=i||r,Vr=p.navigation.state!=="idle"?oc(xn,p.navigation.location,a):p.matches;ft(Vr,"Didn't find any matches after fetcher action");let cu=++L;Z.set(Y,cu);let Cp=Tt({state:"loading",data:At.data},Ve,{" _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Cp);let[M0,uo]=Y3(e.history,p,Vr,Ve,Pn,N,O,$,K,xn,a,{[Ne.route.id]:At.data},void 0);uo.filter(Ar=>Ar.key!==Y).forEach(Ar=>{let Rp=Ar.key,M6=p.fetchers.get(Rp),EI={state:"loading",data:M6&&M6.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Rp,EI),Ar.controller&&M.set(Rp,Ar.controller)}),W({fetchers:new Map(p.fetchers)});let L0=()=>uo.forEach(Ar=>ie(Ar.key));Fe.signal.addEventListener("abort",L0);let{results:Ap,loaderResults:Np,fetcherResults:kp}=await or(p.matches,Vr,M0,uo,Tn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",L0),Z.delete(Y),M.delete(Y),uo.forEach(Ar=>M.delete(Ar.key));let D0=tv(Ap);if(D0)return Ct(p,D0);let{loaderData:qt,errors:Kr}=Z3(p,p.matches,M0,Np,void 0,uo,kp,V),Cl={state:"idle",data:At.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Y,Cl);let Op=_e(cu);p.navigation.state==="loading"&&cu>X?(ft(v,"Expected pending action"),C&&C.abort(),te(p.navigation.location,{matches:Vr,loaderData:qt,errors:Kr,fetchers:new Map(p.fetchers)})):(W(Tt({errors:Kr,loaderData:J3(p.loaderData,qt,Vr,Kr)},Op?{fetchers:new Map(p.fetchers)}:{})),N=!1)}async function St(Y,J,oe,Ne,Re,Ve){let Xe=p.fetchers.get(Y),Ie=Tt({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ve,{data:Xe&&Xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Ie),W({fetchers:new Map(p.fetchers)});let Fe=new AbortController,et=bu(e.history,oe,Fe.signal);M.set(Y,Fe);let At=await yu("loader",et,Ne,Re,n,t,a);if(Ps(At)&&(At=await sw(At,et.signal,!0)||At),M.get(Y)===Fe&&M.delete(Y),et.signal.aborted)return;if(vc(At)){Q.add(Y),await Ct(p,At);return}if(Qu(At)){let Tn=sc(p.matches,J);p.fetchers.delete(Y),W({fetchers:new Map(p.fetchers),errors:{[Tn.route.id]:At.error}});return}ft(!Ps(At),"Unhandled fetcher deferred data");let Pn={state:"idle",data:At.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Y,Pn),W({fetchers:new Map(p.fetchers)})}async function Ct(Y,J,oe){var Ne;let{submission:Re,replace:Ve,isFetchActionRedirect:Xe}=oe===void 0?{}:oe;J.revalidate&&(N=!0);let Ie=O1(Y.location,J.location,Tt({_isRedirect:!0},Xe?{_isFetchActionRedirect:!0}:{}));if(ft(Ie,"Expected a location on the redirect navigation"),nw.test(J.location)&&rw&&typeof((Ne=window)==null?void 0:Ne.location)<"u"){let xn=e.history.createURL(J.location),Vr=Kc(xn.pathname,a)==null;if(window.location.origin!==xn.origin||Vr){Ve?window.location.replace(J.location):window.location.assign(J.location);return}}C=null;let Fe=Ve===!0?dn.Replace:dn.Push,{formMethod:et,formAction:At,formEncType:Pn,formData:Tn}=Y.navigation;!Re&&et&&At&&Tn&&Pn&&(Re={formMethod:et,formAction:At,formEncType:Pn,formData:Tn}),CD.has(J.status)&&Re&&Ma(Re.formMethod)?await Se(Fe,Ie,{submission:Tt({},Re,{formAction:J.location}),preventScrollReset:T}):Xe?await Se(Fe,Ie,{overrideNavigation:{state:"loading",location:Ie,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:Re,preventScrollReset:T}):await Se(Fe,Ie,{overrideNavigation:{state:"loading",location:Ie,formMethod:Re?Re.formMethod:void 0,formAction:Re?Re.formAction:void 0,formEncType:Re?Re.formEncType:void 0,formData:Re?Re.formData:void 0},preventScrollReset:T})}async function or(Y,J,oe,Ne,Re){let Ve=await Promise.all([...oe.map(Fe=>yu("loader",Re,Fe,J,n,t,a)),...Ne.map(Fe=>Fe.matches&&Fe.match&&Fe.controller?yu("loader",bu(e.history,Fe.path,Fe.controller.signal),Fe.match,Fe.matches,n,t,a):{type:gn.error,error:xi(404,{pathname:Fe.path})})]),Xe=Ve.slice(0,oe.length),Ie=Ve.slice(oe.length);return await Promise.all([nv(Y,oe,Xe,Xe.map(()=>Re.signal),!1,p.loaderData),nv(Y,Ne.map(Fe=>Fe.match),Ie,Ne.map(Fe=>Fe.controller?Fe.controller.signal:null),!0)]),{results:Ve,loaderResults:Xe,fetcherResults:Ie}}function en(){N=!0,O.push(...Dn()),K.forEach((Y,J)=>{M.has(J)&&($.push(J),ie(J))})}function sr(Y,J,oe){let Ne=sc(p.matches,J);j(Y),W({errors:{[Ne.route.id]:oe},fetchers:new Map(p.fetchers)})}function j(Y){M.has(Y)&&ie(Y),K.delete(Y),Z.delete(Y),Q.delete(Y),p.fetchers.delete(Y)}function ie(Y){let J=M.get(Y);ft(J,"Expected fetch controller: "+Y),J.abort(),M.delete(Y)}function ae(Y){for(let J of Y){let Ne={state:"idle",data:qe(J).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(J,Ne)}}function le(){let Y=[],J=!1;for(let oe of Q){let Ne=p.fetchers.get(oe);ft(Ne,"Expected fetcher: "+oe),Ne.state==="loading"&&(Q.delete(oe),Y.push(oe),J=!0)}return ae(Y),J}function _e(Y){let J=[];for(let[oe,Ne]of Z)if(Ne0}function ce(Y,J){let oe=p.blockers.get(Y)||W3;return ne.get(Y)!==J&&ne.set(Y,J),oe}function be(Y){p.blockers.delete(Y),ne.delete(Y)}function gt(Y,J){let oe=p.blockers.get(Y)||W3;ft(oe.state==="unblocked"&&J.state==="blocked"||oe.state==="blocked"&&J.state==="blocked"||oe.state==="blocked"&&J.state==="proceeding"||oe.state==="blocked"&&J.state==="unblocked"||oe.state==="proceeding"&&J.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+J.state),p.blockers.set(Y,J),W({blockers:new Map(p.blockers)})}function vt(Y){let{currentLocation:J,nextLocation:oe,historyAction:Ne}=Y;if(ne.size===0)return;ne.size>1&&Oc(!1,"A router only supports one blocker at a time");let Re=Array.from(ne.entries()),[Ve,Xe]=Re[Re.length-1],Ie=p.blockers.get(Ve);if(!(Ie&&Ie.state==="proceeding")&&Xe({currentLocation:J,nextLocation:oe,historyAction:Ne}))return Ve}function Dn(Y){let J=[];return V.forEach((oe,Ne)=>{(!Y||Y(Ne))&&(oe.cancel(),J.push(Ne),V.delete(Ne))}),J}function ba(Y,J,oe){if(c=Y,d=J,u=oe||(Ne=>Ne.key),!f&&p.navigation===ag){f=!0;let Ne=re(p.location,p.matches);Ne!=null&&W({restoreScrollPosition:Ne})}return()=>{c=null,d=null,u=null}}function G(Y,J){if(c&&u&&d){let oe=J.map(Re=>rv(Re,p.loaderData)),Ne=u(Y,oe)||Y.key;c[Ne]=d()}}function re(Y,J){if(c&&u&&d){let oe=J.map(Ve=>rv(Ve,p.loaderData)),Ne=u(Y,oe)||Y.key,Re=c[Ne];if(typeof Re=="number")return Re}return null}function pe(Y){n={},i=m5(Y,t,void 0,n)}return b={get basename(){return a},get state(){return p},get routes(){return r},initialize:w,subscribe:A,enableScrollRestoration:ba,navigate:P,fetch:xe,revalidate:Te,createHref:Y=>e.history.createHref(Y),encodeLocation:Y=>e.history.encodeLocation(Y),getFetcher:qe,deleteFetcher:j,dispose:D,getBlocker:ce,deleteBlocker:be,_internalFetchControllers:M,_internalActiveDeferreds:V,_internalSetRoutes:pe},b}function RD(e){return e!=null&&"formData"in e}function p5(e,t,n,r,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let u of t)if(s.push(u),u.route.id===a){l=u;break}}else s=t,l=t[t.length-1];let c=I9(i||".",um(s).map(u=>u.pathnameBase),Kc(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!L9(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:za([n,c.pathname])),Zs(c)}function q3(e,t,n,r){if(!r||!RD(r))return{path:n};if(r.formMethod&&!FD(r.formMethod))return{path:n,error:xi(405,{method:r.formMethod})};let i;if(r.formData){let s=r.formMethod||"get";if(i={formMethod:e?s.toUpperCase():s.toLowerCase(),formAction:ow(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},Ma(i.formMethod))return{path:n,submission:i}}let a=ro(n),o=aw(r.formData);return t&&a.search&&L9(a.search)&&o.append("index",""),a.search="?"+o,{path:Zs(a),submission:i}}function ID(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Y3(e,t,n,r,i,a,o,s,l,c,u,d,f){let h=f?Object.values(f)[0]:d?Object.values(d)[0]:void 0,m=e.createURL(t.location),g=e.createURL(i),b=f?Object.keys(f)[0]:void 0,v=ID(n,b).filter((C,R)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(MD(t.loaderData,t.matches[R],C)||o.some($=>$===C.route.id))return!0;let N=t.matches[R],O=C;return X3(C,Tt({currentUrl:m,currentParams:N.params,nextUrl:g,nextParams:O.params},r,{actionResult:h,defaultShouldRevalidate:a||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||iw(N,O)}))}),T=[];return l.forEach((C,R)=>{if(!n.some(M=>M.route.id===C.routeId))return;let N=oc(c,C.path,u);if(!N){T.push({key:R,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let O=g5(N,C.path);if(s.includes(R)){T.push({key:R,routeId:C.routeId,path:C.path,matches:N,match:O,controller:new AbortController});return}X3(O,Tt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:a}))&&T.push({key:R,routeId:C.routeId,path:C.path,matches:N,match:O,controller:new AbortController})}),[v,T]}function MD(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function iw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function X3(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Q3(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];ft(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Oc(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!eD.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Tt({},t(i),{lazy:void 0}))}async function yu(e,t,n,r,i,a,o,s,l,c){s===void 0&&(s=!1),l===void 0&&(l=!1);let u,d,f,h=b=>{let p,v=new Promise((T,C)=>p=C);return f=()=>p(),t.signal.addEventListener("abort",f),Promise.race([b({request:t,params:n.params,context:c}),v])};try{let b=n.route[e];if(n.route.lazy)if(b)d=(await Promise.all([h(b),Q3(n.route,a,i)]))[0];else if(await Q3(n.route,a,i),b=n.route[e],b)d=await h(b);else if(e==="action"){let p=new URL(t.url),v=p.pathname+p.search;throw xi(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:gn.data,data:void 0};else if(b)d=await h(b);else{let p=new URL(t.url),v=p.pathname+p.search;throw xi(404,{pathname:v})}ft(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=gn.error,d=b}finally{f&&t.signal.removeEventListener("abort",f)}if($D(d)){let b=d.status;if(SD.has(b)){let T=d.headers.get("Location");if(ft(T,"Redirects returned/thrown from loaders/actions must have a Location header"),!nw.test(T))T=p5(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,T);else if(!s){let C=new URL(t.url),R=T.startsWith("//")?new URL(C.protocol+T):new URL(T),N=Kc(R.pathname,o)!=null;R.origin===C.origin&&N&&(T=R.pathname+R.search+R.hash)}if(s)throw d.headers.set("Location",T),d;return{type:gn.redirect,status:b,location:T,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:u||gn.data,response:d};let p,v=d.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?p=await d.json():p=await d.text(),u===gn.error?{type:u,error:new M9(b,d.statusText,p),headers:d.headers}:{type:gn.data,data:p,statusCode:d.status,headers:d.headers}}if(u===gn.error)return{type:u,error:d};if(PD(d)){var m,g;return{type:gn.deferred,deferredData:d,statusCode:(m=d.init)==null?void 0:m.status,headers:((g=d.init)==null?void 0:g.headers)&&new Headers(d.init.headers)}}return{type:gn.data,data:d}}function bu(e,t,n,r){let i=e.createURL(ow(t)).toString(),a={signal:n};if(r&&Ma(r.formMethod)){let{formMethod:o,formEncType:s,formData:l}=r;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?aw(l):l}return new Request(i,a)}function aw(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function LD(e,t,n,r,i){let a={},o=null,s,l=!1,c={};return n.forEach((u,d)=>{let f=t[d].route.id;if(ft(!vc(u),"Cannot handle redirect results in processLoaderData"),Qu(u)){let h=sc(e,f),m=u.error;r&&(m=Object.values(r)[0],r=void 0),o=o||{},o[h.route.id]==null&&(o[h.route.id]=m),a[f]=void 0,l||(l=!0,s=ew(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Ps(u)?(i.set(f,u.deferredData),a[f]=u.deferredData.data):a[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[f]=u.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function Z3(e,t,n,r,i,a,o,s){let{loaderData:l,errors:c}=LD(t,n,r,i,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ev(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function xi(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new M9(e||500,o,new Error(s),!0)}function tv(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(vc(n))return n}}function ow(e){let t=typeof e=="string"?ro(e):e;return Zs(Tt({},t,{hash:""}))}function DD(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ps(e){return e.type===gn.deferred}function Qu(e){return e.type===gn.error}function vc(e){return(e&&e.type)===gn.redirect}function PD(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function $D(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FD(e){return wD.has(e.toLowerCase())}function Ma(e){return xD.has(e.toLowerCase())}async function nv(e,t,n,r,i,a){for(let o=0;od.route.id===l.route.id),u=c!=null&&!iw(c,l)&&(a&&a[l.route.id])!==void 0;if(Ps(s)&&(i||u)){let d=r[o];ft(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await sw(s,d,i).then(f=>{f&&(n[o]=f||n[o])})}}}async function sw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:gn.error,error:i}}return{type:gn.data,data:e.deferredData.data}}}function L9(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function rv(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function g5(e,t){let n=typeof t=="string"?ro(t).search:t.search;if(e[e.length-1].route.index&&L9(n||""))return e[e.length-1];let r=um(e);return r[r.length-1]}/** - * React Router v6.11.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Jf(){return Jf=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),o=y.useRef(!1);return uw(()=>{o.current=!0}),y.useCallback(function(l,c){if(c===void 0&&(c={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let u=I9(l,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:za([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,a,i,e])}const UD=y.createContext(null);function HD(e){let t=y.useContext(cs).outlet;return t&&y.createElement(UD.Provider,{value:e},t)}function dw(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=y.useContext(cs),{pathname:i}=ll(),a=JSON.stringify(um(r).map(o=>o.pathnameBase));return y.useMemo(()=>I9(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function jD(e,t,n){n0()||ft(!1);let{navigator:r}=y.useContext(Wc),{matches:i}=y.useContext(cs),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=ll(),c;if(t){var u;let g=typeof t=="string"?ro(t):t;s==="/"||(u=g.pathname)!=null&&u.startsWith(s)||ft(!1),c=g}else c=l;let d=c.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=oc(e,{pathname:f}),m=qD(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:za([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:za([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return t&&m?y.createElement(fm.Provider,{value:{location:Jf({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dn.Pop}},m):m}function GD(){let e=ZD(),t=ew(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,a)}const VD=y.createElement(GD,null);class KD extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?y.createElement(cs.Provider,{value:this.props.routeContext},y.createElement(cw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WD(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(dm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(cs.Provider,{value:t},r)}function qD(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ft(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,c)=>{let u=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;n&&(d=l.route.errorElement||VD);let f=t.concat(a.slice(0,c+1)),h=()=>{let m;return u?m=d:l.route.Component?m=y.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=s,y.createElement(WD,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?y.createElement(KD,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var v5;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(v5||(v5={}));var R1;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(R1||(R1={}));function YD(e){let t=y.useContext(dm);return t||ft(!1),t}function XD(e){let t=y.useContext(lw);return t||ft(!1),t}function QD(e){let t=y.useContext(cs);return t||ft(!1),t}function fw(e){let t=QD(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function ZD(){var e;let t=y.useContext(cw),n=XD(R1.UseRouteError),r=fw(R1.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function JD(){let{router:e}=YD(v5.UseNavigateStable),t=fw(R1.UseNavigateStable),n=y.useRef(!1);return uw(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Jf({fromRouteId:t},a)))},[e,t])}function eP(e){let{fallbackElement:t,router:n}=e,[r,i]=y.useState(n.state);y.useLayoutEffect(()=>n.subscribe(i),[n,i]);let a=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,c,u)=>n.navigate(l,{state:c,preventScrollReset:u==null?void 0:u.preventScrollReset}),replace:(l,c,u)=>n.navigate(l,{replace:!0,state:c,preventScrollReset:u==null?void 0:u.preventScrollReset})}),[n]),o=n.basename||"/",s=y.useMemo(()=>({router:n,navigator:a,static:!1,basename:o}),[n,a,o]);return y.createElement(y.Fragment,null,y.createElement(dm.Provider,{value:s},y.createElement(lw.Provider,{value:r},y.createElement(rP,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:a},n.state.initialized?y.createElement(tP,{routes:n.routes,state:r}):t))),null)}function tP(e){let{routes:t,state:n}=e;return jD(t,void 0,n)}function nP(e){return HD(e.context)}function rP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=dn.Pop,navigator:a,static:o=!1}=e;n0()&&ft(!1);let s=t.replace(/^\/*/,"/"),l=y.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=ro(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=r,m=y.useMemo(()=>{let g=Kc(c,s);return g==null?null:{location:{pathname:g,search:u,hash:d,state:f,key:h},navigationType:i}},[s,c,u,d,f,h,i]);return m==null?null:y.createElement(Wc.Provider,{value:l},y.createElement(fm.Provider,{children:n,value:m}))}var iv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(iv||(iv={}));new Promise(()=>{});function iP(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.11.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function oP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sP(e,t){return e.button===0&&(!t||t==="_self")&&!oP(e)}function y5(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function lP(e,t){let n=y5(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(i=>{n.append(r,i)});return n}const cP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function uP(e,t){return OD({basename:t==null?void 0:t.basename,future:I1({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:QL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dP(),routes:e,mapRouteProperties:iP}).initialize()}function dP(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=I1({},t,{errors:fP(t.errors)})),t}function fP(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new M9(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",n[r]=a}else n[r]=i;return n}const hP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eh=y.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u}=t,d=aP(t,cP),{basename:f}=y.useContext(Wc),h,m=!1;if(typeof c=="string"&&mP.test(c)&&(h=c,hP))try{let v=new URL(window.location.href),T=c.startsWith("//")?new URL(v.protocol+c):new URL(c),C=Kc(T.pathname,f);T.origin===v.origin&&C!=null?c=C+T.search+T.hash:m=!0}catch{}let g=BD(c,{relative:i}),b=pP(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i});function p(v){r&&r(v),v.defaultPrevented||b(v)}return y.createElement("a",I1({},d,{href:h||g,onClick:m||a?r:p,ref:n,target:l}))});var av;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(av||(av={}));var ov;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ov||(ov={}));function pP(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=Hr(),l=ll(),c=dw(e,{relative:o});return y.useCallback(u=>{if(sP(u,n)){u.preventDefault();let d=r!==void 0?r:Zs(l)===Zs(c);s(e,{replace:d,state:i,preventScrollReset:a,relative:o})}},[l,s,c,r,i,n,e,a,o])}function hw(e){let t=y.useRef(y5(e)),n=y.useRef(!1),r=ll(),i=y.useMemo(()=>lP(r.search,n.current?null:t.current),[r.search]),a=Hr(),o=y.useCallback((s,l)=>{const c=y5(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}let gP={data:""},vP=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||gP,yP=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bP=/\/\*[^]*?\*\/| +/g,sv=/\n+/g,Ro=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Ro(o,a):a+"{"+Ro(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Ro(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ro.p?Ro.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ea={},mw=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+mw(e[n]);return t}return e},EP=(e,t,n,r,i)=>{let a=mw(e),o=Ea[a]||(Ea[a]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(a));if(!Ea[o]){let l=a!==e?e:(c=>{let u,d,f=[{}];for(;u=yP.exec(c.replace(bP,""));)u[4]?f.shift():u[3]?(d=u[3].replace(sv," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(sv," ").trim();return f[0]})(e);Ea[o]=Ro(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&Ea.g?Ea.g:null;return n&&(Ea.g=Ea[o]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Ea[o],t,r,s),o},TP=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Ro(s,""):s===!1?"":s}return r+i+(o??"")},"");function hm(e){let t=this||{},n=e.call?e(t.p):e;return EP(n.unshift?n.raw?TP(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,vP(t.target),t.g,t.o,t.k)}let pw,b5,E5;hm.bind({g:1});let Ya=hm.bind({k:1});function xP(e,t,n,r){Ro.p=t,pw=e,b5=n,E5=r}function us(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:b5&&b5()},s),n.o=/ *go\d+/.test(l),s.className=hm.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let c=e;return e[0]&&(c=s.as||e,delete s.as),E5&&c[0]&&E5(s),pw(c,s)}return t?t(i):i}}var _P=e=>typeof e=="function",th=(e,t)=>_P(e)?e(t):e,wP=(()=>{let e=0;return()=>(++e).toString()})(),gw=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),SP=20,rf=new Map,CP=1e3,lv=e=>{if(rf.has(e))return;let t=setTimeout(()=>{rf.delete(e),cl({type:4,toastId:e})},CP);rf.set(e,t)},AP=e=>{let t=rf.get(e);t&&clearTimeout(t)},T5=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,SP)};case 1:return t.toast.id&&AP(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?T5(e,{type:1,toast:n}):T5(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?lv(r):e.toasts.forEach(a=>{lv(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},af=[],of={toasts:[],pausedAt:void 0},cl=e=>{of=T5(of,e),af.forEach(t=>{t(of)})},NP={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},kP=(e={})=>{let[t,n]=y.useState(of);y.useEffect(()=>(af.push(n),()=>{let i=af.indexOf(n);i>-1&&af.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||NP[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},OP=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||wP()}),r0=e=>(t,n)=>{let r=OP(t,e,n);return cl({type:2,toast:r}),r.id},vr=(e,t)=>r0("blank")(e,t);vr.error=r0("error");vr.success=r0("success");vr.loading=r0("loading");vr.custom=r0("custom");vr.dismiss=e=>{cl({type:3,toastId:e})};vr.remove=e=>cl({type:4,toastId:e});vr.promise=(e,t,n)=>{let r=vr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(vr.success(th(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{vr.error(th(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var RP=(e,t)=>{cl({type:1,toast:{id:e,height:t}})},IP=()=>{cl({type:5,time:Date.now()})},MP=e=>{let{toasts:t,pausedAt:n}=kP(e);y.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&vr.dismiss(s.id);return}return setTimeout(()=>vr.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=y.useCallback(()=>{n&&cl({type:6,time:Date.now()})},[n]),i=y.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=o||{},u=t.filter(h=>(h.position||c)===(a.position||c)&&h.height),d=u.findIndex(h=>h.id===a.id),f=u.filter((h,m)=>mh.visible).slice(...s?[f+1]:[0,f]).reduce((h,m)=>h+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:RP,startPause:IP,endPause:r,calculateOffset:i}}},LP=Ya` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,DP=Ya` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,PP=Ya` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,$P=us("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${LP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${DP} 0.15s ease-out forwards; - animation-delay: 150ms; - position: absolute; - border-radius: 3px; - opacity: 0; - background: ${e=>e.secondary||"#fff"}; - bottom: 9px; - left: 4px; - height: 2px; - width: 12px; - } - - &:before { - animation: ${PP} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,FP=Ya` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,BP=us("div")` - width: 12px; - height: 12px; - box-sizing: border-box; - border: 2px solid; - border-radius: 100%; - border-color: ${e=>e.secondary||"#e0e0e0"}; - border-right-color: ${e=>e.primary||"#616161"}; - animation: ${FP} 1s linear infinite; -`,zP=Ya` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,UP=Ya` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,HP=us("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${zP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${UP} 0.2s ease-out forwards; - opacity: 0; - animation-delay: 200ms; - position: absolute; - border-right: 2px solid; - border-bottom: 2px solid; - border-color: ${e=>e.secondary||"#fff"}; - bottom: 6px; - left: 6px; - height: 10px; - width: 6px; - } -`,jP=us("div")` - position: absolute; -`,GP=us("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,VP=Ya` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,KP=us("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${VP} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,WP=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?y.createElement(KP,null,t):t:n==="blank"?null:y.createElement(GP,null,y.createElement(BP,{...r}),n!=="loading"&&y.createElement(jP,null,n==="error"?y.createElement($P,{...r}):y.createElement(HP,{...r})))},qP=e=>` -0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} -100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,YP=e=>` -0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} -100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} -`,XP="0%{opacity:0;} 100%{opacity:1;}",QP="0%{opacity:1;} 100%{opacity:0;}",ZP=us("div")` - display: flex; - align-items: center; - background: #fff; - color: #363636; - line-height: 1.3; - will-change: transform; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); - max-width: 350px; - pointer-events: auto; - padding: 8px 10px; - border-radius: 8px; -`,JP=us("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,e$=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=gw()?[XP,QP]:[qP(n),YP(n)];return{animation:t?`${Ya(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ya(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},t$=y.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?e$(e.position||t||"top-center",e.visible):{opacity:0},a=y.createElement(WP,{toast:e}),o=y.createElement(JP,{...e.ariaProps},th(e.message,e));return y.createElement(ZP,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):y.createElement(y.Fragment,null,a,o))});xP(y.createElement);var n$=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=y.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return y.createElement("div",{ref:a,className:t,style:n},i)},r$=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:gw()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},i$=hm` - z-index: 9999; - > * { - pointer-events: auto; - } -`,J0=16,a$=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=MP(n);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:J0,left:J0,right:J0,bottom:J0,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let u=c.position||t,d=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),f=r$(u,d);return y.createElement(n$,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?i$:"",style:f},c.type==="custom"?th(c.message,c):i?i(c):y.createElement(t$,{toast:c,position:u}))}))},hn=vr;function $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o$(e,t){if($r(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($r(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vw(e){var t=o$(e,"string");return $r(t)==="symbol"?t:String(t)}function cv(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};Di(this,e),this.init(t,n)}return Pi(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||c$,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),a=1;a-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function mv(e,t,n){var r=D9(e,t,Object),i=r.obj,a=r.k;i[a]=n}function f$(e,t,n,r){var i=D9(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function nh(e,t){var n=D9(e,t),r=n.obj,i=n.k;if(r)return r[i]}function h$(e,t,n){var r=nh(e,n);return r!==void 0?r:nh(t,n)}function Tw(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Tw(e[r],t[r],n):e[r]=t[r]);return e}function Nl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m$={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function p$(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return m$[t]}):e}var pm=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,g$=[" ",",","?","!",";"];function v$(e,t,n){t=t||"",n=n||"";var r=g$.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function rh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;aa+o;)o++,s=r.slice(a,a+o).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(a+o).join(n);return c?rh(l,c,n):void 0}i=i[r[a]]}return i}}function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var E$=function(e){mm(n,e);var t=y$(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Di(this,n),i=t.call(this),pm&&Qo.call(Vo(i)),i.data=r||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Pi(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[i,a];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(l?o.split(l):o)),i.indexOf(".")>-1&&(u=i.split("."));var d=nh(this.data,u);return d||!c||typeof o!="string"?d:rh(this.data&&this.data[i]&&this.data[i][a],o,l)}},{key:"addResource",value:function(i,a,o,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[i,a];o&&(u=u.concat(c?o.split(c):o)),i.indexOf(".")>-1&&(u=i.split("."),s=a,a=u[1]),this.addNamespaces(a),mv(this.data,u,s),l.silent||this.emit("added",i,a,o,s)}},{key:"addResources",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in o)(typeof o[l]=="string"||Object.prototype.toString.apply(o[l])==="[object Array]")&&this.addResource(i,a,l,o[l],{silent:!0});s.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[i,a];i.indexOf(".")>-1&&(u=i.split("."),s=o,o=a,a=u[1]),this.addNamespaces(a);var d=nh(this.data,u)||{};s?Tw(d,o,l):d=ed(ed({},d),o),mv(this.data,u,d),c.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ed(ed({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Qo),xw={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,a){var o=this;return t.forEach(function(s){o.processors[s]&&(n=o.processors[s].process(n,r,i,a))}),n}};function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var vv={},yv=function(e){mm(n,e);var t=T$(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Di(this,n),i=t.call(this),pm&&Qo.call(Vo(i)),d$(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Vo(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ji.create("translator"),i}return Pi(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=a.ns||this.options.defaultNS||[],c=o&&i.indexOf(o)>-1,u=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!v$(i,o,s);if(c&&!u){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(o);(o!==s||o===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,a,o){var s=this;if($r(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),$r(a)==="object"&&(a=Bn({},a)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=this.extractFromKey(i[i.length-1],a),d=u.key,f=u.namespaces,h=f[f.length-1],m=a.lng||this.language,g=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(g){var b=a.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(h).concat(b).concat(d),usedKey:d,exactUsedKey:d,usedLng:m,usedNS:h}:"".concat(h).concat(b).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:m,usedNS:h}:d}var p=this.resolve(i,a),v=p&&p.res,T=p&&p.usedKey||d,C=p&&p.exactUsedKey||d,R=Object.prototype.toString.apply(v),N=["[object Number]","[object Function]","[object RegExp]"],O=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,M=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if($&&v&&M&&N.indexOf(R)<0&&!(typeof O=="string"&&R==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,v,Bn(Bn({},a),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(p.res=L,p):L}if(c){var X=R==="[object Array]",Z=X?[]:{},Q=X?C:T;for(var K in v)if(Object.prototype.hasOwnProperty.call(v,K)){var V="".concat(Q).concat(c).concat(K);Z[K]=this.translate(V,Bn(Bn({},a),{joinArrays:!1,ns:f})),Z[K]===V&&(Z[K]=v[K])}v=Z}}else if($&&typeof O=="string"&&R==="[object Array]")v=v.join(O),v&&(v=this.extendTranslation(v,i,a,o));else{var ne=!1,B=!1,w=a.count!==void 0&&typeof a.count!="string",D=n.hasDefaultValue(a),A=w?this.pluralResolver.getSuffix(m,a.count,a):"",W=a["defaultValue".concat(A)]||a.defaultValue;!this.isValidLookup(v)&&D&&(ne=!0,v=W),this.isValidLookup(v)||(B=!0,v=d);var te=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,P=te&&B?void 0:v,Te=D&&W!==v&&this.options.updateMissing;if(B||ne||Te){if(this.logger.log(Te?"updateKey":"missingKey",m,h,d,Te?W:v),c){var Se=this.resolve(d,Bn(Bn({},a),{},{keySeparator:!1}));Se&&Se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ce=[],Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(var qe=0;qe1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!a.isValidLookup(s)){var h=a.extractFromKey(f,o),m=h.key;l=m;var g=h.namespaces;a.options.fallbackNS&&(g=g.concat(a.options.fallbackNS));var b=o.count!==void 0&&typeof o.count!="string",p=b&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),v=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",T=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);g.forEach(function(C){a.isValidLookup(s)||(d=C,!vv["".concat(T[0],"-").concat(C)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(d)&&(vv["".concat(T[0],"-").concat(C)]=!0,a.logger.warn('key "'.concat(l,'" for languages "').concat(T.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(function(R){if(!a.isValidLookup(s)){u=R;var N=[m];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(N,m,R,C,o);else{var O;b&&(O=a.pluralResolver.getSuffix(R,o.count,o));var $="".concat(a.options.pluralSeparator,"zero");if(b&&(N.push(m+O),p&&N.push(m+$)),v){var M="".concat(m).concat(a.options.contextSeparator).concat(o.context);N.push(M),b&&(N.push(M+O),p&&N.push(M+$))}}for(var L;L=N.pop();)a.isValidLookup(s)||(c=L,s=a.getResource(R,C,L,o))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,s):this.resourceStore.getResource(i,a,o,s)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),n}(Qo);function og(e){return e.charAt(0).toUpperCase()+e.slice(1)}var bv=function(){function e(t){Di(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ji.create("languageUtils")}return Pi(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=og(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=og(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=og(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(a){if(!i){var o=r.formatLanguageCode(a);(!r.options.supportedLngs||r.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&n.forEach(function(a){if(!i){var o=r.getLanguagePartFromCode(a);if(r.isSupportedCode(o))return i=o;i=r.options.supportedLngs.find(function(s){if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&s.indexOf(o)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],n),o=[],s=function(c){c&&(i.isSupportedCode(c)?o.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),a.forEach(function(l){o.indexOf(l)<0&&s(i.formatLanguageCode(l))}),o}}]),e}(),_$=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],w$={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},S$=["v1","v2","v3"],Ev={zero:0,one:1,two:2,few:3,many:4,other:5};function C$(){var e={};return _$.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:w$[t.fc]}})}),e}var A$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Di(this,e),this.languageUtils=t,this.options=n,this.logger=Ji.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=C$()}return Pi(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(a){return"".concat(r).concat(a)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return Ev[o]-Ev[s]}).map(function(o){return"".concat(r.options.prepend).concat(o)}):a.numbers.map(function(o){return r.getSuffix(n,o,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,a=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!S$.includes(this.options.compatibilityJSON)}}]),e}();function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=h$(e,t,n);return!a&&i&&typeof n=="string"&&(a=rh(e,n,r),a===void 0&&(a=rh(t,n,r))),a}var N$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Di(this,e),this.logger=Ji.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Pi(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:p$,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Nl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Nl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Nl(r.nestingPrefix):r.nestingPrefixEscaped||Nl("$t("),this.nestingSuffix=r.nestingSuffix?Nl(r.nestingSuffix):r.nestingSuffixEscaped||Nl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,a){var o=this,s,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(b){return b.replace(/\$/g,"$$$$")}var f=function(p){if(p.indexOf(o.formatSeparator)<0){var v=xv(r,u,p,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(v,void 0,i,gi(gi(gi({},a),r),{},{interpolationkey:p})):v}var T=p.split(o.formatSeparator),C=T.shift().trim(),R=T.join(o.formatSeparator).trim();return o.format(xv(r,u,C,o.options.keySeparator,o.options.ignoreJSONStructure),R,i,gi(gi(gi({},a),r),{},{interpolationkey:C}))};this.resetRegExp();var h=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(p){return d(p)}},{regex:this.regexp,safeValue:function(p){return o.escapeValue?d(o.escape(p)):d(p)}}];return g.forEach(function(b){for(c=0;s=b.regex.exec(n);){var p=s[1].trim();if(l=f(p),l===void 0)if(typeof h=="function"){var v=h(n,s,a);l=typeof v=="string"?v:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))l="";else if(m){l=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(n)),l="";else typeof l!="string"&&!o.useRawValueToEscape&&(l=hv(l));var T=b.safeValue(l);if(n=n.replace(s[0],T),m?(b.regex.lastIndex+=l.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function c(h,m){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var b=h.split(new RegExp("".concat(g,"[ ]*{"))),p="{".concat(b[1]);h=b[0],p=this.interpolate(p,l);var v=p.match(/'/g),T=p.match(/"/g);(v&&v.length%2===0&&!T||T.length%2!==0)&&(p=p.replace(/'/g,'"'));try{l=JSON.parse(p),m&&(l=gi(gi({},m),l))}catch(C){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),C),"".concat(h).concat(g).concat(p)}return delete l.defaultValue,h}for(;o=this.nestingRegexp.exec(n);){var u=[];l=gi({},a),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map(function(h){return h.trim()});o[1]=f.shift(),u=f,d=!0}if(s=r(c.call(this,o[1].trim(),l),l),s&&o[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=hv(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),s=""),d&&(s=u.reduce(function(h,m){return i.format(h,m,a.lng,gi(gi({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),n=n.replace(o[0],s),this.regexp.lastIndex=0}return n}}]),e}();function _v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(o){var s=o.split(":"),l=l$(s),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function kl(e){var t={};return function(r,i,a){var o=i+JSON.stringify(a),s=t[o];return s||(s=e(i,a),t[o]=s),s(r)}}var O$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Di(this,e),this.logger=Ji.create("formatter"),this.options=t,this.formats={number:kl(function(n,r){var i=new Intl.NumberFormat(n,Ta({},r));return function(a){return i.format(a)}}),currency:kl(function(n,r){var i=new Intl.NumberFormat(n,Ta(Ta({},r),{},{style:"currency"}));return function(a){return i.format(a)}}),datetime:kl(function(n,r){var i=new Intl.DateTimeFormat(n,Ta({},r));return function(a){return i.format(a)}}),relativetime:kl(function(n,r){var i=new Intl.RelativeTimeFormat(n,Ta({},r));return function(a){return i.format(a,r.range||"day")}}),list:kl(function(n,r){var i=new Intl.ListFormat(n,Ta({},r));return function(a){return i.format(a)}})},this.init(t)}return Pi(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=kl(r)}},{key:"format",value:function(n,r,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,u){var d=k$(u),f=d.formatName,h=d.formatOptions;if(a.formats[f]){var m=c;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=g.locale||g.lng||o.locale||o.lng||i;m=a.formats[f](c,b,Ta(Ta(Ta({},h),o),g))}catch(p){a.logger.warn(p)}return m}else a.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M$(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var L$=function(e){mm(n,e);var t=R$(n);function n(r,i,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Di(this,n),o=t.call(this),pm&&Qo.call(Vo(o)),o.backend=r,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=Ji.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return Pi(n,[{key:"queueLoad",value:function(i,a,o,s){var l=this,c={},u={},d={},f={};return i.forEach(function(h){var m=!0;a.forEach(function(g){var b="".concat(h,"|").concat(g);!o.reload&&l.store.hasResourceBundle(h,g)?l.state[b]=2:l.state[b]<0||(l.state[b]===1?u[b]===void 0&&(u[b]=!0):(l.state[b]=1,m=!1,u[b]===void 0&&(u[b]=!0),c[b]===void 0&&(c[b]=!0),f[g]===void 0&&(f[g]=!0)))}),m||(d[h]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,a,o){var s=i.split("|"),l=s[0],c=s[1];a&&this.emit("failedLoading",l,c,a),o&&this.store.addResourceBundle(l,c,o),this.state[i]=a?-1:2;var u={};this.queue.forEach(function(d){f$(d.loaded,[l],c),M$(d,i),a&&d.errors.push(a),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){u[f]||(u[f]={});var h=d.loaded[f];h.length&&h.forEach(function(m){u[f][m]===void 0&&(u[f][m]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,a,o){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!i.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(g,b){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(g&&b&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var c=this.queueLoad(i,a,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&a.logger.warn("".concat(o,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&a.logger.log("".concat(o,"loaded namespace ").concat(c," for language ").concat(l),d),a.loaded(i,u,d)})}},{key:"saveMissing",value:function(i,a,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var d=Sv(Sv({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var h;f.length===5?h=f(i,a,o,s,d):h=f(i,a,o,s),h&&typeof h.then=="function"?h.then(function(m){return u(null,m)}).catch(u):u(null,h)}catch(m){u(m)}else f(i,a,o,s,u,d)}!i||!i[0]||this.store.addResource(i[0],a,o,s)}}}]),n}(Qo);function Cv(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if($r(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),$r(t[2])==="object"||$r(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Av(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function td(){}function $$(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var ih=function(e){mm(n,e);var t=D$(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Di(this,n),r=t.call(this),pm&&Qo.call(Vo(r)),r.options=Av(i),r.services={},r.logger=Ji,r.modules={external:[]},$$(Vo(r)),a&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,a),i0(r,Vo(r));setTimeout(function(){r.init(i,a)},0)}return r}return Pi(n,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=Cv();this.options=ji(ji(ji({},s),this.options),Av(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ji(ji({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function l(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Ji.init(l(this.modules.logger),this.options):Ji.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=O$);var u=new bv(this.options);this.store=new E$(this.options.resources,this.options);var d=this.services;d.logger=Ji,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new A$(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new N$(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new L$(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){for(var v=arguments.length,T=new Array(v>1?v-1:0),C=1;C1?v-1:0),C=1;C0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(p){i[p]=function(){var v;return(v=i.store)[p].apply(v,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(p){i[p]=function(){var v;return(v=i.store)[p].apply(v,arguments),i}});var g=Eu(),b=function(){var v=function(C,R){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(R),o(C,R)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return v(null,i.t.bind(i));i.changeLanguage(i.options.lng,v)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),g}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:td,s=o,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=function(h){if(h){var m=a.services.languageUtils.toResolveHierarchy(h);m.forEach(function(g){c.indexOf(g)<0&&c.push(g)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,a,o){var s=Eu();return i||(i=this.languages),a||(a=this.options.ns),o||(o=td),this.services.backendConnector.reload(i,a,function(l){s.resolve(),o(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&xw.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var s=Eu();this.emit("languageChanging",i);var l=function(f){o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.resolvedLanguage=void 0,o.setResolvedLanguage(f)},c=function(f,h){h?(l(h),o.translator.changeLanguage(h),o.isLanguageChangingTo=void 0,o.emit("languageChanged",h),o.logger.log("languageChanged",h)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(f,function(){return o.t.apply(o,arguments)})},u=function(f){!i&&!f&&o.services.languageDetector&&(f=[]);var h=typeof f=="string"?f:o.services.languageUtils.getBestMatchFromCodes(f);h&&(o.language||l(h),o.translator.language||o.translator.changeLanguage(h),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(h)),o.loadResources(h,function(m){c(m,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(i),s}},{key:"getFixedT",value:function(i,a,o){var s=this,l=function c(u,d){var f;if($r(d)!=="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=o.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=function(h,m){var g=a.services.backendConnector.state["".concat(h,"|").concat(m)];return g===-1||g===2};if(o.precheck){var d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(s,i)&&(!l||u(c,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,s=Eu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),a&&a(l)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=Eu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){o.resolve(),a&&a(c)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new bv(Cv());return a.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:td,s=ji(ji(ji({},this.options),a),{isClone:!0}),l=new n(s);(a.debug!==void 0||a.prefix!==void 0)&&(l.logger=l.logger.clone(a));var c=["store","services","language"];return c.forEach(function(u){l[u]=i[u]}),l.services=ji({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new yv(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ih(e,t)});var qn=ih.createInstance();qn.createInstance=ih.createInstance;qn.createInstance;qn.dir;qn.init;qn.loadResources;qn.reloadResources;qn.use;qn.changeLanguage;qn.getFixedT;qn.t;qn.exists;qn.setDefaultNamespace;qn.hasLoadedNamespace;qn.loadNamespaces;qn.loadLanguages;function F$(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(l,c){var u=t.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function z$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return _5("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):B$(e,t,n)}var U$=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,H$={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},j$=function(t){return H$[t]},G$=function(t){return t.replace(U$,j$)};function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mv(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};w5=Mv(Mv({},w5),e)}function K$(){return w5}var ww;function W$(e){ww=e}function q$(){return ww}var Y$={type:"3rdParty",init:function(t){V$(t.options.react),W$(t)}},X$=y.createContext(),Q$=function(){function e(){Di(this,e),this.usedNamespaces={}}return Pi(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Z$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function J$(e,t){return yw(e)||Z$(e,t)||bw(e,t)||Ew()}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sg(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=y.useContext(X$)||{},i=r.i18n,a=r.defaultNS,o=n||i||q$();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Q$),!o){_5("You will need to pass in an i18next instance by using initReactI18next");var s=function(M,L){return typeof L=="string"?L:L&&$r(L)==="object"&&typeof L.defaultValue=="string"?L.defaultValue:Array.isArray(M)?M[M.length-1]:M},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}o.options.react&&o.options.react.wait!==void 0&&_5("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=sg(sg(sg({},K$()),o.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=e||a||o.options&&o.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(f);var h=(o.isInitialized||o.initializedStoreOnce)&&f.every(function($){return z$($,o,c)});function m(){return o.getFixedT(t.lng||null,c.nsMode==="fallback"?f:f[0],d)}var g=y.useState(m),b=J$(g,2),p=b[0],v=b[1],T=f.join();t.lng&&(T="".concat(t.lng).concat(T));var C=eF(T),R=y.useRef(!0);y.useEffect(function(){var $=c.bindI18n,M=c.bindI18nStore;R.current=!0,!h&&!u&&(t.lng?Rv(o,t.lng,f,function(){R.current&&v(m)}):Ov(o,f,function(){R.current&&v(m)})),h&&C&&C!==T&&R.current&&v(m);function L(){R.current&&v(m)}return $&&o&&o.on($,L),M&&o&&o.store.on(M,L),function(){R.current=!1,$&&o&&$.split(" ").forEach(function(X){return o.off(X,L)}),M&&o&&M.split(" ").forEach(function(X){return o.store.off(X,L)})}},[o,T]);var N=y.useRef(!0);y.useEffect(function(){R.current&&!N.current&&v(m),N.current=!1},[o,d]);var O=[p,o,h];if(O.t=p,O.i18n=o,O.ready=h,h||!h&&!u)return O;throw new Promise(function($){t.lng?Rv(o,t.lng,f,function(){return $()}):Ov(o,f,function(){return $()})})}const tF="English",nF="Chinese",rF="Dark",iF="Light",aF="System",oF="role",sF={en:tF,zh:nF,dark:rF,light:iF,system:aF,"user center":"User Center","billing center":"Billing Center","new conversation":"new conversation",role:oF,"valid times":"valid times"},lF="英文",cF="中文",uF="暗黑模式",dF="亮色模式",fF="跟随系统",hF="角色",mF={en:lF,zh:cF,dark:uF,light:dF,system:fF,"user center":"个人中心","billing center":"充值中心","new conversation":"新话题",role:hF,"valid times":"有效次数"},pF={en:{translation:sF},zh:{translation:mF}};qn.use(Y$).init({resources:pF,lng:"zh",interpolation:{escapeValue:!1}});var yr=(e=>(e.Config="app-config",e.User="app-user",e.Chat="app-chat",e.AccessToken="app-access-token",e.ShareOpenId="app-share-open-id",e))(yr||{}),sf=(e=>(e.WEIXIN_WEB="weixinweb",e.WEIXIN="weixin",e))(sf||{}),gF={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const vF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vt=(e,t)=>{const n=y.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,children:s,...l},c)=>y.createElement("svg",{ref:c,...gF,width:i,height:i,stroke:r,strokeWidth:o?Number(a)*24/Number(i):a,className:`lucide lucide-${vF(e)}`,...l},[...t.map(([u,d])=>y.createElement(u,d)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},yF=Vt("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]),Dv=Vt("CheckCircle2",[["path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z",key:"14v8dr"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),P9=Vt("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),bF=Vt("ChevronRight",[["polyline",{points:"9 18 15 12 9 6",key:"1rtp27"}]]),Sw=Vt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Cw=Vt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),EF=Vt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Aw=Vt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),TF=Vt("Edit2",[["path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z",key:"2s2c1q"}]]),Nw=Vt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),xF=Vt("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]),qc=Vt("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),kw=Vt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),_F=Vt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Ow=Vt("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),wF=Vt("PauseOctagon",[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M7.714 2h8.572L22 7.714v8.572L16.286 22H7.714L2 16.286V7.714L7.714 2z",key:"1m7qra"}]]),SF=Vt("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"16",key:"10p56q"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),CF=Vt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),AF=Vt("Send",[["line",{x1:"22",x2:"11",y1:"2",y2:"13",key:"2qtwb"}],["polygon",{points:"22 2 15 22 11 13 2 9 22 2",key:"12uapv"}]]),NF=Vt("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),kF=Vt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Rw=Vt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),OF=Vt("UserPlus2",[["path",{d:"M14 19a6 6 0 0 0-12 0",key:"vej9p1"}],["circle",{cx:"8",cy:"9",r:"4",key:"143rtg"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),RF=Vt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),gm=Vt("X",[["line",{x1:"18",x2:"6",y1:"6",y2:"18",key:"15jfxm"}],["line",{x1:"6",x2:"18",y1:"6",y2:"18",key:"d1lma3"}]]),Pv=e=>{let t;const n=new Set,r=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const d=t;t=c??typeof u!="object"?u:Object.assign({},t,u),n.forEach(f=>f(t,d))}},i=()=>t,s={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,s),s},IF=e=>e?Pv(e):Pv;var Iw={exports:{}},Mw={},Lw={exports:{}},Dw={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rc=y;function MF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var LF=typeof Object.is=="function"?Object.is:MF,DF=Rc.useState,PF=Rc.useEffect,$F=Rc.useLayoutEffect,FF=Rc.useDebugValue;function BF(e,t){var n=t(),r=DF({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return $F(function(){i.value=n,i.getSnapshot=t,lg(i)&&a({inst:i})},[e,n,t]),PF(function(){return lg(i)&&a({inst:i}),e(function(){lg(i)&&a({inst:i})})},[e]),FF(n),n}function lg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!LF(e,n)}catch{return!0}}function zF(e,t){return t()}var UF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zF:BF;Dw.useSyncExternalStore=Rc.useSyncExternalStore!==void 0?Rc.useSyncExternalStore:UF;Lw.exports=Dw;var HF=Lw.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var vm=y,jF=HF;function GF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var VF=typeof Object.is=="function"?Object.is:GF,KF=jF.useSyncExternalStore,WF=vm.useRef,qF=vm.useEffect,YF=vm.useMemo,XF=vm.useDebugValue;Mw.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=WF(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=YF(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return d=m}return d=h}if(m=d,VF(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,d=g)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=KF(e,a[0],a[1]);return qF(function(){o.hasValue=!0,o.value=s},[s]),XF(s),s};Iw.exports=Mw;var QF=Iw.exports;const ZF=wr(QF),{useSyncExternalStoreWithSelector:JF}=ZF;function eB(e,t=e.getState,n){const r=JF(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return y.useDebugValue(r),r}const $v=e=>{({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?IF(e):e,n=(r,i)=>eB(t,r,i);return Object.assign(n,t),n},ym=e=>e?$v(e):$v;function tB(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,t==null?void 0:t.reviver),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,t==null?void 0:t.replacer)),removeItem:i=>n.removeItem(i)}}const M1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return M1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return M1(r)(n)}}}},nB=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,p)=>({...p,...b}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,i);const u=M1(a.serialize),d=()=>{const b=a.partialize({...r()});let p;const v=u({state:b,version:a.version}).then(T=>c.setItem(a.name,T)).catch(T=>{p=T});if(p)throw p;return v},f=i.setState;i.setState=(b,p)=>{f(b,p),d()};const h=e((...b)=>{n(...b),d()},r,i);let m;const g=()=>{var b;if(!c)return;o=!1,s.forEach(v=>v(r()));const p=((b=a.onRehydrateStorage)==null?void 0:b.call(a,r()))||void 0;return M1(c.getItem.bind(c))(a.name).then(v=>{if(v)return a.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var T;return m=a.merge(v,(T=r())!=null?T:h),n(m,!0),d()}).then(()=>{p==null||p(m,void 0),o=!0,l.forEach(v=>v(m))}).catch(v=>{p==null||p(void 0,v)})};return i.persist={setOptions:b=>{a={...a,...b},b.getStorage&&(c=b.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:b=>(s.add(b),()=>{s.delete(b)}),onFinishHydration:b=>(l.add(b),()=>{l.delete(b)})},g(),m||h},rB=(e,t)=>(n,r,i)=>{let a={storage:tB(()=>localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},d=i.setState;i.setState=(g,b)=>{d(g,b),u()};const f=e((...g)=>{n(...g),u()},r,i);let h;const m=()=>{var g,b;if(!c)return;o=!1,s.forEach(v=>{var T;return v((T=r())!=null?T:f)});const p=((b=a.onRehydrateStorage)==null?void 0:b.call(a,(g=r())!=null?g:f))||void 0;return M1(c.getItem.bind(c))(a.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var T;return h=a.merge(v,(T=r())!=null?T:f),n(h,!0),u()}).then(()=>{p==null||p(h,void 0),h=r(),o=!0,l.forEach(v=>v(h))}).catch(v=>{p==null||p(void 0,v)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||f},iB=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),nB(e,t)):rB(e,t),$9=iB,Pw="/api",Rt=async(e,t={})=>{const n=localStorage.getItem(yr.AccessToken);t.headers={"Content-Type":"application/json",Authorization:`Bearer ${n}`};const r=await fetch(`${Pw}/${e}`,t);if(r.status>=200&&r.status<=300){const i=await r.json();if(i.err_code>0)throw i.err_msg;return i.data}};var Ao=(e=>(e.PASSWORD="1",e.WECHAT="2",e.PHONE="3",e.WECHAT_AND_PHONE="4",e))(Ao||{}),$w=(e=>(e.OFFLINE="offline",e.WECHAT="wechat",e))($w||{});const js={getConfigAgreement(){return Rt("config/agreement")},getAppConfig(){return Rt("config/basic-info")},getLoginType(){return Rt("config/login-type")},getJsSDK(e){return Rt(`wechat/jssdk?url=${encodeURIComponent(e)}`)},getShareConfig(){return Rt("config/share")},getPaymentConfig(){return Rt("config/payment")}};var Ss=(e=>(e.DARK="dark",e.LIGHT="light",e.SYSTEM="system",e))(Ss||{});const aB={theme:"system",language:"zh",loginType:Ao.WECHAT,appConfig:Object.create(null)},$i=ym()($9(e=>({...aB,setTheme:t=>{const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t==="dark"||t==="system"&&n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),e({theme:t})},setLanguage:t=>e({language:t}),setLoginType:t=>e({loginType:t}),setAppConfig:t=>e({appConfig:t,loginType:t.login_type})}),{name:yr.Config})),Fv={access_token:"",userInfo:{nickname:"",avatar:"",identity:[],openid:""}},Fi=ym()($9(e=>({...Fv,setUserInfo:t=>e({userInfo:t}),setAccessToken:t=>{localStorage.setItem(yr.AccessToken,t),e({access_token:t})},signOut(){e({...Fv}),localStorage.removeItem(yr.AccessToken)},isLogin(){return!!localStorage.getItem(yr.AccessToken)}}),{name:yr.User}));let nd;const oB=new Uint8Array(16);function sB(){if(!nd&&(nd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nd(oB)}const Nn=[];for(let e=0;e<256;++e)Nn.push((e+256).toString(16).slice(1));function lB(e,t=0){return(Nn[e[t+0]]+Nn[e[t+1]]+Nn[e[t+2]]+Nn[e[t+3]]+"-"+Nn[e[t+4]]+Nn[e[t+5]]+"-"+Nn[e[t+6]]+Nn[e[t+7]]+"-"+Nn[e[t+8]]+Nn[e[t+9]]+"-"+Nn[e[t+10]]+Nn[e[t+11]]+Nn[e[t+12]]+Nn[e[t+13]]+Nn[e[t+14]]+Nn[e[t+15]]).toLowerCase()}const cB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bv={randomUUID:cB};function Cs(e,t,n){if(Bv.randomUUID&&!t&&!e)return Bv.randomUUID();e=e||{};const r=e.random||(e.rng||sB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return lB(r)}var uB=typeof global=="object"&&global&&global.Object===Object&&global;const Fw=uB;var dB=typeof self=="object"&&self&&self.Object===Object&&self,fB=Fw||dB||Function("return this")();const ma=fB;var hB=ma.Symbol;const ua=hB;var Bw=Object.prototype,mB=Bw.hasOwnProperty,pB=Bw.toString,Tu=ua?ua.toStringTag:void 0;function gB(e){var t=mB.call(e,Tu),n=e[Tu];try{e[Tu]=void 0;var r=!0}catch{}var i=pB.call(e);return r&&(t?e[Tu]=n:delete e[Tu]),i}var vB=Object.prototype,yB=vB.toString;function bB(e){return yB.call(e)}var EB="[object Null]",TB="[object Undefined]",zv=ua?ua.toStringTag:void 0;function ul(e){return e==null?e===void 0?TB:EB:zv&&zv in Object(e)?gB(e):bB(e)}function dl(e){return e!=null&&typeof e=="object"}var xB="[object Symbol]";function F9(e){return typeof e=="symbol"||dl(e)&&ul(e)==xB}function zw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=qB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZB(e){return function(){return e}}var JB=function(){try{var e=hl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ah=JB;var ez=ah?function(e,t){return ah(e,"toString",{configurable:!0,enumerable:!1,value:ZB(t),writable:!0})}:SB;const tz=ez;var nz=QB(tz);const rz=nz;function iz(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=dz}function B9(e){return e!=null&&Kw(e.length)&&!Hw(e)}var fz=Object.prototype;function bm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fz;return e===n}function hz(e,t){for(var n=-1,r=Array(e);++n-1}function AU(e,t){var n=this.__data__,r=Em(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function io(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?tS(s,t-1,n,r,i):W9(i,s):r||(i[i.length]=s)}return i}function KU(e){var t=e==null?0:e.length;return t?tS(e,1):[]}function WU(e){return rz(uz(e,void 0,KU),e+"")}var qU=Zw(Object.getPrototypeOf,Object);const q9=qU;var YU="[object Object]",XU=Function.prototype,QU=Object.prototype,nS=XU.toString,ZU=QU.hasOwnProperty,JU=nS.call(Object);function eH(e){if(!dl(e)||ul(e)!=YU)return!1;var t=q9(e);if(t===null)return!0;var n=ZU.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nS.call(n)==JU}function tH(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),s0(e,sS(e),n),r&&(n=lf(n,qj|Yj|Xj,Wj));for(var i=t.length;i--;)Kj(n,t[i]);return n});const Zj=Qj;var Xi=(e=>(e.START="start",e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e.ABORT="abort",e))(Xi||{});class Jj{constructor(){L6(this,"_status");this._status="start"}set status(t){this._status=t}get status(){return this._status}abort(){this.status="abort"}async send({message:t,modelId:n,requestId:r,lastId:i,onProgress:a,onFinish:o,onError:s}){this.status="start";const l=localStorage.getItem(yr.AccessToken),c=await fetch(`${Pw}/openai/chat-process`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${l}`},body:JSON.stringify({message:t,model_id:n,request_id:r,last_id:i})});if(!c.ok){s("连接失败,请重试"),this.status="error";return}const u=c.body;if(!u){s("无响应数据,请重试"),this.status="error";return}this.status==="start"&&(this.status="pending");const d=u.getReader(),f=new TextDecoder("utf-8");let h=!1,m;for(;!h&&this.status==="pending";){const{value:g,done:b}=await d.read();h=b;const p=f.decode(g);try{const v=p.split(` - -data :`),T=v[v.length-2]||v[v.length-1];if(T){if(m=JSON.parse(T),m.err_code>0){s(m.err_msg);return}a(m)}}catch(v){console.log(v)}}this.status==="abort"&&(this.status="success",m.messages=m.messages+` -[您中断了回答,若继续请刷新重试!]`,o(m)),(h||this.status==="success")&&(this.status="success",k5(m)?s("无响应数据,请重试"):o(m))}}const d7=new Jj;var ka=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(ka||{});const O5={icon:"",uuid:Cs(),title:"新话题",system:"",modelId:""},eG={isStream:!1,currentConversation:O5,conversationList:[O5],chatDataMap:{}},Zo=ym()($9((e,t)=>({...eG,addConversation(n="新话题",r="",i="",a=""){const o=Cs(),s={title:n,uuid:o,icon:r,system:i,modelId:a};e(l=>({currentConversation:s,conversationList:[s,...l.conversationList],chatDataMap:{[o]:i?[{id:Cs(),text:i,role:"system",dateTime:new Date().toISOString(),requestId:""}]:[],...l.chatDataMap}}))},switchConversation(n){e(r=>({currentConversation:r.conversationList.find(i=>i.uuid===n)}))},clearCurrentConversation(){const{uuid:n}=t().currentConversation;e(r=>({chatDataMap:{...r.chatDataMap,[n]:[]}}))},editConversation(n,r){const i=t().conversationList.map(a=>a.uuid==n?{...a,...r}:a);e(()=>({conversationList:i}))},delConversation(n){let r=t().conversationList.filter(a=>a.uuid!==n);r.length===0&&(r=[O5]);const i=t().chatDataMap;delete i[n],e(()=>({chatDataMap:i,conversationList:r})),n===t().currentConversation.uuid&&e({currentConversation:r[0]})},chatProgress(n,r,i="",a,o){const s=t().currentChatData(),l=t().currentChatData(),c=t().chatDataMap,u=t().currentConversation.uuid;c[u]=l,d7.send({message:n,modelId:t().currentConversation.modelId,requestId:r,lastId:i,onProgress:d=>{s[s.length-1]={id:o,text:d.messages,role:"assistant",status:Xi.PENDING,dateTime:new Date().toISOString(),messageId:d.id,requestId:r},e({chatDataMap:c})},onFinish:d=>{s[a]={...s[a],text:d.messages,status:Xi.SUCCESS},e({chatDataMap:c,isStream:!1})},onError:d=>{s[a]={...s[a],error:d,status:Xi.ERROR},e({chatDataMap:c,isStream:!1})}})},sendUserMessage(n){var u,d;const r=t().currentChatData(),i=Cs(),a=Cs(),o=[...r,{text:n,role:"user",dateTime:new Date().toISOString(),requestId:i,id:Cs()},{id:a,text:"",role:"assistant",dateTime:new Date().toISOString(),requestId:i,status:Xi.START}],s=t().chatDataMap,l=t().currentConversation.uuid;s[l]=o,e({chatDataMap:s,isStream:!0});const c=((d=(u=r.filter(f=>f.role==="assistant"))==null?void 0:u.pop())==null?void 0:d.messageId)||"";t().chatProgress(n,i,c,o.length-1,a)},regenerateChat(n){var d,f;const r=t().currentChatData(),i=t().chatDataMap,a=t().currentConversation.uuid,o=Cs(),s=r.findIndex(h=>h.role==="user"&&h.requestId===n),l=r[s].text,c=((f=(d=r.slice(0,s).filter(h=>h.role==="assistant"))==null?void 0:d.pop())==null?void 0:f.messageId)||"",u=r.findIndex(h=>h.role==="assistant"&&h.requestId===n);r[u]={...r[u],status:Xi.START},i[a]=r,e({chatDataMap:i}),t().chatProgress(l,n,c,u,o)},currentChatData(){return t().chatDataMap[t().currentConversation.uuid]||[]},stopStream(){d7.abort(),e({isStream:!1})},setStream(n){e({isStream:n})}}),{name:yr.Chat})),da={getWxQrCode(e,t){return Rt(`wechat/${e}/qrcode?type=${e}&redirect_url=${t}`)},getUserInfoByCode(e,t,n){return Rt(`wechat/${e}/login`,{method:"post",body:JSON.stringify({code:t,type:e,share_openid:n})})},getUserProfile(){return Rt("user/profile")},getUserBill(){return Rt("user/bill-package")},getUserPackages(){return Rt("user/package/record")},register(e){return Rt("auth/register",{method:"post",body:JSON.stringify(e)})},login(e){return Rt("auth/login",{method:"post",body:JSON.stringify(e)})},getPhoneCode(e){return Rt("sms/send-code",{method:"post",body:JSON.stringify({mobile:e})})},phoneLogin(e){return Rt("sms/login",{method:"post",body:JSON.stringify(e)})},resetPassword(e){return Rt("auth/reset",{method:"post",body:JSON.stringify(e)})}},tG={currentBill:null},Q9=ym()((e,t)=>({...tG,getCurrentBilling:async()=>{const n=await da.getUserBill();e({currentBill:n})},remaining:()=>{const n=t().currentBill;return!n||!n.num?0:n.num-n.used}}));function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;ts,Object.values(s));return y.createElement(n.Provider,{value:l},o)}function i(a){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function jr(e,t=[]){let n=[];function r(a,o){const s=y.createContext(o),l=n.length;n=[...n,o];function c(d){const{scope:f,children:h,...m}=d,g=(f==null?void 0:f[e][l])||s,b=y.useMemo(()=>m,Object.values(m));return y.createElement(g.Provider,{value:b},h)}function u(d,f){const h=(f==null?void 0:f[e][l])||s,m=y.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const i=()=>{const a=n.map(o=>y.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,rG(i,...t)]}function rG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Cn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Jo=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{};function iG(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function _m(...e){return t=>e.forEach(n=>iG(n,t))}function Lt(...e){return y.useCallback(_m(...e),e)}const es=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find(aG);if(a){const o=a.props.children,s=i.map(l=>l===a?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return y.createElement(R5,ue({},r,{ref:t}),y.isValidElement(o)?y.cloneElement(o,void 0,s):null)}return y.createElement(R5,ue({},r,{ref:t}),n)});es.displayName="Slot";const R5=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...oG(r,n.props),ref:t?_m(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});R5.displayName="SlotClone";const dS=({children:e})=>y.createElement(y.Fragment,null,e);function aG(e){return y.isValidElement(e)&&e.type===dS}function oG(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const sG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pt=sG.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?es:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(s,ue({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fS(e,t){e&&Vc.flushSync(()=>e.dispatchEvent(t))}const hS="Avatar",[lG,Ode]=jr(hS),[cG,mS]=lG(hS),uG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,a]=y.useState("idle");return y.createElement(cG,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},y.createElement(pt.span,ue({},r,{ref:t})))}),dG="AvatarImage",fG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=mS(dG,n),s=pG(r),l=Cn(c=>{i(c),o.onImageLoadingStatusChange(c)});return Jo(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?y.createElement(pt.img,ue({},a,{ref:t,src:r})):null}),hG="AvatarFallback",mG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,a=mS(hG,n),[o,s]=y.useState(r===void 0);return y.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),o&&a.imageLoadingStatus!=="loaded"?y.createElement(pt.span,ue({},i,{ref:t})):null});function pG(e){const[t,n]=y.useState("idle");return y.useEffect(()=>{if(!e){n("error");return}let r=!0;const i=new window.Image,a=o=>()=>{r&&n(o)};return n("loading"),i.onload=a("loaded"),i.onerror=a("error"),i.src=e,()=>{r=!1}},[e]),t}const pS=uG,gS=fG,vS=mG;function gG(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(o){var s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set:function(o,s){n.has(o)?n.set(o,s):i(o,s)}}}var ES="!";function _G(e){var t=e.separator||":",n=t.length===1,r=t[0],i=t.length;return function(o){for(var s=[],l=0,c=0,u,d=0;dc?u-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}}}function wG(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var i=r[0]==="[";i?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function SG(e){return{cache:xG(e.cacheSize),splitModifiers:_G(e),...vG(e)}}var CG=/\s+/;function AG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(CG).map(function(o){var s=n(o),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,d=s.maybePostfixModifierPosition,f=r(d?u.substring(0,d):u),h=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:o};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:o};h=!1}var m=wG(l).join(":"),g=c?m+ES:m;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(function(o){if(!o.isTailwindClass)return!0;var s=o.modifierId,l=o.classGroupId,c=o.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),i(l,c).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(o){return o.originalClassName}).join(" ")}function NG(){for(var e=arguments.length,t=new Array(e),n=0;nx.jsx(pS,{ref:n,className:ze("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));P1.displayName=pS.displayName;const $1=y.forwardRef(({className:e,...t},n)=>x.jsx(gS,{ref:n,className:ze("aspect-square h-full w-full",e),...t}));$1.displayName=gS.displayName;const wm=y.forwardRef(({className:e,...t},n)=>x.jsx(vS,{ref:n,className:ze("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));wm.displayName=vS.displayName;const p7=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,g7=wS,Sm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return g7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=a==null?void 0:a[c];if(u===null)return null;const f=p7(u)||p7(d);return i[c][f]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(m=>{let[g,b]=m;return Array.isArray(b)?b.includes({...a,...s}[g]):{...a,...s}[g]===b})?[...c,d,f]:c},[]);return g7(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},e8=Sm("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8"}},defaultVariants:{variant:"default",size:"default"}}),ot=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?es:"button";return x.jsx(o,{className:ze(e8({variant:t,size:n,className:e})),ref:a,...i})});ot.displayName="Button";const M5="horizontal",GG=["horizontal","vertical"],SS=y.forwardRef((e,t)=>{const{decorative:n,orientation:r=M5,...i}=e,a=CS(r)?r:M5,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return y.createElement(pt.div,ue({"data-orientation":a},s,i,{ref:t}))});SS.propTypes={orientation(e,t,n){const r=e[t],i=String(r);return r&&!CS(r)?new Error(VG(i,n)):null}};function VG(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of: - - horizontal - - vertical - -Defaulting to \`${M5}\`.`}function CS(e){return GG.includes(e)}const AS=SS,NS=y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>x.jsx(AS,{ref:i,decorative:n,orientation:t,className:ze("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));NS.displayName=AS.displayName;function Ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Xc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=KG({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Cn(n),l=y.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else i(c)},[a,e,i,s]);return[o,l]}function KG({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,i=y.useRef(r),a=Cn(t);return y.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function kS(e){const t=e+"CollectionProvider",[n,r]=jr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:m,children:g}=h,b=We.useRef(null),p=We.useRef(new Map).current;return We.createElement(i,{scope:m,itemMap:p,collectionRef:b},g)},s=e+"CollectionSlot",l=We.forwardRef((h,m)=>{const{scope:g,children:b}=h,p=a(s,g),v=Lt(m,p.collectionRef);return We.createElement(es,{ref:v},b)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=We.forwardRef((h,m)=>{const{scope:g,children:b,...p}=h,v=We.useRef(null),T=Lt(m,v),C=a(c,g);return We.useEffect(()=>(C.itemMap.set(v,{ref:v,...p}),()=>void C.itemMap.delete(v))),We.createElement(es,{[u]:"",ref:T},b)});function f(h){const m=a(e+"CollectionConsumer",h);return We.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const p=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((C,R)=>p.indexOf(C.ref.current)-p.indexOf(R.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},f,r]}const WG=y.createContext(void 0);function l0(e){const t=y.useContext(WG);return e||t||"ltr"}function qG(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e);y.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const L5="dismissableLayer.update",YG="dismissableLayer.pointerDownOutside",XG="dismissableLayer.focusOutside";let v7;const QG=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OS=y.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...c}=e,u=y.useContext(QG),[d,f]=y.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=y.useState({}),g=Lt(t,$=>f($)),b=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(p),T=d?b.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,R=T>=v,N=ZG($=>{const M=$.target,L=[...u.branches].some(X=>X.contains(M));!R||L||(a==null||a($),s==null||s($),$.defaultPrevented||l==null||l())},h),O=JG($=>{const M=$.target;[...u.branches].some(X=>X.contains(M))||(o==null||o($),s==null||s($),$.defaultPrevented||l==null||l())},h);return qG($=>{T===u.layers.size-1&&(i==null||i($),!$.defaultPrevented&&l&&($.preventDefault(),l()))},h),y.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(v7=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),y7(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=v7)}},[d,h,r,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),y7())},[d,u]),y.useEffect(()=>{const $=()=>m({});return document.addEventListener(L5,$),()=>document.removeEventListener(L5,$)},[]),y.createElement(pt.div,ue({},c,{ref:g,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,N.onPointerDownCapture)}))});function ZG(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){RS(YG,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function JG(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=y.useRef(!1);return y.useEffect(()=>{const i=a=>{a.target&&!r.current&&RS(XG,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function y7(){const e=new CustomEvent(L5);document.dispatchEvent(e)}function RS(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?fS(i,a):i.dispatchEvent(a)}let dg=0;function IS(){y.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:b7()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:b7()),dg++,()=>{dg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),dg--}},[])}function b7(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const fg="focusScope.autoFocusOnMount",hg="focusScope.autoFocusOnUnmount",E7={bubbles:!1,cancelable:!0},MS=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=y.useState(null),c=Cn(i),u=Cn(a),d=y.useRef(null),f=Lt(t,g=>l(g)),h=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let v=function(N){if(h.paused||!s)return;const O=N.target;s.contains(O)?d.current=O:xo(d.current,{select:!0})},T=function(N){if(h.paused||!s)return;const O=N.relatedTarget;O!==null&&(s.contains(O)||xo(d.current,{select:!0}))},C=function(N){const O=document.activeElement;for(const $ of N)$.removedNodes.length>0&&(s!=null&&s.contains(O)||xo(s))};var g=v,b=T,p=C;document.addEventListener("focusin",v),document.addEventListener("focusout",T);const R=new MutationObserver(C);return s&&R.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",T),R.disconnect()}}},[r,s,h.paused]),y.useEffect(()=>{if(s){x7.add(h);const g=document.activeElement;if(!s.contains(g)){const p=new CustomEvent(fg,E7);s.addEventListener(fg,c),s.dispatchEvent(p),p.defaultPrevented||(eV(aV(LS(s)),{select:!0}),document.activeElement===g&&xo(s))}return()=>{s.removeEventListener(fg,c),setTimeout(()=>{const p=new CustomEvent(hg,E7);s.addEventListener(hg,u),s.dispatchEvent(p),p.defaultPrevented||xo(g??document.body,{select:!0}),s.removeEventListener(hg,u),x7.remove(h)},0)}}},[s,c,u,h]);const m=y.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,p=document.activeElement;if(b&&p){const v=g.currentTarget,[T,C]=tV(v);T&&C?!g.shiftKey&&p===C?(g.preventDefault(),n&&xo(T,{select:!0})):g.shiftKey&&p===T&&(g.preventDefault(),n&&xo(C,{select:!0})):p===v&&g.preventDefault()}},[n,r,h.paused]);return y.createElement(pt.div,ue({tabIndex:-1},o,{ref:f,onKeyDown:m}))});function eV(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xo(r,{select:t}),document.activeElement!==n)return}function tV(e){const t=LS(e),n=T7(t,e),r=T7(t.reverse(),e);return[n,r]}function LS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T7(e,t){for(const n of e)if(!nV(n,{upTo:t}))return n}function nV(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rV(e){return e instanceof HTMLInputElement&&"select"in e}function xo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rV(e)&&t&&e.select()}}const x7=iV();function iV(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_7(e,t),e.unshift(t)},remove(t){var n;e=_7(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function _7(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aV(e){return e.filter(t=>t.tagName!=="A")}const oV=zI["useId".toString()]||(()=>{});let sV=0;function Gs(e){const[t,n]=y.useState(oV());return Jo(()=>{e||n(r=>r??String(sV++))},[e]),e||(t?`radix-${t}`:"")}function Qc(e){return e.split("-")[1]}function t8(e){return e==="y"?"height":"width"}function Ua(e){return e.split("-")[0]}function pl(e){return["top","bottom"].includes(Ua(e))?"x":"y"}function w7(e,t,n){let{reference:r,floating:i}=e;const a=r.x+r.width/2-i.width/2,o=r.y+r.height/2-i.height/2,s=pl(t),l=t8(s),c=r[l]/2-i[l]/2,u=s==="x";let d;switch(Ua(t)){case"top":d={x:a,y:r.y-i.height};break;case"bottom":d={x:a,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:o};break;case"left":d={x:r.x-i.width,y:o};break;default:d={x:r.x,y:r.y}}switch(Qc(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const lV=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=w7(c,r,l),f=r,h={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:a,placement:o,rects:s,platform:l,elements:c}=t;if(n==null)return{};const u=DS(r),d={x:i,y:a},f=pl(o),h=t8(f),m=await l.getDimensions(n),g=f==="y",b=g?"top":"left",p=g?"bottom":"right",v=g?"clientHeight":"clientWidth",T=s.reference[h]+s.reference[f]-d[f]-s.floating[h],C=d[f]-s.reference[f],R=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let N=R?R[v]:0;N&&await(l.isElement==null?void 0:l.isElement(R))||(N=c.floating[v]||s.floating[h]);const O=T/2-C/2,$=u[b],M=N-m[h]-u[p],L=N/2-m[h]/2+O,X=P5($,L,M),Z=Qc(o)!=null&&L!=X&&s.reference[h]/2-(L<$?u[b]:u[p])-m[h]/2<0;return{[f]:d[f]-(Z?L<$?$-L:M-L:0),data:{[f]:X,centerOffset:L-X}}}}),PS=["top","right","bottom","left"];PS.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const cV={left:"right",right:"left",bottom:"top",top:"bottom"};function sh(e){return e.replace(/left|right|bottom|top/g,t=>cV[t])}function uV(e,t,n){n===void 0&&(n=!1);const r=Qc(e),i=pl(e),a=t8(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=sh(o)),{main:o,cross:sh(o)}}const dV={start:"end",end:"start"};function mg(e){return e.replace(/start|end/g,t=>dV[t])}const fV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=e,b=Ua(r),p=Ua(o)===o,v=await(s.isRTL==null?void 0:s.isRTL(l.floating)),T=d||(p||!m?[sh(o)]:function(X){const Z=sh(X);return[mg(X),Z,mg(Z)]}(o));d||h==="none"||T.push(...function(X,Z,Q,K){const V=Qc(X);let ne=function(B,w,D){const A=["left","right"],W=["right","left"],te=["top","bottom"],P=["bottom","top"];switch(B){case"top":case"bottom":return D?w?W:A:w?A:W;case"left":case"right":return w?te:P;default:return[]}}(Ua(X),Q==="start",K);return V&&(ne=ne.map(B=>B+"-"+V),Z&&(ne=ne.concat(ne.map(mg)))),ne}(o,m,h,v));const C=[o,...T],R=await F1(t,g),N=[];let O=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&N.push(R[b]),u){const{main:X,cross:Z}=uV(r,a,v);N.push(R[X],R[Z])}if(O=[...O,{placement:r,overflows:N}],!N.every(X=>X<=0)){var $,M;const X=((($=i.flip)==null?void 0:$.index)||0)+1,Z=C[X];if(Z)return{data:{index:X,overflows:O},reset:{placement:Z}};let Q=(M=O.filter(K=>K.overflows[0]<=0).sort((K,V)=>K.overflows[1]-V.overflows[1])[0])==null?void 0:M.placement;if(!Q)switch(f){case"bestFit":{var L;const K=(L=O.map(V=>[V.placement,V.overflows.filter(ne=>ne>0).reduce((ne,B)=>ne+B,0)]).sort((V,ne)=>V[1]-ne[1])[0])==null?void 0:L[0];K&&(Q=K);break}case"initialPlacement":Q=o}if(r!==Q)return{reset:{placement:Q}}}return{}}}};function C7(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A7(e){return PS.some(t=>e[t]>=0)}const hV=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:i}=t;switch(n){case"referenceHidden":{const a=C7(await F1(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A7(a)}}}case"escaped":{const a=C7(await F1(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:a,escaped:A7(a)}}}default:return{}}}}},mV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(a,o){const{placement:s,platform:l,elements:c}=a,u=await(l.isRTL==null?void 0:l.isRTL(c.floating)),d=Ua(s),f=Qc(s),h=pl(s)==="x",m=["left","top"].includes(d)?-1:1,g=u&&h?-1:1,b=typeof o=="function"?o(a):o;let{mainAxis:p,crossAxis:v,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return f&&typeof T=="number"&&(v=f==="end"?-1*T:T),h?{x:v*g,y:p*m}:{x:p*m,y:v*g}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function $S(e){return e==="x"?"y":"x"}const pV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:p,y:v}=b;return{x:p,y:v}}},...l}=e,c={x:n,y:r},u=await F1(t,l),d=pl(Ua(i)),f=$S(d);let h=c[d],m=c[f];if(a){const b=d==="y"?"bottom":"right";h=P5(h+u[d==="y"?"top":"left"],h,h-u[b])}if(o){const b=f==="y"?"bottom":"right";m=P5(m+u[f==="y"?"top":"left"],m,m-u[b])}const g=s.fn({...t,[d]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},gV=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=pl(i),f=$S(d);let h=u[d],m=u[f];const g=typeof s=="function"?s(t):s,b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const T=d==="y"?"height":"width",C=a.reference[d]-a.floating[T]+b.mainAxis,R=a.reference[d]+a.reference[T]-b.mainAxis;hR&&(h=R)}if(c){var p,v;const T=d==="y"?"width":"height",C=["top","left"].includes(Ua(i)),R=a.reference[f]-a.floating[T]+(C&&((p=o.offset)==null?void 0:p[f])||0)+(C?0:b.crossAxis),N=a.reference[f]+a.reference[T]+(C?0:((v=o.offset)==null?void 0:v[f])||0)-(C?b.crossAxis:0);mN&&(m=N)}return{[d]:h,[f]:m}}}},vV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=e,l=await F1(t,s),c=Ua(n),u=Qc(n),d=pl(n)==="x",{width:f,height:h}=r.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,m=u==="end"?"top":"bottom");const b=h-l[m],p=f-l[g],v=!t.middlewareData.shift;let T=b,C=p;if(d){const N=f-l.left-l.right;C=u||v?D5(p,N):N}else{const N=h-l.top-l.bottom;T=u||v?D5(b,N):N}if(v&&!u){const N=Ns(l.left,0),O=Ns(l.right,0),$=Ns(l.top,0),M=Ns(l.bottom,0);d?C=f-2*(N!==0||O!==0?N+O:Ns(l.left,l.right)):T=h-2*($!==0||M!==0?$+M:Ns(l.top,l.bottom))}await o({...t,availableWidth:C,availableHeight:T});const R=await i.getDimensions(a.floating);return f!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function ri(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oi(e){return ri(e).getComputedStyle(e)}function FS(e){return e instanceof ri(e).Node}function ts(e){return FS(e)?(e.nodeName||"").toLowerCase():""}function Li(e){return e instanceof ri(e).HTMLElement}function Mr(e){return e instanceof ri(e).Element}function N7(e){return typeof ShadowRoot>"u"?!1:e instanceof ri(e).ShadowRoot||e instanceof ShadowRoot}function B1(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function yV(e){return["table","td","th"].includes(ts(e))}function $5(e){const t=n8(),n=Oi(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function n8(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Cm(e){return["html","body","#document"].includes(ts(e))}const k7=Math.min,Ju=Math.max,lh=Math.round;function BS(e){const t=Oi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Li(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=lh(n)!==a||lh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,fallback:s}}function zS(e){return Mr(e)?e:e.contextElement}const US={x:1,y:1};function yc(e){const t=zS(e);if(!Li(t))return US;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=BS(t);let o=(a?lh(n.width):n.width)/r,s=(a?lh(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const O7={x:0,y:0};function HS(e,t,n){var r,i;if(t===void 0&&(t=!0),!n8())return O7;const a=e?ri(e):window;return!n||t&&n!==a?O7:{x:((r=a.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function el(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=zS(e);let o=US;t&&(r?Mr(r)&&(o=yc(r)):o=yc(e));const s=HS(a,n,r);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const f=ri(a),h=r&&Mr(r)?ri(r):r;let m=f.frameElement;for(;m&&r&&h!==f;){const g=yc(m),b=m.getBoundingClientRect(),p=getComputedStyle(m);b.x+=(m.clientLeft+parseFloat(p.paddingLeft))*g.x,b.y+=(m.clientTop+parseFloat(p.paddingTop))*g.y,l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=b.x,c+=b.y,m=ri(m).frameElement}}return oh({width:u,height:d,x:l,y:c})}function Ko(e){return((FS(e)?e.ownerDocument:e.document)||window.document).documentElement}function Am(e){return Mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jS(e){return el(Ko(e)).left+Am(e).scrollLeft}function Mc(e){if(ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||N7(e)&&e.host||Ko(e);return N7(t)?t.host:t}function GS(e){const t=Mc(e);return Cm(t)?t.ownerDocument.body:Li(t)&&B1(t)?t:GS(t)}function e1(e,t){var n;t===void 0&&(t=[]);const r=GS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ri(r);return i?t.concat(a,a.visualViewport||[],B1(r)?r:[]):t.concat(r,e1(r))}function R7(e,t,n){let r;if(t==="viewport")r=function(i,a){const o=ri(i),s=Ko(i),l=o.visualViewport;let c=s.clientWidth,u=s.clientHeight,d=0,f=0;if(l){c=l.width,u=l.height;const h=n8();(!h||h&&a==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:c,height:u,x:d,y:f}}(e,n);else if(t==="document")r=function(i){const a=Ko(i),o=Am(i),s=i.ownerDocument.body,l=Ju(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),c=Ju(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let u=-o.scrollLeft+jS(i);const d=-o.scrollTop;return Oi(s).direction==="rtl"&&(u+=Ju(a.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:d}}(Ko(e));else if(Mr(t))r=function(i,a){const o=el(i,!0,a==="fixed"),s=o.top+i.clientTop,l=o.left+i.clientLeft,c=Li(i)?yc(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:s*c.y}}(t,n);else{const i=HS(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return oh(r)}function VS(e,t){const n=Mc(e);return!(n===t||!Mr(n)||Cm(n))&&(Oi(n).position==="fixed"||VS(n,t))}function I7(e,t){return Li(e)&&Oi(e).position!=="fixed"?t?t(e):e.offsetParent:null}function M7(e,t){const n=ri(e);if(!Li(e))return n;let r=I7(e,t);for(;r&&yV(r)&&Oi(r).position==="static";)r=I7(r,t);return r&&(ts(r)==="html"||ts(r)==="body"&&Oi(r).position==="static"&&!$5(r))?n:r||function(i){let a=Mc(i);for(;Li(a)&&!Cm(a);){if($5(a))return a;a=Mc(a)}return null}(e)||n}function bV(e,t,n){const r=Li(t),i=Ko(t),a=n==="fixed",o=el(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&!a)if((ts(t)!=="body"||B1(i))&&(s=Am(t)),Li(t)){const c=el(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=jS(i));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}const EV={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=n==="clippingAncestors"?function(c,u){const d=u.get(c);if(d)return d;let f=e1(c).filter(b=>Mr(b)&&ts(b)!=="body"),h=null;const m=Oi(c).position==="fixed";let g=m?Mc(c):c;for(;Mr(g)&&!Cm(g);){const b=Oi(g),p=$5(g);p||b.position!=="fixed"||(h=null),(m?!p&&!h:!p&&b.position==="static"&&h&&["absolute","fixed"].includes(h.position)||B1(g)&&!p&&VS(c,g))?f=f.filter(v=>v!==g):h=b,g=Mc(g)}return u.set(c,f),f}(t,this._c):[].concat(n),o=[...a,r],s=o[0],l=o.reduce((c,u)=>{const d=R7(t,u,i);return c.top=Ju(d.top,c.top),c.right=k7(d.right,c.right),c.bottom=k7(d.bottom,c.bottom),c.left=Ju(d.left,c.left),c},R7(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Li(n),a=Ko(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&r!=="fixed")&&((ts(n)!=="body"||B1(a))&&(o=Am(n)),Li(n))){const c=el(n);s=yc(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}},isElement:Mr,getDimensions:function(e){return BS(e)},getOffsetParent:M7,getDocumentElement:Ko,getScale:yc,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||M7,a=this.getDimensions;return{reference:bV(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Oi(e).direction==="rtl"};function TV(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i||a?[...Mr(e)?e1(e):e.contextElement?e1(e.contextElement):[],...e1(t)]:[];l.forEach(f=>{const h=!Mr(f)&&f.toString().includes("V");!i||s&&!h||f.addEventListener("scroll",n,{passive:!0}),a&&f.addEventListener("resize",n)});let c,u=null;o&&(u=new ResizeObserver(()=>{n()}),Mr(e)&&!s&&u.observe(e),Mr(e)||!e.contextElement||s||u.observe(e.contextElement),u.observe(t));let d=s?el(e):null;return s&&function f(){const h=el(e);!d||h.x===d.x&&h.y===d.y&&h.width===d.width&&h.height===d.height||n(),d=h,c=requestAnimationFrame(f)}(),n(),()=>{var f;l.forEach(h=>{i&&h.removeEventListener("scroll",n),a&&h.removeEventListener("resize",n)}),(f=u)==null||f.disconnect(),u=null,s&&cancelAnimationFrame(c)}}const xV=(e,t,n)=>{const r=new Map,i={platform:EV,...n},a={...i.platform,_c:r};return lV(e,t,{...i,platform:a})},_V=e=>{const{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?S7({element:t.current,padding:n}).fn(i):{}:t?S7({element:t,padding:n}).fn(i):{}}}};var cf=typeof document<"u"?y.useLayoutEffect:y.useEffect;function ch(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ch(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!ch(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function KS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L7(e,t){const n=KS(e);return Math.round(t*n)/n}function D7(e){const t=y.useRef(e);return cf(()=>{t.current=e}),t}function wV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=y.useState(r);ch(f,r)||h(r);const[m,g]=y.useState(null),[b,p]=y.useState(null),v=y.useCallback(ne=>{ne!=N.current&&(N.current=ne,g(ne))},[g]),T=y.useCallback(ne=>{ne!==O.current&&(O.current=ne,p(ne))},[p]),C=a||m,R=o||b,N=y.useRef(null),O=y.useRef(null),$=y.useRef(u),M=D7(l),L=D7(i),X=y.useCallback(()=>{if(!N.current||!O.current)return;const ne={placement:t,strategy:n,middleware:f};L.current&&(ne.platform=L.current),xV(N.current,O.current,ne).then(B=>{const w={...B,isPositioned:!0};Z.current&&!ch($.current,w)&&($.current=w,Vc.flushSync(()=>{d(w)}))})},[f,t,n,L]);cf(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,d(ne=>({...ne,isPositioned:!1})))},[c]);const Z=y.useRef(!1);cf(()=>(Z.current=!0,()=>{Z.current=!1}),[]),cf(()=>{if(C&&(N.current=C),R&&(O.current=R),C&&R){if(M.current)return M.current(C,R,X);X()}},[C,R,X,M]);const Q=y.useMemo(()=>({reference:N,floating:O,setReference:v,setFloating:T}),[v,T]),K=y.useMemo(()=>({reference:C,floating:R}),[C,R]),V=y.useMemo(()=>{const ne={position:n,left:0,top:0};if(!K.floating)return ne;const B=L7(K.floating,u.x),w=L7(K.floating,u.y);return s?{...ne,transform:"translate("+B+"px, "+w+"px)",...KS(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:w}},[n,s,K.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:X,refs:Q,elements:K,floatingStyles:V}),[u,X,Q,K,V])}function r8(e){const[t,n]=y.useState(void 0);return Jo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const WS="Popper",[qS,YS]=jr(WS),[SV,XS]=qS(WS),CV=e=>{const{__scopePopper:t,children:n}=e,[r,i]=y.useState(null);return y.createElement(SV,{scope:t,anchor:r,onAnchorChange:i},n)},AV="PopperAnchor",NV=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=XS(AV,n),o=y.useRef(null),s=Lt(t,o);return y.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:y.createElement(pt.div,ue({},i,{ref:s}))}),QS="PopperContent",[kV,Rde]=qS(QS),OV=y.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:b=[],collisionPadding:p=0,sticky:v="partial",hideWhenDetached:T=!1,avoidCollisions:C=!0,onPlaced:R,...N}=e,O=XS(QS,u),[$,M]=y.useState(null),L=Lt(t,en=>M(en)),[X,Z]=y.useState(null),Q=r8(X),K=(n=Q==null?void 0:Q.width)!==null&&n!==void 0?n:0,V=(r=Q==null?void 0:Q.height)!==null&&r!==void 0?r:0,ne=d+(h!=="center"?"-"+h:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},w=Array.isArray(b)?b:[b],D=w.length>0,A={padding:B,boundary:w.filter(RV),altBoundary:D},{refs:W,floatingStyles:te,placement:P,isPositioned:Te,middlewareData:Se}=wV({strategy:"fixed",placement:ne,whileElementsMounted:TV,elements:{reference:O.anchor},middleware:[mV({mainAxis:f+V,alignmentAxis:m}),C&&pV({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?gV():void 0,...A}),C&&fV({...A}),vV({...A,apply:({elements:en,rects:sr,availableWidth:j,availableHeight:ie})=>{const{width:ae,height:le}=sr.reference,_e=en.floating.style;_e.setProperty("--radix-popper-available-width",`${j}px`),_e.setProperty("--radix-popper-available-height",`${ie}px`),_e.setProperty("--radix-popper-anchor-width",`${ae}px`),_e.setProperty("--radix-popper-anchor-height",`${le}px`)}}),X&&_V({element:X,padding:g}),IV({arrowWidth:K,arrowHeight:V}),T&&hV({strategy:"referenceHidden"})]}),[Ce,Ae]=ZS(P),qe=Cn(R);Jo(()=>{Te&&(qe==null||qe())},[Te,qe]);const xe=(i=Se.arrow)===null||i===void 0?void 0:i.x,st=(a=Se.arrow)===null||a===void 0?void 0:a.y,St=((o=Se.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[Ct,or]=y.useState();return Jo(()=>{$&&or(window.getComputedStyle($).zIndex)},[$]),y.createElement("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:Te?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ct,["--radix-popper-transform-origin"]:[(s=Se.transformOrigin)===null||s===void 0?void 0:s.x,(l=Se.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},y.createElement(kV,{scope:u,placedSide:Ce,onArrowChange:Z,arrowX:xe,arrowY:st,shouldHideArrow:St},y.createElement(pt.div,ue({"data-side":Ce,"data-align":Ae},N,{ref:L,style:{...N.style,animation:Te?void 0:"none",opacity:(c=Se.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function RV(e){return e!==null}const IV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;const{placement:s,rects:l,middlewareData:c}=t,d=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=ZS(s),b={start:"0%",center:"50%",end:"100%"}[g],p=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+f/2,v=((a=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0)+h/2;let T="",C="";return m==="bottom"?(T=d?b:`${p}px`,C=`${-h}px`):m==="top"?(T=d?b:`${p}px`,C=`${l.floating.height+h}px`):m==="right"?(T=`${-h}px`,C=d?b:`${v}px`):m==="left"&&(T=`${l.floating.width+h}px`,C=d?b:`${v}px`),{data:{x:T,y:C}}}});function ZS(e){const[t,n="center"]=e.split("-");return[t,n]}const MV=CV,LV=NV,DV=OV,JS=y.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?XL.createPortal(y.createElement(pt.div,ue({},i,{ref:t})),r):null});function PV(e,t){return y.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const ir=e=>{const{present:t,children:n}=e,r=$V(t),i=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),a=Lt(r.ref,i.ref);return typeof n=="function"||r.isPresent?y.cloneElement(i,{ref:a}):null};ir.displayName="Presence";function $V(e){const[t,n]=y.useState(),r=y.useRef({}),i=y.useRef(e),a=y.useRef("none"),o=e?"mounted":"unmounted",[s,l]=PV(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=id(r.current);a.current=s==="mounted"?c:"none"},[s]),Jo(()=>{const c=r.current,u=i.current;if(u!==e){const f=a.current,h=id(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Jo(()=>{if(t){const c=d=>{const h=id(r.current).includes(d.animationName);d.target===t&&h&&Vc.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=id(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function id(e){return(e==null?void 0:e.animationName)||"none"}const pg="rovingFocusGroup.onEntryFocus",FV={bubbles:!1,cancelable:!0},i8="RovingFocusGroup",[F5,eC,BV]=kS(i8),[zV,Zc]=jr(i8,[BV]),[UV,HV]=zV(i8),jV=y.forwardRef((e,t)=>y.createElement(F5.Provider,{scope:e.__scopeRovingFocusGroup},y.createElement(F5.Slot,{scope:e.__scopeRovingFocusGroup},y.createElement(GV,ue({},e,{ref:t}))))),GV=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=y.useRef(null),f=Lt(t,d),h=l0(a),[m=null,g]=Xc({prop:o,defaultProp:s,onChange:l}),[b,p]=y.useState(!1),v=Cn(c),T=eC(n),C=y.useRef(!1),[R,N]=y.useState(0);return y.useEffect(()=>{const O=d.current;if(O)return O.addEventListener(pg,v),()=>O.removeEventListener(pg,v)},[v]),y.createElement(UV,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:m,onItemFocus:y.useCallback(O=>g(O),[g]),onItemShiftTab:y.useCallback(()=>p(!0),[]),onFocusableItemAdd:y.useCallback(()=>N(O=>O+1),[]),onFocusableItemRemove:y.useCallback(()=>N(O=>O-1),[])},y.createElement(pt.div,ue({tabIndex:b||R===0?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Ue(e.onMouseDown,()=>{C.current=!0}),onFocus:Ue(e.onFocus,O=>{const $=!C.current;if(O.target===O.currentTarget&&$&&!b){const M=new CustomEvent(pg,FV);if(O.currentTarget.dispatchEvent(M),!M.defaultPrevented){const L=T().filter(V=>V.focusable),X=L.find(V=>V.active),Z=L.find(V=>V.id===m),K=[X,Z,...L].filter(Boolean).map(V=>V.ref.current);tC(K)}}C.current=!1}),onBlur:Ue(e.onBlur,()=>p(!1))})))}),VV="RovingFocusGroupItem",KV=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=Gs(),l=a||s,c=HV(VV,n),u=c.currentTabStopId===l,d=eC(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return y.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),y.createElement(F5.ItemSlot,{scope:n,id:l,focusable:r,active:i},y.createElement(pt.span,ue({tabIndex:u?0:-1,"data-orientation":c.orientation},o,{ref:t,onMouseDown:Ue(e.onMouseDown,m=>{r?c.onItemFocus(l):m.preventDefault()}),onFocus:Ue(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ue(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=YV(m,c.orientation,c.dir);if(g!==void 0){m.preventDefault();let p=d().filter(v=>v.focusable).map(v=>v.ref.current);if(g==="last")p.reverse();else if(g==="prev"||g==="next"){g==="prev"&&p.reverse();const v=p.indexOf(m.currentTarget);p=c.loop?XV(p,v+1):p.slice(v+1)}setTimeout(()=>tC(p))}})})))}),WV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function YV(e,t,n){const r=qV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return WV[r]}function tC(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const a8=jV,o8=KV;var QV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ol=new WeakMap,ad=new WeakMap,od={},gg=0,nC=function(e){return e&&(e.host||nC(e.parentNode))},ZV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=nC(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},JV=function(e,t,n,r){var i=ZV(t,Array.isArray(e)?e:[e]);od[n]||(od[n]=new WeakMap);var a=od[n],o=[],s=new Set,l=new Set(i),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else{var h=f.getAttribute(r),m=h!==null&&h!=="false",g=(Ol.get(f)||0)+1,b=(a.get(f)||0)+1;Ol.set(f,g),a.set(f,b),o.push(f),g===1&&m&&ad.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}})};return u(t),s.clear(),gg++,function(){o.forEach(function(d){var f=Ol.get(d)-1,h=a.get(d)-1;Ol.set(d,f),a.set(d,h),f||(ad.has(d)||d.removeAttribute(r),ad.delete(d)),h||d.removeAttribute(n)}),gg--,gg||(Ol=new WeakMap,Ol=new WeakMap,ad=new WeakMap,od={})}},rC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||QV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),JV(r,i,n,"aria-hidden")):function(){return null}},Qi=function(){return Qi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return gK;var t=vK(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bK=sC(),EK=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(tK,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(uf,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(df,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(uf," .").concat(uf,` { - right: 0 `).concat(r,`; - } - - .`).concat(df," .").concat(df,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(nK,": ").concat(s,`px; - } -`)},TK=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=y.useMemo(function(){return yK(i)},[i]);return y.createElement(bK,{styles:EK(a,!t,i,n?"":"!important")})},B5=!1;if(typeof window<"u")try{var sd=Object.defineProperty({},"passive",{get:function(){return B5=!0,!0}});window.addEventListener("test",sd,sd),window.removeEventListener("test",sd,sd)}catch{B5=!1}var Rl=B5?{passive:!1}:!1,xK=function(e){return e.tagName==="TEXTAREA"},lC=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xK(e)&&n[t]==="visible")},_K=function(e){return lC(e,"overflowY")},wK=function(e){return lC(e,"overflowX")},$7=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=cC(e,n);if(r){var i=uC(e,n),a=i[1],o=i[2];if(a>o)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},SK=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},CK=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cC=function(e,t){return e==="v"?_K(t):wK(t)},uC=function(e,t){return e==="v"?SK(t):CK(t)},AK=function(e,t){return e==="h"&&t==="rtl"?-1:1},NK=function(e,t,n,r,i){var a=AK(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,u=o>0,d=0,f=0;do{var h=uC(e,s),m=h[0],g=h[1],b=h[2],p=g-b-a*m;(m||p)&&cC(e,s)&&(d+=p,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(i&&d===0||!i&&o>d)||!u&&(i&&f===0||!i&&-o>f))&&(c=!0),c},ld=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F7=function(e){return[e.deltaX,e.deltaY]},B7=function(e){return e&&"current"in e?e.current:e},kK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OK=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},RK=0,Il=[];function IK(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(RK++)[0],a=y.useState(function(){return sC()})[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=eK([e.lockRef.current],(e.shards||[]).map(B7),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(g,b){if("touches"in g&&g.touches.length===2)return!o.current.allowPinchZoom;var p=ld(g),v=n.current,T="deltaX"in g?g.deltaX:v[0]-p[0],C="deltaY"in g?g.deltaY:v[1]-p[1],R,N=g.target,O=Math.abs(T)>Math.abs(C)?"h":"v";if("touches"in g&&O==="h"&&N.type==="range")return!1;var $=$7(O,N);if(!$)return!0;if($?R=O:(R=O==="v"?"h":"v",$=$7(O,N)),!$)return!1;if(!r.current&&"changedTouches"in g&&(T||C)&&(r.current=R),!R)return!0;var M=r.current||R;return NK(M,b,g,M==="h"?T:C,!0)},[]),l=y.useCallback(function(g){var b=g;if(!(!Il.length||Il[Il.length-1]!==a)){var p="deltaY"in b?F7(b):ld(b),v=t.current.filter(function(R){return R.name===b.type&&R.target===b.target&&kK(R.delta,p)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var T=(o.current.shards||[]).map(B7).filter(Boolean).filter(function(R){return R.contains(b.target)}),C=T.length>0?s(b,T[0]):!o.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),c=y.useCallback(function(g,b,p,v){var T={name:g,delta:b,target:p,should:v};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(C){return C!==T})},1)},[]),u=y.useCallback(function(g){n.current=ld(g),r.current=void 0},[]),d=y.useCallback(function(g){c(g.type,F7(g),g.target,s(g,e.lockRef.current))},[]),f=y.useCallback(function(g){c(g.type,ld(g),g.target,s(g,e.lockRef.current))},[]);y.useEffect(function(){return Il.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Rl),document.addEventListener("touchmove",l,Rl),document.addEventListener("touchstart",u,Rl),function(){Il=Il.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,Rl),document.removeEventListener("touchmove",l,Rl),document.removeEventListener("touchstart",u,Rl)}},[]);var h=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:OK(i)}):null,h?y.createElement(TK,{gapMode:"margin"}):null)}const MK=cK(oC,IK);var dC=y.forwardRef(function(e,t){return y.createElement(Nm,Qi({},e,{ref:t,sideCar:MK}))});dC.classNames=Nm.classNames;const fC=dC,z5=["Enter"," "],LK=["ArrowDown","PageUp","Home"],hC=["ArrowUp","PageDown","End"],DK=[...LK,...hC],PK={ltr:[...z5,"ArrowRight"],rtl:[...z5,"ArrowLeft"]},$K={ltr:["ArrowLeft"],rtl:["ArrowRight"]},km="Menu",[z1,FK,BK]=kS(km),[gl,mC]=jr(km,[BK,YS,Zc]),s8=YS(),pC=Zc(),[zK,vl]=gl(km),[UK,c0]=gl(km),HK=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=s8(t),[l,c]=y.useState(null),u=y.useRef(!1),d=Cn(a),f=l0(i);return y.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),y.createElement(MV,s,y.createElement(zK,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},y.createElement(UK,{scope:t,onClose:y.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o},r)))},gC=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=s8(n);return y.createElement(LV,ue({},i,r,{ref:t}))}),vC="MenuPortal",[jK,yC]=gl(vC,{forceMount:void 0}),GK=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=vl(vC,t);return y.createElement(jK,{scope:t,forceMount:n},y.createElement(ir,{present:n||a.open},y.createElement(JS,{asChild:!0,container:i},r)))},Ri="MenuContent",[VK,l8]=gl(Ri),KK=y.forwardRef((e,t)=>{const n=yC(Ri,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vl(Ri,e.__scopeMenu),o=c0(Ri,e.__scopeMenu);return y.createElement(z1.Provider,{scope:e.__scopeMenu},y.createElement(ir,{present:r||a.open},y.createElement(z1.Slot,{scope:e.__scopeMenu},o.modal?y.createElement(WK,ue({},i,{ref:t})):y.createElement(qK,ue({},i,{ref:t})))))}),WK=y.forwardRef((e,t)=>{const n=vl(Ri,e.__scopeMenu),r=y.useRef(null),i=Lt(t,r);return y.useEffect(()=>{const a=r.current;if(a)return rC(a)},[]),y.createElement(c8,ue({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ue(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),qK=y.forwardRef((e,t)=>{const n=vl(Ri,e.__scopeMenu);return y.createElement(c8,ue({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),c8=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:m,...g}=e,b=vl(Ri,n),p=c0(Ri,n),v=s8(n),T=pC(n),C=FK(n),[R,N]=y.useState(null),O=y.useRef(null),$=Lt(t,O,b.onContentChange),M=y.useRef(0),L=y.useRef(""),X=y.useRef(0),Z=y.useRef(null),Q=y.useRef("right"),K=y.useRef(0),V=m?fC:y.Fragment,ne=m?{as:es,allowPinchZoom:!0}:void 0,B=D=>{var A,W;const te=L.current+D,P=C().filter(xe=>!xe.disabled),Te=document.activeElement,Se=(A=P.find(xe=>xe.ref.current===Te))===null||A===void 0?void 0:A.textValue,Ce=P.map(xe=>xe.textValue),Ae=uW(Ce,te,Se),qe=(W=P.find(xe=>xe.textValue===Ae))===null||W===void 0?void 0:W.ref.current;(function xe(st){L.current=st,window.clearTimeout(M.current),st!==""&&(M.current=window.setTimeout(()=>xe(""),1e3))})(te),qe&&setTimeout(()=>qe.focus())};y.useEffect(()=>()=>window.clearTimeout(M.current),[]),IS();const w=y.useCallback(D=>{var A,W;return Q.current===((A=Z.current)===null||A===void 0?void 0:A.side)&&fW(D,(W=Z.current)===null||W===void 0?void 0:W.area)},[]);return y.createElement(VK,{scope:n,searchRef:L,onItemEnter:y.useCallback(D=>{w(D)&&D.preventDefault()},[w]),onItemLeave:y.useCallback(D=>{var A;w(D)||((A=O.current)===null||A===void 0||A.focus(),N(null))},[w]),onTriggerLeave:y.useCallback(D=>{w(D)&&D.preventDefault()},[w]),pointerGraceTimerRef:X,onPointerGraceIntentChange:y.useCallback(D=>{Z.current=D},[])},y.createElement(V,ne,y.createElement(MS,{asChild:!0,trapped:i,onMountAutoFocus:Ue(a,D=>{var A;D.preventDefault(),(A=O.current)===null||A===void 0||A.focus()}),onUnmountAutoFocus:o},y.createElement(OS,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h},y.createElement(a8,ue({asChild:!0},T,{dir:p.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:N,onEntryFocus:Ue(l,D=>{p.isUsingKeyboardRef.current||D.preventDefault()})}),y.createElement(DV,ue({role:"menu","aria-orientation":"vertical","data-state":_C(b.open),"data-radix-menu-content":"",dir:p.dir},v,g,{ref:$,style:{outline:"none",...g.style},onKeyDown:Ue(g.onKeyDown,D=>{const W=D.target.closest("[data-radix-menu-content]")===D.currentTarget,te=D.ctrlKey||D.altKey||D.metaKey,P=D.key.length===1;W&&(D.key==="Tab"&&D.preventDefault(),!te&&P&&B(D.key));const Te=O.current;if(D.target!==Te||!DK.includes(D.key))return;D.preventDefault();const Ce=C().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);hC.includes(D.key)&&Ce.reverse(),lW(Ce)}),onBlur:Ue(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(M.current),L.current="")}),onPointerMove:Ue(e.onPointerMove,U1(D=>{const A=D.target,W=K.current!==D.clientX;if(D.currentTarget.contains(A)&&W){const te=D.clientX>K.current?"right":"left";Q.current=te,K.current=D.clientX}}))})))))))}),YK=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.createElement(pt.div,ue({},r,{ref:t}))}),U5="MenuItem",z7="menu.itemSelect",u8=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=y.useRef(null),o=c0(U5,e.__scopeMenu),s=l8(U5,e.__scopeMenu),l=Lt(t,a),c=y.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(z7,{bubbles:!0,cancelable:!0});d.addEventListener(z7,h=>r==null?void 0:r(h),{once:!0}),fS(d,f),f.defaultPrevented?c.current=!1:o.onClose()}};return y.createElement(bC,ue({},i,{ref:l,disabled:n,onClick:Ue(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)===null||f===void 0||f.call(e,d),c.current=!0},onPointerUp:Ue(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)===null||f===void 0||f.click()}),onKeyDown:Ue(e.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||z5.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),bC=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=l8(U5,n),s=pC(n),l=y.useRef(null),c=Lt(t,l),[u,d]=y.useState(!1),[f,h]=y.useState("");return y.useEffect(()=>{const m=l.current;if(m){var g;h(((g=m.textContent)!==null&&g!==void 0?g:"").trim())}},[a.children]),y.createElement(z1.ItemSlot,{scope:n,disabled:r,textValue:i??f},y.createElement(o8,ue({asChild:!0},s,{focusable:!r}),y.createElement(pt.div,ue({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:Ue(e.onPointerMove,U1(m=>{r?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Ue(e.onPointerLeave,U1(m=>o.onItemLeave(m))),onFocus:Ue(e.onFocus,()=>d(!0)),onBlur:Ue(e.onBlur,()=>d(!1))}))))}),XK=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return y.createElement(TC,{scope:e.__scopeMenu,checked:n},y.createElement(u8,ue({role:"menuitemcheckbox","aria-checked":uh(n)?"mixed":n},i,{ref:t,"data-state":d8(n),onSelect:Ue(i.onSelect,()=>r==null?void 0:r(uh(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),QK="MenuRadioGroup",[Ide,ZK]=gl(QK,{value:void 0,onValueChange:()=>{}}),JK="MenuRadioItem",eW=y.forwardRef((e,t)=>{const{value:n,...r}=e,i=ZK(JK,e.__scopeMenu),a=n===i.value;return y.createElement(TC,{scope:e.__scopeMenu,checked:a},y.createElement(u8,ue({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":d8(a),onSelect:Ue(r.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})))}),EC="MenuItemIndicator",[TC,tW]=gl(EC,{checked:!1}),nW=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=tW(EC,n);return y.createElement(ir,{present:r||uh(a.checked)||a.checked===!0},y.createElement(pt.span,ue({},i,{ref:t,"data-state":d8(a.checked)})))}),rW=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.createElement(pt.div,ue({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),iW="MenuSub",[Mde,xC]=gl(iW),cd="MenuSubTrigger",aW=y.forwardRef((e,t)=>{const n=vl(cd,e.__scopeMenu),r=c0(cd,e.__scopeMenu),i=xC(cd,e.__scopeMenu),a=l8(cd,e.__scopeMenu),o=y.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},u=y.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return y.useEffect(()=>u,[u]),y.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.createElement(gC,ue({asChild:!0},c),y.createElement(bC,ue({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":_C(n.open)},e,{ref:_m(t,i.onTriggerChange),onClick:d=>{var f;(f=e.onClick)===null||f===void 0||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ue(e.onPointerMove,U1(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Ue(e.onPointerLeave,U1(d=>{var f;u();const h=(f=n.content)===null||f===void 0?void 0:f.getBoundingClientRect();if(h){var m;const g=(m=n.content)===null||m===void 0?void 0:m.dataset.side,b=g==="right",p=b?-5:5,v=h[b?"left":"right"],T=h[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+p,y:d.clientY},{x:v,y:h.top},{x:T,y:h.top},{x:T,y:h.bottom},{x:v,y:h.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Ue(e.onKeyDown,d=>{const f=a.searchRef.current!=="";if(!(e.disabled||f&&d.key===" ")&&PK[r.dir].includes(d.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),d.preventDefault()}})})))}),oW="MenuSubContent",sW=y.forwardRef((e,t)=>{const n=yC(Ri,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vl(Ri,e.__scopeMenu),o=c0(Ri,e.__scopeMenu),s=xC(oW,e.__scopeMenu),l=y.useRef(null),c=Lt(t,l);return y.createElement(z1.Provider,{scope:e.__scopeMenu},y.createElement(ir,{present:r||a.open},y.createElement(z1.Slot,{scope:e.__scopeMenu},y.createElement(c8,ue({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:c,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;o.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Ue(e.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Ue(e.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:Ue(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),f=$K[o.dir].includes(u.key);if(d&&f){var h;a.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),u.preventDefault()}})})))))});function _C(e){return e?"open":"closed"}function uh(e){return e==="indeterminate"}function d8(e){return uh(e)?"indeterminate":e?"checked":"unchecked"}function lW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function uW(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=cW(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function dW(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;ar!=u>r&&n<(c-s)*(r-l)/(u-l)+s&&(i=!i)}return i}function fW(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return dW(n,t)}function U1(e){return t=>t.pointerType==="mouse"?e(t):void 0}const hW=HK,mW=gC,pW=GK,gW=KK,vW=YK,yW=u8,bW=XK,EW=eW,TW=nW,xW=rW,_W=aW,wW=sW,wC="DropdownMenu",[SW,Lde]=jr(wC,[mC]),ci=mC(),[CW,SC]=SW(wC),AW=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=ci(t),c=y.useRef(null),[u=!1,d]=Xc({prop:i,defaultProp:a,onChange:o});return y.createElement(CW,{scope:t,triggerId:Gs(),triggerRef:c,contentId:Gs(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(f=>!f),[d]),modal:s},y.createElement(hW,ue({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},NW="DropdownMenuTrigger",kW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=SC(NW,n),o=ci(n);return y.createElement(mW,ue({asChild:!0},o),y.createElement(pt.button,ue({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:_m(t,a.triggerRef),onPointerDown:Ue(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:Ue(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),OW=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ci(t);return y.createElement(pW,ue({},r,n))},RW="DropdownMenuContent",IW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=SC(RW,n),a=ci(n),o=y.useRef(!1);return y.createElement(gW,ue({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:Ue(e.onCloseAutoFocus,s=>{var l;o.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:Ue(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),MW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(vW,ue({},i,r,{ref:t}))}),LW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(yW,ue({},i,r,{ref:t}))}),DW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(bW,ue({},i,r,{ref:t}))}),PW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(EW,ue({},i,r,{ref:t}))}),$W=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(TW,ue({},i,r,{ref:t}))}),FW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(xW,ue({},i,r,{ref:t}))}),BW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(_W,ue({},i,r,{ref:t}))}),zW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(wW,ue({},i,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),UW=AW,HW=kW,jW=OW,CC=IW,AC=MW,NC=LW,kC=DW,OC=PW,RC=$W,IC=FW,MC=BW,LC=zW,Om=UW,Rm=HW,GW=y.forwardRef(({className:e,inset:t,children:n,...r},i)=>x.jsxs(MC,{ref:i,className:ze("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,x.jsx(bF,{className:"ml-auto h-4 w-4"})]}));GW.displayName=MC.displayName;const VW=y.forwardRef(({className:e,...t},n)=>x.jsx(LC,{ref:n,className:ze("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...t}));VW.displayName=LC.displayName;const u0=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jW,{children:x.jsx(CC,{ref:r,sideOffset:t,className:ze("z-50 min-w-[6rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));u0.displayName=CC.displayName;const tl=y.forwardRef(({className:e,inset:t,...n},r)=>x.jsx(NC,{ref:r,className:ze("relative flex cursor-default select-none items-center hover:cursor-pointer rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));tl.displayName=NC.displayName;const KW=y.forwardRef(({className:e,children:t,checked:n,...r},i)=>x.jsxs(kC,{ref:i,className:ze("relative flex cursor-default select-none hover:cursor-pointer items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(RC,{children:x.jsx(P9,{className:"h-4 w-4"})})}),t]}));KW.displayName=kC.displayName;const WW=y.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(OC,{ref:r,className:ze("relative flex cursor-default select-none hover:cursor-pointer items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(RC,{children:x.jsx(Sw,{className:"h-2 w-2 fill-current"})})}),t]}));WW.displayName=OC.displayName;const qW=y.forwardRef(({className:e,inset:t,...n},r)=>x.jsx(AC,{ref:r,className:ze("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));qW.displayName=AC.displayName;const YW=y.forwardRef(({className:e,...t},n)=>x.jsx(IC,{ref:n,className:ze("-mx-1 my-1 h-px bg-muted",e),...t}));YW.displayName=IC.displayName;const DC=()=>{const{t:e}=a0(),[t,n]=$i(a=>[a.theme,a.setTheme]),r=a=>{n(a)},i=(a,o=14)=>({[Ss.LIGHT]:x.jsx(kF,{size:o}),[Ss.DARK]:x.jsx(_F,{size:o}),[Ss.SYSTEM]:x.jsx(xF,{size:o})})[a];return x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsx(ot,{variant:"ghost",className:"h-9 w-9 p-0",children:i(t,18)})}),x.jsx(u0,{align:"end",className:"w-32",children:[Ss.LIGHT,Ss.DARK,Ss.SYSTEM].map(a=>x.jsxs(tl,{className:"flex items-center gap-2",onClick:()=>r(a),children:[i(a)," ",e(a)]},a))})]})},XW=()=>{const e=Hr(),[t]=$i(s=>[s.appConfig]),[{nickname:n,avatar:r},i,a]=Fi(s=>[s.userInfo,s.signOut,s.isLogin()]),o=()=>{i(),e("/login")};return x.jsx(x.Fragment,{children:a?x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsxs(ot,{variant:"ghost",className:"p-0 px-2",children:[x.jsxs(P1,{className:"h-8 w-8",children:[x.jsx($1,{src:r||t.user_logo,alt:n}),x.jsx(wm,{children:n.slice(0,1)})]}),x.jsx("p",{className:"ml-2",children:n})]})}),x.jsxs(u0,{align:"end",children:[x.jsx(tl,{className:"flex items-center gap-2",onClick:()=>{e("/user")},children:"个人中心"}),x.jsx(tl,{className:"flex items-center gap-2",onClick:()=>o(),children:"退出登录"})]})]}):x.jsx(ot,{onClick:()=>e("/login"),children:"去登陆"})})};function PC({isPlain:e=!1}){const t=Hr(),{t:n}=a0(),[r,i,a]=$i(c=>[c.appConfig,c.theme,c.setTheme]),o=()=>{t("/chat")},s=ll(),l=[{path:"user",name:n("user center")},{path:"billing",name:n("billing center")}];return y.useEffect(()=>{a(i)},[]),x.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[x.jsxs("div",{className:"flex items-center",children:[x.jsxs("button",{className:"flex items-center gap-2 text-lg font-semibold",onClick:()=>o(),children:[x.jsx("img",{src:r.web_logo,className:"h-10 w-10 rounded-full"}),r.name]}),!e&&x.jsxs(x.Fragment,{children:[x.jsx(NS,{className:"mx-4 h-6",orientation:"vertical"}),l.map((c,u)=>x.jsx(eh,{to:c.path,children:x.jsx(ot,{className:"mr-1",variant:s.pathname.includes(c.path)?"default":"ghost",children:c.name})},u))]})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(eh,{to:"https://github.com/gptlink/gptlink-web",target:"_blank",children:x.jsx(ot,{variant:"ghost",className:"p-0 px-2",children:x.jsx(Nw,{size:18})})}),x.jsx(DC,{}),!e&&x.jsx(XW,{})]})]})}const $C="Tabs",[QW,Dde]=jr($C,[Zc]),FC=Zc(),[ZW,f8]=QW($C),JW=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=l0(s),[d,f]=Xc({prop:r,onChange:i,defaultProp:a});return y.createElement(ZW,{scope:n,baseId:Gs(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:l},y.createElement(pt.div,ue({dir:u,"data-orientation":o},c,{ref:t})))}),eq="TabsList",tq=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,a=f8(eq,n),o=FC(n);return y.createElement(a8,ue({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),y.createElement(pt.div,ue({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),nq="TabsTrigger",rq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=f8(nq,n),s=FC(n),l=BC(o.baseId,r),c=zC(o.baseId,r),u=r===o.value;return y.createElement(o8,ue({asChild:!0},s,{focusable:!i,active:u}),y.createElement(pt.button,ue({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},a,{ref:t,onMouseDown:Ue(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Ue(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Ue(e.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})))}),iq="TabsContent",aq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=f8(iq,n),l=BC(s.baseId,r),c=zC(s.baseId,r),u=r===s.value,d=y.useRef(u);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),y.createElement(ir,{present:i||u},({present:f})=>y.createElement(pt.div,ue({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&a))});function BC(e,t){return`${e}-trigger-${t}`}function zC(e,t){return`${e}-content-${t}`}const oq=JW,UC=tq,HC=rq,jC=aq,sq=oq,GC=y.forwardRef(({className:e,...t},n)=>x.jsx(UC,{ref:n,className:ze("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));GC.displayName=UC.displayName;const H5=y.forwardRef(({className:e,...t},n)=>x.jsx(HC,{ref:n,className:ze("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));H5.displayName=HC.displayName;const ff=y.forwardRef(({className:e,...t},n)=>x.jsx(jC,{ref:n,className:ze("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ff.displayName=jC.displayName;const VC=()=>{const[e,t,n]=Fi(a=>[a.setUserInfo,a.signOut,a.access_token]),r=Hr(),i=ll();y.useEffect(()=>{(async()=>{if(n)try{const o=await da.getUserProfile();e(o),i.pathname==="/login"&&r("/chat")}catch{r("/login"),t()}})()},[])},KC=()=>{const[e,t]=$i(n=>[n.setAppConfig,n.appConfig]);return y.useEffect(()=>{(async()=>{const[r,i,a]=await Promise.all([js.getAppConfig(),js.getLoginType(),js.getPaymentConfig()]);e({...r,...i,...a}),document.title=r.name})()},[]),t};var WC={exports:{}};(function(e,t){WC.exports=t(e)})(window,function(e,t){if(!e.jWeixin){var n,r={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},i=function(){var w={};for(var D in r)w[r[D]]=D;return w}(),a=e.document,o=a.title,s=navigator.userAgent.toLowerCase(),l=navigator.platform.toLowerCase(),c=!(!l.match("mac")&&!l.match("win")),u=s.indexOf("wxdebugger")!=-1,d=s.indexOf("micromessenger")!=-1,f=s.indexOf("android")!=-1,h=s.indexOf("iphone")!=-1||s.indexOf("ipad")!=-1,m=(n=s.match(/micromessenger\/(\d+\.\d+\.\d+)/)||s.match(/micromessenger\/(\d+\.\d+)/))?n[1]:"",g={initStartTime:ne(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},b={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:h?1:f?2:-1,clientVersion:m,url:encodeURIComponent(location.href)},p={},v={_completes:[]},T={state:0,data:{}};B(function(){g.initEndTime=ne()});var C=!1,R=[],N={config:function(w){V("config",p=w);var D=p.check!==!1;B(function(){if(D)M(r.config,{verifyJsApiList:K(p.jsApiList),verifyOpenTagList:K(p.openTagList)},function(){v._complete=function(Te){g.preVerifyEndTime=ne(),T.state=1,T.data=Te},v.success=function(Te){b.isPreVerifyOk=0},v.fail=function(Te){v._fail?v._fail(Te):T.state=-1};var P=v._completes;return P.push(function(){(function(){if(!(c||u||p.debug||m<"6.0.2"||b.systemType<0)){var Te=new Image;b.appId=p.appId,b.initTime=g.initEndTime-g.initStartTime,b.preVerifyTime=g.preVerifyEndTime-g.preVerifyStartTime,N.getNetworkType({isInnerInvoke:!0,success:function(Se){b.networkType=Se.networkType;var Ce="https://open.weixin.qq.com/sdk/report?v="+b.version+"&o="+b.isPreVerifyOk+"&s="+b.systemType+"&c="+b.clientVersion+"&a="+b.appId+"&n="+b.networkType+"&i="+b.initTime+"&p="+b.preVerifyTime+"&u="+b.url;Te.src=Ce}})}})()}),v.complete=function(Te){for(var Se=0,Ce=P.length;Se(e.REGISTER="register",e.INVITE="invite",e.SHARE="share",e))(ia||{});const ks={getTaskList(e){return Rt(`task?platform=${e}`)},checkTask(e){return Rt("task/check",{method:"post",body:JSON.stringify({type:e})})},completionTask(e){return Rt("task/completion",{method:"post",body:JSON.stringify({type:e})})},getUnreadTaskList(e){return Rt(`/task/record/unread?type=${e}`)},readTask(e){return Rt(`task/record/${e}/read`,{method:"put"})}},h8=()=>{const[e]=Fi(i=>[i.isLogin()]),[t]=Q9(i=>[i.getCurrentBilling]);async function n(){if(!e)return;const i=ia.SHARE,{result:a}=await ks.completionTask(i);if(!a)return;const o=await ks.getUnreadTaskList(i);k5(o)||(await ks.readTask(i),t(),hn(()=>x.jsxs("div",{children:[x.jsx("div",{className:"bold text-lg",children:"👏 今日分享已完成!"}),x.jsx("div",{className:"mt-4",children:`${o.num===-1?`您的对话使用时长将延长${o.expired_day}天`:`您的对话次数将增加${o.num}次`} - ,请前往使用吧`})]})))}async function r(i){if(!e)return;const{result:a}=await ks.checkTask(i);if(!a)return;const o=await ks.getUnreadTaskList(i);k5(o)||(await ks.readTask(i),t(),hn(()=>x.jsxs("div",{children:[x.jsx("div",{className:"bold text-lg",children:i===ia.REGISTER?"👏 欢迎加入,尽情使用吧":`👏 ${o.record_count}个好友加入,真给力!`}),i===ia.REGISTER?x.jsx("div",{className:"mt-4",children:`您将有${o.num===-1?`${o.expired_day*o.record_count}天无限次`:`${o.num*o.record_count}次`}机会与您的助理对话,请前往使用吧`}):x.jsx("div",{className:"mt-4",children:`${o.num===-1?`+${o.expired_day*o.record_count}天对话时长`:`+${o.num*o.record_count}次对话次数`}`})]})))}return{shareCallback:n,checkTask:r}},cq=e=>{zl.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","updateTimelineShareData","updateAppMessageShareData"],openTagList:e.openTagList})},d0=()=>{const[{openid:e}]=Fi(c=>[c.userInfo]),{shareCallback:t}=h8(),n=window.location.origin+window.location.pathname,{VITE_API_DOMAIN:r}={VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},i=y.useMemo(()=>{const c=navigator.userAgent.toLowerCase();return!!/micromessenger/.test(c)},[navigator]),a=()=>{const c=`${r}/wechat/weixin/redirect?redirect_url=${n}`;window.location.href=c},o=(c,u)=>{const d=c.data;if(window.WeixinJSBridge&&d){const{appId:f,timeStamp:h,nonceStr:m,signType:g,paySign:b}=d,p={appId:f,timeStamp:h,nonceStr:m,signType:g,paySign:b,package:d.package};window.WeixinJSBridge.invoke("getBrandWCPayRequest",p,v=>{v.err_msg==="get_brand_wcpay_request:ok"&&u()})}};return{isWeixinBrowser:i,weChatLogin:a,weChatPay:(c,u)=>{typeof window.WeixinJSBridge>"u"?document.addEventListener("WeixinJSBridgeReady",o(c,u)):o(c,u)},setWeixinShare:async()=>{const[c,u]=await Promise.all([js.getJsSDK(window.location.href),js.getShareConfig()]),d={title:u.title,link:`${window.location.origin}${e?`/?shareOpenId=${e}`:""}`,imgUrl:u.img_url,desc:"",success:()=>{console.log("设置成功")},cancel:()=>{hn.error("设置失败")}},f={...d,success:async()=>{t()},cancel:()=>{hn.error("取消分享")}};cq(c.data),zl.updateAppMessageShareData(d),zl.updateTimelineShareData(d),zl.onMenuShareTimeline(f),zl.onMenuShareAppMessage(f),zl.error(h=>{console.error("分享内容错误:",h)})}}},qC=()=>{const[e,t]=hw();y.useEffect(()=>{const n=e.get("shareOpenId");n&&(localStorage.setItem(yr.ShareOpenId,n),t(""))},[])};function YC(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const XC="Checkbox",[uq,Pde]=jr(XC),[dq,fq]=uq(XC),hq=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:c,...u}=e,[d,f]=y.useState(null),h=Lt(t,T=>f(T)),m=y.useRef(!1),g=d?!!d.closest("form"):!0,[b=!1,p]=Xc({prop:i,defaultProp:a,onChange:c}),v=y.useRef(b);return y.useEffect(()=>{const T=d==null?void 0:d.form;if(T){const C=()=>p(v.current);return T.addEventListener("reset",C),()=>T.removeEventListener("reset",C)}},[d,p]),y.createElement(dq,{scope:n,state:b,disabled:s},y.createElement(pt.button,ue({type:"button",role:"checkbox","aria-checked":Vs(b)?"mixed":b,"aria-required":o,"data-state":QC(b),"data-disabled":s?"":void 0,disabled:s,value:l},u,{ref:h,onKeyDown:Ue(e.onKeyDown,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Ue(e.onClick,T=>{p(C=>Vs(C)?!0:!C),g&&(m.current=T.isPropagationStopped(),m.current||T.stopPropagation())})})),g&&y.createElement(gq,{control:d,bubbles:!m.current,name:r,value:l,checked:b,required:o,disabled:s,style:{transform:"translateX(-100%)"}}))}),mq="CheckboxIndicator",pq=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,a=fq(mq,n);return y.createElement(ir,{present:r||Vs(a.state)||a.state===!0},y.createElement(pt.span,ue({"data-state":QC(a.state),"data-disabled":a.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),gq=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=y.useRef(null),o=YC(n),s=r8(t);return y.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});l.indeterminate=Vs(n),d.call(l,Vs(n)?!1:n),l.dispatchEvent(f)}},[o,n,r]),y.createElement("input",ue({type:"checkbox","aria-hidden":!0,defaultChecked:Vs(n)?!1:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Vs(e){return e==="indeterminate"}function QC(e){return Vs(e)?"indeterminate":e?"checked":"unchecked"}const ZC=hq,vq=pq,Im=y.forwardRef(({className:e,...t},n)=>x.jsx(ZC,{ref:n,className:ze("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:x.jsx(vq,{className:ze("flex items-center justify-center text-current"),children:x.jsx(P9,{className:"h-4 w-4"})})}));Im.displayName=ZC.displayName;const JC="Dialog",[eA,tA]=jr(JC),[yq,Bi]=eA(JC),bq=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=y.useRef(null),l=y.useRef(null),[c=!1,u]=Xc({prop:r,defaultProp:i,onChange:a});return y.createElement(yq,{scope:t,triggerRef:s,contentRef:l,contentId:Gs(),titleId:Gs(),descriptionId:Gs(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o},n)},Eq="DialogTrigger",Tq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(Eq,n),a=Lt(t,i.triggerRef);return y.createElement(pt.button,ue({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":m8(i.open)},r,{ref:a,onClick:Ue(e.onClick,i.onOpenToggle)}))}),nA="DialogPortal",[xq,rA]=eA(nA,{forceMount:void 0}),_q=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Bi(nA,t);return y.createElement(xq,{scope:t,forceMount:n},y.Children.map(r,o=>y.createElement(ir,{present:n||a.open},y.createElement(JS,{asChild:!0,container:i},o))))},j5="DialogOverlay",wq=y.forwardRef((e,t)=>{const n=rA(j5,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Bi(j5,e.__scopeDialog);return a.modal?y.createElement(ir,{present:r||a.open},y.createElement(Sq,ue({},i,{ref:t}))):null}),Sq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(j5,n);return y.createElement(fC,{as:es,allowPinchZoom:!0,shards:[i.contentRef]},y.createElement(pt.div,ue({"data-state":m8(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Lc="DialogContent",Cq=y.forwardRef((e,t)=>{const n=rA(Lc,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Bi(Lc,e.__scopeDialog);return y.createElement(ir,{present:r||a.open},a.modal?y.createElement(Aq,ue({},i,{ref:t})):y.createElement(Nq,ue({},i,{ref:t})))}),Aq=y.forwardRef((e,t)=>{const n=Bi(Lc,e.__scopeDialog),r=y.useRef(null),i=Lt(t,n.contentRef,r);return y.useEffect(()=>{const a=r.current;if(a)return rC(a)},[]),y.createElement(iA,ue({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,a=>a.preventDefault())}))}),Nq=y.forwardRef((e,t)=>{const n=Bi(Lc,e.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return y.createElement(iA,ue({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:a=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}}))}),iA=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Bi(Lc,n),l=y.useRef(null),c=Lt(t,l);return IS(),y.createElement(y.Fragment,null,y.createElement(MS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},y.createElement(OS,ue({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":m8(s.open)},o,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),aA="DialogTitle",kq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(aA,n);return y.createElement(pt.h2,ue({id:i.titleId},r,{ref:t}))}),Oq="DialogDescription",Rq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(Oq,n);return y.createElement(pt.p,ue({id:i.descriptionId},r,{ref:t}))}),Iq="DialogClose",Mq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(Iq,n);return y.createElement(pt.button,ue({type:"button"},r,{ref:t,onClick:Ue(e.onClick,()=>i.onOpenChange(!1))}))});function m8(e){return e?"open":"closed"}const Lq="DialogTitleWarning",[Dq,$de]=nG(Lq,{contentName:Lc,titleName:aA,docsSlug:"dialog"}),p8=bq,g8=Tq,f0=_q,h0=wq,m0=Cq,p0=kq,g0=Rq,Mm=Mq,Pq="AlertDialog",[$q,Fde]=jr(Pq,[tA]),ao=tA(),Fq=e=>{const{__scopeAlertDialog:t,...n}=e,r=ao(t);return y.createElement(p8,ue({},r,n,{modal:!0}))},Bq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(g8,ue({},i,r,{ref:t}))}),zq=e=>{const{__scopeAlertDialog:t,...n}=e,r=ao(t);return y.createElement(f0,ue({},r,n))},Uq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(h0,ue({},i,r,{ref:t}))}),oA="AlertDialogContent",[Hq,jq]=$q(oA),Gq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,a=ao(n),o=y.useRef(null),s=Lt(t,o),l=y.useRef(null);return y.createElement(Dq,{contentName:oA,titleName:Vq,docsSlug:"alert-dialog"},y.createElement(Hq,{scope:n,cancelRef:l},y.createElement(m0,ue({role:"alertdialog"},a,i,{ref:s,onOpenAutoFocus:Ue(i.onOpenAutoFocus,c=>{var u;c.preventDefault(),(u=l.current)===null||u===void 0||u.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault()}),y.createElement(dS,null,r),!1)))}),Vq="AlertDialogTitle",Kq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(p0,ue({},i,r,{ref:t}))}),Wq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(g0,ue({},i,r,{ref:t}))}),qq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(Mm,ue({},i,r,{ref:t}))}),Yq="AlertDialogCancel",Xq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=jq(Yq,n),a=ao(n),o=Lt(t,i);return y.createElement(Mm,ue({},a,r,{ref:o}))}),Qq=Fq,Zq=Bq,sA=zq,lA=Uq,cA=Gq,uA=qq,dA=Xq,fA=Kq,hA=Wq,Lm=Qq,v8=Zq,mA=({className:e,children:t,...n})=>x.jsx(sA,{className:ze(e),...n,children:x.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:t})});mA.displayName=sA.displayName;const pA=y.forwardRef(({className:e,...t},n)=>x.jsx(lA,{className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-opacity animate-in fade-in",e),...t,ref:n}));pA.displayName=lA.displayName;const v0=y.forwardRef(({className:e,...t},n)=>x.jsxs(mA,{children:[x.jsx(pA,{}),x.jsx(cA,{ref:n,className:ze("fixed z-50 grid w-full max-w-lg scale-100 gap-4 border bg-background p-6 opacity-100 shadow-lg animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full",e),...t})]}));v0.displayName=cA.displayName;const y0=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col space-y-2 text-center sm:text-left",e),...t});y0.displayName="AlertDialogHeader";const Dm=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Dm.displayName="AlertDialogFooter";const b0=y.forwardRef(({className:e,...t},n)=>x.jsx(fA,{ref:n,className:ze("text-lg font-semibold",e),...t}));b0.displayName=fA.displayName;const dh=y.forwardRef(({className:e,...t},n)=>x.jsx(hA,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));dh.displayName=hA.displayName;const Pm=y.forwardRef(({className:e,...t},n)=>x.jsx(uA,{ref:n,className:ze(e8(),e),...t}));Pm.displayName=uA.displayName;const gA=y.forwardRef(({className:e,...t},n)=>x.jsx(dA,{ref:n,className:ze(e8({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));gA.displayName=dA.displayName;function Jq({checked:e,onCheckedChange:t}){const[n,r]=y.useState({title:"",agreement:"",enable:!1});return y.useEffect(()=>{js.getConfigAgreement().then(i=>{r(i),i.enable||t(!0)})},[]),n.enable?x.jsxs(x.Fragment,{children:[x.jsx(Im,{className:"mr-2",checked:e,onCheckedChange:t}),"我已阅读并同意",x.jsxs(Lm,{children:[x.jsx(v8,{children:x.jsxs("span",{className:"text-blue-600",children:["《",n.title,"》"]})}),x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsx(b0,{children:n.title})}),x.jsx(dh,{className:"h-96 overflow-auto",dangerouslySetInnerHTML:{__html:n.agreement}}),x.jsx(Dm,{children:x.jsx(Pm,{children:"确认"})})]})]})]}):x.jsx(x.Fragment,{})}const Jc=p8,vA=g8,yA=({className:e,children:t,...n})=>x.jsx(f0,{className:ze(e),...n,children:x.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center sm:items-center",children:t})});yA.displayName=f0.displayName;const bA=y.forwardRef(({className:e,...t},n)=>x.jsx(h0,{ref:n,className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t}));bA.displayName=h0.displayName;const yl=y.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(yA,{children:[x.jsx(bA,{}),x.jsxs(m0,{ref:r,className:ze("fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",e),...n,children:[t,x.jsxs(Mm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[x.jsx(gm,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yl.displayName=m0.displayName;const EA=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});EA.displayName="DialogHeader";const TA=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});TA.displayName="DialogFooter";const eu=y.forwardRef(({className:e,...t},n)=>x.jsx(p0,{ref:n,className:ze("text-lg font-semibold leading-none tracking-tight",e),...t}));eu.displayName=p0.displayName;const y8=y.forwardRef(({className:e,...t},n)=>x.jsx(g0,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));y8.displayName=g0.displayName;function eY({open:e,qrCode:t,handleOpenChange:n}){return x.jsx(Jc,{open:e,onOpenChange:n,children:x.jsx(yl,{children:x.jsx("iframe",{className:"m-auto h-[30rem] w-full overflow-hidden py-8",src:t,sandbox:"allow-scripts allow-top-navigation"})})})}var E0=e=>e.type==="checkbox",lc=e=>e instanceof Date,Xn=e=>e==null;const xA=e=>typeof e=="object";var bn=e=>!Xn(e)&&!Array.isArray(e)&&xA(e)&&!lc(e),_A=e=>bn(e)&&e.target?E0(e.target)?e.target.checked:e.target.value:e,tY=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,wA=(e,t)=>e.has(tY(t)),nY=e=>{const t=e.constructor&&e.constructor.prototype;return bn(t)&&t.hasOwnProperty("isPrototypeOf")},b8=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wi(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(b8&&(e instanceof Blob||e instanceof FileList))&&(n||bn(e)))if(t=n?[]:{},!n&&!nY(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Wi(e[r]));else return e;return t}var T0=e=>Array.isArray(e)?e.filter(Boolean):[],on=e=>e===void 0,Oe=(e,t,n)=>{if(!t||!bn(e))return n;const r=T0(t.split(/[,[\].]+?/)).reduce((i,a)=>Xn(i)?i:i[a],e);return on(r)||r===e?on(e[t])?n:e[t]:r};const fh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ci={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},SA=We.createContext(null),$m=()=>We.useContext(SA),rY=e=>{const{children:t,...n}=e;return We.createElement(SA.Provider,{value:n},t)};var CA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ci.all&&(t._proxyFormState[o]=!r||Ci.all),n&&(n[o]=!0),e[o]}});return i},qr=e=>bn(e)&&!Object.keys(e).length,AA=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return qr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ci.all))},hf=e=>Array.isArray(e)?e:[e],NA=(e,t,n)=>n&&t?e===t:!e||!t||e===t||hf(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function E8(e){const t=We.useRef(e);t.current=e,We.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function iY(e){const t=$m(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=We.useState(n._formState),l=We.useRef(!0),c=We.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=We.useRef(i);return u.current=i,E8({disabled:r,next:d=>l.current&&NA(u.current,d.name,a)&&AA(d,c.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),We.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),CA(o,n,c.current,!1)}var ea=e=>typeof e=="string",kA=(e,t,n,r,i)=>ea(e)?(r&&t.watch.add(e),Oe(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Oe(n,a))):(r&&(t.watchAll=!0),n);function aY(e){const t=$m(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=We.useRef(r);s.current=r,E8({disabled:a,subject:n._subjects.values,next:u=>{NA(s.current,u.name,o)&&c(Wi(kA(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=We.useState(n._getWatch(r,i));return We.useEffect(()=>n._removeUnmounted()),l}var T8=e=>/^\w*$/.test(e),OA=e=>T0(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Ot(e,t,n){let r=-1;const i=T8(t)?[t]:OA(t),a=i.length,o=a-1;for(;++r{const c=r._options.shouldUnregister||i,u=(d,f)=>{const h=Oe(r._fields,d);h&&(h._f.mount=f)};if(u(n,!0),c){const d=Wi(Oe(r._options.defaultValues,n));Ot(r._defaultValues,n,d),on(Oe(r._formValues,n))&&Ot(r._formValues,n,d)}return()=>{(a?c&&!r._state.action:c)?r.unregister(n):u(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:We.useCallback(c=>l.current.onChange({target:{value:_A(c),name:n},type:fh.CHANGE}),[n]),onBlur:We.useCallback(()=>l.current.onBlur({target:{value:Oe(r._formValues,n),name:n},type:fh.BLUR}),[n,r]),ref:c=>{const u=Oe(r._fields,n);u&&c&&(u._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Oe(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!Oe(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Oe(s.touchedFields,n)},error:{enumerable:!0,get:()=>Oe(s.errors,n)}})}}const sY=e=>e.render(oY(e));var RA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const G5=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=Oe(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else bn(o)&&G5(o,t)}}};var U7=e=>({isOnSubmit:!e||e===Ci.onSubmit,isOnBlur:e===Ci.onBlur,isOnChange:e===Ci.onChange,isOnAll:e===Ci.all,isOnTouch:e===Ci.onTouched}),H7=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),lY=(e,t,n)=>{const r=T0(Oe(e,n));return Ot(r,"root",t[n]),Ot(e,n,r),e},bc=e=>typeof e=="boolean",x8=e=>e.type==="file",Lo=e=>typeof e=="function",hh=e=>{if(!b8)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},mf=e=>ea(e),_8=e=>e.type==="radio",mh=e=>e instanceof RegExp;const j7={value:!1,isValid:!1},G7={value:!0,isValid:!0};var IA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!on(e[0].attributes.value)?on(e[0].value)||e[0].value===""?G7:{value:e[0].value,isValid:!0}:G7:j7}return j7};const V7={isValid:!1,value:null};var MA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,V7):V7;function K7(e,t,n="validate"){if(mf(e)||Array.isArray(e)&&e.every(mf)||bc(e)&&!e)return{type:n,message:mf(e)?e:"",ref:t}}var Ml=e=>bn(e)&&!mh(e)?e:{value:e,message:""},W7=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:m,valueAsNumber:g,mount:b,disabled:p}=e._f,v=Oe(t,m);if(!b||p)return{};const T=o?o[0]:a,C=Z=>{r&&T.reportValidity&&(T.setCustomValidity(bc(Z)?"":Z||""),T.reportValidity())},R={},N=_8(a),O=E0(a),$=N||O,M=(g||x8(a))&&on(a.value)&&on(v)||hh(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,L=RA.bind(null,m,n,R),X=(Z,Q,K,V=xa.maxLength,ne=xa.minLength)=>{const B=Z?Q:K;R[m]={type:Z?V:ne,message:B,ref:a,...L(Z?V:ne,B)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(M||Xn(v))||bc(v)&&!v||O&&!IA(o).isValid||N&&!MA(o).isValid)){const{value:Z,message:Q}=mf(s)?{value:!!s,message:s}:Ml(s);if(Z&&(R[m]={type:xa.required,message:Q,ref:T,...L(xa.required,Q)},!n))return C(Q),R}if(!M&&(!Xn(u)||!Xn(d))){let Z,Q;const K=Ml(d),V=Ml(u);if(!Xn(v)&&!isNaN(v)){const ne=a.valueAsNumber||v&&+v;Xn(K.value)||(Z=ne>K.value),Xn(V.value)||(Q=nenew Date(new Date().toDateString()+" "+A),w=a.type=="time",D=a.type=="week";ea(K.value)&&v&&(Z=w?B(v)>B(K.value):D?v>K.value:ne>new Date(K.value)),ea(V.value)&&v&&(Q=w?B(v)+Z.value,V=!Xn(Q.value)&&v.length<+Q.value;if((K||V)&&(X(K,Z.message,Q.message),!n))return C(R[m].message),R}if(f&&!M&&ea(v)){const{value:Z,message:Q}=Ml(f);if(mh(Z)&&!v.match(Z)&&(R[m]={type:xa.pattern,message:Q,ref:a,...L(xa.pattern,Q)},!n))return C(Q),R}if(h){if(Lo(h)){const Z=await h(v,t),Q=K7(Z,T);if(Q&&(R[m]={...Q,...L(xa.validate,Q.message)},!n))return C(Q.message),R}else if(bn(h)){let Z={};for(const Q in h){if(!qr(Z)&&!n)break;const K=K7(await h[Q](v,t),T,Q);K&&(Z={...K,...L(Q,K.message)},C(K.message),n&&(R[m]=Z))}if(!qr(Z)&&(R[m]={ref:T,...Z},!n))return R}}return C(!0),R};function cY(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var ph=e=>Xn(e)||!xA(e);function Fs(e,t){if(ph(e)||ph(t))return e===t;if(lc(e)&&lc(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(lc(a)&&lc(o)||bn(a)&&bn(o)||Array.isArray(a)&&Array.isArray(o)?!Fs(a,o):a!==o)return!1}}return!0}var LA=e=>e.type==="select-multiple",dY=e=>_8(e)||E0(e),Eg=e=>hh(e)&&e.isConnected,DA=e=>{for(const t in e)if(Lo(e[t]))return!0;return!1};function gh(e,t={}){const n=Array.isArray(e);if(bn(e)||n)for(const r in e)Array.isArray(e[r])||bn(e[r])&&!DA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},gh(e[r],t[r])):Xn(e[r])||(t[r]=!0);return t}function PA(e,t,n){const r=Array.isArray(e);if(bn(e)||r)for(const i in e)Array.isArray(e[i])||bn(e[i])&&!DA(e[i])?on(t)||ph(n[i])?n[i]=Array.isArray(e[i])?gh(e[i],[]):{...gh(e[i])}:PA(e[i],Xn(t)?{}:t[i],n[i]):n[i]=!Fs(e[i],t[i]);return n}var Tg=(e,t)=>PA(e,t,gh(t)),$A=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>on(e)?e:t?e===""?NaN:e&&+e:n&&ea(e)?new Date(e):r?r(e):e;function xg(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return x8(t)?t.files:_8(t)?MA(e.refs).value:LA(t)?[...t.selectedOptions].map(({value:n})=>n):E0(t)?IA(e.refs).value:$A(on(t.value)?e.ref.value:t.value,e)}var fY=(e,t,n,r)=>{const i={};for(const a of e){const o=Oe(t,a);o&&Ot(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},wu=e=>on(e)?e:mh(e)?e.source:bn(e)?mh(e.value)?e.value.source:e.value:e,hY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function q7(e,t,n){const r=Oe(e,n);if(r||T8(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Oe(t,a),s=Oe(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var mY=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,pY=(e,t)=>!T0(Oe(e,t)).length&&kn(e,t);const gY={mode:Ci.onSubmit,reValidateMode:Ci.onChange,shouldFocusError:!0};function vY(e={},t){let n={...gY,...e},r={submitCount:0,isDirty:!1,isLoading:Lo(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=bn(n.defaultValues)||bn(n.values)?Wi(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Wi(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:bg(),array:bg(),state:bg()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,m=U7(n.mode),g=U7(n.reValidateMode),b=n.criteriaMode===Ci.all,p=j=>ie=>{clearTimeout(u),u=setTimeout(j,ie)},v=async j=>{if(d.isValid||j){const ie=n.resolver?qr((await M()).errors):await X(i,!0);ie!==r.isValid&&f.state.next({isValid:ie})}},T=j=>d.isValidating&&f.state.next({isValidating:j}),C=(j,ie=[],ae,le,_e=!0,ce=!0)=>{if(le&&ae){if(s.action=!0,ce&&Array.isArray(Oe(i,j))){const be=ae(Oe(i,j),le.argA,le.argB);_e&&Ot(i,j,be)}if(ce&&Array.isArray(Oe(r.errors,j))){const be=ae(Oe(r.errors,j),le.argA,le.argB);_e&&Ot(r.errors,j,be),pY(r.errors,j)}if(d.touchedFields&&ce&&Array.isArray(Oe(r.touchedFields,j))){const be=ae(Oe(r.touchedFields,j),le.argA,le.argB);_e&&Ot(r.touchedFields,j,be)}d.dirtyFields&&(r.dirtyFields=Tg(a,o)),f.state.next({name:j,isDirty:Q(j,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ot(o,j,ie)},R=(j,ie)=>{Ot(r.errors,j,ie),f.state.next({errors:r.errors})},N=(j,ie,ae,le)=>{const _e=Oe(i,j);if(_e){const ce=Oe(o,j,on(ae)?Oe(a,j):ae);on(ce)||le&&le.defaultChecked||ie?Ot(o,j,ie?ce:xg(_e._f)):ne(j,ce),s.mount&&v()}},O=(j,ie,ae,le,_e)=>{let ce=!1,be=!1;const gt={name:j};if(!ae||le){d.isDirty&&(be=r.isDirty,r.isDirty=gt.isDirty=Q(),ce=be!==gt.isDirty);const vt=Fs(Oe(a,j),ie);be=Oe(r.dirtyFields,j),vt?kn(r.dirtyFields,j):Ot(r.dirtyFields,j,!0),gt.dirtyFields=r.dirtyFields,ce=ce||d.dirtyFields&&be!==!vt}if(ae){const vt=Oe(r.touchedFields,j);vt||(Ot(r.touchedFields,j,ae),gt.touchedFields=r.touchedFields,ce=ce||d.touchedFields&&vt!==ae)}return ce&&_e&&f.state.next(gt),ce?gt:{}},$=(j,ie,ae,le)=>{const _e=Oe(r.errors,j),ce=d.isValid&&bc(ie)&&r.isValid!==ie;if(e.delayError&&ae?(c=p(()=>R(j,ae)),c(e.delayError)):(clearTimeout(u),c=null,ae?Ot(r.errors,j,ae):kn(r.errors,j)),(ae?!Fs(_e,ae):_e)||!qr(le)||ce){const be={...le,...ce&&bc(ie)?{isValid:ie}:{},errors:r.errors,name:j};r={...r,...be},f.state.next(be)}T(!1)},M=async j=>n.resolver(o,n.context,fY(j||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async j=>{const{errors:ie}=await M();if(j)for(const ae of j){const le=Oe(ie,ae);le?Ot(r.errors,ae,le):kn(r.errors,ae)}else r.errors=ie;return ie},X=async(j,ie,ae={valid:!0})=>{for(const le in j){const _e=j[le];if(_e){const{_f:ce,...be}=_e;if(ce){const gt=l.array.has(ce.name),vt=await W7(_e,o,b,n.shouldUseNativeValidation&&!ie,gt);if(vt[ce.name]&&(ae.valid=!1,ie))break;!ie&&(Oe(vt,ce.name)?gt?lY(r.errors,vt,ce.name):Ot(r.errors,ce.name,vt[ce.name]):kn(r.errors,ce.name))}be&&await X(be,ie,ae)}}return ae.valid},Z=()=>{for(const j of l.unMount){const ie=Oe(i,j);ie&&(ie._f.refs?ie._f.refs.every(ae=>!Eg(ae)):!Eg(ie._f.ref))&&Ce(j)}l.unMount=new Set},Q=(j,ie)=>(j&&ie&&Ot(o,j,ie),!Fs(W(),a)),K=(j,ie,ae)=>kA(j,l,{...s.mount?o:on(ie)?a:ea(j)?{[j]:ie}:ie},ae,ie),V=j=>T0(Oe(s.mount?o:a,j,e.shouldUnregister?Oe(a,j,[]):[])),ne=(j,ie,ae={})=>{const le=Oe(i,j);let _e=ie;if(le){const ce=le._f;ce&&(!ce.disabled&&Ot(o,j,$A(ie,ce)),_e=hh(ce.ref)&&Xn(ie)?"":ie,LA(ce.ref)?[...ce.ref.options].forEach(be=>be.selected=_e.includes(be.value)):ce.refs?E0(ce.ref)?ce.refs.length>1?ce.refs.forEach(be=>(!be.defaultChecked||!be.disabled)&&(be.checked=Array.isArray(_e)?!!_e.find(gt=>gt===be.value):_e===be.value)):ce.refs[0]&&(ce.refs[0].checked=!!_e):ce.refs.forEach(be=>be.checked=be.value===_e):x8(ce.ref)?ce.ref.value="":(ce.ref.value=_e,ce.ref.type||f.values.next({name:j,values:{...o}})))}(ae.shouldDirty||ae.shouldTouch)&&O(j,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&A(j)},B=(j,ie,ae)=>{for(const le in ie){const _e=ie[le],ce=`${j}.${le}`,be=Oe(i,ce);(l.array.has(j)||!ph(_e)||be&&!be._f)&&!lc(_e)?B(ce,_e,ae):ne(ce,_e,ae)}},w=(j,ie,ae={})=>{const le=Oe(i,j),_e=l.array.has(j),ce=Wi(ie);Ot(o,j,ce),_e?(f.array.next({name:j,values:{...o}}),(d.isDirty||d.dirtyFields)&&ae.shouldDirty&&f.state.next({name:j,dirtyFields:Tg(a,o),isDirty:Q(j,ce)})):le&&!le._f&&!Xn(ce)?B(j,ce,ae):ne(j,ce,ae),H7(j,l)&&f.state.next({...r}),f.values.next({name:j,values:{...o}}),!s.mount&&t()},D=async j=>{const ie=j.target;let ae=ie.name,le=!0;const _e=Oe(i,ae),ce=()=>ie.type?xg(_e._f):_A(j);if(_e){let be,gt;const vt=ce(),Dn=j.type===fh.BLUR||j.type===fh.FOCUS_OUT,ba=!hY(_e._f)&&!n.resolver&&!Oe(r.errors,ae)&&!_e._f.deps||mY(Dn,Oe(r.touchedFields,ae),r.isSubmitted,g,m),G=H7(ae,l,Dn);Ot(o,ae,vt),Dn?(_e._f.onBlur&&_e._f.onBlur(j),c&&c(0)):_e._f.onChange&&_e._f.onChange(j);const re=O(ae,vt,Dn,!1),pe=!qr(re)||G;if(!Dn&&f.values.next({name:ae,type:j.type,values:{...o}}),ba)return d.isValid&&v(),pe&&f.state.next({name:ae,...G?{}:re});if(!Dn&&G&&f.state.next({...r}),T(!0),n.resolver){const{errors:Y}=await M([ae]),J=q7(r.errors,i,ae),oe=q7(Y,i,J.name||ae);be=oe.error,ae=oe.name,gt=qr(Y)}else be=(await W7(_e,o,b,n.shouldUseNativeValidation))[ae],le=isNaN(vt)||vt===Oe(o,ae,vt),le&&(be?gt=!1:d.isValid&&(gt=await X(i,!0)));le&&(_e._f.deps&&A(_e._f.deps),$(ae,gt,be,re))}},A=async(j,ie={})=>{let ae,le;const _e=hf(j);if(T(!0),n.resolver){const ce=await L(on(j)?j:_e);ae=qr(ce),le=j?!_e.some(be=>Oe(ce,be)):ae}else j?(le=(await Promise.all(_e.map(async ce=>{const be=Oe(i,ce);return await X(be&&be._f?{[ce]:be}:be)}))).every(Boolean),!(!le&&!r.isValid)&&v()):le=ae=await X(i);return f.state.next({...!ea(j)||d.isValid&&ae!==r.isValid?{}:{name:j},...n.resolver||!j?{isValid:ae}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!le&&G5(i,ce=>ce&&Oe(r.errors,ce),j?_e:l.mount),le},W=j=>{const ie={...a,...s.mount?o:{}};return on(j)?ie:ea(j)?Oe(ie,j):j.map(ae=>Oe(ie,ae))},te=(j,ie)=>({invalid:!!Oe((ie||r).errors,j),isDirty:!!Oe((ie||r).dirtyFields,j),isTouched:!!Oe((ie||r).touchedFields,j),error:Oe((ie||r).errors,j)}),P=j=>{j&&hf(j).forEach(ie=>kn(r.errors,ie)),f.state.next({errors:j?r.errors:{}})},Te=(j,ie,ae)=>{const le=(Oe(i,j,{_f:{}})._f||{}).ref;Ot(r.errors,j,{...ie,ref:le}),f.state.next({name:j,errors:r.errors,isValid:!1}),ae&&ae.shouldFocus&&le&&le.focus&&le.focus()},Se=(j,ie)=>Lo(j)?f.values.subscribe({next:ae=>j(K(void 0,ie),ae)}):K(j,ie,!0),Ce=(j,ie={})=>{for(const ae of j?hf(j):l.mount)l.mount.delete(ae),l.array.delete(ae),ie.keepValue||(kn(i,ae),kn(o,ae)),!ie.keepError&&kn(r.errors,ae),!ie.keepDirty&&kn(r.dirtyFields,ae),!ie.keepTouched&&kn(r.touchedFields,ae),!n.shouldUnregister&&!ie.keepDefaultValue&&kn(a,ae);f.values.next({values:{...o}}),f.state.next({...r,...ie.keepDirty?{isDirty:Q()}:{}}),!ie.keepIsValid&&v()},Ae=(j,ie={})=>{let ae=Oe(i,j);const le=bc(ie.disabled);return Ot(i,j,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:j}},name:j,mount:!0,...ie}}),l.mount.add(j),ae?le&&Ot(o,j,ie.disabled?void 0:Oe(o,j,xg(ae._f))):N(j,!0,ie.value),{...le?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:wu(ie.min),max:wu(ie.max),minLength:wu(ie.minLength),maxLength:wu(ie.maxLength),pattern:wu(ie.pattern)}:{},name:j,onChange:D,onBlur:D,ref:_e=>{if(_e){Ae(j,ie),ae=Oe(i,j);const ce=on(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,be=dY(ce),gt=ae._f.refs||[];if(be?gt.find(vt=>vt===ce):ce===ae._f.ref)return;Ot(i,j,{_f:{...ae._f,...be?{refs:[...gt.filter(Eg),ce,...Array.isArray(Oe(a,j))?[{}]:[]],ref:{type:ce.type,name:j}}:{ref:ce}}}),N(j,!1,void 0,ce)}else ae=Oe(i,j,{}),ae._f&&(ae._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(wA(l.array,j)&&s.action)&&l.unMount.add(j)}}},qe=()=>n.shouldFocusError&&G5(i,j=>j&&Oe(r.errors,j),l.mount),xe=(j,ie)=>async ae=>{ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let le=Wi(o);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:_e,values:ce}=await M();r.errors=_e,le=ce}else await X(i);kn(r.errors,"root"),qr(r.errors)?(f.state.next({errors:{}}),await j(le,ae)):(ie&&await ie({...r.errors},ae),qe(),setTimeout(qe)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qr(r.errors),submitCount:r.submitCount+1,errors:r.errors})},st=(j,ie={})=>{Oe(i,j)&&(on(ie.defaultValue)?w(j,Oe(a,j)):(w(j,ie.defaultValue),Ot(a,j,ie.defaultValue)),ie.keepTouched||kn(r.touchedFields,j),ie.keepDirty||(kn(r.dirtyFields,j),r.isDirty=ie.defaultValue?Q(j,Oe(a,j)):Q()),ie.keepError||(kn(r.errors,j),d.isValid&&v()),f.state.next({...r}))},St=(j,ie={})=>{const ae=j||a,le=Wi(ae),_e=j&&!qr(j)?le:a;if(ie.keepDefaultValues||(a=ae),!ie.keepValues){if(ie.keepDirtyValues||h)for(const ce of l.mount)Oe(r.dirtyFields,ce)?Ot(_e,ce,Oe(o,ce)):w(ce,Oe(_e,ce));else{if(b8&&on(j))for(const ce of l.mount){const be=Oe(i,ce);if(be&&be._f){const gt=Array.isArray(be._f.refs)?be._f.refs[0]:be._f.ref;if(hh(gt)){const vt=gt.closest("form");if(vt){vt.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?Wi(a):{}:Wi(_e),f.array.next({values:{..._e}}),f.values.next({values:{..._e}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,f.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!Fs(j,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&j?Tg(a,j):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Ct=(j,ie)=>St(Lo(j)?j(o):j,ie);return{control:{register:Ae,unregister:Ce,getFieldState:te,handleSubmit:xe,setError:Te,_executeSchema:M,_getWatch:K,_getDirty:Q,_updateValid:v,_removeUnmounted:Z,_updateFieldArray:C,_getFieldArray:V,_reset:St,_resetDefaultValues:()=>Lo(n.defaultValues)&&n.defaultValues().then(j=>{Ct(j,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:j=>{r={...r,...j}},_subjects:f,_proxyFormState:d,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(j){s=j},get _defaultValues(){return a},get _names(){return l},set _names(j){l=j},get _formState(){return r},set _formState(j){r=j},get _options(){return n},set _options(j){n={...n,...j}}},trigger:A,register:Ae,handleSubmit:xe,watch:Se,setValue:w,getValues:W,reset:Ct,resetField:st,clearErrors:P,unregister:Ce,setError:Te,setFocus:(j,ie={})=>{const ae=Oe(i,j),le=ae&&ae._f;if(le){const _e=le.refs?le.refs[0]:le.ref;_e.focus&&(_e.focus(),ie.shouldSelect&&_e.select())}},getFieldState:te}}function Fm(e={}){const t=We.useRef(),[n,r]=We.useState({isDirty:!1,isValidating:!1,isLoading:Lo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Lo(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...vY(e,()=>r(a=>({...a}))),formState:n});const i=t.current.control;return i._options=e,E8({subject:i._subjects.state,next:a=>{AA(a,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),We.useEffect(()=>{e.values&&!Fs(e.values,i._defaultValues)?i._reset(e.values,i._options.resetOptions):i._resetDefaultValues()},[e.values,i]),We.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=CA(n,i),t.current}var Y7=function(e,t,n){if(e&&"reportValidity"in e){var r=Oe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},FA=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?Y7(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return Y7(o,i,e)})};for(var r in t.fields)n(r)},yY=function(e,t){t.shouldUseNativeValidation&&FA(e,t);var n={};for(var r in e){var i=Oe(t.fields,r);Ot(n,r,Object.assign(e[r]||{},{ref:i&&i.ref}))}return n},bY=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[o].types,c=l&&l[r.code];n[o]=RA(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},Bm=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&FA({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return s.errors!=null}(o))return{values:{},errors:yY(bY(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},xt;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(xt||(xt={}));var X7;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(X7||(X7={}));const Le=xt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Rs=e=>{switch(typeof e){case"undefined":return Le.undefined;case"string":return Le.string;case"number":return isNaN(e)?Le.nan:Le.number;case"boolean":return Le.boolean;case"function":return Le.function;case"bigint":return Le.bigint;case"symbol":return Le.symbol;case"object":return Array.isArray(e)?Le.array:e===null?Le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Le.promise:typeof Map<"u"&&e instanceof Map?Le.map:typeof Set<"u"&&e instanceof Set?Le.set:typeof Date<"u"&&e instanceof Date?Le.date:Le.object;default:return Le.unknown}},Ee=xt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class aa extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;ln.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}aa.create=e=>new aa(e);const vh=(e,t)=>{let n;switch(e.code){case Ee.invalid_type:e.received===Le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,xt.jsonStringifyReplacer)}`;break;case Ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${xt.joinValues(e.keys,", ")}`;break;case Ee.invalid_union:n="Invalid input";break;case Ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xt.joinValues(e.options)}`;break;case Ee.invalid_enum_value:n=`Invalid enum value. Expected ${xt.joinValues(e.options)}, received '${e.received}'`;break;case Ee.invalid_arguments:n="Invalid function arguments";break;case Ee.invalid_return_type:n="Invalid function return type";break;case Ee.invalid_date:n="Invalid date";break;case Ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:xt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ee.custom:n="Invalid input";break;case Ee.invalid_intersection_types:n="Intersection results could not be merged";break;case Ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,xt.assertNever(e)}return{message:n}};let EY=vh;function V5(){return EY}const K5=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function Pe(e,t){const n=K5({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,V5(),vh].filter(r=>!!r)});e.common.issues.push(n)}class tr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return tt;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return tr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return tt;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const tt=Object.freeze({status:"aborted"}),TY=e=>({status:"dirty",value:e}),_r=e=>({status:"valid",value:e}),Q7=e=>e.status==="aborted",Z7=e=>e.status==="dirty",W5=e=>e.status==="valid",q5=e=>typeof Promise<"u"&&e instanceof Promise;var je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(je||(je={}));class fa{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const J7=(e,t)=>{if(W5(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new aa(e.common.issues);return this._error=n,this._error}}};function nt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>o.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class ht{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Rs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Rs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new tr,ctx:{common:t.parent.common,data:t.data,parsedType:Rs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(q5(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rs(t)},a=this._parseSync({data:t,path:i.path,parent:i});return J7(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rs(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(q5(i)?i:Promise.resolve(i));return J7(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:Ee.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Qa({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Wo.create(this,this._def)}nullable(){return Fc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return oa.create(this,this._def)}promise(){return j1.create(this,this._def)}or(t){return Eh.create([this,t],this._def)}and(t){return Th.create(this,t,this._def)}transform(t){return new Qa({...nt(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ch({...nt(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new MY({typeName:Qe.ZodBranded,type:this,...nt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new t2({...nt(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return zm.create(this,t)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const xY=/^c[^\s-]{8,}$/i,_Y=/^[a-z][a-z0-9]*$/,wY=/[0-9A-HJKMNP-TV-Z]{26}/,SY=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,CY=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,AY=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,NY=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,kY=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,OY=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function RY(e,t){return!!((t==="v4"||!t)&&NY.test(e)||(t==="v6"||!t)&&kY.test(e))}class Fa extends ht{constructor(){super(...arguments),this._regex=(t,n,r)=>this.refinement(i=>t.test(i),{validation:n,code:Ee.invalid_string,...je.errToObj(r)}),this.nonempty=t=>this.min(1,je.errToObj(t)),this.trim=()=>new Fa({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Fa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Fa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Le.string){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.string,received:a.parsedType}),tt}const r=new tr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...je.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...je.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...je.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...je.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...je.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...je.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...je.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...je.errToObj(n)})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Fa({checks:[],typeName:Qe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...nt(e)})};function IY(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class Dc extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Le.number){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.number,received:a.parsedType}),tt}let r;const i=new tr;for(const a of this._def.checks)a.kind==="int"?xt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?IY(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_finite,message:a.message}),i.dirty()):xt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,r,i){return new Dc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:je.toString(i)}]})}_addCheck(t){return new Dc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&xt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Dc({checks:[],typeName:Qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...nt(e)});class Pc extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Le.bigint){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.bigint,received:a.parsedType}),tt}let r;const i=new tr;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):xt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,r,i){return new Pc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:je.toString(i)}]})}_addCheck(t){return new Pc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Pc({checks:[],typeName:Qe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...nt(e)})};class Y5 extends ht{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Le.boolean){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.boolean,received:r.parsedType}),tt}return _r(t.data)}}Y5.create=e=>new Y5({typeName:Qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...nt(e)});class H1 extends ht{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Le.date){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.date,received:a.parsedType}),tt}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_date}),tt}const r=new tr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):xt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new H1({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew H1({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Qe.ZodDate,...nt(e)});class X5 extends ht{_parse(t){if(this._getType(t)!==Le.symbol){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.symbol,received:r.parsedType}),tt}return _r(t.data)}}X5.create=e=>new X5({typeName:Qe.ZodSymbol,...nt(e)});class yh extends ht{_parse(t){if(this._getType(t)!==Le.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.undefined,received:r.parsedType}),tt}return _r(t.data)}}yh.create=e=>new yh({typeName:Qe.ZodUndefined,...nt(e)});class bh extends ht{_parse(t){if(this._getType(t)!==Le.null){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.null,received:r.parsedType}),tt}return _r(t.data)}}bh.create=e=>new bh({typeName:Qe.ZodNull,...nt(e)});class Q5 extends ht{constructor(){super(...arguments),this._any=!0}_parse(t){return _r(t.data)}}Q5.create=e=>new Q5({typeName:Qe.ZodAny,...nt(e)});class Ec extends ht{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _r(t.data)}}Ec.create=e=>new Ec({typeName:Qe.ZodUnknown,...nt(e)});class ns extends ht{_parse(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ee.invalid_type,expected:Le.never,received:n.parsedType}),tt}}ns.create=e=>new ns({typeName:Qe.ZodNever,...nt(e)});class Z5 extends ht{_parse(t){if(this._getType(t)!==Le.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.void,received:r.parsedType}),tt}return _r(t.data)}}Z5.create=e=>new Z5({typeName:Qe.ZodVoid,...nt(e)});class oa extends ht{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Le.array)return Pe(n,{code:Ee.invalid_type,expected:Le.array,received:n.parsedType}),tt;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.lengthi.maxLength.value&&(Pe(n,{code:Ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new fa(n,o,n.path,s)))).then(o=>tr.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new fa(n,o,n.path,s)));return tr.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new oa({...this._def,minLength:{value:t,message:je.toString(n)}})}max(t,n){return new oa({...this._def,maxLength:{value:t,message:je.toString(n)}})}length(t,n){return new oa({...this._def,exactLength:{value:t,message:je.toString(n)}})}nonempty(t){return this.min(1,t)}}oa.create=(e,t)=>new oa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...nt(t)});function Ul(e){if(e instanceof nn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Wo.create(Ul(r))}return new nn({...e._def,shape:()=>t})}else return e instanceof oa?new oa({...e._def,type:Ul(e.element)}):e instanceof Wo?Wo.create(Ul(e.unwrap())):e instanceof Fc?Fc.create(Ul(e.unwrap())):e instanceof Xa?Xa.create(e.items.map(t=>Ul(t))):e}class nn extends ht{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=xt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Le.object){const c=this._getOrReturnCtx(t);return Pe(c,{code:Ee.invalid_type,expected:Le.object,received:c.parsedType}),tt}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ns&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new fa(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof ns){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(Pe(i,{code:Ee.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new fa(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key;c.push({key:d,value:await u.value,alwaysSet:u.alwaysSet})}return c}).then(c=>tr.mergeObjectSync(r,c)):tr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return je.errToObj,new nn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const l=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=je.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new nn({...this._def,unknownKeys:"strip"})}passthrough(){return new nn({...this._def,unknownKeys:"passthrough"})}extend(t){return new nn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new nn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new nn({...this._def,catchall:t})}pick(t){const n={};return xt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new nn({...this._def,shape:()=>n})}omit(t){const n={};return xt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new nn({...this._def,shape:()=>n})}deepPartial(){return Ul(this)}partial(t){const n={};return xt.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new nn({...this._def,shape:()=>n})}required(t){const n={};return xt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Wo;)a=a._def.innerType;n[r]=a}}),new nn({...this._def,shape:()=>n})}keyof(){return BA(xt.objectKeys(this.shape))}}nn.create=(e,t)=>new nn({shape:()=>e,unknownKeys:"strip",catchall:ns.create(),typeName:Qe.ZodObject,...nt(t)});nn.strictCreate=(e,t)=>new nn({shape:()=>e,unknownKeys:"strict",catchall:ns.create(),typeName:Qe.ZodObject,...nt(t)});nn.lazycreate=(e,t)=>new nn({shape:e,unknownKeys:"strip",catchall:ns.create(),typeName:Qe.ZodObject,...nt(t)});class Eh extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new aa(s.ctx.common.issues));return Pe(n,{code:Ee.invalid_union,unionErrors:o}),tt}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new aa(l));return Pe(n,{code:Ee.invalid_union,unionErrors:s}),tt}}get options(){return this._def.options}}Eh.create=(e,t)=>new Eh({options:e,typeName:Qe.ZodUnion,...nt(t)});const pf=e=>e instanceof _h?pf(e.schema):e instanceof Qa?pf(e.innerType()):e instanceof wh?[e.value]:e instanceof nl?e.options:e instanceof Sh?Object.keys(e.enum):e instanceof Ch?pf(e._def.innerType):e instanceof yh?[void 0]:e instanceof bh?[null]:null;class w8 extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.object)return Pe(n,{code:Ee.invalid_type,expected:Le.object,received:n.parsedType}),tt;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Pe(n,{code:Ee.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),tt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=pf(a.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new w8({typeName:Qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...nt(r)})}}function J5(e,t){const n=Rs(e),r=Rs(t);if(e===t)return{valid:!0,data:e};if(n===Le.object&&r===Le.object){const i=xt.objectKeys(t),a=xt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=J5(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Le.array&&r===Le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if(Q7(a)||Q7(o))return tt;const s=J5(a.value,o.value);return s.valid?((Z7(a)||Z7(o))&&n.dirty(),{status:n.value,value:s.data}):(Pe(r,{code:Ee.invalid_intersection_types}),tt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Th.create=(e,t,n)=>new Th({left:e,right:t,typeName:Qe.ZodIntersection,...nt(n)});class Xa extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.array)return Pe(r,{code:Ee.invalid_type,expected:Le.array,received:r.parsedType}),tt;if(r.data.lengththis._def.items.length&&(Pe(r,{code:Ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new fa(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>tr.mergeArray(n,o)):tr.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Xa({...this._def,rest:t})}}Xa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xa({items:e,typeName:Qe.ZodTuple,rest:null,...nt(t)})};class xh extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.object)return Pe(r,{code:Ee.invalid_type,expected:Le.object,received:r.parsedType}),tt;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new fa(r,s,r.path,s)),value:o._parse(new fa(r,r.data[s],r.path,s))});return r.common.async?tr.mergeObjectAsync(n,i):tr.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ht?new xh({keyType:t,valueType:n,typeName:Qe.ZodRecord,...nt(r)}):new xh({keyType:Fa.create(),valueType:t,typeName:Qe.ZodRecord,...nt(n)})}}class e2 extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.map)return Pe(r,{code:Ee.invalid_type,expected:Le.map,received:r.parsedType}),tt;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new fa(r,s,r.path,[c,"key"])),value:a._parse(new fa(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return tt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return tt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}e2.create=(e,t,n)=>new e2({valueType:t,keyType:e,typeName:Qe.ZodMap,...nt(n)});class $c extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.set)return Pe(r,{code:Ee.invalid_type,expected:Le.set,received:r.parsedType}),tt;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(Pe(r,{code:Ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return tt;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new fa(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new $c({...this._def,minSize:{value:t,message:je.toString(n)}})}max(t,n){return new $c({...this._def,maxSize:{value:t,message:je.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}$c.create=(e,t)=>new $c({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...nt(t)});class t1 extends ht{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.function)return Pe(n,{code:Ee.invalid_type,expected:Le.function,received:n.parsedType}),tt;function r(s,l){return K5({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,V5(),vh].filter(c=>!!c),issueData:{code:Ee.invalid_arguments,argumentsError:l}})}function i(s,l){return K5({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,V5(),vh].filter(c=>!!c),issueData:{code:Ee.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;return this._def.returns instanceof j1?_r(async(...s)=>{const l=new aa([]),c=await this._def.args.parseAsync(s,a).catch(f=>{throw l.addIssue(r(s,f)),l}),u=await o(...c);return await this._def.returns._def.type.parseAsync(u,a).catch(f=>{throw l.addIssue(i(u,f)),l})}):_r((...s)=>{const l=this._def.args.safeParse(s,a);if(!l.success)throw new aa([r(s,l.error)]);const c=o(...l.data),u=this._def.returns.safeParse(c,a);if(!u.success)throw new aa([i(c,u.error)]);return u.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new t1({...this._def,args:Xa.create(t).rest(Ec.create())})}returns(t){return new t1({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new t1({args:t||Xa.create([]).rest(Ec.create()),returns:n||Ec.create(),typeName:Qe.ZodFunction,...nt(r)})}}class _h extends ht{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}_h.create=(e,t)=>new _h({getter:e,typeName:Qe.ZodLazy,...nt(t)});class wh extends ht{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Pe(n,{received:n.data,code:Ee.invalid_literal,expected:this._def.value}),tt}return{status:"valid",value:t.data}}get value(){return this._def.value}}wh.create=(e,t)=>new wh({value:e,typeName:Qe.ZodLiteral,...nt(t)});function BA(e,t){return new nl({values:e,typeName:Qe.ZodEnum,...nt(t)})}class nl extends ht{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{expected:xt.joinValues(r),received:n.parsedType,code:Ee.invalid_type}),tt}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{received:n.data,code:Ee.invalid_enum_value,options:r}),tt}return _r(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return nl.create(t)}exclude(t){return nl.create(this.options.filter(n=>!t.includes(n)))}}nl.create=BA;class Sh extends ht{_parse(t){const n=xt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Le.string&&r.parsedType!==Le.number){const i=xt.objectValues(n);return Pe(r,{expected:xt.joinValues(i),received:r.parsedType,code:Ee.invalid_type}),tt}if(n.indexOf(t.data)===-1){const i=xt.objectValues(n);return Pe(r,{received:r.data,code:Ee.invalid_enum_value,options:i}),tt}return _r(t.data)}get enum(){return this._def.values}}Sh.create=(e,t)=>new Sh({values:e,typeName:Qe.ZodNativeEnum,...nt(t)});class j1 extends ht{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.promise&&n.common.async===!1)return Pe(n,{code:Ee.invalid_type,expected:Le.promise,received:n.parsedType}),tt;const r=n.parsedType===Le.promise?n.data:Promise.resolve(n.data);return _r(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}j1.create=(e,t)=>new j1({type:e,typeName:Qe.ZodPromise,...nt(t)});class Qa extends ht{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null;if(i.type==="preprocess"){const o=i.transform(r.data);return r.common.async?Promise.resolve(o).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}const a={addIssue:o=>{Pe(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?tt:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?tt:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!W5(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>W5(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);xt.assertNever(i)}}Qa.create=(e,t,n)=>new Qa({schema:e,typeName:Qe.ZodEffects,effect:t,...nt(n)});Qa.createWithPreprocess=(e,t,n)=>new Qa({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...nt(n)});class Wo extends ht{_parse(t){return this._getType(t)===Le.undefined?_r(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Wo.create=(e,t)=>new Wo({innerType:e,typeName:Qe.ZodOptional,...nt(t)});class Fc extends ht{_parse(t){return this._getType(t)===Le.null?_r(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Fc.create=(e,t)=>new Fc({innerType:e,typeName:Qe.ZodNullable,...nt(t)});class Ch extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ch.create=(e,t)=>new Ch({innerType:e,typeName:Qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...nt(t)});class t2 extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return q5(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new aa(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new aa(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}t2.create=(e,t)=>new t2({innerType:e,typeName:Qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...nt(t)});class n2 extends ht{_parse(t){if(this._getType(t)!==Le.nan){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.nan,received:r.parsedType}),tt}return{status:"valid",value:t.data}}}n2.create=e=>new n2({typeName:Qe.ZodNaN,...nt(e)});class MY extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class zm extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?tt:a.status==="dirty"?(n.dirty(),TY(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?tt:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new zm({in:t,out:n,typeName:Qe.ZodPipeline})}}nn.lazycreate;var Qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(Qe||(Qe={}));const Qn=Fa.create;Dc.create;n2.create;Pc.create;Y5.create;H1.create;X5.create;yh.create;bh.create;Q5.create;Ec.create;ns.create;Z5.create;oa.create;const Um=nn.create;nn.strictCreate;Eh.create;w8.create;Th.create;Xa.create;xh.create;e2.create;$c.create;t1.create;_h.create;wh.create;nl.create;Sh.create;j1.create;Qa.create;Wo.create;Fc.create;Qa.createWithPreprocess;zm.create;const ey=60,S8=()=>{let e=0;const[t,n]=y.useState(0);return y.useEffect(()=>{t===ey?e=setInterval(()=>n(i=>--i),1e3):t<=0&&e&&clearInterval(e)},[t]),{time:t,handleGetCode:async i=>{if(!/^(?:(?:\+|00)86)?1\d{10}$/.test(i)){hn.error("错误的手机号码");return}try{await da.getPhoneCode(i),n(ey)}catch(a){hn.error(a)}}}};function LY(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function DY(...e){return t=>e.forEach(n=>LY(n,t))}const zA=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find($Y);if(a){const o=a.props.children,s=i.map(l=>l===a?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return y.createElement(r2,ue({},r,{ref:t}),y.isValidElement(o)?y.cloneElement(o,void 0,s):null)}return y.createElement(r2,ue({},r,{ref:t}),n)});zA.displayName="Slot";const r2=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...FY(r,n.props),ref:DY(t,n.ref)}):y.Children.count(n)>1?y.Children.only(null):null});r2.displayName="SlotClone";const PY=({children:e})=>y.createElement(y.Fragment,null,e);function $Y(e){return y.isValidElement(e)&&e.type===PY}function FY(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const BY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],zY=BY.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?zA:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(s,ue({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),UY=y.forwardRef((e,t)=>y.createElement(zY.label,ue({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),UA=UY,HY=Sm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ah=y.forwardRef(({className:e,...t},n)=>x.jsx(UA,{ref:n,className:ze(HY(),e),...t}));Ah.displayName=UA.displayName;const Hm=rY,HA=y.createContext({}),pr=({...e})=>x.jsx(HA.Provider,{value:{name:e.name},children:x.jsx(sY,{...e})}),jm=()=>{const e=y.useContext(HA),t=y.useContext(jA),{getFieldState:n,formState:r}=$m(),i=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},jA=y.createContext({}),Un=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return x.jsx(jA.Provider,{value:{id:r},children:x.jsx("div",{ref:n,className:ze("space-y-2",e),...t})})});Un.displayName="FormItem";const Hn=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:i}=jm();return x.jsx(Ah,{ref:n,className:ze(r&&"text-destructive",e),htmlFor:i,...t})});Hn.displayName="FormLabel";const jn=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=jm();return x.jsx(es,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});jn.displayName="FormControl";const jY=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=jm();return x.jsx("p",{ref:n,id:r,className:ze("text-sm text-muted-foreground",e),...t})});jY.displayName="FormDescription";const Gn=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:i,formMessageId:a}=jm(),o=i?String(i==null?void 0:i.message):t;return o?x.jsx("p",{ref:r,id:a,className:ze("text-sm font-medium text-destructive",e),...n,children:o}):null});Gn.displayName="FormMessage";const wn=y.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:ze("flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));wn.displayName="Input";const GA="Radio",[GY,VA]=jr(GA),[VY,KY]=GY(GA),WY=y.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s="on",onCheck:l,...c}=e,[u,d]=y.useState(null),f=Lt(t,g=>d(g)),h=y.useRef(!1),m=u?!!u.closest("form"):!0;return y.createElement(VY,{scope:n,checked:i,disabled:o},y.createElement(pt.button,ue({type:"button",role:"radio","aria-checked":i,"data-state":KA(i),"data-disabled":o?"":void 0,disabled:o,value:s},c,{ref:f,onClick:Ue(e.onClick,g=>{i||l==null||l(),m&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})),m&&y.createElement(XY,{control:u,bubbles:!h.current,name:r,value:s,checked:i,required:a,disabled:o,style:{transform:"translateX(-100%)"}}))}),qY="RadioIndicator",YY=y.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,a=KY(qY,n);return y.createElement(ir,{present:r||a.checked},y.createElement(pt.span,ue({"data-state":KA(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),XY=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=y.useRef(null),o=YC(n),s=r8(t);return y.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(f)}},[o,n,r]),y.createElement("input",ue({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function KA(e){return e?"checked":"unchecked"}const QY=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],WA="RadioGroup",[ZY,Bde]=jr(WA,[Zc,VA]),qA=Zc(),YA=VA(),[JY,eX]=ZY(WA),tX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=qA(n),m=l0(c),[g,b]=Xc({prop:a,defaultProp:i,onChange:d});return y.createElement(JY,{scope:n,name:r,required:o,disabled:s,value:g,onValueChange:b},y.createElement(a8,ue({asChild:!0},h,{orientation:l,dir:m,loop:u}),y.createElement(pt.div,ue({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},f,{ref:t}))))}),nX="RadioGroupItem",rX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,a=eX(nX,n),o=a.disabled||r,s=qA(n),l=YA(n),c=y.useRef(null),u=Lt(t,c),d=a.value===i.value,f=y.useRef(!1);return y.useEffect(()=>{const h=g=>{QY.includes(g.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",m)}},[]),y.createElement(o8,ue({asChild:!0},s,{focusable:!o,active:d}),y.createElement(WY,ue({disabled:o,required:a.required,checked:d},l,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:Ue(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Ue(i.onFocus,()=>{var h;f.current&&((h=c.current)===null||h===void 0||h.click())})})))}),iX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=YA(n);return y.createElement(YY,ue({},i,r,{ref:t}))}),XA=tX,QA=rX,aX=iX,ZA=y.forwardRef(({className:e,...t},n)=>x.jsx(XA,{className:ze("grid gap-2",e),...t,ref:n}));ZA.displayName=XA.displayName;const i2=y.forwardRef(({className:e,...t},n)=>x.jsx(QA,{ref:n,className:ze("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:x.jsx(aX,{className:"flex items-center justify-center",children:x.jsx(Sw,{className:"h-2.5 w-2.5 fill-current text-current"})})}));i2.displayName=QA.displayName;const JA={nickname:Qn().min(2,{message:"请输入用户名"}),password:Qn().min(2,{message:"请输入密码."})};function oX({protocolChecked:e=!1}){const[t,n]=Fi(s=>[s.setUserInfo,s.setAccessToken]),r=Hr(),i=Um({...JA}),a=Fm({resolver:Bm(i),defaultValues:{nickname:"",password:""}}),o=async s=>{try{const{user:l,access_token:c}=await da.login(s);t(l),n(c),r("/chat")}catch(l){hn.error(l)}};return x.jsx(Hm,{...a,children:x.jsxs("form",{onSubmit:a.handleSubmit(o),className:"mb-4 w-[70%] space-y-3",children:[x.jsx(pr,{control:a.control,name:"nickname",render:({field:s})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"用户名"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入用户名",...s})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:a.control,name:"password",render:({field:s})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...s})})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",disabled:!e,className:"w-full",children:"登陆"})]})})}function sX({oauthId:e="",protocolChecked:t=!1}){const{time:n,handleGetCode:r}=S8(),[i,a]=Fi(u=>[u.setUserInfo,u.setAccessToken]),o=Hr(),s=Um({mobile:Qn().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."}),code:Qn().min(2,{message:"请输入验证码."})}),l=Fm({resolver:Bm(s),defaultValues:{mobile:"",code:""}}),c=async u=>{try{const{user:d,access_token:f}=await da.phoneLogin({...u,oauth_id:e,share_openid:localStorage.getItem(yr.ShareOpenId)||""});i(d),a(f),o("/chat")}catch(d){hn.error(d)}};return x.jsx(Hm,{...l,children:x.jsxs("form",{onSubmit:l.handleSubmit(c),className:"mb-4 w-[70%] space-y-3",children:[x.jsx(pr,{control:l.control,name:"mobile",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"手机号"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入手机号",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"code",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"验证码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})}),x.jsx(ot,{type:"button",className:"ml-2 shrink-0",disabled:n>0,onClick:()=>r(l.getValues("mobile")),children:n>0?`${n}s`:"获取验证码"})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",disabled:!t,className:"w-full",children:"登陆"})]})})}function lX({children:e}){const[t,n]=Fi(u=>[u.setUserInfo,u.setAccessToken]),r=Hr(),{time:i,handleGetCode:a}=S8(),[o]=$i(u=>[u.appConfig]),s=Um({mobile:Qn().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."}),repassword:Qn().min(2,{message:"请输入密码."}),code:o.mobile_verify?Qn().min(2,{message:"请输入验证码."}):Qn(),...JA}),l=Fm({resolver:Bm(s),defaultValues:{nickname:"",password:"",mobile:"",repassword:"",code:""}}),c=async u=>{if(u.password!==u.repassword){hn.error("两次输入的密码不一致");return}try{const{user:d,access_token:f}=await da.register({...Zj(u,["repassword"]),share_openid:localStorage.getItem(yr.ShareOpenId)||"",code:o.mobile_verify?u.code:""});t(d),n(f),r("/chat")}catch(d){hn.error(d)}};return x.jsxs(Jc,{children:[x.jsx(vA,{asChild:!0,children:e}),x.jsxs(yl,{children:[x.jsx(eu,{children:"注册"}),x.jsx(EA,{children:x.jsx(y8,{asChild:!0,children:x.jsx(Hm,{...l,children:x.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-4",children:[x.jsx(pr,{control:l.control,name:"nickname",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"用户名"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入用户名",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"mobile",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"手机号码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入手机号码",...u})})]}),x.jsx(Gn,{})]})}),o.mobile_verify&&x.jsx(pr,{control:l.control,name:"code",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"验证码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})}),x.jsx(ot,{type:"button",className:"ml-2 shrink-0",disabled:i>0,onClick:()=>a(l.getValues("mobile")),children:i>0?`${i}s`:"获取验证码"})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"password",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"repassword",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"确认密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请再次输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",className:"w-full",children:"登陆"})]})})})})]})]})}function cX({children:e}){let t;(u=>{u.OldPassword="1",u.Mobile="2"})(t||(t={}));const[n,r]=y.useState("1"),{time:i,handleGetCode:a}=S8(),[o]=$i(u=>[u.appConfig]),s=y.useMemo(()=>Um({nickname:Qn().min(2,{message:"请输入用户名."}),password:Qn().min(2,{message:"请输入密码."}),repassword:Qn().min(2,{message:"请输入密码."}),code:o.mobile_verify?Qn().min(2,{message:"请输入验证码."}):Qn(),verify:n==="1"?Qn().min(2,{message:"请输入密码."}):Qn().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."})}),[n]),l=Fm({resolver:Bm(s),defaultValues:{nickname:"",password:"",repassword:"",verify:"",code:""}});y.useEffect(()=>{l.setValue("verify","")},[n]);const c=async u=>{try{await da.resetPassword({...u,mobile:n==="2"?u.verify:"",reenteredPassword:n==="1"?u.verify:"",verify_type:Number(n),code:o.mobile_verify?u.code:""}),hn.success("密码修改成功")}catch(d){hn.error(d)}};return x.jsxs(Jc,{children:[x.jsx(vA,{asChild:!0,children:e}),x.jsxs(yl,{children:[x.jsx(eu,{children:"找回密码"}),x.jsxs(ZA,{value:n,onValueChange:u=>r(u),className:"flex",children:[x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx(i2,{value:"1",id:"r1"}),x.jsx(Ah,{htmlFor:"r1",children:"旧密码验证"})]}),x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx(i2,{value:"2",id:"r2"}),x.jsx(Ah,{htmlFor:"r2",children:"手机号验证"})]})]}),x.jsx(Hm,{...l,children:x.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-3",children:[x.jsx(pr,{control:l.control,name:"nickname",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"用户名"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入用户名",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"verify",render:({field:u})=>n==="1"?x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"原密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入原密码",type:"password",...u})})]}),x.jsx(Gn,{})]}):x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"手机号码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入手机号码",...u})})]}),x.jsx(Gn,{})]})}),n==="2"&&o.mobile_verify&&x.jsx(pr,{control:l.control,name:"code",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"验证码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})}),x.jsx(ot,{type:"button",className:"ml-2 shrink-0",disabled:i>0,onClick:()=>a(l.getValues("verify")),children:i>0?`${i} s`:"获取验证码"})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"password",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"repassword",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"确认密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请再次输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",className:"w-full",children:"修改密码"})]})})]})]})}function uX(){const[e,t]=y.useState(!1),[n,r]=y.useState(!1),[i,a]=y.useState(""),[o,s]=y.useState(!1),[l,c]=y.useState(""),[u,d]=$i(N=>[N.loginType,N.setLoginType]),[f,h]=hw(),m=Hr(),[g,b]=Fi(N=>[N.setUserInfo,N.setAccessToken]),{isWeixinBrowser:p,weChatLogin:v}=d0(),T=async()=>{if(p){v();return}const N=location.origin+location.pathname,O=await da.getWxQrCode(sf.WEIXIN_WEB,N);r(!0),a(O.qr_code_url)},C=async()=>{const N=f.get("code");if(N){t(!0);try{s(!0);const O=await da.getUserInfoByCode(p?sf.WEIXIN:sf.WEIXIN_WEB,N,localStorage.getItem(yr.ShareOpenId)||"");if(O.oauth_id){c(O.oauth_id);return}g(O.user),b(O.access_token),s(!1),m("/chat")}catch{h("")}}};y.useEffect(()=>{C()},[]),VC(),qC();const R=KC();return x.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[x.jsx(PC,{isPlain:!0}),x.jsxs("div",{className:"flex flex-1 items-center justify-center",children:[x.jsxs("div",{className:"flex w-[32rem] -translate-y-10 rounded-xl border pb-24 pt-10 shadow max-sm:w-[22rem]",children:[x.jsxs(sq,{value:u+"",className:"flex w-full flex-col items-center",onValueChange:N=>d(N),children:[Array.isArray(R.login_type)&&x.jsxs(GC,{className:"mb-10",children:[x.jsx(H5,{value:Ao.WECHAT,children:"微信扫码登陆"}),x.jsx(H5,{value:Ao.PASSWORD,children:"账号密码登陆"})]}),x.jsx("img",{src:R.web_logo,className:"mb-4 w-40 rounded-full"}),x.jsxs("div",{className:"text-3xl font-bold",children:[" ",R.name," "]}),x.jsx(ff,{value:Ao.WECHAT,className:"flex w-full flex-col items-center",children:x.jsx(ot,{className:"mb-4 mt-12 w-[70%]",disabled:!e,onClick:T,children:p?"微信登陆":"微信扫码登录"})}),x.jsx(ff,{value:Ao.PASSWORD,className:"flex w-full flex-col items-center",children:x.jsx(oX,{protocolChecked:e})}),x.jsx(ff,{value:Ao.WECHAT_AND_PHONE,className:"flex w-full flex-col items-center",children:l?x.jsx(sX,{oauthId:l,protocolChecked:e}):x.jsxs(ot,{className:"mb-4 mt-12 w-[70%]",disabled:!e,onClick:T,children:[o&&x.jsx(qc,{className:"mr-2 h-4 w-4 animate-spin"}),p?"微信登陆":"微信扫码登录"]})}),x.jsx("div",{className:"flex items-center text-xs",children:x.jsx(Jq,{checked:e,onCheckedChange:N=>t(N)})})]}),u===Ao.PASSWORD&&x.jsxs("div",{className:"absolute bottom-3 right-3",children:[x.jsx(lX,{children:x.jsx(ot,{variant:"ghost",children:"注册"})}),x.jsx(cX,{children:x.jsx(ot,{variant:"ghost",children:"找回密码"})})]})]}),x.jsx(eY,{open:n,qrCode:i,handleOpenChange:N=>{r(N)}})]})]})}const eN=y.forwardRef(({className:e,...t},n)=>x.jsx("textarea",{className:ze("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));eN.displayName="Textarea";const dX=({className:e=""})=>x.jsx("svg",{className:e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2837 26.7243C10.3672 26.7769 10.4638 26.8018 10.5594 26.8018C10.667 26.8018 10.7747 26.7693 10.8662 26.7033L18.9048 20.8659H24.6867C24.9392 20.8659 25.1512 20.6881 25.1854 20.4509L27.1563 6.54144C27.1774 6.39706 27.1264 6.24886 27.0187 6.14464C26.9111 6.04043 26.7569 5.98593 26.6042 6.00314L4.44948 8.26605C4.30762 8.28063 4.17985 8.35139 4.09635 8.46038C4.01184 8.56938 3.98166 8.70707 4.01083 8.83997L7.00793 22.3998C7.05622 22.6216 7.26246 22.7784 7.4999 22.7784H10.9648L10.0714 26.2092C10.0201 26.4059 10.1056 26.6127 10.2837 26.7243ZM12.7662 19.9665C12.8103 19.9892 12.8614 20 12.912 20C12.9689 20 13.0258 19.9859 13.0742 19.9574L17.325 17.4318H20.3825C20.516 17.4318 20.6281 17.3549 20.6462 17.2523L21.6884 11.2343C21.6996 11.1718 21.6726 11.1077 21.6157 11.0626C21.5588 11.0175 21.4772 10.9939 21.3965 11.0014L9.68104 11.9804C9.60603 11.9867 9.53846 12.0173 9.49431 12.0645C9.44962 12.1117 9.43366 12.1712 9.44909 12.2287L11.034 18.0954C11.0595 18.1914 11.1686 18.2593 11.2941 18.2593H13.1264L12.6539 19.7436C12.6268 19.8287 12.672 19.9182 12.7662 19.9665Z",fill:"currentcolor"})});function bl(){const[e,t]=y.useState(!0);return y.useEffect(()=>{t(window.document.body.clientWidth<=600),window.addEventListener("resize",()=>{t(window.document.body.clientWidth<=600)})},[]),e}function fX(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const hX=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Ha(e){const t=[];for(let n=0,r=e.length;nNr||e.height>Nr)&&(e.width>Nr&&e.height>Nr?e.width>e.height?(e.height*=Nr/e.width,e.width=Nr):(e.width*=Nr/e.height,e.height=Nr):e.width>Nr?(e.height*=Nr/e.width,e.width=Nr):(e.width*=Nr/e.height,e.height=Nr))}function kh(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function yX(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function bX(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),yX(i)}const xr=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||xr(n,t)};function EX(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function TX(e){return Ha(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function xX(e,t,n){const r=`.${e}:${t}`,i=n.cssText?EX(n):TX(n);return document.createTextNode(`${r}{${i}}`)}function ty(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const a=hX();try{t.className=`${t.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(xX(a,n,r)),t.appendChild(o)}function _X(e,t){ty(e,t,":before"),ty(e,t,":after")}const ny="application/font-woff",ry="image/jpeg",wX={woff:ny,woff2:ny,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ry,jpeg:ry,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function SX(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function C8(e){const t=SX(e).toLowerCase();return wX[t]||""}function CX(e){return e.split(/,/)[1]}function a2(e){return e.search(/^(data:)/)!==-1}function nN(e,t){return`data:${t};base64,${e}`}async function rN(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(n({res:r,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const _g={};function AX(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function A8(e,t,n){const r=AX(e,t,n.includeQueryParams);if(_g[r]!=null)return _g[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const a=await rN(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),CX(s)));i=nN(a,t)}catch(a){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return _g[r]=i,i}async function NX(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):kh(t)}async function kX(e,t){if(e.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,o==null||o.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return kh(s)}const n=e.poster,r=C8(n),i=await A8(n,r,t);return kh(i)}async function OX(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Gm(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function RX(e,t){return xr(e,HTMLCanvasElement)?NX(e):xr(e,HTMLVideoElement)?kX(e,t):xr(e,HTMLIFrameElement)?OX(e):e.cloneNode(!1)}const IX=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function MX(e,t,n){var r,i;let a=[];return IX(e)&&e.assignedNodes?a=Ha(e.assignedNodes()):xr(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=Ha(e.contentDocument.body.childNodes):a=Ha(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),a.length===0||xr(e,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Gm(s,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function LX(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Ha(r).forEach(i=>{let a=r.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),xr(e,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}function DX(e,t){xr(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),xr(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function PX(e,t){if(xr(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function $X(e,t){return xr(t,Element)&&(LX(e,t),_X(e,t),DX(e,t),PX(e,t)),t}async function FX(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;aRX(r,t)).then(r=>MX(e,r,t)).then(r=>$X(e,r)).then(r=>FX(r,t))}const iN=/url\((['"]?)([^'"]+?)\1\)/g,BX=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zX=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function UX(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function HX(e){const t=[];return e.replace(iN,(n,r,i)=>(t.push(i),n)),t.filter(n=>!a2(n))}async function jX(e,t,n,r,i){try{const a=n?fX(t,n):t,o=C8(t);let s;if(i){const l=await i(a);s=nN(l,o)}else s=await A8(a,o,r);return e.replace(UX(t),`$1${s}$3`)}catch{}return e}function GX(e,{preferredFontFormat:t}){return t?e.replace(zX,n=>{for(;;){const[r,,i]=BX.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function aN(e){return e.search(iN)!==-1}async function oN(e,t,n){if(!aN(e))return e;const r=GX(e,n);return HX(r).reduce((a,o)=>a.then(s=>jX(s,o,t,n)),Promise.resolve(r))}async function ud(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const a=await oN(i,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function VX(e,t){await ud("background",e,t)||await ud("background-image",e,t),await ud("mask",e,t)||await ud("mask-image",e,t)}async function KX(e,t){const n=xr(e,HTMLImageElement);if(!(n&&!a2(e.src))&&!(xr(e,SVGImageElement)&&!a2(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await A8(r,C8(r),t);await new Promise((a,o)=>{e.onload=a,e.onerror=o;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function WX(e,t){const r=Ha(e.childNodes).map(i=>sN(i,t));await Promise.all(r).then(()=>e)}async function sN(e,t){xr(e,Element)&&(await VX(e,t),await KX(e,t),await WX(e,t))}function qX(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const iy={};async function ay(e){let t=iy[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},iy[e]=t,t}async function oy(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),rN(s,t.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>n)}function sy(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=a.exec(r);if(l===null){if(l=s.exec(r),l===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(l[0])}return t}async function YX(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{Ha(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,c=ay(l).then(u=>oy(u,t)).then(u=>sy(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(a){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&r.push(ay(i.href).then(s=>oy(s,t)).then(s=>sy(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{Ha(i.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),n))}function XX(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>aN(t.style.getPropertyValue("src")))}async function QX(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Ha(e.ownerDocument.styleSheets),r=await YX(n,t);return XX(r)}async function ZX(e,t){const n=await QX(e,t);return(await Promise.all(n.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return oN(i.cssText,a,t)}))).join(` -`)}async function JX(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await ZX(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function N8(e,t={}){const{width:n,height:r}=tN(e,t),i=await Gm(e,t,!0);return await JX(i,t),await sN(i,t),qX(i,t),await bX(i,n,r)}async function eQ(e,t={}){const{width:n,height:r}=tN(e,t),i=await N8(e,t),a=await kh(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||gX(),c=t.canvasWidth||n,u=t.canvasHeight||r;return o.width=c*l,o.height=u*l,t.skipAutoScale||vX(o),o.style.width=`${c}`,o.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function lN(e,t={}){return(await eQ(e,t)).toDataURL()}var tQ=Object.defineProperty,Oh=Object.getOwnPropertySymbols,cN=Object.prototype.hasOwnProperty,uN=Object.prototype.propertyIsEnumerable,ly=(e,t,n)=>t in e?tQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cy=(e,t)=>{for(var n in t||(t={}))cN.call(t,n)&&ly(e,n,t[n]);if(Oh)for(var n of Oh(t))uN.call(t,n)&&ly(e,n,t[n]);return e},nQ=(e,t)=>{var n={};for(var r in e)cN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Oh)for(var r of Oh(e))t.indexOf(r)<0&&uN.call(e,r)&&(n[r]=e[r]);return n};/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */var rl;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let m=0;m7)throw new RangeError("Invalid value");let m,g;for(m=u;;m++){const T=t.getNumDataCodewords(m,c)*8,C=s.getTotalBits(l,m);if(C<=T){g=C;break}if(m>=d)throw new RangeError("Data too long")}for(const T of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&g<=t.getNumDataCodewords(m,T)*8&&(c=T);let b=[];for(const T of l){r(T.mode.modeBits,4,b),r(T.numChars,T.mode.numCharCountBits(m),b);for(const C of T.getData())b.push(C)}a(b.length==g);const p=t.getNumDataCodewords(m,c)*8;a(b.length<=p),r(0,Math.min(4,p-b.length),b),r(0,(8-b.length%8)%8,b),a(b.length%8==0);for(let T=236;b.lengthv[C>>>3]|=T<<7-(C&7)),new t(m,c,v,f)}getModule(l,c){return 0<=l&&l>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,i(d,f));this.setFunctionModule(8,7,i(d,6)),this.setFunctionModule(8,8,i(d,7)),this.setFunctionModule(7,8,i(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,i(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,i(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,i(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=i(c,u),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,m=c+u;0<=h&&h{(T!=g-f||R>=m)&&v.push(C[T])});return a(v.length==h),v}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d>>3],7-(c&7)),c++)}}a(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c5&&l++):(this.finderPenaltyAddHistory(m,g),h||(l+=this.finderPenaltyCountPatterns(g)*t.PENALTY_N3),h=this.modules[f][b],m=1);l+=this.finderPenaltyTerminateAndCount(h,m,g)*t.PENALTY_N3}for(let f=0;f5&&l++):(this.finderPenaltyAddHistory(m,g),h||(l+=this.finderPenaltyCountPatterns(g)*t.PENALTY_N3),h=this.modules[b][f],m=1);l+=this.finderPenaltyTerminateAndCount(h,m,g)*t.PENALTY_N3}for(let f=0;fh+(m?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,m)=>u[m]^=t.reedSolomonMultiply(h,f))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1)}function i(l,c){return(l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const o=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new o(o.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!o.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u=1<{(t=>{const n=class{constructor(i,a){this.ordinal=i,this.formatBits=a}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r})(e.QrCode||(e.QrCode={}))})(rl||(rl={}));(e=>{(t=>{const n=class{constructor(i,a){this.modeBits=i,this.numBitsCharCount=a}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r})(e.QrSegment||(e.QrSegment={}))})(rl||(rl={}));var Bu=rl;/** - * @license qrcode.react - * Copyright (c) Paul O'Shannessy - * SPDX-License-Identifier: ISC - */var rQ={L:Bu.QrCode.Ecc.LOW,M:Bu.QrCode.Ecc.MEDIUM,Q:Bu.QrCode.Ecc.QUARTILE,H:Bu.QrCode.Ecc.HIGH},iQ=128,aQ="L",oQ="#FFFFFF",sQ="#000000",lQ=!1,dN=4,cQ=.1;function uQ(e,t=0){const n=[];return e.forEach(function(r,i){let a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push(`M${a+t} ${i+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push(`M${s+t},${i+t} h1v1H${s+t}z`):n.push(`M${a+t},${i+t} h${s+1-a}v1H${a+t}z`);return}o&&a===null&&(a=s)})}),n.join("")}function dQ(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((i,a)=>a=t.x+t.w?i:!1))}function fQ(e,t,n,r){if(r==null)return null;const i=n?dN:0,a=e.length+i*2,o=Math.floor(t*cQ),s=a/t,l=(r.width||o)*s,c=(r.height||o)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let h=Math.floor(u),m=Math.floor(d),g=Math.ceil(l+u-h),b=Math.ceil(c+d-m);f={x:h,y:m,w:g,h:b}}return{x:u,y:d,h:c,w:l,excavation:f}}var hQ=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function k8(e){const t=e,{value:n,size:r=iQ,level:i=aQ,bgColor:a=oQ,fgColor:o=sQ,includeMargin:s=lQ,style:l,imageSettings:c}=t,u=nQ(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=c==null?void 0:c.src,f=y.useRef(null),h=y.useRef(null),[m,g]=y.useState(!1);y.useEffect(()=>{if(f.current!=null){const v=f.current,T=v.getContext("2d");if(!T)return;let C=Bu.QrCode.encodeText(n,rQ[i]).getModules();const R=s?dN:0,N=C.length+R*2,O=fQ(C,r,s,c),$=h.current,M=O!=null&&$!==null&&$.complete&&$.naturalHeight!==0&&$.naturalWidth!==0;M&&O.excavation!=null&&(C=dQ(C,O.excavation));const L=window.devicePixelRatio||1;v.height=v.width=r*L;const X=r/N*L;T.scale(X,X),T.fillStyle=a,T.fillRect(0,0,N,N),T.fillStyle=o,hQ?T.fill(new Path2D(uQ(C,R))):C.forEach(function(Z,Q){Z.forEach(function(K,V){K&&T.fillRect(V+R,Q+R,1,1)})}),M&&T.drawImage($,O.x+R,O.y+R,O.w,O.h)}}),y.useEffect(()=>{g(!1)},[d]);const b=cy({height:r,width:r},l);let p=null;return d!=null&&(p=We.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{g(!0)},ref:h})),We.createElement(We.Fragment,null,We.createElement("canvas",cy({style:b,height:r,width:r,ref:f},u)),p)}var fN={exports:{}};(function(e,t){(function(n,r){r()})(Bl,function(){function n(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function r(c,u,d){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,d)},f.onerror=function(){console.error("could not download file")},f.send()}function i(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Bl=="object"&&Bl.global===Bl?Bl:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,u,d){var f=o.URL||o.webkitURL,h=document.createElement("a");u=u||c.name||"download",h.download=u,h.rel="noopener",typeof c=="string"?(h.href=c,h.origin===location.origin?a(h):i(h.href)?r(c,u,d):a(h,h.target="_blank")):(h.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){a(h)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,d){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,d),u);else if(i(c))r(c,u,d);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){a(f)})}}:function(c,u,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return r(c,u,d);var h=c.type==="application/octet-stream",m=/constructor/i.test(o.HTMLElement)||o.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||h&&m||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var T=b.result;T=g?T:T.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=T:location=T,f=null},b.readAsDataURL(c)}else{var p=o.URL||o.webkitURL,v=p.createObjectURL(c);f?f.location=v:location.href=v,f=null,setTimeout(function(){p.revokeObjectURL(v)},4e4)}});o.saveAs=l.saveAs=l,e.exports=l})})(fN);var hN=fN.exports;function mQ(e,[t,n]){return Math.min(n,Math.max(t,e))}function pQ(e,t){return y.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const mN="ScrollArea",[pN,zde]=jr(mN),[gQ,ui]=pN(mN),vQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=y.useState(null),[c,u]=y.useState(null),[d,f]=y.useState(null),[h,m]=y.useState(null),[g,b]=y.useState(null),[p,v]=y.useState(0),[T,C]=y.useState(0),[R,N]=y.useState(!1),[O,$]=y.useState(!1),M=Lt(t,X=>l(X)),L=l0(i);return y.createElement(gQ,{scope:n,type:r,dir:L,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:R,onScrollbarXEnabledChange:N,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:O,onScrollbarYEnabledChange:$,onCornerWidthChange:v,onCornerHeightChange:C},y.createElement(pt.div,ue({dir:L},o,{ref:M,style:{position:"relative",["--radix-scroll-area-corner-width"]:p+"px",["--radix-scroll-area-corner-height"]:T+"px",...e.style}})))}),yQ="ScrollAreaViewport",bQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...i}=e,a=ui(yQ,n),o=y.useRef(null),s=Lt(t,o,a.onViewportChange);return y.createElement(y.Fragment,null,y.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),y.createElement(pt.div,ue({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),y.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),oo="ScrollAreaScrollbar",gN=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ui(oo,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?y.createElement(EQ,ue({},r,{ref:t,forceMount:n})):i.type==="scroll"?y.createElement(TQ,ue({},r,{ref:t,forceMount:n})):i.type==="auto"?y.createElement(vN,ue({},r,{ref:t,forceMount:n})):i.type==="always"?y.createElement(O8,ue({},r,{ref:t})):null}),EQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ui(oo,e.__scopeScrollArea),[a,o]=y.useState(!1);return y.useEffect(()=>{const s=i.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),o(!0)},u=()=>{l=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[i.scrollArea,i.scrollHideDelay]),y.createElement(ir,{present:n||a},y.createElement(vN,ue({"data-state":a?"visible":"hidden"},r,{ref:t})))}),TQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ui(oo,e.__scopeScrollArea),a=e.orientation==="horizontal",o=Km(()=>l("SCROLL_END"),100),[s,l]=pQ("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,i.scrollHideDelay,l]),y.useEffect(()=>{const c=i.viewport,u=a?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const h=c[u];d!==h&&(l("SCROLL"),o()),d=h};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[i.viewport,a,l,o]),y.createElement(ir,{present:n||s!=="hidden"},y.createElement(O8,ue({"data-state":s==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:Ue(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ue(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),vN=y.forwardRef((e,t)=>{const n=ui(oo,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=y.useState(!1),s=e.orientation==="horizontal",l=Km(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,i=ui(oo,e.__scopeScrollArea),a=y.useRef(null),o=y.useRef(0),[s,l]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=TN(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function d(f,h){return kQ(f,o.current,s,h)}return n==="horizontal"?y.createElement(xQ,ue({},u,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollLeft,h=uy(f,s,i.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=d(f,i.dir))}})):n==="vertical"?y.createElement(_Q,ue({},u,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollTop,h=uy(f,s);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=d(f))}})):null}),xQ=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=ui(oo,e.__scopeScrollArea),[o,s]=y.useState(),l=y.useRef(null),c=Lt(t,l,a.onScrollbarXChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),y.createElement(bN,ue({"data-orientation":"horizontal"},i,{ref:c,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:Vm(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),_N(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Rh(o.paddingLeft),paddingEnd:Rh(o.paddingRight)}})}}))}),_Q=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=ui(oo,e.__scopeScrollArea),[o,s]=y.useState(),l=y.useRef(null),c=Lt(t,l,a.onScrollbarYChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),y.createElement(bN,ue({"data-orientation":"vertical"},i,{ref:c,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:Vm(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),_N(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Rh(o.paddingTop),paddingEnd:Rh(o.paddingBottom)}})}}))}),[wQ,yN]=pN(oo),bN=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,h=ui(oo,n),[m,g]=y.useState(null),b=Lt(t,M=>g(M)),p=y.useRef(null),v=y.useRef(""),T=h.viewport,C=r.content-r.viewport,R=Cn(u),N=Cn(l),O=Km(d,10);function $(M){if(p.current){const L=M.clientX-p.current.left,X=M.clientY-p.current.top;c({x:L,y:X})}}return y.useEffect(()=>{const M=L=>{const X=L.target;(m==null?void 0:m.contains(X))&&R(L,C)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[T,m,C,R]),y.useEffect(N,[r,N]),Bc(m,O),Bc(h.content,O),y.createElement(wQ,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:Cn(a),onThumbPointerUp:Cn(o),onThumbPositionChange:N,onThumbPointerDown:Cn(s)},y.createElement(pt.div,ue({},f,{ref:b,style:{position:"absolute",...f.style},onPointerDown:Ue(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),p.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(M))}),onPointerMove:Ue(e.onPointerMove,$),onPointerUp:Ue(e.onPointerUp,M=>{const L=M.target;L.hasPointerCapture(M.pointerId)&&L.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=v.current,p.current=null})})))}),o2="ScrollAreaThumb",SQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yN(o2,e.__scopeScrollArea);return y.createElement(ir,{present:n||i.hasThumb},y.createElement(CQ,ue({ref:t},r)))}),CQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=ui(o2,n),o=yN(o2,n),{onThumbPositionChange:s}=o,l=Lt(t,d=>o.onThumbChange(d)),c=y.useRef(),u=Km(()=>{c.current&&(c.current(),c.current=void 0)},100);return y.useEffect(()=>{const d=a.viewport;if(d){const f=()=>{if(u(),!c.current){const h=OQ(d,s);c.current=h,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,u,s]),y.createElement(pt.div,ue({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ue(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),m=d.clientX-h.left,g=d.clientY-h.top;o.onThumbPointerDown({x:m,y:g})}),onPointerUp:Ue(e.onPointerUp,o.onThumbPointerUp)}))}),EN="ScrollAreaCorner",AQ=y.forwardRef((e,t)=>{const n=ui(EN,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?y.createElement(NQ,ue({},e,{ref:t})):null}),NQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=ui(EN,n),[a,o]=y.useState(0),[s,l]=y.useState(0),c=!!(a&&s);return Bc(i.scrollbarX,()=>{var u;const d=((u=i.scrollbarX)===null||u===void 0?void 0:u.offsetHeight)||0;i.onCornerHeightChange(d),l(d)}),Bc(i.scrollbarY,()=>{var u;const d=((u=i.scrollbarY)===null||u===void 0?void 0:u.offsetWidth)||0;i.onCornerWidthChange(d),o(d)}),c?y.createElement(pt.div,ue({},r,{ref:t,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Rh(e){return e?parseInt(e,10):0}function TN(e,t){const n=e/t;return isNaN(n)?0:n}function Vm(e){const t=TN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function kQ(e,t,n,r="ltr"){const i=Vm(n),a=i/2,o=t||a,s=i-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return xN([l,c],d)(e)}function uy(e,t,n="ltr"){const r=Vm(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,o]:[o*-1,0],c=mQ(e,l);return xN([0,o],[0,s])(c)}function xN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function _N(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Km(e,t){const n=Cn(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Bc(e,t){const n=Cn(t);Jo(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}const wN=vQ,RQ=bQ,IQ=AQ,x0=y.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(wN,{ref:r,className:ze("relative overflow-hidden",e),...n,children:[x.jsx(RQ,{className:"h-full w-full rounded-[inherit]",children:t}),x.jsx(SN,{}),x.jsx(IQ,{})]}));x0.displayName=wN.displayName;const SN=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>x.jsx(gN,{ref:r,orientation:t,className:ze("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:x.jsx(SQ,{className:"relative flex-1 rounded-full bg-border"})}));SN.displayName=gN.displayName;var CN={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=K?Q:""+Array(K+1-ne.length).join(V)+Q},C={s:T,z:function(Q){var K=-Q.utcOffset(),V=Math.abs(K),ne=Math.floor(V/60),B=V%60;return(K<=0?"+":"-")+T(ne,2,"0")+":"+T(B,2,"0")},m:function Q(K,V){if(K.date()1)return Q(D[0])}else{var A=K.name;N[A]=K,B=A}return!ne&&B&&(R=B),B||!ne&&R},M=function(Q,K){if(O(Q))return Q.clone();var V=typeof K=="object"?K:{};return V.date=Q,V.args=arguments,new X(V)},L=C;L.l=$,L.i=O,L.w=function(Q,K){return M(Q,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var X=function(){function Q(V){this.$L=$(V.locale,null,!0),this.parse(V)}var K=Q.prototype;return K.parse=function(V){this.$d=function(ne){var B=ne.date,w=ne.utc;if(B===null)return new Date(NaN);if(L.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var D=B.match(b);if(D){var A=D[2]-1||0,W=(D[7]||"0").substring(0,3);return w?new Date(Date.UTC(D[1],A,D[3]||1,D[4]||0,D[5]||0,D[6]||0,W)):new Date(D[1],A,D[3]||1,D[4]||0,D[5]||0,D[6]||0,W)}}return new Date(B)}(V),this.$x=V.x||{},this.init()},K.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},K.$utils=function(){return L},K.isValid=function(){return this.$d.toString()!==g},K.isSame=function(V,ne){var B=M(V);return this.startOf(ne)<=B&&B<=this.endOf(ne)},K.isAfter=function(V,ne){return M(V)i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */var $Q=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const NN=wr($Q);function n1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fy(e.position):"start"in e||"end"in e?fy(e):"line"in e||"column"in e?s2(e):""}function s2(e){return hy(e&&e.line)+":"+hy(e&&e.column)}function fy(e){return s2(e&&e.start)+"-"+s2(e&&e.end)}function hy(e){return e&&typeof e=="number"?e:1}class di extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=n1(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}di.prototype.file="";di.prototype.name="";di.prototype.reason="";di.prototype.message="";di.prototype.stack="";di.prototype.fatal=null;di.prototype.column=null;di.prototype.line=null;di.prototype.source=null;di.prototype.ruleId=null;di.prototype.position=null;const Ki={basename:FQ,dirname:BQ,extname:zQ,join:UQ,sep:"/"};function FQ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_0(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function BQ(e){if(_0(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function zQ(e){_0(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function UQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function _0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const GQ={cwd:VQ};function VQ(){return"/"}function l2(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function KQ(e){if(typeof e=="string")e=new URL(e);else if(!l2(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 WQ(e)}function WQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||gf.call(t,i)},Ey=function(t,n){gy&&n.name==="__proto__"?gy(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ty=function(t,n){if(n==="__proto__")if(gf.call(t,n)){if(vy)return vy(t,n).value}else return;return t[n]},YQ=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const ZQ=IN().freeze(),RN={}.hasOwnProperty;function IN(){const e=XQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=l,a.parse=c,a.stringify=u,a.run=d,a.runSync=f,a.process=h,a.processSync=m,a;function a(){const g=IN();let b=-1;for(;++b{if(N||!O||!$)R(N);else{const M=a.stringify(O,$);M==null||(tZ(M)?$.value=M:$.result=M),R(N,$)}});function R(N,O){N||!O?T(N):v?v(O):b(null,O)}}}function m(g){let b;a.freeze(),Ag("processSync",a.Parser),Ng("processSync",a.Compiler);const p=Su(g);return a.process(p,v),Sy("processSync","process",b),p;function v(T){b=!0,py(T)}}}function _y(e,t){return typeof e=="function"&&e.prototype&&(JQ(e.prototype)||t in e.prototype)}function JQ(e){let t;for(t in e)if(RN.call(e,t))return!0;return!1}function Ag(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ng(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function kg(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 wy(e){if(!c2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sy(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Su(e){return eZ(e)?e:new kN(e)}function eZ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tZ(e){return typeof e=="string"||NN(e)}const nZ={};function rZ(e,t){const n=t||nZ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return MN(e,r,i)}function MN(e,t,n){if(iZ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Cy(e.children,t,n)}return Array.isArray(e)?Cy(e,t,n):""}function Cy(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Fr(e,e.length,0,t),e):t}const Ay={}.hasOwnProperty;function LN(e){const t={};let n=-1;for(;++no))return;const O=t.events.length;let $=O,M,L;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(M){L=t.events[$][1].end;break}M=!0}for(p(r),N=O;NT;){const R=n[C];t.containerState=R[1],R[0].exit.call(t,e)}n.length=T}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function pZ(e,t,n){return lt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Mh(e){if(e===null||It(e)||il(e))return 1;if(Wm(e))return 2}function qm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);ky(d,-l),ky(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Zr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Zr(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Zr(c,qm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Zr(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Zr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Fr(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&ut(N)?lt(e,v,"linePrefix",a+1)(N):v(N)}function v(N){return N===null||Be(N)?e.check(Ry,g,C)(N):(e.enter("codeFlowValue"),T(N))}function T(N){return N===null||Be(N)?(e.exit("codeFlowValue"),v(N)):(e.consume(N),T)}function C(N){return e.exit("codeFenced"),t(N)}function R(N,O,$){let M=0;return L;function L(V){return N.enter("lineEnding"),N.consume(V),N.exit("lineEnding"),X}function X(V){return N.enter("codeFencedFence"),ut(V)?lt(N,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):Z(V)}function Z(V){return V===s?(N.enter("codeFencedFenceSequence"),Q(V)):$(V)}function Q(V){return V===s?(M++,N.consume(V),Q):M>=o?(N.exit("codeFencedFenceSequence"),ut(V)?lt(N,K,"whitespace")(V):K(V)):$(V)}function K(V){return V===null||Be(V)?(N.exit("codeFencedFence"),O(V)):$(V)}}}function AZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Og={name:"codeIndented",tokenize:kZ},NZ={tokenize:OZ,partial:!0};function kZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),lt(e,a,"linePrefix",4+1)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Be(c)?e.attempt(NZ,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Be(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function OZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):lt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Be(o)?i(o):n(o)}}const RZ={name:"codeText",tokenize:LZ,resolve:IZ,previous:MZ};function IZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function BN(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(p){return p===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(p),e.exit(a),f):p===null||p===32||p===41||Ih(p)?n(p):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(p))}function f(p){return p===62?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===62?(e.exit("chunkString"),e.exit(s),f(p)):p===null||p===60||Be(p)?n(p):(e.consume(p),p===92?m:h)}function m(p){return p===60||p===62||p===92?(e.consume(p),h):h(p)}function g(p){return!u&&(p===null||p===41||It(p))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(p)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||Be(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!ut(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function UN(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),l(o)):f===null?n(f):Be(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),lt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||Be(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===o||f===92?(e.consume(f),u):u(f)}}function r1(e,t){let n;return r;function r(i){return Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ut(i)?lt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ii(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const UZ={name:"definition",tokenize:jZ},HZ={tokenize:GZ,partial:!0};function jZ(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return zN.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Ii(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return It(h)?r1(e,c)(h):c(h)}function c(h){return BN(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(HZ,d,d)(h)}function d(h){return ut(h)?lt(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Be(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function GZ(e,t,n){return r;function r(s){return It(s)?r1(e,i)(s):n(s)}function i(s){return UN(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ut(s)?lt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Be(s)?t(s):n(s)}}const VZ={name:"hardBreakEscape",tokenize:KZ};function KZ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Be(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const WZ={name:"headingAtx",tokenize:YZ,resolve:qZ};function qZ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fr(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function YZ(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||It(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Be(u)?(e.exit("atxHeading"),t(u)):ut(u)?lt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||It(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const XZ=["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"],My=["pre","script","style","textarea"],QZ={name:"htmlFlow",tokenize:tJ,resolveTo:eJ,concrete:!0},ZZ={tokenize:rJ,partial:!0},JZ={tokenize:nJ,partial:!0};function eJ(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 tJ(e,t,n){const r=this;let i,a,o,s,l;return c;function c(P){return u(P)}function u(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,g):P===63?(e.consume(P),i=3,r.interrupt?t:A):Zn(P)?(e.consume(P),o=String.fromCharCode(P),b):n(P)}function f(P){return P===45?(e.consume(P),i=2,h):P===91?(e.consume(P),i=5,s=0,m):Zn(P)?(e.consume(P),i=4,r.interrupt?t:A):n(P)}function h(P){return P===45?(e.consume(P),r.interrupt?t:A):n(P)}function m(P){const Te="CDATA[";return P===Te.charCodeAt(s++)?(e.consume(P),s===Te.length?r.interrupt?t:Z:m):n(P)}function g(P){return Zn(P)?(e.consume(P),o=String.fromCharCode(P),b):n(P)}function b(P){if(P===null||P===47||P===62||It(P)){const Te=P===47,Se=o.toLowerCase();return!Te&&!a&&My.includes(Se)?(i=1,r.interrupt?t(P):Z(P)):XZ.includes(o.toLowerCase())?(i=6,Te?(e.consume(P),p):r.interrupt?t(P):Z(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?v(P):T(P))}return P===45||Kn(P)?(e.consume(P),o+=String.fromCharCode(P),b):n(P)}function p(P){return P===62?(e.consume(P),r.interrupt?t:Z):n(P)}function v(P){return ut(P)?(e.consume(P),v):L(P)}function T(P){return P===47?(e.consume(P),L):P===58||P===95||Zn(P)?(e.consume(P),C):ut(P)?(e.consume(P),T):L(P)}function C(P){return P===45||P===46||P===58||P===95||Kn(P)?(e.consume(P),C):R(P)}function R(P){return P===61?(e.consume(P),N):ut(P)?(e.consume(P),R):T(P)}function N(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),l=P,O):ut(P)?(e.consume(P),N):$(P)}function O(P){return P===l?(e.consume(P),l=null,M):P===null||Be(P)?n(P):(e.consume(P),O)}function $(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||It(P)?R(P):(e.consume(P),$)}function M(P){return P===47||P===62||ut(P)?T(P):n(P)}function L(P){return P===62?(e.consume(P),X):n(P)}function X(P){return P===null||Be(P)?Z(P):ut(P)?(e.consume(P),X):n(P)}function Z(P){return P===45&&i===2?(e.consume(P),ne):P===60&&i===1?(e.consume(P),B):P===62&&i===4?(e.consume(P),W):P===63&&i===3?(e.consume(P),A):P===93&&i===5?(e.consume(P),D):Be(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ZZ,te,Q)(P)):P===null||Be(P)?(e.exit("htmlFlowData"),Q(P)):(e.consume(P),Z)}function Q(P){return e.check(JZ,K,te)(P)}function K(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),V}function V(P){return P===null||Be(P)?Q(P):(e.enter("htmlFlowData"),Z(P))}function ne(P){return P===45?(e.consume(P),A):Z(P)}function B(P){return P===47?(e.consume(P),o="",w):Z(P)}function w(P){if(P===62){const Te=o.toLowerCase();return My.includes(Te)?(e.consume(P),W):Z(P)}return Zn(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),w):Z(P)}function D(P){return P===93?(e.consume(P),A):Z(P)}function A(P){return P===62?(e.consume(P),W):P===45&&i===2?(e.consume(P),A):Z(P)}function W(P){return P===null||Be(P)?(e.exit("htmlFlowData"),te(P)):(e.consume(P),W)}function te(P){return e.exit("htmlFlow"),t(P)}}function nJ(e,t,n){const r=this;return i;function i(o){return Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function rJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(w0,t,n)}}const iJ={name:"htmlText",tokenize:aJ};function aJ(e,t,n){const r=this;let i,a,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),R):A===63?(e.consume(A),T):Zn(A)?(e.consume(A),$):n(A)}function c(A){return A===45?(e.consume(A),u):A===91?(e.consume(A),a=0,m):Zn(A)?(e.consume(A),v):n(A)}function u(A){return A===45?(e.consume(A),h):n(A)}function d(A){return A===null?n(A):A===45?(e.consume(A),f):Be(A)?(o=d,B(A)):(e.consume(A),d)}function f(A){return A===45?(e.consume(A),h):d(A)}function h(A){return A===62?ne(A):A===45?f(A):d(A)}function m(A){const W="CDATA[";return A===W.charCodeAt(a++)?(e.consume(A),a===W.length?g:m):n(A)}function g(A){return A===null?n(A):A===93?(e.consume(A),b):Be(A)?(o=g,B(A)):(e.consume(A),g)}function b(A){return A===93?(e.consume(A),p):g(A)}function p(A){return A===62?ne(A):A===93?(e.consume(A),p):g(A)}function v(A){return A===null||A===62?ne(A):Be(A)?(o=v,B(A)):(e.consume(A),v)}function T(A){return A===null?n(A):A===63?(e.consume(A),C):Be(A)?(o=T,B(A)):(e.consume(A),T)}function C(A){return A===62?ne(A):T(A)}function R(A){return Zn(A)?(e.consume(A),N):n(A)}function N(A){return A===45||Kn(A)?(e.consume(A),N):O(A)}function O(A){return Be(A)?(o=O,B(A)):ut(A)?(e.consume(A),O):ne(A)}function $(A){return A===45||Kn(A)?(e.consume(A),$):A===47||A===62||It(A)?M(A):n(A)}function M(A){return A===47?(e.consume(A),ne):A===58||A===95||Zn(A)?(e.consume(A),L):Be(A)?(o=M,B(A)):ut(A)?(e.consume(A),M):ne(A)}function L(A){return A===45||A===46||A===58||A===95||Kn(A)?(e.consume(A),L):X(A)}function X(A){return A===61?(e.consume(A),Z):Be(A)?(o=X,B(A)):ut(A)?(e.consume(A),X):M(A)}function Z(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,Q):Be(A)?(o=Z,B(A)):ut(A)?(e.consume(A),Z):(e.consume(A),K)}function Q(A){return A===i?(e.consume(A),i=void 0,V):A===null?n(A):Be(A)?(o=Q,B(A)):(e.consume(A),Q)}function K(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||It(A)?M(A):(e.consume(A),K)}function V(A){return A===47||A===62||It(A)?M(A):n(A)}function ne(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function B(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return ut(A)?lt(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):D(A)}function D(A){return e.enter("htmlTextData"),o(A)}}const I8={name:"labelEnd",tokenize:dJ,resolveTo:uJ,resolveAll:cJ},oJ={tokenize:fJ},sJ={tokenize:hJ},lJ={tokenize:mJ};function cJ(e){let t=-1;for(;++t=3&&(c===null||Be(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ut(c)?lt(e,s,"whitespace")(c):s(c))}}const cr={name:"list",tokenize:_J,continuation:{tokenize:wJ},exit:CJ},TJ={tokenize:AJ,partial:!0},xJ={tokenize:SJ,partial:!0};function _J(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:u2(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vf,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return u2(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(w0,r.interrupt?n:u,e.attempt(TJ,f,d))}function u(h){return r.containerState.initialBlankLine=!0,a++,f(h)}function d(h){return ut(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function wJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(w0,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,lt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ut(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(xJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,lt(e,e.attempt(cr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function SJ(e,t,n){const r=this;return lt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function CJ(e){e.exit(this.containerState.type)}function AJ(e,t,n){const r=this;return lt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!ut(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Ly={name:"setextUnderline",tokenize:kJ,resolveTo:NJ};function NJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function kJ(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ut(c)?lt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Be(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const OJ={tokenize:RJ};function RJ(e){const t=this,n=e.attempt(w0,r,e.attempt(this.parser.constructs.flowInitial,i,lt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(PZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const IJ={resolveAll:jN()},MJ=HN("string"),LJ=HN("text");function HN(e){return{tokenize:t,resolveAll:jN(e==="text"?DJ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function FJ(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const ZJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VN(e){return e.replace(ZJ,JJ)}function JJ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GN(n.slice(a?2:1),a?16:10)}return R8(n)||e}const KN={}.hasOwnProperty,eee=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),tee(n)(QJ(YJ(n).document().write(XJ()(e,t,!0))))};function tee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(_e),autolinkProtocol:X,autolinkEmail:X,atxHeading:s(j),blockQuote:s(St),characterEscape:X,characterReference:X,codeFenced:s(Ct),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ct,l),codeText:s(or,l),codeTextData:X,data:X,codeFlowValue:X,definition:s(en),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(sr),hardBreakEscape:s(ie),hardBreakTrailing:s(ie),htmlFlow:s(ae,l),htmlFlowData:X,htmlText:s(ae,l),htmlTextData:X,image:s(le),label:l,link:s(_e),listItem:s(be),listItemValue:m,listOrdered:s(ce,h),listUnordered:s(ce),paragraph:s(gt),reference:Se,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(j),strong:s(vt),thematicBreak:s(ba)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:st,autolinkProtocol:xe,blockQuote:u(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:Ae,characterReferenceMarkerNumeric:Ae,characterReferenceValue:qe,codeFenced:u(v),codeFencedFence:p,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:Z,codeIndented:u(T),codeText:u(B),codeTextData:Z,data:Z,definition:u(),definitionDestinationString:N,definitionLabelString:C,definitionTitleString:R,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(V),htmlFlowData:Z,htmlText:u(ne),htmlTextData:Z,image:u(D),label:W,labelText:A,lineEnding:Q,link:u(w),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ce,resourceDestinationString:te,resourceTitleString:P,resource:Te,setextHeading:u(L),setextHeadingLineSequence:M,setextHeadingText:$,strong:u(),thematicBreak:u()}};WN(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(G){let re={type:"root",children:[]};const pe={stack:[re],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:a,getData:o},Y=[];let J=-1;for(;++J0){const oe=pe.tokenStack[pe.tokenStack.length-1];(oe[1]||Py).call(pe,void 0,oe[0])}for(re.position={start:mo(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:mo(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J{const r=this.data("settings");return eee(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function iee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function aee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` -`}]}function oee(e,t){const n=t.value?t.value+` -`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function see(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tu(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function qN(e,t){const n=String(t.identifier).toUpperCase(),r=tu(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function cee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},qN(e,{type:"footnoteReference",identifier:i,position:t.position})}function uee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function YN(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function fee(e,t){const n=e.definition(t.identifier);if(!n)return YN(e,t);const r={src:tu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function hee(e,t){const n={src:tu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function pee(e,t){const n=e.definition(t.identifier);if(!n)return YN(e,t);const r={href:tu(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function gee(e,t){const n={href:tu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vee(e,t,n){const r=e.all(t),i=n?yee(n):XN(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function bee(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function wee(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=S0(t.children[1]),l=Ym(t.children[t.children.length-1]);s.line&&l.line&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function See(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(By(t.slice(i),i>0,!1)),a.join("")}function By(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===$y||a===Fy;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===$y||a===Fy;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Nee(e,t){const n={type:"text",value:Aee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function kee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Oee={blockquote:iee,break:aee,code:oee,delete:see,emphasis:lee,footnoteReference:qN,footnote:cee,heading:uee,html:dee,imageReference:fee,image:hee,inlineCode:mee,linkReference:pee,link:gee,listItem:vee,list:bee,paragraph:Eee,root:Tee,strong:xee,table:wee,tableCell:Cee,tableRow:See,text:Nee,thematicBreak:kee,toml:dd,yaml:dd,definition:dd,footnoteDefinition:dd};function dd(){return null}const Xm=function(e){if(e==null)return Lee;if(typeof e=="string")return Mee(e);if(typeof e=="object")return Array.isArray(e)?Ree(e):Iee(e);if(typeof e=="function")return Qm(e);throw new Error("Expected function, string, or object as test")};function Ree(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let f=[],h,m,g;if((!t||i(s,l,c[c.length-1]||null))&&(f=$ee(n(s,c)),f[0]===zy))return f;if(s.children&&f[0]!==Pee)for(m=(r?s.children.length:-1)+a,g=c.concat(s);m>-1&&m{const i=Hy(r.identifier);i&&!Uy.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Hy(r);return i&&Uy.call(t,i)?t[i]:null}}function Hy(e){return String(e||"").toUpperCase()}const Lh={}.hasOwnProperty;function zee(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Oee,...n.handlers},o.definition=Bee(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=Uee,o.applyData=Hee,o.one=s,o.all=l,o.wrap=Gee,o.augment=a,nu(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();Lh.call(i,u)||(i[u]=c)}),o;function a(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};Fee(d)||(u.position={start:S0(d),end:Ym(d)})}return u}function o(c,u,d,f){return Array.isArray(d)&&(f=d,d={}),a(c,{type:"element",tagName:u,properties:d||{},children:f||[]})}function s(c,u){return JN(o,c,u)}function l(c){return M8(o,c)}}function Uee(e,t){e.position&&(t.position=_ee(e))}function Hee(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function JN(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Lh.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:M8(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):jee(e,t)}function M8(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` -`}),n}function Vee(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` -`}]}}function ek(e,t){const n=zee(e,t),r=n.one(e,null),i=Vee(n);return i&&r.children.push({type:"text",value:` -`},i),Array.isArray(r)?{type:"root",children:r}:r}const Kee=function(e,t){return e&&"run"in e?qee(e,t):Yee(e||t)},Wee=Kee;function qee(e,t){return(n,r,i)=>{e.run(ek(n,t),r,a=>{i(a)})}}function Yee(e){return t=>ek(t,e)}var tk={exports:{}},Xee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Qee=Xee,Zee=Qee;function nk(){}function rk(){}rk.resetWarningCache=nk;var Jee=function(){function e(r,i,a,o,s,l){if(l!==Zee){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rk,resetWarningCache:nk};return n.PropTypes=n,n};tk.exports=Jee();var ete=tk.exports;const Je=wr(ete);class C0{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}C0.prototype.property={};C0.prototype.normal={};C0.prototype.space=null;function ik(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&ate.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Gy,lte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Gy.test(a)){let o=a.replace(ote,ste);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=L8}return new i(r,t)}function ste(e){return"-"+e.toLowerCase()}function lte(e){return e.charAt(1).toUpperCase()}const Vy={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"},A0=ik([sk,ok,uk,dk,rte],"html"),iu=ik([sk,ok,uk,dk,ite],"svg");function cte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{nu(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}var fk={exports:{}},wt={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var D8=Symbol.for("react.element"),P8=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),ep=Symbol.for("react.strict_mode"),tp=Symbol.for("react.profiler"),np=Symbol.for("react.provider"),rp=Symbol.for("react.context"),ute=Symbol.for("react.server_context"),ip=Symbol.for("react.forward_ref"),ap=Symbol.for("react.suspense"),op=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),lp=Symbol.for("react.lazy"),dte=Symbol.for("react.offscreen"),hk;hk=Symbol.for("react.module.reference");function hi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case D8:switch(e=e.type,e){case Jm:case tp:case ep:case ap:case op:return e;default:switch(e=e&&e.$$typeof,e){case ute:case rp:case ip:case lp:case sp:case np:return e;default:return t}}case P8:return t}}}wt.ContextConsumer=rp;wt.ContextProvider=np;wt.Element=D8;wt.ForwardRef=ip;wt.Fragment=Jm;wt.Lazy=lp;wt.Memo=sp;wt.Portal=P8;wt.Profiler=tp;wt.StrictMode=ep;wt.Suspense=ap;wt.SuspenseList=op;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(e){return hi(e)===rp};wt.isContextProvider=function(e){return hi(e)===np};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===D8};wt.isForwardRef=function(e){return hi(e)===ip};wt.isFragment=function(e){return hi(e)===Jm};wt.isLazy=function(e){return hi(e)===lp};wt.isMemo=function(e){return hi(e)===sp};wt.isPortal=function(e){return hi(e)===P8};wt.isProfiler=function(e){return hi(e)===tp};wt.isStrictMode=function(e){return hi(e)===ep};wt.isSuspense=function(e){return hi(e)===ap};wt.isSuspenseList=function(e){return hi(e)===op};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jm||e===tp||e===ep||e===ap||e===op||e===dte||typeof e=="object"&&e!==null&&(e.$$typeof===lp||e.$$typeof===sp||e.$$typeof===np||e.$$typeof===rp||e.$$typeof===ip||e.$$typeof===hk||e.getModuleId!==void 0)};wt.typeOf=hi;fk.exports=wt;var fte=fk.exports;const hte=wr(fte);function mte(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Ky(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mk(e){return e.join(" ").trim()}function Wy(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function pk(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var $8={exports:{}},qy=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pte=/\n/g,gte=/^\s*/,vte=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yte=/^:\s*/,bte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ete=/^[;\s]*/,Tte=/^\s+|\s+$/g,xte=` -`,Yy="/",Xy="*",Is="",_te="comment",wte="declaration",Ste=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(pte);g&&(n+=g.length);var b=m.lastIndexOf(xte);r=~b?m.length-b:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var b=g[0];return i(b),e=e.slice(b.length),g}}function c(){l(gte)}function u(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=a();if(!(Yy!=e.charAt(0)||Xy!=e.charAt(1))){for(var g=2;Is!=e.charAt(g)&&(Xy!=e.charAt(g)||Yy!=e.charAt(g+1));)++g;if(g+=2,Is===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return r+=2,i(b),e=e.slice(g),r+=2,m({type:_te,comment:b})}}function f(){var m=a(),g=l(vte);if(g){if(d(),!l(yte))return s("property missing ':'");var b=l(bte),p=m({type:wte,property:Qy(g[0].replace(qy,Is)),value:b?Qy(b[0].replace(qy,Is)):Is});return l(Ete),p}}function h(){var m=[];u(m);for(var g;g=f();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function Qy(e){return e?e.replace(Tte,Is):Is}var Cte=Ste;function gk(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=Cte(e),a=typeof t=="function",o,s,l=0,c=i.length;l0?We.createElement(h,l,d):We.createElement(h,l)}function Rte(e){let t=-1;for(;++t for more info)`),delete fd[a]}const t=ZQ().use(ree).use(e.remarkPlugins||[]).use(Wee,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(cte,e),n=new kN;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=We.createElement(We.Fragment,{},vk({options:e,schema:A0,listDepth:0},r));return e.className&&(i=We.createElement("div",{className:e.className},i)),i}yk.propTypes={children:Je.string,className:Je.string,allowElement:Je.func,allowedElements:Je.arrayOf(Je.string),disallowedElements:Je.arrayOf(Je.string),unwrapDisallowed:Je.bool,remarkPlugins:Je.arrayOf(Je.oneOfType([Je.object,Je.func,Je.arrayOf(Je.oneOfType([Je.bool,Je.string,Je.object,Je.func,Je.arrayOf(Je.any)]))])),rehypePlugins:Je.arrayOf(Je.oneOfType([Je.object,Je.func,Je.arrayOf(Je.oneOfType([Je.bool,Je.string,Je.object,Je.func,Je.arrayOf(Je.any)]))])),sourcePos:Je.bool,rawSourcePos:Je.bool,skipHtml:Je.bool,includeElementIndex:Je.bool,transformLinkUri:Je.oneOfType([Je.func,Je.bool]),linkTarget:Je.oneOfType([Je.func,Je.string]),transformImageUri:Je.func,components:Je.object};function $te(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],p=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},R={className:"function.dispatch",relevance:0,keywords:{_hint:p},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[R,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:N.concat([{begin:/\(/,end:/\)/,keywords:C,contains:N.concat(["self"]),relevance:0}]),relevance:0},$={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Fte(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=$te(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Bte(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],g={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],p=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...b,...p,"set","shopt",...v,...T]},contains:[d,e.SHEBANG(),f,c,e.HASH_COMMENT_MODE,a,g,o,s,l,n]}}function zte(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},p=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:p.concat([{begin:/\(/,end:/\)/,keywords:b,contains:p.concat(["self"]),relevance:0}]),relevance:0},T={begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:b}}}function Ute(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],p=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},R={className:"function.dispatch",relevance:0,keywords:{_hint:p},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[R,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:N.concat([{begin:/\(/,end:/\)/,keywords:C,contains:N.concat(["self"]),relevance:0}]),relevance:0},$={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Hte(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=e.inherit(d,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},g=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[g,h,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},v=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",T={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},b,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[b,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},T]}}const jte=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),Gte=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vte=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Kte=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Wte=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],qte=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Yte(e){const t=e.regex,n=jte(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Kte.join("|")+")"},{begin:":(:)?("+Wte.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qte.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Vte.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Gte.join("|")+")\\b"}]}}function Xte(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Qte(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"bk(e,t,n-1))}function ene(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+bk("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Jy,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Jy,c]}}const eb="[A-Za-z$_][0-9A-Za-z$_]*",tne=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],nne=["true","false","null","undefined","NaN","Infinity"],Ek=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Tk=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],rne=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ine=[].concat(xk,Ek,Tk);function ane(e){const t=e.regex,n=(w,{after:D})=>{const A="",end:""},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,D)=>{const A=w[0].length+w.index,W=w.input[A];if(W==="<"||W===","){D.ignoreMatch();return}W===">"&&(n(w,{after:A})||D.ignoreMatch());let te;const P=w.input.substring(A);if(te=P.match(/^\s*=/)){D.ignoreMatch();return}if((te=P.match(/^\s+extends\s+/))&&te.index===0){D.ignoreMatch();return}}},s={$pattern:eb,keyword:tne,literal:nne,built_in:ine,"variable.language":rne},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,{match:/\$\d+/},d];f.contains=T.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(T)});const C=[].concat(v,f.contains),R=C.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},O={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ek,...Tk]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return t.concat("(?!",w.join("|"),")")}const Q={match:t.concat(/\b/,Z([...xk,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,v,{match:/\$\d+/},d,$,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},Q,X,O,V,{match:/\$[(.]/}]}}function one(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var jl="[0-9](_*[0-9])*",pd=`\\.(${jl})`,gd="[0-9a-fA-F](_*[0-9a-fA-F])*",sne={className:"number",variants:[{begin:`(\\b(${jl})((${pd})|\\.)?|(${pd}))[eE][+-]?(${jl})[fFdD]?\\b`},{begin:`\\b(${jl})((${pd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${pd})[fFdD]?\\b`},{begin:`\\b(${jl})[fFdD]\\b`},{begin:`\\b0[xX]((${gd})\\.?|(${gd})?\\.(${gd}))[pP][+-]?(${jl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${gd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function lne(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=sne,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,l,o,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},c]}}const cne=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),une=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],dne=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],_k=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],wk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],fne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),hne=_k.concat(wk);function mne(e){const t=cne(e),n=hne,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],l=function(T){return{className:"string",begin:"~?"+T+".*?"+T}},c=function(T,C,R){return{className:T,begin:C,relevance:R}},u={$pattern:/[a-z-]+/,keyword:r,attribute:dne.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:o}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},m={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+fne.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},b={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},p={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+une.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+_k.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+wk.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[p]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,b,v,m,p,h,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function pne(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function gne(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(u,{contains:[]});c.contains.push(f),u.contains.push(d);let h=[n,l];return[c,u,d,f].forEach(b=>{b.contains=b.contains.concat(h)}),h=h.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,a,c,u,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},i,r,l,o]}}function yne(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function bne(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,a,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(h,m,g="\\1")=>{const b=g==="\\1"?g:t.concat(g,m);return t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,g,r)},d=(h,m,g)=>t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,g,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=f,o.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function Ene(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(Q,K)=>{K.data._beginMatch=Q[1]||Q[2]},"on:end":(Q,K)=>{K.data._beginMatch!==Q[1]&&K.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ -]`,h={scope:"string",variants:[c,l,u,d]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],b=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],p=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],T={keyword:b,literal:(Q=>{const K=[];return Q.forEach(V=>{K.push(V),V.toLowerCase()===V?K.push(V.toUpperCase()):K.push(V.toLowerCase())}),K})(g),built_in:p},C=Q=>Q.map(K=>K.replace(/\|\d+$/,"")),R={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",C(p).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},N=t.concat(r,"\\b(?!\\()"),O={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},$={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:T,contains:[$,a,O,e.C_BLOCK_COMMENT_MODE,h,m,R]},L={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",C(b).join("\\b|"),"|",C(p).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push(L);const X=[$,O,e.C_BLOCK_COMMENT_MODE,h,m,R],Z={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",...X]},...X,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:T,contains:[Z,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,L,O,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},R,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:T,contains:["self",a,O,e.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,m]}}function Tne(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function xne(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function _ne(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",h=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,m=`\\b|${r.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${h}))[eE][+-]?(${f})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${f})[jJ](?=${m})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},p={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,g,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,g,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[p]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,p,d]}]}}function wne(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Sne(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Cne(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},N=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=N,g.contains=N;const O="[>?]>",$="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",M="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",L=[{begin:/^\s*=>/,starts:{end:"$",contains:N}},{className:"meta.prompt",begin:"^("+O+"|"+$+"|"+M+")(?=[ ])",starts:{end:"$",keywords:o,contains:N}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(L).concat(c).concat(N)}}function Ane(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:a,built_in:o},illegal:""},n]}}const Nne=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),kne=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],One=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Rne=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Ine=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Mne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Lne(e){const t=Nne(e),n=Ine,r=Rne,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+kne.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mne.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:One.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Dne(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Pne(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=u,m=[...c,...l].filter(T=>!u.includes(T)),g={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},b={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},p={begin:t.concat(/\b/,t.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function v(T,{exceptions:C,when:R}={}){const N=R;return C=C||[],T.map(O=>O.match(/\|\d+$/)||C.includes(O)?O:N(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(m,{when:T=>T.length<3}),literal:a,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(f),literal:a,type:s}},{className:"type",begin:t.either(...o)},p,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,b]}}function Sk(e){return e?typeof e=="string"?e:e.source:null}function vd(e){return Pt("(?=",e,")")}function Pt(...e){return e.map(n=>Sk(n)).join("")}function $ne(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function hr(...e){return"("+($ne(e).capture?"":"?:")+e.map(r=>Sk(r)).join("|")+")"}const F8=e=>Pt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Fne=["Protocol","Type"].map(F8),tb=["init","self"].map(F8),Bne=["Any","Self"],Lg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],nb=["false","nil","true"],zne=["assignment","associativity","higherThan","left","lowerThan","none","right"],Une=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],rb=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Ck=hr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Ak=hr(Ck,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Dg=Pt(Ck,Ak,"*"),Nk=hr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Dh=hr(Nk,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Oa=Pt(Nk,Dh,"*"),Pg=Pt(/[A-Z]/,Dh,"*"),Hne=["autoclosure",Pt(/convention\(/,hr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Pt(/objc\(/,Oa,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],jne=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Gne(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,hr(...Fne,...tb)],className:{2:"keyword"}},a={match:Pt(/\./,hr(...Lg)),relevance:0},o=Lg.filter(xe=>typeof xe=="string").concat(["_|0"]),s=Lg.filter(xe=>typeof xe!="string").concat(Bne).map(F8),l={variants:[{className:"keyword",match:hr(...s,...tb)}]},c={$pattern:hr(/\b\w+/,/#\w+/),keyword:o.concat(Une),literal:nb},u=[i,a,l],d={match:Pt(/\./,hr(...rb)),relevance:0},f={className:"built_in",match:Pt(/\b/,hr(...rb),/(?=\()/)},h=[d,f],m={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:Dg},{match:`\\.(\\.|${Ak})+`}]},b=[m,g],p="([0-9]_*)+",v="([0-9a-fA-F]_*)+",T={className:"number",relevance:0,variants:[{match:`\\b(${p})(\\.(${p}))?([eE][+-]?(${p}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${p}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(xe="")=>({className:"subst",variants:[{match:Pt(/\\/,xe,/[0\\tnr"']/)},{match:Pt(/\\/,xe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(xe="")=>({className:"subst",match:Pt(/\\/,xe,/[\t ]*(?:[\r\n]|\r\n)/)}),N=(xe="")=>({className:"subst",label:"interpol",begin:Pt(/\\/,xe,/\(/),end:/\)/}),O=(xe="")=>({begin:Pt(xe,/"""/),end:Pt(/"""/,xe),contains:[C(xe),R(xe),N(xe)]}),$=(xe="")=>({begin:Pt(xe,/"/),end:Pt(/"/,xe),contains:[C(xe),N(xe)]}),M={className:"string",variants:[O(),O("#"),O("##"),O("###"),$(),$("#"),$("##"),$("###")]},L={match:Pt(/`/,Oa,/`/)},X={className:"variable",match:/\$\d+/},Z={className:"variable",match:`\\$${Dh}+`},Q=[L,X,Z],K={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:jne,contains:[...b,T,M]}]}},V={className:"keyword",match:Pt(/@/,hr(...Hne))},ne={className:"meta",match:Pt(/@/,Oa)},B=[K,V,ne],w={match:vd(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Pt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Dh,"+")},{className:"type",match:Pg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Pt(/\s+&\s+/,vd(Pg)),relevance:0}]},D={begin://,keywords:c,contains:[...r,...u,...B,m,w]};w.contains.push(D);const A={match:Pt(Oa,/\s*:/),keywords:"_|0",relevance:0},W={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",A,...r,...u,...h,...b,T,M,...Q,...B,w]},te={begin://,contains:[...r,w]},P={begin:hr(vd(Pt(Oa,/\s*:/)),vd(Pt(Oa,/\s+/,Oa,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Oa}]},Te={begin:/\(/,end:/\)/,keywords:c,contains:[P,...r,...u,...b,T,M,...B,w,W],endsParent:!0,illegal:/["']/},Se={match:[/func/,/\s+/,hr(L.match,Oa,Dg)],className:{1:"keyword",3:"title.function"},contains:[te,Te,t],illegal:[/\[/,/%/]},Ce={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[te,Te,t],illegal:/\[|%/},Ae={match:[/operator/,/\s+/,Dg],className:{1:"keyword",3:"title"}},qe={begin:[/precedencegroup/,/\s+/,Pg],className:{1:"keyword",3:"title"},contains:[w],keywords:[...zne,...nb],end:/}/};for(const xe of M.variants){const st=xe.contains.find(Ct=>Ct.label==="interpol");st.keywords=c;const St=[...u,...h,...b,T,M,...Q];st.contains=[...St,{begin:/\(/,end:/\)/,contains:["self",...St]}]}return{name:"Swift",keywords:c,contains:[...r,Se,Ce,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},Ae,qe,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},...u,...h,...b,T,M,...Q,...B,w,W]}}const Ph="[A-Za-z$_][0-9A-Za-z$_]*",kk=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Ok=["true","false","null","undefined","NaN","Infinity"],Rk=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ik=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Lk=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Dk=[].concat(Mk,Rk,Ik);function Vne(e){const t=e.regex,n=(w,{after:D})=>{const A="",end:""},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,D)=>{const A=w[0].length+w.index,W=w.input[A];if(W==="<"||W===","){D.ignoreMatch();return}W===">"&&(n(w,{after:A})||D.ignoreMatch());let te;const P=w.input.substring(A);if(te=P.match(/^\s*=/)){D.ignoreMatch();return}if((te=P.match(/^\s+extends\s+/))&&te.index===0){D.ignoreMatch();return}}},s={$pattern:Ph,keyword:kk,literal:Ok,built_in:Dk,"variable.language":Lk},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,{match:/\$\d+/},d];f.contains=T.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(T)});const C=[].concat(v,f.contains),R=C.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},O={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Rk,...Ik]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return t.concat("(?!",w.join("|"),")")}const Q={match:t.concat(/\b/,Z([...Mk,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,v,{match:/\$\d+/},d,$,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},Q,X,O,V,{match:/\$[(.]/}]}}function Kne(e){const t=Vne(e),n=Ph,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Ph,keyword:kk.concat(s),literal:Ok,built_in:Dk.concat(r),"variable.language":Lk},c={className:"meta",begin:"@"+n},u=(f,h,m)=>{const g=f.contains.findIndex(b=>b.label===h);if(g===-1)throw new Error("can not find mode to replace");f.contains.splice(g,1,m)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(c),t.contains=t.contains.concat([c,i,a]),u(t,"shebang",e.SHEBANG()),u(t,"use_strict",o);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function Wne(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function qne(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,l,c,s]}}function Yne(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Xne(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",d={className:"number",begin:"\\b"+s+l+c+u+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},h={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},g=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,m,a],b=[...g];return b.pop(),b.push(o),f.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}function Pk(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Pk(n)}),e}let ib=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function $k(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Do(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Qne="",ab=e=>!!e.scope,Zne=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Jne{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=$k(t)}openNode(t){if(!ab(t))return;const n=Zne(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){ab(t)&&(this.buffer+=Qne)}value(){return this.buffer}span(t){this.buffer+=``}}const ob=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class B8{constructor(){this.rootNode=ob(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=ob({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{B8._collapse(n)}))}}class ere extends B8{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Jne(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function V1(e){return e?typeof e=="string"?e:e.source:null}function Fk(e){return Tl("(?=",e,")")}function tre(e){return Tl("(?:",e,")*")}function nre(e){return Tl("(?:",e,")?")}function Tl(...e){return e.map(n=>V1(n)).join("")}function rre(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function z8(...e){return"("+(rre(e).capture?"":"?:")+e.map(r=>V1(r)).join("|")+")"}function Bk(e){return new RegExp(e.toString()+"|").exec("").length-1}function ire(e,t){const n=e&&e.exec(t);return n&&n.index===0}const are=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function U8(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let a=V1(r),o="";for(;a.length>0;){const s=are.exec(a);if(!s){o+=a;break}o+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+i):(o+=s[0],s[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const ore=/\b\B/,zk="[a-zA-Z]\\w*",H8="[a-zA-Z_]\\w*",Uk="\\b\\d+(\\.\\d+)?",Hk="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",jk="\\b(0b[01]+)",sre="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",lre=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Tl(t,/.*\b/,e.binary,/\b.*/)),Do({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},K1={begin:"\\\\[\\s\\S]",relevance:0},cre={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[K1]},ure={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[K1]},dre={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},cp=function(e,t,n={}){const r=Do({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=z8("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Tl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},fre=cp("//","$"),hre=cp("/\\*","\\*/"),mre=cp("#","$"),pre={scope:"number",begin:Uk,relevance:0},gre={scope:"number",begin:Hk,relevance:0},vre={scope:"number",begin:jk,relevance:0},yre={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[K1,{begin:/\[/,end:/\]/,relevance:0,contains:[K1]}]}]},bre={scope:"title",begin:zk,relevance:0},Ere={scope:"title",begin:H8,relevance:0},Tre={begin:"\\.\\s*"+H8,relevance:0},xre=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var yd=Object.freeze({__proto__:null,MATCH_NOTHING_RE:ore,IDENT_RE:zk,UNDERSCORE_IDENT_RE:H8,NUMBER_RE:Uk,C_NUMBER_RE:Hk,BINARY_NUMBER_RE:jk,RE_STARTERS_RE:sre,SHEBANG:lre,BACKSLASH_ESCAPE:K1,APOS_STRING_MODE:cre,QUOTE_STRING_MODE:ure,PHRASAL_WORDS_MODE:dre,COMMENT:cp,C_LINE_COMMENT_MODE:fre,C_BLOCK_COMMENT_MODE:hre,HASH_COMMENT_MODE:mre,NUMBER_MODE:pre,C_NUMBER_MODE:gre,BINARY_NUMBER_MODE:vre,REGEXP_MODE:yre,TITLE_MODE:bre,UNDERSCORE_TITLE_MODE:Ere,METHOD_GUARD:Tre,END_SAME_AS_BEGIN:xre});function _re(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function wre(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Sre(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=_re,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Cre(e,t){Array.isArray(e.illegal)&&(e.illegal=z8(...e.illegal))}function Are(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Nre(e,t){e.relevance===void 0&&(e.relevance=1)}const kre=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Tl(n.beforeMatch,Fk(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Ore=["of","and","for","in","not","or","if","then","parent","list","value"],Rre="keyword";function Gk(e,t,n=Rre){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(a){Object.assign(r,Gk(e[a],t,a))}),r;function i(a,o){t&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");r[l[0]]=[a,Ire(l[0],l[1])]})}}function Ire(e,t){return t?Number(t):Mre(e)?0:1}function Mre(e){return Ore.includes(e.toLowerCase())}const sb={},Ks=e=>{console.error(e)},lb=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ll=(e,t)=>{sb[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),sb[`${e}/${t}`]=!0)},$h=new Error;function Vk(e,t,{key:n}){let r=0;const i=e[n],a={},o={};for(let s=1;s<=t.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=Bk(t[s-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Lre(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ks("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$h;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ks("beginScope must be object"),$h;Vk(e,e.begin,{key:"beginScope"}),e.begin=U8(e.begin,{joinWith:""})}}function Dre(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ks("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$h;if(typeof e.endScope!="object"||e.endScope===null)throw Ks("endScope must be object"),$h;Vk(e,e.end,{key:"endScope"}),e.end=U8(e.end,{joinWith:""})}}function Pre(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function $re(e){Pre(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Lre(e),Dre(e)}function Fre(e){function t(o,s){return new RegExp(V1(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Bk(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(U8(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const s=new r;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function a(o,s){const l=o;if(o.isCompiled)return l;[wre,Are,$re,kre].forEach(u=>u(o,s)),e.compilerExtensions.forEach(u=>u(o,s)),o.__beforeBegin=null,[Sre,Cre,Nre].forEach(u=>u(o,s)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=Gk(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=V1(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return Bre(u==="self"?o:u)})),o.contains.forEach(function(u){a(u,l)}),o.starts&&a(o.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Do(e.classNameAliases||{}),a(e)}function Kk(e){return e?e.endsWithParent||Kk(e.starts):!1}function Bre(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Do(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Kk(e)?Do(e,{starts:e.starts?Do(e.starts):null}):Object.isFrozen(e)?Do(e):e}var zre="11.8.0";class Ure extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const $g=$k,cb=Do,ub=Symbol("nomatch"),Hre=7,Wk=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ere};function l(B){return s.noHighlightRe.test(B)}function c(B){let w=B.className+" ";w+=B.parentNode?B.parentNode.className:"";const D=s.languageDetectRe.exec(w);if(D){const A=M(D[1]);return A||(lb(a.replace("{}",D[1])),lb("Falling back to no-highlight mode for this block.",B)),A?D[1]:"no-highlight"}return w.split(/\s+/).find(A=>l(A)||M(A))}function u(B,w,D){let A="",W="";typeof w=="object"?(A=B,D=w.ignoreIllegals,W=w.language):(Ll("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ll("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),W=B,A=w),D===void 0&&(D=!0);const te={code:A,language:W};V("before:highlight",te);const P=te.result?te.result:d(te.language,te.code,D);return P.code=te.code,V("after:highlight",P),P}function d(B,w,D,A){const W=Object.create(null);function te(G,re){return G.keywords[re]}function P(){if(!le.keywords){ce.addText(be);return}let G=0;le.keywordPatternRe.lastIndex=0;let re=le.keywordPatternRe.exec(be),pe="";for(;re;){pe+=be.substring(G,re.index);const Y=j.case_insensitive?re[0].toLowerCase():re[0],J=te(le,Y);if(J){const[oe,Ne]=J;if(ce.addText(pe),pe="",W[Y]=(W[Y]||0)+1,W[Y]<=Hre&&(gt+=Ne),oe.startsWith("_"))pe+=re[0];else{const Re=j.classNameAliases[oe]||oe;Ce(re[0],Re)}}else pe+=re[0];G=le.keywordPatternRe.lastIndex,re=le.keywordPatternRe.exec(be)}pe+=be.substring(G),ce.addText(pe)}function Te(){if(be==="")return;let G=null;if(typeof le.subLanguage=="string"){if(!t[le.subLanguage]){ce.addText(be);return}G=d(le.subLanguage,be,!0,_e[le.subLanguage]),_e[le.subLanguage]=G._top}else G=h(be,le.subLanguage.length?le.subLanguage:null);le.relevance>0&&(gt+=G.relevance),ce.__addSublanguage(G._emitter,G.language)}function Se(){le.subLanguage!=null?Te():P(),be=""}function Ce(G,re){G!==""&&(ce.startScope(re),ce.addText(G),ce.endScope())}function Ae(G,re){let pe=1;const Y=re.length-1;for(;pe<=Y;){if(!G._emit[pe]){pe++;continue}const J=j.classNameAliases[G[pe]]||G[pe],oe=re[pe];J?Ce(oe,J):(be=oe,P(),be=""),pe++}}function qe(G,re){return G.scope&&typeof G.scope=="string"&&ce.openNode(j.classNameAliases[G.scope]||G.scope),G.beginScope&&(G.beginScope._wrap?(Ce(be,j.classNameAliases[G.beginScope._wrap]||G.beginScope._wrap),be=""):G.beginScope._multi&&(Ae(G.beginScope,re),be="")),le=Object.create(G,{parent:{value:le}}),le}function xe(G,re,pe){let Y=ire(G.endRe,pe);if(Y){if(G["on:end"]){const J=new ib(G);G["on:end"](re,J),J.isMatchIgnored&&(Y=!1)}if(Y){for(;G.endsParent&&G.parent;)G=G.parent;return G}}if(G.endsWithParent)return xe(G.parent,re,pe)}function st(G){return le.matcher.regexIndex===0?(be+=G[0],1):(ba=!0,0)}function St(G){const re=G[0],pe=G.rule,Y=new ib(pe),J=[pe.__beforeBegin,pe["on:begin"]];for(const oe of J)if(oe&&(oe(G,Y),Y.isMatchIgnored))return st(re);return pe.skip?be+=re:(pe.excludeBegin&&(be+=re),Se(),!pe.returnBegin&&!pe.excludeBegin&&(be=re)),qe(pe,G),pe.returnBegin?0:re.length}function Ct(G){const re=G[0],pe=w.substring(G.index),Y=xe(le,G,pe);if(!Y)return ub;const J=le;le.endScope&&le.endScope._wrap?(Se(),Ce(re,le.endScope._wrap)):le.endScope&&le.endScope._multi?(Se(),Ae(le.endScope,G)):J.skip?be+=re:(J.returnEnd||J.excludeEnd||(be+=re),Se(),J.excludeEnd&&(be=re));do le.scope&&ce.closeNode(),!le.skip&&!le.subLanguage&&(gt+=le.relevance),le=le.parent;while(le!==Y.parent);return Y.starts&&qe(Y.starts,G),J.returnEnd?0:re.length}function or(){const G=[];for(let re=le;re!==j;re=re.parent)re.scope&&G.unshift(re.scope);G.forEach(re=>ce.openNode(re))}let en={};function sr(G,re){const pe=re&&re[0];if(be+=G,pe==null)return Se(),0;if(en.type==="begin"&&re.type==="end"&&en.index===re.index&&pe===""){if(be+=w.slice(re.index,re.index+1),!i){const Y=new Error(`0 width match regex (${B})`);throw Y.languageName=B,Y.badRule=en.rule,Y}return 1}if(en=re,re.type==="begin")return St(re);if(re.type==="illegal"&&!D){const Y=new Error('Illegal lexeme "'+pe+'" for mode "'+(le.scope||"")+'"');throw Y.mode=le,Y}else if(re.type==="end"){const Y=Ct(re);if(Y!==ub)return Y}if(re.type==="illegal"&&pe==="")return 1;if(Dn>1e5&&Dn>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return be+=pe,pe.length}const j=M(B);if(!j)throw Ks(a.replace("{}",B)),new Error('Unknown language: "'+B+'"');const ie=Fre(j);let ae="",le=A||ie;const _e={},ce=new s.__emitter(s);or();let be="",gt=0,vt=0,Dn=0,ba=!1;try{if(j.__emitTokens)j.__emitTokens(w,ce);else{for(le.matcher.considerAll();;){Dn++,ba?ba=!1:le.matcher.considerAll(),le.matcher.lastIndex=vt;const G=le.matcher.exec(w);if(!G)break;const re=w.substring(vt,G.index),pe=sr(re,G);vt=G.index+pe}sr(w.substring(vt))}return ce.finalize(),ae=ce.toHTML(),{language:B,value:ae,relevance:gt,illegal:!1,_emitter:ce,_top:le}}catch(G){if(G.message&&G.message.includes("Illegal"))return{language:B,value:$g(w),illegal:!0,relevance:0,_illegalBy:{message:G.message,index:vt,context:w.slice(vt-100,vt+100),mode:G.mode,resultSoFar:ae},_emitter:ce};if(i)return{language:B,value:$g(w),illegal:!1,relevance:0,errorRaised:G,_emitter:ce,_top:le};throw G}}function f(B){const w={value:$g(B),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return w._emitter.addText(B),w}function h(B,w){w=w||s.languages||Object.keys(t);const D=f(B),A=w.filter(M).filter(X).map(Se=>d(Se,B,!1));A.unshift(D);const W=A.sort((Se,Ce)=>{if(Se.relevance!==Ce.relevance)return Ce.relevance-Se.relevance;if(Se.language&&Ce.language){if(M(Se.language).supersetOf===Ce.language)return 1;if(M(Ce.language).supersetOf===Se.language)return-1}return 0}),[te,P]=W,Te=te;return Te.secondBest=P,Te}function m(B,w,D){const A=w&&n[w]||D;B.classList.add("hljs"),B.classList.add(`language-${A}`)}function g(B){let w=null;const D=c(B);if(l(D))return;if(V("before:highlightElement",{el:B,language:D}),B.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),s.throwUnescapedHTML))throw new Ure("One of your code blocks includes unescaped HTML.",B.innerHTML);w=B;const A=w.textContent,W=D?u(A,{language:D,ignoreIllegals:!0}):h(A);B.innerHTML=W.value,m(B,D,W.language),B.result={language:W.language,re:W.relevance,relevance:W.relevance},W.secondBest&&(B.secondBest={language:W.secondBest.language,relevance:W.secondBest.relevance}),V("after:highlightElement",{el:B,result:W,text:A})}function b(B){s=cb(s,B)}const p=()=>{C(),Ll("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){C(),Ll("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let T=!1;function C(){if(document.readyState==="loading"){T=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function R(){T&&C()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function N(B,w){let D=null;try{D=w(e)}catch(A){if(Ks("Language definition for '{}' could not be registered.".replace("{}",B)),i)Ks(A);else throw A;D=o}D.name||(D.name=B),t[B]=D,D.rawDefinition=w.bind(null,e),D.aliases&&L(D.aliases,{languageName:B})}function O(B){delete t[B];for(const w of Object.keys(n))n[w]===B&&delete n[w]}function $(){return Object.keys(t)}function M(B){return B=(B||"").toLowerCase(),t[B]||t[n[B]]}function L(B,{languageName:w}){typeof B=="string"&&(B=[B]),B.forEach(D=>{n[D.toLowerCase()]=w})}function X(B){const w=M(B);return w&&!w.disableAutodetect}function Z(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=w=>{B["before:highlightBlock"](Object.assign({block:w.el},w))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=w=>{B["after:highlightBlock"](Object.assign({block:w.el},w))})}function Q(B){Z(B),r.push(B)}function K(B){const w=r.indexOf(B);w!==-1&&r.splice(w,1)}function V(B,w){const D=B;r.forEach(function(A){A[D]&&A[D](w)})}function ne(B){return Ll("10.7.0","highlightBlock will be removed entirely in v12.0"),Ll("10.7.0","Please use highlightElement now."),g(B)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:C,highlightElement:g,highlightBlock:ne,configure:b,initHighlighting:p,initHighlightingOnLoad:v,registerLanguage:N,unregisterLanguage:O,listLanguages:$,getLanguage:M,registerAliases:L,autoDetection:X,inherit:cb,addPlugin:Q,removePlugin:K}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=zre,e.regex={concat:Tl,lookahead:Fk,either:z8,optional:nre,anyNumberOfTimes:tre};for(const B in yd)typeof yd[B]=="object"&&Pk(yd[B]);return Object.assign(e,yd),e},zc=Wk({});zc.newInstance=()=>Wk({});var jre=zc;zc.HighlightJS=zc;zc.default=zc;const Ai=wr(jre);var qk={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(a,o){return i.apply(null,[a].concat(o))}function i(a){for(var o=1,s=[].slice.call(arguments),l=0,c=a.length,u="",d,f=!1,h,m,g=!1,b,p=function(){return s[o++]},v=function(){for(var T="";/\d/.test(a[l]);)T+=a[l++],d=a[l];return T.length>0?parseInt(T):null};li.data.relevance&&(i=o)}return i}function Yre(e,t){Ai.registerLanguage(e,t)}const Xre=function(e,t){if(typeof e=="string")Ai.registerAliases(t,{languageName:e});else{let n;for(n in e)Kre.call(e,n)&&Ai.registerAliases(e[n],{languageName:n})}};function Qre(e){return!!Ai.getLanguage(e)}function Zre(){return Ai.listLanguages()}class Jre{constructor(t){this.options=t,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=t.split(".").map((a,o)=>o?a+"_".repeat(o):this.options.classPrefix+a),r=this.stack[this.stack.length-1],i={type:"element",tagName:"span",properties:{className:n},children:[]};r.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const rt={highlight:Yk,highlightAuto:qre,registerLanguage:Yre,registered:Qre,listLanguages:Zre,registerAlias:Xre};rt.registerLanguage("arduino",Fte);rt.registerLanguage("bash",Bte);rt.registerLanguage("c",zte);rt.registerLanguage("cpp",Ute);rt.registerLanguage("csharp",Hte);rt.registerLanguage("css",Yte);rt.registerLanguage("diff",Xte);rt.registerLanguage("go",Qte);rt.registerLanguage("graphql",Zte);rt.registerLanguage("ini",Jte);rt.registerLanguage("java",ene);rt.registerLanguage("javascript",ane);rt.registerLanguage("json",one);rt.registerLanguage("kotlin",lne);rt.registerLanguage("less",mne);rt.registerLanguage("lua",pne);rt.registerLanguage("makefile",gne);rt.registerLanguage("markdown",vne);rt.registerLanguage("objectivec",yne);rt.registerLanguage("perl",bne);rt.registerLanguage("php",Ene);rt.registerLanguage("php-template",Tne);rt.registerLanguage("plaintext",xne);rt.registerLanguage("python",_ne);rt.registerLanguage("python-repl",wne);rt.registerLanguage("r",Sne);rt.registerLanguage("ruby",Cne);rt.registerLanguage("rust",Ane);rt.registerLanguage("scss",Lne);rt.registerLanguage("shell",Dne);rt.registerLanguage("sql",Pne);rt.registerLanguage("swift",Gne);rt.registerLanguage("typescript",Kne);rt.registerLanguage("vbnet",Wne);rt.registerLanguage("wasm",qne);rt.registerLanguage("xml",Yne);rt.registerLanguage("yaml",Xne);const xl=function(e){if(e==null)return j8;if(typeof e=="string")return tie(e);if(typeof e=="object")return eie(e);if(typeof e=="function")return Xk(e);throw new Error("Expected function, string, or array as test")};function eie(e){const t=[];let n=-1;for(;++nl&&(l=c):c&&(l!==void 0&&l>-1&&s.push(` -`.repeat(l)||" "),l=-1,s.push(c))}return s.join("")}function Zk(e,t,n){return e.type==="element"?iie(e,t,n):e.type==="text"?n.whitespace==="normal"?Jk(e,n):aie(e):[]}function iie(e,t,n){const r=eO(e,n),i=e.children||[];let a=-1,o=[];if(rie(e))return o;let s,l;for(m2(e)||pb(e)&&db(t,e,pb)?l=` -`:nie(e)?(s=2,l=2):Qk(e)&&(s=1,l=1);++a-1?r.slice(0,c):r}return(c,u)=>{nu(c,"element",(d,f,h)=>{const m=h;if(!m||!("tagName"in m)||m.tagName!=="pre"||d.tagName!=="code"||!d.properties)return;const g=die(d);if(g===!1||!g&&!s||g&&i&&i.includes(g))return;Array.isArray(d.properties.className)||(d.properties.className=[]),d.properties.className.includes(l)||d.properties.className.unshift(l);let b;try{b=g?rt.highlight(g,p2(m),{prefix:r}):rt.highlightAuto(p2(m),{prefix:r,subset:o})}catch(p){const v=p;(!a||!/Unknown language/.test(v.message))&&u.fail(v,d,"rehype-highlight:missing-language");return}!g&&b.data.language&&d.properties.className.push("language-"+b.data.language),Array.isArray(b.children)&&b.children.length>0&&(d.children=b.children)})}}function die(e){const t=e.properties&&e.properties.className;let n=-1;if(Array.isArray(t))for(;++n15?c="…"+o.slice(i-15,i):c=o.slice(0,i);var u;s+15":">","<":"<",'"':""","'":"'"},vie=/[&><"']/g;function yie(e){return String(e).replace(vie,t=>gie[t])}var tO=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bie=function(t){var n=tO(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Eie=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Tie=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},Ye={contains:fie,deflt:hie,escape:yie,hyphenate:pie,getBaseElem:tO,isCharacterBox:bie,protocolFromUrl:Tie},bf={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function xie(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class G8{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in bf)if(bf.hasOwnProperty(n)){var r=bf[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:xie(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new me("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=Ye.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class po{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return qi[_ie[this.id]]}sub(){return qi[wie[this.id]]}fracNum(){return qi[Sie[this.id]]}fracDen(){return qi[Cie[this.id]]}cramp(){return qi[Aie[this.id]]}text(){return qi[Nie[this.id]]}isTight(){return this.size>=2}}var V8=0,Fh=1,xc=2,ja=3,W1=4,ti=5,Uc=6,Jn=7,qi=[new po(V8,0,!1),new po(Fh,0,!0),new po(xc,1,!1),new po(ja,1,!0),new po(W1,2,!1),new po(ti,2,!0),new po(Uc,3,!1),new po(Jn,3,!0)],_ie=[W1,ti,W1,ti,Uc,Jn,Uc,Jn],wie=[ti,ti,ti,ti,Jn,Jn,Jn,Jn],Sie=[xc,ja,W1,ti,Uc,Jn,Uc,Jn],Cie=[ja,ja,ti,ti,Jn,Jn,Jn,Jn],Aie=[Fh,Fh,ja,ja,ti,ti,Jn,Jn],Nie=[V8,Fh,xc,ja,xc,ja,xc,ja],Ge={DISPLAY:qi[V8],TEXT:qi[xc],SCRIPT:qi[W1],SCRIPTSCRIPT:qi[Uc]},g2=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kie(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var Ef=[];g2.forEach(e=>e.blocks.forEach(t=>Ef.push(...t)));function nO(e){for(var t=0;t=Ef[t]&&e<=Ef[t+1])return!0;return!1}var Dl=80,Oie=function(t,n){return"M95,"+(622+t+n)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+t/2.075+" -"+t+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+t)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Rie=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+t/2.084+" -"+t+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+t)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Iie=function(t,n){return"M983 "+(10+t+n)+` -l`+t/3.13+" -"+t+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Mie=function(t,n){return"M424,"+(2398+t+n)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+t)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Lie=function(t,n){return"M473,"+(2713+t+n)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Die=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Pie=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` -H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},$ie=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Oie(n,Dl);break;case"sqrtSize1":i=Rie(n,Dl);break;case"sqrtSize2":i=Iie(n,Dl);break;case"sqrtSize3":i=Mie(n,Dl);break;case"sqrtSize4":i=Lie(n,Dl);break;case"sqrtTall":i=Pie(n,Dl,r)}return i},Fie=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},gb={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Bie=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z -M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z -M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z -M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class N0{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Ye.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}}var ta={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},bd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vb={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zie(e,t){ta[e]=t}function K8(e,t,n){if(!ta[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=ta[t][r];if(!i&&e[0]in vb&&(r=vb[e[0]].charCodeAt(0),i=ta[t][r]),!i&&n==="text"&&nO(r)&&(i=ta[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Fg={};function Uie(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Fg[t]){var n=Fg[t]={cssEmPerMu:bd.quad[t]/18};for(var r in bd)bd.hasOwnProperty(r)&&(n[r]=bd[r][t])}return Fg[t]}var Hie=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yb=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bb=function(t,n){return n.size<2?t:Hie[t-1][n.size-1]};class Da{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Da.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=yb[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Da(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:bb(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:yb[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=bb(Da.BASESIZE,t);return this.size===n&&this.textSize===Da.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Da.BASESIZE?["sizing","reset-size"+this.size,"size"+Da.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Uie(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Da.BASESIZE=6;var v2={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},jie={ex:!0,em:!0,mu:!0},rO=function(t){return typeof t!="string"&&(t=t.unit),t in v2||t in jie||t==="ex"},Qt=function(t,n){var r;if(t.unit in v2)r=v2[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new me("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},we=function(t){return+t.toFixed(4)+"em"},rs=function(t){return t.filter(n=>n).join(" ")},iO=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},aO=function(t){var n=document.createElement(t);n.className=rs(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};class k0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,iO.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ye.contains(this.classes,t)}toNode(){return aO.call(this,"span")}toMarkup(){return oO.call(this,"span")}}class W8{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,iO.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ye.contains(this.classes,t)}toNode(){return aO.call(this,"a")}toMarkup(){return oO.call(this,"a")}}class Gie{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Ye.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=we(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=rs(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ye.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Ye.escape(r)+'"');var a=Ye.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Za{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class y2{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Wie={bin:1,close:1,inner:1,open:1,punct:1,rel:1},qie={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ft={math:{},text:{}};function E(e,t,n,r,i,a){Ft[e][i]={font:t,group:n,replace:r},a&&r&&(Ft[e][r]=Ft[e][i])}var _="math",de="text",k="main",F="ams",Wt="accent-token",Me="bin",ar="close",au="inner",Ke="mathord",mn="op-token",Gr="open",up="punct",z="rel",so="spacing",q="textord";E(_,k,z,"≡","\\equiv",!0);E(_,k,z,"≺","\\prec",!0);E(_,k,z,"≻","\\succ",!0);E(_,k,z,"∼","\\sim",!0);E(_,k,z,"⊥","\\perp");E(_,k,z,"⪯","\\preceq",!0);E(_,k,z,"⪰","\\succeq",!0);E(_,k,z,"≃","\\simeq",!0);E(_,k,z,"∣","\\mid",!0);E(_,k,z,"≪","\\ll",!0);E(_,k,z,"≫","\\gg",!0);E(_,k,z,"≍","\\asymp",!0);E(_,k,z,"∥","\\parallel");E(_,k,z,"⋈","\\bowtie",!0);E(_,k,z,"⌣","\\smile",!0);E(_,k,z,"⊑","\\sqsubseteq",!0);E(_,k,z,"⊒","\\sqsupseteq",!0);E(_,k,z,"≐","\\doteq",!0);E(_,k,z,"⌢","\\frown",!0);E(_,k,z,"∋","\\ni",!0);E(_,k,z,"∝","\\propto",!0);E(_,k,z,"⊢","\\vdash",!0);E(_,k,z,"⊣","\\dashv",!0);E(_,k,z,"∋","\\owns");E(_,k,up,".","\\ldotp");E(_,k,up,"⋅","\\cdotp");E(_,k,q,"#","\\#");E(de,k,q,"#","\\#");E(_,k,q,"&","\\&");E(de,k,q,"&","\\&");E(_,k,q,"ℵ","\\aleph",!0);E(_,k,q,"∀","\\forall",!0);E(_,k,q,"ℏ","\\hbar",!0);E(_,k,q,"∃","\\exists",!0);E(_,k,q,"∇","\\nabla",!0);E(_,k,q,"♭","\\flat",!0);E(_,k,q,"ℓ","\\ell",!0);E(_,k,q,"♮","\\natural",!0);E(_,k,q,"♣","\\clubsuit",!0);E(_,k,q,"℘","\\wp",!0);E(_,k,q,"♯","\\sharp",!0);E(_,k,q,"♢","\\diamondsuit",!0);E(_,k,q,"ℜ","\\Re",!0);E(_,k,q,"♡","\\heartsuit",!0);E(_,k,q,"ℑ","\\Im",!0);E(_,k,q,"♠","\\spadesuit",!0);E(_,k,q,"§","\\S",!0);E(de,k,q,"§","\\S");E(_,k,q,"¶","\\P",!0);E(de,k,q,"¶","\\P");E(_,k,q,"†","\\dag");E(de,k,q,"†","\\dag");E(de,k,q,"†","\\textdagger");E(_,k,q,"‡","\\ddag");E(de,k,q,"‡","\\ddag");E(de,k,q,"‡","\\textdaggerdbl");E(_,k,ar,"⎱","\\rmoustache",!0);E(_,k,Gr,"⎰","\\lmoustache",!0);E(_,k,ar,"⟯","\\rgroup",!0);E(_,k,Gr,"⟮","\\lgroup",!0);E(_,k,Me,"∓","\\mp",!0);E(_,k,Me,"⊖","\\ominus",!0);E(_,k,Me,"⊎","\\uplus",!0);E(_,k,Me,"⊓","\\sqcap",!0);E(_,k,Me,"∗","\\ast");E(_,k,Me,"⊔","\\sqcup",!0);E(_,k,Me,"◯","\\bigcirc",!0);E(_,k,Me,"∙","\\bullet",!0);E(_,k,Me,"‡","\\ddagger");E(_,k,Me,"≀","\\wr",!0);E(_,k,Me,"⨿","\\amalg");E(_,k,Me,"&","\\And");E(_,k,z,"⟵","\\longleftarrow",!0);E(_,k,z,"⇐","\\Leftarrow",!0);E(_,k,z,"⟸","\\Longleftarrow",!0);E(_,k,z,"⟶","\\longrightarrow",!0);E(_,k,z,"⇒","\\Rightarrow",!0);E(_,k,z,"⟹","\\Longrightarrow",!0);E(_,k,z,"↔","\\leftrightarrow",!0);E(_,k,z,"⟷","\\longleftrightarrow",!0);E(_,k,z,"⇔","\\Leftrightarrow",!0);E(_,k,z,"⟺","\\Longleftrightarrow",!0);E(_,k,z,"↦","\\mapsto",!0);E(_,k,z,"⟼","\\longmapsto",!0);E(_,k,z,"↗","\\nearrow",!0);E(_,k,z,"↩","\\hookleftarrow",!0);E(_,k,z,"↪","\\hookrightarrow",!0);E(_,k,z,"↘","\\searrow",!0);E(_,k,z,"↼","\\leftharpoonup",!0);E(_,k,z,"⇀","\\rightharpoonup",!0);E(_,k,z,"↙","\\swarrow",!0);E(_,k,z,"↽","\\leftharpoondown",!0);E(_,k,z,"⇁","\\rightharpoondown",!0);E(_,k,z,"↖","\\nwarrow",!0);E(_,k,z,"⇌","\\rightleftharpoons",!0);E(_,F,z,"≮","\\nless",!0);E(_,F,z,"","\\@nleqslant");E(_,F,z,"","\\@nleqq");E(_,F,z,"⪇","\\lneq",!0);E(_,F,z,"≨","\\lneqq",!0);E(_,F,z,"","\\@lvertneqq");E(_,F,z,"⋦","\\lnsim",!0);E(_,F,z,"⪉","\\lnapprox",!0);E(_,F,z,"⊀","\\nprec",!0);E(_,F,z,"⋠","\\npreceq",!0);E(_,F,z,"⋨","\\precnsim",!0);E(_,F,z,"⪹","\\precnapprox",!0);E(_,F,z,"≁","\\nsim",!0);E(_,F,z,"","\\@nshortmid");E(_,F,z,"∤","\\nmid",!0);E(_,F,z,"⊬","\\nvdash",!0);E(_,F,z,"⊭","\\nvDash",!0);E(_,F,z,"⋪","\\ntriangleleft");E(_,F,z,"⋬","\\ntrianglelefteq",!0);E(_,F,z,"⊊","\\subsetneq",!0);E(_,F,z,"","\\@varsubsetneq");E(_,F,z,"⫋","\\subsetneqq",!0);E(_,F,z,"","\\@varsubsetneqq");E(_,F,z,"≯","\\ngtr",!0);E(_,F,z,"","\\@ngeqslant");E(_,F,z,"","\\@ngeqq");E(_,F,z,"⪈","\\gneq",!0);E(_,F,z,"≩","\\gneqq",!0);E(_,F,z,"","\\@gvertneqq");E(_,F,z,"⋧","\\gnsim",!0);E(_,F,z,"⪊","\\gnapprox",!0);E(_,F,z,"⊁","\\nsucc",!0);E(_,F,z,"⋡","\\nsucceq",!0);E(_,F,z,"⋩","\\succnsim",!0);E(_,F,z,"⪺","\\succnapprox",!0);E(_,F,z,"≆","\\ncong",!0);E(_,F,z,"","\\@nshortparallel");E(_,F,z,"∦","\\nparallel",!0);E(_,F,z,"⊯","\\nVDash",!0);E(_,F,z,"⋫","\\ntriangleright");E(_,F,z,"⋭","\\ntrianglerighteq",!0);E(_,F,z,"","\\@nsupseteqq");E(_,F,z,"⊋","\\supsetneq",!0);E(_,F,z,"","\\@varsupsetneq");E(_,F,z,"⫌","\\supsetneqq",!0);E(_,F,z,"","\\@varsupsetneqq");E(_,F,z,"⊮","\\nVdash",!0);E(_,F,z,"⪵","\\precneqq",!0);E(_,F,z,"⪶","\\succneqq",!0);E(_,F,z,"","\\@nsubseteqq");E(_,F,Me,"⊴","\\unlhd");E(_,F,Me,"⊵","\\unrhd");E(_,F,z,"↚","\\nleftarrow",!0);E(_,F,z,"↛","\\nrightarrow",!0);E(_,F,z,"⇍","\\nLeftarrow",!0);E(_,F,z,"⇏","\\nRightarrow",!0);E(_,F,z,"↮","\\nleftrightarrow",!0);E(_,F,z,"⇎","\\nLeftrightarrow",!0);E(_,F,z,"△","\\vartriangle");E(_,F,q,"ℏ","\\hslash");E(_,F,q,"▽","\\triangledown");E(_,F,q,"◊","\\lozenge");E(_,F,q,"Ⓢ","\\circledS");E(_,F,q,"®","\\circledR");E(de,F,q,"®","\\circledR");E(_,F,q,"∡","\\measuredangle",!0);E(_,F,q,"∄","\\nexists");E(_,F,q,"℧","\\mho");E(_,F,q,"Ⅎ","\\Finv",!0);E(_,F,q,"⅁","\\Game",!0);E(_,F,q,"‵","\\backprime");E(_,F,q,"▲","\\blacktriangle");E(_,F,q,"▼","\\blacktriangledown");E(_,F,q,"■","\\blacksquare");E(_,F,q,"⧫","\\blacklozenge");E(_,F,q,"★","\\bigstar");E(_,F,q,"∢","\\sphericalangle",!0);E(_,F,q,"∁","\\complement",!0);E(_,F,q,"ð","\\eth",!0);E(de,k,q,"ð","ð");E(_,F,q,"╱","\\diagup");E(_,F,q,"╲","\\diagdown");E(_,F,q,"□","\\square");E(_,F,q,"□","\\Box");E(_,F,q,"◊","\\Diamond");E(_,F,q,"¥","\\yen",!0);E(de,F,q,"¥","\\yen",!0);E(_,F,q,"✓","\\checkmark",!0);E(de,F,q,"✓","\\checkmark");E(_,F,q,"ℶ","\\beth",!0);E(_,F,q,"ℸ","\\daleth",!0);E(_,F,q,"ℷ","\\gimel",!0);E(_,F,q,"ϝ","\\digamma",!0);E(_,F,q,"ϰ","\\varkappa");E(_,F,Gr,"┌","\\@ulcorner",!0);E(_,F,ar,"┐","\\@urcorner",!0);E(_,F,Gr,"└","\\@llcorner",!0);E(_,F,ar,"┘","\\@lrcorner",!0);E(_,F,z,"≦","\\leqq",!0);E(_,F,z,"⩽","\\leqslant",!0);E(_,F,z,"⪕","\\eqslantless",!0);E(_,F,z,"≲","\\lesssim",!0);E(_,F,z,"⪅","\\lessapprox",!0);E(_,F,z,"≊","\\approxeq",!0);E(_,F,Me,"⋖","\\lessdot");E(_,F,z,"⋘","\\lll",!0);E(_,F,z,"≶","\\lessgtr",!0);E(_,F,z,"⋚","\\lesseqgtr",!0);E(_,F,z,"⪋","\\lesseqqgtr",!0);E(_,F,z,"≑","\\doteqdot");E(_,F,z,"≓","\\risingdotseq",!0);E(_,F,z,"≒","\\fallingdotseq",!0);E(_,F,z,"∽","\\backsim",!0);E(_,F,z,"⋍","\\backsimeq",!0);E(_,F,z,"⫅","\\subseteqq",!0);E(_,F,z,"⋐","\\Subset",!0);E(_,F,z,"⊏","\\sqsubset",!0);E(_,F,z,"≼","\\preccurlyeq",!0);E(_,F,z,"⋞","\\curlyeqprec",!0);E(_,F,z,"≾","\\precsim",!0);E(_,F,z,"⪷","\\precapprox",!0);E(_,F,z,"⊲","\\vartriangleleft");E(_,F,z,"⊴","\\trianglelefteq");E(_,F,z,"⊨","\\vDash",!0);E(_,F,z,"⊪","\\Vvdash",!0);E(_,F,z,"⌣","\\smallsmile");E(_,F,z,"⌢","\\smallfrown");E(_,F,z,"≏","\\bumpeq",!0);E(_,F,z,"≎","\\Bumpeq",!0);E(_,F,z,"≧","\\geqq",!0);E(_,F,z,"⩾","\\geqslant",!0);E(_,F,z,"⪖","\\eqslantgtr",!0);E(_,F,z,"≳","\\gtrsim",!0);E(_,F,z,"⪆","\\gtrapprox",!0);E(_,F,Me,"⋗","\\gtrdot");E(_,F,z,"⋙","\\ggg",!0);E(_,F,z,"≷","\\gtrless",!0);E(_,F,z,"⋛","\\gtreqless",!0);E(_,F,z,"⪌","\\gtreqqless",!0);E(_,F,z,"≖","\\eqcirc",!0);E(_,F,z,"≗","\\circeq",!0);E(_,F,z,"≜","\\triangleq",!0);E(_,F,z,"∼","\\thicksim");E(_,F,z,"≈","\\thickapprox");E(_,F,z,"⫆","\\supseteqq",!0);E(_,F,z,"⋑","\\Supset",!0);E(_,F,z,"⊐","\\sqsupset",!0);E(_,F,z,"≽","\\succcurlyeq",!0);E(_,F,z,"⋟","\\curlyeqsucc",!0);E(_,F,z,"≿","\\succsim",!0);E(_,F,z,"⪸","\\succapprox",!0);E(_,F,z,"⊳","\\vartriangleright");E(_,F,z,"⊵","\\trianglerighteq");E(_,F,z,"⊩","\\Vdash",!0);E(_,F,z,"∣","\\shortmid");E(_,F,z,"∥","\\shortparallel");E(_,F,z,"≬","\\between",!0);E(_,F,z,"⋔","\\pitchfork",!0);E(_,F,z,"∝","\\varpropto");E(_,F,z,"◀","\\blacktriangleleft");E(_,F,z,"∴","\\therefore",!0);E(_,F,z,"∍","\\backepsilon");E(_,F,z,"▶","\\blacktriangleright");E(_,F,z,"∵","\\because",!0);E(_,F,z,"⋘","\\llless");E(_,F,z,"⋙","\\gggtr");E(_,F,Me,"⊲","\\lhd");E(_,F,Me,"⊳","\\rhd");E(_,F,z,"≂","\\eqsim",!0);E(_,k,z,"⋈","\\Join");E(_,F,z,"≑","\\Doteq",!0);E(_,F,Me,"∔","\\dotplus",!0);E(_,F,Me,"∖","\\smallsetminus");E(_,F,Me,"⋒","\\Cap",!0);E(_,F,Me,"⋓","\\Cup",!0);E(_,F,Me,"⩞","\\doublebarwedge",!0);E(_,F,Me,"⊟","\\boxminus",!0);E(_,F,Me,"⊞","\\boxplus",!0);E(_,F,Me,"⋇","\\divideontimes",!0);E(_,F,Me,"⋉","\\ltimes",!0);E(_,F,Me,"⋊","\\rtimes",!0);E(_,F,Me,"⋋","\\leftthreetimes",!0);E(_,F,Me,"⋌","\\rightthreetimes",!0);E(_,F,Me,"⋏","\\curlywedge",!0);E(_,F,Me,"⋎","\\curlyvee",!0);E(_,F,Me,"⊝","\\circleddash",!0);E(_,F,Me,"⊛","\\circledast",!0);E(_,F,Me,"⋅","\\centerdot");E(_,F,Me,"⊺","\\intercal",!0);E(_,F,Me,"⋒","\\doublecap");E(_,F,Me,"⋓","\\doublecup");E(_,F,Me,"⊠","\\boxtimes",!0);E(_,F,z,"⇢","\\dashrightarrow",!0);E(_,F,z,"⇠","\\dashleftarrow",!0);E(_,F,z,"⇇","\\leftleftarrows",!0);E(_,F,z,"⇆","\\leftrightarrows",!0);E(_,F,z,"⇚","\\Lleftarrow",!0);E(_,F,z,"↞","\\twoheadleftarrow",!0);E(_,F,z,"↢","\\leftarrowtail",!0);E(_,F,z,"↫","\\looparrowleft",!0);E(_,F,z,"⇋","\\leftrightharpoons",!0);E(_,F,z,"↶","\\curvearrowleft",!0);E(_,F,z,"↺","\\circlearrowleft",!0);E(_,F,z,"↰","\\Lsh",!0);E(_,F,z,"⇈","\\upuparrows",!0);E(_,F,z,"↿","\\upharpoonleft",!0);E(_,F,z,"⇃","\\downharpoonleft",!0);E(_,k,z,"⊶","\\origof",!0);E(_,k,z,"⊷","\\imageof",!0);E(_,F,z,"⊸","\\multimap",!0);E(_,F,z,"↭","\\leftrightsquigarrow",!0);E(_,F,z,"⇉","\\rightrightarrows",!0);E(_,F,z,"⇄","\\rightleftarrows",!0);E(_,F,z,"↠","\\twoheadrightarrow",!0);E(_,F,z,"↣","\\rightarrowtail",!0);E(_,F,z,"↬","\\looparrowright",!0);E(_,F,z,"↷","\\curvearrowright",!0);E(_,F,z,"↻","\\circlearrowright",!0);E(_,F,z,"↱","\\Rsh",!0);E(_,F,z,"⇊","\\downdownarrows",!0);E(_,F,z,"↾","\\upharpoonright",!0);E(_,F,z,"⇂","\\downharpoonright",!0);E(_,F,z,"⇝","\\rightsquigarrow",!0);E(_,F,z,"⇝","\\leadsto");E(_,F,z,"⇛","\\Rrightarrow",!0);E(_,F,z,"↾","\\restriction");E(_,k,q,"‘","`");E(_,k,q,"$","\\$");E(de,k,q,"$","\\$");E(de,k,q,"$","\\textdollar");E(_,k,q,"%","\\%");E(de,k,q,"%","\\%");E(_,k,q,"_","\\_");E(de,k,q,"_","\\_");E(de,k,q,"_","\\textunderscore");E(_,k,q,"∠","\\angle",!0);E(_,k,q,"∞","\\infty",!0);E(_,k,q,"′","\\prime");E(_,k,q,"△","\\triangle");E(_,k,q,"Γ","\\Gamma",!0);E(_,k,q,"Δ","\\Delta",!0);E(_,k,q,"Θ","\\Theta",!0);E(_,k,q,"Λ","\\Lambda",!0);E(_,k,q,"Ξ","\\Xi",!0);E(_,k,q,"Π","\\Pi",!0);E(_,k,q,"Σ","\\Sigma",!0);E(_,k,q,"Υ","\\Upsilon",!0);E(_,k,q,"Φ","\\Phi",!0);E(_,k,q,"Ψ","\\Psi",!0);E(_,k,q,"Ω","\\Omega",!0);E(_,k,q,"A","Α");E(_,k,q,"B","Β");E(_,k,q,"E","Ε");E(_,k,q,"Z","Ζ");E(_,k,q,"H","Η");E(_,k,q,"I","Ι");E(_,k,q,"K","Κ");E(_,k,q,"M","Μ");E(_,k,q,"N","Ν");E(_,k,q,"O","Ο");E(_,k,q,"P","Ρ");E(_,k,q,"T","Τ");E(_,k,q,"X","Χ");E(_,k,q,"¬","\\neg",!0);E(_,k,q,"¬","\\lnot");E(_,k,q,"⊤","\\top");E(_,k,q,"⊥","\\bot");E(_,k,q,"∅","\\emptyset");E(_,F,q,"∅","\\varnothing");E(_,k,Ke,"α","\\alpha",!0);E(_,k,Ke,"β","\\beta",!0);E(_,k,Ke,"γ","\\gamma",!0);E(_,k,Ke,"δ","\\delta",!0);E(_,k,Ke,"ϵ","\\epsilon",!0);E(_,k,Ke,"ζ","\\zeta",!0);E(_,k,Ke,"η","\\eta",!0);E(_,k,Ke,"θ","\\theta",!0);E(_,k,Ke,"ι","\\iota",!0);E(_,k,Ke,"κ","\\kappa",!0);E(_,k,Ke,"λ","\\lambda",!0);E(_,k,Ke,"μ","\\mu",!0);E(_,k,Ke,"ν","\\nu",!0);E(_,k,Ke,"ξ","\\xi",!0);E(_,k,Ke,"ο","\\omicron",!0);E(_,k,Ke,"π","\\pi",!0);E(_,k,Ke,"ρ","\\rho",!0);E(_,k,Ke,"σ","\\sigma",!0);E(_,k,Ke,"τ","\\tau",!0);E(_,k,Ke,"υ","\\upsilon",!0);E(_,k,Ke,"ϕ","\\phi",!0);E(_,k,Ke,"χ","\\chi",!0);E(_,k,Ke,"ψ","\\psi",!0);E(_,k,Ke,"ω","\\omega",!0);E(_,k,Ke,"ε","\\varepsilon",!0);E(_,k,Ke,"ϑ","\\vartheta",!0);E(_,k,Ke,"ϖ","\\varpi",!0);E(_,k,Ke,"ϱ","\\varrho",!0);E(_,k,Ke,"ς","\\varsigma",!0);E(_,k,Ke,"φ","\\varphi",!0);E(_,k,Me,"∗","*",!0);E(_,k,Me,"+","+");E(_,k,Me,"−","-",!0);E(_,k,Me,"⋅","\\cdot",!0);E(_,k,Me,"∘","\\circ",!0);E(_,k,Me,"÷","\\div",!0);E(_,k,Me,"±","\\pm",!0);E(_,k,Me,"×","\\times",!0);E(_,k,Me,"∩","\\cap",!0);E(_,k,Me,"∪","\\cup",!0);E(_,k,Me,"∖","\\setminus",!0);E(_,k,Me,"∧","\\land");E(_,k,Me,"∨","\\lor");E(_,k,Me,"∧","\\wedge",!0);E(_,k,Me,"∨","\\vee",!0);E(_,k,q,"√","\\surd");E(_,k,Gr,"⟨","\\langle",!0);E(_,k,Gr,"∣","\\lvert");E(_,k,Gr,"∥","\\lVert");E(_,k,ar,"?","?");E(_,k,ar,"!","!");E(_,k,ar,"⟩","\\rangle",!0);E(_,k,ar,"∣","\\rvert");E(_,k,ar,"∥","\\rVert");E(_,k,z,"=","=");E(_,k,z,":",":");E(_,k,z,"≈","\\approx",!0);E(_,k,z,"≅","\\cong",!0);E(_,k,z,"≥","\\ge");E(_,k,z,"≥","\\geq",!0);E(_,k,z,"←","\\gets");E(_,k,z,">","\\gt",!0);E(_,k,z,"∈","\\in",!0);E(_,k,z,"","\\@not");E(_,k,z,"⊂","\\subset",!0);E(_,k,z,"⊃","\\supset",!0);E(_,k,z,"⊆","\\subseteq",!0);E(_,k,z,"⊇","\\supseteq",!0);E(_,F,z,"⊈","\\nsubseteq",!0);E(_,F,z,"⊉","\\nsupseteq",!0);E(_,k,z,"⊨","\\models");E(_,k,z,"←","\\leftarrow",!0);E(_,k,z,"≤","\\le");E(_,k,z,"≤","\\leq",!0);E(_,k,z,"<","\\lt",!0);E(_,k,z,"→","\\rightarrow",!0);E(_,k,z,"→","\\to");E(_,F,z,"≱","\\ngeq",!0);E(_,F,z,"≰","\\nleq",!0);E(_,k,so," ","\\ ");E(_,k,so," ","\\space");E(_,k,so," ","\\nobreakspace");E(de,k,so," ","\\ ");E(de,k,so," "," ");E(de,k,so," ","\\space");E(de,k,so," ","\\nobreakspace");E(_,k,so,null,"\\nobreak");E(_,k,so,null,"\\allowbreak");E(_,k,up,",",",");E(_,k,up,";",";");E(_,F,Me,"⊼","\\barwedge",!0);E(_,F,Me,"⊻","\\veebar",!0);E(_,k,Me,"⊙","\\odot",!0);E(_,k,Me,"⊕","\\oplus",!0);E(_,k,Me,"⊗","\\otimes",!0);E(_,k,q,"∂","\\partial",!0);E(_,k,Me,"⊘","\\oslash",!0);E(_,F,Me,"⊚","\\circledcirc",!0);E(_,F,Me,"⊡","\\boxdot",!0);E(_,k,Me,"△","\\bigtriangleup");E(_,k,Me,"▽","\\bigtriangledown");E(_,k,Me,"†","\\dagger");E(_,k,Me,"⋄","\\diamond");E(_,k,Me,"⋆","\\star");E(_,k,Me,"◃","\\triangleleft");E(_,k,Me,"▹","\\triangleright");E(_,k,Gr,"{","\\{");E(de,k,q,"{","\\{");E(de,k,q,"{","\\textbraceleft");E(_,k,ar,"}","\\}");E(de,k,q,"}","\\}");E(de,k,q,"}","\\textbraceright");E(_,k,Gr,"{","\\lbrace");E(_,k,ar,"}","\\rbrace");E(_,k,Gr,"[","\\lbrack",!0);E(de,k,q,"[","\\lbrack",!0);E(_,k,ar,"]","\\rbrack",!0);E(de,k,q,"]","\\rbrack",!0);E(_,k,Gr,"(","\\lparen",!0);E(_,k,ar,")","\\rparen",!0);E(de,k,q,"<","\\textless",!0);E(de,k,q,">","\\textgreater",!0);E(_,k,Gr,"⌊","\\lfloor",!0);E(_,k,ar,"⌋","\\rfloor",!0);E(_,k,Gr,"⌈","\\lceil",!0);E(_,k,ar,"⌉","\\rceil",!0);E(_,k,q,"\\","\\backslash");E(_,k,q,"∣","|");E(_,k,q,"∣","\\vert");E(de,k,q,"|","\\textbar",!0);E(_,k,q,"∥","\\|");E(_,k,q,"∥","\\Vert");E(de,k,q,"∥","\\textbardbl");E(de,k,q,"~","\\textasciitilde");E(de,k,q,"\\","\\textbackslash");E(de,k,q,"^","\\textasciicircum");E(_,k,z,"↑","\\uparrow",!0);E(_,k,z,"⇑","\\Uparrow",!0);E(_,k,z,"↓","\\downarrow",!0);E(_,k,z,"⇓","\\Downarrow",!0);E(_,k,z,"↕","\\updownarrow",!0);E(_,k,z,"⇕","\\Updownarrow",!0);E(_,k,mn,"∐","\\coprod");E(_,k,mn,"⋁","\\bigvee");E(_,k,mn,"⋀","\\bigwedge");E(_,k,mn,"⨄","\\biguplus");E(_,k,mn,"⋂","\\bigcap");E(_,k,mn,"⋃","\\bigcup");E(_,k,mn,"∫","\\int");E(_,k,mn,"∫","\\intop");E(_,k,mn,"∬","\\iint");E(_,k,mn,"∭","\\iiint");E(_,k,mn,"∏","\\prod");E(_,k,mn,"∑","\\sum");E(_,k,mn,"⨂","\\bigotimes");E(_,k,mn,"⨁","\\bigoplus");E(_,k,mn,"⨀","\\bigodot");E(_,k,mn,"∮","\\oint");E(_,k,mn,"∯","\\oiint");E(_,k,mn,"∰","\\oiiint");E(_,k,mn,"⨆","\\bigsqcup");E(_,k,mn,"∫","\\smallint");E(de,k,au,"…","\\textellipsis");E(_,k,au,"…","\\mathellipsis");E(de,k,au,"…","\\ldots",!0);E(_,k,au,"…","\\ldots",!0);E(_,k,au,"⋯","\\@cdots",!0);E(_,k,au,"⋱","\\ddots",!0);E(_,k,q,"⋮","\\varvdots");E(_,k,Wt,"ˊ","\\acute");E(_,k,Wt,"ˋ","\\grave");E(_,k,Wt,"¨","\\ddot");E(_,k,Wt,"~","\\tilde");E(_,k,Wt,"ˉ","\\bar");E(_,k,Wt,"˘","\\breve");E(_,k,Wt,"ˇ","\\check");E(_,k,Wt,"^","\\hat");E(_,k,Wt,"⃗","\\vec");E(_,k,Wt,"˙","\\dot");E(_,k,Wt,"˚","\\mathring");E(_,k,Ke,"","\\@imath");E(_,k,Ke,"","\\@jmath");E(_,k,q,"ı","ı");E(_,k,q,"ȷ","ȷ");E(de,k,q,"ı","\\i",!0);E(de,k,q,"ȷ","\\j",!0);E(de,k,q,"ß","\\ss",!0);E(de,k,q,"æ","\\ae",!0);E(de,k,q,"œ","\\oe",!0);E(de,k,q,"ø","\\o",!0);E(de,k,q,"Æ","\\AE",!0);E(de,k,q,"Œ","\\OE",!0);E(de,k,q,"Ø","\\O",!0);E(de,k,Wt,"ˊ","\\'");E(de,k,Wt,"ˋ","\\`");E(de,k,Wt,"ˆ","\\^");E(de,k,Wt,"˜","\\~");E(de,k,Wt,"ˉ","\\=");E(de,k,Wt,"˘","\\u");E(de,k,Wt,"˙","\\.");E(de,k,Wt,"¸","\\c");E(de,k,Wt,"˚","\\r");E(de,k,Wt,"ˇ","\\v");E(de,k,Wt,"¨",'\\"');E(de,k,Wt,"˝","\\H");E(de,k,Wt,"◯","\\textcircled");var sO={"--":!0,"---":!0,"``":!0,"''":!0};E(de,k,q,"–","--",!0);E(de,k,q,"–","\\textendash");E(de,k,q,"—","---",!0);E(de,k,q,"—","\\textemdash");E(de,k,q,"‘","`",!0);E(de,k,q,"‘","\\textquoteleft");E(de,k,q,"’","'",!0);E(de,k,q,"’","\\textquoteright");E(de,k,q,"“","``",!0);E(de,k,q,"“","\\textquotedblleft");E(de,k,q,"”","''",!0);E(de,k,q,"”","\\textquotedblright");E(_,k,q,"°","\\degree",!0);E(de,k,q,"°","\\degree");E(de,k,q,"°","\\textdegree",!0);E(_,k,q,"£","\\pounds");E(_,k,q,"£","\\mathsterling",!0);E(de,k,q,"£","\\pounds");E(de,k,q,"£","\\textsterling",!0);E(_,F,q,"✠","\\maltese");E(de,F,q,"✠","\\maltese");var Tb='0123456789/@."';for(var Bg=0;Bg{if(rs(e.classes)!==rs(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},eae=e=>{for(var t=0;tn&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},fr=function(t,n,r,i){var a=new k0(t,n,r,i);return q8(a),a},lO=(e,t,n,r)=>new k0(e,t,n,r),tae=function(t,n,r){var i=fr([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=we(i.height),i.maxFontSize=1,i},nae=function(t,n,r,i){var a=new W8(t,n,r,i);return q8(a),a},cO=function(t){var n=new N0(t);return q8(n),n},rae=function(t,n){return t instanceof N0?fr([],[t],n):t},iae=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o{var n=fr(["mspace"],[],t),r=Qt(e,t);return n.style.marginRight=we(r),n},_d=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},uO={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},dO={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sae=function(t,n){var[r,i,a]=dO[t],o=new is(r),s=new Za([o],{width:we(i),height:we(a),style:"width:"+we(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=lO(["overlay"],[s],n);return l.height=a,l.style.height=we(a),l.style.width=we(i),l},ee={fontMap:uO,makeSymbol:wi,mathsym:Xie,makeSpan:fr,makeSvgSpan:lO,makeLineSpan:tae,makeAnchor:nae,makeFragment:cO,wrapFragment:rae,makeVList:aae,makeOrd:Zie,makeGlue:oae,staticSvg:sae,svgData:dO,tryCombineChars:eae},Yt={number:3,unit:"mu"},ys={number:4,unit:"mu"},_a={number:5,unit:"mu"},lae={mord:{mop:Yt,mbin:ys,mrel:_a,minner:Yt},mop:{mord:Yt,mop:Yt,mrel:_a,minner:Yt},mbin:{mord:ys,mop:ys,mopen:ys,minner:ys},mrel:{mord:_a,mop:_a,mopen:_a,minner:_a},mopen:{},mclose:{mop:Yt,mbin:ys,mrel:_a,minner:Yt},mpunct:{mord:Yt,mop:Yt,mrel:_a,mopen:Yt,mclose:Yt,mpunct:Yt,minner:Yt},minner:{mord:Yt,mop:Yt,mbin:ys,mrel:_a,mopen:Yt,mpunct:Yt,minner:Yt}},cae={mord:{mop:Yt},mop:{mord:Yt,mop:Yt},mbin:{},mrel:{},mopen:{},mclose:{mop:Yt},mpunct:{},minner:{mop:Yt}},fO={},zh={},Uh={};function ke(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var b=g.classes[0],p=m.classes[0];b==="mbin"&&Ye.contains(dae,p)?g.classes[0]="mord":p==="mbin"&&Ye.contains(uae,b)&&(m.classes[0]="mord")},{node:d},f,h),Cb(a,(m,g)=>{var b=E2(g),p=E2(m),v=b&&p?m.hasClass("mtight")?cae[b][p]:lae[b][p]:null;if(v)return ee.makeGlue(v,c)},{node:d},f,h),a},Cb=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;of=>{t.splice(d+1,0,f),o++})(o)}i&&t.pop()},hO=function(t){return t instanceof N0||t instanceof W8||t instanceof k0&&t.hasClass("enclosing")?t:null},mae=function e(t,n){var r=hO(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},E2=function(t,n){return t?(n&&(t=mae(t,n)),hae[t.classes[0]]||null):null},q1=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Ja(n.concat(r))},Et=function(t,n,r){if(!t)return Ja();if(zh[t.type]){var i=zh[t.type](t,n);if(r&&n.size!==r.size){i=Ja(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new me("Got group of unknown type: '"+t.type+"'")};function wd(e,t){var n=Ja(["base"],e,t),r=Ja(["strut"]);return r.style.height=we(n.height+n.depth),n.depth&&(r.style.verticalAlign=we(-n.depth)),n.children.unshift(r),n}function T2(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=En(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push(wd(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(wd(o,t));var c;n?(c=wd(En(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var u=Ja(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=we(u.height+u.depth),u.depth&&(d.style.verticalAlign=we(-u.depth))}return u}function mO(e){return new N0(e)}class Jr{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=rs(this.classes));for(var r=0;r0&&(t+=' class ="'+Ye.escape(rs(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class i1{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ye.escape(this.toText())}toText(){return this.text}}class pae{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",we(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var fe={MathNode:Jr,TextNode:i1,SpaceNode:pae,newDocumentFragment:mO},li=function(t,n,r){return Ft[n][t]&&Ft[n][t].replace&&t.charCodeAt(0)!==55349&&!(sO.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ft[n][t].replace),new fe.TextNode(t)},Y8=function(t){return t.length===1?t[0]:new fe.MathNode("mrow",t)},X8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Ye.contains(["\\imath","\\jmath"],a))return null;Ft[i][a]&&Ft[i][a].replace&&(a=Ft[i][a].replace);var o=ee.fontMap[r].fontName;return K8(a,o,i)?ee.fontMap[r].variant:null},Sr=function(t,n,r){if(t.length===1){var i=Mt(t[0],n);return r&&i instanceof Jr&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,s=0;s0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(l),o=l}return a},as=function(t,n,r){return Y8(Sr(t,n,r))},Mt=function(t,n){if(!t)return new fe.MathNode("mrow");if(Uh[t.type]){var r=Uh[t.type](t,n);return r}else throw new me("Got group of unknown type: '"+t.type+"'")};function Ab(e,t,n,r,i){var a=Sr(e,n),o;a.length===1&&a[0]instanceof Jr&&Ye.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new fe.MathNode("mrow",a);var s=new fe.MathNode("annotation",[new fe.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new fe.MathNode("semantics",[o,s]),c=new fe.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return ee.makeSpan([u],[c])}var pO=function(t){return new Da({style:t.displayMode?Ge.DISPLAY:Ge.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},gO=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=ee.makeSpan(r,[t])}return t},gae=function(t,n,r){var i=pO(r),a;if(r.output==="mathml")return Ab(t,n,i,r.displayMode,!0);if(r.output==="html"){var o=T2(t,i);a=ee.makeSpan(["katex"],[o])}else{var s=Ab(t,n,i,r.displayMode,!1),l=T2(t,i);a=ee.makeSpan(["katex"],[s,l])}return gO(a,r)},vae=function(t,n,r){var i=pO(r),a=T2(t,i),o=ee.makeSpan(["katex"],[a]);return gO(o,r)},yae={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},bae=function(t){var n=new fe.MathNode("mo",[new fe.TextNode(yae[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Eae={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Tae=function(t){return t.type==="ordgroup"?t.body.length:1},xae=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(Ye.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,u=Tae(c.base),d,f,h;if(u>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,h=.42,f=l+"4"):(d=312,s=2340,h=.34,f="tilde4");else{var m=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][m],d=[0,239,300,360,420][m],h=[0,.24,.3,.3,.36,.42][m],f=l+m):(s=[0,600,1033,2339,2340][m],d=[0,260,286,306,312][m],h=[0,.26,.286,.3,.306,.34][m],f="tilde"+m)}var g=new is(f),b=new Za([g],{width:"100%",height:we(h),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:ee.makeSvgSpan([],[b],n),minWidth:0,height:h}}else{var p=[],v=Eae[l],[T,C,R]=v,N=R/1e3,O=T.length,$,M;if(O===1){var L=v[3];$=["hide-tail"],M=[L]}else if(O===2)$=["halfarrow-left","halfarrow-right"],M=["xMinYMin","xMaxYMin"];else if(O===3)$=["brace-left","brace-center","brace-right"],M=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+O+" children.");for(var X=0;X0&&(i.style.minWidth=we(a)),i},_ae=function(t,n,r,i,a){var o,s=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(o=ee.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(o.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new y2({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new y2({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Za(c,{width:"100%",height:we(s)});o=ee.makeSvgSpan([],[u],a)}return o.height=s,o.style.height=we(s),o},eo={encloseSpan:_ae,mathMLnode:bae,svgSpan:xae};function it(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Q8(e){var t=fp(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function fp(e){return e&&(e.type==="atom"||qie.hasOwnProperty(e.type))?e:null}var Z8=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=it(e.base,"accent"),n=r.base,e.base=n,i=Kie(Et(e,t)),e.base=r):(r=it(e,"accent"),n=r.base);var a=Et(n,t.havingCrampedStyle()),o=r.isShifty&&Ye.isCharacterBox(n),s=0;if(o){var l=Ye.getBaseElem(n),c=Et(l,t.havingCrampedStyle());s=Eb(c).skew}var u=r.label==="\\c",d=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=eo.svgSpan(r,t),f=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+we(2*s)+")",marginLeft:we(2*s)}:void 0}]},t);else{var h,m;r.label==="\\vec"?(h=ee.staticSvg("vec",t),m=ee.svgData.vec[1]):(h=ee.makeOrd({mode:r.mode,text:r.label},t,"textord"),h=Eb(h),h.italic=0,m=h.width,u&&(d+=h.depth)),f=ee.makeSpan(["accent-body"],[h]);var g=r.label==="\\textcircled";g&&(f.classes.push("accent-full"),d=a.height);var b=s;g||(b-=m/2),f.style.left=we(b),r.label==="\\textcircled"&&(f.style.top=".2em"),f=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:f}]},t)}var p=ee.makeSpan(["mord","accent"],[f],t);return i?(i.children[0]=p,i.height=Math.max(p.height,i.height),i.classes[0]="mord",i):p},vO=(e,t)=>{var n=e.isStretchy?eo.mathMLnode(e.label):new fe.MathNode("mo",[li(e.label,e.mode)]),r=new fe.MathNode("mover",[Mt(e.base,t),n]);return r.setAttribute("accent","true"),r},wae=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ke({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Hh(t[0]),r=!wae.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Z8,mathmlBuilder:vO});ke({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Z8,mathmlBuilder:vO});ke({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Et(e.base,t),r=eo.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=ee.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return ee.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=eo.mathMLnode(e.label),r=new fe.MathNode("munder",[Mt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Sd=e=>{var t=new fe.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ke({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=ee.wrapFragment(Et(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=ee.wrapFragment(Et(e.below,r,t),t),o.classes.push(a+"-arrow-pad"));var s=eo.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:o,shift:d}]},t)}else u=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),ee.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=eo.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Sd(Mt(e.body,t));if(e.below){var a=Sd(Mt(e.below,t));r=new fe.MathNode("munderover",[n,a,i])}else r=new fe.MathNode("mover",[n,i])}else if(e.below){var o=Sd(Mt(e.below,t));r=new fe.MathNode("munder",[n,o])}else r=Sd(),r=new fe.MathNode("mover",[n,r]);return r}});var Sae=ee.makeSpan;function yO(e,t){var n=En(e.body,t,!0);return Sae([e.mclass],n,t)}function bO(e,t){var n,r=Sr(e.body,t);return e.mclass==="minner"?n=new fe.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new fe.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new fe.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ke({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:ln(i),isCharacterBox:Ye.isCharacterBox(i)}},htmlBuilder:yO,mathmlBuilder:bO});var hp=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ke({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:hp(t[0]),body:ln(t[1]),isCharacterBox:Ye.isCharacterBox(t[1])}}});ke({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;r!=="\\stackrel"?o=hp(i):o="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:ln(i)},l={type:"supsub",mode:a.mode,base:s,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:Ye.isCharacterBox(l)}},htmlBuilder:yO,mathmlBuilder:bO});ke({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:hp(t[0]),body:ln(t[0])}},htmlBuilder(e,t){var n=En(e.body,t,!0),r=ee.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Sr(e.body,t),r=new fe.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Cae={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Nb=()=>({type:"styling",body:[],mode:"math",style:"display"}),kb=e=>e.type==="textord"&&e.text==="@",Aae=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Nae(e,t,n){var r=Cae[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[a],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function kae(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new me("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(c)>-1)for(var d=0;d<2;d++){for(var f=!0,h=l+1;hAV=|." after @',o[l]);var m=Nae(c,u,e),g={type:"styling",body:[m],mode:"math",style:"display"};r.push(g),s=Nb()}a%2===0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ke({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=ee.wrapFragment(Et(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=we(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new fe.MathNode("mrow",[Mt(e.label,t)]);return n=new fe.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new fe.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ke({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=ee.wrapFragment(Et(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new fe.MathNode("mrow",[Mt(e.fragment,t)])}});ke({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=it(t[0],"ordgroup"),i=r.body,a="",o=0;o=1114111)throw new me("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var EO=(e,t)=>{var n=En(e.body,t.withColor(e.color),!1);return ee.makeFragment(n)},TO=(e,t)=>{var n=Sr(e.body,t.withColor(e.color)),r=new fe.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ke({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=it(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:ln(i)}},htmlBuilder:EO,mathmlBuilder:TO});ke({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=it(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:EO,mathmlBuilder:TO});ke({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&it(i,"size").value}},htmlBuilder(e,t){var n=ee.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=we(Qt(e.size,t)))),n},mathmlBuilder(e,t){var n=new fe.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",we(Qt(e.size,t)))),n}});var x2={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},xO=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new me("Expected a control sequence",e);return t},Oae=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_O=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ke({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(x2[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=x2[r.text]),it(t.parseFunction(),"internal");throw new me("Invalid token after macro prefix",r)}});ke({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new me("Expected a control sequence",r);for(var a=0,o,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new me('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new me('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if(r.text==="EOF")throw new me("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===x2[n]),{type:"internal",mode:t.mode}}});ke({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=xO(t.gullet.popToken());t.gullet.consumeSpaces();var i=Oae(t);return _O(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ke({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=xO(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return _O(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var zu=function(t,n,r){var i=Ft.math[t]&&Ft.math[t].replace,a=K8(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},J8=function(t,n,r,i){var a=r.havingBaseStyle(n),o=ee.makeSpan(i.concat(a.sizingClasses(r)),[t],r),s=a.sizeMultiplier/r.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=a.sizeMultiplier,o},wO=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=we(a),t.height-=a,t.depth+=a},Rae=function(t,n,r,i,a,o){var s=ee.makeSymbol(t,"Main-Regular",a,i),l=J8(s,n,i,o);return r&&wO(l,i,n),l},Iae=function(t,n,r,i){return ee.makeSymbol(t,"Size"+n+"-Regular",r,i)},SO=function(t,n,r,i,a,o){var s=Iae(t,n,a,i),l=J8(ee.makeSpan(["delimsizing","size"+n],[s],i),Ge.TEXT,i,o);return r&&wO(l,i,Ge.TEXT),l},jg=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=ee.makeSpan(["delimsizinginner",i],[ee.makeSpan([],[ee.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Gg=function(t,n,r){var i=ta["Size4-Regular"][t.charCodeAt(0)]?ta["Size4-Regular"][t.charCodeAt(0)][4]:ta["Size1-Regular"][t.charCodeAt(0)][4],a=new is("inner",Fie(t,Math.round(1e3*n))),o=new Za([a],{width:we(i),height:we(n),style:"width:"+we(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=ee.makeSvgSpan([],[o],r);return s.height=n,s.style.height=we(n),s.style.width=we(i),{type:"elem",elem:s}},_2=.008,Cd={type:"kern",size:-1*_2},Mae=["|","\\lvert","\\rvert","\\vert"],Lae=["\\|","\\lVert","\\rVert","\\Vert"],CO=function(t,n,r,i,a,o){var s,l,c,u,d="",f=0;s=c=u=t,l=null;var h="Size1-Regular";t==="\\uparrow"?c=u="⏐":t==="\\Uparrow"?c=u="‖":t==="\\downarrow"?s=c="⏐":t==="\\Downarrow"?s=c="‖":t==="\\updownarrow"?(s="\\uparrow",c="⏐",u="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="‖",u="\\Downarrow"):Ye.contains(Mae,t)?(c="∣",d="vert",f=333):Ye.contains(Lae,t)?(c="∥",d="doublevert",f=556):t==="["||t==="\\lbrack"?(s="⎡",c="⎢",u="⎣",h="Size4-Regular",d="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="⎤",c="⎥",u="⎦",h="Size4-Regular",d="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(c=s="⎢",u="⎣",h="Size4-Regular",d="lfloor",f=667):t==="\\lceil"||t==="⌈"?(s="⎡",c=u="⎢",h="Size4-Regular",d="lceil",f=667):t==="\\rfloor"||t==="⌋"?(c=s="⎥",u="⎦",h="Size4-Regular",d="rfloor",f=667):t==="\\rceil"||t==="⌉"?(s="⎤",c=u="⎥",h="Size4-Regular",d="rceil",f=667):t==="("||t==="\\lparen"?(s="⎛",c="⎜",u="⎝",h="Size4-Regular",d="lparen",f=875):t===")"||t==="\\rparen"?(s="⎞",c="⎟",u="⎠",h="Size4-Regular",d="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",u="⎩",c="⎪",h="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",u="⎭",c="⎪",h="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",u="⎩",c="⎪",h="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",u="⎭",c="⎪",h="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",u="⎭",c="⎪",h="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",u="⎩",c="⎪",h="Size4-Regular");var m=zu(s,h,a),g=m.height+m.depth,b=zu(c,h,a),p=b.height+b.depth,v=zu(u,h,a),T=v.height+v.depth,C=0,R=1;if(l!==null){var N=zu(l,h,a);C=N.height+N.depth,R=2}var O=g+T+C,$=Math.max(0,Math.ceil((n-O)/(R*p))),M=O+$*R*p,L=i.fontMetrics().axisHeight;r&&(L*=i.sizeMultiplier);var X=M/2-L,Z=[];if(d.length>0){var Q=M-g-T,K=Math.round(M*1e3),V=Bie(d,Math.round(Q*1e3)),ne=new is(d,V),B=(f/1e3).toFixed(3)+"em",w=(K/1e3).toFixed(3)+"em",D=new Za([ne],{width:B,height:w,viewBox:"0 0 "+f+" "+K}),A=ee.makeSvgSpan([],[D],i);A.height=K/1e3,A.style.width=B,A.style.height=w,Z.push({type:"elem",elem:A})}else{if(Z.push(jg(u,h,a)),Z.push(Cd),l===null){var W=M-g-T+2*_2;Z.push(Gg(c,W,i))}else{var te=(M-g-T-C)/2+2*_2;Z.push(Gg(c,te,i)),Z.push(Cd),Z.push(jg(l,h,a)),Z.push(Cd),Z.push(Gg(c,te,i))}Z.push(Cd),Z.push(jg(s,h,a))}var P=i.havingBaseStyle(Ge.TEXT),Te=ee.makeVList({positionType:"bottom",positionData:X,children:Z},P);return J8(ee.makeSpan(["delimsizing","mult"],[Te],P),Ge.TEXT,i,o)},Vg=80,Kg=.08,Wg=function(t,n,r,i,a){var o=$ie(t,i,r),s=new is(t,o),l=new Za([s],{width:"400em",height:we(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ee.makeSvgSpan(["hide-tail"],[l],a)},Dae=function(t,n){var r=n.havingBaseSizing(),i=OO("\\surd",t*r.sizeMultiplier,kO,r),a=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,d;return i.type==="small"?(u=1e3+1e3*o+Vg,t<1?a=1:t<1.4&&(a=.7),l=(1+o+Kg)/a,c=(1+o)/a,s=Wg("sqrtMain",l,u,o,n),s.style.minWidth="0.853em",d=.833/a):i.type==="large"?(u=(1e3+Vg)*a1[i.size],c=(a1[i.size]+o)/a,l=(a1[i.size]+o+Kg)/a,s=Wg("sqrtSize"+i.size,l,u,o,n),s.style.minWidth="1.02em",d=1/a):(l=t+o+Kg,c=t+o,u=Math.floor(1e3*t+o)+Vg,s=Wg("sqrtTall",l,u,o,n),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=we(l),{span:s,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*a}},AO=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Pae=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],NO=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],a1=[0,1.2,1.8,2.4,3],$ae=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ye.contains(AO,t)||Ye.contains(NO,t))return SO(t,n,!1,r,i,a);if(Ye.contains(Pae,t))return CO(t,a1[n],!1,r,i,a);throw new me("Illegal delimiter: '"+t+"'")},Fae=[{type:"small",style:Ge.SCRIPTSCRIPT},{type:"small",style:Ge.SCRIPT},{type:"small",style:Ge.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bae=[{type:"small",style:Ge.SCRIPTSCRIPT},{type:"small",style:Ge.SCRIPT},{type:"small",style:Ge.TEXT},{type:"stack"}],kO=[{type:"small",style:Ge.SCRIPTSCRIPT},{type:"small",style:Ge.SCRIPT},{type:"small",style:Ge.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],zae=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},OO=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),o=a;on)return r[o]}return r[r.length-1]},RO=function(t,n,r,i,a,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Ye.contains(NO,t)?s=Fae:Ye.contains(AO,t)?s=kO:s=Bae;var l=OO(t,n,s,i);return l.type==="small"?Rae(t,l.style,r,i,a,o):l.type==="large"?SO(t,l.size,r,i,a,o):CO(t,n,r,i,a,o)},Uae=function(t,n,r,i,a,o){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),d=Math.max(u/500*l,2*u-c);return RO(t,d,!0,i,a,o)},Ga={sqrtImage:Dae,sizedDelim:$ae,sizeToMaxHeight:a1,customSizedDelim:RO,leftRightDelim:Uae},Ob={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Hae=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function mp(e,t){var n=fp(e);if(n&&Ye.contains(Hae,n.text))return n;throw n?new me("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new me("Invalid delimiter type '"+e.type+"'",e)}ke({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=mp(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ob[e.funcName].size,mclass:Ob[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ee.makeSpan([e.mclass]):Ga.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(li(e.delim,e.mode));var n=new fe.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=we(Ga.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Rb(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ke({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new me("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:mp(t[0],e).text,color:n}}});ke({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=mp(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=it(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Rb(e);for(var n=En(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,o=0;o{Rb(e);var n=Sr(e.body,t);if(e.left!=="."){var r=new fe.MathNode("mo",[li(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new fe.MathNode("mo",[li(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return Y8(n)}});ke({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=mp(t[0],e);if(!e.parser.leftrightDepth)throw new me("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=q1(t,[]);else{n=Ga.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?li("|","text"):li(e.delim,e.mode),r=new fe.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var e6=(e,t)=>{var n=ee.wrapFragment(Et(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=Ye.isCharacterBox(e.body);if(r==="sout")a=ee.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=Qt({number:.6,unit:"pt"},t),c=Qt({number:.35,unit:"ex"},t),u=t.havingBaseSizing();i=i/u.sizeMultiplier;var d=n.height+n.depth+l+c;n.style.paddingLeft=we(d/2+l);var f=Math.floor(1e3*d*i),h=Die(f),m=new Za([new is("phase",h)],{width:"400em",height:we(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=ee.makeSvgSpan(["hide-tail"],[m],t),a.style.height=we(d),o=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,b=0,p=0;/box/.test(r)?(p=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=t.fontMetrics().fboxsep+(r==="colorbox"?0:p),b=g):r==="angl"?(p=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),g=4*p,b=Math.max(0,.25-n.depth)):(g=s?.2:0,b=g),a=eo.encloseSpan(n,r,g,b,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=we(p)):r==="angl"&&p!==.049&&(a.style.borderTopWidth=we(p),a.style.borderRightWidth=we(p)),o=n.depth+b,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var T=/cancel|phase/.test(r)?["svg-align"]:[];v=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:T}]},t)}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?ee.makeSpan(["mord","cancel-lap"],[v],t):ee.makeSpan(["mord"],[v],t)},t6=(e,t)=>{var n=0,r=new fe.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Mt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ke({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=it(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:e6,mathmlBuilder:t6});ke({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=it(t[0],"color-token").color,o=it(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:e6,mathmlBuilder:t6});ke({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ke({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:e6,mathmlBuilder:t6});ke({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var IO={};function pa(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new me("{"+e.envName+"} can be used only in display mode.")};function n6(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function ms(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(h==null)o=1;else if(o=parseFloat(h),!o||o<0)throw new me("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var m=[],g=[m],b=[],p=[],v=l!=null?[]:void 0;function T(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new sa("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),p.push(Ib(e));;){var R=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),m.push(R);var N=e.fetch().text;if(N==="&"){if(d&&m.length===d){if(c||s)throw new me("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){C(),m.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),p.length0&&(T+=.25),c.push({pos:T,isDashed:ae[le]})}for(C(o[0]),r=0;r0&&(X+=v,Oae))for(r=0;r=s)){var Ae=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ae=Ye.deflt(te.pregap,f),Ae!==0&&(V=ee.makeSpan(["arraycolsep"],[]),V.style.width=we(Ae),K.push(V)));var qe=[];for(r=0;r0){for(var Ct=ee.makeLineSpan("hline",n,u),or=ee.makeLineSpan("hdashline",n,u),en=[{type:"elem",elem:l,shift:0}];c.length>0;){var sr=c.pop(),j=sr.pos-Z;sr.isDashed?en.push({type:"elem",elem:or,shift:j}):en.push({type:"elem",elem:Ct,shift:j})}l=ee.makeVList({positionType:"individualShift",children:en},n)}if(B.length===0)return ee.makeSpan(["mord"],[l],n);var ie=ee.makeVList({positionType:"individualShift",children:B},n);return ie=ee.makeSpan(["tag"],[ie],n),ee.makeFragment([l,ie])},jae={c:"center ",l:"left ",r:"right "},va=function(t,n){for(var r=[],i=new fe.MathNode("mtd",[],["mtr-glue"]),a=new fe.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var m=t.cols,g="",b=!1,p=0,v=m.length;m[0].type==="separator"&&(f+="top ",p=1),m[m.length-1].type==="separator"&&(f+="bottom ",v-=1);for(var T=p;T0?"left ":"",f+=$[$.length-1].length>0?"right ":"";for(var M=1;M<$.length-1;M++)O+=$[M].length===0?"none ":$[M][0]?"dashed ":"solid ";return/[sd]/.test(O)&&u.setAttribute("rowlines",O.trim()),f!==""&&(u=new fe.MathNode("menclose",[u]),u.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(u=new fe.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},LO=function(t,n){t.envName.indexOf("ed")===-1&&pp(t);var r=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",o=ms(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:n6(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d0&&h&&(b=1),r[m]={type:"align",align:g,pregap:b,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};pa({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=fp(t[0]),r=n?[t[0]]:it(t[0],"ordgroup").body,i=r.map(function(o){var s=Q8(o),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new me("Unknown column alignment: "+l,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return ms(e.parser,a,r6(e.envName))},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new me("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=ms(e.parser,r,r6(e.envName)),o=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=ms(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=fp(t[0]),r=n?[t[0]]:it(t[0],"ordgroup").body,i=r.map(function(o){var s=Q8(o),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new me("Unknown column alignment: "+l,o)});if(i.length>1)throw new me("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=ms(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new me("{subarray} can contain only one column");return a},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=ms(e.parser,t,r6(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:LO,htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Ye.contains(["gather","gather*"],e.envName)&&pp(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:n6(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ms(e.parser,t,"display")},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:LO,htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){pp(e);var t={autoTag:n6(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ms(e.parser,t,"display")},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["CD"],props:{numArgs:0},handler(e){return pp(e),kae(e.parser)},htmlBuilder:ga,mathmlBuilder:va});I("\\nonumber","\\gdef\\@eqnsw{0}");I("\\notag","\\nonumber");ke({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new me(e.funcName+" valid only within array environment")}});var Mb=IO;ke({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new me("Invalid environment name",i);for(var a="",o=0;o{var n=e.font,r=t.withFont(n);return Et(e.body,r)},PO=(e,t)=>{var n=e.font,r=t.withFont(n);return Mt(e.body,r)},Lb={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ke({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=Hh(t[0]),a=r;return a in Lb&&(a=Lb[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:DO,mathmlBuilder:PO});ke({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Ye.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:hp(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ke({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:DO,mathmlBuilder:PO});var $O=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ge.SCRIPT.id?n.text():Ge.DISPLAY:e==="text"&&n.size===Ge.DISPLAY.size?n=Ge.TEXT:e==="script"?n=Ge.SCRIPT:e==="scriptscript"&&(n=Ge.SCRIPTSCRIPT),n},i6=(e,t)=>{var n=$O(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=Et(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?m=3*f:m=7*f,g=t.fontMetrics().denom1):(d>0?(h=t.fontMetrics().num2,m=f):(h=t.fontMetrics().num3,m=3*f),g=t.fontMetrics().denom2);var b;if(u){var v=t.fontMetrics().axisHeight;h-o.depth-(v+.5*d){var n=new fe.MathNode("mfrac",[Mt(e.numer,t),Mt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Qt(e.barSize,t);n.setAttribute("linethickness",we(r))}var i=$O(e.size,t.style);if(i.size!==t.style.size){n=new fe.MathNode("mstyle",[n]);var a=i.size===Ge.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new fe.MathNode("mo",[new fe.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var l=new fe.MathNode("mo",[new fe.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Y8(o)}return n};ke({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,s="(",l=")";break;case"\\\\bracefrac":o=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:i6,mathmlBuilder:a6});ke({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ke({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Db=["display","text","script","scriptscript"],Pb=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ke({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=Hh(t[0]),o=a.type==="atom"&&a.family==="open"?Pb(a.text):null,s=Hh(t[1]),l=s.type==="atom"&&s.family==="close"?Pb(s.text):null,c=it(t[2],"size"),u,d=null;c.isBlank?u=!0:(d=c.value,u=d.number>0);var f="auto",h=t[3];if(h.type==="ordgroup"){if(h.body.length>0){var m=it(h.body[0],"textord");f=Db[Number(m.text)]}}else h=it(h,"textord"),f=Db[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:l,size:f}},htmlBuilder:i6,mathmlBuilder:a6});ke({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:it(t[0],"size").value,token:i}}});ke({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Eie(it(t[1],"infix").size),o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:i6,mathmlBuilder:a6});var FO=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Et(e.sup,t.havingStyle(n.sup()),t):Et(e.sub,t.havingStyle(n.sub()),t),i=it(e.base,"horizBrace")):i=it(e,"horizBrace");var a=Et(i.base,t.havingBaseStyle(Ge.DISPLAY)),o=eo.svgSpan(i,t),s;if(i.isOver?(s=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=ee.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ee.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=ee.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return ee.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)},Gae=(e,t)=>{var n=eo.mathMLnode(e.label);return new fe.MathNode(e.isOver?"mover":"munder",[Mt(e.base,t),n])};ke({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:FO,mathmlBuilder:Gae});ke({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=it(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:ln(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=En(e.body,t,!1);return ee.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=as(e.body,t);return n instanceof Jr||(n=new Jr("mrow",[n])),n.setAttribute("href",e.href),n}});ke({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=it(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=it(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),u=0;u{var n=En(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=ee.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>as(e.body,t)});ke({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:ln(t[0]),mathml:ln(t[1])}},htmlBuilder:(e,t)=>{var n=En(e.html,t,!1);return ee.makeFragment(n)},mathmlBuilder:(e,t)=>as(e.mathml,t)});var qg=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new me("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!rO(r))throw new me("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ke({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=it(n[0],"raw").string,c=l.split(","),u=0;u{var n=Qt(e.height,t),r=0;e.totalheight.number>0&&(r=Qt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Qt(e.width,t));var a={height:we(n+r)};i>0&&(a.width=we(i)),r>0&&(a.verticalAlign=we(-r));var o=new Gie(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new fe.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Qt(e.height,t),i=0;if(e.totalheight.number>0&&(i=Qt(e.totalheight,t)-r,n.setAttribute("valign",we(-i))),n.setAttribute("height",we(r+i)),e.width.number>0){var a=Qt(e.width,t);n.setAttribute("width",we(a))}return n.setAttribute("src",e.src),n}});ke({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=it(t[0],"size");if(n.settings.strict){var a=r[1]==="m",o=i.value.unit==="mu";a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return ee.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Qt(e.dimension,t);return new fe.SpaceNode(n)}});ke({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ee.makeSpan([],[Et(e.body,t)]),n=ee.makeSpan(["inner"],[n],t)):n=ee.makeSpan(["inner"],[Et(e.body,t)]);var r=ee.makeSpan(["fix"],[]),i=ee.makeSpan([e.alignment],[n,r],t),a=ee.makeSpan(["strut"]);return a.style.height=we(i.height+i.depth),i.depth&&(a.style.verticalAlign=we(-i.depth)),i.children.unshift(a),i=ee.makeSpan(["thinbox"],[i],t),ee.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new fe.MathNode("mpadded",[Mt(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ke({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});ke({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new me("Mismatched "+e.funcName)}});var $b=(e,t)=>{switch(t.style.size){case Ge.DISPLAY.size:return e.display;case Ge.TEXT.size:return e.text;case Ge.SCRIPT.size:return e.script;case Ge.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ke({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:ln(t[0]),text:ln(t[1]),script:ln(t[2]),scriptscript:ln(t[3])}},htmlBuilder:(e,t)=>{var n=$b(e,t),r=En(n,t,!1);return ee.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=$b(e,t);return as(n,t)}});var BO=(e,t,n,r,i,a,o)=>{e=ee.makeSpan([],[e]);var s=n&&Ye.isCharacterBox(n),l,c;if(t){var u=Et(t,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Et(n,r.havingStyle(i.sub()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(c&&l){var h=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;f=ee.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:we(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:we(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var m=e.height-o;f=ee.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:we(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var g=e.depth+o;f=ee.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:we(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var b=[f];if(l&&a!==0&&!s){var p=ee.makeSpan(["mspace"],[],r);p.style.marginRight=we(a),b.unshift(p)}return ee.makeSpan(["mop","op-limits"],b,r)},zO=["\\smallint"],ou=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=it(e.base,"op"),i=!0):a=it(e,"op");var o=t.style,s=!1;o.size===Ge.DISPLAY.size&&a.symbol&&!Ye.contains(zO,a.name)&&(s=!0);var l;if(a.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(u=a.name.slice(1),a.name=u==="oiint"?"\\iint":"\\iiint"),l=ee.makeSymbol(a.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var d=l.italic,f=ee.staticSvg(u+"Size"+(s?"2":"1"),t);l=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]},t),a.name="\\"+u,l.classes.unshift("mop"),l.italic=d}}else if(a.body){var h=En(a.body,t,!0);h.length===1&&h[0]instanceof si?(l=h[0],l.classes[0]="mop"):l=ee.makeSpan(["mop"],h,t)}else{for(var m=[],g=1;g{var n;if(e.symbol)n=new Jr("mo",[li(e.name,e.mode)]),Ye.contains(zO,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Jr("mo",Sr(e.body,t));else{n=new Jr("mi",[new i1(e.name.slice(1))]);var r=new Jr("mo",[li("⁡","text")]);e.parentIsSupSub?n=new Jr("mrow",[n,r]):n=mO([n,r])}return n},Vae={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ke({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Vae[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ou,mathmlBuilder:O0});ke({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ln(r)}},htmlBuilder:ou,mathmlBuilder:O0});var Kae={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ke({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ou,mathmlBuilder:O0});ke({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ou,mathmlBuilder:O0});ke({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Kae[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ou,mathmlBuilder:O0});var UO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=it(e.base,"operatorname"),i=!0):a=it(e,"operatorname");var o;if(a.body.length>0){for(var s=a.body.map(d=>{var f=d.text;return typeof f=="string"?{type:"textord",mode:d.mode,text:f}:d}),l=En(s,t.withFont("mathrm"),!0),c=0;c{for(var n=Sr(e.body,t.withFont("mathrm")),r=!0,i=0;iu.toText()).join("");n=[new fe.TextNode(s)]}var l=new fe.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new fe.MathNode("mo",[li("⁡","text")]);return e.parentIsSupSub?new fe.MathNode("mrow",[l,c]):fe.newDocumentFragment([l,c])};ke({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:ln(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:UO,mathmlBuilder:Wae});I("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");_l({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ee.makeFragment(En(e.body,t,!1)):ee.makeSpan(["mord"],En(e.body,t,!0),t)},mathmlBuilder(e,t){return as(e.body,t,!0)}});ke({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Et(e.body,t.havingCrampedStyle()),r=ee.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return ee.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[new fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fe.MathNode("mover",[Mt(e.body,t),n]);return r.setAttribute("accent","true"),r}});ke({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:ln(r)}},htmlBuilder:(e,t)=>{var n=En(e.body,t.withPhantom(),!1);return ee.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Sr(e.body,t);return new fe.MathNode("mphantom",n)}});ke({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ee.makeSpan([],[Et(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Sr(ln(e.body),t),r=new fe.MathNode("mphantom",n),i=new fe.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ke({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ee.makeSpan(["inner"],[Et(e.body,t.withPhantom())]),r=ee.makeSpan(["fix"],[]);return ee.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Sr(ln(e.body),t),r=new fe.MathNode("mphantom",n),i=new fe.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ke({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=it(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Et(e.body,t),r=Qt(e.dy,t);return ee.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new fe.MathNode("mpadded",[Mt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ke({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ke({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=it(t[0],"size"),o=it(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&it(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=ee.makeSpan(["mord","rule"],[],t),r=Qt(e.width,t),i=Qt(e.height,t),a=e.shift?Qt(e.shift,t):0;return n.style.borderRightWidth=we(r),n.style.borderTopWidth=we(i),n.style.bottom=we(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Qt(e.width,t),r=Qt(e.height,t),i=e.shift?Qt(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new fe.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",we(n)),o.setAttribute("height",we(r));var s=new fe.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height",we(i)):(s.setAttribute("height",we(i)),s.setAttribute("depth",we(-i))),s.setAttribute("voffset",we(i)),s}});function HO(e,t,n){for(var r=En(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return HO(e.body,n,t)};ke({type:"sizing",names:Fb,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Fb.indexOf(r)+1,body:a}},htmlBuilder:qae,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Sr(e.body,n),i=new fe.MathNode("mstyle",r);return i.setAttribute("mathsize",we(n.sizeMultiplier)),i}});ke({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&it(n[0],"ordgroup");if(o)for(var s="",l=0;l{var n=ee.makeSpan([],[Et(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new fe.MathNode("mpadded",[Mt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ke({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Et(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ee.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var f=l.height-n.height-o-c;n.style.paddingLeft=we(u);var h=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var m=t.havingStyle(Ge.SCRIPTSCRIPT),g=Et(e.index,m,t),b=.6*(h.height-h.depth),p=ee.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:g}]},t),v=ee.makeSpan(["root"],[p]);return ee.makeSpan(["mord","sqrt"],[v,h],t)}else return ee.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new fe.MathNode("mroot",[Mt(n,t),Mt(r,t)]):new fe.MathNode("msqrt",[Mt(n,t)])}});var Bb={display:Ge.DISPLAY,text:Ge.TEXT,script:Ge.SCRIPT,scriptscript:Ge.SCRIPTSCRIPT};ke({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Bb[e.style],r=t.havingStyle(n).withFont("");return HO(e.body,r,t)},mathmlBuilder(e,t){var n=Bb[e.style],r=t.havingStyle(n),i=Sr(e.body,r),a=new fe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var Yae=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ge.DISPLAY.size||r.alwaysHandleSupSub);return i?ou:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ge.DISPLAY.size||r.limits);return a?UO:null}else{if(r.type==="accent")return Ye.isCharacterBox(r.base)?Z8:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?FO:null}else return null}else return null};_l({type:"supsub",htmlBuilder(e,t){var n=Yae(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Et(r,t),s,l,c=t.fontMetrics(),u=0,d=0,f=r&&Ye.isCharacterBox(r);if(i){var h=t.havingStyle(t.style.sup());s=Et(i,h,t),f||(u=o.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());l=Et(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var g;t.style===Ge.DISPLAY?g=c.sup1:t.style.cramped?g=c.sup3:g=c.sup2;var b=t.sizeMultiplier,p=we(.5/c.ptPerEm/b),v=null;if(l){var T=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof si||T)&&(v=we(-o.italic))}var C;if(s&&l){u=Math.max(u,g,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var R=c.defaultRuleThickness,N=4*R;if(u-s.depth-(l.height-d)0&&(u+=O,d-=O)}var $=[{type:"elem",elem:l,shift:d,marginRight:p,marginLeft:v},{type:"elem",elem:s,shift:-u,marginRight:p}];C=ee.makeVList({positionType:"individualShift",children:$},t)}else if(l){d=Math.max(d,c.sub1,l.height-.8*c.xHeight);var M=[{type:"elem",elem:l,marginLeft:v,marginRight:p}];C=ee.makeVList({positionType:"shift",positionData:d,children:M},t)}else if(s)u=Math.max(u,g,s.depth+.25*c.xHeight),C=ee.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:p}]},t);else throw new Error("supsub must have either sup or sub.");var L=E2(o,"right")||"mord";return ee.makeSpan([L],[o,ee.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Mt(e.base,t)];e.sub&&a.push(Mt(e.sub,t)),e.sup&&a.push(Mt(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Ge.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Ge.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ge.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ge.DISPLAY)?o="munder":o="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Ge.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Ge.DISPLAY)?o="mover":o="msup"}return new fe.MathNode(o,a)}});_l({type:"atom",htmlBuilder(e,t){return ee.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[li(e.text,e.mode)]);if(e.family==="bin"){var r=X8(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var jO={mi:"italic",mn:"normal",mtext:"normal"};_l({type:"mathord",htmlBuilder(e,t){return ee.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new fe.MathNode("mi",[li(e.text,e.mode,t)]),r=X8(e,t)||"italic";return r!==jO[n.type]&&n.setAttribute("mathvariant",r),n}});_l({type:"textord",htmlBuilder(e,t){return ee.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=li(e.text,e.mode,t),r=X8(e,t)||"normal",i;return e.mode==="text"?i=new fe.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new fe.MathNode("mn",[n]):e.text==="\\prime"?i=new fe.MathNode("mo",[n]):i=new fe.MathNode("mi",[n]),r!==jO[i.type]&&i.setAttribute("mathvariant",r),i}});var Yg={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Xg={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};_l({type:"spacing",htmlBuilder(e,t){if(Xg.hasOwnProperty(e.text)){var n=Xg[e.text].className||"";if(e.mode==="text"){var r=ee.makeOrd(e,t,"textord");return r.classes.push(n),r}else return ee.makeSpan(["mspace",n],[ee.mathsym(e.text,e.mode,t)],t)}else{if(Yg.hasOwnProperty(e.text))return ee.makeSpan(["mspace",Yg[e.text]],[],t);throw new me('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Xg.hasOwnProperty(e.text))n=new fe.MathNode("mtext",[new fe.TextNode(" ")]);else{if(Yg.hasOwnProperty(e.text))return new fe.MathNode("mspace");throw new me('Unknown type of space "'+e.text+'"')}return n}});var zb=()=>{var e=new fe.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};_l({type:"tag",mathmlBuilder(e,t){var n=new fe.MathNode("mtable",[new fe.MathNode("mtr",[zb(),new fe.MathNode("mtd",[as(e.body,t)]),zb(),new fe.MathNode("mtd",[as(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Ub={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Hb={"\\textbf":"textbf","\\textmd":"textmd"},Xae={"\\textit":"textit","\\textup":"textup"},jb=(e,t)=>{var n=e.font;return n?Ub[n]?t.withTextFontFamily(Ub[n]):Hb[n]?t.withTextFontWeight(Hb[n]):t.withTextFontShape(Xae[n]):t};ke({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:ln(i),font:r}},htmlBuilder(e,t){var n=jb(e,t),r=En(e.body,n,!0);return ee.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=jb(e,t);return as(e.body,n)}});ke({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Et(e.body,t),r=ee.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=ee.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return ee.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[new fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fe.MathNode("munder",[Mt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ke({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Et(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return ee.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new fe.MathNode("mpadded",[Mt(e.body,t)],["vcenter"])}});ke({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new me("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Gb(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Po=fO,GO=`[ \r - ]`,Qae="\\\\[a-zA-Z@]+",Zae="\\\\[^\uD800-\uDFFF]",Jae="("+Qae+")"+GO+"*",eoe=`\\\\( -|[ \r ]+ -?)[ \r ]*`,w2="[̀-ͯ]",toe=new RegExp(w2+"+$"),noe="("+GO+"+)|"+(eoe+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(w2+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(w2+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Jae)+("|"+Zae+")");class Vb{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(noe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new sa("EOF",new Rr(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new me("Unexpected character: '"+t[n]+"'",new sa(t[n],new Rr(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new sa(i,new Rr(this,n,this.tokenRegex.lastIndex))}}class roe{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new me("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var ioe=MO;I("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});I("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});I("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});I("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});I("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});I("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");I("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Kb={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};I("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new me("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Kb[t.text],r==null||r>=n)throw new me("Invalid base-"+n+" digit "+t.text);for(var i;(i=Kb[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new me("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new me("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new me("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var s="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new me("Invalid number of arguments: "+s);o=parseInt(s),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:o}),""};I("\\newcommand",e=>o6(e,!1,!0));I("\\renewcommand",e=>o6(e,!0,!1));I("\\providecommand",e=>o6(e,!0,!0));I("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});I("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});I("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Po[n],Ft.math[n],Ft.text[n]),""});I("\\bgroup","{");I("\\egroup","}");I("~","\\nobreakspace");I("\\lq","`");I("\\rq","'");I("\\aa","\\r a");I("\\AA","\\r A");I("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");I("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");I("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");I("ℬ","\\mathscr{B}");I("ℰ","\\mathscr{E}");I("ℱ","\\mathscr{F}");I("ℋ","\\mathscr{H}");I("ℐ","\\mathscr{I}");I("ℒ","\\mathscr{L}");I("ℳ","\\mathscr{M}");I("ℛ","\\mathscr{R}");I("ℭ","\\mathfrak{C}");I("ℌ","\\mathfrak{H}");I("ℨ","\\mathfrak{Z}");I("\\Bbbk","\\Bbb{k}");I("·","\\cdotp");I("\\llap","\\mathllap{\\textrm{#1}}");I("\\rlap","\\mathrlap{\\textrm{#1}}");I("\\clap","\\mathclap{\\textrm{#1}}");I("\\mathstrut","\\vphantom{(}");I("\\underbar","\\underline{\\text{#1}}");I("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');I("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");I("\\ne","\\neq");I("≠","\\neq");I("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");I("∉","\\notin");I("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");I("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");I("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");I("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");I("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");I("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");I("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");I("⟂","\\perp");I("‼","\\mathclose{!\\mkern-0.8mu!}");I("∌","\\notni");I("⌜","\\ulcorner");I("⌝","\\urcorner");I("⌞","\\llcorner");I("⌟","\\lrcorner");I("©","\\copyright");I("®","\\textregistered");I("️","\\textregistered");I("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');I("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');I("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');I("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');I("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");I("⋮","\\vdots");I("\\varGamma","\\mathit{\\Gamma}");I("\\varDelta","\\mathit{\\Delta}");I("\\varTheta","\\mathit{\\Theta}");I("\\varLambda","\\mathit{\\Lambda}");I("\\varXi","\\mathit{\\Xi}");I("\\varPi","\\mathit{\\Pi}");I("\\varSigma","\\mathit{\\Sigma}");I("\\varUpsilon","\\mathit{\\Upsilon}");I("\\varPhi","\\mathit{\\Phi}");I("\\varPsi","\\mathit{\\Psi}");I("\\varOmega","\\mathit{\\Omega}");I("\\substack","\\begin{subarray}{c}#1\\end{subarray}");I("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");I("\\boxed","\\fbox{$\\displaystyle{#1}$}");I("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");I("\\implies","\\DOTSB\\;\\Longrightarrow\\;");I("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Wb={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};I("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Wb?t=Wb[n]:(n.slice(0,4)==="\\not"||n in Ft.math&&Ye.contains(["bin","rel"],Ft.math[n].group))&&(t="\\dotsb"),t});var s6={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};I("\\dotso",function(e){var t=e.future().text;return t in s6?"\\ldots\\,":"\\ldots"});I("\\dotsc",function(e){var t=e.future().text;return t in s6&&t!==","?"\\ldots\\,":"\\ldots"});I("\\cdots",function(e){var t=e.future().text;return t in s6?"\\@cdots\\,":"\\@cdots"});I("\\dotsb","\\cdots");I("\\dotsm","\\cdots");I("\\dotsi","\\!\\cdots");I("\\dotsx","\\ldots\\,");I("\\DOTSI","\\relax");I("\\DOTSB","\\relax");I("\\DOTSX","\\relax");I("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");I("\\,","\\tmspace+{3mu}{.1667em}");I("\\thinspace","\\,");I("\\>","\\mskip{4mu}");I("\\:","\\tmspace+{4mu}{.2222em}");I("\\medspace","\\:");I("\\;","\\tmspace+{5mu}{.2777em}");I("\\thickspace","\\;");I("\\!","\\tmspace-{3mu}{.1667em}");I("\\negthinspace","\\!");I("\\negmedspace","\\tmspace-{4mu}{.2222em}");I("\\negthickspace","\\tmspace-{5mu}{.277em}");I("\\enspace","\\kern.5em ");I("\\enskip","\\hskip.5em\\relax");I("\\quad","\\hskip1em\\relax");I("\\qquad","\\hskip2em\\relax");I("\\tag","\\@ifstar\\tag@literal\\tag@paren");I("\\tag@paren","\\tag@literal{({#1})}");I("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new me("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});I("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");I("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");I("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");I("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");I("\\newline","\\\\\\relax");I("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var VO=we(ta["Main-Regular"]["T".charCodeAt(0)][1]-.7*ta["Main-Regular"]["A".charCodeAt(0)][1]);I("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+VO+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");I("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+VO+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");I("\\hspace","\\@ifstar\\@hspacer\\@hspace");I("\\@hspace","\\hskip #1\\relax");I("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");I("\\ordinarycolon",":");I("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");I("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');I("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');I("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');I("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');I("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');I("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');I("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');I("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');I("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');I("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');I("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');I("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');I("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');I("∷","\\dblcolon");I("∹","\\eqcolon");I("≔","\\coloneqq");I("≕","\\eqqcolon");I("⩴","\\Coloneqq");I("\\ratio","\\vcentcolon");I("\\coloncolon","\\dblcolon");I("\\colonequals","\\coloneqq");I("\\coloncolonequals","\\Coloneqq");I("\\equalscolon","\\eqqcolon");I("\\equalscoloncolon","\\Eqqcolon");I("\\colonminus","\\coloneq");I("\\coloncolonminus","\\Coloneq");I("\\minuscolon","\\eqcolon");I("\\minuscoloncolon","\\Eqcolon");I("\\coloncolonapprox","\\Colonapprox");I("\\coloncolonsim","\\Colonsim");I("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");I("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");I("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");I("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");I("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");I("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");I("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");I("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");I("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");I("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");I("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");I("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");I("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");I("\\nleqq","\\html@mathml{\\@nleqq}{≰}");I("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");I("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");I("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");I("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");I("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");I("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");I("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");I("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");I("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");I("\\imath","\\html@mathml{\\@imath}{ı}");I("\\jmath","\\html@mathml{\\@jmath}{ȷ}");I("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");I("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");I("⟦","\\llbracket");I("⟧","\\rrbracket");I("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");I("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");I("⦃","\\lBrace");I("⦄","\\rBrace");I("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");I("⦵","\\minuso");I("\\darr","\\downarrow");I("\\dArr","\\Downarrow");I("\\Darr","\\Downarrow");I("\\lang","\\langle");I("\\rang","\\rangle");I("\\uarr","\\uparrow");I("\\uArr","\\Uparrow");I("\\Uarr","\\Uparrow");I("\\N","\\mathbb{N}");I("\\R","\\mathbb{R}");I("\\Z","\\mathbb{Z}");I("\\alef","\\aleph");I("\\alefsym","\\aleph");I("\\Alpha","\\mathrm{A}");I("\\Beta","\\mathrm{B}");I("\\bull","\\bullet");I("\\Chi","\\mathrm{X}");I("\\clubs","\\clubsuit");I("\\cnums","\\mathbb{C}");I("\\Complex","\\mathbb{C}");I("\\Dagger","\\ddagger");I("\\diamonds","\\diamondsuit");I("\\empty","\\emptyset");I("\\Epsilon","\\mathrm{E}");I("\\Eta","\\mathrm{H}");I("\\exist","\\exists");I("\\harr","\\leftrightarrow");I("\\hArr","\\Leftrightarrow");I("\\Harr","\\Leftrightarrow");I("\\hearts","\\heartsuit");I("\\image","\\Im");I("\\infin","\\infty");I("\\Iota","\\mathrm{I}");I("\\isin","\\in");I("\\Kappa","\\mathrm{K}");I("\\larr","\\leftarrow");I("\\lArr","\\Leftarrow");I("\\Larr","\\Leftarrow");I("\\lrarr","\\leftrightarrow");I("\\lrArr","\\Leftrightarrow");I("\\Lrarr","\\Leftrightarrow");I("\\Mu","\\mathrm{M}");I("\\natnums","\\mathbb{N}");I("\\Nu","\\mathrm{N}");I("\\Omicron","\\mathrm{O}");I("\\plusmn","\\pm");I("\\rarr","\\rightarrow");I("\\rArr","\\Rightarrow");I("\\Rarr","\\Rightarrow");I("\\real","\\Re");I("\\reals","\\mathbb{R}");I("\\Reals","\\mathbb{R}");I("\\Rho","\\mathrm{P}");I("\\sdot","\\cdot");I("\\sect","\\S");I("\\spades","\\spadesuit");I("\\sub","\\subset");I("\\sube","\\subseteq");I("\\supe","\\supseteq");I("\\Tau","\\mathrm{T}");I("\\thetasym","\\vartheta");I("\\weierp","\\wp");I("\\Zeta","\\mathrm{Z}");I("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");I("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");I("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");I("\\bra","\\mathinner{\\langle{#1}|}");I("\\ket","\\mathinner{|{#1}\\rangle}");I("\\braket","\\mathinner{\\langle{#1}\\rangle}");I("\\Bra","\\left\\langle#1\\right|");I("\\Ket","\\left|#1\\right\\rangle");var KO=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=d=>f=>{e&&(f.macros.set("|",o),i.length&&f.macros.set("\\|",s));var h=d;if(!d&&i.length){var m=f.future();m.text==="|"&&(f.popToken(),h=!0)}return{tokens:h?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};I("\\bra@ket",KO(!1));I("\\bra@set",KO(!0));I("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");I("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");I("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");I("\\angln","{\\angl n}");I("\\blue","\\textcolor{##6495ed}{#1}");I("\\orange","\\textcolor{##ffa500}{#1}");I("\\pink","\\textcolor{##ff00af}{#1}");I("\\red","\\textcolor{##df0030}{#1}");I("\\green","\\textcolor{##28ae7b}{#1}");I("\\gray","\\textcolor{gray}{#1}");I("\\purple","\\textcolor{##9d38bd}{#1}");I("\\blueA","\\textcolor{##ccfaff}{#1}");I("\\blueB","\\textcolor{##80f6ff}{#1}");I("\\blueC","\\textcolor{##63d9ea}{#1}");I("\\blueD","\\textcolor{##11accd}{#1}");I("\\blueE","\\textcolor{##0c7f99}{#1}");I("\\tealA","\\textcolor{##94fff5}{#1}");I("\\tealB","\\textcolor{##26edd5}{#1}");I("\\tealC","\\textcolor{##01d1c1}{#1}");I("\\tealD","\\textcolor{##01a995}{#1}");I("\\tealE","\\textcolor{##208170}{#1}");I("\\greenA","\\textcolor{##b6ffb0}{#1}");I("\\greenB","\\textcolor{##8af281}{#1}");I("\\greenC","\\textcolor{##74cf70}{#1}");I("\\greenD","\\textcolor{##1fab54}{#1}");I("\\greenE","\\textcolor{##0d923f}{#1}");I("\\goldA","\\textcolor{##ffd0a9}{#1}");I("\\goldB","\\textcolor{##ffbb71}{#1}");I("\\goldC","\\textcolor{##ff9c39}{#1}");I("\\goldD","\\textcolor{##e07d10}{#1}");I("\\goldE","\\textcolor{##a75a05}{#1}");I("\\redA","\\textcolor{##fca9a9}{#1}");I("\\redB","\\textcolor{##ff8482}{#1}");I("\\redC","\\textcolor{##f9685d}{#1}");I("\\redD","\\textcolor{##e84d39}{#1}");I("\\redE","\\textcolor{##bc2612}{#1}");I("\\maroonA","\\textcolor{##ffbde0}{#1}");I("\\maroonB","\\textcolor{##ff92c6}{#1}");I("\\maroonC","\\textcolor{##ed5fa6}{#1}");I("\\maroonD","\\textcolor{##ca337c}{#1}");I("\\maroonE","\\textcolor{##9e034e}{#1}");I("\\purpleA","\\textcolor{##ddd7ff}{#1}");I("\\purpleB","\\textcolor{##c6b9fc}{#1}");I("\\purpleC","\\textcolor{##aa87ff}{#1}");I("\\purpleD","\\textcolor{##7854ab}{#1}");I("\\purpleE","\\textcolor{##543b78}{#1}");I("\\mintA","\\textcolor{##f5f9e8}{#1}");I("\\mintB","\\textcolor{##edf2df}{#1}");I("\\mintC","\\textcolor{##e0e5cc}{#1}");I("\\grayA","\\textcolor{##f6f7f7}{#1}");I("\\grayB","\\textcolor{##f0f1f2}{#1}");I("\\grayC","\\textcolor{##e3e5e6}{#1}");I("\\grayD","\\textcolor{##d6d8da}{#1}");I("\\grayE","\\textcolor{##babec2}{#1}");I("\\grayF","\\textcolor{##888d93}{#1}");I("\\grayG","\\textcolor{##626569}{#1}");I("\\grayH","\\textcolor{##3b3e40}{#1}");I("\\grayI","\\textcolor{##21242c}{#1}");I("\\kaBlue","\\textcolor{##314453}{#1}");I("\\kaGreen","\\textcolor{##71B307}{#1}");var WO={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class aoe{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new roe(ioe,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Vb(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new sa("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new me("Extra }",a)}else if(a.text==="EOF")throw new me("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",a);if(t&&r)if((o===0||o===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(o!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new me("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new me("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if(l.text==="#"){if(s===0)throw new me("Incomplete placeholder at end of macro body",l);if(l=a[--s],l.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(l.text))a.splice(s,2,...o[+l.text-1]);else throw new me("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new sa(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var s=new Vb(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:a};return u}return i}isDefined(t){return this.macros.has(t)||Po.hasOwnProperty(t)||Ft.math.hasOwnProperty(t)||Ft.text.hasOwnProperty(t)||WO.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Po.hasOwnProperty(t)&&!Po[t].primitive}}var qb=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ad=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Qg={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Yb={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let qO=class S2{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new aoe(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new me("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new sa("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(S2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Po[i.text]&&Po[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=Ft[this.mode][n].group,l=Rr.range(t),c;if(Wie.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};o=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(nO(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:Rr.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;d{nu(r,"element",a=>{const o=a.properties&&Array.isArray(a.properties.className)?a.properties.className:[],s=o.includes("math-inline"),l=o.includes("math-display");if(!s&&!l)return;const c=p2(a,{whitespace:"pre"});let u;try{u=Xb.renderToString(c,eE({},t,{displayMode:l,throwOnError:!0}))}catch(f){const h=f,m=n?"fail":"message",g=[Soe,h.name.toLowerCase()].join(":");if(i[m](h.message,a.position,g),h.name!=="ParseError"){a.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(h),style:"color:"+(t.errorColor||"#cc0000")},children:[{type:"text",value:c}]}];return}u=Xb.renderToString(c,eE({},t,{displayMode:l,throwOnError:!1,strict:"ignore"}))}const d=_oe(u,{fragment:!0});a.children=d.children})}}function Aoe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Noe={}.hasOwnProperty,nR=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Xm(i.ignore||[]),s=koe(a);let l=-1;for(;++l0?{type:"text",value:O}:void 0),O!==!1&&(b!==R&&T.push({type:"text",value:d.value.slice(b,R)}),Array.isArray(O)?T.push(...O):O&&T.push(O),b=R+C[0].length,v=!0),!m.global)break;C=m.exec(d.value)}return v?(be}function Ooe(e){nR(e,/\r?\n|\r/g,Roe)}function Roe(){return{type:"break"}}function Ioe(){return Ooe}const Moe={tokenize:Boe,partial:!0},rR={tokenize:zoe,partial:!0},iR={tokenize:Uoe,partial:!0},aR={tokenize:Hoe,partial:!0},Loe={tokenize:joe,partial:!0},oR={tokenize:$oe,previous:lR},sR={tokenize:Foe,previous:cR},lo={tokenize:Poe,previous:uR},ya={},Doe={text:ya};let bs=48;for(;bs<123;)ya[bs]=lo,bs++,bs===58?bs=65:bs===91&&(bs=97);ya[43]=lo;ya[45]=lo;ya[46]=lo;ya[95]=lo;ya[72]=[lo,sR];ya[104]=[lo,sR];ya[87]=[lo,oR];ya[119]=[lo,oR];function Poe(e,t,n){const r=this;let i,a;return o;function o(d){return!N2(d)||!uR.call(r,r.previous)||u6(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return N2(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(Loe,u,c)(d):d===45||d===95||Kn(d)?(a=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return a&&i&&Zn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function $oe(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!lR.call(r,r.previous)||u6(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Moe,e.attempt(rR,e.attempt(iR,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Foe(e,t,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&cR.call(r,r.previous)&&!u6(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Zn(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):n(d)}function c(d){return d===null||Ih(d)||It(d)||il(d)||Wm(d)?n(d):e.attempt(rR,e.attempt(iR,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Boe(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function zoe(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(aR,l,s)(c):c===null||It(c)||il(c)||c!==45&&Wm(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function Uoe(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Goe={tokenize:Zoe,partial:!0};function Voe(){return{document:{[91]:{tokenize:Yoe,continuation:{tokenize:Xoe},exit:Qoe}},text:{[91]:{tokenize:qoe},[93]:{add:"after",tokenize:Koe,resolveTo:Woe}}}}function Koe(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=Ii(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Woe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function qoe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||It(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Ii(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return It(d)||(o=!0),a++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function Yoe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(m)}function u(m){if(o>999||m===93&&!s||m===null||m===91||It(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return a=Ii(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return It(m)||(s=!0),o++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),o++,u):u(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),lt(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function Xoe(e,t,n){return e.check(w0,t,e.attempt(Goe,t,n))}function Qoe(e){e.exit("gfmFootnoteDefinition")}function Zoe(e,t,n){const r=this;return lt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Joe(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l1?l(m):(o.consume(m),d++,h);if(d<2&&!n)return l(m);const b=o.exit("strikethroughSequenceTemporary"),p=Mh(m);return b._open=!p||p===2&&!!g,b._close=!g||g===2&&!!p,s(m)}}}class ese{constructor(){this.map=[]}add(t,n,r){tse(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function tse(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const K=r.events[X][1].type;if(K==="lineEnding"||K==="linePrefix")X--;else break}const Z=X>-1?r.events[X][1].type:null,Q=Z==="tableHead"||Z==="tableRow"?N:l;return Q===N&&r.parser.lazy[r.now().line]?n(L):Q(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),u(L)}function u(L){return L===null?n(L):Be(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),h):n(L):ut(L)?lt(e,u,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||It(L)?(e.exit("data"),u(L)):(e.consume(L),L===92?f:d)}function f(L){return L===92||L===124?(e.consume(L),d):d(L)}function h(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),o=!1,ut(L)?lt(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):m(L))}function m(L){return L===45||L===58?b(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),g):R(L)}function g(L){return ut(L)?lt(e,b,"whitespace")(L):b(L)}function b(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),p):L===45?(a+=1,p(L)):L===null||Be(L)?C(L):R(L)}function p(L){return L===45?(e.enter("tableDelimiterFiller"),v(L)):R(L)}function v(L){return L===45?(e.consume(L),v):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(L))}function T(L){return ut(L)?lt(e,C,"whitespace")(L):C(L)}function C(L){return L===124?m(L):L===null||Be(L)?!o||i!==a?R(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):R(L)}function R(L){return n(L)}function N(L){return e.enter("tableRow"),O(L)}function O(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),O):L===null||Be(L)?(e.exit("tableRow"),t(L)):ut(L)?lt(e,O,"whitespace")(L):(e.enter("data"),$(L))}function $(L){return L===null||L===124||It(L)?(e.exit("data"),O(L)):(e.consume(L),L===92?M:$)}function M(L){return L===92||L===124?(e.consume(L),$):$(L)}}function ase(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const f=new ese;for(;++nn[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Gl(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function rE(e,t,n,r,i){const a=[],o=Gl(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Gl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ose={tokenize:lse},sse={text:{[91]:ose}};function lse(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return It(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Be(l)?t(l):ut(l)?e.check({tokenize:cse},t,n)(l):n(l)}}function cse(e,t,n){return lt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function use(e){return LN([Doe,Voe(),Joe(e),rse,sse])}function iE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Zg="phrasing",Jg=["autolink","link","image","label"],dse={transforms:[yse],enter:{literalAutolink:hse,literalAutolinkEmail:e4,literalAutolinkHttp:e4,literalAutolinkWww:e4},exit:{literalAutolink:vse,literalAutolinkEmail:gse,literalAutolinkHttp:mse,literalAutolinkWww:pse}},fse={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Zg,notInConstruct:Jg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Zg,notInConstruct:Jg},{character:":",before:"[ps]",after:"\\/",inConstruct:Zg,notInConstruct:Jg}]};function hse(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function e4(e){this.config.enter.autolinkProtocol.call(this,e)}function mse(e){this.config.exit.autolinkProtocol.call(this,e)}function pse(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function gse(e){this.config.exit.autolinkEmail.call(this,e)}function vse(e){this.exit(e)}function yse(e){nR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bse],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ese]],{ignore:["link","linkReference"]})}function bse(e,t,n,r,i){let a="";if(!dR(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Tse(n)))return!1;const o=xse(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Ese(e,t,n,r){return!dR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Tse(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xse(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=iE(e,"(");let a=iE(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function dR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||il(n)||Wm(n))&&(!t||n!==47)}function fR(e){return e.label||!e.identifier?e.label||"":VN(e.identifier)}function _se(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s - -`}return` - -`}const Sse=/\r?\n|\r/g;function Cse(e,t){const n=[];let r=0,i=0,a;for(;a=Sse.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function d6(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ase(e,t){return aE(e,t.inConstruct,!0)&&!aE(e,t.notInConstruct,!1)}function aE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||u+10?" ":"")),i.shift(4),a+=i.move(Cse(_se(e,n,i.current()),Use)),o(),a}function Use(e,t,n){return t===0?e:(n?"":" ")+e}function mR(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&(s==="\r"||s===` -`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Hse=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];pR.peek=Wse;const jse={canContainEols:["delete"],enter:{strikethrough:Vse},exit:{strikethrough:Kse}},Gse={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hse}],handlers:{delete:pR}};function Vse(e){this.enter({type:"delete",children:[]},e)}function Kse(e){this.exit(e)}function pR(e,t,n,r){const i=R0(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=mR(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Wse(){return"~"}gR.peek=qse;function gR(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++al&&(l=e[c].length);++bs[b])&&(s[b]=v)}m.push(p)}a[c]=m,o[c]=g}let u=-1;if(typeof n=="object"&&"length"in n)for(;++us[u]&&(s[u]=p),f[u]=p),d[u]=v}a.splice(1,0,d),o.splice(1,0,f),c=-1;const h=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function ele(e){this.exit(e),this.setData("inTable")}function tle(e){this.enter({type:"tableRow",children:[]},e)}function t4(e){this.exit(e)}function lE(e){this.enter({type:"tableCell",children:[]},e)}function nle(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,rle));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function rle(e,t){return t==="|"?t:e}function ile(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:l,inlineCode:f}};function o(h,m,g,b){return c(u(h,g,b),h.align)}function s(h,m,g,b){const p=d(h,g,b),v=c([p]);return v.slice(0,v.indexOf(` -`))}function l(h,m,g,b){const p=g.enter("tableCell"),v=g.enter("phrasing"),T=mR(h,g,{...b,before:a,after:a});return v(),p(),T}function c(h,m){return Yse(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(h,m,g){const b=h.children;let p=-1;const v=[],T=m.enter("table");for(;++p-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,h){return f?(h?"":" ".repeat(o))+d:(h?a:a+" ".repeat(o-a.length))+d}}const lle={exit:{taskListCheckValueChecked:cE,taskListCheckValueUnchecked:cE,paragraph:ule}},cle={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dle}};function cE(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function ule(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++ao&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function _le(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.meta=l}function r(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c,this.setData("mathFlowInside")}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},l),this.buffer()}function o(l){const c=this.resume(),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function wle(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,o,s,l){const c=a.value||"",u=R0(l),d="$".repeat(Math.max(xle(c,"$")+1,2)),f=s.enter("mathFlow");let h=u.move(d);if(a.meta){const m=s.enter("mathFlowMeta");h+=u.move(f6(s,a.meta,{before:h,after:` -`,encode:["$"],...u.current()})),m()}return h+=u.move(` -`),c&&(h+=u.move(c+` -`)),h+=u.move(d),f(),h}function r(a,o,s){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d=55296&&e<=57343};zi.isSurrogatePair=function(e){return e>=56320&&e<=57343};zi.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};zi.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};zi.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Cle.indexOf(e)>-1};var h6={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Vl=zi,n4=h6,Es=Vl.CODE_POINTS,Ale=65536;let Nle=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ale}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Vl.isSurrogatePair(n))return this.pos++,this._addGap(),Vl.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Es.EOF;return this._err(n4.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Es.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Es.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Es.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Es.LINE_FEED):(this.skipNextNewLine=!1,Vl.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Es.LINE_FEED||t===Es.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Vl.isControlCodePoint(t)?this._err(n4.controlCharacterInInputStream):Vl.isUndefinedCodePoint(t)&&this._err(n4.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var kle=Nle,Ole=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Rle=kle,Nt=zi,zs=Ole,se=h6,U=Nt.CODE_POINTS,Ts=Nt.CODE_POINT_SEQUENCES,Ile={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},vR=1,yR=2,bR=4,Mle=vR|yR|bR,ct="DATA_STATE",Kl="RCDATA_STATE",Uu="RAWTEXT_STATE",Ra="SCRIPT_DATA_STATE",ER="PLAINTEXT_STATE",dE="TAG_OPEN_STATE",fE="END_TAG_OPEN_STATE",r4="TAG_NAME_STATE",hE="RCDATA_LESS_THAN_SIGN_STATE",mE="RCDATA_END_TAG_OPEN_STATE",pE="RCDATA_END_TAG_NAME_STATE",gE="RAWTEXT_LESS_THAN_SIGN_STATE",vE="RAWTEXT_END_TAG_OPEN_STATE",yE="RAWTEXT_END_TAG_NAME_STATE",bE="SCRIPT_DATA_LESS_THAN_SIGN_STATE",EE="SCRIPT_DATA_END_TAG_OPEN_STATE",TE="SCRIPT_DATA_END_TAG_NAME_STATE",xE="SCRIPT_DATA_ESCAPE_START_STATE",_E="SCRIPT_DATA_ESCAPE_START_DASH_STATE",yi="SCRIPT_DATA_ESCAPED_STATE",wE="SCRIPT_DATA_ESCAPED_DASH_STATE",i4="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",kd="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",SE="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",CE="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",AE="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",wa="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",NE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",kE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Od="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",OE="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Gi="BEFORE_ATTRIBUTE_NAME_STATE",Rd="ATTRIBUTE_NAME_STATE",a4="AFTER_ATTRIBUTE_NAME_STATE",o4="BEFORE_ATTRIBUTE_VALUE_STATE",Id="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Md="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Ld="ATTRIBUTE_VALUE_UNQUOTED_STATE",s4="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",vo="SELF_CLOSING_START_TAG_STATE",Cu="BOGUS_COMMENT_STATE",RE="MARKUP_DECLARATION_OPEN_STATE",IE="COMMENT_START_STATE",ME="COMMENT_START_DASH_STATE",yo="COMMENT_STATE",LE="COMMENT_LESS_THAN_SIGN_STATE",DE="COMMENT_LESS_THAN_SIGN_BANG_STATE",PE="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",$E="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Dd="COMMENT_END_DASH_STATE",Pd="COMMENT_END_STATE",FE="COMMENT_END_BANG_STATE",BE="DOCTYPE_STATE",$d="BEFORE_DOCTYPE_NAME_STATE",Fd="DOCTYPE_NAME_STATE",zE="AFTER_DOCTYPE_NAME_STATE",UE="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",HE="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",l4="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",c4="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",u4="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",jE="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",GE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",VE="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Au="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Nu="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",d4="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Sa="BOGUS_DOCTYPE_STATE",Bd="CDATA_SECTION_STATE",KE="CDATA_SECTION_BRACKET_STATE",WE="CDATA_SECTION_END_STATE",Pl="CHARACTER_REFERENCE_STATE",qE="NAMED_CHARACTER_REFERENCE_STATE",YE="AMBIGUOS_AMPERSAND_STATE",XE="NUMERIC_CHARACTER_REFERENCE_STATE",QE="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ZE="DECIMAL_CHARACTER_REFERENCE_START_STATE",JE="HEXADEMICAL_CHARACTER_REFERENCE_STATE",eT="DECIMAL_CHARACTER_REFERENCE_STATE",ku="NUMERIC_CHARACTER_REFERENCE_END_STATE";function zt(e){return e===U.SPACE||e===U.LINE_FEED||e===U.TABULATION||e===U.FORM_FEED}function o1(e){return e>=U.DIGIT_0&&e<=U.DIGIT_9}function bi(e){return e>=U.LATIN_CAPITAL_A&&e<=U.LATIN_CAPITAL_Z}function Os(e){return e>=U.LATIN_SMALL_A&&e<=U.LATIN_SMALL_Z}function _o(e){return Os(e)||bi(e)}function f4(e){return _o(e)||o1(e)}function TR(e){return e>=U.LATIN_CAPITAL_A&&e<=U.LATIN_CAPITAL_F}function xR(e){return e>=U.LATIN_SMALL_A&&e<=U.LATIN_SMALL_F}function Lle(e){return o1(e)||TR(e)||xR(e)}function Tf(e){return e+32}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function bo(e){return String.fromCharCode(Tf(e))}function tT(e,t){const n=zs[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=zs[a];if(ot)i=a-1;else return zs[a+n]}return-1}let mi=class ur{constructor(){this.preprocessor=new Rle,this.tokenQueue=[],this.allowCDATA=!1,this.state=ct,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:ur.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,l=n,c;for(;s0&&(l=this._consume(),i++),l===U.EOF){a=!1;break}if(c=t[s],l!==c&&(r||l!==Tf(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Ts.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(se.endTagWithAttributes),t.selfClosing&&this._err(se.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=ur.CHARACTER_TOKEN;zt(t)?n=ur.WHITESPACE_CHARACTER_TOKEN:t===U.NULL&&(n=ur.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,tn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=zs[i],o=a")):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.state=yi,this._emitChars(Nt.REPLACEMENT_CHARACTER)):t===U.EOF?(this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=yi,this._emitCodePoint(t))}[kd](t){t===U.SOLIDUS?(this.tempBuff=[],this.state=SE):_o(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(AE)):(this._emitChars("<"),this._reconsumeInState(yi))}[SE](t){_o(t)?(this._createEndTagToken(),this._reconsumeInState(CE)):(this._emitChars("")):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.state=wa,this._emitChars(Nt.REPLACEMENT_CHARACTER)):t===U.EOF?(this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=wa,this._emitCodePoint(t))}[Od](t){t===U.SOLIDUS?(this.tempBuff=[],this.state=OE,this._emitChars("/")):this._reconsumeInState(wa)}[OE](t){zt(t)||t===U.SOLIDUS||t===U.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?yi:wa,this._emitCodePoint(t)):bi(t)?(this.tempBuff.push(Tf(t)),this._emitCodePoint(t)):Os(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(wa)}[Gi](t){zt(t)||(t===U.SOLIDUS||t===U.GREATER_THAN_SIGN||t===U.EOF?this._reconsumeInState(a4):t===U.EQUALS_SIGN?(this._err(se.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Rd):(this._createAttr(""),this._reconsumeInState(Rd)))}[Rd](t){zt(t)||t===U.SOLIDUS||t===U.GREATER_THAN_SIGN||t===U.EOF?(this._leaveAttrName(a4),this._unconsume()):t===U.EQUALS_SIGN?this._leaveAttrName(o4):bi(t)?this.currentAttr.name+=bo(t):t===U.QUOTATION_MARK||t===U.APOSTROPHE||t===U.LESS_THAN_SIGN?(this._err(se.unexpectedCharacterInAttributeName),this.currentAttr.name+=tn(t)):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.name+=Nt.REPLACEMENT_CHARACTER):this.currentAttr.name+=tn(t)}[a4](t){zt(t)||(t===U.SOLIDUS?this.state=vo:t===U.EQUALS_SIGN?this.state=o4:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Rd)))}[o4](t){zt(t)||(t===U.QUOTATION_MARK?this.state=Id:t===U.APOSTROPHE?this.state=Md:t===U.GREATER_THAN_SIGN?(this._err(se.missingAttributeValue),this.state=ct,this._emitCurrentToken()):this._reconsumeInState(Ld))}[Id](t){t===U.QUOTATION_MARK?this.state=s4:t===U.AMPERSAND?(this.returnState=Id,this.state=Pl):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tn(t)}[Md](t){t===U.APOSTROPHE?this.state=s4:t===U.AMPERSAND?(this.returnState=Md,this.state=Pl):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tn(t)}[Ld](t){zt(t)?this._leaveAttrValue(Gi):t===U.AMPERSAND?(this.returnState=Ld,this.state=Pl):t===U.GREATER_THAN_SIGN?(this._leaveAttrValue(ct),this._emitCurrentToken()):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=Nt.REPLACEMENT_CHARACTER):t===U.QUOTATION_MARK||t===U.APOSTROPHE||t===U.LESS_THAN_SIGN||t===U.EQUALS_SIGN||t===U.GRAVE_ACCENT?(this._err(se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=tn(t)):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tn(t)}[s4](t){zt(t)?this._leaveAttrValue(Gi):t===U.SOLIDUS?this._leaveAttrValue(vo):t===U.GREATER_THAN_SIGN?(this._leaveAttrValue(ct),this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._err(se.missingWhitespaceBetweenAttributes),this._reconsumeInState(Gi))}[vo](t){t===U.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._err(se.unexpectedSolidusInTag),this._reconsumeInState(Gi))}[Cu](t){t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.data+=Nt.REPLACEMENT_CHARACTER):this.currentToken.data+=tn(t)}[RE](t){this._consumeSequenceIfMatch(Ts.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=IE):this._consumeSequenceIfMatch(Ts.DOCTYPE_STRING,t,!1)?this.state=BE:this._consumeSequenceIfMatch(Ts.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Bd:(this._err(se.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Cu):this._ensureHibernation()||(this._err(se.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Cu))}[IE](t){t===U.HYPHEN_MINUS?this.state=ME:t===U.GREATER_THAN_SIGN?(this._err(se.abruptClosingOfEmptyComment),this.state=ct,this._emitCurrentToken()):this._reconsumeInState(yo)}[ME](t){t===U.HYPHEN_MINUS?this.state=Pd:t===U.GREATER_THAN_SIGN?(this._err(se.abruptClosingOfEmptyComment),this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(yo))}[yo](t){t===U.HYPHEN_MINUS?this.state=Dd:t===U.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=LE):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.data+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=tn(t)}[LE](t){t===U.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=DE):t===U.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(yo)}[DE](t){t===U.HYPHEN_MINUS?this.state=PE:this._reconsumeInState(yo)}[PE](t){t===U.HYPHEN_MINUS?this.state=$E:this._reconsumeInState(Dd)}[$E](t){t!==U.GREATER_THAN_SIGN&&t!==U.EOF&&this._err(se.nestedComment),this._reconsumeInState(Pd)}[Dd](t){t===U.HYPHEN_MINUS?this.state=Pd:t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(yo))}[Pd](t){t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EXCLAMATION_MARK?this.state=FE:t===U.HYPHEN_MINUS?this.currentToken.data+="-":t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(yo))}[FE](t){t===U.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Dd):t===U.GREATER_THAN_SIGN?(this._err(se.incorrectlyClosedComment),this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(yo))}[BE](t){zt(t)?this.state=$d:t===U.GREATER_THAN_SIGN?this._reconsumeInState($d):t===U.EOF?(this._err(se.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingWhitespaceBeforeDoctypeName),this._reconsumeInState($d))}[$d](t){zt(t)||(bi(t)?(this._createDoctypeToken(bo(t)),this.state=Fd):t===U.NULL?(this._err(se.unexpectedNullCharacter),this._createDoctypeToken(Nt.REPLACEMENT_CHARACTER),this.state=Fd):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(tn(t)),this.state=Fd))}[Fd](t){zt(t)?this.state=zE:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):bi(t)?this.currentToken.name+=bo(t):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.name+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=tn(t)}[zE](t){zt(t)||(t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Ts.PUBLIC_STRING,t,!1)?this.state=UE:this._consumeSequenceIfMatch(Ts.SYSTEM_STRING,t,!1)?this.state=GE:this._ensureHibernation()||(this._err(se.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[UE](t){zt(t)?this.state=HE:t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=l4):t===U.APOSTROPHE?(this._err(se.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=c4):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa))}[HE](t){zt(t)||(t===U.QUOTATION_MARK?(this.currentToken.publicId="",this.state=l4):t===U.APOSTROPHE?(this.currentToken.publicId="",this.state=c4):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[l4](t){t===U.QUOTATION_MARK?this.state=u4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.publicId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tn(t)}[c4](t){t===U.APOSTROPHE?this.state=u4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.publicId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tn(t)}[u4](t){zt(t)?this.state=jE:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Nu):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa))}[jE](t){zt(t)||(t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this.currentToken.systemId="",this.state=Nu):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[GE](t){zt(t)?this.state=VE:t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Nu):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa))}[VE](t){zt(t)||(t===U.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this.currentToken.systemId="",this.state=Nu):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[Au](t){t===U.QUOTATION_MARK?this.state=d4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.systemId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tn(t)}[Nu](t){t===U.APOSTROPHE?this.state=d4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.systemId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tn(t)}[d4](t){zt(t)||(t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Sa)))}[Sa](t){t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.NULL?this._err(se.unexpectedNullCharacter):t===U.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Bd](t){t===U.RIGHT_SQUARE_BRACKET?this.state=KE:t===U.EOF?(this._err(se.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[KE](t){t===U.RIGHT_SQUARE_BRACKET?this.state=WE:(this._emitChars("]"),this._reconsumeInState(Bd))}[WE](t){t===U.GREATER_THAN_SIGN?this.state=ct:t===U.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Bd))}[Pl](t){this.tempBuff=[U.AMPERSAND],t===U.NUMBER_SIGN?(this.tempBuff.push(t),this.state=XE):f4(t)?this._reconsumeInState(qE):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[qE](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[U.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===U.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(se.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=YE}[YE](t){f4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=tn(t):this._emitCodePoint(t):(t===U.SEMICOLON&&this._err(se.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[XE](t){this.charRefCode=0,t===U.LATIN_SMALL_X||t===U.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=QE):this._reconsumeInState(ZE)}[QE](t){Lle(t)?this._reconsumeInState(JE):(this._err(se.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ZE](t){o1(t)?this._reconsumeInState(eT):(this._err(se.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[JE](t){TR(t)?this.charRefCode=this.charRefCode*16+t-55:xR(t)?this.charRefCode=this.charRefCode*16+t-87:o1(t)?this.charRefCode=this.charRefCode*16+t-48:t===U.SEMICOLON?this.state=ku:(this._err(se.missingSemicolonAfterCharacterReference),this._reconsumeInState(ku))}[eT](t){o1(t)?this.charRefCode=this.charRefCode*10+t-48:t===U.SEMICOLON?this.state=ku:(this._err(se.missingSemicolonAfterCharacterReference),this._reconsumeInState(ku))}[ku](){if(this.charRefCode===U.NULL)this._err(se.nullCharacterReference),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(se.characterReferenceOutsideUnicodeRange),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(Nt.isSurrogate(this.charRefCode))this._err(se.surrogateCharacterReference),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(Nt.isUndefinedCodePoint(this.charRefCode))this._err(se.noncharacterCharacterReference);else if(Nt.isControlCodePoint(this.charRefCode)||this.charRefCode===U.CARRIAGE_RETURN){this._err(se.controlCharacterReference);const t=Ile[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};mi.CHARACTER_TOKEN="CHARACTER_TOKEN";mi.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";mi.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";mi.START_TAG_TOKEN="START_TAG_TOKEN";mi.END_TAG_TOKEN="END_TAG_TOKEN";mi.COMMENT_TOKEN="COMMENT_TOKEN";mi.DOCTYPE_TOKEN="DOCTYPE_TOKEN";mi.EOF_TOKEN="EOF_TOKEN";mi.HIBERNATION_TOKEN="HIBERNATION_TOKEN";mi.MODE={DATA:ct,RCDATA:Kl,RAWTEXT:Uu,SCRIPT_DATA:Ra,PLAINTEXT:ER};mi.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var gp=mi,Ui={};const h4=Ui.NAMESPACES={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/"};Ui.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Ui.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ve=Ui.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Ui.SPECIAL_ELEMENTS={[h4.HTML]:{[ve.ADDRESS]:!0,[ve.APPLET]:!0,[ve.AREA]:!0,[ve.ARTICLE]:!0,[ve.ASIDE]:!0,[ve.BASE]:!0,[ve.BASEFONT]:!0,[ve.BGSOUND]:!0,[ve.BLOCKQUOTE]:!0,[ve.BODY]:!0,[ve.BR]:!0,[ve.BUTTON]:!0,[ve.CAPTION]:!0,[ve.CENTER]:!0,[ve.COL]:!0,[ve.COLGROUP]:!0,[ve.DD]:!0,[ve.DETAILS]:!0,[ve.DIR]:!0,[ve.DIV]:!0,[ve.DL]:!0,[ve.DT]:!0,[ve.EMBED]:!0,[ve.FIELDSET]:!0,[ve.FIGCAPTION]:!0,[ve.FIGURE]:!0,[ve.FOOTER]:!0,[ve.FORM]:!0,[ve.FRAME]:!0,[ve.FRAMESET]:!0,[ve.H1]:!0,[ve.H2]:!0,[ve.H3]:!0,[ve.H4]:!0,[ve.H5]:!0,[ve.H6]:!0,[ve.HEAD]:!0,[ve.HEADER]:!0,[ve.HGROUP]:!0,[ve.HR]:!0,[ve.HTML]:!0,[ve.IFRAME]:!0,[ve.IMG]:!0,[ve.INPUT]:!0,[ve.LI]:!0,[ve.LINK]:!0,[ve.LISTING]:!0,[ve.MAIN]:!0,[ve.MARQUEE]:!0,[ve.MENU]:!0,[ve.META]:!0,[ve.NAV]:!0,[ve.NOEMBED]:!0,[ve.NOFRAMES]:!0,[ve.NOSCRIPT]:!0,[ve.OBJECT]:!0,[ve.OL]:!0,[ve.P]:!0,[ve.PARAM]:!0,[ve.PLAINTEXT]:!0,[ve.PRE]:!0,[ve.SCRIPT]:!0,[ve.SECTION]:!0,[ve.SELECT]:!0,[ve.SOURCE]:!0,[ve.STYLE]:!0,[ve.SUMMARY]:!0,[ve.TABLE]:!0,[ve.TBODY]:!0,[ve.TD]:!0,[ve.TEMPLATE]:!0,[ve.TEXTAREA]:!0,[ve.TFOOT]:!0,[ve.TH]:!0,[ve.THEAD]:!0,[ve.TITLE]:!0,[ve.TR]:!0,[ve.TRACK]:!0,[ve.UL]:!0,[ve.WBR]:!0,[ve.XMP]:!0},[h4.MATHML]:{[ve.MI]:!0,[ve.MO]:!0,[ve.MN]:!0,[ve.MS]:!0,[ve.MTEXT]:!0,[ve.ANNOTATION_XML]:!0},[h4.SVG]:{[ve.TITLE]:!0,[ve.FOREIGN_OBJECT]:!0,[ve.DESC]:!0}};const _R=Ui,ye=_R.TAG_NAMES,kt=_R.NAMESPACES;function nT(e){switch(e.length){case 1:return e===ye.P;case 2:return e===ye.RB||e===ye.RP||e===ye.RT||e===ye.DD||e===ye.DT||e===ye.LI;case 3:return e===ye.RTC;case 6:return e===ye.OPTION;case 8:return e===ye.OPTGROUP}return!1}function Dle(e){switch(e.length){case 1:return e===ye.P;case 2:return e===ye.RB||e===ye.RP||e===ye.RT||e===ye.DD||e===ye.DT||e===ye.LI||e===ye.TD||e===ye.TH||e===ye.TR;case 3:return e===ye.RTC;case 5:return e===ye.TBODY||e===ye.TFOOT||e===ye.THEAD;case 6:return e===ye.OPTION;case 7:return e===ye.CAPTION;case 8:return e===ye.OPTGROUP||e===ye.COLGROUP}return!1}function zd(e,t){switch(e.length){case 2:if(e===ye.TD||e===ye.TH)return t===kt.HTML;if(e===ye.MI||e===ye.MO||e===ye.MN||e===ye.MS)return t===kt.MATHML;break;case 4:if(e===ye.HTML)return t===kt.HTML;if(e===ye.DESC)return t===kt.SVG;break;case 5:if(e===ye.TABLE)return t===kt.HTML;if(e===ye.MTEXT)return t===kt.MATHML;if(e===ye.TITLE)return t===kt.SVG;break;case 6:return(e===ye.APPLET||e===ye.OBJECT)&&t===kt.HTML;case 7:return(e===ye.CAPTION||e===ye.MARQUEE)&&t===kt.HTML;case 8:return e===ye.TEMPLATE&&t===kt.HTML;case 13:return e===ye.FOREIGN_OBJECT&&t===kt.SVG;case 14:return e===ye.ANNOTATION_XML&&t===kt.MATHML}return!1}let Ple=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===ye.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===kt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===kt.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ye.H1||t===ye.H2||t===ye.H3||t===ye.H4||t===ye.H5||t===ye.H6&&n===kt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ye.TD||t===ye.TH&&n===kt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==ye.TABLE&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==ye.TBODY&&this.currentTagName!==ye.TFOOT&&this.currentTagName!==ye.THEAD&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==ye.TR&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===ye.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===ye.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===kt.HTML)return!0;if(zd(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===ye.H1||n===ye.H2||n===ye.H3||n===ye.H4||n===ye.H5||n===ye.H6)&&r===kt.HTML)return!0;if(zd(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===kt.HTML)return!0;if((r===ye.UL||r===ye.OL)&&i===kt.HTML||zd(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===kt.HTML)return!0;if(r===ye.BUTTON&&i===kt.HTML||zd(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===kt.HTML){if(r===t)return!0;if(r===ye.TABLE||r===ye.TEMPLATE||r===ye.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===kt.HTML){if(n===ye.TBODY||n===ye.THEAD||n===ye.TFOOT)return!0;if(n===ye.TABLE||n===ye.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===kt.HTML){if(r===t)return!0;if(r!==ye.OPTION&&r!==ye.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;nT(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Dle(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;nT(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var $le=Ple;const Ud=3;let m6=class wo{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=Ud){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===wo.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=Ud-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:wo.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:wo.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:wo.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===wo.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===wo.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===wo.ELEMENT_ENTRY&&r.element===t)return r}return null}};m6.MARKER_ENTRY="MARKER_ENTRY";m6.ELEMENT_ENTRY="ELEMENT_ENTRY";var Fle=m6;let wR=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};wR.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=m4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var CR=Hle;const jle=co;let Gle=class extends jle{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var Vle=Gle;const p4=co,iT=gp,Kle=CR,Wle=Vle,qle=Ui,g4=qle.TAG_NAMES;let Yle=class extends p4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===iT.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=p4.install(this.tokenizer,Kle);t.posTracker=a.posTracker,p4.install(this.openElements,Wle,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===iT.END_TAG_TOKEN&&(r.tagName===g4.HTML||r.tagName===g4.BODY&&this.openElements.hasInScope(g4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},vp={};const{DOCUMENT_MODE:$l}=Ui,kR="html",vce="about:legacy-compat",yce="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",OR=["+//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//"],bce=OR.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Ece=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],RR=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Tce=RR.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function oT(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function sT(e,t){for(let n=0;n-1)return $l.QUIRKS;let r=t===null?bce:OR;if(sT(n,r))return $l.QUIRKS;if(r=t===null?RR:Tce,sT(n,r))return $l.LIMITED_QUIRKS}return $l.NO_QUIRKS};vp.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+oT(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+oT(n)),r};var ps={};const v4=gp,g6=Ui,He=g6.TAG_NAMES,Rn=g6.NAMESPACES,xf=g6.ATTRS,lT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xce="definitionurl",_ce="definitionURL",wce={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Sce={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Rn.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Rn.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Rn.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Rn.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Rn.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Rn.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Rn.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Rn.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Rn.XML},"xml:space":{prefix:"xml",name:"space",namespace:Rn.XML},xmlns:{prefix:"",name:"xmlns",namespace:Rn.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Rn.XMLNS}},Cce=ps.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Ace={[He.B]:!0,[He.BIG]:!0,[He.BLOCKQUOTE]:!0,[He.BODY]:!0,[He.BR]:!0,[He.CENTER]:!0,[He.CODE]:!0,[He.DD]:!0,[He.DIV]:!0,[He.DL]:!0,[He.DT]:!0,[He.EM]:!0,[He.EMBED]:!0,[He.H1]:!0,[He.H2]:!0,[He.H3]:!0,[He.H4]:!0,[He.H5]:!0,[He.H6]:!0,[He.HEAD]:!0,[He.HR]:!0,[He.I]:!0,[He.IMG]:!0,[He.LI]:!0,[He.LISTING]:!0,[He.MENU]:!0,[He.META]:!0,[He.NOBR]:!0,[He.OL]:!0,[He.P]:!0,[He.PRE]:!0,[He.RUBY]:!0,[He.S]:!0,[He.SMALL]:!0,[He.SPAN]:!0,[He.STRONG]:!0,[He.STRIKE]:!0,[He.SUB]:!0,[He.SUP]:!0,[He.TABLE]:!0,[He.TT]:!0,[He.U]:!0,[He.UL]:!0,[He.VAR]:!0};ps.causesExit=function(e){const t=e.tagName;return t===He.FONT&&(v4.getTokenAttr(e,xf.COLOR)!==null||v4.getTokenAttr(e,xf.SIZE)!==null||v4.getTokenAttr(e,xf.FACE)!==null)?!0:Ace[t]};ps.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Bce[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=Tp;break}else if(!n&&i===S.HEAD){this.insertionMode=su;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?bp:yp;break}else if(n){this.insertionMode=la;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=b6;return}}this.insertionMode=y6}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===$e.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return wl.SPECIAL_ELEMENTS[r][n]}}var Hce=Uce;function jce(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ei(e,t),n}function Gce(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Vce(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=Fce;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=Kce(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Kce(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Wce(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===$e.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function qce(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function No(e,t){let n;for(let r=0;r<$ce&&(n=jce(e,t),!!n);r++){const i=Gce(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=Vce(e,i,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),Wce(e,o,a),qce(e,i,n)}}function dt(){}function Hd(e){e._err(Mn.misplacedDoctype)}function pn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function Yce(e,t){e._appendCommentNode(t,e.openElements.items[0])}function hT(e,t){e._appendCommentNode(t,e.document)}function dr(e,t){e._insertCharacters(t)}function Ou(e){e.stopped=!0}function Xce(e,t){e._setDocumentType(t);const n=t.forceQuirks?wl.DOCUMENT_MODE.QUIRKS:dT.getDocumentMode(t);dT.isConforming(t)||e._err(Mn.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v6}function Ru(e,t){e._err(Mn.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,wl.DOCUMENT_MODE.QUIRKS),e.insertionMode=v6,e._processToken(t)}function Qce(e,t){t.tagName===S.HTML?(e._insertElement(t,$e.HTML),e.insertionMode=yp):s1(e,t)}function Zce(e,t){const n=t.tagName;(n===S.HTML||n===S.HEAD||n===S.BODY||n===S.BR)&&s1(e,t)}function s1(e,t){e._insertFakeRootElement(),e.insertionMode=yp,e._processToken(t)}function Jce(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.HEAD?(e._insertElement(t,$e.HTML),e.headElement=e.openElements.current,e.insertionMode=su):l1(e,t)}function eue(e,t){const n=t.tagName;n===S.HEAD||n===S.BODY||n===S.HTML||n===S.BR?l1(e,t):e._err(Mn.endTagWithoutMatchingOpenElement)}function l1(e,t){e._insertFakeElement(S.HEAD),e.headElement=e.openElements.current,e.insertionMode=su,e._processToken(t)}function Sn(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META?(e._appendElement(t,$e.HTML),t.ackSelfClosing=!0):n===S.TITLE?e._switchToTextParsing(t,H.MODE.RCDATA):n===S.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,H.MODE.RAWTEXT):(e._insertElement(t,$e.HTML),e.insertionMode=DR):n===S.NOFRAMES||n===S.STYLE?e._switchToTextParsing(t,H.MODE.RAWTEXT):n===S.SCRIPT?e._switchToTextParsing(t,H.MODE.SCRIPT_DATA):n===S.TEMPLATE?(e._insertTemplate(t,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Gh,e._pushTmplInsertionMode(Gh)):n===S.HEAD?e._err(Mn.misplacedStartTagForHeadElement):c1(e,t)}function Sl(e,t){const n=t.tagName;n===S.HEAD?(e.openElements.pop(),e.insertionMode=bp):n===S.BODY||n===S.BR||n===S.HTML?c1(e,t):n===S.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Mn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Mn.endTagWithoutMatchingOpenElement)}function c1(e,t){e.openElements.pop(),e.insertionMode=bp,e._processToken(t)}function tue(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?Sn(e,t):n===S.NOSCRIPT?e._err(Mn.nestedNoscriptInHead):u1(e,t)}function nue(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=su):n===S.BR?u1(e,t):e._err(Mn.endTagWithoutMatchingOpenElement)}function u1(e,t){const n=t.type===H.EOF_TOKEN?Mn.openElementsLeftAfterEof:Mn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=su,e._processToken(t)}function rue(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BODY?(e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode=la):n===S.FRAMESET?(e._insertElement(t,$e.HTML),e.insertionMode=xp):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Mn.abandonedHeadElementChild),e.openElements.push(e.headElement),Sn(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Mn.misplacedStartTagForHeadElement):d1(e,t)}function iue(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?d1(e,t):n===S.TEMPLATE?Sl(e,t):e._err(Mn.endTagWithoutMatchingOpenElement)}function d1(e,t){e._insertFakeElement(S.BODY),e.insertionMode=la,e._processToken(t)}function xs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function aue(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function oue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function sue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$e.HTML),e.insertionMode=xp)}function Ca(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function lue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,$e.HTML)}function mT(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function cue(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),n||(e.formElement=e.openElements.current))}function uue(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function due(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.tokenizer.state=H.MODE.PLAINTEXT}function fue(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.framesetOk=!1}function hue(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(No(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fl(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function mue(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(No(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function pT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function pue(e,t){e.treeAdapter.getDocumentMode(e.document)!==wl.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode=Vn}function Wl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$e.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gue(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$e.HTML);const n=H.getTokenAttr(t,IR.TYPE);(!n||n.toLowerCase()!==MR)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function gT(e,t){e._appendElement(t,$e.HTML),t.ackSelfClosing=!0}function vue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,$e.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yue(e,t){t.tagName=S.IMG,Wl(e,t)}function bue(e,t){e._insertElement(t,$e.HTML),e.skipNextNewLine=!0,e.tokenizer.state=H.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=jh}function Eue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,H.MODE.RAWTEXT)}function Tue(e,t){e.framesetOk=!1,e._switchToTextParsing(t,H.MODE.RAWTEXT)}function vT(e,t){e._switchToTextParsing(t,H.MODE.RAWTEXT)}function xue(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode===Vn||e.insertionMode===Ep||e.insertionMode===ii||e.insertionMode===to||e.insertionMode===Tp?e.insertionMode=b6:e.insertionMode=y6}function yT(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML)}function bT(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$e.HTML)}function _ue(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,$e.HTML)}function wue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function Sue(e,t){e._reconstructActiveFormattingElements(),Zi.adjustTokenMathMLAttrs(t),Zi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,$e.MATHML):e._insertElement(t,$e.MATHML),t.ackSelfClosing=!0}function Cue(e,t){e._reconstructActiveFormattingElements(),Zi.adjustTokenSVGAttrs(t),Zi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,$e.SVG):e._insertElement(t,$e.SVG),t.ackSelfClosing=!0}function Wr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML)}function Cr(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Fl(e,t):n===S.P?Ca(e,t):n===S.A?hue(e,t):Wr(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Ca(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?lue(e,t):n===S.LI||n===S.DD||n===S.DT?uue(e,t):n===S.EM||n===S.TT?Fl(e,t):n===S.BR?Wl(e,t):n===S.HR?vue(e,t):n===S.RB?bT(e,t):n===S.RT||n===S.RP?_ue(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&Wr(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Ca(e,t):n===S.PRE?mT(e,t):n===S.BIG?Fl(e,t):n===S.IMG||n===S.WBR?Wl(e,t):n===S.XMP?Eue(e,t):n===S.SVG?Cue(e,t):n===S.RTC?bT(e,t):n!==S.COL&&Wr(e,t);break;case 4:n===S.HTML?aue(e,t):n===S.BASE||n===S.LINK||n===S.META?Sn(e,t):n===S.BODY?oue(e,t):n===S.MAIN||n===S.MENU?Ca(e,t):n===S.FORM?cue(e,t):n===S.CODE||n===S.FONT?Fl(e,t):n===S.NOBR?mue(e,t):n===S.AREA?Wl(e,t):n===S.MATH?Sue(e,t):n===S.MENU?wue(e,t):n!==S.HEAD&&Wr(e,t);break;case 5:n===S.STYLE||n===S.TITLE?Sn(e,t):n===S.ASIDE?Ca(e,t):n===S.SMALL?Fl(e,t):n===S.TABLE?pue(e,t):n===S.EMBED?Wl(e,t):n===S.INPUT?gue(e,t):n===S.PARAM||n===S.TRACK?gT(e,t):n===S.IMAGE?yue(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&Wr(e,t);break;case 6:n===S.SCRIPT?Sn(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ca(e,t):n===S.BUTTON?fue(e,t):n===S.STRIKE||n===S.STRONG?Fl(e,t):n===S.APPLET||n===S.OBJECT?pT(e,t):n===S.KEYGEN?Wl(e,t):n===S.SOURCE?gT(e,t):n===S.IFRAME?Tue(e,t):n===S.SELECT?xue(e,t):n===S.OPTION?yT(e,t):Wr(e,t);break;case 7:n===S.BGSOUND?Sn(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Ca(e,t):n===S.LISTING?mT(e,t):n===S.MARQUEE?pT(e,t):n===S.NOEMBED?vT(e,t):n!==S.CAPTION&&Wr(e,t);break;case 8:n===S.BASEFONT?Sn(e,t):n===S.FRAMESET?sue(e,t):n===S.FIELDSET?Ca(e,t):n===S.TEXTAREA?bue(e,t):n===S.TEMPLATE?Sn(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?vT(e,t):Wr(e,t):n===S.OPTGROUP?yT(e,t):n!==S.COLGROUP&&Wr(e,t);break;case 9:n===S.PLAINTEXT?due(e,t):Wr(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ca(e,t):Wr(e,t);break;default:Wr(e,t)}}function Aue(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=E6)}function Nue(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=E6,e._processToken(t))}function Eo(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function kue(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Oue(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Rue(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Iue(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Mue(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ET(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Lue(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ei(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function T6(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?No(e,t):n===S.P?Oue(e):Ei(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Eo(e,t):n===S.LI?Rue(e):n===S.DD||n===S.DT?Iue(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Mue(e):n===S.BR?Lue(e):n===S.EM||n===S.TT?No(e,t):Ei(e,t);break;case 3:n===S.BIG?No(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Eo(e,t):Ei(e,t);break;case 4:n===S.BODY?Aue(e):n===S.HTML?Nue(e,t):n===S.FORM?kue(e):n===S.CODE||n===S.FONT||n===S.NOBR?No(e,t):n===S.MAIN||n===S.MENU?Eo(e,t):Ei(e,t);break;case 5:n===S.ASIDE?Eo(e,t):n===S.SMALL?No(e,t):Ei(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Eo(e,t):n===S.APPLET||n===S.OBJECT?ET(e,t):n===S.STRIKE||n===S.STRONG?No(e,t):Ei(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Eo(e,t):n===S.MARQUEE?ET(e,t):Ei(e,t);break;case 8:n===S.FIELDSET?Eo(e,t):n===S.TEMPLATE?Sl(e,t):Ei(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Eo(e,t):Ei(e,t);break;default:Ei(e,t)}}function Aa(e,t){e.tmplInsertionModeStackTop>-1?HR(e,t):e.stopped=!0}function Due(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Pue(e,t){e._err(Mn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Na(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=PR,e._processToken(t)):Yr(e,t)}function $ue(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$e.HTML),e.insertionMode=Ep}function Fue(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$e.HTML),e.insertionMode=I0}function Bue(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=I0,e._processToken(t)}function zue(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$e.HTML),e.insertionMode=ii}function Uue(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ii,e._processToken(t)}function Hue(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function jue(e,t){const n=H.getTokenAttr(t,IR.TYPE);n&&n.toLowerCase()===MR?e._appendElement(t,$e.HTML):Yr(e,t),t.ackSelfClosing=!0}function Gue(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$e.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function x6(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?Uue(e,t):Yr(e,t);break;case 3:n===S.COL?Bue(e,t):Yr(e,t);break;case 4:n===S.FORM?Gue(e,t):Yr(e,t);break;case 5:n===S.TABLE?Hue(e,t):n===S.STYLE?Sn(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?zue(e,t):n===S.INPUT?jue(e,t):Yr(e,t);break;case 6:n===S.SCRIPT?Sn(e,t):Yr(e,t);break;case 7:n===S.CAPTION?$ue(e,t):Yr(e,t);break;case 8:n===S.COLGROUP?Fue(e,t):n===S.TEMPLATE?Sn(e,t):Yr(e,t);break;default:Yr(e,t)}}function _6(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Sl(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&Yr(e,t)}function Yr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Vue(e,t){e.pendingCharacterTokens.push(t)}function Kue(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Iu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function s1e(e,t){t.tagName===S.HTML?Cr(e,t):Kh(e,t)}function l1e(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=FR):Kh(e,t)}function Kh(e,t){e.insertionMode=la,e._processToken(t)}function c1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.FRAMESET?e._insertElement(t,$e.HTML):n===S.FRAME?(e._appendElement(t,$e.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&Sn(e,t)}function u1e(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=$R))}function d1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.NOFRAMES&&Sn(e,t)}function f1e(e,t){t.tagName===S.HTML&&(e.insertionMode=BR)}function h1e(e,t){t.tagName===S.HTML?Cr(e,t):_f(e,t)}function _f(e,t){e.insertionMode=la,e._processToken(t)}function m1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.NOFRAMES&&Sn(e,t)}function p1e(e,t){t.chars=Dce.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function g1e(e,t){e._insertCharacters(t),e.framesetOk=!1}function v1e(e,t){if(Zi.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$e.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$e.MATHML?Zi.adjustTokenMathMLAttrs(t):r===$e.SVG&&(Zi.adjustTokenSVGTagName(t),Zi.adjustTokenSVGAttrs(t)),Zi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function y1e(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$e.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const b1e=wr(Hce);function E1e(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:a};function i(o){let s=-1;if(typeof o=="number"&&o>-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,l=o&&o.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c{const L=O;if(L.value.stitch&&M!==null&&$!==null)return M.children[$]=L.value.stitch,$}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const O={nodeName:"template",tagName:"template",attrs:[],namespaceURI:qo.html,childNodes:[]},$={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:qo.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap($,O),i._pushTmplInsertionMode(P1e),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,a(e),N(),i._adoptNodes($.childNodes[0],M),M}function h(){const O=i.treeAdapter.createDocument();if(i._bootstrap(O,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,a(e),N(),O}function m(O){let $=-1;if(O)for(;++$WR(t,n,e)}function Q1e(e){const t=y.useRef(null);return x.jsxs("pre",{ref:t,className:"group relative mt-2 overflow-auto rounded bg-primary/90 p-2 text-primary-foreground",children:[x.jsx(ot,{title:"复制",variant:"secondary",className:"absolute right-0 mr-2 hidden h-6 w-6 rounded p-0 group-hover:flex",onClick:()=>{if(t.current){const n=t.current.innerText;J9(n),hn.success("已复制到剪贴板")}},children:x.jsx(Cw,{size:14})}),e.children]})}function Z1e(e){return x.jsx(yk,{remarkPlugins:[Sle,mle,Ioe],rehypePlugins:[X1e,Coe,[uie,{detect:!0,ignoreMissing:!0}]],components:{pre:Q1e},children:e.content})}const qR=({data:e,isCheckedMode:t=!1,isChecked:n=!1,isDownload:r=!1,onCheckedChange:i})=>{var d;const[{nickname:a,avatar:o}]=Fi(f=>[f.userInfo]),[s]=Zo(f=>[f.regenerateChat]),[l]=$i(f=>[f.appConfig]),c=()=>{J9(e.text),hn.success("已复制到剪贴板")},u=()=>e.status===Xi.START?x.jsx(qc,{className:"animate-spin",size:24}):e.status===Xi.ERROR?e.error:x.jsx(Z1e,{content:e.text});return x.jsxs("div",{className:"flex",children:[t&&x.jsx(Im,{checked:n,className:"ml-2 mt-4",onCheckedChange:i}),x.jsxs("div",{className:Bs("p-3 rounded h-fit flex gap-4 items-start w-full flex-1 mb-6 last-of-type:mb-0",{"flex-row-reverse":e.role===ka.USER}),children:[e.role===ka.USER?x.jsxs(P1,{className:"h-10 w-10",children:[x.jsx($1,{src:o||l.user_logo,alt:a}),x.jsx(wm,{children:(d=a.slice(0,1))==null?void 0:d.toUpperCase()})]}):x.jsx(P1,{className:"h-10 w-10",children:x.jsx($1,{src:l.web_logo})}),x.jsxs("div",{className:Bs("flex-1 items-start flex flex-col overflow-hidden",{"items-end":e.role===ka.USER}),children:[x.jsx("p",{className:"text-xs text-neutral-400",children:DQ(e.dateTime).format("YYYY-MM-DD HH:mm:ss")}),x.jsxs("div",{className:Bs("max-w-full flex mt-2 items-end gap-2",{"flex-row-reverse":e.role===ka.USER}),children:[x.jsx("div",{className:Bs("flex-1 p-3 rounded-md break-words overflow-hidden border",{"bg-primary text-primary-foreground hover:bg-primary/90":e.role===ka.USER,"bg-secondary text-secondary-foreground hover:bg-secondary/80 markdown-table":[ka.ASSISTANT,ka.SYSTEM].includes(e.role)&&e.status!==Xi.ERROR,"bg-destructive text-destructive-foreground":e.status===Xi.ERROR}),children:u()}),x.jsx("div",{className:"shrink-0 pb-1 text-sm",children:!r&&x.jsxs(x.Fragment,{children:[[ka.ASSISTANT].includes(e.role)&&x.jsx(CF,{className:"mb-1 hover:cursor-pointer",size:12,onClick:()=>s(e.requestId)}),x.jsx(Cw,{className:"hover:cursor-pointer",size:12,onClick:c})]})})]})]})]})]})},J1e=({messages:e,shareUrl:t})=>{const n=y.useRef(null),[r,i]=y.useState(!1),[a,o]=y.useState(""),s=bl(),[l]=Zo(d=>[d.currentConversation]),{isWeixinBrowser:c}=d0(),u=async()=>{setTimeout(async()=>{if(!n.current)return;const f=await(c?N8:lN)(n.current,{style:{opacity:"1"}});o(f)},300),i(!0)};return x.jsxs(x.Fragment,{children:[r&&Vc.createPortal(x.jsxs("div",{ref:n,className:"bg-background p-8",children:[x.jsx("div",{className:"min-h-[10rem]",children:e.map((d,f)=>x.jsx(qR,{data:d,isDownload:!0},f))}),x.jsxs("div",{className:"m-auto mt-10 flex flex-col items-center gap-2",children:[x.jsx(k8,{style:{width:"8rem",height:"8rem"},value:t}),x.jsx("div",{children:"扫一扫,马上体验"})]})]}),document.body),x.jsx(Lm,{open:r,onOpenChange:d=>i(d),children:x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsx(b0,{children:"对话海报"})}),x.jsx(x0,{children:x.jsx(dh,{className:"h-[30rem]",children:x.jsx("img",{src:a,alt:""})})}),s&&x.jsx(dh,{className:"text-center",children:"长按图片保存"}),x.jsxs(Dm,{children:[x.jsx(gA,{children:"取消"}),!s&&x.jsx(Pm,{onClick:()=>{hN.saveAs(a,`${l.title}.jpg`)},children:"下载"})]})]})}),x.jsxs(ot,{disabled:e.length===0,variant:"ghost",className:"flex w-32 gap-2",onClick:()=>{u()},children:[x.jsx(Aw,{size:20})," 生成图片"]})]})};let _T=-1;const e0e=({isDownload:e=!1,selectedMessagesIDs:t,onIsDownloadChange:n,onSelectMessagesIds:r})=>{const[i,a]=y.useState(""),[o,s,l,c,u,d]=Zo(O=>[O.sendUserMessage,O.isStream,O.clearCurrentConversation,O.stopStream,O.currentChatData(),O.setStream]),[{openid:f},h]=Fi(O=>[O.userInfo,O.isLogin()]),[m,g]=Zo(O=>[O.currentConversation,O.editConversation]),b=bl(),p=O=>{O.code==="Enter"&&!O.shiftKey&&i.replace(/\n/g,"")&&T()},v=Hr(),T=async()=>{if(!h){hn.error("请登录"),v("/login");return}u.length||g(m.uuid,{title:i}),o(i),a(""),setTimeout(()=>{var O;(O=C.current)==null||O.focus()},1e3)},C=y.useRef(null),R=y.useMemo(()=>u.filter(O=>t.includes(O.id)),[r]),N=y.useMemo(()=>u.map(O=>O.id),[u]);return y.useEffect(()=>{if(C.current){C.current.style.height="0px";const O=C.current.scrollHeight;C.current.style.height=O+4+"px"}},[C,i]),y.useEffect(()=>{d(!1)},[]),x.jsx("footer",{className:Bs("flex items-end gap-4 p-4",{"border-t items-center justify-between":e}),children:e?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Im,{checked:t.length===N.length,className:"mr-2",onCheckedChange:O=>{r(O?N:[])}}),"全选"]}),x.jsx(J1e,{messages:R,shareUrl:location.origin+`/chat?shareOpenId=${f}`}),x.jsx(ot,{variant:"destructive",onClick:()=>{n(!1)},children:"取消"})]}):x.jsxs(x.Fragment,{children:[x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsx(ot,{variant:"ghost",className:"h-9 w-9 p-0",children:x.jsx(Ow,{size:18})})}),x.jsxs(u0,{side:"top",align:"end",children:[x.jsxs(tl,{className:"flex items-center gap-2",onClick:()=>{confirm("你确定要清除所有的消息吗?")&&(l(),a(""))},children:[x.jsx(Rw,{size:16})," 清空消息"]}),x.jsxs(tl,{className:"flex items-center gap-2",onClick:()=>{n(!0)},children:[x.jsx(Aw,{size:16}),"对话海报"]})]})]}),x.jsxs("div",{className:"relative flex-1",children:[s&&x.jsx("div",{className:"absolute left-0 z-10 flex w-full justify-center",children:x.jsx(ot,{variant:"destructive",onClick:()=>c(),children:x.jsx(wF,{})})}),x.jsx(eN,{ref:C,className:Bs("h-10 max-h-[7rem] min-h-[20px] w-full flex-1 resize-none scroll-bar-none",{"blur-sm":s}),onKeyDown:p,disabled:s,value:i,placeholder:b?"来说点什么...":"来说点什么...(Shift + Enter = 换行)",onChange:O=>a(O.target.value)})]}),x.jsx(ot,{disabled:s||!i.replace(/\n/g,""),onClick:()=>{T()},children:s?x.jsx(qc,{className:"m-auto my-32 animate-spin"}):x.jsx(AF,{})})]})})},t0e=({isDownload:e,selectedMessagesIDs:t,onSelectMessagesIds:n})=>{const[r,i]=Zo(s=>[s.isStream,s.currentChatData()]),a=y.useRef(null),o=(s="smooth")=>{a.current&&a.current.scrollIntoView({behavior:s,block:"end"})};return y.useEffect(()=>{o("auto")},[]),y.useEffect(()=>{r?(o(),_T=setInterval(()=>{o()},1e3)):clearInterval(_T)},[r]),x.jsx("div",{className:"scroll-bar-none flex-1 overflow-y-auto overflow-x-hidden",children:x.jsxs("main",{className:"m-auto w-full max-w-screen-xl overflow-auto p-4",ref:a,children:[i.length===0&&x.jsxs("div",{className:"m-auto mt-2 w-fit text-center text-secondary-foreground",children:[x.jsx(dX,{className:"mr-1 inline-block w-10"}),"开始提问吧~"]}),i.map((s,l)=>x.jsx(qR,{data:s,isCheckedMode:e,isChecked:t.includes(s.id||""),onCheckedChange:c=>{n(c?t.concat(s.id):t.filter(u=>u!==s.id))}},l))]})})},n0e=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState([]);return y.useEffect(()=>{e||r([])},[e]),x.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[x.jsx(t0e,{isDownload:e,selectedMessagesIDs:n,onSelectMessagesIds:i=>r(i)}),x.jsx(e0e,{selectedMessagesIDs:n,isDownload:e,onIsDownloadChange:i=>t(i),onSelectMessagesIds:i=>r(i)})]})},r0e={getRoleList(){return Rt("chat-gpt-model?platform=1&is_all=true")}},f1=/^[a-z0-9]+(-[a-z0-9]+)*$/,_p=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:s};return t&&!Sf(c)?null:c}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!Sf(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:a};return t&&!Sf(s,n)?null:s}return null},Sf=(e,t)=>e?!!((e.provider===""||e.provider.match(f1))&&(t&&e.prefix===""||e.prefix.match(f1))&&e.name.match(f1)):!1,YR=Object.freeze({left:0,top:0,width:16,height:16}),Wh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),C6=Object.freeze({...YR,...Wh}),k2=Object.freeze({...C6,body:"",hidden:!1});function i0e(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function wT(e,t){const n=i0e(e,t);for(const r in k2)r in Wh?r in e&&!(r in n)&&(n[r]=Wh[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function a0e(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=r[o]&&r[o].parent,l=s&&a(s);l&&(i[o]=[s].concat(l))}return i[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function o0e(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=wT(r[s]||i[s],a)}return o(t),n.forEach(o),wT(e,a)}function XR(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=a0e(e);for(const i in r){const a=r[i];a&&(t(i,o0e(e,i,a)),n.push(i))}return n}const s0e={provider:"",aliases:{},not_found:{},...YR};function y4(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function QR(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!y4(e,s0e))return null;const n=t.icons;for(const i in n){const a=n[i];if(!i.match(f1)||typeof a.body!="string"||!y4(a,k2))return null}const r=t.aliases||Object.create(null);for(const i in r){const a=r[i],o=a.parent;if(!i.match(f1)||typeof o!="string"||!n[o]&&!r[o]||!y4(a,k2))return null}return t}const ST=Object.create(null);function l0e(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function al(e,t){const n=ST[e]||(ST[e]=Object.create(null));return n[t]||(n[t]=l0e(e,t))}function A6(e,t){return QR(t)?XR(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function c0e(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Y1=!1;function ZR(e){return typeof e=="boolean"&&(Y1=e),Y1}function u0e(e){const t=typeof e=="string"?_p(e,!0,Y1):e;if(t){const n=al(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function d0e(e,t){const n=_p(e,!0,Y1);if(!n)return!1;const r=al(n.provider,n.prefix);return c0e(r,n.name,t)}function f0e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Y1&&!t&&!e.prefix){let i=!1;return QR(e)&&(e.prefix="",XR(e,(a,o)=>{o&&d0e(a,o)&&(i=!0)})),i}const n=e.prefix;if(!Sf({provider:t,prefix:n,name:"a"}))return!1;const r=al(t,n);return!!A6(r,e)}const JR=Object.freeze({width:null,height:null}),eI=Object.freeze({...JR,...Wh}),h0e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m0e=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function CT(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(h0e);if(r===null||!r.length)return e;const i=[];let a=r.shift(),o=m0e.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");o=!o}}const p0e=e=>e==="unset"||e==="undefined"||e==="none";function g0e(e,t){const n={...C6,...e},r={...eI,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(m=>{const g=[],b=m.hFlip,p=m.vFlip;let v=m.rotate;b?p?v+=2:(g.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),g.push("scale(-1 1)"),i.top=i.left=0):p&&(g.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),g.push("scale(1 -1)"),i.top=i.left=0);let T;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:T=i.height/2+i.top,g.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:g.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:T=i.width/2+i.left,g.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}v%2===1&&(i.left!==i.top&&(T=i.left,i.left=i.top,i.top=T),i.width!==i.height&&(T=i.width,i.width=i.height,i.height=T)),g.length&&(a=''+a+"")});const o=r.width,s=r.height,l=i.width,c=i.height;let u,d;o===null?(d=s===null?"1em":s==="auto"?c:s,u=CT(d,l/c)):(u=o==="auto"?l:o,d=s===null?CT(u,c/l):s==="auto"?c:s);const f={},h=(m,g)=>{p0e(g)||(f[m]=g.toString())};return h("width",u),h("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:f,body:a}}const v0e=/\sid="(\S+)"/g,y0e="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let b0e=0;function E0e(e,t=y0e){const n=[];let r;for(;r=v0e.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const o=typeof t=="function"?t(a):t+(b0e++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const O2=Object.create(null);function T0e(e,t){O2[e]=t}function R2(e){return O2[e]||O2[""]}function N6(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const k6=Object.create(null),Mu=["https://api.simplesvg.com","https://api.unisvg.com"],Cf=[];for(;Mu.length>0;)Mu.length===1||Math.random()>.5?Cf.push(Mu.shift()):Cf.push(Mu.pop());k6[""]=N6({resources:["https://api.iconify.design"].concat(Cf)});function x0e(e,t){const n=N6(t);return n===null?!1:(k6[e]=n,!0)}function O6(e){return k6[e]}const _0e=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let AT=_0e();function w0e(e,t){const n=O6(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";r=n.maxURL-i-n.path.length-a.length}return r}function S0e(e){return e===404}const C0e=(e,t,n)=>{const r=[],i=w0e(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function A0e(e){if(typeof e=="string"){const t=O6(e);if(t)return t.path}return"/"}const N0e=(e,t,n)=>{if(!AT){n("abort",424);return}let r=A0e(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=a+".json?"+l.toString();break}case"custom":{const a=t.uri;r+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let i=503;AT(e+r).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{n(S0e(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",i)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",i)})},k0e={prepare:C0e,send:N0e};function O0e(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const a=i.provider,o=i.prefix,s=i.name,l=n[a]||(n[a]=Object.create(null)),c=l[o]||(l[o]=al(a,o));let u;s in c.icons?u=t.loaded:o===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:a,prefix:o,name:s};u.push(d)}),t}function tI(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function R0e(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])o.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))o.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||tI([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let I0e=0;function M0e(e,t,n){const r=I0e++,i=tI.bind(null,n,r);if(!t.pending.length)return i;const a={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function L0e(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const a=typeof i=="string"?_p(i,t,n):i;a&&r.push(a)}),r}var D0e={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function P0e(e,t,n,r){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let N=e.resources.slice(0);for(o=[];N.length>1;){const O=Math.floor(Math.random()*N.length);o.push(N[O]),N=N.slice(0,O).concat(N.slice(O+1))}o=o.concat(N)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function m(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),m(),f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function b(N,O){O&&(h=[]),typeof N=="function"&&h.push(N)}function p(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:g}}function v(){l="failed",h.forEach(N=>{N(void 0,u)})}function T(){f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function C(N,O,$){const M=O!=="success";switch(f=f.filter(L=>L!==N),l){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){u=$,v();return}if(M){u=$,f.length||(o.length?R():v());return}if(m(),T(),!e.random){const L=e.resources.indexOf(N.resource);L!==-1&&L!==e.index&&(e.index=L)}l="completed",h.forEach(L=>{L($)})}function R(){if(l!=="pending")return;m();const N=o.shift();if(N===void 0){if(f.length){d=setTimeout(()=>{m(),l==="pending"&&(T(),v())},e.timeout);return}v();return}const O={status:"pending",resource:N,callback:($,M)=>{C(O,$,M)}};f.push(O),c++,d=setTimeout(R,e.rotate),n(N,t,O.callback)}return setTimeout(R),p}function nI(e){const t={...D0e,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=P0e(t,s,l,(d,f)=>{r(),c&&c(d,f)});return n.push(u),u}function a(s){return n.find(l=>s(l))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function NT(){}const b4=Object.create(null);function $0e(e){if(!b4[e]){const t=O6(e);if(!t)return;const n=nI(t),r={config:t,redundancy:n};b4[e]=r}return b4[e]}function F0e(e,t,n){let r,i;if(typeof e=="string"){const a=R2(e);if(!a)return n(void 0,424),NT;i=a.send;const o=$0e(e);o&&(r=o.redundancy)}else{const a=N6(e);if(a){r=nI(a);const o=e.resources?e.resources[0]:"",s=R2(o);s&&(i=s.send)}}return!r||!i?(n(void 0,424),NT):r.query(t,i,n)().abort}const kT="iconify2",X1="iconify",rI=X1+"-count",OT=X1+"-version",iI=36e5,B0e=168;function I2(e,t){try{return e.getItem(t)}catch{}}function R6(e,t,n){try{return e.setItem(t,n),!0}catch{}}function RT(e,t){try{e.removeItem(t)}catch{}}function M2(e,t){return R6(e,rI,t.toString())}function L2(e){return parseInt(I2(e,rI))||0}const wp={local:!0,session:!0},aI={local:new Set,session:new Set};let I6=!1;function z0e(e){I6=e}let Gd=typeof window>"u"?{}:window;function oI(e){const t=e+"Storage";try{if(Gd&&Gd[t]&&typeof Gd[t].length=="number")return Gd[t]}catch{}wp[e]=!1}function sI(e,t){const n=oI(e);if(!n)return;const r=I2(n,OT);if(r!==kT){if(r){const s=L2(n);for(let l=0;l{const l=X1+s.toString(),c=I2(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}RT(n,l)}};let o=L2(n);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,M2(n,o)):aI[e].add(s))}function lI(){if(!I6){z0e(!0);for(const e in wp)sI(e,t=>{const n=t.data,r=t.provider,i=n.prefix,a=al(r,i);if(!A6(a,n).length)return!1;const o=n.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function U0e(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in wp)sI(r,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function H0e(e,t){I6||lI();function n(r){let i;if(!wp[r]||!(i=oI(r)))return;const a=aI[r];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=L2(i),!M2(i,o+1))return;const s={cached:Math.floor(Date.now()/iI),provider:e.provider,data:t};return R6(i,X1+o.toString(),JSON.stringify(s))}t.lastModified&&!U0e(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function IT(){}function j0e(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,R0e(e)}))}function G0e(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=R2(n)))return;a.prepare(n,r,i).forEach(s=>{F0e(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=A6(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),H0e(e,l)}catch(c){console.error(c)}j0e(e)})})}))}const V0e=(e,t)=>{const n=L0e(e,!0,ZR()),r=O0e(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,IT)}),()=>{l=!1}}const i=Object.create(null),a=[];let o,s;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===o)return;o=c,s=u,a.push(al(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=al(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),i[c][u].push(d))}),a.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&G0e(l,i[c][u])}),t?M0e(t,r,a):IT};function K0e(e,t){const n={...e};for(const r in t){const i=t[r],a=typeof i;r in JR?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const W0e=/[\s,]+/;function q0e(e,t){t.split(W0e).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Y0e(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return t}function X0e(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Q0e(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Z0e(e){return'url("data:image/svg+xml,'+Q0e(e)+'")'}const cI={...eI,inline:!1},J0e={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ede={display:"inline-block"},D2={backgroundColor:"currentColor"},uI={backgroundColor:"transparent"},MT={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},LT={webkitMask:D2,mask:D2,background:uI};for(const e in LT){const t=LT[e];for(const n in MT)t[e+n]=MT[n]}const tde={...cI,inline:!0};function DT(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const nde=(e,t,n,r)=>{const i=n?tde:cI,a=K0e(i,t),o=t.mode||"svg",s={},l=t.style||{},c={...o==="svg"?J0e:{},ref:r};for(let p in t){const v=t[p];if(v!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[p]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&q0e(a,v);break;case"color":s.color=v;break;case"rotate":typeof v=="string"?a[p]=Y0e(v):typeof v=="number"&&(a[p]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete c["aria-hidden"];break;default:i[p]===void 0&&(c[p]=v)}}const u=g0e(e,a),d=u.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){c.style={...s,...l},Object.assign(c,d);let p=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:E0e(u.body,v?()=>v+"ID"+p++:"iconifyReact")},We.createElement("svg",c)}const{body:f,width:h,height:m}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),b=X0e(f,{...d,width:h+"",height:m+""});return c.style={...s,"--svg":Z0e(b),width:DT(d.width),height:DT(d.height),...ede,...g?D2:uI,...l},We.createElement("span",c)};ZR(!0);T0e("",k0e);if(typeof document<"u"&&typeof window<"u"){lI();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!f0e(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;x0e(n,i)||console.error(r)}catch{console.error(r)}}}}class dI extends We.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=_p(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=u0e(i);if(!a){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:r,abort:V0e([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:We.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),nde({...C6,...n.data},r,t._inline,t._ref)}}const rde=We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return We.createElement(dI,r)});We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return We.createElement(dI,r)});const Sp=({icon:e="",className:t=""})=>x.jsx(rde,{icon:e,className:t});function ide({data:e,children:t,roleSelect:n}){const[r,i]=y.useState(!1);return x.jsxs(Lm,{open:r,onOpenChange:a=>i(a),children:[x.jsx(v8,{asChild:!0,children:t}),x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsxs(b0,{className:"flex justify-between",children:["全部角色",x.jsx(ot,{className:"h-6 w-6 p-1",variant:"ghost",onClick:()=>i(!1),children:x.jsx(gm,{size:16})})]})}),x.jsx(x0,{children:x.jsx("div",{className:"grid max-h-80 grid-cols-3 gap-2",children:e.map((a,o)=>x.jsxs(ot,{variant:"outline",className:"flex h-fit items-center justify-start gap-1 px-2",onClick:()=>{n(a),i(!1)},children:[x.jsx(Sp,{icon:a.icon,className:"shrink-0"}),x.jsx("span",{className:"truncate",title:a.name,children:a.name})]},o))})})]})]})}const ade=({onChange:e})=>{const{t}=a0(),[n,r,i,a,o,s]=Zo(m=>[m.conversationList,m.currentConversation,m.addConversation,m.switchConversation,m.delConversation,m.editConversation]),[l,c]=y.useState(""),[u,d]=y.useState(""),f=m=>{d(""),c(""),s(u,{title:l}),m==null||m.stopPropagation(),e==null||e()},h=m=>{m.code=="Enter"&&f()};return x.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[x.jsxs(ot,{variant:"outline",className:"m-4 shrink-0 border-dashed leading-8",onClick:()=>{i(),e==null||e()},children:[x.jsx(SF,{size:16,className:"mr-2"})," ",t("new conversation")]}),x.jsx(x0,{children:x.jsx("div",{className:"flex w-64 flex-1 flex-col gap-4 overflow-auto px-4",children:n.map((m,g)=>x.jsxs(ot,{variant:r.uuid===m.uuid?"default":"outline",className:"flex justify-start gap-2 px-3",title:m.title,onClick:()=>{a(m.uuid),e==null||e()},children:[m.icon?x.jsx(Sp,{className:"shrink-0",icon:m.icon}):x.jsx(kw,{className:"shrink-0",size:14}),u===m.uuid?x.jsxs(x.Fragment,{children:[x.jsx("input",{value:l,autoFocus:!0,onChange:b=>c(b.target.value),onKeyDown:h,className:"flex-1 overflow-hidden rounded-sm px-2 text-secondary-foreground outline-none dark:text-secondary"}),x.jsx(gm,{className:"shrink-0",size:14,onClick:()=>{d(""),c("")}}),x.jsx(P9,{className:"shrink-0",size:14,onClick:f})]}):x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"flex-1 truncate text-left",children:m.title}),x.jsx(TF,{size:14,onClick:b=>{d(m.uuid),c(m.title),b.stopPropagation()}}),x.jsx(Rw,{size:14,onClick:b=>{confirm("确定删除该对话吗?")&&(o(m.uuid),b.stopPropagation())}})]})]},g))})})]})},ode=({data:e,onChange:t})=>{const{t:n}=a0(),[r]=Zo(i=>[i.addConversation]);return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsxs("div",{className:"text-center leading-8",children:["—— ",n("role")," ——"]}),x.jsx("div",{className:"grid h-44 grid-cols-2 gap-2 px-4",children:e.slice(0,8).map((i,a)=>x.jsxs(ot,{variant:"outline",className:"flex h-fit items-center justify-start gap-1 px-2",onClick:()=>{r(i.name,i.icon,i.prompt,i.id),t==null||t()},children:[x.jsx(Sp,{icon:i.icon,className:"shrink-0"}),x.jsx("span",{className:"truncate",title:i.name,children:i.name})]},a))}),x.jsx(ide,{data:e,roleSelect:i=>r(i.name,i.icon,i.prompt,i.id),children:x.jsx(ot,{variant:"secondary",className:"mx-4 mb-4",children:"全部角色"})})]})},fI=({onChange:e})=>{const[t,n]=y.useState([]);return y.useEffect(()=>{(async()=>{const i=await r0e.getRoleList();n(i)})()},[]),x.jsxs("aside",{className:"flex h-full w-64 shrink-0 flex-col gap-4 overflow-hidden border-r text-xs",children:[x.jsx(ade,{onChange:e}),x.jsx(ode,{data:t,onChange:e})]})};function sde(){const e=bl();return x.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!e&&x.jsx(fI,{}),x.jsx(n0e,{})]})}const lde="/assets/poster-34c80d2f.png";function cde({open:e,shareUrl:t,handleOpenChange:n,type:r}){const i=y.useRef(null),a=bl(),[o,s]=y.useState(""),[l,c]=y.useState(Object.create(null)),{shareCallback:u}=h8(),{isWeixinBrowser:d}=d0(),f=async()=>{if(!i.current)return;const m=await(d?N8:lN)(i.current,{style:{opacity:"1"}});s(m)};return y.useEffect(()=>{e&&setTimeout(()=>{f()},500)},[e]),y.useEffect(()=>{(async()=>{const m=await js.getShareConfig();c(m)})()},[]),x.jsx(Jc,{open:e,onOpenChange:h=>{!h&&r===ia.SHARE&&u(),n(h)},children:x.jsxs(yl,{id:"shareBody",className:"w-[25rem]",children:[x.jsx(eu,{children:"分享"}),x.jsxs("div",{children:[x.jsxs("div",{className:"mb-2 flex",children:[x.jsx(wn,{value:t,disabled:!0}),x.jsx(ot,{className:"ml-2 shrink-0",onClick:()=>{J9(t,document.getElementById("shareBody")),vr.success("复制成功")},children:"复制链接"})]}),x.jsxs("div",{className:"relative overflow-auto max-sm:h-[30rem]",children:[x.jsx("img",{src:o,className:"absolute left-0 top-0 z-10 w-full",alt:""}),x.jsxs("div",{className:"relative",ref:i,children:[x.jsx("img",{src:l.share_img||lde,className:"w-full"}),x.jsx(k8,{className:"absolute bottom-1 left-[50%] m-auto -translate-x-1/2",style:{width:"3.5rem",height:"3.5rem"},value:t})]})]}),x.jsxs(y8,{className:"mt-2 text-center",children:[a&&"长按","保存上方图片,分享你专属海报给朋友"]})]}),x.jsx(TA,{children:!a&&x.jsx(ot,{className:"mt-2",onClick:()=>{hN.saveAs(o,"分享海报.jpg")},children:"下载"})})]})})}const ude={[ia.INVITE]:{button:"立即邀请",icon:x.jsx(OF,{}),completed:"立即邀请"},[ia.SHARE]:{button:"立即分享",icon:x.jsx(NF,{}),completed:"立即分享"}};function dde(){var T;const[e,t]=y.useState([]),[n,r]=y.useState(!1),[i,a]=y.useState(),[{avatar:o,nickname:s,openid:l},c]=Fi(C=>[C.userInfo,C.signOut]),[u,d,f]=Q9(C=>[C.currentBill,C.remaining(),C.getCurrentBilling]),[h]=$i(C=>[C.appConfig]),m=Hr(),g=bl(),b=()=>{c(),m("/login")};y.useEffect(()=>{(async()=>{const R=await ks.getTaskList(1);t(R.filter(N=>N.type!==ia.REGISTER))})(),f()},[]);const p=C=>ude[C],v=async C=>{r(!0),a(C)};return x.jsxs("div",{className:"flex h-screen items-center justify-center",children:[x.jsxs("div",{className:"w-[32rem] -translate-y-3 rounded-xl border p-10 shadow-xl max-sm:w-[22rem] max-sm:p-5",children:[x.jsxs("div",{className:"flex max-w-5xl items-center gap-4 text-secondary-foreground",children:[x.jsxs(P1,{className:"h-10 w-10",children:[x.jsx($1,{src:o||h.user_logo,alt:s}),x.jsx(wm,{children:(T=s.slice(0,1))==null?void 0:T.toUpperCase()})]}),x.jsx("h1",{className:"truncate text-3xl font-bold",children:s})]}),x.jsxs("div",{className:"mt-4 flex items-center rounded-lg border-2 p-3",children:[x.jsxs("div",{className:"flex-1 items-center text-base font-bold",children:[d>0||(u==null?void 0:u.num)===-1?`🎉 有效次数:${(u==null?void 0:u.num)===-1?"无限":d}次`:"☹️ 可用余额不足",(u==null?void 0:u.expired_at)&&u.num===-1&&x.jsx("div",{className:"mt-1",children:`⏰ 有效期至:${u.expired_at}`})]}),x.jsx(ot,{size:"sm",onClick:()=>m("/billing"),children:"去充值"})]}),x.jsxs("div",{className:"mt-4",children:[x.jsx("div",{className:"text-base font-semibold",children:"任务列表"}),x.jsx("div",{className:"mt-4 flex flex-col gap-2",children:e.map((C,R)=>x.jsx("div",{className:"rounded-lg bg-primary p-3 text-primary-foreground",children:x.jsxs("div",{className:"flex items-center gap-4",children:[p(C.type).icon,x.jsxs("div",{className:"flex-1",children:[x.jsx("div",{className:"flex-1 truncate text-base font-medium",children:C.title}),x.jsx("p",{className:"mt-1 truncate text-xs",children:C.desc})]}),x.jsx(ot,{variant:"secondary",size:"sm",onClick:()=>v(C.type),children:C.is_completed?p(C.type).completed:p(C.type).button})]})},R))})]}),g&&x.jsx(ot,{variant:"destructive",className:"mt-10 w-full",onClick:()=>b(),children:"退出登陆"})]}),x.jsx(cde,{open:n,type:i,shareUrl:location.origin+`/chat?shareOpenId=${l}`,handleOpenChange:C=>r(C)})]})}var hI=(e=>(e.WECHAT="wechat",e.ALI_PAY="alipay",e))(hI||{}),P2=(e=>(e.JSAPI="JSAPI",e.NATIVE="NATIVE",e))(P2||{});const Lu={getBillingPackage(){return Rt("package")},exchangeRedemptionCode(e){return Rt("cdk",{method:"post",body:JSON.stringify({cdk:e})})},orderBilling(e){return Rt("order",{method:"post",body:JSON.stringify(e)})},billingPayDetail(e){return Rt(`order/${e}/pay`)},billingDetail(e){return Rt(`order/${e}`)}},mI=y.forwardRef(({className:e,...t},n)=>x.jsx("div",{className:"w-full overflow-auto",children:x.jsx("table",{ref:n,className:ze("w-full caption-bottom text-sm",e),...t})}));mI.displayName="Table";const pI=y.forwardRef(({className:e,...t},n)=>x.jsx("thead",{ref:n,className:ze("[&_tr]:border-b",e),...t}));pI.displayName="TableHeader";const gI=y.forwardRef(({className:e,...t},n)=>x.jsx("tbody",{ref:n,className:ze("[&_tr:last-child]:border-0",e),...t}));gI.displayName="TableBody";const fde=y.forwardRef(({className:e,...t},n)=>x.jsx("tfoot",{ref:n,className:ze("bg-primary font-medium text-primary-foreground",e),...t}));fde.displayName="TableFooter";const $2=y.forwardRef(({className:e,...t},n)=>x.jsx("tr",{ref:n,className:ze("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));$2.displayName="TableRow";const Af=y.forwardRef(({className:e,...t},n)=>x.jsx("th",{ref:n,className:ze("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Af.displayName="TableHead";const Nf=y.forwardRef(({className:e,...t},n)=>x.jsx("td",{ref:n,className:ze("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Nf.displayName="TableCell";const hde=y.forwardRef(({className:e,...t},n)=>x.jsx("caption",{ref:n,className:ze("mt-4 text-sm text-muted-foreground",e),...t}));hde.displayName="TableCaption";function mde({children:e}){const[t,n]=y.useState([]),[r,i]=y.useState(!1),[a,o]=y.useState(!0);return y.useEffect(()=>{r&&(async()=>{o(!0);const l=await da.getUserPackages();n(l),o(!1)})()},[r]),x.jsxs(Lm,{open:r,onOpenChange:s=>i(s),children:[x.jsx(v8,{asChild:!0,children:e}),x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsx(b0,{children:"充值记录"})}),a?x.jsx(qc,{className:"m-auto my-32 animate-spin"}):x.jsxs(mI,{children:[x.jsx(pI,{children:x.jsxs($2,{children:[x.jsx(Af,{children:"名称"}),x.jsx(Af,{children:"问答机会"}),x.jsx(Af,{className:"text-right",children:"日期"})]})}),x.jsx(gI,{children:t.map((s,l)=>x.jsxs($2,{children:[x.jsx(Nf,{className:"font-medium",children:s.package_name}),x.jsxs(Nf,{children:[" ",s.num===-1?`+${s.expired_day}天`:`${s.num}次`]}),x.jsx(Nf,{className:"text-right",children:s.created_at})]},l))})]}),x.jsx(Dm,{children:x.jsx(Pm,{children:"确认"})})]})]})}function pde({open:e,payInfo:t,handleOpenChange:n}){return x.jsx(Jc,{open:e,onOpenChange:n,children:x.jsxs(yl,{children:[x.jsx(eu,{children:"微信扫码支付"}),t?x.jsxs("div",{className:"pb-10",children:[x.jsxs("div",{className:"my-8 text-center text-4xl font-bold text-secondary-foreground",children:["¥ ",t.price]}),x.jsx(k8,{className:"m-auto",style:{width:"16rem",height:"16rem"},value:t.data.code_url})]}):x.jsx(qc,{className:"m-auto my-32 animate-spin"})]})})}function gde({open:e,payInfo:t,handleOpenChange:n}){return x.jsx(Jc,{open:e,onOpenChange:n,children:x.jsxs(yl,{children:[x.jsx(eu,{children:"线下支付"}),x.jsx("div",{className:"my-8 text-center text-4xl font-bold text-secondary-foreground",dangerouslySetInnerHTML:{__html:t}})]})})}let E4=0;function vde(){const[e,t]=y.useState([]),[n,r]=y.useState(!1),[i,a]=y.useState(!1),[o,s]=y.useState(!0),[l,c]=y.useState(""),[u,d]=y.useState(null),[f]=Q9(C=>[C.getCurrentBilling]),[h]=$i(C=>[C.appConfig]),{isWeixinBrowser:m,weChatPay:g}=d0(),b=bl();y.useEffect(()=>{(async()=>{s(!0);const R=await Lu.getBillingPackage();t(R),s(!1)})()},[]);const p=async()=>{try{await Lu.exchangeRedemptionCode(l),hn.success("兑换成功"),f()}catch(C){hn.error(C)}finally{c("")}},v=async C=>{if(h.channel===$w.OFFLINE){a(!0);return}const R=await Lu.orderBilling({package_id:C.id,channel:hI.WECHAT,pay_type:m?P2.JSAPI:P2.NATIVE,platform:1}),N=await Lu.billingPayDetail(R.id);d(N),m&&b?g(N,()=>{hn.success("支付成功"),d(null),f()}):(r(!0),E4=setInterval(async()=>{const{status:O}=await Lu.billingDetail(N.id);O==2&&(hn.success("支付成功"),r(!1),d(null),clearInterval(E4),f())},1500))},T=C=>{r(C),clearInterval(E4)};return x.jsxs(x0,{children:[x.jsxs("div",{className:"mx-auto max-w-7xl flex-1 overflow-auto px-6 py-12",children:[o?x.jsx(qc,{className:"m-auto my-16 animate-spin"}):x.jsx("div",{className:"grid grid-cols-4 gap-6 max-lg:grid-cols-3 max-md:grid-cols-2 max-sm:grid-cols-1",children:e.map((C,R)=>x.jsxs("div",{className:"rounded-lg border p-4 shadow",children:[x.jsxs("p",{className:"mb-4 border-b pb-4",children:[x.jsx("span",{className:"text-2xl font-bold tracking-tight sm:text-4xl",children:C.price}),x.jsx("span",{className:"ml-2 text-base font-medium ",children:"元"})]}),x.jsxs("p",{className:"mb-2 flex items-center gap-2",children:[x.jsx(Dv,{strokeWidth:"3",className:"text-lime-500",size:16}),C.name]}),x.jsx("p",{className:"flex h-3 items-center gap-2",children:C.identity===2&&x.jsxs(x.Fragment,{children:[x.jsx(Dv,{strokeWidth:"3",className:"text-rose-500",size:16}),"开发者专享"]})}),x.jsx(ot,{className:"mt-14 flex w-full",onClick:()=>v(C),children:"购买"})]},R))}),x.jsxs("div",{className:"mt-4 flex gap-4",children:[x.jsx(wn,{placeholder:"请输入兑换码",value:l,onChange:C=>c(C.target.value)}),x.jsx(ot,{disabled:!l,className:"shrink-0",onClick:p,children:"立即兑换"})]}),x.jsxs("h3",{className:"mt-6 flex items-center justify-between text-base font-medium",children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Sp,{icon:"material-symbols:book-outline-rounded",className:"mr-2"}),"充值说明"]}),x.jsx(mde,{children:x.jsx(ot,{className:"shrink-0",children:"充值记录"})})]}),x.jsxs("ul",{className:"mt-6 space-y-4",children:[x.jsx("li",{className:"flex space-x-3",children:"1. 账户充值仅限微信在线支付方式,充值金额实时到账"}),x.jsx("li",{className:"flex space-x-3",children:"2. 账户有效次数自充值日起至用完为止"})]})]}),x.jsx(pde,{open:n,payInfo:u,handleOpenChange:T}),x.jsx(gde,{open:i,payInfo:h.offline,handleOpenChange:C=>{a(C)}})]})}const yde=p8,bde=g8,Ede=Sm("fixed inset-0 z-50 flex",{variants:{position:{top:"items-start",bottom:"items-end",left:"justify-start",right:"justify-end"}},defaultVariants:{position:"right"}}),vI=({position:e,className:t,children:n,...r})=>x.jsx(f0,{className:ze(t),...r,children:x.jsx("div",{className:Ede({position:e}),children:n})});vI.displayName=f0.displayName;const yI=y.forwardRef(({className:e,...t},n)=>x.jsx(h0,{className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t,ref:n}));yI.displayName=h0.displayName;const Tde=Sm("fixed z-50 scale-100 gap-4 border bg-background p-6 opacity-100 shadow-lg",{variants:{position:{top:"w-full animate-in slide-in-from-top duration-300",bottom:"w-full animate-in slide-in-from-bottom duration-300",left:"h-full animate-in slide-in-from-left duration-300",right:"h-full animate-in slide-in-from-right duration-300"},size:{content:"",default:"",sm:"",lg:"",xl:"",full:""}},compoundVariants:[{position:["top","bottom"],size:"content",class:"max-h-screen"},{position:["top","bottom"],size:"default",class:"h-1/3"},{position:["top","bottom"],size:"sm",class:"h-1/4"},{position:["top","bottom"],size:"lg",class:"h-1/2"},{position:["top","bottom"],size:"xl",class:"h-5/6"},{position:["top","bottom"],size:"full",class:"h-screen"},{position:["right","left"],size:"content",class:"max-w-screen"},{position:["right","left"],size:"default",class:"w-1/3"},{position:["right","left"],size:"sm",class:"w-1/4"},{position:["right","left"],size:"lg",class:"w-1/2"},{position:["right","left"],size:"xl",class:"w-5/6"},{position:["right","left"],size:"full",class:"w-screen"}],defaultVariants:{position:"right",size:"default"}}),bI=y.forwardRef(({position:e,size:t,showClose:n=!0,className:r,children:i,...a},o)=>x.jsxs(vI,{position:e,children:[x.jsx(yI,{}),x.jsxs(m0,{ref:o,className:ze(Tde({position:e,size:t}),r),...a,children:[i,n&&x.jsxs(Mm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[x.jsx(gm,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));bI.displayName=m0.displayName;const xde=y.forwardRef(({className:e,...t},n)=>x.jsx(p0,{ref:n,className:ze("text-lg font-semibold text-foreground",e),...t}));xde.displayName=p0.displayName;const _de=y.forwardRef(({className:e,...t},n)=>x.jsx(g0,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));_de.displayName=g0.displayName;const wde=()=>{const{t:e}=a0(),[t,n]=y.useState(!1),[r]=Zo(a=>[a.currentConversation]),i=y.useMemo(()=>location.pathname.includes("user")?e("user center"):location.pathname.includes("billing")?e("billing center"):r.title,[r,location.pathname]);return x.jsxs("div",{className:"border-b py-4 text-center",children:[x.jsxs(yde,{open:t,onOpenChange:a=>n(a),children:[x.jsx(bde,{className:"absolute left-4",children:x.jsx(yF,{})}),x.jsx(bI,{className:"w-auto p-0",position:"left",showClose:!1,children:x.jsx(fI,{onChange:()=>n(!1)})})]}),i]})},Sde=()=>{const e=[{path:"/chat",icon:x.jsx(kw,{size:20})},{path:"user",icon:x.jsx(RF,{size:20})},{path:"billing",icon:x.jsx(EF,{size:20})}],t=Hr(),[n,r]=$i(i=>[i.theme,i.setTheme]);return y.useEffect(()=>{r(n)},[]),x.jsxs("div",{className:"flex items-center justify-between border-t px-20 py-4 text-center",children:[e.map((i,a)=>x.jsx("div",{className:Bs("flex flex-col items-center gap-2 rounded-xl p-4",{"bg-secondary":location.pathname.includes(i.path)}),onClick:()=>t(i.path),children:i.icon},a)),x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsx(ot,{variant:"ghost",className:"h-9 w-9 p-0",children:x.jsx(Ow,{size:18})})}),x.jsx(u0,{side:"top",align:"start",children:x.jsxs(tl,{className:"flex items-center gap-2 pr-3",children:[x.jsx(DC,{}),x.jsx(eh,{to:"https://github.com/gptlink/gptlink-web",target:"_blank",children:x.jsx(ot,{variant:"ghost",className:"p-0 px-2",children:x.jsx(Nw,{size:18})})})]})})]})]})},Cde=()=>{const e=bl(),t=Hr(),{setWeixinShare:n}=d0(),{checkTask:r}=h8();return y.useEffect(()=>{location.pathname==="/"&&t("/chat"),n(),r(ia.REGISTER),r(ia.INVITE)},[]),VC(),KC(),qC(),x.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[e?x.jsx(wde,{}):x.jsx(PC,{}),x.jsx(nP,{}),e&&x.jsx(Sde,{})]})};function PT(){return x.jsx("div",{className:"flex h-screen w-full items-center justify-center",children:x.jsx("section",{className:"bg-white dark:bg-gray-900",children:x.jsx("div",{className:"mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16",children:x.jsxs("div",{className:"mx-auto max-w-screen-sm text-center",children:[x.jsx("h1",{className:"text-7xl font-extrabold tracking-tight text-primary dark:text-primary lg:text-9xl",children:"404"}),x.jsx("p",{className:"my-8 text-3xl font-bold tracking-tight text-gray-900 dark:text-white md:text-4xl",children:"Whoops! 页面未找到"}),x.jsx(ot,{variant:"destructive",className:"mt-2",children:x.jsx(eh,{to:"/chat",children:"返回首页"})})]})})})})}const $T=()=>localStorage.getItem(yr.AccessToken)?null:(hn.error("请登录"),TD("/login")),Ade=uP([{path:"/",element:x.jsx(Cde,{}),errorElement:x.jsx(PT,{}),children:[{path:"chat",element:x.jsx(sde,{}),index:!0},{path:"user",element:x.jsx(dde,{}),loader:$T},{path:"billing",element:x.jsx(vde,{}),loader:$T}]},{path:"/login",element:x.jsx(uX,{}),errorElement:x.jsx(PT,{})}]);T4.createRoot(document.getElementById("root")).render(x.jsxs(x.Fragment,{children:[x.jsx(eP,{router:Ade}),x.jsx(a$,{})]}))});export default Nde(); diff --git a/gptweb/assets/index-279ce384.css b/gptweb/assets/index-279ce384.css deleted file mode 100644 index 88e1685..0000000 --- a/gptweb/assets/index-279ce384.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--border: 216 34% 17%;--input: 216 34% 17%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.markdown-table{color:var(--tw-prose-body);max-width:65ch}.markdown-table :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.markdown-table :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.markdown-table :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.markdown-table :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.markdown-table :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.markdown-table :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.markdown-table :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.markdown-table :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.markdown-table :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.markdown-table :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.markdown-table :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.markdown-table :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.markdown-table :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.markdown-table :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.markdown-table :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.markdown-table :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.markdown-table :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.markdown-table :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.markdown-table :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.markdown-table :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.markdown-table :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.markdown-table :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.markdown-table :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.markdown-table :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.markdown-table :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.markdown-table :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.markdown-table :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.markdown-table :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.markdown-table :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.markdown-table :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.markdown-table :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.markdown-table :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.markdown-table :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.markdown-table :where(code):not(:where([class~="not-prose"] *)):before{content:"`"}.markdown-table :where(code):not(:where([class~="not-prose"] *)):after{content:"`"}.markdown-table :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.markdown-table :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.markdown-table :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.markdown-table :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.markdown-table :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.markdown-table :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.markdown-table :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.markdown-table :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.markdown-table :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.markdown-table :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.markdown-table :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.markdown-table :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.markdown-table :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.markdown-table :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.markdown-table{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.markdown-table :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.markdown-table :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.markdown-table :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.markdown-table :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.markdown-table :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.markdown-table :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.markdown-table :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.markdown-table :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.markdown-table :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.markdown-table :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.markdown-table :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.markdown-table :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.markdown-table :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.markdown-table :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.markdown-table :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.markdown-table :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.markdown-table :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}:is(.dark .markdown-table){--tw-prose-body: var(--tw-prose-invert-body);--tw-prose-headings: var(--tw-prose-invert-headings);--tw-prose-lead: var(--tw-prose-invert-lead);--tw-prose-links: var(--tw-prose-invert-links);--tw-prose-bold: var(--tw-prose-invert-bold);--tw-prose-counters: var(--tw-prose-invert-counters);--tw-prose-bullets: var(--tw-prose-invert-bullets);--tw-prose-hr: var(--tw-prose-invert-hr);--tw-prose-quotes: var(--tw-prose-invert-quotes);--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);--tw-prose-captions: var(--tw-prose-invert-captions);--tw-prose-code: var(--tw-prose-invert-code);--tw-prose-pre-code: var(--tw-prose-invert-pre-code);--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);--tw-prose-th-borders: var(--tw-prose-invert-th-borders);--tw-prose-td-borders: var(--tw-prose-invert-td-borders)}.markdown-table :is(:where(th):not(:where([class~="not-prose"] *))){border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));text-align:center}.markdown-table :is(:where(td):not(:where([class~="not-prose"] *))){border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0px}.bottom-1{bottom:.25rem}.bottom-3{bottom:.75rem}.left-0{left:0px}.left-2{left:.5rem}.left-4{left:1rem}.left-\[50\%\]{left:50%}.right-0{right:0px}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0px}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-32{margin-top:8rem;margin-bottom:8rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\/2{height:50%}.h-1\/3{height:33.333333%}.h-1\/4{height:25%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-44{height:11rem}.h-5\/6{height:83.333333%}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1px\]{height:1px}.h-\[30rem\]{height:30rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:20rem}.max-h-\[7rem\]{max-height:7rem}.max-h-screen{max-height:100vh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[20px\]{min-height:20px}.min-h-\[80px\]{min-height:80px}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1px\]{width:1px}.w-\[25rem\]{width:25rem}.w-\[3\.5rem\]{width:3.5rem}.w-\[32rem\]{width:32rem}.w-\[4rem\]{width:4rem}.w-\[70\%\]{width:70%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[6rem\]{min-width:6rem}.min-w-\[8rem\]{min-width:8rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-3{--tw-translate-y: -.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/90{background-color:hsl(var(--primary) / .9)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-20{padding-left:5rem;padding-right:5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.fade-in-50{--tw-enter-opacity: .5}.fade-in-90{--tw-enter-opacity: .9}.slide-in-from-bottom{--tw-enter-translate-y: 100%}.slide-in-from-bottom-10{--tw-enter-translate-y: 2.5rem}.slide-in-from-left{--tw-enter-translate-x: -100%}.slide-in-from-right{--tw-enter-translate-x: 100%}.slide-in-from-top{--tw-enter-translate-y: -100%}.duration-100{animation-duration:.1s}.duration-300{animation-duration:.3s}.scroll-bar-none::-webkit-scrollbar{display:none}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last-of-type\:mb-0:last-of-type{margin-bottom:0}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:flex{display:flex}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=open\]\:fade-in-90[data-state=open]{--tw-enter-opacity: .9}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y: -.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x: .25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x: -.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y: .25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=open\]\:slide-in-from-bottom-10[data-state=open]{--tw-enter-translate-y: 2.5rem}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:text-primary){color:hsl(var(--primary))}:is(.dark .dark\:text-secondary){color:hsl(var(--secondary))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media not all and (min-width: 1024px){.max-lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media not all and (min-width: 768px){.max-md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (min-width: 640px){.max-sm\:h-\[30rem\]{height:30rem}.max-sm\:w-\[22rem\]{width:22rem}.max-sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.max-sm\:p-5{padding:1.25rem}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-lg{max-width:32rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:zoom-in-90{--tw-enter-scale: .9}.sm\:slide-in-from-bottom-0,.data-\[state\=open\]\:sm\:slide-in-from-bottom-0[data-state=open]{--tw-enter-translate-y: 0px}}@media (min-width: 768px){.md\:w-full{width:100%}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:text-9xl{font-size:8rem;line-height:1}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/gptweb/assets/index-4b8d83a5.css b/gptweb/assets/index-4b8d83a5.css deleted file mode 100644 index 2305c51..0000000 --- a/gptweb/assets/index-4b8d83a5.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--border: 216 34% 17%;--input: 216 34% 17%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0px}.bottom-1{bottom:.25rem}.bottom-3{bottom:.75rem}.left-0{left:0px}.left-2{left:.5rem}.left-4{left:1rem}.left-\[50\%\]{left:50%}.right-0{right:0px}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0px}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-32{margin-top:8rem;margin-bottom:8rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\/2{height:50%}.h-1\/3{height:33.333333%}.h-1\/4{height:25%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-44{height:11rem}.h-5\/6{height:83.333333%}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1px\]{height:1px}.h-\[30rem\]{height:30rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:20rem}.max-h-\[7rem\]{max-height:7rem}.max-h-screen{max-height:100vh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[20px\]{min-height:20px}.min-h-\[80px\]{min-height:80px}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1px\]{width:1px}.w-\[25rem\]{width:25rem}.w-\[3\.5rem\]{width:3.5rem}.w-\[32rem\]{width:32rem}.w-\[4rem\]{width:4rem}.w-\[70\%\]{width:70%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[6rem\]{min-width:6rem}.min-w-\[8rem\]{min-width:8rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-3{--tw-translate-y: -.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/90{background-color:hsl(var(--primary) / .9)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-secondary\/80{background-color:hsl(var(--secondary) / .8)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-20{padding-left:5rem;padding-right:5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.fade-in-50{--tw-enter-opacity: .5}.fade-in-90{--tw-enter-opacity: .9}.slide-in-from-bottom{--tw-enter-translate-y: 100%}.slide-in-from-bottom-10{--tw-enter-translate-y: 2.5rem}.slide-in-from-left{--tw-enter-translate-x: -100%}.slide-in-from-right{--tw-enter-translate-x: 100%}.slide-in-from-top{--tw-enter-translate-y: -100%}.duration-100{animation-duration:.1s}.duration-300{animation-duration:.3s}.scroll-bar-none::-webkit-scrollbar{display:none}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last-of-type\:mb-0:last-of-type{margin-bottom:0}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:flex{display:flex}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=open\]\:fade-in-90[data-state=open]{--tw-enter-opacity: .9}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y: -.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x: .25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x: -.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y: .25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=open\]\:slide-in-from-bottom-10[data-state=open]{--tw-enter-translate-y: 2.5rem}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:text-primary){color:hsl(var(--primary))}:is(.dark .dark\:text-secondary){color:hsl(var(--secondary))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media not all and (min-width: 1024px){.max-lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media not all and (min-width: 768px){.max-md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (min-width: 640px){.max-sm\:h-\[30rem\]{height:30rem}.max-sm\:w-\[22rem\]{width:22rem}.max-sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.max-sm\:p-5{padding:1.25rem}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-lg{max-width:32rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:zoom-in-90{--tw-enter-scale: .9}.sm\:slide-in-from-bottom-0,.data-\[state\=open\]\:sm\:slide-in-from-bottom-0[data-state=open]{--tw-enter-translate-y: 0px}}@media (min-width: 768px){.md\:w-full{width:100%}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:text-9xl{font-size:8rem;line-height:1}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/gptweb/assets/index-d9fca40b.js b/gptweb/assets/index-a1b1bdc5.js similarity index 56% rename from gptweb/assets/index-d9fca40b.js rename to gptweb/assets/index-a1b1bdc5.js index 6239afd..d040510 100644 --- a/gptweb/assets/index-d9fca40b.js +++ b/gptweb/assets/index-a1b1bdc5.js @@ -1,4 +1,4 @@ -var TI=Object.defineProperty;var xI=(e,t,n)=>t in e?TI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L6=(e,t,n)=>(xI(e,typeof t!="symbol"?t+"":t,n),n);var Nde=_I((Lr,Dr)=>{function wI(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FT={exports:{}},qh={},BT={exports:{}},mt={};/** +var MM=Object.defineProperty;var IM=(e,t,n)=>t in e?MM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var LM=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var H8=(e,t,n)=>(IM(e,typeof t!="symbol"?t+"":t,n),n);var Wde=LM((Lr,Dr)=>{function DM(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Gl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xx={exports:{}},sm={},Qx={exports:{}},mt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var TI=Object.defineProperty;var xI=(e,t,n)=>t in e?TI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Q1=Symbol.for("react.element"),SI=Symbol.for("react.portal"),CI=Symbol.for("react.fragment"),AI=Symbol.for("react.strict_mode"),NI=Symbol.for("react.profiler"),kI=Symbol.for("react.provider"),OI=Symbol.for("react.context"),RI=Symbol.for("react.forward_ref"),II=Symbol.for("react.suspense"),MI=Symbol.for("react.memo"),LI=Symbol.for("react.lazy"),D6=Symbol.iterator;function DI(e){return e===null||typeof e!="object"?null:(e=D6&&e[D6]||e["@@iterator"],typeof e=="function"?e:null)}var zT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},UT=Object.assign,HT={};function Hc(e,t,n){this.props=e,this.context=t,this.refs=HT,this.updater=n||zT}Hc.prototype.isReactComponent={};Hc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jT(){}jT.prototype=Hc.prototype;function F2(e,t,n){this.props=e,this.context=t,this.refs=HT,this.updater=n||zT}var B2=F2.prototype=new jT;B2.constructor=F2;UT(B2,Hc.prototype);B2.isPureReactComponent=!0;var P6=Array.isArray,GT=Object.prototype.hasOwnProperty,z2={current:null},VT={key:!0,ref:!0,__self:!0,__source:!0};function KT(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)GT.call(t,r)&&!VT.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?TI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var UI=y,HI=Symbol.for("react.element"),jI=Symbol.for("react.fragment"),GI=Object.prototype.hasOwnProperty,VI=UI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,KI={key:!0,ref:!0,__self:!0,__source:!0};function WT(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)GI.call(t,r)&&!KI.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:HI,type:e,key:a,ref:o,props:i,_owner:VI.current}}qh.Fragment=jI;qh.jsx=WT;qh.jsxs=WT;FT.exports=qh;var x=FT.exports,T4={},qT={exports:{}},zr={},YT={exports:{}},XT={};/** + */var ZM=y,JM=Symbol.for("react.element"),eI=Symbol.for("react.fragment"),tI=Object.prototype.hasOwnProperty,nI=ZM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rI={key:!0,ref:!0,__self:!0,__source:!0};function aT(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)tI.call(t,r)&&!rI.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:JM,type:e,key:a,ref:o,props:i,_owner:nI.current}}sm.Fragment=eI;sm.jsx=aT;sm.jsxs=aT;Xx.exports=sm;var b=Xx.exports,N4={},oT={exports:{}},Ur={},sT={exports:{}},lT={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var TI=Object.defineProperty;var xI=(e,t,n)=>t in e?TI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(w,D){var A=w.length;w.push(D);e:for(;0>>1,te=w[W];if(0>>1;Wi(Se,A))Cei(Ae,Se)?(w[W]=Ae,w[Ce]=A,W=Ce):(w[W]=Se,w[Te]=A,W=Te);else if(Cei(Ae,A))w[W]=Ae,w[Ce]=A,W=Ce;else break e}}return D}function i(w,D){var A=w.sortIndex-D.sortIndex;return A!==0?A:w.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(w){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=w)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function C(w){if(g=!1,T(w),!m)if(n(l)!==null)m=!0,ne(R);else{var D=n(c);D!==null&&B(C,D.startTime-w)}}function R(w,D){m=!1,g&&(g=!1,p($),$=-1),h=!0;var A=f;try{for(T(D),d=n(l);d!==null&&(!(d.expirationTime>D)||w&&!X());){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var te=W(d.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),T(D)}else r(l);d=n(l)}if(d!==null)var P=!0;else{var Te=n(c);Te!==null&&B(C,Te.startTime-D),P=!1}return P}finally{d=null,f=A,h=!1}}var N=!1,O=null,$=-1,M=5,L=-1;function X(){return!(e.unstable_now()-Lw||125W?(w.sortIndex=A,t(c,w),n(l)===null&&w===n(c)&&(g?(p($),$=-1):g=!0,B(C,A-W))):(w.sortIndex=te,t(l,w),m||h||(m=!0,ne(R))),w},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(w){var D=f;return function(){var A=f;f=D;try{return w.apply(this,arguments)}finally{f=A}}}})(XT);YT.exports=XT;var WI=YT.exports;/** + */(function(e){function t(w,P){var A=w.length;w.push(P);e:for(;0>>1,te=w[W];if(0>>1;W<$;){var xe=2*(W+1)-1,Se=w[xe],Ce=xe+1,Ae=w[Ce];if(0>i(Se,A))Cei(Ae,Se)?(w[W]=Ae,w[Ce]=A,W=Ce):(w[W]=Se,w[xe]=A,W=xe);else if(Cei(Ae,A))w[W]=Ae,w[Ce]=A,W=Ce;else break e}}return P}function i(w,P){var A=w.sortIndex-P.sortIndex;return A!==0?A:w.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,m=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(w){for(var P=n(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=w)r(c),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(c)}}function C(w){if(g=!1,T(w),!m)if(n(l)!==null)m=!0,ne(O);else{var P=n(c);P!==null&&B(C,P.startTime-w)}}function O(w,P){m=!1,g&&(g=!1,p(D),D=-1),h=!0;var A=f;try{for(T(P),d=n(l);d!==null&&(!(d.expirationTime>P)||w&&!X());){var W=d.callback;if(typeof W=="function"){d.callback=null,f=d.priorityLevel;var te=W(d.expirationTime<=P);P=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),T(P)}else r(l);d=n(l)}if(d!==null)var $=!0;else{var xe=n(c);xe!==null&&B(C,xe.startTime-P),$=!1}return $}finally{d=null,f=A,h=!1}}var N=!1,R=null,D=-1,I=5,L=-1;function X(){return!(e.unstable_now()-Lw||125W?(w.sortIndex=A,t(c,w),n(l)===null&&w===n(c)&&(g?(p(D),D=-1):g=!0,B(C,A-W))):(w.sortIndex=te,t(l,w),m||h||(m=!0,ne(O))),w},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(w){var P=f;return function(){var A=f;f=P;try{return w.apply(this,arguments)}finally{f=A}}}})(lT);sT.exports=lT;var iI=sT.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var TI=Object.defineProperty;var xI=(e,t,n)=>t in e?TI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var QT=y,Br=WI;function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x4=Object.prototype.hasOwnProperty,qI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,F6={},B6={};function YI(e){return x4.call(B6,e)?!0:x4.call(F6,e)?!1:qI.test(e)?B6[e]=!0:(F6[e]=!0,!1)}function XI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function QI(e,t,n,r){if(t===null||typeof t>"u"||XI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rr(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ln[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ln[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ln[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ln[e]=new rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ln[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ln[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ln[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ln[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ln[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var H2=/[\-:]([a-z])/g;function j2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(H2,j2);Ln[t]=new rr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(H2,j2);Ln[t]=new rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(H2,j2);Ln[t]=new rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ln[e]=new rr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ln.xlinkHref=new rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ln[e]=new rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function G2(e,t,n,r){var i=Ln.hasOwnProperty(t)?Ln[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),k4=Object.prototype.hasOwnProperty,aI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W8={},q8={};function oI(e){return k4.call(q8,e)?!0:k4.call(W8,e)?!1:aI.test(e)?q8[e]=!0:(W8[e]=!0,!1)}function sI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lI(e,t,n,r){if(t===null||typeof t>"u"||sI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ir(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zn[e]=new ir(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zn[t]=new ir(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zn[e]=new ir(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zn[e]=new ir(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){zn[e]=new ir(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zn[e]=new ir(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zn[e]=new ir(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zn[e]=new ir(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zn[e]=new ir(e,5,!1,e.toLowerCase(),null,!1,!1)});var X2=/[\-:]([a-z])/g;function Q2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(X2,Q2);zn[t]=new ir(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(X2,Q2);zn[t]=new ir(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(X2,Q2);zn[t]=new ir(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zn[e]=new ir(e,1,!1,e.toLowerCase(),null,!1,!1)});zn.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zn[e]=new ir(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z2(e,t,n,r){var i=zn.hasOwnProperty(t)?zn[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Lp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Du(e):""}function ZI(e){switch(e.tag){case 5:return Du(e.type);case 16:return Du("Lazy");case 13:return Du("Suspense");case 19:return Du("SuspenseList");case 0:case 2:case 15:return e=Dp(e.type,!1),e;case 11:return e=Dp(e.type.render,!1),e;case 1:return e=Dp(e.type,!0),e;default:return""}}function C4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yl:return"Fragment";case ql:return"Portal";case _4:return"Profiler";case V2:return"StrictMode";case w4:return"Suspense";case S4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ex:return(e.displayName||"Context")+".Consumer";case JT:return(e._context.displayName||"Context")+".Provider";case K2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W2:return t=e.displayName||null,t!==null?t:C4(e.type)||"Memo";case So:t=e._payload,e=e._init;try{return C4(e(t))}catch{}}return null}function JI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return C4(t);case 8:return t===V2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eM(e){var t=nx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function F0(e){e._valueTracker||(e._valueTracker=eM(e))}function rx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function A4(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function U6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ix(e,t){t=t.checked,t!=null&&G2(e,"checked",t,!1)}function N4(e,t){ix(e,t);var n=Yo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?k4(e,t.type,n):t.hasOwnProperty("defaultValue")&&k4(e,t.type,Yo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function H6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function k4(e,t,n){(t!=="number"||kf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pu=Array.isArray;function dc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=B0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function m1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tM=["Webkit","ms","Moz","O"];Object.keys(Hu).forEach(function(e){tM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hu[t]=Hu[e]})});function lx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hu.hasOwnProperty(e)&&Hu[e]?(""+t).trim():t+"px"}function cx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var nM=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function I4(e,t){if(t){if(nM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function M4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L4=null;function q2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var D4=null,fc=null,hc=null;function V6(e){if(e=e0(e)){if(typeof D4!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Jh(t),D4(e.stateNode,e.type,t))}}function ux(e){fc?hc?hc.push(e):hc=[e]:fc=e}function dx(){if(fc){var e=fc,t=hc;if(hc=fc=null,V6(e),t)for(e=0;e>>=0,e===0?32:31-(hM(e)/mM|0)|0}var z0=64,U0=4194304;function $u(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=$u(s):(a&=o,a!==0&&(r=$u(a)))}else o=n&~i,o!==0?r=$u(o):a!==0&&(r=$u(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Z1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ni(t),e[t]=n}function yM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Gu),e3=String.fromCharCode(32),t3=!1;function Ix(e,t){switch(e){case"keyup":return KM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function qM(e,t){switch(e){case"compositionend":return Mx(t);case"keypress":return t.which!==32?null:(t3=!0,e3);case"textInput":return e=t.data,e===e3&&t3?null:e;default:return null}}function YM(e,t){if(Xl)return e==="compositionend"||!n9&&Ix(e,t)?(e=Ox(),qd=J2=Io=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=a3(n)}}function $x(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$x(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fx(){for(var e=window,t=kf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kf(e.document)}return t}function r9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iL(e){var t=Fx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$x(n.ownerDocument.documentElement,n)){if(r!==null&&r9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=o3(n,a);var o=o3(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ql=null,U4=null,Ku=null,H4=!1;function s3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;H4||Ql==null||Ql!==kf(r)||(r=Ql,"selectionStart"in r&&r9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ku&&E1(Ku,r)||(Ku=r,r=Pf(U4,"onSelect"),0ec||(e.current=q4[ec],q4[ec]=null,ec--)}function $t(e,t){ec++,q4[ec]=e.current,e.current=t}var Xo={},Wn=ss(Xo),br=ss(!1),Ws=Xo;function wc(e,t){var n=e.type.contextTypes;if(!n)return Xo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Er(e){return e=e.childContextTypes,e!=null}function Ff(){Gt(br),Gt(Wn)}function m3(e,t,n){if(Wn.current!==Xo)throw Error(he(168));$t(Wn,t),$t(br,n)}function Wx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(he(108,JI(e)||"Unknown",i));return Jt({},n,r)}function Bf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xo,Ws=Wn.current,$t(Wn,e),$t(br,br.current),!0}function p3(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Wx(e,t,Ws),r.__reactInternalMemoizedMergedChildContext=e,Gt(br),Gt(Wn),$t(Wn,e)):Gt(br),$t(br,n)}var La=null,em=!1,Yp=!1;function qx(e){La===null?La=[e]:La.push(e)}function gL(e){em=!0,qx(e)}function ls(){if(!Yp&&La!==null){Yp=!0;var e=0,t=_t;try{var n=La;for(_t=1;e>=o,i-=o,Pa=1<<32-Ni(t)+i|n<$?(M=O,O=null):M=O.sibling;var L=f(p,O,T[$],C);if(L===null){O===null&&(O=M);break}e&&O&&L.alternate===null&&t(p,O),v=a(L,v,$),N===null?R=L:N.sibling=L,N=L,O=M}if($===T.length)return n(p,O),Kt&&_s(p,$),R;if(O===null){for(;$$?(M=O,O=null):M=O.sibling;var X=f(p,O,L.value,C);if(X===null){O===null&&(O=M);break}e&&O&&X.alternate===null&&t(p,O),v=a(X,v,$),N===null?R=X:N.sibling=X,N=X,O=M}if(L.done)return n(p,O),Kt&&_s(p,$),R;if(O===null){for(;!L.done;$++,L=T.next())L=d(p,L.value,C),L!==null&&(v=a(L,v,$),N===null?R=L:N.sibling=L,N=L);return Kt&&_s(p,$),R}for(O=r(p,O);!L.done;$++,L=T.next())L=h(O,p,$,L.value,C),L!==null&&(e&&L.alternate!==null&&O.delete(L.key===null?$:L.key),v=a(L,v,$),N===null?R=L:N.sibling=L,N=L);return e&&O.forEach(function(Z){return t(p,Z)}),Kt&&_s(p,$),R}function b(p,v,T,C){if(typeof T=="object"&&T!==null&&T.type===Yl&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case $0:e:{for(var R=T.key,N=v;N!==null;){if(N.key===R){if(R=T.type,R===Yl){if(N.tag===7){n(p,N.sibling),v=i(N,T.props.children),v.return=p,p=v;break e}}else if(N.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===So&&x3(R)===N.type){n(p,N.sibling),v=i(N,T.props),v.ref=pu(p,N,T),v.return=p,p=v;break e}n(p,N);break}else t(p,N);N=N.sibling}T.type===Yl?(v=Hs(T.props.children,p.mode,C,T.key),v.return=p,p=v):(C=nf(T.type,T.key,T.props,null,p.mode,C),C.ref=pu(p,v,T),C.return=p,p=C)}return o(p);case ql:e:{for(N=T.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===T.containerInfo&&v.stateNode.implementation===T.implementation){n(p,v.sibling),v=i(v,T.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=rg(T,p.mode,C),v.return=p,p=v}return o(p);case So:return N=T._init,b(p,v,N(T._payload),C)}if(Pu(T))return m(p,v,T,C);if(uu(T))return g(p,v,T,C);q0(p,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,v!==null&&v.tag===6?(n(p,v.sibling),v=i(v,T),v.return=p,p=v):(n(p,v),v=ng(T,p.mode,C),v.return=p,p=v),o(p)):n(p,v)}return b}var Cc=n_(!0),r_=n_(!1),t0={},ra=ss(t0),w1=ss(t0),S1=ss(t0);function Ds(e){if(e===t0)throw Error(he(174));return e}function f9(e,t){switch($t(S1,t),$t(w1,e),$t(ra,t0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R4(t,e)}Gt(ra),$t(ra,t)}function Ac(){Gt(ra),Gt(w1),Gt(S1)}function i_(e){Ds(S1.current);var t=Ds(ra.current),n=R4(t,e.type);t!==n&&($t(w1,e),$t(ra,n))}function h9(e){w1.current===e&&(Gt(ra),Gt(w1))}var Xt=ss(0);function Vf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xp=[];function m9(){for(var e=0;en?n:4,e(!0);var r=Qp.transition;Qp.transition={};try{e(!1),t()}finally{_t=n,Qp.transition=r}}function E_(){return oi().memoizedState}function EL(e,t,n){var r=jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},T_(e))x_(t,n);else if(n=Zx(e,t,n,r),n!==null){var i=er();ki(n,e,r,i),__(n,t,r)}}function TL(e,t,n){var r=jo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(T_(e))x_(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Mi(s,o)){var l=t.interleaved;l===null?(i.next=i,u9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Zx(e,t,i,r),n!==null&&(i=er(),ki(n,e,r,i),__(n,t,r))}}function T_(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function x_(e,t){Wu=Kf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function __(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,X2(e,n)}}var Wf={readContext:ai,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},xL={readContext:ai,useCallback:function(e,t){return Vi().memoizedState=[e,t===void 0?null:t],e},useContext:ai,useEffect:w3,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zd(4194308,4,p_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zd(4,2,e,t)},useMemo:function(e,t){var n=Vi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EL.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=Vi();return e={current:e},t.memoizedState=e},useState:_3,useDebugValue:b9,useDeferredValue:function(e){return Vi().memoizedState=e},useTransition:function(){var e=_3(!1),t=e[0];return e=bL.bind(null,e[1]),Vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,i=Vi();if(Kt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),An===null)throw Error(he(349));Ys&30||s_(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,w3(c_.bind(null,r,a,e),[e]),r.flags|=2048,N1(9,l_.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Vi(),t=An.identifierPrefix;if(Kt){var n=$a,r=Pa;n=(r&~(1<<32-Ni(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=C1++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{zp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hu(e):""}function cI(e){switch(e.tag){case 5:return Hu(e.type);case 16:return Hu("Lazy");case 13:return Hu("Suspense");case 19:return Hu("SuspenseList");case 0:case 2:case 15:return e=Up(e.type,!1),e;case 11:return e=Up(e.type.render,!1),e;case 1:return e=Up(e.type,!0),e;default:return""}}function I4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ec:return"Fragment";case Jl:return"Portal";case O4:return"Profiler";case J2:return"StrictMode";case R4:return"Suspense";case M4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fT:return(e.displayName||"Context")+".Consumer";case dT:return(e._context.displayName||"Context")+".Provider";case e9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t9:return t=e.displayName||null,t!==null?t:I4(e.type)||"Memo";case No:t=e._payload,e=e._init;try{return I4(e(t))}catch{}}return null}function uI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I4(t);case 8:return t===J2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dI(e){var t=mT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Q0(e){e._valueTracker||(e._valueTracker=dI(e))}function pT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function L4(e,t){var n=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function X8(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gT(e,t){t=t.checked,t!=null&&Z2(e,"checked",t,!1)}function D4(e,t){gT(e,t);var n=Zo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?P4(e,t.type,n):t.hasOwnProperty("defaultValue")&&P4(e,t.type,Zo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Q8(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function P4(e,t,n){(t!=="number"||jf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gu=Array.isArray;function gc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Z0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fI=["Webkit","ms","Moz","O"];Object.keys(Xu).forEach(function(e){fI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xu[t]=Xu[e]})});function ET(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xu.hasOwnProperty(e)&&Xu[e]?(""+t).trim():t+"px"}function xT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ET(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var hI=en({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function B4(e,t){if(t){if(hI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function z4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U4=null;function n9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var j4=null,vc=null,yc=null;function e3(e){if(e=u0(e)){if(typeof j4!="function")throw Error(he(280));var t=e.stateNode;t&&(t=fm(t),j4(e.stateNode,e.type,t))}}function TT(e){vc?yc?yc.push(e):yc=[e]:vc=e}function _T(){if(vc){var e=vc,t=yc;if(yc=vc=null,e3(e),t)for(e=0;e>>=0,e===0?32:31-(wI(e)/SI|0)|0}var J0=64,ed=4194304;function Vu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Vu(s):(a&=o,a!==0&&(r=Vu(a)))}else o=n&~i,o!==0?r=Vu(o):a!==0&&(r=Vu(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function l0(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ri(t),e[t]=n}function kI(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zu),c3=String.fromCharCode(32),u3=!1;function HT(e,t){switch(e){case"keyup":return rL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tc=!1;function aL(e,t){switch(e){case"compositionend":return GT(t);case"keypress":return t.which!==32?null:(u3=!0,c3);case"textInput":return e=t.data,e===c3&&u3?null:e;default:return null}}function oL(e,t){if(tc)return e==="compositionend"||!u9&&HT(e,t)?(e=UT(),lf=s9=Do=null,tc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=m3(n)}}function qT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YT(){for(var e=window,t=jf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jf(e.document)}return t}function d9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pL(e){var t=YT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qT(n.ownerDocument.documentElement,n)){if(r!==null&&d9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=p3(n,a);var o=p3(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nc=null,q4=null,e1=null,Y4=!1;function g3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Y4||nc==null||nc!==jf(r)||(r=nc,"selectionStart"in r&&d9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),e1&&k1(e1,r)||(e1=r,r=Yf(q4,"onSelect"),0ac||(e.current=t5[ac],t5[ac]=null,ac--)}function Ft(e,t){ac++,t5[ac]=e.current,e.current=t}var Jo={},Yn=us(Jo),br=us(!1),qs=Jo;function Oc(e,t){var n=e.type.contextTypes;if(!n)return Jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Er(e){return e=e.childContextTypes,e!=null}function Qf(){Vt(br),Vt(Yn)}function _3(e,t,n){if(Yn.current!==Jo)throw Error(he(168));Ft(Yn,t),Ft(br,n)}function i_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(he(108,uI(e)||"Unknown",i));return en({},n,r)}function Zf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jo,qs=Yn.current,Ft(Yn,e),Ft(br,br.current),!0}function w3(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=i_(e,t,qs),r.__reactInternalMemoizedMergedChildContext=e,Vt(br),Vt(Yn),Ft(Yn,e)):Vt(br),Ft(br,n)}var Pa=null,hm=!1,tg=!1;function a_(e){Pa===null?Pa=[e]:Pa.push(e)}function AL(e){hm=!0,a_(e)}function ds(){if(!tg&&Pa!==null){tg=!0;var e=0,t=wt;try{var n=Pa;for(wt=1;e>=o,i-=o,Ba=1<<32-Ri(t)+i|n<D?(I=R,R=null):I=R.sibling;var L=f(p,R,T[D],C);if(L===null){R===null&&(R=I);break}e&&R&&L.alternate===null&&t(p,R),v=a(L,v,D),N===null?O=L:N.sibling=L,N=L,R=I}if(D===T.length)return n(p,R),Kt&&Cs(p,D),O;if(R===null){for(;DD?(I=R,R=null):I=R.sibling;var X=f(p,R,L.value,C);if(X===null){R===null&&(R=I);break}e&&R&&X.alternate===null&&t(p,R),v=a(X,v,D),N===null?O=X:N.sibling=X,N=X,R=I}if(L.done)return n(p,R),Kt&&Cs(p,D),O;if(R===null){for(;!L.done;D++,L=T.next())L=d(p,L.value,C),L!==null&&(v=a(L,v,D),N===null?O=L:N.sibling=L,N=L);return Kt&&Cs(p,D),O}for(R=r(p,R);!L.done;D++,L=T.next())L=h(R,p,D,L.value,C),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?D:L.key),v=a(L,v,D),N===null?O=L:N.sibling=L,N=L);return e&&R.forEach(function(Z){return t(p,Z)}),Kt&&Cs(p,D),O}function E(p,v,T,C){if(typeof T=="object"&&T!==null&&T.type===ec&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case X0:e:{for(var O=T.key,N=v;N!==null;){if(N.key===O){if(O=T.type,O===ec){if(N.tag===7){n(p,N.sibling),v=i(N,T.props.children),v.return=p,p=v;break e}}else if(N.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===No&&R3(O)===N.type){n(p,N.sibling),v=i(N,T.props),v.ref=_u(p,N,T),v.return=p,p=v;break e}n(p,N);break}else t(p,N);N=N.sibling}T.type===ec?(v=Hs(T.props.children,p.mode,C,T.key),v.return=p,p=v):(C=gf(T.type,T.key,T.props,null,p.mode,C),C.ref=_u(p,v,T),C.return=p,p=C)}return o(p);case Jl:e:{for(N=T.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===T.containerInfo&&v.stateNode.implementation===T.implementation){n(p,v.sibling),v=i(v,T.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=cg(T,p.mode,C),v.return=p,p=v}return o(p);case No:return N=T._init,E(p,v,N(T._payload),C)}if(Gu(T))return m(p,v,T,C);if(yu(T))return g(p,v,T,C);sd(p,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,v!==null&&v.tag===6?(n(p,v.sibling),v=i(v,T),v.return=p,p=v):(n(p,v),v=lg(T,p.mode,C),v.return=p,p=v),o(p)):n(p,v)}return E}var Mc=h_(!0),m_=h_(!1),d0={},sa=us(d0),I1=us(d0),L1=us(d0);function $s(e){if(e===d0)throw Error(he(174));return e}function E9(e,t){switch(Ft(L1,t),Ft(I1,e),Ft(sa,d0),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:F4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=F4(t,e)}Vt(sa),Ft(sa,t)}function Ic(){Vt(sa),Vt(I1),Vt(L1)}function p_(e){$s(L1.current);var t=$s(sa.current),n=F4(t,e.type);t!==n&&(Ft(I1,e),Ft(sa,n))}function x9(e){I1.current===e&&(Vt(sa),Vt(I1))}var Xt=us(0);function ih(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ng=[];function T9(){for(var e=0;en?n:4,e(!0);var r=rg.transition;rg.transition={};try{e(!1),t()}finally{wt=n,rg.transition=r}}function R_(){return si().memoizedState}function RL(e,t,n){var r=Ko(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},M_(e))I_(t,n);else if(n=c_(e,t,n,r),n!==null){var i=tr();Mi(n,e,r,i),L_(n,t,r)}}function ML(e,t,n){var r=Ko(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(M_(e))I_(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pi(s,o)){var l=t.interleaved;l===null?(i.next=i,y9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=c_(e,t,i,r),n!==null&&(i=tr(),Mi(n,e,r,i),L_(n,t,r))}}function M_(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function I_(e,t){t1=ah=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function L_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,i9(e,n)}}var oh={readContext:oi,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},IL={readContext:oi,useCallback:function(e,t){return qi().memoizedState=[e,t===void 0?null:t],e},useContext:oi,useEffect:I3,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ff(4194308,4,C_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ff(4194308,4,e,t)},useInsertionEffect:function(e,t){return ff(4,2,e,t)},useMemo:function(e,t){var n=qi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=RL.bind(null,Jt,e),[r.memoizedState,e]},useRef:function(e){var t=qi();return e={current:e},t.memoizedState=e},useState:M3,useDebugValue:A9,useDeferredValue:function(e){return qi().memoizedState=e},useTransition:function(){var e=M3(!1),t=e[0];return e=OL.bind(null,e[1]),qi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Jt,i=qi();if(Kt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),In===null)throw Error(he(349));Xs&30||y_(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,I3(E_.bind(null,r,a,e),[e]),r.flags|=2048,$1(9,b_.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=qi(),t=In.identifierPrefix;if(Kt){var n=za,r=Ba;n=(r&~(1<<32-Ri(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=D1++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Yi]=t,e[_1]=r,I_(e,t,!1,!1),t.stateNode=e;e:{switch(o=M4(n,r),n){case"dialog":Ut("cancel",e),Ut("close",e),i=r;break;case"iframe":case"object":case"embed":Ut("load",e),i=r;break;case"video":case"audio":for(i=0;ikc&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vf(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Kt)return Fn(t),null}else 2*sn()-a.renderingStartTime>kc&&n!==1073741824&&(t.flags|=128,r=!0,gu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sn(),t.sibling=null,n=Xt.current,$t(Xt,r?n&1|2:n&1),t):(Fn(t),null);case 22:case 23:return S9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Fn(t),t.subtreeFlags&6&&(t.flags|=8192)):Fn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function OL(e,t){switch(a9(t),t.tag){case 1:return Er(t.type)&&Ff(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ac(),Gt(br),Gt(Wn),m9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h9(t),null;case 13:if(Gt(Xt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Sc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(Xt),null;case 4:return Ac(),null;case 10:return c9(t.type._context),null;case 22:case 23:return S9(),null;case 24:return null;default:return null}}var X0=!1,zn=!1,RL=typeof WeakSet=="function"?WeakSet:Set,De=null;function ic(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function o5(e,t,n){try{n()}catch(r){rn(e,t,r)}}var M3=!1;function IL(e,t){if(j4=Lf,e=Fx(),r9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=o),f===a&&++u===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(G4={focusedElem:e,selectionRange:n},Lf=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ti(t.type,g),b);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(C){rn(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return m=M3,M3=!1,m}function qu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&o5(t,n,a)}i=i.next}while(i!==r)}}function rm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function s5(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function D_(e){var t=e.alternate;t!==null&&(e.alternate=null,D_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yi],delete t[_1],delete t[W4],delete t[mL],delete t[pL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function P_(e){return e.tag===5||e.tag===3||e.tag===4}function L3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||P_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function l5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$f));else if(r!==4&&(e=e.child,e!==null))for(l5(e,t,n),e=e.sibling;e!==null;)l5(e,t,n),e=e.sibling}function c5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(c5(e,t,n),e=e.sibling;e!==null;)c5(e,t,n),e=e.sibling}var On=null,_i=!1;function fo(e,t,n){for(n=n.child;n!==null;)$_(e,t,n),n=n.sibling}function $_(e,t,n){if(na&&typeof na.onCommitFiberUnmount=="function")try{na.onCommitFiberUnmount(Yh,n)}catch{}switch(n.tag){case 5:zn||ic(n,t);case 6:var r=On,i=_i;On=null,fo(e,t,n),On=r,_i=i,On!==null&&(_i?(e=On,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):On.removeChild(n.stateNode));break;case 18:On!==null&&(_i?(e=On,n=n.stateNode,e.nodeType===8?qp(e.parentNode,n):e.nodeType===1&&qp(e,n),y1(e)):qp(On,n.stateNode));break;case 4:r=On,i=_i,On=n.stateNode.containerInfo,_i=!0,fo(e,t,n),On=r,_i=i;break;case 0:case 11:case 14:case 15:if(!zn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&o5(n,t,o),i=i.next}while(i!==r)}fo(e,t,n);break;case 1:if(!zn&&(ic(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rn(n,t,s)}fo(e,t,n);break;case 21:fo(e,t,n);break;case 22:n.mode&1?(zn=(r=zn)||n.memoizedState!==null,fo(e,t,n),zn=r):fo(e,t,n);break;default:fo(e,t,n)}}function D3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RL),t.forEach(function(r){var i=UL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=sn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LL(r/1960))-r,10e?16:e,Mo===null)var r=!1;else{if(e=Mo,Mo=null,Xf=0,bt&6)throw Error(he(331));var i=bt;for(bt|=4,De=e.current;De!==null;){var a=De,o=a.child;if(De.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsn()-_9?Us(e,0):x9|=n),Tr(e,t)}function V_(e,t){t===0&&(e.mode&1?(t=U0,U0<<=1,!(U0&130023424)&&(U0=4194304)):t=1);var n=er();e=Wa(e,t),e!==null&&(Z1(e,t,n),Tr(e,n))}function zL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V_(e,n)}function UL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),V_(e,n)}var K_;K_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||br.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,NL(e,t,n);gr=!!(e.flags&131072)}else gr=!1,Kt&&t.flags&1048576&&Yx(t,Uf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jd(e,t),e=t.pendingProps;var i=wc(t,Wn.current);pc(t,n),i=g9(null,t,r,e,i,n);var a=v9();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Er(r)?(a=!0,Bf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,d9(t),i.updater=tm,t.stateNode=i,i._reactInternals=t,J4(t,r,e,n),t=n5(null,t,r,!0,a,n)):(t.tag=0,Kt&&a&&i9(t),Yn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jL(r),e=Ti(r,e),i){case 0:t=t5(null,t,r,e,n);break e;case 1:t=O3(null,t,r,e,n);break e;case 11:t=N3(null,t,r,e,n);break e;case 14:t=k3(null,t,r,Ti(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),t5(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),O3(e,t,r,i,n);case 3:e:{if(k_(t),e===null)throw Error(he(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Jx(e,t),Gf(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Nc(Error(he(423)),t),t=R3(e,t,r,n,i);break e}else if(r!==i){i=Nc(Error(he(424)),t),t=R3(e,t,r,n,i);break e}else for(Ir=zo(t.stateNode.containerInfo.firstChild),Pr=t,Kt=!0,Si=null,n=r_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sc(),r===i){t=qa(e,t,n);break e}Yn(e,t,r,n)}t=t.child}return t;case 5:return i_(t),e===null&&X4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,V4(r,i)?o=null:a!==null&&V4(r,a)&&(t.flags|=32),N_(e,t),Yn(e,t,o,n),t.child;case 6:return e===null&&X4(t),null;case 13:return O_(e,t,n);case 4:return f9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cc(t,null,r,n):Yn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),N3(e,t,r,i,n);case 7:return Yn(e,t,t.pendingProps,n),t.child;case 8:return Yn(e,t,t.pendingProps.children,n),t.child;case 12:return Yn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$t(Hf,r._currentValue),r._currentValue=o,a!==null)if(Mi(a.value,o)){if(a.children===i.children&&!br.current){t=qa(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Ba(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Q4(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(he(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Q4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Yn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pc(t,n),i=ai(i),r=r(i),t.flags|=1,Yn(e,t,r,n),t.child;case 14:return r=t.type,i=Ti(r,t.pendingProps),i=Ti(r.type,i),k3(e,t,r,i,n);case 15:return C_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ti(r,i),Jd(e,t),t.tag=1,Er(r)?(e=!0,Bf(t)):e=!1,pc(t,n),t_(t,r,i),J4(t,r,i,n),n5(null,t,r,!0,e,n);case 19:return R_(e,t,n);case 22:return A_(e,t,n)}throw Error(he(156,t.tag))};function W_(e,t){return yx(e,t)}function HL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,n,r){return new HL(e,t,n,r)}function A9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jL(e){if(typeof e=="function")return A9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===K2)return 11;if(e===W2)return 14}return 2}function Go(e,t){var n=e.alternate;return n===null?(n=ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nf(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")A9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yl:return Hs(n.children,i,a,t);case V2:o=8,i|=8;break;case _4:return e=ei(12,n,t,i|2),e.elementType=_4,e.lanes=a,e;case w4:return e=ei(13,n,t,i),e.elementType=w4,e.lanes=a,e;case S4:return e=ei(19,n,t,i),e.elementType=S4,e.lanes=a,e;case tx:return am(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case JT:o=10;break e;case ex:o=9;break e;case K2:o=11;break e;case W2:o=14;break e;case So:o=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=ei(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Hs(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function am(e,t,n,r){return e=ei(22,e,r,t),e.elementType=tx,e.lanes=n,e.stateNode={isHidden:!1},e}function ng(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function rg(e,t,n){return t=ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GL(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$p(0),this.expirationTimes=$p(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$p(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function N9(e,t,n,r,i,a,o,s,l){return e=new GL(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ei(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},d9(a),e}function VL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q_)}catch(e){console.error(e)}}Q_(),qT.exports=zr;var Vc=qT.exports;const XL=wr(Vc);var j3=Vc;T4.createRoot=j3.createRoot,T4.hydrateRoot=j3.hydrateRoot;/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function og(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function s5(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PL=typeof WeakMap=="function"?WeakMap:Map;function D_(e,t,n){n=ja(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lh||(lh=!0,v5=r),s5(e,t)},n}function P_(e,t,n){n=ja(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){s5(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){s5(e,t),typeof r!="function"&&(Vo===null?Vo=new Set([this]):Vo.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function L3(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PL;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=XL.bind(null,e,t,n),t.then(e,e))}function D3(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function P3(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ja(-1,1),t.tag=2,Go(n,t,1))),n.lanes|=1),e)}var $L=ao.ReactCurrentOwner,gr=!1;function Qn(e,t,n,r){t.child=e===null?m_(t,null,n,r):Mc(t,e.child,n,r)}function $3(e,t,n,r,i){n=n.render;var a=t.ref;return Ec(t,i),r=w9(e,t,n,r,a,i),n=S9(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qa(e,t,i)):(Kt&&n&&f9(t),t.flags|=1,Qn(e,t,r,i),t.child)}function F3(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!D9(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,$_(e,t,a,r,i)):(e=gf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:k1,n(o,r)&&e.ref===t.ref)return Qa(e,t,i)}return t.flags|=1,e=Wo(a,r),e.ref=t.ref,e.return=t,t.child=e}function $_(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(k1(a,r)&&e.ref===t.ref)if(gr=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(gr=!0);else return t.lanes=e.lanes,Qa(e,t,i)}return l5(e,t,n,r,i)}function F_(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ft(uc,Or),Or|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ft(uc,Or),Or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ft(uc,Or),Or|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ft(uc,Or),Or|=r;return Qn(e,t,i,n),t.child}function B_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function l5(e,t,n,r,i){var a=Er(n)?qs:Yn.current;return a=Oc(t,a),Ec(t,i),n=w9(e,t,n,r,a,i),r=S9(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qa(e,t,i)):(Kt&&r&&f9(t),t.flags|=1,Qn(e,t,n,i),t.child)}function B3(e,t,n,r,i){if(Er(n)){var a=!0;Zf(t)}else a=!1;if(Ec(t,i),t.stateNode===null)hf(e,t),f_(t,n,r),o5(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=oi(c):(c=Er(n)?qs:Yn.current,c=Oc(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==c)&&O3(t,o,r,c),ko=!1;var f=t.memoizedState;o.state=f,rh(t,r,o,i),l=t.memoizedState,s!==r||f!==l||br.current||ko?(typeof u=="function"&&(a5(t,n,u,r),l=t.memoizedState),(s=ko||k3(t,n,s,r,f,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,u_(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:wi(t.type,s),o.props=c,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=oi(l):(l=Er(n)?qs:Yn.current,l=Oc(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&O3(t,o,r,l),ko=!1,f=t.memoizedState,o.state=f,rh(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||br.current||ko?(typeof h=="function"&&(a5(t,n,h,r),m=t.memoizedState),(c=ko||k3(t,n,c,r,f,m,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return c5(e,t,n,r,a,i)}function c5(e,t,n,r,i,a){B_(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&w3(t,n,!1),Qa(e,t,a);r=t.stateNode,$L.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Mc(t,e.child,null,a),t.child=Mc(t,null,s,a)):Qn(e,t,s,a),t.memoizedState=r.state,i&&w3(t,n,!0),t.child}function z_(e){var t=e.stateNode;t.pendingContext?_3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_3(e,t.context,!1),E9(e,t.containerInfo)}function z3(e,t,n,r,i){return Rc(),m9(i),t.flags|=256,Qn(e,t,n,r),t.child}var u5={dehydrated:null,treeContext:null,retryLane:0};function d5(e){return{baseLanes:e,cachePool:null,transitions:null}}function U_(e,t,n){var r=t.pendingProps,i=Xt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ft(Xt,i&1),e===null)return r5(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=ym(o,r,0,null),e=Hs(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=d5(n),t.memoizedState=u5,e):N9(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return FL(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wo(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Wo(s,a):(a=Hs(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?d5(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=u5,r}return a=e.child,e=a.sibling,r=Wo(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function N9(e,t){return t=ym({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ld(e,t,n,r){return r!==null&&m9(r),Mc(t,e.child,null,n),e=N9(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function FL(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=og(Error(he(422))),ld(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=ym({mode:"visible",children:r.children},i,0,null),a=Hs(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Mc(t,e.child,null,o),t.child.memoizedState=d5(o),t.memoizedState=u5,a);if(!(t.mode&1))return ld(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,a=Error(he(419)),r=og(a,r,void 0),ld(e,t,o,r)}if(s=(o&e.childLanes)!==0,gr||s){if(r=In,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Xa(e,i),Mi(r,e,i,-1))}return L9(),r=og(Error(he(421))),ld(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=QL.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Mr=Ho(i.nextSibling),Pr=t,Kt=!0,Ni=null,e!==null&&(Qr[Zr++]=Ba,Qr[Zr++]=za,Qr[Zr++]=Ys,Ba=e.id,za=e.overflow,Ys=t),t=N9(t,r.children),t.flags|=4096,t)}function U3(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),i5(e.return,t,n)}function sg(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function j_(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Qn(e,t,r.children,n),r=Xt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&U3(e,n,t);else if(e.tag===19)U3(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ft(Xt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ih(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sg(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ih(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sg(t,!0,n,null,a);break;case"together":sg(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(he(153));if(t.child!==null){for(e=t.child,n=Wo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function BL(e,t,n){switch(t.tag){case 3:z_(t),Rc();break;case 5:p_(t);break;case 1:Er(t.type)&&Zf(t);break;case 4:E9(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ft(th,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ft(Xt,Xt.current&1),t.flags|=128,null):n&t.child.childLanes?U_(e,t,n):(Ft(Xt,Xt.current&1),e=Qa(e,t,n),e!==null?e.sibling:null);Ft(Xt,Xt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return j_(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ft(Xt,Xt.current),r)break;return null;case 22:case 23:return t.lanes=0,F_(e,t,n)}return Qa(e,t,n)}var H_,f5,G_,V_;H_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};f5=function(){};G_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$s(sa.current);var a=null;switch(n){case"input":i=L4(e,i),r=L4(e,r),a=[];break;case"select":i=en({},i,{value:void 0}),r=en({},r,{value:void 0}),a=[];break;case"textarea":i=$4(e,i),r=$4(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xf)}B4(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(T1.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(T1.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&jt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};V_=function(e,t,n,r){n!==r&&(t.flags|=4)};function wu(e,t){if(!Kt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zL(e,t,n){var r=t.pendingProps;switch(h9(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(t),null;case 1:return Er(t.type)&&Qf(),Gn(t),null;case 3:return r=t.stateNode,Ic(),Vt(br),Vt(Yn),T9(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(od(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ni!==null&&(E5(Ni),Ni=null))),f5(e,t),Gn(t),null;case 5:x9(t);var i=$s(L1.current);if(n=t.type,e!==null&&t.stateNode!=null)G_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(he(166));return Gn(t),null}if(e=$s(sa.current),od(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Zi]=t,r[M1]=a,e=(t.mode&1)!==0,n){case"dialog":jt("cancel",r),jt("close",r);break;case"iframe":case"object":case"embed":jt("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zi]=t,e[M1]=r,H_(e,t,!1,!1),t.stateNode=e;e:{switch(o=z4(n,r),n){case"dialog":jt("cancel",e),jt("close",e),i=r;break;case"iframe":case"object":case"embed":jt("load",e),i=r;break;case"video":case"audio":for(i=0;iDc&&(t.flags|=128,r=!0,wu(a,!1),t.lanes=4194304)}else{if(!r)if(e=ih(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Kt)return Gn(t),null}else 2*ln()-a.renderingStartTime>Dc&&n!==1073741824&&(t.flags|=128,r=!0,wu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ln(),t.sibling=null,n=Xt.current,Ft(Xt,r?n&1|2:n&1),t):(Gn(t),null);case 22:case 23:return I9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Gn(t),t.subtreeFlags&6&&(t.flags|=8192)):Gn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function UL(e,t){switch(h9(t),t.tag){case 1:return Er(t.type)&&Qf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ic(),Vt(br),Vt(Yn),T9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return x9(t),null;case 13:if(Vt(Xt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Rc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(Xt),null;case 4:return Ic(),null;case 10:return v9(t.type._context),null;case 22:case 23:return I9(),null;case 24:return null;default:return null}}var cd=!1,Kn=!1,jL=typeof WeakSet=="function"?WeakSet:Set,De=null;function cc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){an(e,t,r)}else n.current=null}function h5(e,t,n){try{n()}catch(r){an(e,t,r)}}var j3=!1;function HL(e,t){if(X4=Wf,e=YT(),d9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=o),f===a&&++u===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Q4={focusedElem:e,selectionRange:n},Wf=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,E=m.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:wi(t.type,g),E);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(C){an(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return m=j3,j3=!1,m}function n1(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&h5(t,n,a)}i=i.next}while(i!==r)}}function gm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function m5(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function K_(e){var t=e.alternate;t!==null&&(e.alternate=null,K_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zi],delete t[M1],delete t[e5],delete t[SL],delete t[CL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W_(e){return e.tag===5||e.tag===3||e.tag===4}function H3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function p5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xf));else if(r!==4&&(e=e.child,e!==null))for(p5(e,t,n),e=e.sibling;e!==null;)p5(e,t,n),e=e.sibling}function g5(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(g5(e,t,n),e=e.sibling;e!==null;)g5(e,t,n),e=e.sibling}var Pn=null,Ci=!1;function po(e,t,n){for(n=n.child;n!==null;)q_(e,t,n),n=n.sibling}function q_(e,t,n){if(oa&&typeof oa.onCommitFiberUnmount=="function")try{oa.onCommitFiberUnmount(lm,n)}catch{}switch(n.tag){case 5:Kn||cc(n,t);case 6:var r=Pn,i=Ci;Pn=null,po(e,t,n),Pn=r,Ci=i,Pn!==null&&(Ci?(e=Pn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pn.removeChild(n.stateNode));break;case 18:Pn!==null&&(Ci?(e=Pn,n=n.stateNode,e.nodeType===8?eg(e.parentNode,n):e.nodeType===1&&eg(e,n),A1(e)):eg(Pn,n.stateNode));break;case 4:r=Pn,i=Ci,Pn=n.stateNode.containerInfo,Ci=!0,po(e,t,n),Pn=r,Ci=i;break;case 0:case 11:case 14:case 15:if(!Kn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&h5(n,t,o),i=i.next}while(i!==r)}po(e,t,n);break;case 1:if(!Kn&&(cc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){an(n,t,s)}po(e,t,n);break;case 21:po(e,t,n);break;case 22:n.mode&1?(Kn=(r=Kn)||n.memoizedState!==null,po(e,t,n),Kn=r):po(e,t,n);break;default:po(e,t,n)}}function G3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jL),t.forEach(function(r){var i=ZL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VL(r/1960))-r,10e?16:e,Po===null)var r=!1;else{if(e=Po,Po=null,ch=0,Et&6)throw Error(he(331));var i=Et;for(Et|=4,De=e.current;De!==null;){var a=De,o=a.child;if(De.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lln()-R9?js(e,0):O9|=n),xr(e,t)}function nw(e,t){t===0&&(e.mode&1?(t=ed,ed<<=1,!(ed&130023424)&&(ed=4194304)):t=1);var n=tr();e=Xa(e,t),e!==null&&(l0(e,t,n),xr(e,n))}function QL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nw(e,n)}function ZL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),nw(e,n)}var rw;rw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||br.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,BL(e,t,n);gr=!!(e.flags&131072)}else gr=!1,Kt&&t.flags&1048576&&o_(t,eh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hf(e,t),e=t.pendingProps;var i=Oc(t,Yn.current);Ec(t,n),i=w9(null,t,r,e,i,n);var a=S9();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Er(r)?(a=!0,Zf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,b9(t),i.updater=mm,t.stateNode=i,i._reactInternals=t,o5(t,r,e,n),t=c5(null,t,r,!0,a,n)):(t.tag=0,Kt&&a&&f9(t),Qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hf(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=eD(r),e=wi(r,e),i){case 0:t=l5(null,t,r,e,n);break e;case 1:t=B3(null,t,r,e,n);break e;case 11:t=$3(null,t,r,e,n);break e;case 14:t=F3(null,t,r,wi(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),l5(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),B3(e,t,r,i,n);case 3:e:{if(z_(t),e===null)throw Error(he(387));r=t.pendingProps,a=t.memoizedState,i=a.element,u_(e,t),rh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Lc(Error(he(423)),t),t=z3(e,t,r,n,i);break e}else if(r!==i){i=Lc(Error(he(424)),t),t=z3(e,t,r,n,i);break e}else for(Mr=Ho(t.stateNode.containerInfo.firstChild),Pr=t,Kt=!0,Ni=null,n=m_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rc(),r===i){t=Qa(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return p_(t),e===null&&r5(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Z4(r,i)?o=null:a!==null&&Z4(r,a)&&(t.flags|=32),B_(e,t),Qn(e,t,o,n),t.child;case 6:return e===null&&r5(t),null;case 13:return U_(e,t,n);case 4:return E9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mc(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),$3(e,t,r,i,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ft(th,r._currentValue),r._currentValue=o,a!==null)if(Pi(a.value,o)){if(a.children===i.children&&!br.current){t=Qa(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=ja(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),i5(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(he(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),i5(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Qn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ec(t,n),i=oi(i),r=r(i),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,i=wi(r,t.pendingProps),i=wi(r.type,i),F3(e,t,r,i,n);case 15:return $_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wi(r,i),hf(e,t),t.tag=1,Er(r)?(e=!0,Zf(t)):e=!1,Ec(t,n),f_(t,r,i),o5(t,r,i,n),c5(null,t,r,!0,e,n);case 19:return j_(e,t,n);case 22:return F_(e,t,n)}throw Error(he(156,t.tag))};function iw(e,t){return OT(e,t)}function JL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ti(e,t,n,r){return new JL(e,t,n,r)}function D9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eD(e){if(typeof e=="function")return D9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===e9)return 11;if(e===t9)return 14}return 2}function Wo(e,t){var n=e.alternate;return n===null?(n=ti(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gf(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")D9(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ec:return Hs(n.children,i,a,t);case J2:o=8,i|=8;break;case O4:return e=ti(12,n,t,i|2),e.elementType=O4,e.lanes=a,e;case R4:return e=ti(13,n,t,i),e.elementType=R4,e.lanes=a,e;case M4:return e=ti(19,n,t,i),e.elementType=M4,e.lanes=a,e;case hT:return ym(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dT:o=10;break e;case fT:o=9;break e;case e9:o=11;break e;case t9:o=14;break e;case No:o=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=ti(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Hs(e,t,n,r){return e=ti(7,e,r,t),e.lanes=n,e}function ym(e,t,n,r){return e=ti(22,e,r,t),e.elementType=hT,e.lanes=n,e.stateNode={isHidden:!1},e}function lg(e,t,n){return e=ti(6,e,null,t),e.lanes=n,e}function cg(e,t,n){return t=ti(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tD(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hp(0),this.expirationTimes=Hp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function P9(e,t,n,r,i,a,o,s,l){return e=new tD(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ti(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},b9(a),e}function nD(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lw)}catch(e){console.error(e)}}lw(),oT.exports=Ur;var Zc=oT.exports;const sD=wr(Zc);var Z3=Zc;N4.createRoot=Z3.createRoot,N4.hydrateRoot=Z3.hydrateRoot;/** * @remix-run/router v1.6.2 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Oc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZL(){return Math.random().toString(36).substr(2,8)}function V3(e,t){return{usr:e.state,key:e.key,idx:t}}function O1(e,t,n,r){return n===void 0&&(n=null),Tt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ro(t):t,{state:n,key:t&&t.key||r||ZL()})}function Zs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JL(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=dn.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Tt({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=dn.Pop;let b=u(),p=b==null?null:b-c;c=b,l&&l({action:s,location:g.location,delta:p})}function f(b,p){s=dn.Push;let v=O1(g.location,b,p);n&&n(v,b),c=u()+1;let T=V3(v,c),C=g.createHref(v);try{o.pushState(T,"",C)}catch{i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function h(b,p){s=dn.Replace;let v=O1(g.location,b,p);n&&n(v,b),c=u();let T=V3(v,c),C=g.createHref(v);o.replaceState(T,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function m(b){let p=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof b=="string"?b:Zs(b);return ft(p,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,p)}let g={get action(){return s},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(G3,d),l=b,()=>{i.removeEventListener(G3,d),l=null}},createHref(b){return t(i,b)},createURL:m,encodeLocation(b){let p=m(b);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:h,go(b){return o.go(b)}};return g}var gn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gn||(gn={}));const eD=new Set(["lazy","caseSensitive","path","id","index","children"]);function tD(e){return e.index===!0}function m5(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(ft(i.index!==!0||!i.children,"Cannot specify children on an index route"),ft(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),tD(i)){let l=Tt({},i,t(i),{id:s});return r[s]=l,l}else{let l=Tt({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=m5(i.children,t,o,r)),l}})}function oc(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ro(t):t,i=Kc(r.pathname||"/",n);if(i==null)return null;let a=Z_(e);nD(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=za([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(ft(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Z_(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:cD(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of J_(a.path))i(a,o,l)}),t}function J_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=J_(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function nD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rD=/^:\w+$/,iD=3,aD=2,oD=1,sD=10,lD=-2,K3=e=>e==="*";function cD(e,t){let n=e.split("/"),r=n.length;return n.some(K3)&&(r+=lD),t&&(r+=aD),n.filter(i=>!K3(i)).reduce((i,a)=>i+(rD.test(a)?iD:a===""?oD:sD),r)}function uD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dD(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(u==="*"){let f=s[d]||"";o=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=pD(s[d]||"",u),c},{}),pathname:a,pathnameBase:o,pattern:e}}function hD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Oc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function mD(e){try{return decodeURI(e)}catch(t){return Oc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pD(e,t){try{return decodeURIComponent(e)}catch(n){return Oc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Kc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ro(e):e;return{pathname:n?n.startsWith("/")?n:vD(n,t):t,search:bD(r),hash:ED(i)}}function vD(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ig(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function um(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function I9(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ro(e):(i=Tt({},e),ft(!i.pathname||!i.pathname.includes("?"),ig("?","pathname","search",i)),ft(!i.pathname||!i.pathname.includes("#"),ig("#","pathname","hash",i)),ft(!i.search||!i.search.includes("#"),ig("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let d=t.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=gD(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const za=e=>e.join("/").replace(/\/\/+/g,"/"),yD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ED=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,TD=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",t),new Response(null,Tt({},r,{headers:i}))};class M9{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ew(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const tw=["post","put","patch","delete"],xD=new Set(tw),_D=["get",...tw],wD=new Set(_D),SD=new Set([301,302,303,307,308]),CD=new Set([307,308]),ag={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},AD={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},W3={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},nw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ND=!rw,kD=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function OD(e){ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t;if(e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let Y=e.detectErrorBoundary;t=J=>({hasErrorBoundary:Y(J)})}else t=kD;let n={},r=m5(e.routes,t,void 0,n),i,a=e.basename||"/",o=Tt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),s=null,l=new Set,c=null,u=null,d=null,f=e.hydrationData!=null,h=oc(r,e.history.location,a),m=null;if(h==null){let Y=xi(404,{pathname:e.history.location.pathname}),{matches:J,route:oe}=ev(r);h=J,m={[oe.id]:Y}}let g=!h.some(Y=>Y.route.lazy)&&(!h.some(Y=>Y.route.loader)||e.hydrationData!=null),b,p={historyAction:e.history.action,location:e.history.location,matches:h,initialized:g,navigation:ag,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},v=dn.Pop,T=!1,C,R=!1,N=!1,O=[],$=[],M=new Map,L=0,X=-1,Z=new Map,Q=new Set,K=new Map,V=new Map,ne=new Map,B=!1;function w(){return s=e.history.listen(Y=>{let{action:J,location:oe,delta:Ne}=Y;if(B){B=!1;return}Oc(ne.size===0||Ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Re=vt({currentLocation:p.location,nextLocation:oe,historyAction:J});if(Re&&Ne!=null){B=!0,e.history.go(Ne*-1),gt(Re,{state:"blocked",location:oe,proceed(){gt(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ne)},reset(){be(Re),W({blockers:new Map(b.state.blockers)})}});return}return Se(J,oe)}),p.initialized||Se(dn.Pop,p.location),b}function D(){s&&s(),l.clear(),C&&C.abort(),p.fetchers.forEach((Y,J)=>j(J)),p.blockers.forEach((Y,J)=>be(J))}function A(Y){return l.add(Y),()=>l.delete(Y)}function W(Y){p=Tt({},p,Y),l.forEach(J=>J(p))}function te(Y,J){var oe,Ne;let Re=p.actionData!=null&&p.navigation.formMethod!=null&&Ma(p.navigation.formMethod)&&p.navigation.state==="loading"&&((oe=Y.state)==null?void 0:oe._isRedirect)!==!0,Ve;J.actionData?Object.keys(J.actionData).length>0?Ve=J.actionData:Ve=null:Re?Ve=p.actionData:Ve=null;let Xe=J.loaderData?J3(p.loaderData,J.loaderData,J.matches||[],J.errors):p.loaderData;for(let[Fe]of ne)be(Fe);let Ie=T===!0||p.navigation.formMethod!=null&&Ma(p.navigation.formMethod)&&((Ne=Y.state)==null?void 0:Ne._isRedirect)!==!0;i&&(r=i,i=void 0),W(Tt({},J,{actionData:Ve,loaderData:Xe,historyAction:v,location:Y,initialized:!0,navigation:ag,revalidation:"idle",restoreScrollPosition:re(Y,J.matches||p.matches),preventScrollReset:Ie,blockers:new Map(p.blockers)})),R||v===dn.Pop||(v===dn.Push?e.history.push(Y,Y.state):v===dn.Replace&&e.history.replace(Y,Y.state)),v=dn.Pop,T=!1,R=!1,N=!1,O=[],$=[]}async function P(Y,J){if(typeof Y=="number"){e.history.go(Y);return}let oe=p5(p.location,p.matches,a,o.v7_prependBasename,Y,J==null?void 0:J.fromRouteId,J==null?void 0:J.relative),{path:Ne,submission:Re,error:Ve}=q3(o.v7_normalizeFormMethod,!1,oe,J),Xe=p.location,Ie=O1(p.location,Ne,J&&J.state);Ie=Tt({},Ie,e.history.encodeLocation(Ie));let Fe=J&&J.replace!=null?J.replace:void 0,et=dn.Push;Fe===!0?et=dn.Replace:Fe===!1||Re!=null&&Ma(Re.formMethod)&&Re.formAction===p.location.pathname+p.location.search&&(et=dn.Replace);let At=J&&"preventScrollReset"in J?J.preventScrollReset===!0:void 0,Pn=vt({currentLocation:Xe,nextLocation:Ie,historyAction:et});if(Pn){gt(Pn,{state:"blocked",location:Ie,proceed(){gt(Pn,{state:"proceeding",proceed:void 0,reset:void 0,location:Ie}),P(Y,J)},reset(){be(Pn),W({blockers:new Map(p.blockers)})}});return}return await Se(et,Ie,{submission:Re,pendingError:Ve,preventScrollReset:At,replace:J&&J.replace})}function Te(){if(en(),W({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){Se(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}Se(v||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function Se(Y,J,oe){C&&C.abort(),C=null,v=Y,R=(oe&&oe.startUninterruptedRevalidation)===!0,G(p.location,p.matches),T=(oe&&oe.preventScrollReset)===!0;let Ne=i||r,Re=oe&&oe.overrideNavigation,Ve=oc(Ne,J,a);if(!Ve){let Tn=xi(404,{pathname:J.pathname}),{matches:xn,route:Vr}=ev(Ne);Dn(),te(J,{matches:xn,loaderData:{},errors:{[Vr.id]:Tn}});return}if(p.initialized&&DD(p.location,J)&&!(oe&&oe.submission&&Ma(oe.submission.formMethod))){te(J,{matches:Ve});return}C=new AbortController;let Xe=bu(e.history,J,C.signal,oe&&oe.submission),Ie,Fe;if(oe&&oe.pendingError)Fe={[sc(Ve).route.id]:oe.pendingError};else if(oe&&oe.submission&&Ma(oe.submission.formMethod)){let Tn=await Ce(Xe,J,oe.submission,Ve,{replace:oe.replace});if(Tn.shortCircuited)return;Ie=Tn.pendingActionData,Fe=Tn.pendingActionError,Re=Tt({state:"loading",location:J},oe.submission),Xe=new Request(Xe.url,{signal:Xe.signal})}let{shortCircuited:et,loaderData:At,errors:Pn}=await Ae(Xe,J,Ve,Re,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Ie,Fe);et||(C=null,te(J,Tt({matches:Ve},Ie?{actionData:Ie}:{},{loaderData:At,errors:Pn})))}async function Ce(Y,J,oe,Ne,Re){en();let Ve=Tt({state:"submitting",location:J},oe);W({navigation:Ve});let Xe,Ie=g5(Ne,J);if(!Ie.route.action&&!Ie.route.lazy)Xe={type:gn.error,error:xi(405,{method:Y.method,pathname:J.pathname,routeId:Ie.route.id})};else if(Xe=await yu("action",Y,Ie,Ne,n,t,a),Y.signal.aborted)return{shortCircuited:!0};if(vc(Xe)){let Fe;return Re&&Re.replace!=null?Fe=Re.replace:Fe=Xe.location===p.location.pathname+p.location.search,await Ct(p,Xe,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(Qu(Xe)){let Fe=sc(Ne,Ie.route.id);return(Re&&Re.replace)!==!0&&(v=dn.Push),{pendingActionData:{},pendingActionError:{[Fe.route.id]:Xe.error}}}if(Ps(Xe))throw xi(400,{type:"defer-action"});return{pendingActionData:{[Ie.route.id]:Xe.data}}}async function Ae(Y,J,oe,Ne,Re,Ve,Xe,Ie,Fe){let et=Ne;et||(et=Tt({state:"loading",location:J,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Re));let At=Re||Ve?Re||Ve:et.formMethod&&et.formAction&&et.formData&&et.formEncType?{formMethod:et.formMethod,formAction:et.formAction,formData:et.formData,formEncType:et.formEncType}:void 0,Pn=i||r,[Tn,xn]=Y3(e.history,p,oe,At,J,N,O,$,K,Pn,a,Ie,Fe);if(Dn(qt=>!(oe&&oe.some(Kr=>Kr.route.id===qt))||Tn&&Tn.some(Kr=>Kr.route.id===qt)),Tn.length===0&&xn.length===0){let qt=le();return te(J,Tt({matches:oe,loaderData:{},errors:Fe||null},Ie?{actionData:Ie}:{},qt?{fetchers:new Map(p.fetchers)}:{})),{shortCircuited:!0}}if(!R){xn.forEach(Kr=>{let Cl=p.fetchers.get(Kr.key),Op={state:"loading",data:Cl&&Cl.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Kr.key,Op)});let qt=Ie||p.actionData;W(Tt({navigation:et},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},xn.length>0?{fetchers:new Map(p.fetchers)}:{}))}X=++L,xn.forEach(qt=>{qt.controller&&M.set(qt.key,qt.controller)});let Vr=()=>xn.forEach(qt=>ie(qt.key));C&&C.signal.addEventListener("abort",Vr);let{results:cu,loaderResults:Cp,fetcherResults:M0}=await or(p.matches,oe,Tn,xn,Y);if(Y.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",Vr),xn.forEach(qt=>M.delete(qt.key));let uo=tv(cu);if(uo)return await Ct(p,uo,{replace:Xe}),{shortCircuited:!0};let{loaderData:L0,errors:Ap}=Z3(p,oe,Tn,Cp,Fe,xn,M0,V);V.forEach((qt,Kr)=>{qt.subscribe(Cl=>{(Cl||qt.done)&&V.delete(Kr)})});let Np=le(),kp=_e(X),D0=Np||kp||xn.length>0;return Tt({loaderData:L0,errors:Ap},D0?{fetchers:new Map(p.fetchers)}:{})}function qe(Y){return p.fetchers.get(Y)||AD}function xe(Y,J,oe,Ne){if(ND)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");M.has(Y)&&ie(Y);let Re=i||r,Ve=p5(p.location,p.matches,a,o.v7_prependBasename,oe,J,Ne==null?void 0:Ne.relative),Xe=oc(Re,Ve,a);if(!Xe){sr(Y,J,xi(404,{pathname:Ve}));return}let{path:Ie,submission:Fe}=q3(o.v7_normalizeFormMethod,!0,Ve,Ne),et=g5(Xe,Ie);if(T=(Ne&&Ne.preventScrollReset)===!0,Fe&&Ma(Fe.formMethod)){st(Y,J,Ie,et,Xe,Fe);return}K.set(Y,{routeId:J,path:Ie}),St(Y,J,Ie,et,Xe,Fe)}async function st(Y,J,oe,Ne,Re,Ve){if(en(),K.delete(Y),!Ne.route.action&&!Ne.route.lazy){let Ar=xi(405,{method:Ve.formMethod,pathname:oe,routeId:J});sr(Y,J,Ar);return}let Xe=p.fetchers.get(Y),Ie=Tt({state:"submitting"},Ve,{data:Xe&&Xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Ie),W({fetchers:new Map(p.fetchers)});let Fe=new AbortController,et=bu(e.history,oe,Fe.signal,Ve);M.set(Y,Fe);let At=await yu("action",et,Ne,Re,n,t,a);if(et.signal.aborted){M.get(Y)===Fe&&M.delete(Y);return}if(vc(At)){M.delete(Y),Q.add(Y);let Ar=Tt({state:"loading"},Ve,{data:void 0," _hasFetcherDoneAnything ":!0});return p.fetchers.set(Y,Ar),W({fetchers:new Map(p.fetchers)}),Ct(p,At,{submission:Ve,isFetchActionRedirect:!0})}if(Qu(At)){sr(Y,J,At.error);return}if(Ps(At))throw xi(400,{type:"defer-action"});let Pn=p.navigation.location||p.location,Tn=bu(e.history,Pn,Fe.signal),xn=i||r,Vr=p.navigation.state!=="idle"?oc(xn,p.navigation.location,a):p.matches;ft(Vr,"Didn't find any matches after fetcher action");let cu=++L;Z.set(Y,cu);let Cp=Tt({state:"loading",data:At.data},Ve,{" _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Cp);let[M0,uo]=Y3(e.history,p,Vr,Ve,Pn,N,O,$,K,xn,a,{[Ne.route.id]:At.data},void 0);uo.filter(Ar=>Ar.key!==Y).forEach(Ar=>{let Rp=Ar.key,M6=p.fetchers.get(Rp),EI={state:"loading",data:M6&&M6.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Rp,EI),Ar.controller&&M.set(Rp,Ar.controller)}),W({fetchers:new Map(p.fetchers)});let L0=()=>uo.forEach(Ar=>ie(Ar.key));Fe.signal.addEventListener("abort",L0);let{results:Ap,loaderResults:Np,fetcherResults:kp}=await or(p.matches,Vr,M0,uo,Tn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",L0),Z.delete(Y),M.delete(Y),uo.forEach(Ar=>M.delete(Ar.key));let D0=tv(Ap);if(D0)return Ct(p,D0);let{loaderData:qt,errors:Kr}=Z3(p,p.matches,M0,Np,void 0,uo,kp,V),Cl={state:"idle",data:At.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Y,Cl);let Op=_e(cu);p.navigation.state==="loading"&&cu>X?(ft(v,"Expected pending action"),C&&C.abort(),te(p.navigation.location,{matches:Vr,loaderData:qt,errors:Kr,fetchers:new Map(p.fetchers)})):(W(Tt({errors:Kr,loaderData:J3(p.loaderData,qt,Vr,Kr)},Op?{fetchers:new Map(p.fetchers)}:{})),N=!1)}async function St(Y,J,oe,Ne,Re,Ve){let Xe=p.fetchers.get(Y),Ie=Tt({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ve,{data:Xe&&Xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Ie),W({fetchers:new Map(p.fetchers)});let Fe=new AbortController,et=bu(e.history,oe,Fe.signal);M.set(Y,Fe);let At=await yu("loader",et,Ne,Re,n,t,a);if(Ps(At)&&(At=await sw(At,et.signal,!0)||At),M.get(Y)===Fe&&M.delete(Y),et.signal.aborted)return;if(vc(At)){Q.add(Y),await Ct(p,At);return}if(Qu(At)){let Tn=sc(p.matches,J);p.fetchers.delete(Y),W({fetchers:new Map(p.fetchers),errors:{[Tn.route.id]:At.error}});return}ft(!Ps(At),"Unhandled fetcher deferred data");let Pn={state:"idle",data:At.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Y,Pn),W({fetchers:new Map(p.fetchers)})}async function Ct(Y,J,oe){var Ne;let{submission:Re,replace:Ve,isFetchActionRedirect:Xe}=oe===void 0?{}:oe;J.revalidate&&(N=!0);let Ie=O1(Y.location,J.location,Tt({_isRedirect:!0},Xe?{_isFetchActionRedirect:!0}:{}));if(ft(Ie,"Expected a location on the redirect navigation"),nw.test(J.location)&&rw&&typeof((Ne=window)==null?void 0:Ne.location)<"u"){let xn=e.history.createURL(J.location),Vr=Kc(xn.pathname,a)==null;if(window.location.origin!==xn.origin||Vr){Ve?window.location.replace(J.location):window.location.assign(J.location);return}}C=null;let Fe=Ve===!0?dn.Replace:dn.Push,{formMethod:et,formAction:At,formEncType:Pn,formData:Tn}=Y.navigation;!Re&&et&&At&&Tn&&Pn&&(Re={formMethod:et,formAction:At,formEncType:Pn,formData:Tn}),CD.has(J.status)&&Re&&Ma(Re.formMethod)?await Se(Fe,Ie,{submission:Tt({},Re,{formAction:J.location}),preventScrollReset:T}):Xe?await Se(Fe,Ie,{overrideNavigation:{state:"loading",location:Ie,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:Re,preventScrollReset:T}):await Se(Fe,Ie,{overrideNavigation:{state:"loading",location:Ie,formMethod:Re?Re.formMethod:void 0,formAction:Re?Re.formAction:void 0,formEncType:Re?Re.formEncType:void 0,formData:Re?Re.formData:void 0},preventScrollReset:T})}async function or(Y,J,oe,Ne,Re){let Ve=await Promise.all([...oe.map(Fe=>yu("loader",Re,Fe,J,n,t,a)),...Ne.map(Fe=>Fe.matches&&Fe.match&&Fe.controller?yu("loader",bu(e.history,Fe.path,Fe.controller.signal),Fe.match,Fe.matches,n,t,a):{type:gn.error,error:xi(404,{pathname:Fe.path})})]),Xe=Ve.slice(0,oe.length),Ie=Ve.slice(oe.length);return await Promise.all([nv(Y,oe,Xe,Xe.map(()=>Re.signal),!1,p.loaderData),nv(Y,Ne.map(Fe=>Fe.match),Ie,Ne.map(Fe=>Fe.controller?Fe.controller.signal:null),!0)]),{results:Ve,loaderResults:Xe,fetcherResults:Ie}}function en(){N=!0,O.push(...Dn()),K.forEach((Y,J)=>{M.has(J)&&($.push(J),ie(J))})}function sr(Y,J,oe){let Ne=sc(p.matches,J);j(Y),W({errors:{[Ne.route.id]:oe},fetchers:new Map(p.fetchers)})}function j(Y){M.has(Y)&&ie(Y),K.delete(Y),Z.delete(Y),Q.delete(Y),p.fetchers.delete(Y)}function ie(Y){let J=M.get(Y);ft(J,"Expected fetch controller: "+Y),J.abort(),M.delete(Y)}function ae(Y){for(let J of Y){let Ne={state:"idle",data:qe(J).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(J,Ne)}}function le(){let Y=[],J=!1;for(let oe of Q){let Ne=p.fetchers.get(oe);ft(Ne,"Expected fetcher: "+oe),Ne.state==="loading"&&(Q.delete(oe),Y.push(oe),J=!0)}return ae(Y),J}function _e(Y){let J=[];for(let[oe,Ne]of Z)if(Ne0}function ce(Y,J){let oe=p.blockers.get(Y)||W3;return ne.get(Y)!==J&&ne.set(Y,J),oe}function be(Y){p.blockers.delete(Y),ne.delete(Y)}function gt(Y,J){let oe=p.blockers.get(Y)||W3;ft(oe.state==="unblocked"&&J.state==="blocked"||oe.state==="blocked"&&J.state==="blocked"||oe.state==="blocked"&&J.state==="proceeding"||oe.state==="blocked"&&J.state==="unblocked"||oe.state==="proceeding"&&J.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+J.state),p.blockers.set(Y,J),W({blockers:new Map(p.blockers)})}function vt(Y){let{currentLocation:J,nextLocation:oe,historyAction:Ne}=Y;if(ne.size===0)return;ne.size>1&&Oc(!1,"A router only supports one blocker at a time");let Re=Array.from(ne.entries()),[Ve,Xe]=Re[Re.length-1],Ie=p.blockers.get(Ve);if(!(Ie&&Ie.state==="proceeding")&&Xe({currentLocation:J,nextLocation:oe,historyAction:Ne}))return Ve}function Dn(Y){let J=[];return V.forEach((oe,Ne)=>{(!Y||Y(Ne))&&(oe.cancel(),J.push(Ne),V.delete(Ne))}),J}function ba(Y,J,oe){if(c=Y,d=J,u=oe||(Ne=>Ne.key),!f&&p.navigation===ag){f=!0;let Ne=re(p.location,p.matches);Ne!=null&&W({restoreScrollPosition:Ne})}return()=>{c=null,d=null,u=null}}function G(Y,J){if(c&&u&&d){let oe=J.map(Re=>rv(Re,p.loaderData)),Ne=u(Y,oe)||Y.key;c[Ne]=d()}}function re(Y,J){if(c&&u&&d){let oe=J.map(Ve=>rv(Ve,p.loaderData)),Ne=u(Y,oe)||Y.key,Re=c[Ne];if(typeof Re=="number")return Re}return null}function pe(Y){n={},i=m5(Y,t,void 0,n)}return b={get basename(){return a},get state(){return p},get routes(){return r},initialize:w,subscribe:A,enableScrollRestoration:ba,navigate:P,fetch:xe,revalidate:Te,createHref:Y=>e.history.createHref(Y),encodeLocation:Y=>e.history.encodeLocation(Y),getFetcher:qe,deleteFetcher:j,dispose:D,getBlocker:ce,deleteBlocker:be,_internalFetchControllers:M,_internalActiveDeferreds:V,_internalSetRoutes:pe},b}function RD(e){return e!=null&&"formData"in e}function p5(e,t,n,r,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let u of t)if(s.push(u),u.route.id===a){l=u;break}}else s=t,l=t[t.length-1];let c=I9(i||".",um(s).map(u=>u.pathnameBase),Kc(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!L9(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:za([n,c.pathname])),Zs(c)}function q3(e,t,n,r){if(!r||!RD(r))return{path:n};if(r.formMethod&&!FD(r.formMethod))return{path:n,error:xi(405,{method:r.formMethod})};let i;if(r.formData){let s=r.formMethod||"get";if(i={formMethod:e?s.toUpperCase():s.toLowerCase(),formAction:ow(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},Ma(i.formMethod))return{path:n,submission:i}}let a=ro(n),o=aw(r.formData);return t&&a.search&&L9(a.search)&&o.append("index",""),a.search="?"+o,{path:Zs(a),submission:i}}function ID(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Y3(e,t,n,r,i,a,o,s,l,c,u,d,f){let h=f?Object.values(f)[0]:d?Object.values(d)[0]:void 0,m=e.createURL(t.location),g=e.createURL(i),b=f?Object.keys(f)[0]:void 0,v=ID(n,b).filter((C,R)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(MD(t.loaderData,t.matches[R],C)||o.some($=>$===C.route.id))return!0;let N=t.matches[R],O=C;return X3(C,Tt({currentUrl:m,currentParams:N.params,nextUrl:g,nextParams:O.params},r,{actionResult:h,defaultShouldRevalidate:a||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||iw(N,O)}))}),T=[];return l.forEach((C,R)=>{if(!n.some(M=>M.route.id===C.routeId))return;let N=oc(c,C.path,u);if(!N){T.push({key:R,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let O=g5(N,C.path);if(s.includes(R)){T.push({key:R,routeId:C.routeId,path:C.path,matches:N,match:O,controller:new AbortController});return}X3(O,Tt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:a}))&&T.push({key:R,routeId:C.routeId,path:C.path,matches:N,match:O,controller:new AbortController})}),[v,T]}function MD(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function iw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function X3(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Q3(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];ft(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Oc(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!eD.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Tt({},t(i),{lazy:void 0}))}async function yu(e,t,n,r,i,a,o,s,l,c){s===void 0&&(s=!1),l===void 0&&(l=!1);let u,d,f,h=b=>{let p,v=new Promise((T,C)=>p=C);return f=()=>p(),t.signal.addEventListener("abort",f),Promise.race([b({request:t,params:n.params,context:c}),v])};try{let b=n.route[e];if(n.route.lazy)if(b)d=(await Promise.all([h(b),Q3(n.route,a,i)]))[0];else if(await Q3(n.route,a,i),b=n.route[e],b)d=await h(b);else if(e==="action"){let p=new URL(t.url),v=p.pathname+p.search;throw xi(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:gn.data,data:void 0};else if(b)d=await h(b);else{let p=new URL(t.url),v=p.pathname+p.search;throw xi(404,{pathname:v})}ft(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=gn.error,d=b}finally{f&&t.signal.removeEventListener("abort",f)}if($D(d)){let b=d.status;if(SD.has(b)){let T=d.headers.get("Location");if(ft(T,"Redirects returned/thrown from loaders/actions must have a Location header"),!nw.test(T))T=p5(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,T);else if(!s){let C=new URL(t.url),R=T.startsWith("//")?new URL(C.protocol+T):new URL(T),N=Kc(R.pathname,o)!=null;R.origin===C.origin&&N&&(T=R.pathname+R.search+R.hash)}if(s)throw d.headers.set("Location",T),d;return{type:gn.redirect,status:b,location:T,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:u||gn.data,response:d};let p,v=d.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?p=await d.json():p=await d.text(),u===gn.error?{type:u,error:new M9(b,d.statusText,p),headers:d.headers}:{type:gn.data,data:p,statusCode:d.status,headers:d.headers}}if(u===gn.error)return{type:u,error:d};if(PD(d)){var m,g;return{type:gn.deferred,deferredData:d,statusCode:(m=d.init)==null?void 0:m.status,headers:((g=d.init)==null?void 0:g.headers)&&new Headers(d.init.headers)}}return{type:gn.data,data:d}}function bu(e,t,n,r){let i=e.createURL(ow(t)).toString(),a={signal:n};if(r&&Ma(r.formMethod)){let{formMethod:o,formEncType:s,formData:l}=r;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?aw(l):l}return new Request(i,a)}function aw(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function LD(e,t,n,r,i){let a={},o=null,s,l=!1,c={};return n.forEach((u,d)=>{let f=t[d].route.id;if(ft(!vc(u),"Cannot handle redirect results in processLoaderData"),Qu(u)){let h=sc(e,f),m=u.error;r&&(m=Object.values(r)[0],r=void 0),o=o||{},o[h.route.id]==null&&(o[h.route.id]=m),a[f]=void 0,l||(l=!0,s=ew(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Ps(u)?(i.set(f,u.deferredData),a[f]=u.deferredData.data):a[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[f]=u.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function Z3(e,t,n,r,i,a,o,s){let{loaderData:l,errors:c}=LD(t,n,r,i,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ev(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function xi(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new M9(e||500,o,new Error(s),!0)}function tv(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(vc(n))return n}}function ow(e){let t=typeof e=="string"?ro(e):e;return Zs(Tt({},t,{hash:""}))}function DD(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ps(e){return e.type===gn.deferred}function Qu(e){return e.type===gn.error}function vc(e){return(e&&e.type)===gn.redirect}function PD(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function $D(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FD(e){return wD.has(e.toLowerCase())}function Ma(e){return xD.has(e.toLowerCase())}async function nv(e,t,n,r,i,a){for(let o=0;od.route.id===l.route.id),u=c!=null&&!iw(c,l)&&(a&&a[l.route.id])!==void 0;if(Ps(s)&&(i||u)){let d=r[o];ft(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await sw(s,d,i).then(f=>{f&&(n[o]=f||n[o])})}}}async function sw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:gn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:gn.error,error:i}}return{type:gn.data,data:e.deferredData.data}}}function L9(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function rv(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function g5(e,t){let n=typeof t=="string"?ro(t).search:t.search;if(e[e.length-1].route.index&&L9(n||""))return e[e.length-1];let r=um(e);return r[r.length-1]}/** + */function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Pc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cD(){return Math.random().toString(36).substr(2,8)}function ev(e,t){return{usr:e.state,key:e.key,idx:t}}function B1(e,t,n,r){return n===void 0&&(n=null),Tt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?oo(t):t,{state:n,key:t&&t.key||r||cD()})}function Js(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function oo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function uD(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=hn.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Tt({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=hn.Pop;let E=u(),p=E==null?null:E-c;c=E,l&&l({action:s,location:g.location,delta:p})}function f(E,p){s=hn.Push;let v=B1(g.location,E,p);n&&n(v,E),c=u()+1;let T=ev(v,c),C=g.createHref(v);try{o.pushState(T,"",C)}catch{i.location.assign(C)}a&&l&&l({action:s,location:g.location,delta:1})}function h(E,p){s=hn.Replace;let v=B1(g.location,E,p);n&&n(v,E),c=u();let T=ev(v,c),C=g.createHref(v);o.replaceState(T,"",C),a&&l&&l({action:s,location:g.location,delta:0})}function m(E){let p=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof E=="string"?E:Js(E);return ft(p,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,p)}let g={get action(){return s},get location(){return e(i,o)},listen(E){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(J3,d),l=E,()=>{i.removeEventListener(J3,d),l=null}},createHref(E){return t(i,E)},createURL:m,encodeLocation(E){let p=m(E);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:h,go(E){return o.go(E)}};return g}var xn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xn||(xn={}));const dD=new Set(["lazy","caseSensitive","path","id","index","children"]);function fD(e){return e.index===!0}function x5(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if(ft(i.index!==!0||!i.children,"Cannot specify children on an index route"),ft(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),fD(i)){let l=Tt({},i,t(i),{id:s});return r[s]=l,l}else{let l=Tt({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=x5(i.children,t,o,r)),l}})}function dc(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?oo(t):t,i=Jc(r.pathname||"/",n);if(i==null)return null;let a=cw(e);hD(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ha([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(ft(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),cw(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ED(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of uw(a.path))i(a,o,l)}),t}function uw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=uw(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mD=/^:\w+$/,pD=3,gD=2,vD=1,yD=10,bD=-2,tv=e=>e==="*";function ED(e,t){let n=e.split("/"),r=n.length;return n.some(tv)&&(r+=bD),t&&(r+=gD),n.filter(i=>!tv(i)).reduce((i,a)=>i+(mD.test(a)?pD:a===""?vD:yD),r)}function xD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function TD(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(u==="*"){let f=s[d]||"";o=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=CD(s[d]||"",u),c},{}),pathname:a,pathnameBase:o,pattern:e}}function wD(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function SD(e){try{return decodeURI(e)}catch(t){return Pc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function CD(e,t){try{return decodeURIComponent(e)}catch(n){return Pc(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Jc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function AD(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?oo(e):e;return{pathname:n?n.startsWith("/")?n:ND(n,t):t,search:OD(r),hash:RD(i)}}function ND(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ug(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _m(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function z9(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=oo(e):(i=Tt({},e),ft(!i.pathname||!i.pathname.includes("?"),ug("?","pathname","search",i)),ft(!i.pathname||!i.pathname.includes("#"),ug("#","pathname","hash",i)),ft(!i.search||!i.search.includes("#"),ug("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let d=t.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=AD(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ha=e=>e.join("/").replace(/\/\/+/g,"/"),kD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,MD=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",t),new Response(null,Tt({},r,{headers:i}))};class U9{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function dw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fw=["post","put","patch","delete"],ID=new Set(fw),LD=["get",...fw],DD=new Set(LD),PD=new Set([301,302,303,307,308]),$D=new Set([307,308]),dg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},FD={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},nv={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},hw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BD=!mw,zD=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function UD(e){ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t;if(e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let Y=e.detectErrorBoundary;t=J=>({hasErrorBoundary:Y(J)})}else t=zD;let n={},r=x5(e.routes,t,void 0,n),i,a=e.basename||"/",o=Tt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),s=null,l=new Set,c=null,u=null,d=null,f=e.hydrationData!=null,h=dc(r,e.history.location,a),m=null;if(h==null){let Y=Si(404,{pathname:e.history.location.pathname}),{matches:J,route:oe}=cv(r);h=J,m={[oe.id]:Y}}let g=!h.some(Y=>Y.route.lazy)&&(!h.some(Y=>Y.route.loader)||e.hydrationData!=null),E,p={historyAction:e.history.action,location:e.history.location,matches:h,initialized:g,navigation:dg,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},v=hn.Pop,T=!1,C,O=!1,N=!1,R=[],D=[],I=new Map,L=0,X=-1,Z=new Map,Q=new Set,K=new Map,V=new Map,ne=new Map,B=!1;function w(){return s=e.history.listen(Y=>{let{action:J,location:oe,delta:Ne}=Y;if(B){B=!1;return}Pc(ne.size===0||Ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Re=yt({currentLocation:p.location,nextLocation:oe,historyAction:J});if(Re&&Ne!=null){B=!0,e.history.go(Ne*-1),vt(Re,{state:"blocked",location:oe,proceed(){vt(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),e.history.go(Ne)},reset(){be(Re),W({blockers:new Map(E.state.blockers)})}});return}return Se(J,oe)}),p.initialized||Se(hn.Pop,p.location),E}function P(){s&&s(),l.clear(),C&&C.abort(),p.fetchers.forEach((Y,J)=>H(J)),p.blockers.forEach((Y,J)=>be(J))}function A(Y){return l.add(Y),()=>l.delete(Y)}function W(Y){p=Tt({},p,Y),l.forEach(J=>J(p))}function te(Y,J){var oe,Ne;let Re=p.actionData!=null&&p.navigation.formMethod!=null&&Da(p.navigation.formMethod)&&p.navigation.state==="loading"&&((oe=Y.state)==null?void 0:oe._isRedirect)!==!0,Ke;J.actionData?Object.keys(J.actionData).length>0?Ke=J.actionData:Ke=null:Re?Ke=p.actionData:Ke=null;let Xe=J.loaderData?lv(p.loaderData,J.loaderData,J.matches||[],J.errors):p.loaderData;for(let[Fe]of ne)be(Fe);let Me=T===!0||p.navigation.formMethod!=null&&Da(p.navigation.formMethod)&&((Ne=Y.state)==null?void 0:Ne._isRedirect)!==!0;i&&(r=i,i=void 0),W(Tt({},J,{actionData:Ke,loaderData:Xe,historyAction:v,location:Y,initialized:!0,navigation:dg,revalidation:"idle",restoreScrollPosition:re(Y,J.matches||p.matches),preventScrollReset:Me,blockers:new Map(p.blockers)})),O||v===hn.Pop||(v===hn.Push?e.history.push(Y,Y.state):v===hn.Replace&&e.history.replace(Y,Y.state)),v=hn.Pop,T=!1,O=!1,N=!1,R=[],D=[]}async function $(Y,J){if(typeof Y=="number"){e.history.go(Y);return}let oe=T5(p.location,p.matches,a,o.v7_prependBasename,Y,J==null?void 0:J.fromRouteId,J==null?void 0:J.relative),{path:Ne,submission:Re,error:Ke}=rv(o.v7_normalizeFormMethod,!1,oe,J),Xe=p.location,Me=B1(p.location,Ne,J&&J.state);Me=Tt({},Me,e.history.encodeLocation(Me));let Fe=J&&J.replace!=null?J.replace:void 0,tt=hn.Push;Fe===!0?tt=hn.Replace:Fe===!1||Re!=null&&Da(Re.formMethod)&&Re.formAction===p.location.pathname+p.location.search&&(tt=hn.Replace);let Nt=J&&"preventScrollReset"in J?J.preventScrollReset===!0:void 0,jn=yt({currentLocation:Xe,nextLocation:Me,historyAction:tt});if(jn){vt(jn,{state:"blocked",location:Me,proceed(){vt(jn,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),$(Y,J)},reset(){be(jn),W({blockers:new Map(p.blockers)})}});return}return await Se(tt,Me,{submission:Re,pendingError:Ke,preventScrollReset:Nt,replace:J&&J.replace})}function xe(){if(tn(),W({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){Se(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}Se(v||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function Se(Y,J,oe){C&&C.abort(),C=null,v=Y,O=(oe&&oe.startUninterruptedRevalidation)===!0,G(p.location,p.matches),T=(oe&&oe.preventScrollReset)===!0;let Ne=i||r,Re=oe&&oe.overrideNavigation,Ke=dc(Ne,J,a);if(!Ke){let An=Si(404,{pathname:J.pathname}),{matches:Nn,route:Kr}=cv(Ne);Un(),te(J,{matches:Nn,loaderData:{},errors:{[Kr.id]:An}});return}if(p.initialized&&KD(p.location,J)&&!(oe&&oe.submission&&Da(oe.submission.formMethod))){te(J,{matches:Ke});return}C=new AbortController;let Xe=Au(e.history,J,C.signal,oe&&oe.submission),Me,Fe;if(oe&&oe.pendingError)Fe={[fc(Ke).route.id]:oe.pendingError};else if(oe&&oe.submission&&Da(oe.submission.formMethod)){let An=await Ce(Xe,J,oe.submission,Ke,{replace:oe.replace});if(An.shortCircuited)return;Me=An.pendingActionData,Fe=An.pendingActionError,Re=Tt({state:"loading",location:J},oe.submission),Xe=new Request(Xe.url,{signal:Xe.signal})}let{shortCircuited:tt,loaderData:Nt,errors:jn}=await Ae(Xe,J,Ke,Re,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,Me,Fe);tt||(C=null,te(J,Tt({matches:Ke},Me?{actionData:Me}:{},{loaderData:Nt,errors:jn})))}async function Ce(Y,J,oe,Ne,Re){tn();let Ke=Tt({state:"submitting",location:J},oe);W({navigation:Ke});let Xe,Me=_5(Ne,J);if(!Me.route.action&&!Me.route.lazy)Xe={type:xn.error,error:Si(405,{method:Y.method,pathname:J.pathname,routeId:Me.route.id})};else if(Xe=await Cu("action",Y,Me,Ne,n,t,a),Y.signal.aborted)return{shortCircuited:!0};if(Tc(Xe)){let Fe;return Re&&Re.replace!=null?Fe=Re.replace:Fe=Xe.location===p.location.pathname+p.location.search,await At(p,Xe,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(a1(Xe)){let Fe=fc(Ne,Me.route.id);return(Re&&Re.replace)!==!0&&(v=hn.Push),{pendingActionData:{},pendingActionError:{[Fe.route.id]:Xe.error}}}if(Fs(Xe))throw Si(400,{type:"defer-action"});return{pendingActionData:{[Me.route.id]:Xe.data}}}async function Ae(Y,J,oe,Ne,Re,Ke,Xe,Me,Fe){let tt=Ne;tt||(tt=Tt({state:"loading",location:J,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Re));let Nt=Re||Ke?Re||Ke:tt.formMethod&&tt.formAction&&tt.formData&&tt.formEncType?{formMethod:tt.formMethod,formAction:tt.formAction,formData:tt.formData,formEncType:tt.formEncType}:void 0,jn=i||r,[An,Nn]=iv(e.history,p,oe,Nt,J,N,R,D,K,jn,a,Me,Fe);if(Un(qt=>!(oe&&oe.some(Wr=>Wr.route.id===qt))||An&&An.some(Wr=>Wr.route.id===qt)),An.length===0&&Nn.length===0){let qt=le();return te(J,Tt({matches:oe,loaderData:{},errors:Fe||null},Me?{actionData:Me}:{},qt?{fetchers:new Map(p.fetchers)}:{})),{shortCircuited:!0}}if(!O){Nn.forEach(Wr=>{let Rl=p.fetchers.get(Wr.key),Pp={state:"loading",data:Rl&&Rl.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Wr.key,Pp)});let qt=Me||p.actionData;W(Tt({navigation:tt},qt?Object.keys(qt).length===0?{actionData:null}:{actionData:qt}:{},Nn.length>0?{fetchers:new Map(p.fetchers)}:{}))}X=++L,Nn.forEach(qt=>{qt.controller&&I.set(qt.key,qt.controller)});let Kr=()=>Nn.forEach(qt=>ie(qt.key));C&&C.signal.addEventListener("abort",Kr);let{results:vu,loaderResults:Mp,fetcherResults:K0}=await sr(p.matches,oe,An,Nn,Y);if(Y.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",Kr),Nn.forEach(qt=>I.delete(qt.key));let mo=uv(vu);if(mo)return await At(p,mo,{replace:Xe}),{shortCircuited:!0};let{loaderData:W0,errors:Ip}=sv(p,oe,An,Mp,Fe,Nn,K0,V);V.forEach((qt,Wr)=>{qt.subscribe(Rl=>{(Rl||qt.done)&&V.delete(Wr)})});let Lp=le(),Dp=_e(X),q0=Lp||Dp||Nn.length>0;return Tt({loaderData:W0,errors:Ip},q0?{fetchers:new Map(p.fetchers)}:{})}function qe(Y){return p.fetchers.get(Y)||FD}function Te(Y,J,oe,Ne){if(BD)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");I.has(Y)&&ie(Y);let Re=i||r,Ke=T5(p.location,p.matches,a,o.v7_prependBasename,oe,J,Ne==null?void 0:Ne.relative),Xe=dc(Re,Ke,a);if(!Xe){lr(Y,J,Si(404,{pathname:Ke}));return}let{path:Me,submission:Fe}=rv(o.v7_normalizeFormMethod,!0,Ke,Ne),tt=_5(Xe,Me);if(T=(Ne&&Ne.preventScrollReset)===!0,Fe&&Da(Fe.formMethod)){st(Y,J,Me,tt,Xe,Fe);return}K.set(Y,{routeId:J,path:Me}),Ct(Y,J,Me,tt,Xe,Fe)}async function st(Y,J,oe,Ne,Re,Ke){if(tn(),K.delete(Y),!Ne.route.action&&!Ne.route.lazy){let Ar=Si(405,{method:Ke.formMethod,pathname:oe,routeId:J});lr(Y,J,Ar);return}let Xe=p.fetchers.get(Y),Me=Tt({state:"submitting"},Ke,{data:Xe&&Xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Me),W({fetchers:new Map(p.fetchers)});let Fe=new AbortController,tt=Au(e.history,oe,Fe.signal,Ke);I.set(Y,Fe);let Nt=await Cu("action",tt,Ne,Re,n,t,a);if(tt.signal.aborted){I.get(Y)===Fe&&I.delete(Y);return}if(Tc(Nt)){I.delete(Y),Q.add(Y);let Ar=Tt({state:"loading"},Ke,{data:void 0," _hasFetcherDoneAnything ":!0});return p.fetchers.set(Y,Ar),W({fetchers:new Map(p.fetchers)}),At(p,Nt,{submission:Ke,isFetchActionRedirect:!0})}if(a1(Nt)){lr(Y,J,Nt.error);return}if(Fs(Nt))throw Si(400,{type:"defer-action"});let jn=p.navigation.location||p.location,An=Au(e.history,jn,Fe.signal),Nn=i||r,Kr=p.navigation.state!=="idle"?dc(Nn,p.navigation.location,a):p.matches;ft(Kr,"Didn't find any matches after fetcher action");let vu=++L;Z.set(Y,vu);let Mp=Tt({state:"loading",data:Nt.data},Ke,{" _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Mp);let[K0,mo]=iv(e.history,p,Kr,Ke,jn,N,R,D,K,Nn,a,{[Ne.route.id]:Nt.data},void 0);mo.filter(Ar=>Ar.key!==Y).forEach(Ar=>{let $p=Ar.key,j8=p.fetchers.get($p),RM={state:"loading",data:j8&&j8.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set($p,RM),Ar.controller&&I.set($p,Ar.controller)}),W({fetchers:new Map(p.fetchers)});let W0=()=>mo.forEach(Ar=>ie(Ar.key));Fe.signal.addEventListener("abort",W0);let{results:Ip,loaderResults:Lp,fetcherResults:Dp}=await sr(p.matches,Kr,K0,mo,An);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",W0),Z.delete(Y),I.delete(Y),mo.forEach(Ar=>I.delete(Ar.key));let q0=uv(Ip);if(q0)return At(p,q0);let{loaderData:qt,errors:Wr}=sv(p,p.matches,K0,Lp,void 0,mo,Dp,V),Rl={state:"idle",data:Nt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Y,Rl);let Pp=_e(vu);p.navigation.state==="loading"&&vu>X?(ft(v,"Expected pending action"),C&&C.abort(),te(p.navigation.location,{matches:Kr,loaderData:qt,errors:Wr,fetchers:new Map(p.fetchers)})):(W(Tt({errors:Wr,loaderData:lv(p.loaderData,qt,Kr,Wr)},Pp?{fetchers:new Map(p.fetchers)}:{})),N=!1)}async function Ct(Y,J,oe,Ne,Re,Ke){let Xe=p.fetchers.get(Y),Me=Tt({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Ke,{data:Xe&&Xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(Y,Me),W({fetchers:new Map(p.fetchers)});let Fe=new AbortController,tt=Au(e.history,oe,Fe.signal);I.set(Y,Fe);let Nt=await Cu("loader",tt,Ne,Re,n,t,a);if(Fs(Nt)&&(Nt=await yw(Nt,tt.signal,!0)||Nt),I.get(Y)===Fe&&I.delete(Y),tt.signal.aborted)return;if(Tc(Nt)){Q.add(Y),await At(p,Nt);return}if(a1(Nt)){let An=fc(p.matches,J);p.fetchers.delete(Y),W({fetchers:new Map(p.fetchers),errors:{[An.route.id]:Nt.error}});return}ft(!Fs(Nt),"Unhandled fetcher deferred data");let jn={state:"idle",data:Nt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Y,jn),W({fetchers:new Map(p.fetchers)})}async function At(Y,J,oe){var Ne;let{submission:Re,replace:Ke,isFetchActionRedirect:Xe}=oe===void 0?{}:oe;J.revalidate&&(N=!0);let Me=B1(Y.location,J.location,Tt({_isRedirect:!0},Xe?{_isFetchActionRedirect:!0}:{}));if(ft(Me,"Expected a location on the redirect navigation"),hw.test(J.location)&&mw&&typeof((Ne=window)==null?void 0:Ne.location)<"u"){let Nn=e.history.createURL(J.location),Kr=Jc(Nn.pathname,a)==null;if(window.location.origin!==Nn.origin||Kr){Ke?window.location.replace(J.location):window.location.assign(J.location);return}}C=null;let Fe=Ke===!0?hn.Replace:hn.Push,{formMethod:tt,formAction:Nt,formEncType:jn,formData:An}=Y.navigation;!Re&&tt&&Nt&&An&&jn&&(Re={formMethod:tt,formAction:Nt,formEncType:jn,formData:An}),$D.has(J.status)&&Re&&Da(Re.formMethod)?await Se(Fe,Me,{submission:Tt({},Re,{formAction:J.location}),preventScrollReset:T}):Xe?await Se(Fe,Me,{overrideNavigation:{state:"loading",location:Me,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:Re,preventScrollReset:T}):await Se(Fe,Me,{overrideNavigation:{state:"loading",location:Me,formMethod:Re?Re.formMethod:void 0,formAction:Re?Re.formAction:void 0,formEncType:Re?Re.formEncType:void 0,formData:Re?Re.formData:void 0},preventScrollReset:T})}async function sr(Y,J,oe,Ne,Re){let Ke=await Promise.all([...oe.map(Fe=>Cu("loader",Re,Fe,J,n,t,a)),...Ne.map(Fe=>Fe.matches&&Fe.match&&Fe.controller?Cu("loader",Au(e.history,Fe.path,Fe.controller.signal),Fe.match,Fe.matches,n,t,a):{type:xn.error,error:Si(404,{pathname:Fe.path})})]),Xe=Ke.slice(0,oe.length),Me=Ke.slice(oe.length);return await Promise.all([dv(Y,oe,Xe,Xe.map(()=>Re.signal),!1,p.loaderData),dv(Y,Ne.map(Fe=>Fe.match),Me,Ne.map(Fe=>Fe.controller?Fe.controller.signal:null),!0)]),{results:Ke,loaderResults:Xe,fetcherResults:Me}}function tn(){N=!0,R.push(...Un()),K.forEach((Y,J)=>{I.has(J)&&(D.push(J),ie(J))})}function lr(Y,J,oe){let Ne=fc(p.matches,J);H(Y),W({errors:{[Ne.route.id]:oe},fetchers:new Map(p.fetchers)})}function H(Y){I.has(Y)&&ie(Y),K.delete(Y),Z.delete(Y),Q.delete(Y),p.fetchers.delete(Y)}function ie(Y){let J=I.get(Y);ft(J,"Expected fetch controller: "+Y),J.abort(),I.delete(Y)}function ae(Y){for(let J of Y){let Ne={state:"idle",data:qe(J).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(J,Ne)}}function le(){let Y=[],J=!1;for(let oe of Q){let Ne=p.fetchers.get(oe);ft(Ne,"Expected fetcher: "+oe),Ne.state==="loading"&&(Q.delete(oe),Y.push(oe),J=!0)}return ae(Y),J}function _e(Y){let J=[];for(let[oe,Ne]of Z)if(Ne0}function ce(Y,J){let oe=p.blockers.get(Y)||nv;return ne.get(Y)!==J&&ne.set(Y,J),oe}function be(Y){p.blockers.delete(Y),ne.delete(Y)}function vt(Y,J){let oe=p.blockers.get(Y)||nv;ft(oe.state==="unblocked"&&J.state==="blocked"||oe.state==="blocked"&&J.state==="blocked"||oe.state==="blocked"&&J.state==="proceeding"||oe.state==="blocked"&&J.state==="unblocked"||oe.state==="proceeding"&&J.state==="unblocked","Invalid blocker state transition: "+oe.state+" -> "+J.state),p.blockers.set(Y,J),W({blockers:new Map(p.blockers)})}function yt(Y){let{currentLocation:J,nextLocation:oe,historyAction:Ne}=Y;if(ne.size===0)return;ne.size>1&&Pc(!1,"A router only supports one blocker at a time");let Re=Array.from(ne.entries()),[Ke,Xe]=Re[Re.length-1],Me=p.blockers.get(Ke);if(!(Me&&Me.state==="proceeding")&&Xe({currentLocation:J,nextLocation:oe,historyAction:Ne}))return Ke}function Un(Y){let J=[];return V.forEach((oe,Ne)=>{(!Y||Y(Ne))&&(oe.cancel(),J.push(Ne),V.delete(Ne))}),J}function xa(Y,J,oe){if(c=Y,d=J,u=oe||(Ne=>Ne.key),!f&&p.navigation===dg){f=!0;let Ne=re(p.location,p.matches);Ne!=null&&W({restoreScrollPosition:Ne})}return()=>{c=null,d=null,u=null}}function G(Y,J){if(c&&u&&d){let oe=J.map(Re=>fv(Re,p.loaderData)),Ne=u(Y,oe)||Y.key;c[Ne]=d()}}function re(Y,J){if(c&&u&&d){let oe=J.map(Ke=>fv(Ke,p.loaderData)),Ne=u(Y,oe)||Y.key,Re=c[Ne];if(typeof Re=="number")return Re}return null}function pe(Y){n={},i=x5(Y,t,void 0,n)}return E={get basename(){return a},get state(){return p},get routes(){return r},initialize:w,subscribe:A,enableScrollRestoration:xa,navigate:$,fetch:Te,revalidate:xe,createHref:Y=>e.history.createHref(Y),encodeLocation:Y=>e.history.encodeLocation(Y),getFetcher:qe,deleteFetcher:H,dispose:P,getBlocker:ce,deleteBlocker:be,_internalFetchControllers:I,_internalActiveDeferreds:V,_internalSetRoutes:pe},E}function jD(e){return e!=null&&"formData"in e}function T5(e,t,n,r,i,a,o){let s,l;if(a!=null&&o!=="path"){s=[];for(let u of t)if(s.push(u),u.route.id===a){l=u;break}}else s=t,l=t[t.length-1];let c=z9(i||".",_m(s).map(u=>u.pathnameBase),Jc(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!j9(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Ha([n,c.pathname])),Js(c)}function rv(e,t,n,r){if(!r||!jD(r))return{path:n};if(r.formMethod&&!YD(r.formMethod))return{path:n,error:Si(405,{method:r.formMethod})};let i;if(r.formData){let s=r.formMethod||"get";if(i={formMethod:e?s.toUpperCase():s.toLowerCase(),formAction:vw(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},Da(i.formMethod))return{path:n,submission:i}}let a=oo(n),o=gw(r.formData);return t&&a.search&&j9(a.search)&&o.append("index",""),a.search="?"+o,{path:Js(a),submission:i}}function HD(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function iv(e,t,n,r,i,a,o,s,l,c,u,d,f){let h=f?Object.values(f)[0]:d?Object.values(d)[0]:void 0,m=e.createURL(t.location),g=e.createURL(i),E=f?Object.keys(f)[0]:void 0,v=HD(n,E).filter((C,O)=>{if(C.route.lazy)return!0;if(C.route.loader==null)return!1;if(GD(t.loaderData,t.matches[O],C)||o.some(D=>D===C.route.id))return!0;let N=t.matches[O],R=C;return av(C,Tt({currentUrl:m,currentParams:N.params,nextUrl:g,nextParams:R.params},r,{actionResult:h,defaultShouldRevalidate:a||m.pathname+m.search===g.pathname+g.search||m.search!==g.search||pw(N,R)}))}),T=[];return l.forEach((C,O)=>{if(!n.some(I=>I.route.id===C.routeId))return;let N=dc(c,C.path,u);if(!N){T.push({key:O,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let R=_5(N,C.path);if(s.includes(O)){T.push({key:O,routeId:C.routeId,path:C.path,matches:N,match:R,controller:new AbortController});return}av(R,Tt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:h,defaultShouldRevalidate:a}))&&T.push({key:O,routeId:C.routeId,path:C.path,matches:N,match:R,controller:new AbortController})}),[v,T]}function GD(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function pw(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function av(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function ov(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];ft(i,"No route found in manifest");let a={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Pc(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!dD.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Tt({},t(i),{lazy:void 0}))}async function Cu(e,t,n,r,i,a,o,s,l,c){s===void 0&&(s=!1),l===void 0&&(l=!1);let u,d,f,h=E=>{let p,v=new Promise((T,C)=>p=C);return f=()=>p(),t.signal.addEventListener("abort",f),Promise.race([E({request:t,params:n.params,context:c}),v])};try{let E=n.route[e];if(n.route.lazy)if(E)d=(await Promise.all([h(E),ov(n.route,a,i)]))[0];else if(await ov(n.route,a,i),E=n.route[e],E)d=await h(E);else if(e==="action"){let p=new URL(t.url),v=p.pathname+p.search;throw Si(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:xn.data,data:void 0};else if(E)d=await h(E);else{let p=new URL(t.url),v=p.pathname+p.search;throw Si(404,{pathname:v})}ft(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(E){u=xn.error,d=E}finally{f&&t.signal.removeEventListener("abort",f)}if(qD(d)){let E=d.status;if(PD.has(E)){let T=d.headers.get("Location");if(ft(T,"Redirects returned/thrown from loaders/actions must have a Location header"),!hw.test(T))T=T5(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,T);else if(!s){let C=new URL(t.url),O=T.startsWith("//")?new URL(C.protocol+T):new URL(T),N=Jc(O.pathname,o)!=null;O.origin===C.origin&&N&&(T=O.pathname+O.search+O.hash)}if(s)throw d.headers.set("Location",T),d;return{type:xn.redirect,status:E,location:T,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:u||xn.data,response:d};let p,v=d.headers.get("Content-Type");return v&&/\bapplication\/json\b/.test(v)?p=await d.json():p=await d.text(),u===xn.error?{type:u,error:new U9(E,d.statusText,p),headers:d.headers}:{type:xn.data,data:p,statusCode:d.status,headers:d.headers}}if(u===xn.error)return{type:u,error:d};if(WD(d)){var m,g;return{type:xn.deferred,deferredData:d,statusCode:(m=d.init)==null?void 0:m.status,headers:((g=d.init)==null?void 0:g.headers)&&new Headers(d.init.headers)}}return{type:xn.data,data:d}}function Au(e,t,n,r){let i=e.createURL(vw(t)).toString(),a={signal:n};if(r&&Da(r.formMethod)){let{formMethod:o,formEncType:s,formData:l}=r;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?gw(l):l}return new Request(i,a)}function gw(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function VD(e,t,n,r,i){let a={},o=null,s,l=!1,c={};return n.forEach((u,d)=>{let f=t[d].route.id;if(ft(!Tc(u),"Cannot handle redirect results in processLoaderData"),a1(u)){let h=fc(e,f),m=u.error;r&&(m=Object.values(r)[0],r=void 0),o=o||{},o[h.route.id]==null&&(o[h.route.id]=m),a[f]=void 0,l||(l=!0,s=dw(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Fs(u)?(i.set(f,u.deferredData),a[f]=u.deferredData.data):a[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[f]=u.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function sv(e,t,n,r,i,a,o,s){let{loaderData:l,errors:c}=VD(t,n,r,i,s);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function cv(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Si(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new U9(e||500,o,new Error(s),!0)}function uv(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Tc(n))return n}}function vw(e){let t=typeof e=="string"?oo(e):e;return Js(Tt({},t,{hash:""}))}function KD(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Fs(e){return e.type===xn.deferred}function a1(e){return e.type===xn.error}function Tc(e){return(e&&e.type)===xn.redirect}function WD(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function qD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function YD(e){return DD.has(e.toLowerCase())}function Da(e){return ID.has(e.toLowerCase())}async function dv(e,t,n,r,i,a){for(let o=0;od.route.id===l.route.id),u=c!=null&&!pw(c,l)&&(a&&a[l.route.id])!==void 0;if(Fs(s)&&(i||u)){let d=r[o];ft(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await yw(s,d,i).then(f=>{f&&(n[o]=f||n[o])})}}}async function yw(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:xn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:xn.error,error:i}}return{type:xn.data,data:e.deferredData.data}}}function j9(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function fv(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function _5(e,t){let n=typeof t=="string"?oo(t).search:t.search;if(e[e.length-1].route.index&&j9(n||""))return e[e.length-1];let r=_m(e);return r[r.length-1]}/** * React Router v6.11.2 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Jf(){return Jf=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),o=y.useRef(!1);return uw(()=>{o.current=!0}),y.useCallback(function(l,c){if(c===void 0&&(c={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let u=I9(l,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:za([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,a,i,e])}const UD=y.createContext(null);function HD(e){let t=y.useContext(cs).outlet;return t&&y.createElement(UD.Provider,{value:e},t)}function dw(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=y.useContext(cs),{pathname:i}=ll(),a=JSON.stringify(um(r).map(o=>o.pathnameBase));return y.useMemo(()=>I9(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function jD(e,t,n){n0()||ft(!1);let{navigator:r}=y.useContext(Wc),{matches:i}=y.useContext(cs),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=ll(),c;if(t){var u;let g=typeof t=="string"?ro(t):t;s==="/"||(u=g.pathname)!=null&&u.startsWith(s)||ft(!1),c=g}else c=l;let d=c.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=oc(e,{pathname:f}),m=qD(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:za([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:za([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return t&&m?y.createElement(fm.Provider,{value:{location:Jf({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dn.Pop}},m):m}function GD(){let e=ZD(),t=ew(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,a)}const VD=y.createElement(GD,null);class KD extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?y.createElement(cs.Provider,{value:this.props.routeContext},y.createElement(cw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WD(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(dm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(cs.Provider,{value:t},r)}function qD(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ft(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,c)=>{let u=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;n&&(d=l.route.errorElement||VD);let f=t.concat(a.slice(0,c+1)),h=()=>{let m;return u?m=d:l.route.Component?m=y.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=s,y.createElement(WD,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?y.createElement(KD,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var v5;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(v5||(v5={}));var R1;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(R1||(R1={}));function YD(e){let t=y.useContext(dm);return t||ft(!1),t}function XD(e){let t=y.useContext(lw);return t||ft(!1),t}function QD(e){let t=y.useContext(cs);return t||ft(!1),t}function fw(e){let t=QD(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function ZD(){var e;let t=y.useContext(cw),n=XD(R1.UseRouteError),r=fw(R1.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function JD(){let{router:e}=YD(v5.UseNavigateStable),t=fw(R1.UseNavigateStable),n=y.useRef(!1);return uw(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Jf({fromRouteId:t},a)))},[e,t])}function eP(e){let{fallbackElement:t,router:n}=e,[r,i]=y.useState(n.state);y.useLayoutEffect(()=>n.subscribe(i),[n,i]);let a=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,c,u)=>n.navigate(l,{state:c,preventScrollReset:u==null?void 0:u.preventScrollReset}),replace:(l,c,u)=>n.navigate(l,{replace:!0,state:c,preventScrollReset:u==null?void 0:u.preventScrollReset})}),[n]),o=n.basename||"/",s=y.useMemo(()=>({router:n,navigator:a,static:!1,basename:o}),[n,a,o]);return y.createElement(y.Fragment,null,y.createElement(dm.Provider,{value:s},y.createElement(lw.Provider,{value:r},y.createElement(rP,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:a},n.state.initialized?y.createElement(tP,{routes:n.routes,state:r}):t))),null)}function tP(e){let{routes:t,state:n}=e;return jD(t,void 0,n)}function nP(e){return HD(e.context)}function rP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=dn.Pop,navigator:a,static:o=!1}=e;n0()&&ft(!1);let s=t.replace(/^\/*/,"/"),l=y.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=ro(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=r,m=y.useMemo(()=>{let g=Kc(c,s);return g==null?null:{location:{pathname:g,search:u,hash:d,state:f,key:h},navigationType:i}},[s,c,u,d,f,h,i]);return m==null?null:y.createElement(Wc.Provider,{value:l},y.createElement(fm.Provider,{children:n,value:m}))}var iv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(iv||(iv={}));new Promise(()=>{});function iP(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),o=y.useRef(!1);return xw(()=>{o.current=!0}),y.useCallback(function(l,c){if(c===void 0&&(c={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let u=z9(l,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Ha([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,a,i,e])}const ZD=y.createContext(null);function JD(e){let t=y.useContext(fs).outlet;return t&&y.createElement(ZD.Provider,{value:e},t)}function Tw(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=y.useContext(fs),{pathname:i}=cl(),a=JSON.stringify(_m(r).map(o=>o.pathnameBase));return y.useMemo(()=>z9(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function eP(e,t,n){f0()||ft(!1);let{navigator:r}=y.useContext(eu),{matches:i}=y.useContext(fs),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=cl(),c;if(t){var u;let g=typeof t=="string"?oo(t):t;s==="/"||(u=g.pathname)!=null&&u.startsWith(s)||ft(!1),c=g}else c=l;let d=c.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=dc(e,{pathname:f}),m=aP(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:Ha([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Ha([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n);return t&&m?y.createElement(Sm.Provider,{value:{location:fh({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:hn.Pop}},m):m}function tP(){let e=cP(),t=dw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,a)}const nP=y.createElement(tP,null);class rP extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?y.createElement(fs.Provider,{value:this.props.routeContext},y.createElement(Ew.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iP(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(wm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(fs.Provider,{value:t},r)}function aP(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ft(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,c)=>{let u=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;n&&(d=l.route.errorElement||nP);let f=t.concat(a.slice(0,c+1)),h=()=>{let m;return u?m=d:l.route.Component?m=y.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=s,y.createElement(iP,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?y.createElement(rP,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var w5;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(w5||(w5={}));var z1;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(z1||(z1={}));function oP(e){let t=y.useContext(wm);return t||ft(!1),t}function sP(e){let t=y.useContext(bw);return t||ft(!1),t}function lP(e){let t=y.useContext(fs);return t||ft(!1),t}function _w(e){let t=lP(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function cP(){var e;let t=y.useContext(Ew),n=sP(z1.UseRouteError),r=_w(z1.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function uP(){let{router:e}=oP(w5.UseNavigateStable),t=_w(z1.UseNavigateStable),n=y.useRef(!1);return xw(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,fh({fromRouteId:t},a)))},[e,t])}function dP(e){let{fallbackElement:t,router:n}=e,[r,i]=y.useState(n.state);y.useLayoutEffect(()=>n.subscribe(i),[n,i]);let a=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,c,u)=>n.navigate(l,{state:c,preventScrollReset:u==null?void 0:u.preventScrollReset}),replace:(l,c,u)=>n.navigate(l,{replace:!0,state:c,preventScrollReset:u==null?void 0:u.preventScrollReset})}),[n]),o=n.basename||"/",s=y.useMemo(()=>({router:n,navigator:a,static:!1,basename:o}),[n,a,o]);return y.createElement(y.Fragment,null,y.createElement(wm.Provider,{value:s},y.createElement(bw.Provider,{value:r},y.createElement(mP,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:a},n.state.initialized?y.createElement(fP,{routes:n.routes,state:r}):t))),null)}function fP(e){let{routes:t,state:n}=e;return eP(t,void 0,n)}function hP(e){return JD(e.context)}function mP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hn.Pop,navigator:a,static:o=!1}=e;f0()&&ft(!1);let s=t.replace(/^\/*/,"/"),l=y.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=oo(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:h="default"}=r,m=y.useMemo(()=>{let g=Jc(c,s);return g==null?null:{location:{pathname:g,search:u,hash:d,state:f,key:h},navigationType:i}},[s,c,u,d,f,h,i]);return m==null?null:y.createElement(eu.Provider,{value:l},y.createElement(Sm.Provider,{children:n,value:m}))}var hv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(hv||(hv={}));new Promise(()=>{});function pP(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.11.2 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function oP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sP(e,t){return e.button===0&&(!t||t==="_self")&&!oP(e)}function y5(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function lP(e,t){let n=y5(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(i=>{n.append(r,i)});return n}const cP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function uP(e,t){return OD({basename:t==null?void 0:t.basename,future:I1({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:QL({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dP(),routes:e,mapRouteProperties:iP}).initialize()}function dP(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=I1({},t,{errors:fP(t.errors)})),t}function fP(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new M9(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",n[r]=a}else n[r]=i;return n}const hP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eh=y.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u}=t,d=aP(t,cP),{basename:f}=y.useContext(Wc),h,m=!1;if(typeof c=="string"&&mP.test(c)&&(h=c,hP))try{let v=new URL(window.location.href),T=c.startsWith("//")?new URL(v.protocol+c):new URL(c),C=Kc(T.pathname,f);T.origin===v.origin&&C!=null?c=C+T.search+T.hash:m=!0}catch{}let g=BD(c,{relative:i}),b=pP(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i});function p(v){r&&r(v),v.defaultPrevented||b(v)}return y.createElement("a",I1({},d,{href:h||g,onClick:m||a?r:p,ref:n,target:l}))});var av;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(av||(av={}));var ov;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ov||(ov={}));function pP(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=Hr(),l=ll(),c=dw(e,{relative:o});return y.useCallback(u=>{if(sP(u,n)){u.preventDefault();let d=r!==void 0?r:Zs(l)===Zs(c);s(e,{replace:d,state:i,preventScrollReset:a,relative:o})}},[l,s,c,r,i,n,e,a,o])}function hw(e){let t=y.useRef(y5(e)),n=y.useRef(!1),r=ll(),i=y.useMemo(()=>lP(r.search,n.current?null:t.current),[r.search]),a=Hr(),o=y.useCallback((s,l)=>{const c=y5(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}let gP={data:""},vP=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||gP,yP=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bP=/\/\*[^]*?\*\/| +/g,sv=/\n+/g,Ro=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Ro(o,a):a+"{"+Ro(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Ro(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ro.p?Ro.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ea={},mw=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+mw(e[n]);return t}return e},EP=(e,t,n,r,i)=>{let a=mw(e),o=Ea[a]||(Ea[a]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(a));if(!Ea[o]){let l=a!==e?e:(c=>{let u,d,f=[{}];for(;u=yP.exec(c.replace(bP,""));)u[4]?f.shift():u[3]?(d=u[3].replace(sv," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(sv," ").trim();return f[0]})(e);Ea[o]=Ro(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&Ea.g?Ea.g:null;return n&&(Ea.g=Ea[o]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Ea[o],t,r,s),o},TP=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Ro(s,""):s===!1?"":s}return r+i+(o??"")},"");function hm(e){let t=this||{},n=e.call?e(t.p):e;return EP(n.unshift?n.raw?TP(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,vP(t.target),t.g,t.o,t.k)}let pw,b5,E5;hm.bind({g:1});let Ya=hm.bind({k:1});function xP(e,t,n,r){Ro.p=t,pw=e,b5=n,E5=r}function us(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:b5&&b5()},s),n.o=/ *go\d+/.test(l),s.className=hm.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let c=e;return e[0]&&(c=s.as||e,delete s.as),E5&&c[0]&&E5(s),pw(c,s)}return t?t(i):i}}var _P=e=>typeof e=="function",th=(e,t)=>_P(e)?e(t):e,wP=(()=>{let e=0;return()=>(++e).toString()})(),gw=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),SP=20,rf=new Map,CP=1e3,lv=e=>{if(rf.has(e))return;let t=setTimeout(()=>{rf.delete(e),cl({type:4,toastId:e})},CP);rf.set(e,t)},AP=e=>{let t=rf.get(e);t&&clearTimeout(t)},T5=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,SP)};case 1:return t.toast.id&&AP(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?T5(e,{type:1,toast:n}):T5(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?lv(r):e.toasts.forEach(a=>{lv(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},af=[],of={toasts:[],pausedAt:void 0},cl=e=>{of=T5(of,e),af.forEach(t=>{t(of)})},NP={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},kP=(e={})=>{let[t,n]=y.useState(of);y.useEffect(()=>(af.push(n),()=>{let i=af.indexOf(n);i>-1&&af.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||NP[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},OP=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||wP()}),r0=e=>(t,n)=>{let r=OP(t,e,n);return cl({type:2,toast:r}),r.id},vr=(e,t)=>r0("blank")(e,t);vr.error=r0("error");vr.success=r0("success");vr.loading=r0("loading");vr.custom=r0("custom");vr.dismiss=e=>{cl({type:3,toastId:e})};vr.remove=e=>cl({type:4,toastId:e});vr.promise=(e,t,n)=>{let r=vr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(vr.success(th(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{vr.error(th(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var RP=(e,t)=>{cl({type:1,toast:{id:e,height:t}})},IP=()=>{cl({type:5,time:Date.now()})},MP=e=>{let{toasts:t,pausedAt:n}=kP(e);y.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&vr.dismiss(s.id);return}return setTimeout(()=>vr.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=y.useCallback(()=>{n&&cl({type:6,time:Date.now()})},[n]),i=y.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=o||{},u=t.filter(h=>(h.position||c)===(a.position||c)&&h.height),d=u.findIndex(h=>h.id===a.id),f=u.filter((h,m)=>mh.visible).slice(...s?[f+1]:[0,f]).reduce((h,m)=>h+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:RP,startPause:IP,endPause:r,calculateOffset:i}}},LP=Ya` + */function U1(){return U1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function vP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yP(e,t){return e.button===0&&(!t||t==="_self")&&!vP(e)}function S5(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function bP(e,t){let n=S5(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(i=>{n.append(r,i)});return n}const EP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function xP(e,t){return UD({basename:t==null?void 0:t.basename,future:U1({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:lD({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||TP(),routes:e,mapRouteProperties:pP}).initialize()}function TP(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=U1({},t,{errors:_P(t.errors)})),t}function _P(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new U9(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let a=new Error(i.message);a.stack="",n[r]=a}else n[r]=i;return n}const wP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hh=y.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u}=t,d=gP(t,EP),{basename:f}=y.useContext(eu),h,m=!1;if(typeof c=="string"&&SP.test(c)&&(h=c,wP))try{let v=new URL(window.location.href),T=c.startsWith("//")?new URL(v.protocol+c):new URL(c),C=Jc(T.pathname,f);T.origin===v.origin&&C!=null?c=C+T.search+T.hash:m=!0}catch{}let g=XD(c,{relative:i}),E=CP(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i});function p(v){r&&r(v),v.defaultPrevented||E(v)}return y.createElement("a",U1({},d,{href:h||g,onClick:m||a?r:p,ref:n,target:l}))});var mv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(mv||(mv={}));var pv;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pv||(pv={}));function CP(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=Hr(),l=cl(),c=Tw(e,{relative:o});return y.useCallback(u=>{if(yP(u,n)){u.preventDefault();let d=r!==void 0?r:Js(l)===Js(c);s(e,{replace:d,state:i,preventScrollReset:a,relative:o})}},[l,s,c,r,i,n,e,a,o])}function ww(e){let t=y.useRef(S5(e)),n=y.useRef(!1),r=cl(),i=y.useMemo(()=>bP(r.search,n.current?null:t.current),[r.search]),a=Hr(),o=y.useCallback((s,l)=>{const c=S5(typeof s=="function"?s(i):s);n.current=!0,a("?"+c,l)},[a,i]);return[i,o]}let AP={data:""},NP=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||AP,kP=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,OP=/\/\*[^]*?\*\/| +/g,gv=/\n+/g,Lo=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Lo(o,a):a+"{"+Lo(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Lo(o,t?t.replace(/([^,])+/g,s=>a.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Lo.p?Lo.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ta={},Sw=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Sw(e[n]);return t}return e},RP=(e,t,n,r,i)=>{let a=Sw(e),o=Ta[a]||(Ta[a]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(a));if(!Ta[o]){let l=a!==e?e:(c=>{let u,d,f=[{}];for(;u=kP.exec(c.replace(OP,""));)u[4]?f.shift():u[3]?(d=u[3].replace(gv," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(gv," ").trim();return f[0]})(e);Ta[o]=Lo(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&Ta.g?Ta.g:null;return n&&(Ta.g=Ta[o]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Ta[o],t,r,s),o},MP=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Lo(s,""):s===!1?"":s}return r+i+(o??"")},"");function Cm(e){let t=this||{},n=e.call?e(t.p):e;return RP(n.unshift?n.raw?MP(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,NP(t.target),t.g,t.o,t.k)}let Cw,C5,A5;Cm.bind({g:1});let Za=Cm.bind({k:1});function IP(e,t,n,r){Lo.p=t,Cw=e,C5=n,A5=r}function hs(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:C5&&C5()},s),n.o=/ *go\d+/.test(l),s.className=Cm.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let c=e;return e[0]&&(c=s.as||e,delete s.as),A5&&c[0]&&A5(s),Cw(c,s)}return t?t(i):i}}var LP=e=>typeof e=="function",mh=(e,t)=>LP(e)?e(t):e,DP=(()=>{let e=0;return()=>(++e).toString()})(),Aw=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),PP=20,vf=new Map,$P=1e3,vv=e=>{if(vf.has(e))return;let t=setTimeout(()=>{vf.delete(e),ul({type:4,toastId:e})},$P);vf.set(e,t)},FP=e=>{let t=vf.get(e);t&&clearTimeout(t)},N5=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,PP)};case 1:return t.toast.id&&FP(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:n}=t;return e.toasts.find(a=>a.id===n.id)?N5(e,{type:1,toast:n}):N5(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vv(r):e.toasts.forEach(a=>{vv(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===r||r===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+i}))}}},yf=[],bf={toasts:[],pausedAt:void 0},ul=e=>{bf=N5(bf,e),yf.forEach(t=>{t(bf)})},BP={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},zP=(e={})=>{let[t,n]=y.useState(bf);y.useEffect(()=>(yf.push(n),()=>{let i=yf.indexOf(n);i>-1&&yf.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var a,o;return{...e,...e[i.type],...i,duration:i.duration||((a=e[i.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||BP[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},UP=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||DP()}),h0=e=>(t,n)=>{let r=UP(t,e,n);return ul({type:2,toast:r}),r.id},vr=(e,t)=>h0("blank")(e,t);vr.error=h0("error");vr.success=h0("success");vr.loading=h0("loading");vr.custom=h0("custom");vr.dismiss=e=>{ul({type:3,toastId:e})};vr.remove=e=>ul({type:4,toastId:e});vr.promise=(e,t,n)=>{let r=vr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(vr.success(mh(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{vr.error(mh(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var jP=(e,t)=>{ul({type:1,toast:{id:e,height:t}})},HP=()=>{ul({type:5,time:Date.now()})},GP=e=>{let{toasts:t,pausedAt:n}=zP(e);y.useEffect(()=>{if(n)return;let a=Date.now(),o=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(a-s.createdAt);if(l<0){s.visible&&vr.dismiss(s.id);return}return setTimeout(()=>vr.dismiss(s.id),l)});return()=>{o.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=y.useCallback(()=>{n&&ul({type:6,time:Date.now()})},[n]),i=y.useCallback((a,o)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=o||{},u=t.filter(h=>(h.position||c)===(a.position||c)&&h.height),d=u.findIndex(h=>h.id===a.id),f=u.filter((h,m)=>mh.visible).slice(...s?[f+1]:[0,f]).reduce((h,m)=>h+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:jP,startPause:HP,endPause:r,calculateOffset:i}}},VP=Za` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -72,7 +72,7 @@ from { to { transform: scale(1) rotate(45deg); opacity: 1; -}`,DP=Ya` +}`,KP=Za` from { transform: scale(0); opacity: 0; @@ -80,7 +80,7 @@ from { to { transform: scale(1); opacity: 1; -}`,PP=Ya` +}`,WP=Za` from { transform: scale(0) rotate(90deg); opacity: 0; @@ -88,7 +88,7 @@ from { to { transform: scale(1) rotate(90deg); opacity: 1; -}`,$P=us("div")` +}`,qP=hs("div")` width: 20px; opacity: 0; height: 20px; @@ -97,14 +97,14 @@ to { position: relative; transform: rotate(45deg); - animation: ${LP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${VP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; - animation: ${DP} 0.15s ease-out forwards; + animation: ${KP} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; @@ -117,18 +117,18 @@ to { } &:before { - animation: ${PP} 0.15s ease-out forwards; + animation: ${WP} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } -`,FP=Ya` +`,YP=Za` from { transform: rotate(0deg); } to { transform: rotate(360deg); } -`,BP=us("div")` +`,XP=hs("div")` width: 12px; height: 12px; box-sizing: border-box; @@ -136,8 +136,8 @@ to { border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; - animation: ${FP} 1s linear infinite; -`,zP=Ya` + animation: ${YP} 1s linear infinite; +`,QP=Za` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -145,7 +145,7 @@ from { to { transform: scale(1) rotate(45deg); opacity: 1; -}`,UP=Ya` +}`,ZP=Za` 0% { height: 0; width: 0; @@ -159,7 +159,7 @@ to { 100% { opacity: 1; height: 10px; -}`,HP=us("div")` +}`,JP=hs("div")` width: 20px; opacity: 0; height: 20px; @@ -168,13 +168,13 @@ to { position: relative; transform: rotate(45deg); - animation: ${zP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${QP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; - animation: ${UP} 0.2s ease-out forwards; + animation: ${ZP} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; @@ -186,16 +186,16 @@ to { height: 10px; width: 6px; } -`,jP=us("div")` +`,e$=hs("div")` position: absolute; -`,GP=us("div")` +`,t$=hs("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; -`,VP=Ya` +`,n$=Za` from { transform: scale(0.6); opacity: 0.4; @@ -203,20 +203,20 @@ from { to { transform: scale(1); opacity: 1; -}`,KP=us("div")` +}`,r$=hs("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; - animation: ${VP} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${n$} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; -`,WP=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?y.createElement(KP,null,t):t:n==="blank"?null:y.createElement(GP,null,y.createElement(BP,{...r}),n!=="loading"&&y.createElement(jP,null,n==="error"?y.createElement($P,{...r}):y.createElement(HP,{...r})))},qP=e=>` +`,i$=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?y.createElement(r$,null,t):t:n==="blank"?null:y.createElement(t$,null,y.createElement(XP,{...r}),n!=="loading"&&y.createElement(e$,null,n==="error"?y.createElement(qP,{...r}):y.createElement(JP,{...r})))},a$=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,YP=e=>` +`,o$=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} -`,XP="0%{opacity:0;} 100%{opacity:1;}",QP="0%{opacity:1;} 100%{opacity:0;}",ZP=us("div")` +`,s$="0%{opacity:0;} 100%{opacity:1;}",l$="0%{opacity:1;} 100%{opacity:0;}",c$=hs("div")` display: flex; align-items: center; background: #fff; @@ -228,20 +228,20 @@ to { pointer-events: auto; padding: 8px 10px; border-radius: 8px; -`,JP=us("div")` +`,u$=hs("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; -`,e$=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=gw()?[XP,QP]:[qP(n),YP(n)];return{animation:t?`${Ya(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ya(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},t$=y.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?e$(e.position||t||"top-center",e.visible):{opacity:0},a=y.createElement(WP,{toast:e}),o=y.createElement(JP,{...e.ariaProps},th(e.message,e));return y.createElement(ZP,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):y.createElement(y.Fragment,null,a,o))});xP(y.createElement);var n$=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=y.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return y.createElement("div",{ref:a,className:t,style:n},i)},r$=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:gw()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},i$=hm` +`,d$=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=Aw()?[s$,l$]:[a$(n),o$(n)];return{animation:t?`${Za(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Za(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},f$=y.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?d$(e.position||t||"top-center",e.visible):{opacity:0},a=y.createElement(i$,{toast:e}),o=y.createElement(u$,{...e.ariaProps},mh(e.message,e));return y.createElement(c$,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):y.createElement(y.Fragment,null,a,o))});IP(y.createElement);var h$=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=y.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return y.createElement("div",{ref:a,className:t,style:n},i)},m$=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Aw()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},p$=Cm` z-index: 9999; > * { pointer-events: auto; } -`,J0=16,a$=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=MP(n);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:J0,left:J0,right:J0,bottom:J0,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let u=c.position||t,d=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),f=r$(u,d);return y.createElement(n$,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?i$:"",style:f},c.type==="custom"?th(c.message,c):i?i(c):y.createElement(t$,{toast:c,position:u}))}))},hn=vr;function $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function Di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o$(e,t){if($r(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($r(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vw(e){var t=o$(e,"string");return $r(t)==="symbol"?t:String(t)}function cv(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};Di(this,e),this.init(t,n)}return Pi(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||c$,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),a=1;a-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function mv(e,t,n){var r=D9(e,t,Object),i=r.obj,a=r.k;i[a]=n}function f$(e,t,n,r){var i=D9(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function nh(e,t){var n=D9(e,t),r=n.obj,i=n.k;if(r)return r[i]}function h$(e,t,n){var r=nh(e,n);return r!==void 0?r:nh(t,n)}function Tw(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Tw(e[r],t[r],n):e[r]=t[r]);return e}function Nl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m$={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function p$(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return m$[t]}):e}var pm=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,g$=[" ",",","?","!",";"];function v$(e,t,n){t=t||"",n=n||"";var r=g$.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function rh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;aa+o;)o++,s=r.slice(a,a+o).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(a+o).join(n);return c?rh(l,c,n):void 0}i=i[r[a]]}return i}}function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var E$=function(e){mm(n,e);var t=y$(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Di(this,n),i=t.call(this),pm&&Qo.call(Vo(i)),i.data=r||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Pi(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[i,a];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(l?o.split(l):o)),i.indexOf(".")>-1&&(u=i.split("."));var d=nh(this.data,u);return d||!c||typeof o!="string"?d:rh(this.data&&this.data[i]&&this.data[i][a],o,l)}},{key:"addResource",value:function(i,a,o,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[i,a];o&&(u=u.concat(c?o.split(c):o)),i.indexOf(".")>-1&&(u=i.split("."),s=a,a=u[1]),this.addNamespaces(a),mv(this.data,u,s),l.silent||this.emit("added",i,a,o,s)}},{key:"addResources",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in o)(typeof o[l]=="string"||Object.prototype.toString.apply(o[l])==="[object Array]")&&this.addResource(i,a,l,o[l],{silent:!0});s.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[i,a];i.indexOf(".")>-1&&(u=i.split("."),s=o,o=a,a=u[1]),this.addNamespaces(a);var d=nh(this.data,u)||{};s?Tw(d,o,l):d=ed(ed({},d),o),mv(this.data,u,d),c.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ed(ed({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Qo),xw={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,a){var o=this;return t.forEach(function(s){o.processors[s]&&(n=o.processors[s].process(n,r,i,a))}),n}};function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var vv={},yv=function(e){mm(n,e);var t=T$(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Di(this,n),i=t.call(this),pm&&Qo.call(Vo(i)),d$(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Vo(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ji.create("translator"),i}return Pi(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=a.ns||this.options.defaultNS||[],c=o&&i.indexOf(o)>-1,u=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!v$(i,o,s);if(c&&!u){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(o);(o!==s||o===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,a,o){var s=this;if($r(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),$r(a)==="object"&&(a=Bn({},a)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=this.extractFromKey(i[i.length-1],a),d=u.key,f=u.namespaces,h=f[f.length-1],m=a.lng||this.language,g=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(g){var b=a.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(h).concat(b).concat(d),usedKey:d,exactUsedKey:d,usedLng:m,usedNS:h}:"".concat(h).concat(b).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:m,usedNS:h}:d}var p=this.resolve(i,a),v=p&&p.res,T=p&&p.usedKey||d,C=p&&p.exactUsedKey||d,R=Object.prototype.toString.apply(v),N=["[object Number]","[object Function]","[object RegExp]"],O=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,M=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if($&&v&&M&&N.indexOf(R)<0&&!(typeof O=="string"&&R==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,v,Bn(Bn({},a),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(p.res=L,p):L}if(c){var X=R==="[object Array]",Z=X?[]:{},Q=X?C:T;for(var K in v)if(Object.prototype.hasOwnProperty.call(v,K)){var V="".concat(Q).concat(c).concat(K);Z[K]=this.translate(V,Bn(Bn({},a),{joinArrays:!1,ns:f})),Z[K]===V&&(Z[K]=v[K])}v=Z}}else if($&&typeof O=="string"&&R==="[object Array]")v=v.join(O),v&&(v=this.extendTranslation(v,i,a,o));else{var ne=!1,B=!1,w=a.count!==void 0&&typeof a.count!="string",D=n.hasDefaultValue(a),A=w?this.pluralResolver.getSuffix(m,a.count,a):"",W=a["defaultValue".concat(A)]||a.defaultValue;!this.isValidLookup(v)&&D&&(ne=!0,v=W),this.isValidLookup(v)||(B=!0,v=d);var te=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,P=te&&B?void 0:v,Te=D&&W!==v&&this.options.updateMissing;if(B||ne||Te){if(this.logger.log(Te?"updateKey":"missingKey",m,h,d,Te?W:v),c){var Se=this.resolve(d,Bn(Bn({},a),{},{keySeparator:!1}));Se&&Se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ce=[],Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(var qe=0;qe1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!a.isValidLookup(s)){var h=a.extractFromKey(f,o),m=h.key;l=m;var g=h.namespaces;a.options.fallbackNS&&(g=g.concat(a.options.fallbackNS));var b=o.count!==void 0&&typeof o.count!="string",p=b&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),v=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",T=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);g.forEach(function(C){a.isValidLookup(s)||(d=C,!vv["".concat(T[0],"-").concat(C)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(d)&&(vv["".concat(T[0],"-").concat(C)]=!0,a.logger.warn('key "'.concat(l,'" for languages "').concat(T.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(function(R){if(!a.isValidLookup(s)){u=R;var N=[m];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(N,m,R,C,o);else{var O;b&&(O=a.pluralResolver.getSuffix(R,o.count,o));var $="".concat(a.options.pluralSeparator,"zero");if(b&&(N.push(m+O),p&&N.push(m+$)),v){var M="".concat(m).concat(a.options.contextSeparator).concat(o.context);N.push(M),b&&(N.push(M+O),p&&N.push(M+$))}}for(var L;L=N.pop();)a.isValidLookup(s)||(c=L,s=a.getResource(R,C,L,o))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,s):this.resourceStore.getResource(i,a,o,s)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),n}(Qo);function og(e){return e.charAt(0).toUpperCase()+e.slice(1)}var bv=function(){function e(t){Di(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ji.create("languageUtils")}return Pi(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=og(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=og(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=og(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(a){if(!i){var o=r.formatLanguageCode(a);(!r.options.supportedLngs||r.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&n.forEach(function(a){if(!i){var o=r.getLanguagePartFromCode(a);if(r.isSupportedCode(o))return i=o;i=r.options.supportedLngs.find(function(s){if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&s.indexOf(o)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],n),o=[],s=function(c){c&&(i.isSupportedCode(c)?o.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),a.forEach(function(l){o.indexOf(l)<0&&s(i.formatLanguageCode(l))}),o}}]),e}(),_$=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],w$={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},S$=["v1","v2","v3"],Ev={zero:0,one:1,two:2,few:3,many:4,other:5};function C$(){var e={};return _$.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:w$[t.fc]}})}),e}var A$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Di(this,e),this.languageUtils=t,this.options=n,this.logger=Ji.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=C$()}return Pi(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(a){return"".concat(r).concat(a)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return Ev[o]-Ev[s]}).map(function(o){return"".concat(r.options.prepend).concat(o)}):a.numbers.map(function(o){return r.getSuffix(n,o,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,a=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!S$.includes(this.options.compatibilityJSON)}}]),e}();function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=h$(e,t,n);return!a&&i&&typeof n=="string"&&(a=rh(e,n,r),a===void 0&&(a=rh(t,n,r))),a}var N$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Di(this,e),this.logger=Ji.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Pi(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:p$,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Nl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Nl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Nl(r.nestingPrefix):r.nestingPrefixEscaped||Nl("$t("),this.nestingSuffix=r.nestingSuffix?Nl(r.nestingSuffix):r.nestingSuffixEscaped||Nl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,a){var o=this,s,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(b){return b.replace(/\$/g,"$$$$")}var f=function(p){if(p.indexOf(o.formatSeparator)<0){var v=xv(r,u,p,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(v,void 0,i,gi(gi(gi({},a),r),{},{interpolationkey:p})):v}var T=p.split(o.formatSeparator),C=T.shift().trim(),R=T.join(o.formatSeparator).trim();return o.format(xv(r,u,C,o.options.keySeparator,o.options.ignoreJSONStructure),R,i,gi(gi(gi({},a),r),{},{interpolationkey:C}))};this.resetRegExp();var h=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(p){return d(p)}},{regex:this.regexp,safeValue:function(p){return o.escapeValue?d(o.escape(p)):d(p)}}];return g.forEach(function(b){for(c=0;s=b.regex.exec(n);){var p=s[1].trim();if(l=f(p),l===void 0)if(typeof h=="function"){var v=h(n,s,a);l=typeof v=="string"?v:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))l="";else if(m){l=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(n)),l="";else typeof l!="string"&&!o.useRawValueToEscape&&(l=hv(l));var T=b.safeValue(l);if(n=n.replace(s[0],T),m?(b.regex.lastIndex+=l.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function c(h,m){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var b=h.split(new RegExp("".concat(g,"[ ]*{"))),p="{".concat(b[1]);h=b[0],p=this.interpolate(p,l);var v=p.match(/'/g),T=p.match(/"/g);(v&&v.length%2===0&&!T||T.length%2!==0)&&(p=p.replace(/'/g,'"'));try{l=JSON.parse(p),m&&(l=gi(gi({},m),l))}catch(C){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),C),"".concat(h).concat(g).concat(p)}return delete l.defaultValue,h}for(;o=this.nestingRegexp.exec(n);){var u=[];l=gi({},a),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map(function(h){return h.trim()});o[1]=f.shift(),u=f,d=!0}if(s=r(c.call(this,o[1].trim(),l),l),s&&o[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=hv(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),s=""),d&&(s=u.reduce(function(h,m){return i.format(h,m,a.lng,gi(gi({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),n=n.replace(o[0],s),this.regexp.lastIndex=0}return n}}]),e}();function _v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(o){var s=o.split(":"),l=l$(s),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function kl(e){var t={};return function(r,i,a){var o=i+JSON.stringify(a),s=t[o];return s||(s=e(i,a),t[o]=s),s(r)}}var O$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Di(this,e),this.logger=Ji.create("formatter"),this.options=t,this.formats={number:kl(function(n,r){var i=new Intl.NumberFormat(n,Ta({},r));return function(a){return i.format(a)}}),currency:kl(function(n,r){var i=new Intl.NumberFormat(n,Ta(Ta({},r),{},{style:"currency"}));return function(a){return i.format(a)}}),datetime:kl(function(n,r){var i=new Intl.DateTimeFormat(n,Ta({},r));return function(a){return i.format(a)}}),relativetime:kl(function(n,r){var i=new Intl.RelativeTimeFormat(n,Ta({},r));return function(a){return i.format(a,r.range||"day")}}),list:kl(function(n,r){var i=new Intl.ListFormat(n,Ta({},r));return function(a){return i.format(a)}})},this.init(t)}return Pi(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=kl(r)}},{key:"format",value:function(n,r,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,u){var d=k$(u),f=d.formatName,h=d.formatOptions;if(a.formats[f]){var m=c;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=g.locale||g.lng||o.locale||o.lng||i;m=a.formats[f](c,b,Ta(Ta(Ta({},h),o),g))}catch(p){a.logger.warn(p)}return m}else a.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M$(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var L$=function(e){mm(n,e);var t=R$(n);function n(r,i,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Di(this,n),o=t.call(this),pm&&Qo.call(Vo(o)),o.backend=r,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=Ji.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return Pi(n,[{key:"queueLoad",value:function(i,a,o,s){var l=this,c={},u={},d={},f={};return i.forEach(function(h){var m=!0;a.forEach(function(g){var b="".concat(h,"|").concat(g);!o.reload&&l.store.hasResourceBundle(h,g)?l.state[b]=2:l.state[b]<0||(l.state[b]===1?u[b]===void 0&&(u[b]=!0):(l.state[b]=1,m=!1,u[b]===void 0&&(u[b]=!0),c[b]===void 0&&(c[b]=!0),f[g]===void 0&&(f[g]=!0)))}),m||(d[h]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,a,o){var s=i.split("|"),l=s[0],c=s[1];a&&this.emit("failedLoading",l,c,a),o&&this.store.addResourceBundle(l,c,o),this.state[i]=a?-1:2;var u={};this.queue.forEach(function(d){f$(d.loaded,[l],c),M$(d,i),a&&d.errors.push(a),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){u[f]||(u[f]={});var h=d.loaded[f];h.length&&h.forEach(function(m){u[f][m]===void 0&&(u[f][m]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,a,o){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!i.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(g,b){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(g&&b&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var c=this.queueLoad(i,a,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&a.logger.warn("".concat(o,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&a.logger.log("".concat(o,"loaded namespace ").concat(c," for language ").concat(l),d),a.loaded(i,u,d)})}},{key:"saveMissing",value:function(i,a,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var d=Sv(Sv({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var h;f.length===5?h=f(i,a,o,s,d):h=f(i,a,o,s),h&&typeof h.then=="function"?h.then(function(m){return u(null,m)}).catch(u):u(null,h)}catch(m){u(m)}else f(i,a,o,s,u,d)}!i||!i[0]||this.store.addResource(i[0],a,o,s)}}}]),n}(Qo);function Cv(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if($r(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),$r(t[2])==="object"||$r(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Av(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function td(){}function $$(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var ih=function(e){mm(n,e);var t=D$(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Di(this,n),r=t.call(this),pm&&Qo.call(Vo(r)),r.options=Av(i),r.services={},r.logger=Ji,r.modules={external:[]},$$(Vo(r)),a&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,a),i0(r,Vo(r));setTimeout(function(){r.init(i,a)},0)}return r}return Pi(n,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=Cv();this.options=ji(ji(ji({},s),this.options),Av(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ji(ji({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function l(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Ji.init(l(this.modules.logger),this.options):Ji.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=O$);var u=new bv(this.options);this.store=new E$(this.options.resources,this.options);var d=this.services;d.logger=Ji,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new A$(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new N$(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new L$(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){for(var v=arguments.length,T=new Array(v>1?v-1:0),C=1;C1?v-1:0),C=1;C0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(p){i[p]=function(){var v;return(v=i.store)[p].apply(v,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(p){i[p]=function(){var v;return(v=i.store)[p].apply(v,arguments),i}});var g=Eu(),b=function(){var v=function(C,R){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(R),o(C,R)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return v(null,i.t.bind(i));i.changeLanguage(i.options.lng,v)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),g}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:td,s=o,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=function(h){if(h){var m=a.services.languageUtils.toResolveHierarchy(h);m.forEach(function(g){c.indexOf(g)<0&&c.push(g)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,a,o){var s=Eu();return i||(i=this.languages),a||(a=this.options.ns),o||(o=td),this.services.backendConnector.reload(i,a,function(l){s.resolve(),o(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&xw.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var s=Eu();this.emit("languageChanging",i);var l=function(f){o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.resolvedLanguage=void 0,o.setResolvedLanguage(f)},c=function(f,h){h?(l(h),o.translator.changeLanguage(h),o.isLanguageChangingTo=void 0,o.emit("languageChanged",h),o.logger.log("languageChanged",h)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(f,function(){return o.t.apply(o,arguments)})},u=function(f){!i&&!f&&o.services.languageDetector&&(f=[]);var h=typeof f=="string"?f:o.services.languageUtils.getBestMatchFromCodes(f);h&&(o.language||l(h),o.translator.language||o.translator.changeLanguage(h),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(h)),o.loadResources(h,function(m){c(m,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(i),s}},{key:"getFixedT",value:function(i,a,o){var s=this,l=function c(u,d){var f;if($r(d)!=="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=o.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=function(h,m){var g=a.services.backendConnector.state["".concat(h,"|").concat(m)];return g===-1||g===2};if(o.precheck){var d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(s,i)&&(!l||u(c,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,s=Eu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),a&&a(l)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=Eu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){o.resolve(),a&&a(c)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new bv(Cv());return a.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:td,s=ji(ji(ji({},this.options),a),{isClone:!0}),l=new n(s);(a.debug!==void 0||a.prefix!==void 0)&&(l.logger=l.logger.clone(a));var c=["store","services","language"];return c.forEach(function(u){l[u]=i[u]}),l.services=ji({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new yv(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ih(e,t)});var qn=ih.createInstance();qn.createInstance=ih.createInstance;qn.createInstance;qn.dir;qn.init;qn.loadResources;qn.reloadResources;qn.use;qn.changeLanguage;qn.getFixedT;qn.t;qn.exists;qn.setDefaultNamespace;qn.hasLoadedNamespace;qn.loadNamespaces;qn.loadLanguages;function F$(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(l,c){var u=t.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function z$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return _5("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):B$(e,t,n)}var U$=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,H$={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},j$=function(t){return H$[t]},G$=function(t){return t.replace(U$,j$)};function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mv(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};w5=Mv(Mv({},w5),e)}function K$(){return w5}var ww;function W$(e){ww=e}function q$(){return ww}var Y$={type:"3rdParty",init:function(t){V$(t.options.react),W$(t)}},X$=y.createContext(),Q$=function(){function e(){Di(this,e),this.usedNamespaces={}}return Pi(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Z$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function J$(e,t){return yw(e)||Z$(e,t)||bw(e,t)||Ew()}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sg(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=y.useContext(X$)||{},i=r.i18n,a=r.defaultNS,o=n||i||q$();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Q$),!o){_5("You will need to pass in an i18next instance by using initReactI18next");var s=function(M,L){return typeof L=="string"?L:L&&$r(L)==="object"&&typeof L.defaultValue=="string"?L.defaultValue:Array.isArray(M)?M[M.length-1]:M},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}o.options.react&&o.options.react.wait!==void 0&&_5("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=sg(sg(sg({},K$()),o.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=e||a||o.options&&o.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(f);var h=(o.isInitialized||o.initializedStoreOnce)&&f.every(function($){return z$($,o,c)});function m(){return o.getFixedT(t.lng||null,c.nsMode==="fallback"?f:f[0],d)}var g=y.useState(m),b=J$(g,2),p=b[0],v=b[1],T=f.join();t.lng&&(T="".concat(t.lng).concat(T));var C=eF(T),R=y.useRef(!0);y.useEffect(function(){var $=c.bindI18n,M=c.bindI18nStore;R.current=!0,!h&&!u&&(t.lng?Rv(o,t.lng,f,function(){R.current&&v(m)}):Ov(o,f,function(){R.current&&v(m)})),h&&C&&C!==T&&R.current&&v(m);function L(){R.current&&v(m)}return $&&o&&o.on($,L),M&&o&&o.store.on(M,L),function(){R.current=!1,$&&o&&$.split(" ").forEach(function(X){return o.off(X,L)}),M&&o&&M.split(" ").forEach(function(X){return o.store.off(X,L)})}},[o,T]);var N=y.useRef(!0);y.useEffect(function(){R.current&&!N.current&&v(m),N.current=!1},[o,d]);var O=[p,o,h];if(O.t=p,O.i18n=o,O.ready=h,h||!h&&!u)return O;throw new Promise(function($){t.lng?Rv(o,t.lng,f,function(){return $()}):Ov(o,f,function(){return $()})})}const tF="English",nF="Chinese",rF="Dark",iF="Light",aF="System",oF="role",sF={en:tF,zh:nF,dark:rF,light:iF,system:aF,"user center":"User Center","billing center":"Billing Center","new conversation":"new conversation",role:oF,"valid times":"valid times"},lF="英文",cF="中文",uF="暗黑模式",dF="亮色模式",fF="跟随系统",hF="角色",mF={en:lF,zh:cF,dark:uF,light:dF,system:fF,"user center":"个人中心","billing center":"充值中心","new conversation":"新话题",role:hF,"valid times":"有效次数"},pF={en:{translation:sF},zh:{translation:mF}};qn.use(Y$).init({resources:pF,lng:"zh",interpolation:{escapeValue:!1}});var yr=(e=>(e.Config="app-config",e.User="app-user",e.Chat="app-chat",e.AccessToken="app-access-token",e.ShareOpenId="app-share-open-id",e))(yr||{}),sf=(e=>(e.WEIXIN_WEB="weixinweb",e.WEIXIN="weixin",e))(sf||{}),gF={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const vF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vt=(e,t)=>{const n=y.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,children:s,...l},c)=>y.createElement("svg",{ref:c,...gF,width:i,height:i,stroke:r,strokeWidth:o?Number(a)*24/Number(i):a,className:`lucide lucide-${vF(e)}`,...l},[...t.map(([u,d])=>y.createElement(u,d)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},yF=Vt("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]),Dv=Vt("CheckCircle2",[["path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z",key:"14v8dr"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),P9=Vt("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),bF=Vt("ChevronRight",[["polyline",{points:"9 18 15 12 9 6",key:"1rtp27"}]]),Sw=Vt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Cw=Vt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),EF=Vt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Aw=Vt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),TF=Vt("Edit2",[["path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z",key:"2s2c1q"}]]),Nw=Vt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),xF=Vt("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]),qc=Vt("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),kw=Vt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),_F=Vt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Ow=Vt("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),wF=Vt("PauseOctagon",[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M7.714 2h8.572L22 7.714v8.572L16.286 22H7.714L2 16.286V7.714L7.714 2z",key:"1m7qra"}]]),SF=Vt("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"16",key:"10p56q"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),CF=Vt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),AF=Vt("Send",[["line",{x1:"22",x2:"11",y1:"2",y2:"13",key:"2qtwb"}],["polygon",{points:"22 2 15 22 11 13 2 9 22 2",key:"12uapv"}]]),NF=Vt("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),kF=Vt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Rw=Vt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),OF=Vt("UserPlus2",[["path",{d:"M14 19a6 6 0 0 0-12 0",key:"vej9p1"}],["circle",{cx:"8",cy:"9",r:"4",key:"143rtg"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),RF=Vt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),gm=Vt("X",[["line",{x1:"18",x2:"6",y1:"6",y2:"18",key:"15jfxm"}],["line",{x1:"6",x2:"18",y1:"6",y2:"18",key:"d1lma3"}]]),Pv=e=>{let t;const n=new Set,r=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const d=t;t=c??typeof u!="object"?u:Object.assign({},t,u),n.forEach(f=>f(t,d))}},i=()=>t,s={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,s),s},IF=e=>e?Pv(e):Pv;var Iw={exports:{}},Mw={},Lw={exports:{}},Dw={};/** +`,fd=16,g$=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=GP(n);return y.createElement("div",{style:{position:"fixed",zIndex:9999,top:fd,left:fd,right:fd,bottom:fd,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let u=c.position||t,d=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),f=m$(u,d);return y.createElement(h$,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?p$:"",style:f},c.type==="custom"?mh(c.message,c):i?i(c):y.createElement(f$,{toast:c,position:u}))}))},Zt=vr;function $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function Fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v$(e,t){if($r(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($r(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nw(e){var t=v$(e,"string");return $r(t)==="symbol"?t:String(t)}function yv(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};Fi(this,e),this.init(t,n)}return Bi(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||E$,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?r-1:0),a=1;a-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function _v(e,t,n){var r=H9(e,t,Object),i=r.obj,a=r.k;i[a]=n}function _$(e,t,n,r){var i=H9(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function ph(e,t){var n=H9(e,t),r=n.obj,i=n.k;if(r)return r[i]}function w$(e,t,n){var r=ph(e,n);return r!==void 0?r:ph(t,n)}function Mw(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Mw(e[r],t[r],n):e[r]=t[r]);return e}function Il(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S$={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function C$(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return S$[t]}):e}var Nm=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,A$=[" ",",","?","!",";"];function N$(e,t,n){t=t||"",n=n||"";var r=A$.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function gh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;aa+o;)o++,s=r.slice(a,a+o).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(a+o).join(n);return c?gh(l,c,n):void 0}i=i[r[a]]}return i}}function wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var R$=function(e){Am(n,e);var t=k$(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Fi(this,n),i=t.call(this),Nm&&es.call(qo(i)),i.data=r||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Bi(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[i,a];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(l?o.split(l):o)),i.indexOf(".")>-1&&(u=i.split("."));var d=ph(this.data,u);return d||!c||typeof o!="string"?d:gh(this.data&&this.data[i]&&this.data[i][a],o,l)}},{key:"addResource",value:function(i,a,o,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var u=[i,a];o&&(u=u.concat(c?o.split(c):o)),i.indexOf(".")>-1&&(u=i.split("."),s=a,a=u[1]),this.addNamespaces(a),_v(this.data,u,s),l.silent||this.emit("added",i,a,o,s)}},{key:"addResources",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in o)(typeof o[l]=="string"||Object.prototype.toString.apply(o[l])==="[object Array]")&&this.addResource(i,a,l,o[l],{silent:!0});s.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[i,a];i.indexOf(".")>-1&&(u=i.split("."),s=o,o=a,a=u[1]),this.addNamespaces(a);var d=ph(this.data,u)||{};s?Mw(d,o,l):d=hd(hd({},d),o),_v(this.data,u,d),c.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?hd(hd({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(es),Iw={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,a){var o=this;return t.forEach(function(s){o.processors[s]&&(n=o.processors[s].process(n,r,i,a))}),n}};function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Cv={},Av=function(e){Am(n,e);var t=M$(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fi(this,n),i=t.call(this),Nm&&es.call(qo(i)),T$(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,qo(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=na.create("translator"),i}return Bi(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=a.ns||this.options.defaultNS||[],c=o&&i.indexOf(o)>-1,u=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!N$(i,o,s);if(c&&!u){var d=i.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:i,namespaces:l};var f=i.split(o);(o!==s||o===s&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),i=f.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,a,o){var s=this;if($r(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),$r(a)==="object"&&(a=Vn({},a)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=this.extractFromKey(i[i.length-1],a),d=u.key,f=u.namespaces,h=f[f.length-1],m=a.lng||this.language,g=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(g){var E=a.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(h).concat(E).concat(d),usedKey:d,exactUsedKey:d,usedLng:m,usedNS:h}:"".concat(h).concat(E).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:m,usedNS:h}:d}var p=this.resolve(i,a),v=p&&p.res,T=p&&p.usedKey||d,C=p&&p.exactUsedKey||d,O=Object.prototype.toString.apply(v),N=["[object Number]","[object Function]","[object RegExp]"],R=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,I=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(D&&v&&I&&N.indexOf(O)<0&&!(typeof R=="string"&&O==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,v,Vn(Vn({},a),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(p.res=L,p):L}if(c){var X=O==="[object Array]",Z=X?[]:{},Q=X?C:T;for(var K in v)if(Object.prototype.hasOwnProperty.call(v,K)){var V="".concat(Q).concat(c).concat(K);Z[K]=this.translate(V,Vn(Vn({},a),{joinArrays:!1,ns:f})),Z[K]===V&&(Z[K]=v[K])}v=Z}}else if(D&&typeof R=="string"&&O==="[object Array]")v=v.join(R),v&&(v=this.extendTranslation(v,i,a,o));else{var ne=!1,B=!1,w=a.count!==void 0&&typeof a.count!="string",P=n.hasDefaultValue(a),A=w?this.pluralResolver.getSuffix(m,a.count,a):"",W=a["defaultValue".concat(A)]||a.defaultValue;!this.isValidLookup(v)&&P&&(ne=!0,v=W),this.isValidLookup(v)||(B=!0,v=d);var te=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,$=te&&B?void 0:v,xe=P&&W!==v&&this.options.updateMissing;if(B||ne||xe){if(this.logger.log(xe?"updateKey":"missingKey",m,h,d,xe?W:v),c){var Se=this.resolve(d,Vn(Vn({},a),{},{keySeparator:!1}));Se&&Se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ce=[],Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(var qe=0;qe1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,d;return typeof i=="string"&&(i=[i]),i.forEach(function(f){if(!a.isValidLookup(s)){var h=a.extractFromKey(f,o),m=h.key;l=m;var g=h.namespaces;a.options.fallbackNS&&(g=g.concat(a.options.fallbackNS));var E=o.count!==void 0&&typeof o.count!="string",p=E&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),v=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",T=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);g.forEach(function(C){a.isValidLookup(s)||(d=C,!Cv["".concat(T[0],"-").concat(C)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(d)&&(Cv["".concat(T[0],"-").concat(C)]=!0,a.logger.warn('key "'.concat(l,'" for languages "').concat(T.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(function(O){if(!a.isValidLookup(s)){u=O;var N=[m];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(N,m,O,C,o);else{var R;E&&(R=a.pluralResolver.getSuffix(O,o.count,o));var D="".concat(a.options.pluralSeparator,"zero");if(E&&(N.push(m+R),p&&N.push(m+D)),v){var I="".concat(m).concat(a.options.contextSeparator).concat(o.context);N.push(I),E&&(N.push(I+R),p&&N.push(I+D))}}for(var L;L=N.pop();)a.isValidLookup(s)||(c=L,s=a.getResource(O,C,L,o))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,s):this.resourceStore.getResource(i,a,o,s)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),n}(es);function fg(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nv=function(){function e(t){Fi(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=na.create("languageUtils")}return Bi(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=fg(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=fg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=fg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(a){if(!i){var o=r.formatLanguageCode(a);(!r.options.supportedLngs||r.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&n.forEach(function(a){if(!i){var o=r.getLanguagePartFromCode(a);if(r.isSupportedCode(o))return i=o;i=r.options.supportedLngs.find(function(s){if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&s.indexOf(o)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],n),o=[],s=function(c){c&&(i.isSupportedCode(c)?o.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),a.forEach(function(l){o.indexOf(l)<0&&s(i.formatLanguageCode(l))}),o}}]),e}(),L$=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D$={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},P$=["v1","v2","v3"],kv={zero:0,one:1,two:2,few:3,many:4,other:5};function $$(){var e={};return L$.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:D$[t.fc]}})}),e}var F$=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fi(this,e),this.languageUtils=t,this.options=n,this.logger=na.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=$$()}return Bi(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(a){return"".concat(r).concat(a)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return kv[o]-kv[s]}).map(function(o){return"".concat(r.options.prepend).concat(o)}):a.numbers.map(function(o){return r.getSuffix(n,o,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,a=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!P$.includes(this.options.compatibilityJSON)}}]),e}();function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=w$(e,t,n);return!a&&i&&typeof n=="string"&&(a=gh(e,n,r),a===void 0&&(a=gh(t,n,r))),a}var B$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fi(this,e),this.logger=na.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Bi(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:C$,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Il(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Il(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Il(r.nestingPrefix):r.nestingPrefixEscaped||Il("$t("),this.nestingSuffix=r.nestingSuffix?Il(r.nestingSuffix):r.nestingSuffixEscaped||Il(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,a){var o=this,s,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(E){return E.replace(/\$/g,"$$$$")}var f=function(p){if(p.indexOf(o.formatSeparator)<0){var v=Rv(r,u,p,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(v,void 0,i,bi(bi(bi({},a),r),{},{interpolationkey:p})):v}var T=p.split(o.formatSeparator),C=T.shift().trim(),O=T.join(o.formatSeparator).trim();return o.format(Rv(r,u,C,o.options.keySeparator,o.options.ignoreJSONStructure),O,i,bi(bi(bi({},a),r),{},{interpolationkey:C}))};this.resetRegExp();var h=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(p){return d(p)}},{regex:this.regexp,safeValue:function(p){return o.escapeValue?d(o.escape(p)):d(p)}}];return g.forEach(function(E){for(c=0;s=E.regex.exec(n);){var p=s[1].trim();if(l=f(p),l===void 0)if(typeof h=="function"){var v=h(n,s,a);l=typeof v=="string"?v:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))l="";else if(m){l=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(n)),l="";else typeof l!="string"&&!o.useRawValueToEscape&&(l=Tv(l));var T=E.safeValue(l);if(n=n.replace(s[0],T),m?(E.regex.lastIndex+=l.length,E.regex.lastIndex-=s[0].length):E.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function c(h,m){var g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;var E=h.split(new RegExp("".concat(g,"[ ]*{"))),p="{".concat(E[1]);h=E[0],p=this.interpolate(p,l);var v=p.match(/'/g),T=p.match(/"/g);(v&&v.length%2===0&&!T||T.length%2!==0)&&(p=p.replace(/'/g,'"'));try{l=JSON.parse(p),m&&(l=bi(bi({},m),l))}catch(C){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),C),"".concat(h).concat(g).concat(p)}return delete l.defaultValue,h}for(;o=this.nestingRegexp.exec(n);){var u=[];l=bi({},a),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var f=o[1].split(this.formatSeparator).map(function(h){return h.trim()});o[1]=f.shift(),u=f,d=!0}if(s=r(c.call(this,o[1].trim(),l),l),s&&o[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Tv(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),s=""),d&&(s=u.reduce(function(h,m){return i.format(h,m,a.lng,bi(bi({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),n=n.replace(o[0],s),this.regexp.lastIndex=0}return n}}]),e}();function Mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(o){var s=o.split(":"),l=b$(s),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=d),d==="false"&&(n[c.trim()]=!1),d==="true"&&(n[c.trim()]=!0),isNaN(d)||(n[c.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function Ll(e){var t={};return function(r,i,a){var o=i+JSON.stringify(a),s=t[o];return s||(s=e(i,a),t[o]=s),s(r)}}var U$=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fi(this,e),this.logger=na.create("formatter"),this.options=t,this.formats={number:Ll(function(n,r){var i=new Intl.NumberFormat(n,_a({},r));return function(a){return i.format(a)}}),currency:Ll(function(n,r){var i=new Intl.NumberFormat(n,_a(_a({},r),{},{style:"currency"}));return function(a){return i.format(a)}}),datetime:Ll(function(n,r){var i=new Intl.DateTimeFormat(n,_a({},r));return function(a){return i.format(a)}}),relativetime:Ll(function(n,r){var i=new Intl.RelativeTimeFormat(n,_a({},r));return function(a){return i.format(a,r.range||"day")}}),list:Ll(function(n,r){var i=new Intl.ListFormat(n,_a({},r));return function(a){return i.format(a)}})},this.init(t)}return Bi(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Ll(r)}},{key:"format",value:function(n,r,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(c,u){var d=z$(u),f=d.formatName,h=d.formatOptions;if(a.formats[f]){var m=c;try{var g=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},E=g.locale||g.lng||o.locale||o.lng||i;m=a.formats[f](c,E,_a(_a(_a({},h),o),g))}catch(p){a.logger.warn(p)}return m}else a.logger.warn("there was no format function for ".concat(f));return c},n);return l}}]),e}();function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G$(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var V$=function(e){Am(n,e);var t=j$(n);function n(r,i,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Fi(this,n),o=t.call(this),Nm&&es.call(qo(o)),o.backend=r,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=na.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return Bi(n,[{key:"queueLoad",value:function(i,a,o,s){var l=this,c={},u={},d={},f={};return i.forEach(function(h){var m=!0;a.forEach(function(g){var E="".concat(h,"|").concat(g);!o.reload&&l.store.hasResourceBundle(h,g)?l.state[E]=2:l.state[E]<0||(l.state[E]===1?u[E]===void 0&&(u[E]=!0):(l.state[E]=1,m=!1,u[E]===void 0&&(u[E]=!0),c[E]===void 0&&(c[E]=!0),f[g]===void 0&&(f[g]=!0)))}),m||(d[h]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(i,a,o){var s=i.split("|"),l=s[0],c=s[1];a&&this.emit("failedLoading",l,c,a),o&&this.store.addResourceBundle(l,c,o),this.state[i]=a?-1:2;var u={};this.queue.forEach(function(d){_$(d.loaded,[l],c),G$(d,i),a&&d.errors.push(a),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){u[f]||(u[f]={});var h=d.loaded[f];h.length&&h.forEach(function(m){u[f][m]===void 0&&(u[f][m]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(i,a,o){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!i.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(g,E){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(g&&E&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var c=this.queueLoad(i,a,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&a.logger.warn("".concat(o,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&a.logger.log("".concat(o,"loaded namespace ").concat(c," for language ").concat(l),d),a.loaded(i,u,d)})}},{key:"saveMissing",value:function(i,a,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var d=Lv(Lv({},c),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var h;f.length===5?h=f(i,a,o,s,d):h=f(i,a,o,s),h&&typeof h.then=="function"?h.then(function(m){return u(null,m)}).catch(u):u(null,h)}catch(m){u(m)}else f(i,a,o,s,u,d)}!i||!i[0]||this.store.addResource(i[0],a,o,s)}}}]),n}(es);function Dv(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if($r(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),$r(t[2])==="object"||$r(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Pv(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function md(){}function q$(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var vh=function(e){Am(n,e);var t=K$(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Fi(this,n),r=t.call(this),Nm&&es.call(qo(r)),r.options=Pv(i),r.services={},r.logger=na,r.modules={external:[]},q$(qo(r)),a&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,a),m0(r,qo(r));setTimeout(function(){r.init(i,a)},0)}return r}return Bi(n,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=Dv();this.options=Vi(Vi(Vi({},s),this.options),Pv(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Vi(Vi({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function l(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?na.init(l(this.modules.logger),this.options):na.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=U$);var u=new Nv(this.options);this.store=new R$(this.options.resources,this.options);var d=this.services;d.logger=na,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new F$(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new B$(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new V$(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){for(var v=arguments.length,T=new Array(v>1?v-1:0),C=1;C1?v-1:0),C=1;C0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(p){i[p]=function(){var v;return(v=i.store)[p].apply(v,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(p){i[p]=function(){var v;return(v=i.store)[p].apply(v,arguments),i}});var g=Nu(),E=function(){var v=function(C,O){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),g.resolve(O),o(C,O)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return v(null,i.t.bind(i));i.changeLanguage(i.options.lng,v)};return this.options.resources||!this.options.initImmediate?E():setTimeout(E,0),g}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:md,s=o,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=function(h){if(h){var m=a.services.languageUtils.toResolveHierarchy(h);m.forEach(function(g){c.indexOf(g)<0&&c.push(g)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return u(f)})}this.options.preload&&this.options.preload.forEach(function(f){return u(f)}),this.services.backendConnector.load(c,this.options.ns,function(f){!f&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(f)})}else s(null)}},{key:"reloadResources",value:function(i,a,o){var s=Nu();return i||(i=this.languages),a||(a=this.options.ns),o||(o=md),this.services.backendConnector.reload(i,a,function(l){s.resolve(),o(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Iw.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var s=Nu();this.emit("languageChanging",i);var l=function(f){o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.resolvedLanguage=void 0,o.setResolvedLanguage(f)},c=function(f,h){h?(l(h),o.translator.changeLanguage(h),o.isLanguageChangingTo=void 0,o.emit("languageChanged",h),o.logger.log("languageChanged",h)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(f,function(){return o.t.apply(o,arguments)})},u=function(f){!i&&!f&&o.services.languageDetector&&(f=[]);var h=typeof f=="string"?f:o.services.languageUtils.getBestMatchFromCodes(f);h&&(o.language||l(h),o.translator.language||o.translator.changeLanguage(h),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(h)),o.loadResources(h,function(m){c(m,h)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(i),s}},{key:"getFixedT",value:function(i,a,o){var s=this,l=function c(u,d){var f;if($r(d)!=="object"){for(var h=arguments.length,m=new Array(h>2?h-2:0),g=2;g1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=o.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=function(h,m){var g=a.services.backendConnector.state["".concat(h,"|").concat(m)];return g===-1||g===2};if(o.precheck){var d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(s,i)&&(!l||u(c,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,s=Nu();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),a&&a(l)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=Nu();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){o.resolve(),a&&a(c)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Nv(Dv());return a.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:md,s=Vi(Vi(Vi({},this.options),a),{isClone:!0}),l=new n(s);(a.debug!==void 0||a.prefix!==void 0)&&(l.logger=l.logger.clone(a));var c=["store","services","language"];return c.forEach(function(u){l[u]=i[u]}),l.services=Vi({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new Av(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new vh(e,t)});var Xn=vh.createInstance();Xn.createInstance=vh.createInstance;Xn.createInstance;Xn.dir;Xn.init;Xn.loadResources;Xn.reloadResources;Xn.use;Xn.changeLanguage;Xn.getFixedT;Xn.t;Xn.exists;Xn.setDefaultNamespace;Xn.hasLoadedNamespace;Xn.loadNamespaces;Xn.loadLanguages;function Y$(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(l,c){var u=t.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function Q$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return O5("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):X$(e,t,n)}var Z$=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,J$={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},eF=function(t){return J$[t]},tF=function(t){return t.replace(Z$,eF)};function Uv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jv(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};R5=jv(jv({},R5),e)}function rF(){return R5}var Dw;function iF(e){Dw=e}function aF(){return Dw}var oF={type:"3rdParty",init:function(t){nF(t.options.react),iF(t)}},sF=y.createContext(),lF=function(){function e(){Fi(this,e),this.usedNamespaces={}}return Bi(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function cF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function uF(e,t){return kw(e)||cF(e,t)||Ow(e,t)||Rw()}function Hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hg(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=y.useContext(sF)||{},i=r.i18n,a=r.defaultNS,o=n||i||aF();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new lF),!o){O5("You will need to pass in an i18next instance by using initReactI18next");var s=function(I,L){return typeof L=="string"?L:L&&$r(L)==="object"&&typeof L.defaultValue=="string"?L.defaultValue:Array.isArray(I)?I[I.length-1]:I},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}o.options.react&&o.options.react.wait!==void 0&&O5("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=hg(hg(hg({},rF()),o.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=e||a||o.options&&o.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(f);var h=(o.isInitialized||o.initializedStoreOnce)&&f.every(function(D){return Q$(D,o,c)});function m(){return o.getFixedT(t.lng||null,c.nsMode==="fallback"?f:f[0],d)}var g=y.useState(m),E=uF(g,2),p=E[0],v=E[1],T=f.join();t.lng&&(T="".concat(t.lng).concat(T));var C=dF(T),O=y.useRef(!0);y.useEffect(function(){var D=c.bindI18n,I=c.bindI18nStore;O.current=!0,!h&&!u&&(t.lng?zv(o,t.lng,f,function(){O.current&&v(m)}):Bv(o,f,function(){O.current&&v(m)})),h&&C&&C!==T&&O.current&&v(m);function L(){O.current&&v(m)}return D&&o&&o.on(D,L),I&&o&&o.store.on(I,L),function(){O.current=!1,D&&o&&D.split(" ").forEach(function(X){return o.off(X,L)}),I&&o&&I.split(" ").forEach(function(X){return o.store.off(X,L)})}},[o,T]);var N=y.useRef(!0);y.useEffect(function(){O.current&&!N.current&&v(m),N.current=!1},[o,d]);var R=[p,o,h];if(R.t=p,R.i18n=o,R.ready=h,h||!h&&!u)return R;throw new Promise(function(D){t.lng?zv(o,t.lng,f,function(){return D()}):Bv(o,f,function(){return D()})})}const fF="English",hF="Chinese",mF="Dark",pF="Light",gF="System",vF="role",yF={en:fF,zh:hF,dark:mF,light:pF,system:gF,"user center":"User Center","billing center":"Billing Center","salesman center":"Salesman Center","new conversation":"new conversation",role:vF,"valid times":"valid times"},bF="英文",EF="中文",xF="暗黑模式",TF="亮色模式",_F="跟随系统",wF="角色",SF={en:bF,zh:EF,dark:xF,light:TF,system:_F,"user center":"个人中心","billing center":"充值中心","salesman center":"分销员中心","new conversation":"新话题",role:wF,"valid times":"有效次数"},CF={en:{translation:yF},zh:{translation:SF}};Xn.use(oF).init({resources:CF,lng:"zh",interpolation:{escapeValue:!1}});var yr=(e=>(e.Config="app-config",e.User="app-user",e.Chat="app-chat",e.AccessToken="app-access-token",e.ShareOpenId="app-share-open-id",e))(yr||{}),Ef=(e=>(e.WEIXIN_WEB="weixinweb",e.WEIXIN="weixin",e))(Ef||{}),AF={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const NF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Dt=(e,t)=>{const n=y.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,children:s,...l},c)=>y.createElement("svg",{ref:c,...AF,width:i,height:i,stroke:r,strokeWidth:o?Number(a)*24/Number(i):a,className:`lucide lucide-${NF(e)}`,...l},[...t.map(([u,d])=>y.createElement(u,d)),...(Array.isArray(s)?s:[s])||[]]));return n.displayName=`${e}`,n},kF=Dt("AlignJustify",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}],["line",{x1:"3",x2:"21",y1:"18",y2:"18",key:"kwyyxn"}]]),Gv=Dt("CheckCircle2",[["path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z",key:"14v8dr"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),G9=Dt("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),OF=Dt("ChevronRight",[["polyline",{points:"9 18 15 12 9 6",key:"1rtp27"}]]),Pw=Dt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),RF=Dt("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),$w=Dt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),MF=Dt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Fw=Dt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),IF=Dt("Edit2",[["path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z",key:"2s2c1q"}]]),Bw=Dt("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),LF=Dt("JapaneseYen",[["path",{d:"M12 9.5V21m0-11.5L6 3m6 6.5L18 3",key:"2ej80x"}],["path",{d:"M6 15h12",key:"1hwgt5"}],["path",{d:"M6 11h12",key:"wf4gp6"}]]),DF=Dt("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]),dl=Dt("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),zw=Dt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),PF=Dt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Uw=Dt("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),$F=Dt("PauseOctagon",[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M7.714 2h8.572L22 7.714v8.572L16.286 22H7.714L2 16.286V7.714L7.714 2z",key:"1m7qra"}]]),FF=Dt("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"16",key:"10p56q"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),BF=Dt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]),zF=Dt("Send",[["line",{x1:"22",x2:"11",y1:"2",y2:"13",key:"2qtwb"}],["polygon",{points:"22 2 15 22 11 13 2 9 22 2",key:"12uapv"}]]),UF=Dt("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),jF=Dt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),jw=Dt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),HF=Dt("UserPlus2",[["path",{d:"M14 19a6 6 0 0 0-12 0",key:"vej9p1"}],["circle",{cx:"8",cy:"9",r:"4",key:"143rtg"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),GF=Dt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),tu=Dt("X",[["line",{x1:"18",x2:"6",y1:"6",y2:"18",key:"15jfxm"}],["line",{x1:"6",x2:"18",y1:"6",y2:"18",key:"d1lma3"}]]),Vv=e=>{let t;const n=new Set,r=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const d=t;t=c??typeof u!="object"?u:Object.assign({},t,u),n.forEach(f=>f(t,d))}},i=()=>t,s={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,s),s},VF=e=>e?Vv(e):Vv;var Hw={exports:{}},Gw={},Vw={exports:{}},Kw={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -249,7 +249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rc=y;function MF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var LF=typeof Object.is=="function"?Object.is:MF,DF=Rc.useState,PF=Rc.useEffect,$F=Rc.useLayoutEffect,FF=Rc.useDebugValue;function BF(e,t){var n=t(),r=DF({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return $F(function(){i.value=n,i.getSnapshot=t,lg(i)&&a({inst:i})},[e,n,t]),PF(function(){return lg(i)&&a({inst:i}),e(function(){lg(i)&&a({inst:i})})},[e]),FF(n),n}function lg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!LF(e,n)}catch{return!0}}function zF(e,t){return t()}var UF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zF:BF;Dw.useSyncExternalStore=Rc.useSyncExternalStore!==void 0?Rc.useSyncExternalStore:UF;Lw.exports=Dw;var HF=Lw.exports;/** + */var $c=y;function KF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var WF=typeof Object.is=="function"?Object.is:KF,qF=$c.useState,YF=$c.useEffect,XF=$c.useLayoutEffect,QF=$c.useDebugValue;function ZF(e,t){var n=t(),r=qF({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return XF(function(){i.value=n,i.getSnapshot=t,mg(i)&&a({inst:i})},[e,n,t]),YF(function(){return mg(i)&&a({inst:i}),e(function(){mg(i)&&a({inst:i})})},[e]),QF(n),n}function mg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!WF(e,n)}catch{return!0}}function JF(e,t){return t()}var eB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?JF:ZF;Kw.useSyncExternalStore=$c.useSyncExternalStore!==void 0?$c.useSyncExternalStore:eB;Vw.exports=Kw;var tB=Vw.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -257,15 +257,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var vm=y,jF=HF;function GF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var VF=typeof Object.is=="function"?Object.is:GF,KF=jF.useSyncExternalStore,WF=vm.useRef,qF=vm.useEffect,YF=vm.useMemo,XF=vm.useDebugValue;Mw.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=WF(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=YF(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return d=m}return d=h}if(m=d,VF(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,d=g)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=KF(e,a[0],a[1]);return qF(function(){o.hasValue=!0,o.value=s},[s]),XF(s),s};Iw.exports=Mw;var QF=Iw.exports;const ZF=wr(QF),{useSyncExternalStoreWithSelector:JF}=ZF;function eB(e,t=e.getState,n){const r=JF(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return y.useDebugValue(r),r}const $v=e=>{({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?IF(e):e,n=(r,i)=>eB(t,r,i);return Object.assign(n,t),n},ym=e=>e?$v(e):$v;function tB(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,t==null?void 0:t.reviver),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,t==null?void 0:t.replacer)),removeItem:i=>n.removeItem(i)}}const M1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return M1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return M1(r)(n)}}}},nB=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:b=>b,version:0,merge:(b,p)=>({...p,...b}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,i);const u=M1(a.serialize),d=()=>{const b=a.partialize({...r()});let p;const v=u({state:b,version:a.version}).then(T=>c.setItem(a.name,T)).catch(T=>{p=T});if(p)throw p;return v},f=i.setState;i.setState=(b,p)=>{f(b,p),d()};const h=e((...b)=>{n(...b),d()},r,i);let m;const g=()=>{var b;if(!c)return;o=!1,s.forEach(v=>v(r()));const p=((b=a.onRehydrateStorage)==null?void 0:b.call(a,r()))||void 0;return M1(c.getItem.bind(c))(a.name).then(v=>{if(v)return a.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var T;return m=a.merge(v,(T=r())!=null?T:h),n(m,!0),d()}).then(()=>{p==null||p(m,void 0),o=!0,l.forEach(v=>v(m))}).catch(v=>{p==null||p(void 0,v)})};return i.persist={setOptions:b=>{a={...a,...b},b.getStorage&&(c=b.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:b=>(s.add(b),()=>{s.delete(b)}),onFinishHydration:b=>(l.add(b),()=>{l.delete(b)})},g(),m||h},rB=(e,t)=>(n,r,i)=>{let a={storage:tB(()=>localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},d=i.setState;i.setState=(g,b)=>{d(g,b),u()};const f=e((...g)=>{n(...g),u()},r,i);let h;const m=()=>{var g,b;if(!c)return;o=!1,s.forEach(v=>{var T;return v((T=r())!=null?T:f)});const p=((b=a.onRehydrateStorage)==null?void 0:b.call(a,(g=r())!=null?g:f))||void 0;return M1(c.getItem.bind(c))(a.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var T;return h=a.merge(v,(T=r())!=null?T:f),n(h,!0),u()}).then(()=>{p==null||p(h,void 0),h=r(),o=!0,l.forEach(v=>v(h))}).catch(v=>{p==null||p(void 0,v)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||f},iB=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),nB(e,t)):rB(e,t),$9=iB,Pw="/api",Rt=async(e,t={})=>{const n=localStorage.getItem(yr.AccessToken);t.headers={"Content-Type":"application/json",Authorization:`Bearer ${n}`};const r=await fetch(`${Pw}/${e}`,t);if(r.status>=200&&r.status<=300){const i=await r.json();if(i.err_code>0)throw i.err_msg;return i.data}};var Ao=(e=>(e.PASSWORD="1",e.WECHAT="2",e.PHONE="3",e.WECHAT_AND_PHONE="4",e))(Ao||{}),$w=(e=>(e.OFFLINE="offline",e.WECHAT="wechat",e))($w||{});const js={getConfigAgreement(){return Rt("config/agreement")},getAppConfig(){return Rt("config/basic-info")},getLoginType(){return Rt("config/login-type")},getJsSDK(e){return Rt(`wechat/jssdk?url=${encodeURIComponent(e)}`)},getShareConfig(){return Rt("config/share")},getPaymentConfig(){return Rt("config/payment")}};var Ss=(e=>(e.DARK="dark",e.LIGHT="light",e.SYSTEM="system",e))(Ss||{});const aB={theme:"system",language:"zh",loginType:Ao.WECHAT,appConfig:Object.create(null)},$i=ym()($9(e=>({...aB,setTheme:t=>{const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t==="dark"||t==="system"&&n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),e({theme:t})},setLanguage:t=>e({language:t}),setLoginType:t=>e({loginType:t}),setAppConfig:t=>e({appConfig:t,loginType:t.login_type})}),{name:yr.Config})),Fv={access_token:"",userInfo:{nickname:"",avatar:"",identity:[],openid:""}},Fi=ym()($9(e=>({...Fv,setUserInfo:t=>e({userInfo:t}),setAccessToken:t=>{localStorage.setItem(yr.AccessToken,t),e({access_token:t})},signOut(){e({...Fv}),localStorage.removeItem(yr.AccessToken)},isLogin(){return!!localStorage.getItem(yr.AccessToken)}}),{name:yr.User}));let nd;const oB=new Uint8Array(16);function sB(){if(!nd&&(nd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nd(oB)}const Nn=[];for(let e=0;e<256;++e)Nn.push((e+256).toString(16).slice(1));function lB(e,t=0){return(Nn[e[t+0]]+Nn[e[t+1]]+Nn[e[t+2]]+Nn[e[t+3]]+"-"+Nn[e[t+4]]+Nn[e[t+5]]+"-"+Nn[e[t+6]]+Nn[e[t+7]]+"-"+Nn[e[t+8]]+Nn[e[t+9]]+"-"+Nn[e[t+10]]+Nn[e[t+11]]+Nn[e[t+12]]+Nn[e[t+13]]+Nn[e[t+14]]+Nn[e[t+15]]).toLowerCase()}const cB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bv={randomUUID:cB};function Cs(e,t,n){if(Bv.randomUUID&&!t&&!e)return Bv.randomUUID();e=e||{};const r=e.random||(e.rng||sB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return lB(r)}var uB=typeof global=="object"&&global&&global.Object===Object&&global;const Fw=uB;var dB=typeof self=="object"&&self&&self.Object===Object&&self,fB=Fw||dB||Function("return this")();const ma=fB;var hB=ma.Symbol;const ua=hB;var Bw=Object.prototype,mB=Bw.hasOwnProperty,pB=Bw.toString,Tu=ua?ua.toStringTag:void 0;function gB(e){var t=mB.call(e,Tu),n=e[Tu];try{e[Tu]=void 0;var r=!0}catch{}var i=pB.call(e);return r&&(t?e[Tu]=n:delete e[Tu]),i}var vB=Object.prototype,yB=vB.toString;function bB(e){return yB.call(e)}var EB="[object Null]",TB="[object Undefined]",zv=ua?ua.toStringTag:void 0;function ul(e){return e==null?e===void 0?TB:EB:zv&&zv in Object(e)?gB(e):bB(e)}function dl(e){return e!=null&&typeof e=="object"}var xB="[object Symbol]";function F9(e){return typeof e=="symbol"||dl(e)&&ul(e)==xB}function zw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=qB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZB(e){return function(){return e}}var JB=function(){try{var e=hl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ah=JB;var ez=ah?function(e,t){return ah(e,"toString",{configurable:!0,enumerable:!1,value:ZB(t),writable:!0})}:SB;const tz=ez;var nz=QB(tz);const rz=nz;function iz(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=dz}function B9(e){return e!=null&&Kw(e.length)&&!Hw(e)}var fz=Object.prototype;function bm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fz;return e===n}function hz(e,t){for(var n=-1,r=Array(e);++n-1}function AU(e,t){var n=this.__data__,r=Em(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function io(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?tS(s,t-1,n,r,i):W9(i,s):r||(i[i.length]=s)}return i}function KU(e){var t=e==null?0:e.length;return t?tS(e,1):[]}function WU(e){return rz(uz(e,void 0,KU),e+"")}var qU=Zw(Object.getPrototypeOf,Object);const q9=qU;var YU="[object Object]",XU=Function.prototype,QU=Object.prototype,nS=XU.toString,ZU=QU.hasOwnProperty,JU=nS.call(Object);function eH(e){if(!dl(e)||ul(e)!=YU)return!1;var t=q9(e);if(t===null)return!0;var n=ZU.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nS.call(n)==JU}function tH(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),s0(e,sS(e),n),r&&(n=lf(n,qj|Yj|Xj,Wj));for(var i=t.length;i--;)Kj(n,t[i]);return n});const Zj=Qj;var Xi=(e=>(e.START="start",e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e.ABORT="abort",e))(Xi||{});class Jj{constructor(){L6(this,"_status");this._status="start"}set status(t){this._status=t}get status(){return this._status}abort(){this.status="abort"}async send({message:t,modelId:n,requestId:r,lastId:i,onProgress:a,onFinish:o,onError:s}){this.status="start";const l=localStorage.getItem(yr.AccessToken),c=await fetch(`${Pw}/openai/chat-process`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${l}`},body:JSON.stringify({message:t,model_id:n,request_id:r,last_id:i})});if(!c.ok){s("连接失败,请重试"),this.status="error";return}const u=c.body;if(!u){s("无响应数据,请重试"),this.status="error";return}this.status==="start"&&(this.status="pending");const d=u.getReader(),f=new TextDecoder("utf-8");let h=!1,m;for(;!h&&this.status==="pending";){const{value:g,done:b}=await d.read();h=b;const p=f.decode(g);try{const v=p.split(` + */var km=y,nB=tB;function rB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iB=typeof Object.is=="function"?Object.is:rB,aB=nB.useSyncExternalStore,oB=km.useRef,sB=km.useEffect,lB=km.useMemo,cB=km.useDebugValue;Gw.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=oB(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=lB(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&o.hasValue){var m=o.value;if(i(m,h))return d=m}return d=h}if(m=d,iB(u,h))return m;var g=r(h);return i!==void 0&&i(m,g)?m:(u=h,d=g)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=aB(e,a[0],a[1]);return sB(function(){o.hasValue=!0,o.value=s},[s]),cB(s),s};Hw.exports=Gw;var uB=Hw.exports;const dB=wr(uB),{useSyncExternalStoreWithSelector:fB}=dB;function hB(e,t=e.getState,n){const r=fB(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return y.useDebugValue(r),r}const Kv=e=>{({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?VF(e):e,n=(r,i)=>hB(t,r,i);return Object.assign(n,t),n},g0=e=>e?Kv(e):Kv;function mB(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,t==null?void 0:t.reviver),s=(a=n.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,t==null?void 0:t.replacer)),removeItem:i=>n.removeItem(i)}}const j1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return j1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return j1(r)(n)}}}},pB=(e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:E=>E,version:0,merge:(E,p)=>({...p,...E}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...E)},r,i);const u=j1(a.serialize),d=()=>{const E=a.partialize({...r()});let p;const v=u({state:E,version:a.version}).then(T=>c.setItem(a.name,T)).catch(T=>{p=T});if(p)throw p;return v},f=i.setState;i.setState=(E,p)=>{f(E,p),d()};const h=e((...E)=>{n(...E),d()},r,i);let m;const g=()=>{var E;if(!c)return;o=!1,s.forEach(v=>v(r()));const p=((E=a.onRehydrateStorage)==null?void 0:E.call(a,r()))||void 0;return j1(c.getItem.bind(c))(a.name).then(v=>{if(v)return a.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var T;return m=a.merge(v,(T=r())!=null?T:h),n(m,!0),d()}).then(()=>{p==null||p(m,void 0),o=!0,l.forEach(v=>v(m))}).catch(v=>{p==null||p(void 0,v)})};return i.persist={setOptions:E=>{a={...a,...E},E.getStorage&&(c=E.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:E=>(s.add(E),()=>{s.delete(E)}),onFinishHydration:E=>(l.add(E),()=>{l.delete(E)})},g(),m||h},gB=(e,t)=>(n,r,i)=>{let a={storage:mB(()=>localStorage),partialize:g=>g,version:0,merge:(g,E)=>({...E,...g}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...g)},r,i);const u=()=>{const g=a.partialize({...r()});return c.setItem(a.name,{state:g,version:a.version})},d=i.setState;i.setState=(g,E)=>{d(g,E),u()};const f=e((...g)=>{n(...g),u()},r,i);let h;const m=()=>{var g,E;if(!c)return;o=!1,s.forEach(v=>{var T;return v((T=r())!=null?T:f)});const p=((E=a.onRehydrateStorage)==null?void 0:E.call(a,(g=r())!=null?g:f))||void 0;return j1(c.getItem.bind(c))(a.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var T;return h=a.merge(v,(T=r())!=null?T:f),n(h,!0),u()}).then(()=>{p==null||p(h,void 0),h=r(),o=!0,l.forEach(v=>v(h))}).catch(v=>{p==null||p(void 0,v)})};return i.persist={setOptions:g=>{a={...a,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},a.skipHydration||m(),h||f},vB=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(({VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),pB(e,t)):gB(e,t),V9=vB,Ww="/api",pt=async(e,t={})=>{const n=localStorage.getItem(yr.AccessToken);t.headers={"Content-Type":"application/json",Authorization:`Bearer ${n}`};const r=await fetch(`${Ww}/${e}`,t);if(r.status>=200&&r.status<=300){const i=await r.json();if(i.err_code>0)throw i.err_msg;return i.data}};var Oo=(e=>(e.PASSWORD="1",e.WECHAT="2",e.PHONE="3",e.WECHAT_AND_PHONE="4",e))(Oo||{}),qw=(e=>(e.OFFLINE="offline",e.WECHAT="wechat",e))(qw||{});const Gs={getConfigAgreement(){return pt("config/agreement")},getAppConfig(){return pt("config/basic-info")},getLoginType(){return pt("config/login-type")},getJsSDK(e){return pt(`wechat/jssdk?url=${encodeURIComponent(e)}`)},getShareConfig(){return pt("config/share")},getPaymentConfig(){return pt("config/payment")}};var Ns=(e=>(e.DARK="dark",e.LIGHT="light",e.SYSTEM="system",e))(Ns||{});const yB={theme:"system",language:"zh",loginType:Oo.WECHAT,appConfig:Object.create(null)},zi=g0()(V9(e=>({...yB,setTheme:t=>{const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t==="dark"||t==="system"&&n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),e({theme:t})},setLanguage:t=>e({language:t}),setLoginType:t=>e({loginType:t}),setAppConfig:t=>e({appConfig:t,loginType:t.login_type})}),{name:yr.Config})),Wv={access_token:"",userInfo:{nickname:"",avatar:"",identity:1,openid:""}},di=g0()(V9(e=>({...Wv,setUserInfo:t=>e({userInfo:t}),setAccessToken:t=>{localStorage.setItem(yr.AccessToken,t),e({access_token:t})},signOut(){e({...Wv}),localStorage.removeItem(yr.AccessToken)},isLogin(){return!!localStorage.getItem(yr.AccessToken)}}),{name:yr.User}));let pd;const bB=new Uint8Array(16);function EB(){if(!pd&&(pd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pd(bB)}const Ln=[];for(let e=0;e<256;++e)Ln.push((e+256).toString(16).slice(1));function xB(e,t=0){return(Ln[e[t+0]]+Ln[e[t+1]]+Ln[e[t+2]]+Ln[e[t+3]]+"-"+Ln[e[t+4]]+Ln[e[t+5]]+"-"+Ln[e[t+6]]+Ln[e[t+7]]+"-"+Ln[e[t+8]]+Ln[e[t+9]]+"-"+Ln[e[t+10]]+Ln[e[t+11]]+Ln[e[t+12]]+Ln[e[t+13]]+Ln[e[t+14]]+Ln[e[t+15]]).toLowerCase()}const TB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qv={randomUUID:TB};function ks(e,t,n){if(qv.randomUUID&&!t&&!e)return qv.randomUUID();e=e||{};const r=e.random||(e.rng||EB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return xB(r)}var _B=typeof global=="object"&&global&&global.Object===Object&&global;const Yw=_B;var wB=typeof self=="object"&&self&&self.Object===Object&&self,SB=Yw||wB||Function("return this")();const ga=SB;var CB=ga.Symbol;const ha=CB;var Xw=Object.prototype,AB=Xw.hasOwnProperty,NB=Xw.toString,ku=ha?ha.toStringTag:void 0;function kB(e){var t=AB.call(e,ku),n=e[ku];try{e[ku]=void 0;var r=!0}catch{}var i=NB.call(e);return r&&(t?e[ku]=n:delete e[ku]),i}var OB=Object.prototype,RB=OB.toString;function MB(e){return RB.call(e)}var IB="[object Null]",LB="[object Undefined]",Yv=ha?ha.toStringTag:void 0;function fl(e){return e==null?e===void 0?LB:IB:Yv&&Yv in Object(e)?kB(e):MB(e)}function hl(e){return e!=null&&typeof e=="object"}var DB="[object Symbol]";function K9(e){return typeof e=="symbol"||hl(e)&&fl(e)==DB}function Qw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=sz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function dz(e){return function(){return e}}var fz=function(){try{var e=pl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const yh=fz;var hz=yh?function(e,t){return yh(e,"toString",{configurable:!0,enumerable:!1,value:dz(t),writable:!0})}:FB;const mz=hz;var pz=uz(mz);const gz=pz;function vz(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=wz}function W9(e){return e!=null&&rS(e.length)&&!Jw(e)}var Sz=Object.prototype;function Om(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Sz;return e===n}function Cz(e,t){for(var n=-1,r=Array(e);++n-1}function zU(e,t){var n=this.__data__,r=Rm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function so(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?fS(s,t-1,n,r,i):t6(i,s):r||(i[i.length]=s)}return i}function aj(e){var t=e==null?0:e.length;return t?fS(e,1):[]}function oj(e){return gz(_z(e,void 0,aj),e+"")}var sj=cS(Object.getPrototypeOf,Object);const n6=sj;var lj="[object Object]",cj=Function.prototype,uj=Object.prototype,hS=cj.toString,dj=uj.hasOwnProperty,fj=hS.call(Object);function hj(e){if(!hl(e)||fl(e)!=lj)return!1;var t=n6(e);if(t===null)return!0;var n=dj.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hS.call(n)==fj}function mj(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r1),a}),y0(e,yS(e),n),r&&(n=xf(n,sG|lG|cG,oG));for(var i=t.length;i--;)aG(n,t[i]);return n});const dG=uG;var Ji=(e=>(e.START="start",e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e.ABORT="abort",e))(Ji||{});class fG{constructor(){H8(this,"_status");this._status="start"}set status(t){this._status=t}get status(){return this._status}abort(){this.status="abort"}async send({message:t,modelId:n,requestId:r,lastId:i,onProgress:a,onFinish:o,onError:s}){this.status="start";const l=localStorage.getItem(yr.AccessToken),c=await fetch(`${Ww}/openai/chat-process`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${l}`},body:JSON.stringify({message:t,model_id:n,request_id:r,last_id:i})});if(!c.ok){s("连接失败,请重试"),this.status="error";return}const u=c.body;if(!u){s("无响应数据,请重试"),this.status="error";return}this.status==="start"&&(this.status="pending");const d=u.getReader(),f=new TextDecoder("utf-8");let h=!1,m;for(;!h&&this.status==="pending";){const{value:g,done:E}=await d.read();h=E;const p=f.decode(g);try{const v=p.split(` data :`),T=v[v.length-2]||v[v.length-1];if(T){if(m=JSON.parse(T),m.err_code>0){s(m.err_msg);return}a(m)}}catch(v){console.log(v)}}this.status==="abort"&&(this.status="success",m.messages=m.messages+` -[您中断了回答,若继续请刷新重试!]`,o(m)),(h||this.status==="success")&&(this.status="success",k5(m)?s("无响应数据,请重试"):o(m))}}const d7=new Jj;var ka=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(ka||{});const O5={icon:"",uuid:Cs(),title:"新话题",system:"",modelId:""},eG={isStream:!1,currentConversation:O5,conversationList:[O5],chatDataMap:{}},Zo=ym()($9((e,t)=>({...eG,addConversation(n="新话题",r="",i="",a=""){const o=Cs(),s={title:n,uuid:o,icon:r,system:i,modelId:a};e(l=>({currentConversation:s,conversationList:[s,...l.conversationList],chatDataMap:{[o]:i?[{id:Cs(),text:i,role:"system",dateTime:new Date().toISOString(),requestId:""}]:[],...l.chatDataMap}}))},switchConversation(n){e(r=>({currentConversation:r.conversationList.find(i=>i.uuid===n)}))},clearCurrentConversation(){const{uuid:n}=t().currentConversation;e(r=>({chatDataMap:{...r.chatDataMap,[n]:[]}}))},editConversation(n,r){const i=t().conversationList.map(a=>a.uuid==n?{...a,...r}:a);e(()=>({conversationList:i}))},delConversation(n){let r=t().conversationList.filter(a=>a.uuid!==n);r.length===0&&(r=[O5]);const i=t().chatDataMap;delete i[n],e(()=>({chatDataMap:i,conversationList:r})),n===t().currentConversation.uuid&&e({currentConversation:r[0]})},chatProgress(n,r,i="",a,o){const s=t().currentChatData(),l=t().currentChatData(),c=t().chatDataMap,u=t().currentConversation.uuid;c[u]=l,d7.send({message:n,modelId:t().currentConversation.modelId,requestId:r,lastId:i,onProgress:d=>{s[s.length-1]={id:o,text:d.messages,role:"assistant",status:Xi.PENDING,dateTime:new Date().toISOString(),messageId:d.id,requestId:r},e({chatDataMap:c})},onFinish:d=>{s[a]={...s[a],text:d.messages,status:Xi.SUCCESS},e({chatDataMap:c,isStream:!1})},onError:d=>{s[a]={...s[a],error:d,status:Xi.ERROR},e({chatDataMap:c,isStream:!1})}})},sendUserMessage(n){var u,d;const r=t().currentChatData(),i=Cs(),a=Cs(),o=[...r,{text:n,role:"user",dateTime:new Date().toISOString(),requestId:i,id:Cs()},{id:a,text:"",role:"assistant",dateTime:new Date().toISOString(),requestId:i,status:Xi.START}],s=t().chatDataMap,l=t().currentConversation.uuid;s[l]=o,e({chatDataMap:s,isStream:!0});const c=((d=(u=r.filter(f=>f.role==="assistant"))==null?void 0:u.pop())==null?void 0:d.messageId)||"";t().chatProgress(n,i,c,o.length-1,a)},regenerateChat(n){var d,f;const r=t().currentChatData(),i=t().chatDataMap,a=t().currentConversation.uuid,o=Cs(),s=r.findIndex(h=>h.role==="user"&&h.requestId===n),l=r[s].text,c=((f=(d=r.slice(0,s).filter(h=>h.role==="assistant"))==null?void 0:d.pop())==null?void 0:f.messageId)||"",u=r.findIndex(h=>h.role==="assistant"&&h.requestId===n);r[u]={...r[u],status:Xi.START},i[a]=r,e({chatDataMap:i}),t().chatProgress(l,n,c,u,o)},currentChatData(){return t().chatDataMap[t().currentConversation.uuid]||[]},stopStream(){d7.abort(),e({isStream:!1})},setStream(n){e({isStream:n})}}),{name:yr.Chat})),da={getWxQrCode(e,t){return Rt(`wechat/${e}/qrcode?type=${e}&redirect_url=${t}`)},getUserInfoByCode(e,t,n){return Rt(`wechat/${e}/login`,{method:"post",body:JSON.stringify({code:t,type:e,share_openid:n})})},getUserProfile(){return Rt("user/profile")},getUserBill(){return Rt("user/bill-package")},getUserPackages(){return Rt("user/package/record")},register(e){return Rt("auth/register",{method:"post",body:JSON.stringify(e)})},login(e){return Rt("auth/login",{method:"post",body:JSON.stringify(e)})},getPhoneCode(e){return Rt("sms/send-code",{method:"post",body:JSON.stringify({mobile:e})})},phoneLogin(e){return Rt("sms/login",{method:"post",body:JSON.stringify(e)})},resetPassword(e){return Rt("auth/reset",{method:"post",body:JSON.stringify(e)})}},tG={currentBill:null},Q9=ym()((e,t)=>({...tG,getCurrentBilling:async()=>{const n=await da.getUserBill();e({currentBill:n})},remaining:()=>{const n=t().currentBill;return!n||!n.num?0:n.num-n.used}}));function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;ts,Object.values(s));return y.createElement(n.Provider,{value:l},o)}function i(a){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function jr(e,t=[]){let n=[];function r(a,o){const s=y.createContext(o),l=n.length;n=[...n,o];function c(d){const{scope:f,children:h,...m}=d,g=(f==null?void 0:f[e][l])||s,b=y.useMemo(()=>m,Object.values(m));return y.createElement(g.Provider,{value:b},h)}function u(d,f){const h=(f==null?void 0:f[e][l])||s,m=y.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const i=()=>{const a=n.map(o=>y.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,rG(i,...t)]}function rG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Cn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Jo=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{};function iG(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function _m(...e){return t=>e.forEach(n=>iG(n,t))}function Lt(...e){return y.useCallback(_m(...e),e)}const es=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find(aG);if(a){const o=a.props.children,s=i.map(l=>l===a?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return y.createElement(R5,ue({},r,{ref:t}),y.isValidElement(o)?y.cloneElement(o,void 0,s):null)}return y.createElement(R5,ue({},r,{ref:t}),n)});es.displayName="Slot";const R5=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...oG(r,n.props),ref:t?_m(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});R5.displayName="SlotClone";const dS=({children:e})=>y.createElement(y.Fragment,null,e);function aG(e){return y.isValidElement(e)&&e.type===dS}function oG(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const sG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pt=sG.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?es:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(s,ue({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fS(e,t){e&&Vc.flushSync(()=>e.dispatchEvent(t))}const hS="Avatar",[lG,Ode]=jr(hS),[cG,mS]=lG(hS),uG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,a]=y.useState("idle");return y.createElement(cG,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},y.createElement(pt.span,ue({},r,{ref:t})))}),dG="AvatarImage",fG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=mS(dG,n),s=pG(r),l=Cn(c=>{i(c),o.onImageLoadingStatusChange(c)});return Jo(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?y.createElement(pt.img,ue({},a,{ref:t,src:r})):null}),hG="AvatarFallback",mG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,a=mS(hG,n),[o,s]=y.useState(r===void 0);return y.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),o&&a.imageLoadingStatus!=="loaded"?y.createElement(pt.span,ue({},i,{ref:t})):null});function pG(e){const[t,n]=y.useState("idle");return y.useEffect(()=>{if(!e){n("error");return}let r=!0;const i=new window.Image,a=o=>()=>{r&&n(o)};return n("loading"),i.onload=a("loaded"),i.onerror=a("error"),i.src=e,()=>{r=!1}},[e]),t}const pS=uG,gS=fG,vS=mG;function gG(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(o){var s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set:function(o,s){n.has(o)?n.set(o,s):i(o,s)}}}var ES="!";function _G(e){var t=e.separator||":",n=t.length===1,r=t[0],i=t.length;return function(o){for(var s=[],l=0,c=0,u,d=0;dc?u-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}}}function wG(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var i=r[0]==="[";i?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function SG(e){return{cache:xG(e.cacheSize),splitModifiers:_G(e),...vG(e)}}var CG=/\s+/;function AG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(CG).map(function(o){var s=n(o),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,d=s.maybePostfixModifierPosition,f=r(d?u.substring(0,d):u),h=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:o};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:o};h=!1}var m=wG(l).join(":"),g=c?m+ES:m;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(function(o){if(!o.isTailwindClass)return!0;var s=o.modifierId,l=o.classGroupId,c=o.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),i(l,c).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(o){return o.originalClassName}).join(" ")}function NG(){for(var e=arguments.length,t=new Array(e),n=0;nx.jsx(pS,{ref:n,className:ze("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));P1.displayName=pS.displayName;const $1=y.forwardRef(({className:e,...t},n)=>x.jsx(gS,{ref:n,className:ze("aspect-square h-full w-full",e),...t}));$1.displayName=gS.displayName;const wm=y.forwardRef(({className:e,...t},n)=>x.jsx(vS,{ref:n,className:ze("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));wm.displayName=vS.displayName;const p7=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,g7=wS,Sm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return g7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=a==null?void 0:a[c];if(u===null)return null;const f=p7(u)||p7(d);return i[c][f]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(m=>{let[g,b]=m;return Array.isArray(b)?b.includes({...a,...s}[g]):{...a,...s}[g]===b})?[...c,d,f]:c},[]);return g7(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},e8=Sm("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8"}},defaultVariants:{variant:"default",size:"default"}}),ot=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?es:"button";return x.jsx(o,{className:ze(e8({variant:t,size:n,className:e})),ref:a,...i})});ot.displayName="Button";const M5="horizontal",GG=["horizontal","vertical"],SS=y.forwardRef((e,t)=>{const{decorative:n,orientation:r=M5,...i}=e,a=CS(r)?r:M5,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return y.createElement(pt.div,ue({"data-orientation":a},s,i,{ref:t}))});SS.propTypes={orientation(e,t,n){const r=e[t],i=String(r);return r&&!CS(r)?new Error(VG(i,n)):null}};function VG(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of: +[您中断了回答,若继续请刷新重试!]`,o(m)),(h||this.status==="success")&&(this.status="success",P5(m)?s("无响应数据,请重试"):o(m))}}const E7=new fG;var Ra=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Ra||{});const $5={icon:"",uuid:ks(),title:"新话题",system:"",modelId:""},hG={isStream:!1,currentConversation:$5,conversationList:[$5],chatDataMap:{}},ts=g0()(V9((e,t)=>({...hG,addConversation(n="新话题",r="",i="",a=""){const o=ks(),s={title:n,uuid:o,icon:r,system:i,modelId:a};e(l=>({currentConversation:s,conversationList:[s,...l.conversationList],chatDataMap:{[o]:i?[{id:ks(),text:i,role:"system",dateTime:new Date().toISOString(),requestId:""}]:[],...l.chatDataMap}}))},switchConversation(n){e(r=>({currentConversation:r.conversationList.find(i=>i.uuid===n)}))},clearCurrentConversation(){const{uuid:n}=t().currentConversation;e(r=>({chatDataMap:{...r.chatDataMap,[n]:[]}}))},editConversation(n,r){const i=t().conversationList.map(a=>a.uuid==n?{...a,...r}:a);e(()=>({conversationList:i}))},delConversation(n){let r=t().conversationList.filter(a=>a.uuid!==n);r.length===0&&(r=[$5]);const i=t().chatDataMap;delete i[n],e(()=>({chatDataMap:i,conversationList:r})),n===t().currentConversation.uuid&&e({currentConversation:r[0]})},chatProgress(n,r,i="",a,o){const s=t().currentChatData(),l=t().currentChatData(),c=t().chatDataMap,u=t().currentConversation.uuid;c[u]=l,E7.send({message:n,modelId:t().currentConversation.modelId,requestId:r,lastId:i,onProgress:d=>{s[s.length-1]={id:o,text:d.messages,role:"assistant",status:Ji.PENDING,dateTime:new Date().toISOString(),messageId:d.id,requestId:r},e({chatDataMap:c})},onFinish:d=>{s[a]={...s[a],text:d.messages,status:Ji.SUCCESS},e({chatDataMap:c,isStream:!1})},onError:d=>{s[a]={...s[a],error:d,status:Ji.ERROR},e({chatDataMap:c,isStream:!1})}})},sendUserMessage(n){var u,d;const r=t().currentChatData(),i=ks(),a=ks(),o=[...r,{text:n,role:"user",dateTime:new Date().toISOString(),requestId:i,id:ks()},{id:a,text:"",role:"assistant",dateTime:new Date().toISOString(),requestId:i,status:Ji.START}],s=t().chatDataMap,l=t().currentConversation.uuid;s[l]=o,e({chatDataMap:s,isStream:!0});const c=((d=(u=r.filter(f=>f.role==="assistant"))==null?void 0:u.pop())==null?void 0:d.messageId)||"";t().chatProgress(n,i,c,o.length-1,a)},regenerateChat(n){var d,f;const r=t().currentChatData(),i=t().chatDataMap,a=t().currentConversation.uuid,o=ks(),s=r.findIndex(h=>h.role==="user"&&h.requestId===n),l=r[s].text,c=((f=(d=r.slice(0,s).filter(h=>h.role==="assistant"))==null?void 0:d.pop())==null?void 0:f.messageId)||"",u=r.findIndex(h=>h.role==="assistant"&&h.requestId===n);r[u]={...r[u],status:Ji.START},i[a]=r,e({chatDataMap:i}),t().chatProgress(l,n,c,u,o)},currentChatData(){return t().chatDataMap[t().currentConversation.uuid]||[]},stopStream(){E7.abort(),e({isStream:!1})},setStream(n){e({isStream:n})}}),{name:yr.Chat})),li={getWxQrCode(e,t){return pt(`wechat/${e}/qrcode?type=${e}&redirect_url=${t}`)},getUserInfoByCode(e,t,n){return pt(`wechat/${e}/login`,{method:"post",body:JSON.stringify({code:t,type:e,share_openid:n})})},getUserProfile(){return pt("user/profile")},getUserBill(){return pt("user/bill-package")},getUserPackages(){return pt("user/package/record")},register(e){return pt("auth/register",{method:"post",body:JSON.stringify(e)})},login(e){return pt("auth/login",{method:"post",body:JSON.stringify(e)})},getPhoneCode(e){return pt("sms/send-code",{method:"post",body:JSON.stringify({mobile:e})})},phoneLogin(e){return pt("sms/login",{method:"post",body:JSON.stringify(e)})},resetPassword(e){return pt("auth/reset",{method:"post",body:JSON.stringify(e)})},becomeSalesman(){return pt("/user/salesman",{method:"post"})}},mG={currentBill:null},a6=g0()((e,t)=>({...mG,getCurrentBilling:async()=>{const n=await li.getUserBill();e({currentBill:n})},remaining:()=>{const n=t().currentBill;return!n||!n.num?0:n.num-n.used}})),Bc={getSalesmanChildList(e,t){return pt(`/salesman/child?per_page=${e}&page=${t}`)},getSalesmanOrderList(e,t){return pt(`/salesman/order?per_page=${e}&page=${t}`)},getSalesmanStatistics(){return pt("/salesman/statistics")},withdrawal(e){return pt("/salesman/withdrawal/apply",{method:"post",body:JSON.stringify(e)})},getSalesmanWithdrawalLast(){return pt("/salesman/withdrawal/last")},getSalesmanWithdrawalList(e,t){return pt(`/salesman/withdrawal?per_page=${e}&page=${t}`)}},pG={statistics:{order_num:0,order_price:"0.00",custom_num:0,balance:"0.00",ratio:0}},TS=g0()(e=>({...pG,getSalesmanStatistics:async()=>{const t=await Bc.getSalesmanStatistics();e({statistics:t})}}));function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;ts,Object.values(s));return y.createElement(n.Provider,{value:l},o)}function i(a){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function Gr(e,t=[]){let n=[];function r(a,o){const s=y.createContext(o),l=n.length;n=[...n,o];function c(d){const{scope:f,children:h,...m}=d,g=(f==null?void 0:f[e][l])||s,E=y.useMemo(()=>m,Object.values(m));return y.createElement(g.Provider,{value:E},h)}function u(d,f){const h=(f==null?void 0:f[e][l])||s,m=y.useContext(h);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const i=()=>{const a=n.map(o=>y.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,vG(i,...t)]}function vG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Rn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const ns=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{};function yG(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lm(...e){return t=>e.forEach(n=>yG(n,t))}function Lt(...e){return y.useCallback(Lm(...e),e)}const rs=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find(bG);if(a){const o=a.props.children,s=i.map(l=>l===a?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return y.createElement(F5,ue({},r,{ref:t}),y.isValidElement(o)?y.cloneElement(o,void 0,s):null)}return y.createElement(F5,ue({},r,{ref:t}),n)});rs.displayName="Slot";const F5=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...EG(r,n.props),ref:t?Lm(t,n.ref):n.ref}):y.Children.count(n)>1?y.Children.only(null):null});F5.displayName="SlotClone";const _S=({children:e})=>y.createElement(y.Fragment,null,e);function bG(e){return y.isValidElement(e)&&e.type===_S}function EG(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const xG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gt=xG.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?rs:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(s,ue({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wS(e,t){e&&Zc.flushSync(()=>e.dispatchEvent(t))}const SS="Avatar",[TG,Yde]=Gr(SS),[_G,CS]=TG(SS),wG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,a]=y.useState("idle");return y.createElement(_G,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a},y.createElement(gt.span,ue({},r,{ref:t})))}),SG="AvatarImage",CG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=CS(SG,n),s=kG(r),l=Rn(c=>{i(c),o.onImageLoadingStatusChange(c)});return ns(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?y.createElement(gt.img,ue({},a,{ref:t,src:r})):null}),AG="AvatarFallback",NG=y.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,a=CS(AG,n),[o,s]=y.useState(r===void 0);return y.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),o&&a.imageLoadingStatus!=="loaded"?y.createElement(gt.span,ue({},i,{ref:t})):null});function kG(e){const[t,n]=y.useState("idle");return y.useEffect(()=>{if(!e){n("error");return}let r=!0;const i=new window.Image,a=o=>()=>{r&&n(o)};return n("loading"),i.onload=a("loaded"),i.onerror=a("error"),i.src=e,()=>{r=!1}},[e]),t}const AS=wG,NS=CG,kS=NG;function OG(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(o){var s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set:function(o,s){n.has(o)?n.set(o,s):i(o,s)}}}var MS="!";function $G(e){var t=e.separator||":",n=t.length===1,r=t[0],i=t.length;return function(o){for(var s=[],l=0,c=0,u,d=0;dc?u-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:E}}}function FG(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var i=r[0]==="[";i?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function BG(e){return{cache:PG(e.cacheSize),splitModifiers:$G(e),...RG(e)}}var zG=/\s+/;function UG(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(zG).map(function(o){var s=n(o),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,d=s.maybePostfixModifierPosition,f=r(d?u.substring(0,d):u),h=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:o};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:o};h=!1}var m=FG(l).join(":"),g=c?m+MS:m;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(function(o){if(!o.isTailwindClass)return!0;var s=o.modifierId,l=o.classGroupId,c=o.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),i(l,c).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(o){return o.originalClassName}).join(" ")}function jG(){for(var e=arguments.length,t=new Array(e),n=0;nb.jsx(AS,{ref:n,className:ze("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));V1.displayName=AS.displayName;const K1=y.forwardRef(({className:e,...t},n)=>b.jsx(NS,{ref:n,className:ze("aspect-square h-full w-full",e),...t}));K1.displayName=NS.displayName;const Dm=y.forwardRef(({className:e,...t},n)=>b.jsx(kS,{ref:n,className:ze("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Dm.displayName=kS.displayName;const w7=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,S7=PS,Pm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return S7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const u=n==null?void 0:n[c],d=a==null?void 0:a[c];if(u===null)return null;const f=w7(u)||w7(d);return i[c][f]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(m=>{let[g,E]=m;return Array.isArray(E)?E.includes({...a,...s}[g]):{...a,...s}[g]===E})?[...c,d,f]:c},[]);return S7(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},l6=Pm("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8"}},defaultVariants:{variant:"default",size:"default"}}),Je=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?rs:"button";return b.jsx(o,{className:ze(l6({variant:t,size:n,className:e})),ref:a,...i})});Je.displayName="Button";const z5="horizontal",iV=["horizontal","vertical"],$S=y.forwardRef((e,t)=>{const{decorative:n,orientation:r=z5,...i}=e,a=FS(r)?r:z5,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return y.createElement(gt.div,ue({"data-orientation":a},s,i,{ref:t}))});$S.propTypes={orientation(e,t,n){const r=e[t],i=String(r);return r&&!FS(r)?new Error(aV(i,n)):null}};function aV(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of: - horizontal - vertical -Defaulting to \`${M5}\`.`}function CS(e){return GG.includes(e)}const AS=SS,NS=y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>x.jsx(AS,{ref:i,decorative:n,orientation:t,className:ze("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));NS.displayName=AS.displayName;function Ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Xc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=KG({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Cn(n),l=y.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else i(c)},[a,e,i,s]);return[o,l]}function KG({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,i=y.useRef(r),a=Cn(t);return y.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function kS(e){const t=e+"CollectionProvider",[n,r]=jr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:m,children:g}=h,b=We.useRef(null),p=We.useRef(new Map).current;return We.createElement(i,{scope:m,itemMap:p,collectionRef:b},g)},s=e+"CollectionSlot",l=We.forwardRef((h,m)=>{const{scope:g,children:b}=h,p=a(s,g),v=Lt(m,p.collectionRef);return We.createElement(es,{ref:v},b)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=We.forwardRef((h,m)=>{const{scope:g,children:b,...p}=h,v=We.useRef(null),T=Lt(m,v),C=a(c,g);return We.useEffect(()=>(C.itemMap.set(v,{ref:v,...p}),()=>void C.itemMap.delete(v))),We.createElement(es,{[u]:"",ref:T},b)});function f(h){const m=a(e+"CollectionConsumer",h);return We.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const p=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((C,R)=>p.indexOf(C.ref.current)-p.indexOf(R.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},f,r]}const WG=y.createContext(void 0);function l0(e){const t=y.useContext(WG);return e||t||"ltr"}function qG(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e);y.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const L5="dismissableLayer.update",YG="dismissableLayer.pointerDownOutside",XG="dismissableLayer.focusOutside";let v7;const QG=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OS=y.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...c}=e,u=y.useContext(QG),[d,f]=y.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=y.useState({}),g=Lt(t,$=>f($)),b=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(p),T=d?b.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,R=T>=v,N=ZG($=>{const M=$.target,L=[...u.branches].some(X=>X.contains(M));!R||L||(a==null||a($),s==null||s($),$.defaultPrevented||l==null||l())},h),O=JG($=>{const M=$.target;[...u.branches].some(X=>X.contains(M))||(o==null||o($),s==null||s($),$.defaultPrevented||l==null||l())},h);return qG($=>{T===u.layers.size-1&&(i==null||i($),!$.defaultPrevented&&l&&($.preventDefault(),l()))},h),y.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(v7=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),y7(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=v7)}},[d,h,r,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),y7())},[d,u]),y.useEffect(()=>{const $=()=>m({});return document.addEventListener(L5,$),()=>document.removeEventListener(L5,$)},[]),y.createElement(pt.div,ue({},c,{ref:g,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,N.onPointerDownCapture)}))});function ZG(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){RS(YG,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function JG(e,t=globalThis==null?void 0:globalThis.document){const n=Cn(e),r=y.useRef(!1);return y.useEffect(()=>{const i=a=>{a.target&&!r.current&&RS(XG,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function y7(){const e=new CustomEvent(L5);document.dispatchEvent(e)}function RS(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?fS(i,a):i.dispatchEvent(a)}let dg=0;function IS(){y.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:b7()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:b7()),dg++,()=>{dg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),dg--}},[])}function b7(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const fg="focusScope.autoFocusOnMount",hg="focusScope.autoFocusOnUnmount",E7={bubbles:!1,cancelable:!0},MS=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=y.useState(null),c=Cn(i),u=Cn(a),d=y.useRef(null),f=Lt(t,g=>l(g)),h=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let v=function(N){if(h.paused||!s)return;const O=N.target;s.contains(O)?d.current=O:xo(d.current,{select:!0})},T=function(N){if(h.paused||!s)return;const O=N.relatedTarget;O!==null&&(s.contains(O)||xo(d.current,{select:!0}))},C=function(N){const O=document.activeElement;for(const $ of N)$.removedNodes.length>0&&(s!=null&&s.contains(O)||xo(s))};var g=v,b=T,p=C;document.addEventListener("focusin",v),document.addEventListener("focusout",T);const R=new MutationObserver(C);return s&&R.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",T),R.disconnect()}}},[r,s,h.paused]),y.useEffect(()=>{if(s){x7.add(h);const g=document.activeElement;if(!s.contains(g)){const p=new CustomEvent(fg,E7);s.addEventListener(fg,c),s.dispatchEvent(p),p.defaultPrevented||(eV(aV(LS(s)),{select:!0}),document.activeElement===g&&xo(s))}return()=>{s.removeEventListener(fg,c),setTimeout(()=>{const p=new CustomEvent(hg,E7);s.addEventListener(hg,u),s.dispatchEvent(p),p.defaultPrevented||xo(g??document.body,{select:!0}),s.removeEventListener(hg,u),x7.remove(h)},0)}}},[s,c,u,h]);const m=y.useCallback(g=>{if(!n&&!r||h.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,p=document.activeElement;if(b&&p){const v=g.currentTarget,[T,C]=tV(v);T&&C?!g.shiftKey&&p===C?(g.preventDefault(),n&&xo(T,{select:!0})):g.shiftKey&&p===T&&(g.preventDefault(),n&&xo(C,{select:!0})):p===v&&g.preventDefault()}},[n,r,h.paused]);return y.createElement(pt.div,ue({tabIndex:-1},o,{ref:f,onKeyDown:m}))});function eV(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xo(r,{select:t}),document.activeElement!==n)return}function tV(e){const t=LS(e),n=T7(t,e),r=T7(t.reverse(),e);return[n,r]}function LS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T7(e,t){for(const n of e)if(!nV(n,{upTo:t}))return n}function nV(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rV(e){return e instanceof HTMLInputElement&&"select"in e}function xo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rV(e)&&t&&e.select()}}const x7=iV();function iV(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_7(e,t),e.unshift(t)},remove(t){var n;e=_7(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function _7(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aV(e){return e.filter(t=>t.tagName!=="A")}const oV=zI["useId".toString()]||(()=>{});let sV=0;function Gs(e){const[t,n]=y.useState(oV());return Jo(()=>{e||n(r=>r??String(sV++))},[e]),e||(t?`radix-${t}`:"")}function Qc(e){return e.split("-")[1]}function t8(e){return e==="y"?"height":"width"}function Ua(e){return e.split("-")[0]}function pl(e){return["top","bottom"].includes(Ua(e))?"x":"y"}function w7(e,t,n){let{reference:r,floating:i}=e;const a=r.x+r.width/2-i.width/2,o=r.y+r.height/2-i.height/2,s=pl(t),l=t8(s),c=r[l]/2-i[l]/2,u=s==="x";let d;switch(Ua(t)){case"top":d={x:a,y:r.y-i.height};break;case"bottom":d={x:a,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:o};break;case"left":d={x:r.x-i.width,y:o};break;default:d={x:r.x,y:r.y}}switch(Qc(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const lV=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=w7(c,r,l),f=r,h={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:a,placement:o,rects:s,platform:l,elements:c}=t;if(n==null)return{};const u=DS(r),d={x:i,y:a},f=pl(o),h=t8(f),m=await l.getDimensions(n),g=f==="y",b=g?"top":"left",p=g?"bottom":"right",v=g?"clientHeight":"clientWidth",T=s.reference[h]+s.reference[f]-d[f]-s.floating[h],C=d[f]-s.reference[f],R=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let N=R?R[v]:0;N&&await(l.isElement==null?void 0:l.isElement(R))||(N=c.floating[v]||s.floating[h]);const O=T/2-C/2,$=u[b],M=N-m[h]-u[p],L=N/2-m[h]/2+O,X=P5($,L,M),Z=Qc(o)!=null&&L!=X&&s.reference[h]/2-(L<$?u[b]:u[p])-m[h]/2<0;return{[f]:d[f]-(Z?L<$?$-L:M-L:0),data:{[f]:X,centerOffset:L-X}}}}),PS=["top","right","bottom","left"];PS.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const cV={left:"right",right:"left",bottom:"top",top:"bottom"};function sh(e){return e.replace(/left|right|bottom|top/g,t=>cV[t])}function uV(e,t,n){n===void 0&&(n=!1);const r=Qc(e),i=pl(e),a=t8(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=sh(o)),{main:o,cross:sh(o)}}const dV={start:"end",end:"start"};function mg(e){return e.replace(/start|end/g,t=>dV[t])}const fV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=e,b=Ua(r),p=Ua(o)===o,v=await(s.isRTL==null?void 0:s.isRTL(l.floating)),T=d||(p||!m?[sh(o)]:function(X){const Z=sh(X);return[mg(X),Z,mg(Z)]}(o));d||h==="none"||T.push(...function(X,Z,Q,K){const V=Qc(X);let ne=function(B,w,D){const A=["left","right"],W=["right","left"],te=["top","bottom"],P=["bottom","top"];switch(B){case"top":case"bottom":return D?w?W:A:w?A:W;case"left":case"right":return w?te:P;default:return[]}}(Ua(X),Q==="start",K);return V&&(ne=ne.map(B=>B+"-"+V),Z&&(ne=ne.concat(ne.map(mg)))),ne}(o,m,h,v));const C=[o,...T],R=await F1(t,g),N=[];let O=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&N.push(R[b]),u){const{main:X,cross:Z}=uV(r,a,v);N.push(R[X],R[Z])}if(O=[...O,{placement:r,overflows:N}],!N.every(X=>X<=0)){var $,M;const X=((($=i.flip)==null?void 0:$.index)||0)+1,Z=C[X];if(Z)return{data:{index:X,overflows:O},reset:{placement:Z}};let Q=(M=O.filter(K=>K.overflows[0]<=0).sort((K,V)=>K.overflows[1]-V.overflows[1])[0])==null?void 0:M.placement;if(!Q)switch(f){case"bestFit":{var L;const K=(L=O.map(V=>[V.placement,V.overflows.filter(ne=>ne>0).reduce((ne,B)=>ne+B,0)]).sort((V,ne)=>V[1]-ne[1])[0])==null?void 0:L[0];K&&(Q=K);break}case"initialPlacement":Q=o}if(r!==Q)return{reset:{placement:Q}}}return{}}}};function C7(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A7(e){return PS.some(t=>e[t]>=0)}const hV=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:i}=t;switch(n){case"referenceHidden":{const a=C7(await F1(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A7(a)}}}case"escaped":{const a=C7(await F1(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:a,escaped:A7(a)}}}default:return{}}}}},mV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(a,o){const{placement:s,platform:l,elements:c}=a,u=await(l.isRTL==null?void 0:l.isRTL(c.floating)),d=Ua(s),f=Qc(s),h=pl(s)==="x",m=["left","top"].includes(d)?-1:1,g=u&&h?-1:1,b=typeof o=="function"?o(a):o;let{mainAxis:p,crossAxis:v,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return f&&typeof T=="number"&&(v=f==="end"?-1*T:T),h?{x:v*g,y:p*m}:{x:p*m,y:v*g}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function $S(e){return e==="x"?"y":"x"}const pV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:p,y:v}=b;return{x:p,y:v}}},...l}=e,c={x:n,y:r},u=await F1(t,l),d=pl(Ua(i)),f=$S(d);let h=c[d],m=c[f];if(a){const b=d==="y"?"bottom":"right";h=P5(h+u[d==="y"?"top":"left"],h,h-u[b])}if(o){const b=f==="y"?"bottom":"right";m=P5(m+u[f==="y"?"top":"left"],m,m-u[b])}const g=s.fn({...t,[d]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},gV=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=pl(i),f=$S(d);let h=u[d],m=u[f];const g=typeof s=="function"?s(t):s,b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const T=d==="y"?"height":"width",C=a.reference[d]-a.floating[T]+b.mainAxis,R=a.reference[d]+a.reference[T]-b.mainAxis;hR&&(h=R)}if(c){var p,v;const T=d==="y"?"width":"height",C=["top","left"].includes(Ua(i)),R=a.reference[f]-a.floating[T]+(C&&((p=o.offset)==null?void 0:p[f])||0)+(C?0:b.crossAxis),N=a.reference[f]+a.reference[T]+(C?0:((v=o.offset)==null?void 0:v[f])||0)-(C?b.crossAxis:0);mN&&(m=N)}return{[d]:h,[f]:m}}}},vV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=e,l=await F1(t,s),c=Ua(n),u=Qc(n),d=pl(n)==="x",{width:f,height:h}=r.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,m=u==="end"?"top":"bottom");const b=h-l[m],p=f-l[g],v=!t.middlewareData.shift;let T=b,C=p;if(d){const N=f-l.left-l.right;C=u||v?D5(p,N):N}else{const N=h-l.top-l.bottom;T=u||v?D5(b,N):N}if(v&&!u){const N=Ns(l.left,0),O=Ns(l.right,0),$=Ns(l.top,0),M=Ns(l.bottom,0);d?C=f-2*(N!==0||O!==0?N+O:Ns(l.left,l.right)):T=h-2*($!==0||M!==0?$+M:Ns(l.top,l.bottom))}await o({...t,availableWidth:C,availableHeight:T});const R=await i.getDimensions(a.floating);return f!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function ri(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oi(e){return ri(e).getComputedStyle(e)}function FS(e){return e instanceof ri(e).Node}function ts(e){return FS(e)?(e.nodeName||"").toLowerCase():""}function Li(e){return e instanceof ri(e).HTMLElement}function Mr(e){return e instanceof ri(e).Element}function N7(e){return typeof ShadowRoot>"u"?!1:e instanceof ri(e).ShadowRoot||e instanceof ShadowRoot}function B1(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function yV(e){return["table","td","th"].includes(ts(e))}function $5(e){const t=n8(),n=Oi(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function n8(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Cm(e){return["html","body","#document"].includes(ts(e))}const k7=Math.min,Ju=Math.max,lh=Math.round;function BS(e){const t=Oi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Li(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=lh(n)!==a||lh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,fallback:s}}function zS(e){return Mr(e)?e:e.contextElement}const US={x:1,y:1};function yc(e){const t=zS(e);if(!Li(t))return US;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=BS(t);let o=(a?lh(n.width):n.width)/r,s=(a?lh(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const O7={x:0,y:0};function HS(e,t,n){var r,i;if(t===void 0&&(t=!0),!n8())return O7;const a=e?ri(e):window;return!n||t&&n!==a?O7:{x:((r=a.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function el(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=zS(e);let o=US;t&&(r?Mr(r)&&(o=yc(r)):o=yc(e));const s=HS(a,n,r);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const f=ri(a),h=r&&Mr(r)?ri(r):r;let m=f.frameElement;for(;m&&r&&h!==f;){const g=yc(m),b=m.getBoundingClientRect(),p=getComputedStyle(m);b.x+=(m.clientLeft+parseFloat(p.paddingLeft))*g.x,b.y+=(m.clientTop+parseFloat(p.paddingTop))*g.y,l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=b.x,c+=b.y,m=ri(m).frameElement}}return oh({width:u,height:d,x:l,y:c})}function Ko(e){return((FS(e)?e.ownerDocument:e.document)||window.document).documentElement}function Am(e){return Mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jS(e){return el(Ko(e)).left+Am(e).scrollLeft}function Mc(e){if(ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||N7(e)&&e.host||Ko(e);return N7(t)?t.host:t}function GS(e){const t=Mc(e);return Cm(t)?t.ownerDocument.body:Li(t)&&B1(t)?t:GS(t)}function e1(e,t){var n;t===void 0&&(t=[]);const r=GS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ri(r);return i?t.concat(a,a.visualViewport||[],B1(r)?r:[]):t.concat(r,e1(r))}function R7(e,t,n){let r;if(t==="viewport")r=function(i,a){const o=ri(i),s=Ko(i),l=o.visualViewport;let c=s.clientWidth,u=s.clientHeight,d=0,f=0;if(l){c=l.width,u=l.height;const h=n8();(!h||h&&a==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:c,height:u,x:d,y:f}}(e,n);else if(t==="document")r=function(i){const a=Ko(i),o=Am(i),s=i.ownerDocument.body,l=Ju(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),c=Ju(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let u=-o.scrollLeft+jS(i);const d=-o.scrollTop;return Oi(s).direction==="rtl"&&(u+=Ju(a.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:d}}(Ko(e));else if(Mr(t))r=function(i,a){const o=el(i,!0,a==="fixed"),s=o.top+i.clientTop,l=o.left+i.clientLeft,c=Li(i)?yc(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:s*c.y}}(t,n);else{const i=HS(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return oh(r)}function VS(e,t){const n=Mc(e);return!(n===t||!Mr(n)||Cm(n))&&(Oi(n).position==="fixed"||VS(n,t))}function I7(e,t){return Li(e)&&Oi(e).position!=="fixed"?t?t(e):e.offsetParent:null}function M7(e,t){const n=ri(e);if(!Li(e))return n;let r=I7(e,t);for(;r&&yV(r)&&Oi(r).position==="static";)r=I7(r,t);return r&&(ts(r)==="html"||ts(r)==="body"&&Oi(r).position==="static"&&!$5(r))?n:r||function(i){let a=Mc(i);for(;Li(a)&&!Cm(a);){if($5(a))return a;a=Mc(a)}return null}(e)||n}function bV(e,t,n){const r=Li(t),i=Ko(t),a=n==="fixed",o=el(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&!a)if((ts(t)!=="body"||B1(i))&&(s=Am(t)),Li(t)){const c=el(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=jS(i));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}const EV={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=n==="clippingAncestors"?function(c,u){const d=u.get(c);if(d)return d;let f=e1(c).filter(b=>Mr(b)&&ts(b)!=="body"),h=null;const m=Oi(c).position==="fixed";let g=m?Mc(c):c;for(;Mr(g)&&!Cm(g);){const b=Oi(g),p=$5(g);p||b.position!=="fixed"||(h=null),(m?!p&&!h:!p&&b.position==="static"&&h&&["absolute","fixed"].includes(h.position)||B1(g)&&!p&&VS(c,g))?f=f.filter(v=>v!==g):h=b,g=Mc(g)}return u.set(c,f),f}(t,this._c):[].concat(n),o=[...a,r],s=o[0],l=o.reduce((c,u)=>{const d=R7(t,u,i);return c.top=Ju(d.top,c.top),c.right=k7(d.right,c.right),c.bottom=k7(d.bottom,c.bottom),c.left=Ju(d.left,c.left),c},R7(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Li(n),a=Ko(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&r!=="fixed")&&((ts(n)!=="body"||B1(a))&&(o=Am(n)),Li(n))){const c=el(n);s=yc(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}},isElement:Mr,getDimensions:function(e){return BS(e)},getOffsetParent:M7,getDocumentElement:Ko,getScale:yc,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||M7,a=this.getDimensions;return{reference:bV(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Oi(e).direction==="rtl"};function TV(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i||a?[...Mr(e)?e1(e):e.contextElement?e1(e.contextElement):[],...e1(t)]:[];l.forEach(f=>{const h=!Mr(f)&&f.toString().includes("V");!i||s&&!h||f.addEventListener("scroll",n,{passive:!0}),a&&f.addEventListener("resize",n)});let c,u=null;o&&(u=new ResizeObserver(()=>{n()}),Mr(e)&&!s&&u.observe(e),Mr(e)||!e.contextElement||s||u.observe(e.contextElement),u.observe(t));let d=s?el(e):null;return s&&function f(){const h=el(e);!d||h.x===d.x&&h.y===d.y&&h.width===d.width&&h.height===d.height||n(),d=h,c=requestAnimationFrame(f)}(),n(),()=>{var f;l.forEach(h=>{i&&h.removeEventListener("scroll",n),a&&h.removeEventListener("resize",n)}),(f=u)==null||f.disconnect(),u=null,s&&cancelAnimationFrame(c)}}const xV=(e,t,n)=>{const r=new Map,i={platform:EV,...n},a={...i.platform,_c:r};return lV(e,t,{...i,platform:a})},_V=e=>{const{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?S7({element:t.current,padding:n}).fn(i):{}:t?S7({element:t,padding:n}).fn(i):{}}}};var cf=typeof document<"u"?y.useLayoutEffect:y.useEffect;function ch(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ch(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!ch(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function KS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L7(e,t){const n=KS(e);return Math.round(t*n)/n}function D7(e){const t=y.useRef(e);return cf(()=>{t.current=e}),t}function wV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=y.useState(r);ch(f,r)||h(r);const[m,g]=y.useState(null),[b,p]=y.useState(null),v=y.useCallback(ne=>{ne!=N.current&&(N.current=ne,g(ne))},[g]),T=y.useCallback(ne=>{ne!==O.current&&(O.current=ne,p(ne))},[p]),C=a||m,R=o||b,N=y.useRef(null),O=y.useRef(null),$=y.useRef(u),M=D7(l),L=D7(i),X=y.useCallback(()=>{if(!N.current||!O.current)return;const ne={placement:t,strategy:n,middleware:f};L.current&&(ne.platform=L.current),xV(N.current,O.current,ne).then(B=>{const w={...B,isPositioned:!0};Z.current&&!ch($.current,w)&&($.current=w,Vc.flushSync(()=>{d(w)}))})},[f,t,n,L]);cf(()=>{c===!1&&$.current.isPositioned&&($.current.isPositioned=!1,d(ne=>({...ne,isPositioned:!1})))},[c]);const Z=y.useRef(!1);cf(()=>(Z.current=!0,()=>{Z.current=!1}),[]),cf(()=>{if(C&&(N.current=C),R&&(O.current=R),C&&R){if(M.current)return M.current(C,R,X);X()}},[C,R,X,M]);const Q=y.useMemo(()=>({reference:N,floating:O,setReference:v,setFloating:T}),[v,T]),K=y.useMemo(()=>({reference:C,floating:R}),[C,R]),V=y.useMemo(()=>{const ne={position:n,left:0,top:0};if(!K.floating)return ne;const B=L7(K.floating,u.x),w=L7(K.floating,u.y);return s?{...ne,transform:"translate("+B+"px, "+w+"px)",...KS(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:w}},[n,s,K.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:X,refs:Q,elements:K,floatingStyles:V}),[u,X,Q,K,V])}function r8(e){const[t,n]=y.useState(void 0);return Jo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const WS="Popper",[qS,YS]=jr(WS),[SV,XS]=qS(WS),CV=e=>{const{__scopePopper:t,children:n}=e,[r,i]=y.useState(null);return y.createElement(SV,{scope:t,anchor:r,onAnchorChange:i},n)},AV="PopperAnchor",NV=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=XS(AV,n),o=y.useRef(null),s=Lt(t,o);return y.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:y.createElement(pt.div,ue({},i,{ref:s}))}),QS="PopperContent",[kV,Rde]=qS(QS),OV=y.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:b=[],collisionPadding:p=0,sticky:v="partial",hideWhenDetached:T=!1,avoidCollisions:C=!0,onPlaced:R,...N}=e,O=XS(QS,u),[$,M]=y.useState(null),L=Lt(t,en=>M(en)),[X,Z]=y.useState(null),Q=r8(X),K=(n=Q==null?void 0:Q.width)!==null&&n!==void 0?n:0,V=(r=Q==null?void 0:Q.height)!==null&&r!==void 0?r:0,ne=d+(h!=="center"?"-"+h:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},w=Array.isArray(b)?b:[b],D=w.length>0,A={padding:B,boundary:w.filter(RV),altBoundary:D},{refs:W,floatingStyles:te,placement:P,isPositioned:Te,middlewareData:Se}=wV({strategy:"fixed",placement:ne,whileElementsMounted:TV,elements:{reference:O.anchor},middleware:[mV({mainAxis:f+V,alignmentAxis:m}),C&&pV({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?gV():void 0,...A}),C&&fV({...A}),vV({...A,apply:({elements:en,rects:sr,availableWidth:j,availableHeight:ie})=>{const{width:ae,height:le}=sr.reference,_e=en.floating.style;_e.setProperty("--radix-popper-available-width",`${j}px`),_e.setProperty("--radix-popper-available-height",`${ie}px`),_e.setProperty("--radix-popper-anchor-width",`${ae}px`),_e.setProperty("--radix-popper-anchor-height",`${le}px`)}}),X&&_V({element:X,padding:g}),IV({arrowWidth:K,arrowHeight:V}),T&&hV({strategy:"referenceHidden"})]}),[Ce,Ae]=ZS(P),qe=Cn(R);Jo(()=>{Te&&(qe==null||qe())},[Te,qe]);const xe=(i=Se.arrow)===null||i===void 0?void 0:i.x,st=(a=Se.arrow)===null||a===void 0?void 0:a.y,St=((o=Se.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[Ct,or]=y.useState();return Jo(()=>{$&&or(window.getComputedStyle($).zIndex)},[$]),y.createElement("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:Te?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ct,["--radix-popper-transform-origin"]:[(s=Se.transformOrigin)===null||s===void 0?void 0:s.x,(l=Se.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},y.createElement(kV,{scope:u,placedSide:Ce,onArrowChange:Z,arrowX:xe,arrowY:st,shouldHideArrow:St},y.createElement(pt.div,ue({"data-side":Ce,"data-align":Ae},N,{ref:L,style:{...N.style,animation:Te?void 0:"none",opacity:(c=Se.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function RV(e){return e!==null}const IV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;const{placement:s,rects:l,middlewareData:c}=t,d=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=ZS(s),b={start:"0%",center:"50%",end:"100%"}[g],p=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+f/2,v=((a=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0)+h/2;let T="",C="";return m==="bottom"?(T=d?b:`${p}px`,C=`${-h}px`):m==="top"?(T=d?b:`${p}px`,C=`${l.floating.height+h}px`):m==="right"?(T=`${-h}px`,C=d?b:`${v}px`):m==="left"&&(T=`${l.floating.width+h}px`,C=d?b:`${v}px`),{data:{x:T,y:C}}}});function ZS(e){const[t,n="center"]=e.split("-");return[t,n]}const MV=CV,LV=NV,DV=OV,JS=y.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?XL.createPortal(y.createElement(pt.div,ue({},i,{ref:t})),r):null});function PV(e,t){return y.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const ir=e=>{const{present:t,children:n}=e,r=$V(t),i=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),a=Lt(r.ref,i.ref);return typeof n=="function"||r.isPresent?y.cloneElement(i,{ref:a}):null};ir.displayName="Presence";function $V(e){const[t,n]=y.useState(),r=y.useRef({}),i=y.useRef(e),a=y.useRef("none"),o=e?"mounted":"unmounted",[s,l]=PV(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=id(r.current);a.current=s==="mounted"?c:"none"},[s]),Jo(()=>{const c=r.current,u=i.current;if(u!==e){const f=a.current,h=id(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Jo(()=>{if(t){const c=d=>{const h=id(r.current).includes(d.animationName);d.target===t&&h&&Vc.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=id(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function id(e){return(e==null?void 0:e.animationName)||"none"}const pg="rovingFocusGroup.onEntryFocus",FV={bubbles:!1,cancelable:!0},i8="RovingFocusGroup",[F5,eC,BV]=kS(i8),[zV,Zc]=jr(i8,[BV]),[UV,HV]=zV(i8),jV=y.forwardRef((e,t)=>y.createElement(F5.Provider,{scope:e.__scopeRovingFocusGroup},y.createElement(F5.Slot,{scope:e.__scopeRovingFocusGroup},y.createElement(GV,ue({},e,{ref:t}))))),GV=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=y.useRef(null),f=Lt(t,d),h=l0(a),[m=null,g]=Xc({prop:o,defaultProp:s,onChange:l}),[b,p]=y.useState(!1),v=Cn(c),T=eC(n),C=y.useRef(!1),[R,N]=y.useState(0);return y.useEffect(()=>{const O=d.current;if(O)return O.addEventListener(pg,v),()=>O.removeEventListener(pg,v)},[v]),y.createElement(UV,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:m,onItemFocus:y.useCallback(O=>g(O),[g]),onItemShiftTab:y.useCallback(()=>p(!0),[]),onFocusableItemAdd:y.useCallback(()=>N(O=>O+1),[]),onFocusableItemRemove:y.useCallback(()=>N(O=>O-1),[])},y.createElement(pt.div,ue({tabIndex:b||R===0?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Ue(e.onMouseDown,()=>{C.current=!0}),onFocus:Ue(e.onFocus,O=>{const $=!C.current;if(O.target===O.currentTarget&&$&&!b){const M=new CustomEvent(pg,FV);if(O.currentTarget.dispatchEvent(M),!M.defaultPrevented){const L=T().filter(V=>V.focusable),X=L.find(V=>V.active),Z=L.find(V=>V.id===m),K=[X,Z,...L].filter(Boolean).map(V=>V.ref.current);tC(K)}}C.current=!1}),onBlur:Ue(e.onBlur,()=>p(!1))})))}),VV="RovingFocusGroupItem",KV=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=Gs(),l=a||s,c=HV(VV,n),u=c.currentTabStopId===l,d=eC(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return y.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),y.createElement(F5.ItemSlot,{scope:n,id:l,focusable:r,active:i},y.createElement(pt.span,ue({tabIndex:u?0:-1,"data-orientation":c.orientation},o,{ref:t,onMouseDown:Ue(e.onMouseDown,m=>{r?c.onItemFocus(l):m.preventDefault()}),onFocus:Ue(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ue(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=YV(m,c.orientation,c.dir);if(g!==void 0){m.preventDefault();let p=d().filter(v=>v.focusable).map(v=>v.ref.current);if(g==="last")p.reverse();else if(g==="prev"||g==="next"){g==="prev"&&p.reverse();const v=p.indexOf(m.currentTarget);p=c.loop?XV(p,v+1):p.slice(v+1)}setTimeout(()=>tC(p))}})})))}),WV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function YV(e,t,n){const r=qV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return WV[r]}function tC(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const a8=jV,o8=KV;var QV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ol=new WeakMap,ad=new WeakMap,od={},gg=0,nC=function(e){return e&&(e.host||nC(e.parentNode))},ZV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=nC(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},JV=function(e,t,n,r){var i=ZV(t,Array.isArray(e)?e:[e]);od[n]||(od[n]=new WeakMap);var a=od[n],o=[],s=new Set,l=new Set(i),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else{var h=f.getAttribute(r),m=h!==null&&h!=="false",g=(Ol.get(f)||0)+1,b=(a.get(f)||0)+1;Ol.set(f,g),a.set(f,b),o.push(f),g===1&&m&&ad.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}})};return u(t),s.clear(),gg++,function(){o.forEach(function(d){var f=Ol.get(d)-1,h=a.get(d)-1;Ol.set(d,f),a.set(d,h),f||(ad.has(d)||d.removeAttribute(r),ad.delete(d)),h||d.removeAttribute(n)}),gg--,gg||(Ol=new WeakMap,Ol=new WeakMap,ad=new WeakMap,od={})}},rC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||QV(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),JV(r,i,n,"aria-hidden")):function(){return null}},Qi=function(){return Qi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return gK;var t=vK(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bK=sC(),EK=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(tK,` { +Defaulting to \`${z5}\`.`}function FS(e){return iV.includes(e)}const BS=$S,zS=y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>b.jsx(BS,{ref:i,decorative:n,orientation:t,className:ze("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));zS.displayName=BS.displayName;function Ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function ru({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=oV({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Rn(n),l=y.useCallback(c=>{if(a){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else i(c)},[a,e,i,s]);return[o,l]}function oV({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,i=y.useRef(r),a=Rn(t);return y.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function US(e){const t=e+"CollectionProvider",[n,r]=Gr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:m,children:g}=h,E=He.useRef(null),p=He.useRef(new Map).current;return He.createElement(i,{scope:m,itemMap:p,collectionRef:E},g)},s=e+"CollectionSlot",l=He.forwardRef((h,m)=>{const{scope:g,children:E}=h,p=a(s,g),v=Lt(m,p.collectionRef);return He.createElement(rs,{ref:v},E)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=He.forwardRef((h,m)=>{const{scope:g,children:E,...p}=h,v=He.useRef(null),T=Lt(m,v),C=a(c,g);return He.useEffect(()=>(C.itemMap.set(v,{ref:v,...p}),()=>void C.itemMap.delete(v))),He.createElement(rs,{[u]:"",ref:T},E)});function f(h){const m=a(e+"CollectionConsumer",h);return He.useCallback(()=>{const E=m.collectionRef.current;if(!E)return[];const p=Array.from(E.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((C,O)=>p.indexOf(C.ref.current)-p.indexOf(O.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},f,r]}const sV=y.createContext(void 0);function b0(e){const t=y.useContext(sV);return e||t||"ltr"}function lV(e,t=globalThis==null?void 0:globalThis.document){const n=Rn(e);y.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const U5="dismissableLayer.update",cV="dismissableLayer.pointerDownOutside",uV="dismissableLayer.focusOutside";let C7;const dV=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jS=y.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...c}=e,u=y.useContext(dV),[d,f]=y.useState(null),h=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=y.useState({}),g=Lt(t,D=>f(D)),E=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=E.indexOf(p),T=d?E.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,O=T>=v,N=fV(D=>{const I=D.target,L=[...u.branches].some(X=>X.contains(I));!O||L||(a==null||a(D),s==null||s(D),D.defaultPrevented||l==null||l())},h),R=hV(D=>{const I=D.target;[...u.branches].some(X=>X.contains(I))||(o==null||o(D),s==null||s(D),D.defaultPrevented||l==null||l())},h);return lV(D=>{T===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))},h),y.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(C7=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),A7(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=C7)}},[d,h,r,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),A7())},[d,u]),y.useEffect(()=>{const D=()=>m({});return document.addEventListener(U5,D),()=>document.removeEventListener(U5,D)},[]),y.createElement(gt.div,ue({},c,{ref:g,style:{pointerEvents:C?O?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,N.onPointerDownCapture)}))});function fV(e,t=globalThis==null?void 0:globalThis.document){const n=Rn(e),r=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){HS(cV,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function hV(e,t=globalThis==null?void 0:globalThis.document){const n=Rn(e),r=y.useRef(!1);return y.useEffect(()=>{const i=a=>{a.target&&!r.current&&HS(uV,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function A7(){const e=new CustomEvent(U5);document.dispatchEvent(e)}function HS(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?wS(i,a):i.dispatchEvent(a)}let vg=0;function GS(){y.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:N7()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:N7()),vg++,()=>{vg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),vg--}},[])}function N7(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const yg="focusScope.autoFocusOnMount",bg="focusScope.autoFocusOnUnmount",k7={bubbles:!1,cancelable:!0},VS=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=y.useState(null),c=Rn(i),u=Rn(a),d=y.useRef(null),f=Lt(t,g=>l(g)),h=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let v=function(N){if(h.paused||!s)return;const R=N.target;s.contains(R)?d.current=R:So(d.current,{select:!0})},T=function(N){if(h.paused||!s)return;const R=N.relatedTarget;R!==null&&(s.contains(R)||So(d.current,{select:!0}))},C=function(N){const R=document.activeElement;for(const D of N)D.removedNodes.length>0&&(s!=null&&s.contains(R)||So(s))};var g=v,E=T,p=C;document.addEventListener("focusin",v),document.addEventListener("focusout",T);const O=new MutationObserver(C);return s&&O.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",T),O.disconnect()}}},[r,s,h.paused]),y.useEffect(()=>{if(s){R7.add(h);const g=document.activeElement;if(!s.contains(g)){const p=new CustomEvent(yg,k7);s.addEventListener(yg,c),s.dispatchEvent(p),p.defaultPrevented||(mV(bV(KS(s)),{select:!0}),document.activeElement===g&&So(s))}return()=>{s.removeEventListener(yg,c),setTimeout(()=>{const p=new CustomEvent(bg,k7);s.addEventListener(bg,u),s.dispatchEvent(p),p.defaultPrevented||So(g??document.body,{select:!0}),s.removeEventListener(bg,u),R7.remove(h)},0)}}},[s,c,u,h]);const m=y.useCallback(g=>{if(!n&&!r||h.paused)return;const E=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,p=document.activeElement;if(E&&p){const v=g.currentTarget,[T,C]=pV(v);T&&C?!g.shiftKey&&p===C?(g.preventDefault(),n&&So(T,{select:!0})):g.shiftKey&&p===T&&(g.preventDefault(),n&&So(C,{select:!0})):p===v&&g.preventDefault()}},[n,r,h.paused]);return y.createElement(gt.div,ue({tabIndex:-1},o,{ref:f,onKeyDown:m}))});function mV(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(So(r,{select:t}),document.activeElement!==n)return}function pV(e){const t=KS(e),n=O7(t,e),r=O7(t.reverse(),e);return[n,r]}function KS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function O7(e,t){for(const n of e)if(!gV(n,{upTo:t}))return n}function gV(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vV(e){return e instanceof HTMLInputElement&&"select"in e}function So(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&vV(e)&&t&&e.select()}}const R7=yV();function yV(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=M7(e,t),e.unshift(t)},remove(t){var n;e=M7(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function M7(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bV(e){return e.filter(t=>t.tagName!=="A")}const EV=QM["useId".toString()]||(()=>{});let xV=0;function Vs(e){const[t,n]=y.useState(EV());return ns(()=>{e||n(r=>r??String(xV++))},[e]),e||(t?`radix-${t}`:"")}function iu(e){return e.split("-")[1]}function c6(e){return e==="y"?"height":"width"}function Ga(e){return e.split("-")[0]}function vl(e){return["top","bottom"].includes(Ga(e))?"x":"y"}function I7(e,t,n){let{reference:r,floating:i}=e;const a=r.x+r.width/2-i.width/2,o=r.y+r.height/2-i.height/2,s=vl(t),l=c6(s),c=r[l]/2-i[l]/2,u=s==="x";let d;switch(Ga(t)){case"top":d={x:a,y:r.y-i.height};break;case"bottom":d={x:a,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:o};break;case"left":d={x:r.x-i.width,y:o};break;default:d={x:r.x,y:r.y}}switch(iu(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const TV=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=I7(c,r,l),f=r,h={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:a,placement:o,rects:s,platform:l,elements:c}=t;if(n==null)return{};const u=WS(r),d={x:i,y:a},f=vl(o),h=c6(f),m=await l.getDimensions(n),g=f==="y",E=g?"top":"left",p=g?"bottom":"right",v=g?"clientHeight":"clientWidth",T=s.reference[h]+s.reference[f]-d[f]-s.floating[h],C=d[f]-s.reference[f],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let N=O?O[v]:0;N&&await(l.isElement==null?void 0:l.isElement(O))||(N=c.floating[v]||s.floating[h]);const R=T/2-C/2,D=u[E],I=N-m[h]-u[p],L=N/2-m[h]/2+R,X=H5(D,L,I),Z=iu(o)!=null&&L!=X&&s.reference[h]/2-(Le.concat(t,t+"-start",t+"-end"),[]);const _V={left:"right",right:"left",bottom:"top",top:"bottom"};function Eh(e){return e.replace(/left|right|bottom|top/g,t=>_V[t])}function wV(e,t,n){n===void 0&&(n=!1);const r=iu(e),i=vl(e),a=c6(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Eh(o)),{main:o,cross:Eh(o)}}const SV={start:"end",end:"start"};function Eg(e){return e.replace(/start|end/g,t=>SV[t])}const CV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=e,E=Ga(r),p=Ga(o)===o,v=await(s.isRTL==null?void 0:s.isRTL(l.floating)),T=d||(p||!m?[Eh(o)]:function(X){const Z=Eh(X);return[Eg(X),Z,Eg(Z)]}(o));d||h==="none"||T.push(...function(X,Z,Q,K){const V=iu(X);let ne=function(B,w,P){const A=["left","right"],W=["right","left"],te=["top","bottom"],$=["bottom","top"];switch(B){case"top":case"bottom":return P?w?W:A:w?A:W;case"left":case"right":return w?te:$;default:return[]}}(Ga(X),Q==="start",K);return V&&(ne=ne.map(B=>B+"-"+V),Z&&(ne=ne.concat(ne.map(Eg)))),ne}(o,m,h,v));const C=[o,...T],O=await W1(t,g),N=[];let R=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&N.push(O[E]),u){const{main:X,cross:Z}=wV(r,a,v);N.push(O[X],O[Z])}if(R=[...R,{placement:r,overflows:N}],!N.every(X=>X<=0)){var D,I;const X=(((D=i.flip)==null?void 0:D.index)||0)+1,Z=C[X];if(Z)return{data:{index:X,overflows:R},reset:{placement:Z}};let Q=(I=R.filter(K=>K.overflows[0]<=0).sort((K,V)=>K.overflows[1]-V.overflows[1])[0])==null?void 0:I.placement;if(!Q)switch(f){case"bestFit":{var L;const K=(L=R.map(V=>[V.placement,V.overflows.filter(ne=>ne>0).reduce((ne,B)=>ne+B,0)]).sort((V,ne)=>V[1]-ne[1])[0])==null?void 0:L[0];K&&(Q=K);break}case"initialPlacement":Q=o}if(r!==Q)return{reset:{placement:Q}}}return{}}}};function D7(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P7(e){return qS.some(t=>e[t]>=0)}const AV=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:i}=t;switch(n){case"referenceHidden":{const a=D7(await W1(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:P7(a)}}}case"escaped":{const a=D7(await W1(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:a,escaped:P7(a)}}}default:return{}}}}},NV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(a,o){const{placement:s,platform:l,elements:c}=a,u=await(l.isRTL==null?void 0:l.isRTL(c.floating)),d=Ga(s),f=iu(s),h=vl(s)==="x",m=["left","top"].includes(d)?-1:1,g=u&&h?-1:1,E=typeof o=="function"?o(a):o;let{mainAxis:p,crossAxis:v,alignmentAxis:T}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return f&&typeof T=="number"&&(v=f==="end"?-1*T:T),h?{x:v*g,y:p*m}:{x:p*m,y:v*g}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function YS(e){return e==="x"?"y":"x"}const kV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:E=>{let{x:p,y:v}=E;return{x:p,y:v}}},...l}=e,c={x:n,y:r},u=await W1(t,l),d=vl(Ga(i)),f=YS(d);let h=c[d],m=c[f];if(a){const E=d==="y"?"bottom":"right";h=H5(h+u[d==="y"?"top":"left"],h,h-u[E])}if(o){const E=f==="y"?"bottom":"right";m=H5(m+u[f==="y"?"top":"left"],m,m-u[E])}const g=s.fn({...t,[d]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},OV=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=vl(i),f=YS(d);let h=u[d],m=u[f];const g=typeof s=="function"?s(t):s,E=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const T=d==="y"?"height":"width",C=a.reference[d]-a.floating[T]+E.mainAxis,O=a.reference[d]+a.reference[T]-E.mainAxis;hO&&(h=O)}if(c){var p,v;const T=d==="y"?"width":"height",C=["top","left"].includes(Ga(i)),O=a.reference[f]-a.floating[T]+(C&&((p=o.offset)==null?void 0:p[f])||0)+(C?0:E.crossAxis),N=a.reference[f]+a.reference[T]+(C?0:((v=o.offset)==null?void 0:v[f])||0)-(C?E.crossAxis:0);mN&&(m=N)}return{[d]:h,[f]:m}}}},RV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=e,l=await W1(t,s),c=Ga(n),u=iu(n),d=vl(n)==="x",{width:f,height:h}=r.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,m=u==="end"?"top":"bottom");const E=h-l[m],p=f-l[g],v=!t.middlewareData.shift;let T=E,C=p;if(d){const N=f-l.left-l.right;C=u||v?j5(p,N):N}else{const N=h-l.top-l.bottom;T=u||v?j5(E,N):N}if(v&&!u){const N=Rs(l.left,0),R=Rs(l.right,0),D=Rs(l.top,0),I=Rs(l.bottom,0);d?C=f-2*(N!==0||R!==0?N+R:Rs(l.left,l.right)):T=h-2*(D!==0||I!==0?D+I:Rs(l.top,l.bottom))}await o({...t,availableWidth:C,availableHeight:T});const O=await i.getDimensions(a.floating);return f!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function ii(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ii(e){return ii(e).getComputedStyle(e)}function XS(e){return e instanceof ii(e).Node}function is(e){return XS(e)?(e.nodeName||"").toLowerCase():""}function $i(e){return e instanceof ii(e).HTMLElement}function Ir(e){return e instanceof ii(e).Element}function $7(e){return typeof ShadowRoot>"u"?!1:e instanceof ii(e).ShadowRoot||e instanceof ShadowRoot}function q1(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ii(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function MV(e){return["table","td","th"].includes(is(e))}function G5(e){const t=u6(),n=Ii(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function u6(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function $m(e){return["html","body","#document"].includes(is(e))}const F7=Math.min,s1=Math.max,xh=Math.round;function QS(e){const t=Ii(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$i(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=xh(n)!==a||xh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,fallback:s}}function ZS(e){return Ir(e)?e:e.contextElement}const JS={x:1,y:1};function _c(e){const t=ZS(e);if(!$i(t))return JS;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=QS(t);let o=(a?xh(n.width):n.width)/r,s=(a?xh(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const B7={x:0,y:0};function eC(e,t,n){var r,i;if(t===void 0&&(t=!0),!u6())return B7;const a=e?ii(e):window;return!n||t&&n!==a?B7:{x:((r=a.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function tl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=ZS(e);let o=JS;t&&(r?Ir(r)&&(o=_c(r)):o=_c(e));const s=eC(a,n,r);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const f=ii(a),h=r&&Ir(r)?ii(r):r;let m=f.frameElement;for(;m&&r&&h!==f;){const g=_c(m),E=m.getBoundingClientRect(),p=getComputedStyle(m);E.x+=(m.clientLeft+parseFloat(p.paddingLeft))*g.x,E.y+=(m.clientTop+parseFloat(p.paddingTop))*g.y,l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=E.x,c+=E.y,m=ii(m).frameElement}}return bh({width:u,height:d,x:l,y:c})}function Yo(e){return((XS(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fm(e){return Ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tC(e){return tl(Yo(e)).left+Fm(e).scrollLeft}function zc(e){if(is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$7(e)&&e.host||Yo(e);return $7(t)?t.host:t}function nC(e){const t=zc(e);return $m(t)?t.ownerDocument.body:$i(t)&&q1(t)?t:nC(t)}function l1(e,t){var n;t===void 0&&(t=[]);const r=nC(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ii(r);return i?t.concat(a,a.visualViewport||[],q1(r)?r:[]):t.concat(r,l1(r))}function z7(e,t,n){let r;if(t==="viewport")r=function(i,a){const o=ii(i),s=Yo(i),l=o.visualViewport;let c=s.clientWidth,u=s.clientHeight,d=0,f=0;if(l){c=l.width,u=l.height;const h=u6();(!h||h&&a==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:c,height:u,x:d,y:f}}(e,n);else if(t==="document")r=function(i){const a=Yo(i),o=Fm(i),s=i.ownerDocument.body,l=s1(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),c=s1(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let u=-o.scrollLeft+tC(i);const d=-o.scrollTop;return Ii(s).direction==="rtl"&&(u+=s1(a.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:d}}(Yo(e));else if(Ir(t))r=function(i,a){const o=tl(i,!0,a==="fixed"),s=o.top+i.clientTop,l=o.left+i.clientLeft,c=$i(i)?_c(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:s*c.y}}(t,n);else{const i=eC(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return bh(r)}function rC(e,t){const n=zc(e);return!(n===t||!Ir(n)||$m(n))&&(Ii(n).position==="fixed"||rC(n,t))}function U7(e,t){return $i(e)&&Ii(e).position!=="fixed"?t?t(e):e.offsetParent:null}function j7(e,t){const n=ii(e);if(!$i(e))return n;let r=U7(e,t);for(;r&&MV(r)&&Ii(r).position==="static";)r=U7(r,t);return r&&(is(r)==="html"||is(r)==="body"&&Ii(r).position==="static"&&!G5(r))?n:r||function(i){let a=zc(i);for(;$i(a)&&!$m(a);){if(G5(a))return a;a=zc(a)}return null}(e)||n}function IV(e,t,n){const r=$i(t),i=Yo(t),a=n==="fixed",o=tl(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&!a)if((is(t)!=="body"||q1(i))&&(s=Fm(t)),$i(t)){const c=tl(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=tC(i));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}const LV={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=n==="clippingAncestors"?function(c,u){const d=u.get(c);if(d)return d;let f=l1(c).filter(E=>Ir(E)&&is(E)!=="body"),h=null;const m=Ii(c).position==="fixed";let g=m?zc(c):c;for(;Ir(g)&&!$m(g);){const E=Ii(g),p=G5(g);p||E.position!=="fixed"||(h=null),(m?!p&&!h:!p&&E.position==="static"&&h&&["absolute","fixed"].includes(h.position)||q1(g)&&!p&&rC(c,g))?f=f.filter(v=>v!==g):h=E,g=zc(g)}return u.set(c,f),f}(t,this._c):[].concat(n),o=[...a,r],s=o[0],l=o.reduce((c,u)=>{const d=z7(t,u,i);return c.top=s1(d.top,c.top),c.right=F7(d.right,c.right),c.bottom=F7(d.bottom,c.bottom),c.left=s1(d.left,c.left),c},z7(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=$i(n),a=Yo(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&r!=="fixed")&&((is(n)!=="body"||q1(a))&&(o=Fm(n)),$i(n))){const c=tl(n);s=_c(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}},isElement:Ir,getDimensions:function(e){return QS(e)},getOffsetParent:j7,getDocumentElement:Yo,getScale:_c,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||j7,a=this.getDimensions;return{reference:IV(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ii(e).direction==="rtl"};function DV(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i||a?[...Ir(e)?l1(e):e.contextElement?l1(e.contextElement):[],...l1(t)]:[];l.forEach(f=>{const h=!Ir(f)&&f.toString().includes("V");!i||s&&!h||f.addEventListener("scroll",n,{passive:!0}),a&&f.addEventListener("resize",n)});let c,u=null;o&&(u=new ResizeObserver(()=>{n()}),Ir(e)&&!s&&u.observe(e),Ir(e)||!e.contextElement||s||u.observe(e.contextElement),u.observe(t));let d=s?tl(e):null;return s&&function f(){const h=tl(e);!d||h.x===d.x&&h.y===d.y&&h.width===d.width&&h.height===d.height||n(),d=h,c=requestAnimationFrame(f)}(),n(),()=>{var f;l.forEach(h=>{i&&h.removeEventListener("scroll",n),a&&h.removeEventListener("resize",n)}),(f=u)==null||f.disconnect(),u=null,s&&cancelAnimationFrame(c)}}const PV=(e,t,n)=>{const r=new Map,i={platform:LV,...n},a={...i.platform,_c:r};return TV(e,t,{...i,platform:a})},$V=e=>{const{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?L7({element:t.current,padding:n}).fn(i):{}:t?L7({element:t,padding:n}).fn(i):{}}}};var Tf=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Th(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Th(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Th(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function iC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function H7(e,t){const n=iC(e);return Math.round(t*n)/n}function G7(e){const t=y.useRef(e);return Tf(()=>{t.current=e}),t}function FV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=y.useState(r);Th(f,r)||h(r);const[m,g]=y.useState(null),[E,p]=y.useState(null),v=y.useCallback(ne=>{ne!=N.current&&(N.current=ne,g(ne))},[g]),T=y.useCallback(ne=>{ne!==R.current&&(R.current=ne,p(ne))},[p]),C=a||m,O=o||E,N=y.useRef(null),R=y.useRef(null),D=y.useRef(u),I=G7(l),L=G7(i),X=y.useCallback(()=>{if(!N.current||!R.current)return;const ne={placement:t,strategy:n,middleware:f};L.current&&(ne.platform=L.current),PV(N.current,R.current,ne).then(B=>{const w={...B,isPositioned:!0};Z.current&&!Th(D.current,w)&&(D.current=w,Zc.flushSync(()=>{d(w)}))})},[f,t,n,L]);Tf(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(ne=>({...ne,isPositioned:!1})))},[c]);const Z=y.useRef(!1);Tf(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Tf(()=>{if(C&&(N.current=C),O&&(R.current=O),C&&O){if(I.current)return I.current(C,O,X);X()}},[C,O,X,I]);const Q=y.useMemo(()=>({reference:N,floating:R,setReference:v,setFloating:T}),[v,T]),K=y.useMemo(()=>({reference:C,floating:O}),[C,O]),V=y.useMemo(()=>{const ne={position:n,left:0,top:0};if(!K.floating)return ne;const B=H7(K.floating,u.x),w=H7(K.floating,u.y);return s?{...ne,transform:"translate("+B+"px, "+w+"px)",...iC(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:w}},[n,s,K.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:X,refs:Q,elements:K,floatingStyles:V}),[u,X,Q,K,V])}function d6(e){const[t,n]=y.useState(void 0);return ns(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const aC="Popper",[oC,sC]=Gr(aC),[BV,lC]=oC(aC),zV=e=>{const{__scopePopper:t,children:n}=e,[r,i]=y.useState(null);return y.createElement(BV,{scope:t,anchor:r,onAnchorChange:i},n)},UV="PopperAnchor",jV=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=lC(UV,n),o=y.useRef(null),s=Lt(t,o);return y.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:y.createElement(gt.div,ue({},i,{ref:s}))}),cC="PopperContent",[HV,Xde]=oC(cC),GV=y.forwardRef((e,t)=>{var n,r,i,a,o,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:E=[],collisionPadding:p=0,sticky:v="partial",hideWhenDetached:T=!1,avoidCollisions:C=!0,onPlaced:O,...N}=e,R=lC(cC,u),[D,I]=y.useState(null),L=Lt(t,tn=>I(tn)),[X,Z]=y.useState(null),Q=d6(X),K=(n=Q==null?void 0:Q.width)!==null&&n!==void 0?n:0,V=(r=Q==null?void 0:Q.height)!==null&&r!==void 0?r:0,ne=d+(h!=="center"?"-"+h:""),B=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},w=Array.isArray(E)?E:[E],P=w.length>0,A={padding:B,boundary:w.filter(VV),altBoundary:P},{refs:W,floatingStyles:te,placement:$,isPositioned:xe,middlewareData:Se}=FV({strategy:"fixed",placement:ne,whileElementsMounted:DV,elements:{reference:R.anchor},middleware:[NV({mainAxis:f+V,alignmentAxis:m}),C&&kV({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?OV():void 0,...A}),C&&CV({...A}),RV({...A,apply:({elements:tn,rects:lr,availableWidth:H,availableHeight:ie})=>{const{width:ae,height:le}=lr.reference,_e=tn.floating.style;_e.setProperty("--radix-popper-available-width",`${H}px`),_e.setProperty("--radix-popper-available-height",`${ie}px`),_e.setProperty("--radix-popper-anchor-width",`${ae}px`),_e.setProperty("--radix-popper-anchor-height",`${le}px`)}}),X&&$V({element:X,padding:g}),KV({arrowWidth:K,arrowHeight:V}),T&&AV({strategy:"referenceHidden"})]}),[Ce,Ae]=uC($),qe=Rn(O);ns(()=>{xe&&(qe==null||qe())},[xe,qe]);const Te=(i=Se.arrow)===null||i===void 0?void 0:i.x,st=(a=Se.arrow)===null||a===void 0?void 0:a.y,Ct=((o=Se.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[At,sr]=y.useState();return ns(()=>{D&&sr(window.getComputedStyle(D).zIndex)},[D]),y.createElement("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:xe?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:At,["--radix-popper-transform-origin"]:[(s=Se.transformOrigin)===null||s===void 0?void 0:s.x,(l=Se.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},y.createElement(HV,{scope:u,placedSide:Ce,onArrowChange:Z,arrowX:Te,arrowY:st,shouldHideArrow:Ct},y.createElement(gt.div,ue({"data-side":Ce,"data-align":Ae},N,{ref:L,style:{...N.style,animation:xe?void 0:"none",opacity:(c=Se.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function VV(e){return e!==null}const KV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;const{placement:s,rects:l,middlewareData:c}=t,d=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,f=d?0:e.arrowWidth,h=d?0:e.arrowHeight,[m,g]=uC(s),E={start:"0%",center:"50%",end:"100%"}[g],p=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+f/2,v=((a=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0)+h/2;let T="",C="";return m==="bottom"?(T=d?E:`${p}px`,C=`${-h}px`):m==="top"?(T=d?E:`${p}px`,C=`${l.floating.height+h}px`):m==="right"?(T=`${-h}px`,C=d?E:`${v}px`):m==="left"&&(T=`${l.floating.width+h}px`,C=d?E:`${v}px`),{data:{x:T,y:C}}}});function uC(e){const[t,n="center"]=e.split("-");return[t,n]}const WV=zV,qV=jV,YV=GV,dC=y.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?sD.createPortal(y.createElement(gt.div,ue({},i,{ref:t})),r):null});function XV(e,t){return y.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const ar=e=>{const{present:t,children:n}=e,r=QV(t),i=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),a=Lt(r.ref,i.ref);return typeof n=="function"||r.isPresent?y.cloneElement(i,{ref:a}):null};ar.displayName="Presence";function QV(e){const[t,n]=y.useState(),r=y.useRef({}),i=y.useRef(e),a=y.useRef("none"),o=e?"mounted":"unmounted",[s,l]=XV(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=vd(r.current);a.current=s==="mounted"?c:"none"},[s]),ns(()=>{const c=r.current,u=i.current;if(u!==e){const f=a.current,h=vd(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),ns(()=>{if(t){const c=d=>{const h=vd(r.current).includes(d.animationName);d.target===t&&h&&Zc.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(a.current=vd(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function vd(e){return(e==null?void 0:e.animationName)||"none"}const xg="rovingFocusGroup.onEntryFocus",ZV={bubbles:!1,cancelable:!0},f6="RovingFocusGroup",[V5,fC,JV]=US(f6),[eK,au]=Gr(f6,[JV]),[tK,nK]=eK(f6),rK=y.forwardRef((e,t)=>y.createElement(V5.Provider,{scope:e.__scopeRovingFocusGroup},y.createElement(V5.Slot,{scope:e.__scopeRovingFocusGroup},y.createElement(iK,ue({},e,{ref:t}))))),iK=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=y.useRef(null),f=Lt(t,d),h=b0(a),[m=null,g]=ru({prop:o,defaultProp:s,onChange:l}),[E,p]=y.useState(!1),v=Rn(c),T=fC(n),C=y.useRef(!1),[O,N]=y.useState(0);return y.useEffect(()=>{const R=d.current;if(R)return R.addEventListener(xg,v),()=>R.removeEventListener(xg,v)},[v]),y.createElement(tK,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:m,onItemFocus:y.useCallback(R=>g(R),[g]),onItemShiftTab:y.useCallback(()=>p(!0),[]),onFocusableItemAdd:y.useCallback(()=>N(R=>R+1),[]),onFocusableItemRemove:y.useCallback(()=>N(R=>R-1),[])},y.createElement(gt.div,ue({tabIndex:E||O===0?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Ue(e.onMouseDown,()=>{C.current=!0}),onFocus:Ue(e.onFocus,R=>{const D=!C.current;if(R.target===R.currentTarget&&D&&!E){const I=new CustomEvent(xg,ZV);if(R.currentTarget.dispatchEvent(I),!I.defaultPrevented){const L=T().filter(V=>V.focusable),X=L.find(V=>V.active),Z=L.find(V=>V.id===m),K=[X,Z,...L].filter(Boolean).map(V=>V.ref.current);hC(K)}}C.current=!1}),onBlur:Ue(e.onBlur,()=>p(!1))})))}),aK="RovingFocusGroupItem",oK=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=Vs(),l=a||s,c=nK(aK,n),u=c.currentTabStopId===l,d=fC(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return y.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),y.createElement(V5.ItemSlot,{scope:n,id:l,focusable:r,active:i},y.createElement(gt.span,ue({tabIndex:u?0:-1,"data-orientation":c.orientation},o,{ref:t,onMouseDown:Ue(e.onMouseDown,m=>{r?c.onItemFocus(l):m.preventDefault()}),onFocus:Ue(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ue(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=cK(m,c.orientation,c.dir);if(g!==void 0){m.preventDefault();let p=d().filter(v=>v.focusable).map(v=>v.ref.current);if(g==="last")p.reverse();else if(g==="prev"||g==="next"){g==="prev"&&p.reverse();const v=p.indexOf(m.currentTarget);p=c.loop?uK(p,v+1):p.slice(v+1)}setTimeout(()=>hC(p))}})})))}),sK={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lK(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cK(e,t,n){const r=lK(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return sK[r]}function hC(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function uK(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const h6=rK,m6=oK;var dK=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dl=new WeakMap,yd=new WeakMap,bd={},Tg=0,mC=function(e){return e&&(e.host||mC(e.parentNode))},fK=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mC(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hK=function(e,t,n,r){var i=fK(t,Array.isArray(e)?e:[e]);bd[n]||(bd[n]=new WeakMap);var a=bd[n],o=[],s=new Set,l=new Set(i),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else{var h=f.getAttribute(r),m=h!==null&&h!=="false",g=(Dl.get(f)||0)+1,E=(a.get(f)||0)+1;Dl.set(f,g),a.set(f,E),o.push(f),g===1&&m&&yd.set(f,!0),E===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}})};return u(t),s.clear(),Tg++,function(){o.forEach(function(d){var f=Dl.get(d)-1,h=a.get(d)-1;Dl.set(d,f),a.set(d,h),f||(yd.has(d)||d.removeAttribute(r),yd.delete(d)),h||d.removeAttribute(n)}),Tg--,Tg||(Dl=new WeakMap,Dl=new WeakMap,yd=new WeakMap,bd={})}},pC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||dK(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),hK(r,i,n,"aria-hidden")):function(){return null}},ea=function(){return ea=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return OK;var t=RK(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IK=bC(),LK=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(pK,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; } @@ -282,60 +282,60 @@ Defaulting to \`${M5}\`.`}function CS(e){return GG.includes(e)}const AS=SS,NS=y. `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` } - .`).concat(uf,` { + .`).concat(_f,` { right: `).concat(s,"px ").concat(r,`; } - .`).concat(df,` { + .`).concat(wf,` { margin-right: `).concat(s,"px ").concat(r,`; } - .`).concat(uf," .").concat(uf,` { + .`).concat(_f," .").concat(_f,` { right: 0 `).concat(r,`; } - .`).concat(df," .").concat(df,` { + .`).concat(wf," .").concat(wf,` { margin-right: 0 `).concat(r,`; } body { - `).concat(nK,": ").concat(s,`px; + `).concat(gK,": ").concat(s,`px; } -`)},TK=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=y.useMemo(function(){return yK(i)},[i]);return y.createElement(bK,{styles:EK(a,!t,i,n?"":"!important")})},B5=!1;if(typeof window<"u")try{var sd=Object.defineProperty({},"passive",{get:function(){return B5=!0,!0}});window.addEventListener("test",sd,sd),window.removeEventListener("test",sd,sd)}catch{B5=!1}var Rl=B5?{passive:!1}:!1,xK=function(e){return e.tagName==="TEXTAREA"},lC=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xK(e)&&n[t]==="visible")},_K=function(e){return lC(e,"overflowY")},wK=function(e){return lC(e,"overflowX")},$7=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=cC(e,n);if(r){var i=uC(e,n),a=i[1],o=i[2];if(a>o)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},SK=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},CK=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cC=function(e,t){return e==="v"?_K(t):wK(t)},uC=function(e,t){return e==="v"?SK(t):CK(t)},AK=function(e,t){return e==="h"&&t==="rtl"?-1:1},NK=function(e,t,n,r,i){var a=AK(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,u=o>0,d=0,f=0;do{var h=uC(e,s),m=h[0],g=h[1],b=h[2],p=g-b-a*m;(m||p)&&cC(e,s)&&(d+=p,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(i&&d===0||!i&&o>d)||!u&&(i&&f===0||!i&&-o>f))&&(c=!0),c},ld=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F7=function(e){return[e.deltaX,e.deltaY]},B7=function(e){return e&&"current"in e?e.current:e},kK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},OK=function(e){return` +`)},DK=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=y.useMemo(function(){return MK(i)},[i]);return y.createElement(IK,{styles:LK(a,!t,i,n?"":"!important")})},K5=!1;if(typeof window<"u")try{var Ed=Object.defineProperty({},"passive",{get:function(){return K5=!0,!0}});window.addEventListener("test",Ed,Ed),window.removeEventListener("test",Ed,Ed)}catch{K5=!1}var Pl=K5?{passive:!1}:!1,PK=function(e){return e.tagName==="TEXTAREA"},EC=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!PK(e)&&n[t]==="visible")},$K=function(e){return EC(e,"overflowY")},FK=function(e){return EC(e,"overflowX")},K7=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=xC(e,n);if(r){var i=TC(e,n),a=i[1],o=i[2];if(a>o)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},BK=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},zK=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},xC=function(e,t){return e==="v"?$K(t):FK(t)},TC=function(e,t){return e==="v"?BK(t):zK(t)},UK=function(e,t){return e==="h"&&t==="rtl"?-1:1},jK=function(e,t,n,r,i){var a=UK(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,l=t.contains(s),c=!1,u=o>0,d=0,f=0;do{var h=TC(e,s),m=h[0],g=h[1],E=h[2],p=g-E-a*m;(m||p)&&xC(e,s)&&(d+=p,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(i&&d===0||!i&&o>d)||!u&&(i&&f===0||!i&&-o>f))&&(c=!0),c},xd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W7=function(e){return[e.deltaX,e.deltaY]},q7=function(e){return e&&"current"in e?e.current:e},HK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GK=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},RK=0,Il=[];function IK(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(RK++)[0],a=y.useState(function(){return sC()})[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=eK([e.lockRef.current],(e.shards||[]).map(B7),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(g,b){if("touches"in g&&g.touches.length===2)return!o.current.allowPinchZoom;var p=ld(g),v=n.current,T="deltaX"in g?g.deltaX:v[0]-p[0],C="deltaY"in g?g.deltaY:v[1]-p[1],R,N=g.target,O=Math.abs(T)>Math.abs(C)?"h":"v";if("touches"in g&&O==="h"&&N.type==="range")return!1;var $=$7(O,N);if(!$)return!0;if($?R=O:(R=O==="v"?"h":"v",$=$7(O,N)),!$)return!1;if(!r.current&&"changedTouches"in g&&(T||C)&&(r.current=R),!R)return!0;var M=r.current||R;return NK(M,b,g,M==="h"?T:C,!0)},[]),l=y.useCallback(function(g){var b=g;if(!(!Il.length||Il[Il.length-1]!==a)){var p="deltaY"in b?F7(b):ld(b),v=t.current.filter(function(R){return R.name===b.type&&R.target===b.target&&kK(R.delta,p)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var T=(o.current.shards||[]).map(B7).filter(Boolean).filter(function(R){return R.contains(b.target)}),C=T.length>0?s(b,T[0]):!o.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),c=y.useCallback(function(g,b,p,v){var T={name:g,delta:b,target:p,should:v};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(C){return C!==T})},1)},[]),u=y.useCallback(function(g){n.current=ld(g),r.current=void 0},[]),d=y.useCallback(function(g){c(g.type,F7(g),g.target,s(g,e.lockRef.current))},[]),f=y.useCallback(function(g){c(g.type,ld(g),g.target,s(g,e.lockRef.current))},[]);y.useEffect(function(){return Il.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Rl),document.addEventListener("touchmove",l,Rl),document.addEventListener("touchstart",u,Rl),function(){Il=Il.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,Rl),document.removeEventListener("touchmove",l,Rl),document.removeEventListener("touchstart",u,Rl)}},[]);var h=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:OK(i)}):null,h?y.createElement(TK,{gapMode:"margin"}):null)}const MK=cK(oC,IK);var dC=y.forwardRef(function(e,t){return y.createElement(Nm,Qi({},e,{ref:t,sideCar:MK}))});dC.classNames=Nm.classNames;const fC=dC,z5=["Enter"," "],LK=["ArrowDown","PageUp","Home"],hC=["ArrowUp","PageDown","End"],DK=[...LK,...hC],PK={ltr:[...z5,"ArrowRight"],rtl:[...z5,"ArrowLeft"]},$K={ltr:["ArrowLeft"],rtl:["ArrowRight"]},km="Menu",[z1,FK,BK]=kS(km),[gl,mC]=jr(km,[BK,YS,Zc]),s8=YS(),pC=Zc(),[zK,vl]=gl(km),[UK,c0]=gl(km),HK=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=s8(t),[l,c]=y.useState(null),u=y.useRef(!1),d=Cn(a),f=l0(i);return y.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),y.createElement(MV,s,y.createElement(zK,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},y.createElement(UK,{scope:t,onClose:y.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o},r)))},gC=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=s8(n);return y.createElement(LV,ue({},i,r,{ref:t}))}),vC="MenuPortal",[jK,yC]=gl(vC,{forceMount:void 0}),GK=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=vl(vC,t);return y.createElement(jK,{scope:t,forceMount:n},y.createElement(ir,{present:n||a.open},y.createElement(JS,{asChild:!0,container:i},r)))},Ri="MenuContent",[VK,l8]=gl(Ri),KK=y.forwardRef((e,t)=>{const n=yC(Ri,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vl(Ri,e.__scopeMenu),o=c0(Ri,e.__scopeMenu);return y.createElement(z1.Provider,{scope:e.__scopeMenu},y.createElement(ir,{present:r||a.open},y.createElement(z1.Slot,{scope:e.__scopeMenu},o.modal?y.createElement(WK,ue({},i,{ref:t})):y.createElement(qK,ue({},i,{ref:t})))))}),WK=y.forwardRef((e,t)=>{const n=vl(Ri,e.__scopeMenu),r=y.useRef(null),i=Lt(t,r);return y.useEffect(()=>{const a=r.current;if(a)return rC(a)},[]),y.createElement(c8,ue({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ue(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),qK=y.forwardRef((e,t)=>{const n=vl(Ri,e.__scopeMenu);return y.createElement(c8,ue({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),c8=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:m,...g}=e,b=vl(Ri,n),p=c0(Ri,n),v=s8(n),T=pC(n),C=FK(n),[R,N]=y.useState(null),O=y.useRef(null),$=Lt(t,O,b.onContentChange),M=y.useRef(0),L=y.useRef(""),X=y.useRef(0),Z=y.useRef(null),Q=y.useRef("right"),K=y.useRef(0),V=m?fC:y.Fragment,ne=m?{as:es,allowPinchZoom:!0}:void 0,B=D=>{var A,W;const te=L.current+D,P=C().filter(xe=>!xe.disabled),Te=document.activeElement,Se=(A=P.find(xe=>xe.ref.current===Te))===null||A===void 0?void 0:A.textValue,Ce=P.map(xe=>xe.textValue),Ae=uW(Ce,te,Se),qe=(W=P.find(xe=>xe.textValue===Ae))===null||W===void 0?void 0:W.ref.current;(function xe(st){L.current=st,window.clearTimeout(M.current),st!==""&&(M.current=window.setTimeout(()=>xe(""),1e3))})(te),qe&&setTimeout(()=>qe.focus())};y.useEffect(()=>()=>window.clearTimeout(M.current),[]),IS();const w=y.useCallback(D=>{var A,W;return Q.current===((A=Z.current)===null||A===void 0?void 0:A.side)&&fW(D,(W=Z.current)===null||W===void 0?void 0:W.area)},[]);return y.createElement(VK,{scope:n,searchRef:L,onItemEnter:y.useCallback(D=>{w(D)&&D.preventDefault()},[w]),onItemLeave:y.useCallback(D=>{var A;w(D)||((A=O.current)===null||A===void 0||A.focus(),N(null))},[w]),onTriggerLeave:y.useCallback(D=>{w(D)&&D.preventDefault()},[w]),pointerGraceTimerRef:X,onPointerGraceIntentChange:y.useCallback(D=>{Z.current=D},[])},y.createElement(V,ne,y.createElement(MS,{asChild:!0,trapped:i,onMountAutoFocus:Ue(a,D=>{var A;D.preventDefault(),(A=O.current)===null||A===void 0||A.focus()}),onUnmountAutoFocus:o},y.createElement(OS,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h},y.createElement(a8,ue({asChild:!0},T,{dir:p.dir,orientation:"vertical",loop:r,currentTabStopId:R,onCurrentTabStopIdChange:N,onEntryFocus:Ue(l,D=>{p.isUsingKeyboardRef.current||D.preventDefault()})}),y.createElement(DV,ue({role:"menu","aria-orientation":"vertical","data-state":_C(b.open),"data-radix-menu-content":"",dir:p.dir},v,g,{ref:$,style:{outline:"none",...g.style},onKeyDown:Ue(g.onKeyDown,D=>{const W=D.target.closest("[data-radix-menu-content]")===D.currentTarget,te=D.ctrlKey||D.altKey||D.metaKey,P=D.key.length===1;W&&(D.key==="Tab"&&D.preventDefault(),!te&&P&&B(D.key));const Te=O.current;if(D.target!==Te||!DK.includes(D.key))return;D.preventDefault();const Ce=C().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);hC.includes(D.key)&&Ce.reverse(),lW(Ce)}),onBlur:Ue(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(M.current),L.current="")}),onPointerMove:Ue(e.onPointerMove,U1(D=>{const A=D.target,W=K.current!==D.clientX;if(D.currentTarget.contains(A)&&W){const te=D.clientX>K.current?"right":"left";Q.current=te,K.current=D.clientX}}))})))))))}),YK=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.createElement(pt.div,ue({},r,{ref:t}))}),U5="MenuItem",z7="menu.itemSelect",u8=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=y.useRef(null),o=c0(U5,e.__scopeMenu),s=l8(U5,e.__scopeMenu),l=Lt(t,a),c=y.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(z7,{bubbles:!0,cancelable:!0});d.addEventListener(z7,h=>r==null?void 0:r(h),{once:!0}),fS(d,f),f.defaultPrevented?c.current=!1:o.onClose()}};return y.createElement(bC,ue({},i,{ref:l,disabled:n,onClick:Ue(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)===null||f===void 0||f.call(e,d),c.current=!0},onPointerUp:Ue(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)===null||f===void 0||f.click()}),onKeyDown:Ue(e.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||z5.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),bC=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=l8(U5,n),s=pC(n),l=y.useRef(null),c=Lt(t,l),[u,d]=y.useState(!1),[f,h]=y.useState("");return y.useEffect(()=>{const m=l.current;if(m){var g;h(((g=m.textContent)!==null&&g!==void 0?g:"").trim())}},[a.children]),y.createElement(z1.ItemSlot,{scope:n,disabled:r,textValue:i??f},y.createElement(o8,ue({asChild:!0},s,{focusable:!r}),y.createElement(pt.div,ue({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:Ue(e.onPointerMove,U1(m=>{r?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Ue(e.onPointerLeave,U1(m=>o.onItemLeave(m))),onFocus:Ue(e.onFocus,()=>d(!0)),onBlur:Ue(e.onBlur,()=>d(!1))}))))}),XK=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return y.createElement(TC,{scope:e.__scopeMenu,checked:n},y.createElement(u8,ue({role:"menuitemcheckbox","aria-checked":uh(n)?"mixed":n},i,{ref:t,"data-state":d8(n),onSelect:Ue(i.onSelect,()=>r==null?void 0:r(uh(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),QK="MenuRadioGroup",[Ide,ZK]=gl(QK,{value:void 0,onValueChange:()=>{}}),JK="MenuRadioItem",eW=y.forwardRef((e,t)=>{const{value:n,...r}=e,i=ZK(JK,e.__scopeMenu),a=n===i.value;return y.createElement(TC,{scope:e.__scopeMenu,checked:a},y.createElement(u8,ue({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":d8(a),onSelect:Ue(r.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})))}),EC="MenuItemIndicator",[TC,tW]=gl(EC,{checked:!1}),nW=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=tW(EC,n);return y.createElement(ir,{present:r||uh(a.checked)||a.checked===!0},y.createElement(pt.span,ue({},i,{ref:t,"data-state":d8(a.checked)})))}),rW=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.createElement(pt.div,ue({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),iW="MenuSub",[Mde,xC]=gl(iW),cd="MenuSubTrigger",aW=y.forwardRef((e,t)=>{const n=vl(cd,e.__scopeMenu),r=c0(cd,e.__scopeMenu),i=xC(cd,e.__scopeMenu),a=l8(cd,e.__scopeMenu),o=y.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},u=y.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return y.useEffect(()=>u,[u]),y.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.createElement(gC,ue({asChild:!0},c),y.createElement(bC,ue({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":_C(n.open)},e,{ref:_m(t,i.onTriggerChange),onClick:d=>{var f;(f=e.onClick)===null||f===void 0||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ue(e.onPointerMove,U1(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Ue(e.onPointerLeave,U1(d=>{var f;u();const h=(f=n.content)===null||f===void 0?void 0:f.getBoundingClientRect();if(h){var m;const g=(m=n.content)===null||m===void 0?void 0:m.dataset.side,b=g==="right",p=b?-5:5,v=h[b?"left":"right"],T=h[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+p,y:d.clientY},{x:v,y:h.top},{x:T,y:h.top},{x:T,y:h.bottom},{x:v,y:h.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Ue(e.onKeyDown,d=>{const f=a.searchRef.current!=="";if(!(e.disabled||f&&d.key===" ")&&PK[r.dir].includes(d.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),d.preventDefault()}})})))}),oW="MenuSubContent",sW=y.forwardRef((e,t)=>{const n=yC(Ri,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vl(Ri,e.__scopeMenu),o=c0(Ri,e.__scopeMenu),s=xC(oW,e.__scopeMenu),l=y.useRef(null),c=Lt(t,l);return y.createElement(z1.Provider,{scope:e.__scopeMenu},y.createElement(ir,{present:r||a.open},y.createElement(z1.Slot,{scope:e.__scopeMenu},y.createElement(c8,ue({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:c,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;o.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Ue(e.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Ue(e.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:Ue(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),f=$K[o.dir].includes(u.key);if(d&&f){var h;a.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),u.preventDefault()}})})))))});function _C(e){return e?"open":"closed"}function uh(e){return e==="indeterminate"}function d8(e){return uh(e)?"indeterminate":e?"checked":"unchecked"}function lW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function uW(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=cW(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function dW(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;ar!=u>r&&n<(c-s)*(r-l)/(u-l)+s&&(i=!i)}return i}function fW(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return dW(n,t)}function U1(e){return t=>t.pointerType==="mouse"?e(t):void 0}const hW=HK,mW=gC,pW=GK,gW=KK,vW=YK,yW=u8,bW=XK,EW=eW,TW=nW,xW=rW,_W=aW,wW=sW,wC="DropdownMenu",[SW,Lde]=jr(wC,[mC]),ci=mC(),[CW,SC]=SW(wC),AW=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=ci(t),c=y.useRef(null),[u=!1,d]=Xc({prop:i,defaultProp:a,onChange:o});return y.createElement(CW,{scope:t,triggerId:Gs(),triggerRef:c,contentId:Gs(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(f=>!f),[d]),modal:s},y.createElement(hW,ue({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},NW="DropdownMenuTrigger",kW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=SC(NW,n),o=ci(n);return y.createElement(mW,ue({asChild:!0},o),y.createElement(pt.button,ue({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:_m(t,a.triggerRef),onPointerDown:Ue(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:Ue(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),OW=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ci(t);return y.createElement(pW,ue({},r,n))},RW="DropdownMenuContent",IW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=SC(RW,n),a=ci(n),o=y.useRef(!1);return y.createElement(gW,ue({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:Ue(e.onCloseAutoFocus,s=>{var l;o.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:Ue(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),MW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(vW,ue({},i,r,{ref:t}))}),LW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(yW,ue({},i,r,{ref:t}))}),DW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(bW,ue({},i,r,{ref:t}))}),PW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(EW,ue({},i,r,{ref:t}))}),$W=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(TW,ue({},i,r,{ref:t}))}),FW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(xW,ue({},i,r,{ref:t}))}),BW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(_W,ue({},i,r,{ref:t}))}),zW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ci(n);return y.createElement(wW,ue({},i,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),UW=AW,HW=kW,jW=OW,CC=IW,AC=MW,NC=LW,kC=DW,OC=PW,RC=$W,IC=FW,MC=BW,LC=zW,Om=UW,Rm=HW,GW=y.forwardRef(({className:e,inset:t,children:n,...r},i)=>x.jsxs(MC,{ref:i,className:ze("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,x.jsx(bF,{className:"ml-auto h-4 w-4"})]}));GW.displayName=MC.displayName;const VW=y.forwardRef(({className:e,...t},n)=>x.jsx(LC,{ref:n,className:ze("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...t}));VW.displayName=LC.displayName;const u0=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jW,{children:x.jsx(CC,{ref:r,sideOffset:t,className:ze("z-50 min-w-[6rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));u0.displayName=CC.displayName;const tl=y.forwardRef(({className:e,inset:t,...n},r)=>x.jsx(NC,{ref:r,className:ze("relative flex cursor-default select-none items-center hover:cursor-pointer rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));tl.displayName=NC.displayName;const KW=y.forwardRef(({className:e,children:t,checked:n,...r},i)=>x.jsxs(kC,{ref:i,className:ze("relative flex cursor-default select-none hover:cursor-pointer items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(RC,{children:x.jsx(P9,{className:"h-4 w-4"})})}),t]}));KW.displayName=kC.displayName;const WW=y.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(OC,{ref:r,className:ze("relative flex cursor-default select-none hover:cursor-pointer items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(RC,{children:x.jsx(Sw,{className:"h-2 w-2 fill-current"})})}),t]}));WW.displayName=OC.displayName;const qW=y.forwardRef(({className:e,inset:t,...n},r)=>x.jsx(AC,{ref:r,className:ze("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));qW.displayName=AC.displayName;const YW=y.forwardRef(({className:e,...t},n)=>x.jsx(IC,{ref:n,className:ze("-mx-1 my-1 h-px bg-muted",e),...t}));YW.displayName=IC.displayName;const DC=()=>{const{t:e}=a0(),[t,n]=$i(a=>[a.theme,a.setTheme]),r=a=>{n(a)},i=(a,o=14)=>({[Ss.LIGHT]:x.jsx(kF,{size:o}),[Ss.DARK]:x.jsx(_F,{size:o}),[Ss.SYSTEM]:x.jsx(xF,{size:o})})[a];return x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsx(ot,{variant:"ghost",className:"h-9 w-9 p-0",children:i(t,18)})}),x.jsx(u0,{align:"end",className:"w-32",children:[Ss.LIGHT,Ss.DARK,Ss.SYSTEM].map(a=>x.jsxs(tl,{className:"flex items-center gap-2",onClick:()=>r(a),children:[i(a)," ",e(a)]},a))})]})},XW=()=>{const e=Hr(),[t]=$i(s=>[s.appConfig]),[{nickname:n,avatar:r},i,a]=Fi(s=>[s.userInfo,s.signOut,s.isLogin()]),o=()=>{i(),e("/login")};return x.jsx(x.Fragment,{children:a?x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsxs(ot,{variant:"ghost",className:"p-0 px-2",children:[x.jsxs(P1,{className:"h-8 w-8",children:[x.jsx($1,{src:r||t.user_logo,alt:n}),x.jsx(wm,{children:n.slice(0,1)})]}),x.jsx("p",{className:"ml-2",children:n})]})}),x.jsxs(u0,{align:"end",children:[x.jsx(tl,{className:"flex items-center gap-2",onClick:()=>{e("/user")},children:"个人中心"}),x.jsx(tl,{className:"flex items-center gap-2",onClick:()=>o(),children:"退出登录"})]})]}):x.jsx(ot,{onClick:()=>e("/login"),children:"去登陆"})})};function PC({isPlain:e=!1}){const t=Hr(),{t:n}=a0(),[r,i,a]=$i(c=>[c.appConfig,c.theme,c.setTheme]),o=()=>{t("/chat")},s=ll(),l=[{path:"user",name:n("user center")},{path:"billing",name:n("billing center")}];return y.useEffect(()=>{a(i)},[]),x.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[x.jsxs("div",{className:"flex items-center",children:[x.jsxs("button",{className:"flex items-center gap-2 text-lg font-semibold",onClick:()=>o(),children:[x.jsx("img",{src:r.web_logo,className:"h-10 w-10 rounded-full"}),r.name]}),!e&&x.jsxs(x.Fragment,{children:[x.jsx(NS,{className:"mx-4 h-6",orientation:"vertical"}),l.map((c,u)=>x.jsx(eh,{to:c.path,children:x.jsx(ot,{className:"mr-1",variant:s.pathname.includes(c.path)?"default":"ghost",children:c.name})},u))]})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(eh,{to:"https://github.com/gptlink/gptlink-web",target:"_blank",children:x.jsx(ot,{variant:"ghost",className:"p-0 px-2",children:x.jsx(Nw,{size:18})})}),x.jsx(DC,{}),!e&&x.jsx(XW,{})]})]})}const $C="Tabs",[QW,Dde]=jr($C,[Zc]),FC=Zc(),[ZW,f8]=QW($C),JW=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=l0(s),[d,f]=Xc({prop:r,onChange:i,defaultProp:a});return y.createElement(ZW,{scope:n,baseId:Gs(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:l},y.createElement(pt.div,ue({dir:u,"data-orientation":o},c,{ref:t})))}),eq="TabsList",tq=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,a=f8(eq,n),o=FC(n);return y.createElement(a8,ue({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),y.createElement(pt.div,ue({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),nq="TabsTrigger",rq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=f8(nq,n),s=FC(n),l=BC(o.baseId,r),c=zC(o.baseId,r),u=r===o.value;return y.createElement(o8,ue({asChild:!0},s,{focusable:!i,active:u}),y.createElement(pt.button,ue({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},a,{ref:t,onMouseDown:Ue(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Ue(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Ue(e.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})))}),iq="TabsContent",aq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=f8(iq,n),l=BC(s.baseId,r),c=zC(s.baseId,r),u=r===s.value,d=y.useRef(u);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),y.createElement(ir,{present:i||u},({present:f})=>y.createElement(pt.div,ue({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&a))});function BC(e,t){return`${e}-trigger-${t}`}function zC(e,t){return`${e}-content-${t}`}const oq=JW,UC=tq,HC=rq,jC=aq,sq=oq,GC=y.forwardRef(({className:e,...t},n)=>x.jsx(UC,{ref:n,className:ze("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));GC.displayName=UC.displayName;const H5=y.forwardRef(({className:e,...t},n)=>x.jsx(HC,{ref:n,className:ze("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));H5.displayName=HC.displayName;const ff=y.forwardRef(({className:e,...t},n)=>x.jsx(jC,{ref:n,className:ze("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ff.displayName=jC.displayName;const VC=()=>{const[e,t,n]=Fi(a=>[a.setUserInfo,a.signOut,a.access_token]),r=Hr(),i=ll();y.useEffect(()=>{(async()=>{if(n)try{const o=await da.getUserProfile();e(o),i.pathname==="/login"&&r("/chat")}catch{r("/login"),t()}})()},[])},KC=()=>{const[e,t]=$i(n=>[n.setAppConfig,n.appConfig]);return y.useEffect(()=>{(async()=>{const[r,i,a]=await Promise.all([js.getAppConfig(),js.getLoginType(),js.getPaymentConfig()]);e({...r,...i,...a}),document.title=r.name})()},[]),t};var WC={exports:{}};(function(e,t){WC.exports=t(e)})(window,function(e,t){if(!e.jWeixin){var n,r={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},i=function(){var w={};for(var D in r)w[r[D]]=D;return w}(),a=e.document,o=a.title,s=navigator.userAgent.toLowerCase(),l=navigator.platform.toLowerCase(),c=!(!l.match("mac")&&!l.match("win")),u=s.indexOf("wxdebugger")!=-1,d=s.indexOf("micromessenger")!=-1,f=s.indexOf("android")!=-1,h=s.indexOf("iphone")!=-1||s.indexOf("ipad")!=-1,m=(n=s.match(/micromessenger\/(\d+\.\d+\.\d+)/)||s.match(/micromessenger\/(\d+\.\d+)/))?n[1]:"",g={initStartTime:ne(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},b={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:h?1:f?2:-1,clientVersion:m,url:encodeURIComponent(location.href)},p={},v={_completes:[]},T={state:0,data:{}};B(function(){g.initEndTime=ne()});var C=!1,R=[],N={config:function(w){V("config",p=w);var D=p.check!==!1;B(function(){if(D)M(r.config,{verifyJsApiList:K(p.jsApiList),verifyOpenTagList:K(p.openTagList)},function(){v._complete=function(Te){g.preVerifyEndTime=ne(),T.state=1,T.data=Te},v.success=function(Te){b.isPreVerifyOk=0},v.fail=function(Te){v._fail?v._fail(Te):T.state=-1};var P=v._completes;return P.push(function(){(function(){if(!(c||u||p.debug||m<"6.0.2"||b.systemType<0)){var Te=new Image;b.appId=p.appId,b.initTime=g.initEndTime-g.initStartTime,b.preVerifyTime=g.preVerifyEndTime-g.preVerifyStartTime,N.getNetworkType({isInnerInvoke:!0,success:function(Se){b.networkType=Se.networkType;var Ce="https://open.weixin.qq.com/sdk/report?v="+b.version+"&o="+b.isPreVerifyOk+"&s="+b.systemType+"&c="+b.clientVersion+"&a="+b.appId+"&n="+b.networkType+"&i="+b.initTime+"&p="+b.preVerifyTime+"&u="+b.url;Te.src=Ce}})}})()}),v.complete=function(Te){for(var Se=0,Ce=P.length;Se(e.REGISTER="register",e.INVITE="invite",e.SHARE="share",e))(ia||{});const ks={getTaskList(e){return Rt(`task?platform=${e}`)},checkTask(e){return Rt("task/check",{method:"post",body:JSON.stringify({type:e})})},completionTask(e){return Rt("task/completion",{method:"post",body:JSON.stringify({type:e})})},getUnreadTaskList(e){return Rt(`/task/record/unread?type=${e}`)},readTask(e){return Rt(`task/record/${e}/read`,{method:"put"})}},h8=()=>{const[e]=Fi(i=>[i.isLogin()]),[t]=Q9(i=>[i.getCurrentBilling]);async function n(){if(!e)return;const i=ia.SHARE,{result:a}=await ks.completionTask(i);if(!a)return;const o=await ks.getUnreadTaskList(i);k5(o)||(await ks.readTask(i),t(),hn(()=>x.jsxs("div",{children:[x.jsx("div",{className:"bold text-lg",children:"👏 今日分享已完成!"}),x.jsx("div",{className:"mt-4",children:`${o.num===-1?`您的对话使用时长将延长${o.expired_day}天`:`您的对话次数将增加${o.num}次`} - ,请前往使用吧`})]})))}async function r(i){if(!e)return;const{result:a}=await ks.checkTask(i);if(!a)return;const o=await ks.getUnreadTaskList(i);k5(o)||(await ks.readTask(i),t(),hn(()=>x.jsxs("div",{children:[x.jsx("div",{className:"bold text-lg",children:i===ia.REGISTER?"👏 欢迎加入,尽情使用吧":`👏 ${o.record_count}个好友加入,真给力!`}),i===ia.REGISTER?x.jsx("div",{className:"mt-4",children:`您将有${o.num===-1?`${o.expired_day*o.record_count}天无限次`:`${o.num*o.record_count}次`}机会与您的助理对话,请前往使用吧`}):x.jsx("div",{className:"mt-4",children:`${o.num===-1?`+${o.expired_day*o.record_count}天对话时长`:`+${o.num*o.record_count}次对话次数`}`})]})))}return{shareCallback:n,checkTask:r}},cq=e=>{zl.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","updateTimelineShareData","updateAppMessageShareData"],openTagList:e.openTagList})},d0=()=>{const[{openid:e}]=Fi(c=>[c.userInfo]),{shareCallback:t}=h8(),n=window.location.origin+window.location.pathname,{VITE_API_DOMAIN:r}={VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},i=y.useMemo(()=>{const c=navigator.userAgent.toLowerCase();return!!/micromessenger/.test(c)},[navigator]),a=()=>{const c=`${r}/wechat/weixin/redirect?redirect_url=${n}`;window.location.href=c},o=(c,u)=>{const d=c.data;if(window.WeixinJSBridge&&d){const{appId:f,timeStamp:h,nonceStr:m,signType:g,paySign:b}=d,p={appId:f,timeStamp:h,nonceStr:m,signType:g,paySign:b,package:d.package};window.WeixinJSBridge.invoke("getBrandWCPayRequest",p,v=>{v.err_msg==="get_brand_wcpay_request:ok"&&u()})}};return{isWeixinBrowser:i,weChatLogin:a,weChatPay:(c,u)=>{typeof window.WeixinJSBridge>"u"?document.addEventListener("WeixinJSBridgeReady",o(c,u)):o(c,u)},setWeixinShare:async()=>{const[c,u]=await Promise.all([js.getJsSDK(window.location.href),js.getShareConfig()]),d={title:u.title,link:`${window.location.origin}${e?`/?shareOpenId=${e}`:""}`,imgUrl:u.img_url,desc:"",success:()=>{console.log("设置成功")},cancel:()=>{hn.error("设置失败")}},f={...d,success:async()=>{t()},cancel:()=>{hn.error("取消分享")}};cq(c.data),zl.updateAppMessageShareData(d),zl.updateTimelineShareData(d),zl.onMenuShareTimeline(f),zl.onMenuShareAppMessage(f),zl.error(h=>{console.error("分享内容错误:",h)})}}},qC=()=>{const[e,t]=hw();y.useEffect(()=>{const n=e.get("shareOpenId");n&&(localStorage.setItem(yr.ShareOpenId,n),t(""))},[])};function YC(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const XC="Checkbox",[uq,Pde]=jr(XC),[dq,fq]=uq(XC),hq=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:c,...u}=e,[d,f]=y.useState(null),h=Lt(t,T=>f(T)),m=y.useRef(!1),g=d?!!d.closest("form"):!0,[b=!1,p]=Xc({prop:i,defaultProp:a,onChange:c}),v=y.useRef(b);return y.useEffect(()=>{const T=d==null?void 0:d.form;if(T){const C=()=>p(v.current);return T.addEventListener("reset",C),()=>T.removeEventListener("reset",C)}},[d,p]),y.createElement(dq,{scope:n,state:b,disabled:s},y.createElement(pt.button,ue({type:"button",role:"checkbox","aria-checked":Vs(b)?"mixed":b,"aria-required":o,"data-state":QC(b),"data-disabled":s?"":void 0,disabled:s,value:l},u,{ref:h,onKeyDown:Ue(e.onKeyDown,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Ue(e.onClick,T=>{p(C=>Vs(C)?!0:!C),g&&(m.current=T.isPropagationStopped(),m.current||T.stopPropagation())})})),g&&y.createElement(gq,{control:d,bubbles:!m.current,name:r,value:l,checked:b,required:o,disabled:s,style:{transform:"translateX(-100%)"}}))}),mq="CheckboxIndicator",pq=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,a=fq(mq,n);return y.createElement(ir,{present:r||Vs(a.state)||a.state===!0},y.createElement(pt.span,ue({"data-state":QC(a.state),"data-disabled":a.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),gq=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=y.useRef(null),o=YC(n),s=r8(t);return y.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});l.indeterminate=Vs(n),d.call(l,Vs(n)?!1:n),l.dispatchEvent(f)}},[o,n,r]),y.createElement("input",ue({type:"checkbox","aria-hidden":!0,defaultChecked:Vs(n)?!1:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Vs(e){return e==="indeterminate"}function QC(e){return Vs(e)?"indeterminate":e?"checked":"unchecked"}const ZC=hq,vq=pq,Im=y.forwardRef(({className:e,...t},n)=>x.jsx(ZC,{ref:n,className:ze("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:x.jsx(vq,{className:ze("flex items-center justify-center text-current"),children:x.jsx(P9,{className:"h-4 w-4"})})}));Im.displayName=ZC.displayName;const JC="Dialog",[eA,tA]=jr(JC),[yq,Bi]=eA(JC),bq=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=y.useRef(null),l=y.useRef(null),[c=!1,u]=Xc({prop:r,defaultProp:i,onChange:a});return y.createElement(yq,{scope:t,triggerRef:s,contentRef:l,contentId:Gs(),titleId:Gs(),descriptionId:Gs(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o},n)},Eq="DialogTrigger",Tq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(Eq,n),a=Lt(t,i.triggerRef);return y.createElement(pt.button,ue({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":m8(i.open)},r,{ref:a,onClick:Ue(e.onClick,i.onOpenToggle)}))}),nA="DialogPortal",[xq,rA]=eA(nA,{forceMount:void 0}),_q=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Bi(nA,t);return y.createElement(xq,{scope:t,forceMount:n},y.Children.map(r,o=>y.createElement(ir,{present:n||a.open},y.createElement(JS,{asChild:!0,container:i},o))))},j5="DialogOverlay",wq=y.forwardRef((e,t)=>{const n=rA(j5,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Bi(j5,e.__scopeDialog);return a.modal?y.createElement(ir,{present:r||a.open},y.createElement(Sq,ue({},i,{ref:t}))):null}),Sq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(j5,n);return y.createElement(fC,{as:es,allowPinchZoom:!0,shards:[i.contentRef]},y.createElement(pt.div,ue({"data-state":m8(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Lc="DialogContent",Cq=y.forwardRef((e,t)=>{const n=rA(Lc,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Bi(Lc,e.__scopeDialog);return y.createElement(ir,{present:r||a.open},a.modal?y.createElement(Aq,ue({},i,{ref:t})):y.createElement(Nq,ue({},i,{ref:t})))}),Aq=y.forwardRef((e,t)=>{const n=Bi(Lc,e.__scopeDialog),r=y.useRef(null),i=Lt(t,n.contentRef,r);return y.useEffect(()=>{const a=r.current;if(a)return rC(a)},[]),y.createElement(iA,ue({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,a=>a.preventDefault())}))}),Nq=y.forwardRef((e,t)=>{const n=Bi(Lc,e.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return y.createElement(iA,ue({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:a=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}}))}),iA=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Bi(Lc,n),l=y.useRef(null),c=Lt(t,l);return IS(),y.createElement(y.Fragment,null,y.createElement(MS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},y.createElement(OS,ue({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":m8(s.open)},o,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),aA="DialogTitle",kq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(aA,n);return y.createElement(pt.h2,ue({id:i.titleId},r,{ref:t}))}),Oq="DialogDescription",Rq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(Oq,n);return y.createElement(pt.p,ue({id:i.descriptionId},r,{ref:t}))}),Iq="DialogClose",Mq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Bi(Iq,n);return y.createElement(pt.button,ue({type:"button"},r,{ref:t,onClick:Ue(e.onClick,()=>i.onOpenChange(!1))}))});function m8(e){return e?"open":"closed"}const Lq="DialogTitleWarning",[Dq,$de]=nG(Lq,{contentName:Lc,titleName:aA,docsSlug:"dialog"}),p8=bq,g8=Tq,f0=_q,h0=wq,m0=Cq,p0=kq,g0=Rq,Mm=Mq,Pq="AlertDialog",[$q,Fde]=jr(Pq,[tA]),ao=tA(),Fq=e=>{const{__scopeAlertDialog:t,...n}=e,r=ao(t);return y.createElement(p8,ue({},r,n,{modal:!0}))},Bq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(g8,ue({},i,r,{ref:t}))}),zq=e=>{const{__scopeAlertDialog:t,...n}=e,r=ao(t);return y.createElement(f0,ue({},r,n))},Uq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(h0,ue({},i,r,{ref:t}))}),oA="AlertDialogContent",[Hq,jq]=$q(oA),Gq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,a=ao(n),o=y.useRef(null),s=Lt(t,o),l=y.useRef(null);return y.createElement(Dq,{contentName:oA,titleName:Vq,docsSlug:"alert-dialog"},y.createElement(Hq,{scope:n,cancelRef:l},y.createElement(m0,ue({role:"alertdialog"},a,i,{ref:s,onOpenAutoFocus:Ue(i.onOpenAutoFocus,c=>{var u;c.preventDefault(),(u=l.current)===null||u===void 0||u.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault()}),y.createElement(dS,null,r),!1)))}),Vq="AlertDialogTitle",Kq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(p0,ue({},i,r,{ref:t}))}),Wq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(g0,ue({},i,r,{ref:t}))}),qq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=ao(n);return y.createElement(Mm,ue({},i,r,{ref:t}))}),Yq="AlertDialogCancel",Xq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=jq(Yq,n),a=ao(n),o=Lt(t,i);return y.createElement(Mm,ue({},a,r,{ref:o}))}),Qq=Fq,Zq=Bq,sA=zq,lA=Uq,cA=Gq,uA=qq,dA=Xq,fA=Kq,hA=Wq,Lm=Qq,v8=Zq,mA=({className:e,children:t,...n})=>x.jsx(sA,{className:ze(e),...n,children:x.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:t})});mA.displayName=sA.displayName;const pA=y.forwardRef(({className:e,...t},n)=>x.jsx(lA,{className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-opacity animate-in fade-in",e),...t,ref:n}));pA.displayName=lA.displayName;const v0=y.forwardRef(({className:e,...t},n)=>x.jsxs(mA,{children:[x.jsx(pA,{}),x.jsx(cA,{ref:n,className:ze("fixed z-50 grid w-full max-w-lg scale-100 gap-4 border bg-background p-6 opacity-100 shadow-lg animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full",e),...t})]}));v0.displayName=cA.displayName;const y0=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col space-y-2 text-center sm:text-left",e),...t});y0.displayName="AlertDialogHeader";const Dm=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Dm.displayName="AlertDialogFooter";const b0=y.forwardRef(({className:e,...t},n)=>x.jsx(fA,{ref:n,className:ze("text-lg font-semibold",e),...t}));b0.displayName=fA.displayName;const dh=y.forwardRef(({className:e,...t},n)=>x.jsx(hA,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));dh.displayName=hA.displayName;const Pm=y.forwardRef(({className:e,...t},n)=>x.jsx(uA,{ref:n,className:ze(e8(),e),...t}));Pm.displayName=uA.displayName;const gA=y.forwardRef(({className:e,...t},n)=>x.jsx(dA,{ref:n,className:ze(e8({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));gA.displayName=dA.displayName;function Jq({checked:e,onCheckedChange:t}){const[n,r]=y.useState({title:"",agreement:"",enable:!1});return y.useEffect(()=>{js.getConfigAgreement().then(i=>{r(i),i.enable||t(!0)})},[]),n.enable?x.jsxs(x.Fragment,{children:[x.jsx(Im,{className:"mr-2",checked:e,onCheckedChange:t}),"我已阅读并同意",x.jsxs(Lm,{children:[x.jsx(v8,{children:x.jsxs("span",{className:"text-blue-600",children:["《",n.title,"》"]})}),x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsx(b0,{children:n.title})}),x.jsx(dh,{className:"h-96 overflow-auto",dangerouslySetInnerHTML:{__html:n.agreement}}),x.jsx(Dm,{children:x.jsx(Pm,{children:"确认"})})]})]})]}):x.jsx(x.Fragment,{})}const Jc=p8,vA=g8,yA=({className:e,children:t,...n})=>x.jsx(f0,{className:ze(e),...n,children:x.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center sm:items-center",children:t})});yA.displayName=f0.displayName;const bA=y.forwardRef(({className:e,...t},n)=>x.jsx(h0,{ref:n,className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t}));bA.displayName=h0.displayName;const yl=y.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(yA,{children:[x.jsx(bA,{}),x.jsxs(m0,{ref:r,className:ze("fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",e),...n,children:[t,x.jsxs(Mm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[x.jsx(gm,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));yl.displayName=m0.displayName;const EA=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});EA.displayName="DialogHeader";const TA=({className:e,...t})=>x.jsx("div",{className:ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});TA.displayName="DialogFooter";const eu=y.forwardRef(({className:e,...t},n)=>x.jsx(p0,{ref:n,className:ze("text-lg font-semibold leading-none tracking-tight",e),...t}));eu.displayName=p0.displayName;const y8=y.forwardRef(({className:e,...t},n)=>x.jsx(g0,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));y8.displayName=g0.displayName;function eY({open:e,qrCode:t,handleOpenChange:n}){return x.jsx(Jc,{open:e,onOpenChange:n,children:x.jsx(yl,{children:x.jsx("iframe",{className:"m-auto h-[30rem] w-full overflow-hidden py-8",src:t,sandbox:"allow-scripts allow-top-navigation"})})})}var E0=e=>e.type==="checkbox",lc=e=>e instanceof Date,Xn=e=>e==null;const xA=e=>typeof e=="object";var bn=e=>!Xn(e)&&!Array.isArray(e)&&xA(e)&&!lc(e),_A=e=>bn(e)&&e.target?E0(e.target)?e.target.checked:e.target.value:e,tY=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,wA=(e,t)=>e.has(tY(t)),nY=e=>{const t=e.constructor&&e.constructor.prototype;return bn(t)&&t.hasOwnProperty("isPrototypeOf")},b8=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wi(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(b8&&(e instanceof Blob||e instanceof FileList))&&(n||bn(e)))if(t=n?[]:{},!n&&!nY(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Wi(e[r]));else return e;return t}var T0=e=>Array.isArray(e)?e.filter(Boolean):[],on=e=>e===void 0,Oe=(e,t,n)=>{if(!t||!bn(e))return n;const r=T0(t.split(/[,[\].]+?/)).reduce((i,a)=>Xn(i)?i:i[a],e);return on(r)||r===e?on(e[t])?n:e[t]:r};const fh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ci={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},SA=We.createContext(null),$m=()=>We.useContext(SA),rY=e=>{const{children:t,...n}=e;return We.createElement(SA.Provider,{value:n},t)};var CA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ci.all&&(t._proxyFormState[o]=!r||Ci.all),n&&(n[o]=!0),e[o]}});return i},qr=e=>bn(e)&&!Object.keys(e).length,AA=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return qr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ci.all))},hf=e=>Array.isArray(e)?e:[e],NA=(e,t,n)=>n&&t?e===t:!e||!t||e===t||hf(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function E8(e){const t=We.useRef(e);t.current=e,We.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function iY(e){const t=$m(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=We.useState(n._formState),l=We.useRef(!0),c=We.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=We.useRef(i);return u.current=i,E8({disabled:r,next:d=>l.current&&NA(u.current,d.name,a)&&AA(d,c.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),We.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),CA(o,n,c.current,!1)}var ea=e=>typeof e=="string",kA=(e,t,n,r,i)=>ea(e)?(r&&t.watch.add(e),Oe(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Oe(n,a))):(r&&(t.watchAll=!0),n);function aY(e){const t=$m(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=We.useRef(r);s.current=r,E8({disabled:a,subject:n._subjects.values,next:u=>{NA(s.current,u.name,o)&&c(Wi(kA(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=We.useState(n._getWatch(r,i));return We.useEffect(()=>n._removeUnmounted()),l}var T8=e=>/^\w*$/.test(e),OA=e=>T0(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Ot(e,t,n){let r=-1;const i=T8(t)?[t]:OA(t),a=i.length,o=a-1;for(;++r{const c=r._options.shouldUnregister||i,u=(d,f)=>{const h=Oe(r._fields,d);h&&(h._f.mount=f)};if(u(n,!0),c){const d=Wi(Oe(r._options.defaultValues,n));Ot(r._defaultValues,n,d),on(Oe(r._formValues,n))&&Ot(r._formValues,n,d)}return()=>{(a?c&&!r._state.action:c)?r.unregister(n):u(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:We.useCallback(c=>l.current.onChange({target:{value:_A(c),name:n},type:fh.CHANGE}),[n]),onBlur:We.useCallback(()=>l.current.onBlur({target:{value:Oe(r._formValues,n),name:n},type:fh.BLUR}),[n,r]),ref:c=>{const u=Oe(r._fields,n);u&&c&&(u._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Oe(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!Oe(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Oe(s.touchedFields,n)},error:{enumerable:!0,get:()=>Oe(s.errors,n)}})}}const sY=e=>e.render(oY(e));var RA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const G5=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=Oe(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else bn(o)&&G5(o,t)}}};var U7=e=>({isOnSubmit:!e||e===Ci.onSubmit,isOnBlur:e===Ci.onBlur,isOnChange:e===Ci.onChange,isOnAll:e===Ci.all,isOnTouch:e===Ci.onTouched}),H7=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),lY=(e,t,n)=>{const r=T0(Oe(e,n));return Ot(r,"root",t[n]),Ot(e,n,r),e},bc=e=>typeof e=="boolean",x8=e=>e.type==="file",Lo=e=>typeof e=="function",hh=e=>{if(!b8)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},mf=e=>ea(e),_8=e=>e.type==="radio",mh=e=>e instanceof RegExp;const j7={value:!1,isValid:!1},G7={value:!0,isValid:!0};var IA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!on(e[0].attributes.value)?on(e[0].value)||e[0].value===""?G7:{value:e[0].value,isValid:!0}:G7:j7}return j7};const V7={isValid:!1,value:null};var MA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,V7):V7;function K7(e,t,n="validate"){if(mf(e)||Array.isArray(e)&&e.every(mf)||bc(e)&&!e)return{type:n,message:mf(e)?e:"",ref:t}}var Ml=e=>bn(e)&&!mh(e)?e:{value:e,message:""},W7=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:m,valueAsNumber:g,mount:b,disabled:p}=e._f,v=Oe(t,m);if(!b||p)return{};const T=o?o[0]:a,C=Z=>{r&&T.reportValidity&&(T.setCustomValidity(bc(Z)?"":Z||""),T.reportValidity())},R={},N=_8(a),O=E0(a),$=N||O,M=(g||x8(a))&&on(a.value)&&on(v)||hh(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,L=RA.bind(null,m,n,R),X=(Z,Q,K,V=xa.maxLength,ne=xa.minLength)=>{const B=Z?Q:K;R[m]={type:Z?V:ne,message:B,ref:a,...L(Z?V:ne,B)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(M||Xn(v))||bc(v)&&!v||O&&!IA(o).isValid||N&&!MA(o).isValid)){const{value:Z,message:Q}=mf(s)?{value:!!s,message:s}:Ml(s);if(Z&&(R[m]={type:xa.required,message:Q,ref:T,...L(xa.required,Q)},!n))return C(Q),R}if(!M&&(!Xn(u)||!Xn(d))){let Z,Q;const K=Ml(d),V=Ml(u);if(!Xn(v)&&!isNaN(v)){const ne=a.valueAsNumber||v&&+v;Xn(K.value)||(Z=ne>K.value),Xn(V.value)||(Q=nenew Date(new Date().toDateString()+" "+A),w=a.type=="time",D=a.type=="week";ea(K.value)&&v&&(Z=w?B(v)>B(K.value):D?v>K.value:ne>new Date(K.value)),ea(V.value)&&v&&(Q=w?B(v)+Z.value,V=!Xn(Q.value)&&v.length<+Q.value;if((K||V)&&(X(K,Z.message,Q.message),!n))return C(R[m].message),R}if(f&&!M&&ea(v)){const{value:Z,message:Q}=Ml(f);if(mh(Z)&&!v.match(Z)&&(R[m]={type:xa.pattern,message:Q,ref:a,...L(xa.pattern,Q)},!n))return C(Q),R}if(h){if(Lo(h)){const Z=await h(v,t),Q=K7(Z,T);if(Q&&(R[m]={...Q,...L(xa.validate,Q.message)},!n))return C(Q.message),R}else if(bn(h)){let Z={};for(const Q in h){if(!qr(Z)&&!n)break;const K=K7(await h[Q](v,t),T,Q);K&&(Z={...K,...L(Q,K.message)},C(K.message),n&&(R[m]=Z))}if(!qr(Z)&&(R[m]={ref:T,...Z},!n))return R}}return C(!0),R};function cY(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var ph=e=>Xn(e)||!xA(e);function Fs(e,t){if(ph(e)||ph(t))return e===t;if(lc(e)&&lc(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(lc(a)&&lc(o)||bn(a)&&bn(o)||Array.isArray(a)&&Array.isArray(o)?!Fs(a,o):a!==o)return!1}}return!0}var LA=e=>e.type==="select-multiple",dY=e=>_8(e)||E0(e),Eg=e=>hh(e)&&e.isConnected,DA=e=>{for(const t in e)if(Lo(e[t]))return!0;return!1};function gh(e,t={}){const n=Array.isArray(e);if(bn(e)||n)for(const r in e)Array.isArray(e[r])||bn(e[r])&&!DA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},gh(e[r],t[r])):Xn(e[r])||(t[r]=!0);return t}function PA(e,t,n){const r=Array.isArray(e);if(bn(e)||r)for(const i in e)Array.isArray(e[i])||bn(e[i])&&!DA(e[i])?on(t)||ph(n[i])?n[i]=Array.isArray(e[i])?gh(e[i],[]):{...gh(e[i])}:PA(e[i],Xn(t)?{}:t[i],n[i]):n[i]=!Fs(e[i],t[i]);return n}var Tg=(e,t)=>PA(e,t,gh(t)),$A=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>on(e)?e:t?e===""?NaN:e&&+e:n&&ea(e)?new Date(e):r?r(e):e;function xg(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return x8(t)?t.files:_8(t)?MA(e.refs).value:LA(t)?[...t.selectedOptions].map(({value:n})=>n):E0(t)?IA(e.refs).value:$A(on(t.value)?e.ref.value:t.value,e)}var fY=(e,t,n,r)=>{const i={};for(const a of e){const o=Oe(t,a);o&&Ot(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},wu=e=>on(e)?e:mh(e)?e.source:bn(e)?mh(e.value)?e.value.source:e.value:e,hY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function q7(e,t,n){const r=Oe(e,n);if(r||T8(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Oe(t,a),s=Oe(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var mY=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,pY=(e,t)=>!T0(Oe(e,t)).length&&kn(e,t);const gY={mode:Ci.onSubmit,reValidateMode:Ci.onChange,shouldFocusError:!0};function vY(e={},t){let n={...gY,...e},r={submitCount:0,isDirty:!1,isLoading:Lo(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=bn(n.defaultValues)||bn(n.values)?Wi(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Wi(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:bg(),array:bg(),state:bg()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,m=U7(n.mode),g=U7(n.reValidateMode),b=n.criteriaMode===Ci.all,p=j=>ie=>{clearTimeout(u),u=setTimeout(j,ie)},v=async j=>{if(d.isValid||j){const ie=n.resolver?qr((await M()).errors):await X(i,!0);ie!==r.isValid&&f.state.next({isValid:ie})}},T=j=>d.isValidating&&f.state.next({isValidating:j}),C=(j,ie=[],ae,le,_e=!0,ce=!0)=>{if(le&&ae){if(s.action=!0,ce&&Array.isArray(Oe(i,j))){const be=ae(Oe(i,j),le.argA,le.argB);_e&&Ot(i,j,be)}if(ce&&Array.isArray(Oe(r.errors,j))){const be=ae(Oe(r.errors,j),le.argA,le.argB);_e&&Ot(r.errors,j,be),pY(r.errors,j)}if(d.touchedFields&&ce&&Array.isArray(Oe(r.touchedFields,j))){const be=ae(Oe(r.touchedFields,j),le.argA,le.argB);_e&&Ot(r.touchedFields,j,be)}d.dirtyFields&&(r.dirtyFields=Tg(a,o)),f.state.next({name:j,isDirty:Q(j,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ot(o,j,ie)},R=(j,ie)=>{Ot(r.errors,j,ie),f.state.next({errors:r.errors})},N=(j,ie,ae,le)=>{const _e=Oe(i,j);if(_e){const ce=Oe(o,j,on(ae)?Oe(a,j):ae);on(ce)||le&&le.defaultChecked||ie?Ot(o,j,ie?ce:xg(_e._f)):ne(j,ce),s.mount&&v()}},O=(j,ie,ae,le,_e)=>{let ce=!1,be=!1;const gt={name:j};if(!ae||le){d.isDirty&&(be=r.isDirty,r.isDirty=gt.isDirty=Q(),ce=be!==gt.isDirty);const vt=Fs(Oe(a,j),ie);be=Oe(r.dirtyFields,j),vt?kn(r.dirtyFields,j):Ot(r.dirtyFields,j,!0),gt.dirtyFields=r.dirtyFields,ce=ce||d.dirtyFields&&be!==!vt}if(ae){const vt=Oe(r.touchedFields,j);vt||(Ot(r.touchedFields,j,ae),gt.touchedFields=r.touchedFields,ce=ce||d.touchedFields&&vt!==ae)}return ce&&_e&&f.state.next(gt),ce?gt:{}},$=(j,ie,ae,le)=>{const _e=Oe(r.errors,j),ce=d.isValid&&bc(ie)&&r.isValid!==ie;if(e.delayError&&ae?(c=p(()=>R(j,ae)),c(e.delayError)):(clearTimeout(u),c=null,ae?Ot(r.errors,j,ae):kn(r.errors,j)),(ae?!Fs(_e,ae):_e)||!qr(le)||ce){const be={...le,...ce&&bc(ie)?{isValid:ie}:{},errors:r.errors,name:j};r={...r,...be},f.state.next(be)}T(!1)},M=async j=>n.resolver(o,n.context,fY(j||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async j=>{const{errors:ie}=await M();if(j)for(const ae of j){const le=Oe(ie,ae);le?Ot(r.errors,ae,le):kn(r.errors,ae)}else r.errors=ie;return ie},X=async(j,ie,ae={valid:!0})=>{for(const le in j){const _e=j[le];if(_e){const{_f:ce,...be}=_e;if(ce){const gt=l.array.has(ce.name),vt=await W7(_e,o,b,n.shouldUseNativeValidation&&!ie,gt);if(vt[ce.name]&&(ae.valid=!1,ie))break;!ie&&(Oe(vt,ce.name)?gt?lY(r.errors,vt,ce.name):Ot(r.errors,ce.name,vt[ce.name]):kn(r.errors,ce.name))}be&&await X(be,ie,ae)}}return ae.valid},Z=()=>{for(const j of l.unMount){const ie=Oe(i,j);ie&&(ie._f.refs?ie._f.refs.every(ae=>!Eg(ae)):!Eg(ie._f.ref))&&Ce(j)}l.unMount=new Set},Q=(j,ie)=>(j&&ie&&Ot(o,j,ie),!Fs(W(),a)),K=(j,ie,ae)=>kA(j,l,{...s.mount?o:on(ie)?a:ea(j)?{[j]:ie}:ie},ae,ie),V=j=>T0(Oe(s.mount?o:a,j,e.shouldUnregister?Oe(a,j,[]):[])),ne=(j,ie,ae={})=>{const le=Oe(i,j);let _e=ie;if(le){const ce=le._f;ce&&(!ce.disabled&&Ot(o,j,$A(ie,ce)),_e=hh(ce.ref)&&Xn(ie)?"":ie,LA(ce.ref)?[...ce.ref.options].forEach(be=>be.selected=_e.includes(be.value)):ce.refs?E0(ce.ref)?ce.refs.length>1?ce.refs.forEach(be=>(!be.defaultChecked||!be.disabled)&&(be.checked=Array.isArray(_e)?!!_e.find(gt=>gt===be.value):_e===be.value)):ce.refs[0]&&(ce.refs[0].checked=!!_e):ce.refs.forEach(be=>be.checked=be.value===_e):x8(ce.ref)?ce.ref.value="":(ce.ref.value=_e,ce.ref.type||f.values.next({name:j,values:{...o}})))}(ae.shouldDirty||ae.shouldTouch)&&O(j,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&A(j)},B=(j,ie,ae)=>{for(const le in ie){const _e=ie[le],ce=`${j}.${le}`,be=Oe(i,ce);(l.array.has(j)||!ph(_e)||be&&!be._f)&&!lc(_e)?B(ce,_e,ae):ne(ce,_e,ae)}},w=(j,ie,ae={})=>{const le=Oe(i,j),_e=l.array.has(j),ce=Wi(ie);Ot(o,j,ce),_e?(f.array.next({name:j,values:{...o}}),(d.isDirty||d.dirtyFields)&&ae.shouldDirty&&f.state.next({name:j,dirtyFields:Tg(a,o),isDirty:Q(j,ce)})):le&&!le._f&&!Xn(ce)?B(j,ce,ae):ne(j,ce,ae),H7(j,l)&&f.state.next({...r}),f.values.next({name:j,values:{...o}}),!s.mount&&t()},D=async j=>{const ie=j.target;let ae=ie.name,le=!0;const _e=Oe(i,ae),ce=()=>ie.type?xg(_e._f):_A(j);if(_e){let be,gt;const vt=ce(),Dn=j.type===fh.BLUR||j.type===fh.FOCUS_OUT,ba=!hY(_e._f)&&!n.resolver&&!Oe(r.errors,ae)&&!_e._f.deps||mY(Dn,Oe(r.touchedFields,ae),r.isSubmitted,g,m),G=H7(ae,l,Dn);Ot(o,ae,vt),Dn?(_e._f.onBlur&&_e._f.onBlur(j),c&&c(0)):_e._f.onChange&&_e._f.onChange(j);const re=O(ae,vt,Dn,!1),pe=!qr(re)||G;if(!Dn&&f.values.next({name:ae,type:j.type,values:{...o}}),ba)return d.isValid&&v(),pe&&f.state.next({name:ae,...G?{}:re});if(!Dn&&G&&f.state.next({...r}),T(!0),n.resolver){const{errors:Y}=await M([ae]),J=q7(r.errors,i,ae),oe=q7(Y,i,J.name||ae);be=oe.error,ae=oe.name,gt=qr(Y)}else be=(await W7(_e,o,b,n.shouldUseNativeValidation))[ae],le=isNaN(vt)||vt===Oe(o,ae,vt),le&&(be?gt=!1:d.isValid&&(gt=await X(i,!0)));le&&(_e._f.deps&&A(_e._f.deps),$(ae,gt,be,re))}},A=async(j,ie={})=>{let ae,le;const _e=hf(j);if(T(!0),n.resolver){const ce=await L(on(j)?j:_e);ae=qr(ce),le=j?!_e.some(be=>Oe(ce,be)):ae}else j?(le=(await Promise.all(_e.map(async ce=>{const be=Oe(i,ce);return await X(be&&be._f?{[ce]:be}:be)}))).every(Boolean),!(!le&&!r.isValid)&&v()):le=ae=await X(i);return f.state.next({...!ea(j)||d.isValid&&ae!==r.isValid?{}:{name:j},...n.resolver||!j?{isValid:ae}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!le&&G5(i,ce=>ce&&Oe(r.errors,ce),j?_e:l.mount),le},W=j=>{const ie={...a,...s.mount?o:{}};return on(j)?ie:ea(j)?Oe(ie,j):j.map(ae=>Oe(ie,ae))},te=(j,ie)=>({invalid:!!Oe((ie||r).errors,j),isDirty:!!Oe((ie||r).dirtyFields,j),isTouched:!!Oe((ie||r).touchedFields,j),error:Oe((ie||r).errors,j)}),P=j=>{j&&hf(j).forEach(ie=>kn(r.errors,ie)),f.state.next({errors:j?r.errors:{}})},Te=(j,ie,ae)=>{const le=(Oe(i,j,{_f:{}})._f||{}).ref;Ot(r.errors,j,{...ie,ref:le}),f.state.next({name:j,errors:r.errors,isValid:!1}),ae&&ae.shouldFocus&&le&&le.focus&&le.focus()},Se=(j,ie)=>Lo(j)?f.values.subscribe({next:ae=>j(K(void 0,ie),ae)}):K(j,ie,!0),Ce=(j,ie={})=>{for(const ae of j?hf(j):l.mount)l.mount.delete(ae),l.array.delete(ae),ie.keepValue||(kn(i,ae),kn(o,ae)),!ie.keepError&&kn(r.errors,ae),!ie.keepDirty&&kn(r.dirtyFields,ae),!ie.keepTouched&&kn(r.touchedFields,ae),!n.shouldUnregister&&!ie.keepDefaultValue&&kn(a,ae);f.values.next({values:{...o}}),f.state.next({...r,...ie.keepDirty?{isDirty:Q()}:{}}),!ie.keepIsValid&&v()},Ae=(j,ie={})=>{let ae=Oe(i,j);const le=bc(ie.disabled);return Ot(i,j,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:j}},name:j,mount:!0,...ie}}),l.mount.add(j),ae?le&&Ot(o,j,ie.disabled?void 0:Oe(o,j,xg(ae._f))):N(j,!0,ie.value),{...le?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:wu(ie.min),max:wu(ie.max),minLength:wu(ie.minLength),maxLength:wu(ie.maxLength),pattern:wu(ie.pattern)}:{},name:j,onChange:D,onBlur:D,ref:_e=>{if(_e){Ae(j,ie),ae=Oe(i,j);const ce=on(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,be=dY(ce),gt=ae._f.refs||[];if(be?gt.find(vt=>vt===ce):ce===ae._f.ref)return;Ot(i,j,{_f:{...ae._f,...be?{refs:[...gt.filter(Eg),ce,...Array.isArray(Oe(a,j))?[{}]:[]],ref:{type:ce.type,name:j}}:{ref:ce}}}),N(j,!1,void 0,ce)}else ae=Oe(i,j,{}),ae._f&&(ae._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(wA(l.array,j)&&s.action)&&l.unMount.add(j)}}},qe=()=>n.shouldFocusError&&G5(i,j=>j&&Oe(r.errors,j),l.mount),xe=(j,ie)=>async ae=>{ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let le=Wi(o);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:_e,values:ce}=await M();r.errors=_e,le=ce}else await X(i);kn(r.errors,"root"),qr(r.errors)?(f.state.next({errors:{}}),await j(le,ae)):(ie&&await ie({...r.errors},ae),qe(),setTimeout(qe)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qr(r.errors),submitCount:r.submitCount+1,errors:r.errors})},st=(j,ie={})=>{Oe(i,j)&&(on(ie.defaultValue)?w(j,Oe(a,j)):(w(j,ie.defaultValue),Ot(a,j,ie.defaultValue)),ie.keepTouched||kn(r.touchedFields,j),ie.keepDirty||(kn(r.dirtyFields,j),r.isDirty=ie.defaultValue?Q(j,Oe(a,j)):Q()),ie.keepError||(kn(r.errors,j),d.isValid&&v()),f.state.next({...r}))},St=(j,ie={})=>{const ae=j||a,le=Wi(ae),_e=j&&!qr(j)?le:a;if(ie.keepDefaultValues||(a=ae),!ie.keepValues){if(ie.keepDirtyValues||h)for(const ce of l.mount)Oe(r.dirtyFields,ce)?Ot(_e,ce,Oe(o,ce)):w(ce,Oe(_e,ce));else{if(b8&&on(j))for(const ce of l.mount){const be=Oe(i,ce);if(be&&be._f){const gt=Array.isArray(be._f.refs)?be._f.refs[0]:be._f.ref;if(hh(gt)){const vt=gt.closest("form");if(vt){vt.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?Wi(a):{}:Wi(_e),f.array.next({values:{..._e}}),f.values.next({values:{..._e}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,f.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!Fs(j,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&j?Tg(a,j):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Ct=(j,ie)=>St(Lo(j)?j(o):j,ie);return{control:{register:Ae,unregister:Ce,getFieldState:te,handleSubmit:xe,setError:Te,_executeSchema:M,_getWatch:K,_getDirty:Q,_updateValid:v,_removeUnmounted:Z,_updateFieldArray:C,_getFieldArray:V,_reset:St,_resetDefaultValues:()=>Lo(n.defaultValues)&&n.defaultValues().then(j=>{Ct(j,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:j=>{r={...r,...j}},_subjects:f,_proxyFormState:d,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(j){s=j},get _defaultValues(){return a},get _names(){return l},set _names(j){l=j},get _formState(){return r},set _formState(j){r=j},get _options(){return n},set _options(j){n={...n,...j}}},trigger:A,register:Ae,handleSubmit:xe,watch:Se,setValue:w,getValues:W,reset:Ct,resetField:st,clearErrors:P,unregister:Ce,setError:Te,setFocus:(j,ie={})=>{const ae=Oe(i,j),le=ae&&ae._f;if(le){const _e=le.refs?le.refs[0]:le.ref;_e.focus&&(_e.focus(),ie.shouldSelect&&_e.select())}},getFieldState:te}}function Fm(e={}){const t=We.useRef(),[n,r]=We.useState({isDirty:!1,isValidating:!1,isLoading:Lo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Lo(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...vY(e,()=>r(a=>({...a}))),formState:n});const i=t.current.control;return i._options=e,E8({subject:i._subjects.state,next:a=>{AA(a,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),We.useEffect(()=>{e.values&&!Fs(e.values,i._defaultValues)?i._reset(e.values,i._options.resetOptions):i._resetDefaultValues()},[e.values,i]),We.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=CA(n,i),t.current}var Y7=function(e,t,n){if(e&&"reportValidity"in e){var r=Oe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},FA=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?Y7(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return Y7(o,i,e)})};for(var r in t.fields)n(r)},yY=function(e,t){t.shouldUseNativeValidation&&FA(e,t);var n={};for(var r in e){var i=Oe(t.fields,r);Ot(n,r,Object.assign(e[r]||{},{ref:i&&i.ref}))}return n},bY=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[o].types,c=l&&l[r.code];n[o]=RA(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},Bm=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&FA({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return s.errors!=null}(o))return{values:{},errors:yY(bY(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},xt;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(xt||(xt={}));var X7;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(X7||(X7={}));const Le=xt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Rs=e=>{switch(typeof e){case"undefined":return Le.undefined;case"string":return Le.string;case"number":return isNaN(e)?Le.nan:Le.number;case"boolean":return Le.boolean;case"function":return Le.function;case"bigint":return Le.bigint;case"symbol":return Le.symbol;case"object":return Array.isArray(e)?Le.array:e===null?Le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Le.promise:typeof Map<"u"&&e instanceof Map?Le.map:typeof Set<"u"&&e instanceof Set?Le.set:typeof Date<"u"&&e instanceof Date?Le.date:Le.object;default:return Le.unknown}},Ee=xt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class aa extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;ln.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}aa.create=e=>new aa(e);const vh=(e,t)=>{let n;switch(e.code){case Ee.invalid_type:e.received===Le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,xt.jsonStringifyReplacer)}`;break;case Ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${xt.joinValues(e.keys,", ")}`;break;case Ee.invalid_union:n="Invalid input";break;case Ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xt.joinValues(e.options)}`;break;case Ee.invalid_enum_value:n=`Invalid enum value. Expected ${xt.joinValues(e.options)}, received '${e.received}'`;break;case Ee.invalid_arguments:n="Invalid function arguments";break;case Ee.invalid_return_type:n="Invalid function return type";break;case Ee.invalid_date:n="Invalid date";break;case Ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:xt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ee.custom:n="Invalid input";break;case Ee.invalid_intersection_types:n="Intersection results could not be merged";break;case Ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,xt.assertNever(e)}return{message:n}};let EY=vh;function V5(){return EY}const K5=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function Pe(e,t){const n=K5({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,V5(),vh].filter(r=>!!r)});e.common.issues.push(n)}class tr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return tt;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return tr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return tt;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const tt=Object.freeze({status:"aborted"}),TY=e=>({status:"dirty",value:e}),_r=e=>({status:"valid",value:e}),Q7=e=>e.status==="aborted",Z7=e=>e.status==="dirty",W5=e=>e.status==="valid",q5=e=>typeof Promise<"u"&&e instanceof Promise;var je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(je||(je={}));class fa{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const J7=(e,t)=>{if(W5(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new aa(e.common.issues);return this._error=n,this._error}}};function nt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>o.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class ht{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Rs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Rs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new tr,ctx:{common:t.parent.common,data:t.data,parsedType:Rs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(q5(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rs(t)},a=this._parseSync({data:t,path:i.path,parent:i});return J7(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rs(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(q5(i)?i:Promise.resolve(i));return J7(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:Ee.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Qa({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Wo.create(this,this._def)}nullable(){return Fc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return oa.create(this,this._def)}promise(){return j1.create(this,this._def)}or(t){return Eh.create([this,t],this._def)}and(t){return Th.create(this,t,this._def)}transform(t){return new Qa({...nt(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ch({...nt(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new MY({typeName:Qe.ZodBranded,type:this,...nt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new t2({...nt(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return zm.create(this,t)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const xY=/^c[^\s-]{8,}$/i,_Y=/^[a-z][a-z0-9]*$/,wY=/[0-9A-HJKMNP-TV-Z]{26}/,SY=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,CY=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,AY=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,NY=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,kY=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,OY=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function RY(e,t){return!!((t==="v4"||!t)&&NY.test(e)||(t==="v6"||!t)&&kY.test(e))}class Fa extends ht{constructor(){super(...arguments),this._regex=(t,n,r)=>this.refinement(i=>t.test(i),{validation:n,code:Ee.invalid_string,...je.errToObj(r)}),this.nonempty=t=>this.min(1,je.errToObj(t)),this.trim=()=>new Fa({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Fa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Fa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Le.string){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.string,received:a.parsedType}),tt}const r=new tr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...je.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...je.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...je.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...je.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...je.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...je.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...je.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...je.errToObj(n)})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Fa({checks:[],typeName:Qe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...nt(e)})};function IY(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class Dc extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Le.number){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.number,received:a.parsedType}),tt}let r;const i=new tr;for(const a of this._def.checks)a.kind==="int"?xt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?IY(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_finite,message:a.message}),i.dirty()):xt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,r,i){return new Dc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:je.toString(i)}]})}_addCheck(t){return new Dc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&xt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Dc({checks:[],typeName:Qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...nt(e)});class Pc extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Le.bigint){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.bigint,received:a.parsedType}),tt}let r;const i=new tr;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):xt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,r,i){return new Pc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:je.toString(i)}]})}_addCheck(t){return new Pc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Pc({checks:[],typeName:Qe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...nt(e)})};class Y5 extends ht{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Le.boolean){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.boolean,received:r.parsedType}),tt}return _r(t.data)}}Y5.create=e=>new Y5({typeName:Qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...nt(e)});class H1 extends ht{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Le.date){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.date,received:a.parsedType}),tt}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_date}),tt}const r=new tr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):xt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new H1({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew H1({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Qe.ZodDate,...nt(e)});class X5 extends ht{_parse(t){if(this._getType(t)!==Le.symbol){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.symbol,received:r.parsedType}),tt}return _r(t.data)}}X5.create=e=>new X5({typeName:Qe.ZodSymbol,...nt(e)});class yh extends ht{_parse(t){if(this._getType(t)!==Le.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.undefined,received:r.parsedType}),tt}return _r(t.data)}}yh.create=e=>new yh({typeName:Qe.ZodUndefined,...nt(e)});class bh extends ht{_parse(t){if(this._getType(t)!==Le.null){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.null,received:r.parsedType}),tt}return _r(t.data)}}bh.create=e=>new bh({typeName:Qe.ZodNull,...nt(e)});class Q5 extends ht{constructor(){super(...arguments),this._any=!0}_parse(t){return _r(t.data)}}Q5.create=e=>new Q5({typeName:Qe.ZodAny,...nt(e)});class Ec extends ht{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _r(t.data)}}Ec.create=e=>new Ec({typeName:Qe.ZodUnknown,...nt(e)});class ns extends ht{_parse(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ee.invalid_type,expected:Le.never,received:n.parsedType}),tt}}ns.create=e=>new ns({typeName:Qe.ZodNever,...nt(e)});class Z5 extends ht{_parse(t){if(this._getType(t)!==Le.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.void,received:r.parsedType}),tt}return _r(t.data)}}Z5.create=e=>new Z5({typeName:Qe.ZodVoid,...nt(e)});class oa extends ht{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Le.array)return Pe(n,{code:Ee.invalid_type,expected:Le.array,received:n.parsedType}),tt;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.lengthi.maxLength.value&&(Pe(n,{code:Ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new fa(n,o,n.path,s)))).then(o=>tr.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new fa(n,o,n.path,s)));return tr.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new oa({...this._def,minLength:{value:t,message:je.toString(n)}})}max(t,n){return new oa({...this._def,maxLength:{value:t,message:je.toString(n)}})}length(t,n){return new oa({...this._def,exactLength:{value:t,message:je.toString(n)}})}nonempty(t){return this.min(1,t)}}oa.create=(e,t)=>new oa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...nt(t)});function Ul(e){if(e instanceof nn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Wo.create(Ul(r))}return new nn({...e._def,shape:()=>t})}else return e instanceof oa?new oa({...e._def,type:Ul(e.element)}):e instanceof Wo?Wo.create(Ul(e.unwrap())):e instanceof Fc?Fc.create(Ul(e.unwrap())):e instanceof Xa?Xa.create(e.items.map(t=>Ul(t))):e}class nn extends ht{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=xt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Le.object){const c=this._getOrReturnCtx(t);return Pe(c,{code:Ee.invalid_type,expected:Le.object,received:c.parsedType}),tt}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof ns&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new fa(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof ns){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(Pe(i,{code:Ee.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new fa(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key;c.push({key:d,value:await u.value,alwaysSet:u.alwaysSet})}return c}).then(c=>tr.mergeObjectSync(r,c)):tr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return je.errToObj,new nn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const l=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=je.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new nn({...this._def,unknownKeys:"strip"})}passthrough(){return new nn({...this._def,unknownKeys:"passthrough"})}extend(t){return new nn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new nn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new nn({...this._def,catchall:t})}pick(t){const n={};return xt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new nn({...this._def,shape:()=>n})}omit(t){const n={};return xt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new nn({...this._def,shape:()=>n})}deepPartial(){return Ul(this)}partial(t){const n={};return xt.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new nn({...this._def,shape:()=>n})}required(t){const n={};return xt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Wo;)a=a._def.innerType;n[r]=a}}),new nn({...this._def,shape:()=>n})}keyof(){return BA(xt.objectKeys(this.shape))}}nn.create=(e,t)=>new nn({shape:()=>e,unknownKeys:"strip",catchall:ns.create(),typeName:Qe.ZodObject,...nt(t)});nn.strictCreate=(e,t)=>new nn({shape:()=>e,unknownKeys:"strict",catchall:ns.create(),typeName:Qe.ZodObject,...nt(t)});nn.lazycreate=(e,t)=>new nn({shape:e,unknownKeys:"strip",catchall:ns.create(),typeName:Qe.ZodObject,...nt(t)});class Eh extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new aa(s.ctx.common.issues));return Pe(n,{code:Ee.invalid_union,unionErrors:o}),tt}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new aa(l));return Pe(n,{code:Ee.invalid_union,unionErrors:s}),tt}}get options(){return this._def.options}}Eh.create=(e,t)=>new Eh({options:e,typeName:Qe.ZodUnion,...nt(t)});const pf=e=>e instanceof _h?pf(e.schema):e instanceof Qa?pf(e.innerType()):e instanceof wh?[e.value]:e instanceof nl?e.options:e instanceof Sh?Object.keys(e.enum):e instanceof Ch?pf(e._def.innerType):e instanceof yh?[void 0]:e instanceof bh?[null]:null;class w8 extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.object)return Pe(n,{code:Ee.invalid_type,expected:Le.object,received:n.parsedType}),tt;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Pe(n,{code:Ee.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),tt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=pf(a.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new w8({typeName:Qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...nt(r)})}}function J5(e,t){const n=Rs(e),r=Rs(t);if(e===t)return{valid:!0,data:e};if(n===Le.object&&r===Le.object){const i=xt.objectKeys(t),a=xt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=J5(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Le.array&&r===Le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if(Q7(a)||Q7(o))return tt;const s=J5(a.value,o.value);return s.valid?((Z7(a)||Z7(o))&&n.dirty(),{status:n.value,value:s.data}):(Pe(r,{code:Ee.invalid_intersection_types}),tt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Th.create=(e,t,n)=>new Th({left:e,right:t,typeName:Qe.ZodIntersection,...nt(n)});class Xa extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.array)return Pe(r,{code:Ee.invalid_type,expected:Le.array,received:r.parsedType}),tt;if(r.data.lengththis._def.items.length&&(Pe(r,{code:Ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new fa(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>tr.mergeArray(n,o)):tr.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Xa({...this._def,rest:t})}}Xa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xa({items:e,typeName:Qe.ZodTuple,rest:null,...nt(t)})};class xh extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.object)return Pe(r,{code:Ee.invalid_type,expected:Le.object,received:r.parsedType}),tt;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new fa(r,s,r.path,s)),value:o._parse(new fa(r,r.data[s],r.path,s))});return r.common.async?tr.mergeObjectAsync(n,i):tr.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ht?new xh({keyType:t,valueType:n,typeName:Qe.ZodRecord,...nt(r)}):new xh({keyType:Fa.create(),valueType:t,typeName:Qe.ZodRecord,...nt(n)})}}class e2 extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.map)return Pe(r,{code:Ee.invalid_type,expected:Le.map,received:r.parsedType}),tt;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new fa(r,s,r.path,[c,"key"])),value:a._parse(new fa(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return tt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return tt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}e2.create=(e,t,n)=>new e2({valueType:t,keyType:e,typeName:Qe.ZodMap,...nt(n)});class $c extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.set)return Pe(r,{code:Ee.invalid_type,expected:Le.set,received:r.parsedType}),tt;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(Pe(r,{code:Ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return tt;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new fa(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new $c({...this._def,minSize:{value:t,message:je.toString(n)}})}max(t,n){return new $c({...this._def,maxSize:{value:t,message:je.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}$c.create=(e,t)=>new $c({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...nt(t)});class t1 extends ht{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.function)return Pe(n,{code:Ee.invalid_type,expected:Le.function,received:n.parsedType}),tt;function r(s,l){return K5({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,V5(),vh].filter(c=>!!c),issueData:{code:Ee.invalid_arguments,argumentsError:l}})}function i(s,l){return K5({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,V5(),vh].filter(c=>!!c),issueData:{code:Ee.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;return this._def.returns instanceof j1?_r(async(...s)=>{const l=new aa([]),c=await this._def.args.parseAsync(s,a).catch(f=>{throw l.addIssue(r(s,f)),l}),u=await o(...c);return await this._def.returns._def.type.parseAsync(u,a).catch(f=>{throw l.addIssue(i(u,f)),l})}):_r((...s)=>{const l=this._def.args.safeParse(s,a);if(!l.success)throw new aa([r(s,l.error)]);const c=o(...l.data),u=this._def.returns.safeParse(c,a);if(!u.success)throw new aa([i(c,u.error)]);return u.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new t1({...this._def,args:Xa.create(t).rest(Ec.create())})}returns(t){return new t1({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new t1({args:t||Xa.create([]).rest(Ec.create()),returns:n||Ec.create(),typeName:Qe.ZodFunction,...nt(r)})}}class _h extends ht{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}_h.create=(e,t)=>new _h({getter:e,typeName:Qe.ZodLazy,...nt(t)});class wh extends ht{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Pe(n,{received:n.data,code:Ee.invalid_literal,expected:this._def.value}),tt}return{status:"valid",value:t.data}}get value(){return this._def.value}}wh.create=(e,t)=>new wh({value:e,typeName:Qe.ZodLiteral,...nt(t)});function BA(e,t){return new nl({values:e,typeName:Qe.ZodEnum,...nt(t)})}class nl extends ht{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{expected:xt.joinValues(r),received:n.parsedType,code:Ee.invalid_type}),tt}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{received:n.data,code:Ee.invalid_enum_value,options:r}),tt}return _r(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return nl.create(t)}exclude(t){return nl.create(this.options.filter(n=>!t.includes(n)))}}nl.create=BA;class Sh extends ht{_parse(t){const n=xt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Le.string&&r.parsedType!==Le.number){const i=xt.objectValues(n);return Pe(r,{expected:xt.joinValues(i),received:r.parsedType,code:Ee.invalid_type}),tt}if(n.indexOf(t.data)===-1){const i=xt.objectValues(n);return Pe(r,{received:r.data,code:Ee.invalid_enum_value,options:i}),tt}return _r(t.data)}get enum(){return this._def.values}}Sh.create=(e,t)=>new Sh({values:e,typeName:Qe.ZodNativeEnum,...nt(t)});class j1 extends ht{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.promise&&n.common.async===!1)return Pe(n,{code:Ee.invalid_type,expected:Le.promise,received:n.parsedType}),tt;const r=n.parsedType===Le.promise?n.data:Promise.resolve(n.data);return _r(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}j1.create=(e,t)=>new j1({type:e,typeName:Qe.ZodPromise,...nt(t)});class Qa extends ht{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null;if(i.type==="preprocess"){const o=i.transform(r.data);return r.common.async?Promise.resolve(o).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}const a={addIssue:o=>{Pe(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?tt:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?tt:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!W5(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>W5(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);xt.assertNever(i)}}Qa.create=(e,t,n)=>new Qa({schema:e,typeName:Qe.ZodEffects,effect:t,...nt(n)});Qa.createWithPreprocess=(e,t,n)=>new Qa({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...nt(n)});class Wo extends ht{_parse(t){return this._getType(t)===Le.undefined?_r(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Wo.create=(e,t)=>new Wo({innerType:e,typeName:Qe.ZodOptional,...nt(t)});class Fc extends ht{_parse(t){return this._getType(t)===Le.null?_r(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Fc.create=(e,t)=>new Fc({innerType:e,typeName:Qe.ZodNullable,...nt(t)});class Ch extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ch.create=(e,t)=>new Ch({innerType:e,typeName:Qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...nt(t)});class t2 extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return q5(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new aa(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new aa(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}t2.create=(e,t)=>new t2({innerType:e,typeName:Qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...nt(t)});class n2 extends ht{_parse(t){if(this._getType(t)!==Le.nan){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.nan,received:r.parsedType}),tt}return{status:"valid",value:t.data}}}n2.create=e=>new n2({typeName:Qe.ZodNaN,...nt(e)});class MY extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class zm extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?tt:a.status==="dirty"?(n.dirty(),TY(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?tt:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new zm({in:t,out:n,typeName:Qe.ZodPipeline})}}nn.lazycreate;var Qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(Qe||(Qe={}));const Qn=Fa.create;Dc.create;n2.create;Pc.create;Y5.create;H1.create;X5.create;yh.create;bh.create;Q5.create;Ec.create;ns.create;Z5.create;oa.create;const Um=nn.create;nn.strictCreate;Eh.create;w8.create;Th.create;Xa.create;xh.create;e2.create;$c.create;t1.create;_h.create;wh.create;nl.create;Sh.create;j1.create;Qa.create;Wo.create;Fc.create;Qa.createWithPreprocess;zm.create;const ey=60,S8=()=>{let e=0;const[t,n]=y.useState(0);return y.useEffect(()=>{t===ey?e=setInterval(()=>n(i=>--i),1e3):t<=0&&e&&clearInterval(e)},[t]),{time:t,handleGetCode:async i=>{if(!/^(?:(?:\+|00)86)?1\d{10}$/.test(i)){hn.error("错误的手机号码");return}try{await da.getPhoneCode(i),n(ey)}catch(a){hn.error(a)}}}};function LY(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function DY(...e){return t=>e.forEach(n=>LY(n,t))}const zA=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find($Y);if(a){const o=a.props.children,s=i.map(l=>l===a?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return y.createElement(r2,ue({},r,{ref:t}),y.isValidElement(o)?y.cloneElement(o,void 0,s):null)}return y.createElement(r2,ue({},r,{ref:t}),n)});zA.displayName="Slot";const r2=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...FY(r,n.props),ref:DY(t,n.ref)}):y.Children.count(n)>1?y.Children.only(null):null});r2.displayName="SlotClone";const PY=({children:e})=>y.createElement(y.Fragment,null,e);function $Y(e){return y.isValidElement(e)&&e.type===PY}function FY(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const BY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],zY=BY.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?zA:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(s,ue({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),UY=y.forwardRef((e,t)=>y.createElement(zY.label,ue({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),UA=UY,HY=Sm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ah=y.forwardRef(({className:e,...t},n)=>x.jsx(UA,{ref:n,className:ze(HY(),e),...t}));Ah.displayName=UA.displayName;const Hm=rY,HA=y.createContext({}),pr=({...e})=>x.jsx(HA.Provider,{value:{name:e.name},children:x.jsx(sY,{...e})}),jm=()=>{const e=y.useContext(HA),t=y.useContext(jA),{getFieldState:n,formState:r}=$m(),i=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},jA=y.createContext({}),Un=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return x.jsx(jA.Provider,{value:{id:r},children:x.jsx("div",{ref:n,className:ze("space-y-2",e),...t})})});Un.displayName="FormItem";const Hn=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:i}=jm();return x.jsx(Ah,{ref:n,className:ze(r&&"text-destructive",e),htmlFor:i,...t})});Hn.displayName="FormLabel";const jn=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=jm();return x.jsx(es,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});jn.displayName="FormControl";const jY=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=jm();return x.jsx("p",{ref:n,id:r,className:ze("text-sm text-muted-foreground",e),...t})});jY.displayName="FormDescription";const Gn=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:i,formMessageId:a}=jm(),o=i?String(i==null?void 0:i.message):t;return o?x.jsx("p",{ref:r,id:a,className:ze("text-sm font-medium text-destructive",e),...n,children:o}):null});Gn.displayName="FormMessage";const wn=y.forwardRef(({className:e,type:t,...n},r)=>x.jsx("input",{type:t,className:ze("flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));wn.displayName="Input";const GA="Radio",[GY,VA]=jr(GA),[VY,KY]=GY(GA),WY=y.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s="on",onCheck:l,...c}=e,[u,d]=y.useState(null),f=Lt(t,g=>d(g)),h=y.useRef(!1),m=u?!!u.closest("form"):!0;return y.createElement(VY,{scope:n,checked:i,disabled:o},y.createElement(pt.button,ue({type:"button",role:"radio","aria-checked":i,"data-state":KA(i),"data-disabled":o?"":void 0,disabled:o,value:s},c,{ref:f,onClick:Ue(e.onClick,g=>{i||l==null||l(),m&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})),m&&y.createElement(XY,{control:u,bubbles:!h.current,name:r,value:s,checked:i,required:a,disabled:o,style:{transform:"translateX(-100%)"}}))}),qY="RadioIndicator",YY=y.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,a=KY(qY,n);return y.createElement(ir,{present:r||a.checked},y.createElement(pt.span,ue({"data-state":KA(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),XY=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=y.useRef(null),o=YC(n),s=r8(t);return y.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(f)}},[o,n,r]),y.createElement("input",ue({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function KA(e){return e?"checked":"unchecked"}const QY=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],WA="RadioGroup",[ZY,Bde]=jr(WA,[Zc,VA]),qA=Zc(),YA=VA(),[JY,eX]=ZY(WA),tX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=qA(n),m=l0(c),[g,b]=Xc({prop:a,defaultProp:i,onChange:d});return y.createElement(JY,{scope:n,name:r,required:o,disabled:s,value:g,onValueChange:b},y.createElement(a8,ue({asChild:!0},h,{orientation:l,dir:m,loop:u}),y.createElement(pt.div,ue({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},f,{ref:t}))))}),nX="RadioGroupItem",rX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,a=eX(nX,n),o=a.disabled||r,s=qA(n),l=YA(n),c=y.useRef(null),u=Lt(t,c),d=a.value===i.value,f=y.useRef(!1);return y.useEffect(()=>{const h=g=>{QY.includes(g.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",m)}},[]),y.createElement(o8,ue({asChild:!0},s,{focusable:!o,active:d}),y.createElement(WY,ue({disabled:o,required:a.required,checked:d},l,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:Ue(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Ue(i.onFocus,()=>{var h;f.current&&((h=c.current)===null||h===void 0||h.click())})})))}),iX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=YA(n);return y.createElement(YY,ue({},i,r,{ref:t}))}),XA=tX,QA=rX,aX=iX,ZA=y.forwardRef(({className:e,...t},n)=>x.jsx(XA,{className:ze("grid gap-2",e),...t,ref:n}));ZA.displayName=XA.displayName;const i2=y.forwardRef(({className:e,...t},n)=>x.jsx(QA,{ref:n,className:ze("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:x.jsx(aX,{className:"flex items-center justify-center",children:x.jsx(Sw,{className:"h-2.5 w-2.5 fill-current text-current"})})}));i2.displayName=QA.displayName;const JA={nickname:Qn().min(2,{message:"请输入用户名"}),password:Qn().min(2,{message:"请输入密码."})};function oX({protocolChecked:e=!1}){const[t,n]=Fi(s=>[s.setUserInfo,s.setAccessToken]),r=Hr(),i=Um({...JA}),a=Fm({resolver:Bm(i),defaultValues:{nickname:"",password:""}}),o=async s=>{try{const{user:l,access_token:c}=await da.login(s);t(l),n(c),r("/chat")}catch(l){hn.error(l)}};return x.jsx(Hm,{...a,children:x.jsxs("form",{onSubmit:a.handleSubmit(o),className:"mb-4 w-[70%] space-y-3",children:[x.jsx(pr,{control:a.control,name:"nickname",render:({field:s})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"用户名"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入用户名",...s})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:a.control,name:"password",render:({field:s})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...s})})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",disabled:!e,className:"w-full",children:"登陆"})]})})}function sX({oauthId:e="",protocolChecked:t=!1}){const{time:n,handleGetCode:r}=S8(),[i,a]=Fi(u=>[u.setUserInfo,u.setAccessToken]),o=Hr(),s=Um({mobile:Qn().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."}),code:Qn().min(2,{message:"请输入验证码."})}),l=Fm({resolver:Bm(s),defaultValues:{mobile:"",code:""}}),c=async u=>{try{const{user:d,access_token:f}=await da.phoneLogin({...u,oauth_id:e,share_openid:localStorage.getItem(yr.ShareOpenId)||""});i(d),a(f),o("/chat")}catch(d){hn.error(d)}};return x.jsx(Hm,{...l,children:x.jsxs("form",{onSubmit:l.handleSubmit(c),className:"mb-4 w-[70%] space-y-3",children:[x.jsx(pr,{control:l.control,name:"mobile",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"手机号"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入手机号",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"code",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[3.5rem] shrink-0",children:"验证码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})}),x.jsx(ot,{type:"button",className:"ml-2 shrink-0",disabled:n>0,onClick:()=>r(l.getValues("mobile")),children:n>0?`${n}s`:"获取验证码"})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",disabled:!t,className:"w-full",children:"登陆"})]})})}function lX({children:e}){const[t,n]=Fi(u=>[u.setUserInfo,u.setAccessToken]),r=Hr(),{time:i,handleGetCode:a}=S8(),[o]=$i(u=>[u.appConfig]),s=Um({mobile:Qn().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."}),repassword:Qn().min(2,{message:"请输入密码."}),code:o.mobile_verify?Qn().min(2,{message:"请输入验证码."}):Qn(),...JA}),l=Fm({resolver:Bm(s),defaultValues:{nickname:"",password:"",mobile:"",repassword:"",code:""}}),c=async u=>{if(u.password!==u.repassword){hn.error("两次输入的密码不一致");return}try{const{user:d,access_token:f}=await da.register({...Zj(u,["repassword"]),share_openid:localStorage.getItem(yr.ShareOpenId)||"",code:o.mobile_verify?u.code:""});t(d),n(f),r("/chat")}catch(d){hn.error(d)}};return x.jsxs(Jc,{children:[x.jsx(vA,{asChild:!0,children:e}),x.jsxs(yl,{children:[x.jsx(eu,{children:"注册"}),x.jsx(EA,{children:x.jsx(y8,{asChild:!0,children:x.jsx(Hm,{...l,children:x.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-4",children:[x.jsx(pr,{control:l.control,name:"nickname",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"用户名"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入用户名",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"mobile",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"手机号码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入手机号码",...u})})]}),x.jsx(Gn,{})]})}),o.mobile_verify&&x.jsx(pr,{control:l.control,name:"code",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"验证码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})}),x.jsx(ot,{type:"button",className:"ml-2 shrink-0",disabled:i>0,onClick:()=>a(l.getValues("mobile")),children:i>0?`${i}s`:"获取验证码"})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"password",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"repassword",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"确认密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请再次输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",className:"w-full",children:"登陆"})]})})})})]})]})}function cX({children:e}){let t;(u=>{u.OldPassword="1",u.Mobile="2"})(t||(t={}));const[n,r]=y.useState("1"),{time:i,handleGetCode:a}=S8(),[o]=$i(u=>[u.appConfig]),s=y.useMemo(()=>Um({nickname:Qn().min(2,{message:"请输入用户名."}),password:Qn().min(2,{message:"请输入密码."}),repassword:Qn().min(2,{message:"请输入密码."}),code:o.mobile_verify?Qn().min(2,{message:"请输入验证码."}):Qn(),verify:n==="1"?Qn().min(2,{message:"请输入密码."}):Qn().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."})}),[n]),l=Fm({resolver:Bm(s),defaultValues:{nickname:"",password:"",repassword:"",verify:"",code:""}});y.useEffect(()=>{l.setValue("verify","")},[n]);const c=async u=>{try{await da.resetPassword({...u,mobile:n==="2"?u.verify:"",reenteredPassword:n==="1"?u.verify:"",verify_type:Number(n),code:o.mobile_verify?u.code:""}),hn.success("密码修改成功")}catch(d){hn.error(d)}};return x.jsxs(Jc,{children:[x.jsx(vA,{asChild:!0,children:e}),x.jsxs(yl,{children:[x.jsx(eu,{children:"找回密码"}),x.jsxs(ZA,{value:n,onValueChange:u=>r(u),className:"flex",children:[x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx(i2,{value:"1",id:"r1"}),x.jsx(Ah,{htmlFor:"r1",children:"旧密码验证"})]}),x.jsxs("div",{className:"flex items-center space-x-2",children:[x.jsx(i2,{value:"2",id:"r2"}),x.jsx(Ah,{htmlFor:"r2",children:"手机号验证"})]})]}),x.jsx(Hm,{...l,children:x.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-3",children:[x.jsx(pr,{control:l.control,name:"nickname",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"用户名"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入用户名",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"verify",render:({field:u})=>n==="1"?x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"原密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入原密码",type:"password",...u})})]}),x.jsx(Gn,{})]}):x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"手机号码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入手机号码",...u})})]}),x.jsx(Gn,{})]})}),n==="2"&&o.mobile_verify&&x.jsx(pr,{control:l.control,name:"code",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"验证码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})}),x.jsx(ot,{type:"button",className:"ml-2 shrink-0",disabled:i>0,onClick:()=>a(l.getValues("verify")),children:i>0?`${i} s`:"获取验证码"})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"password",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(pr,{control:l.control,name:"repassword",render:({field:u})=>x.jsxs(Un,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Hn,{className:"w-[4rem] shrink-0",children:"确认密码"}),x.jsx(jn,{children:x.jsx(wn,{placeholder:"请再次输入密码",type:"password",...u})})]}),x.jsx(Gn,{})]})}),x.jsx(ot,{type:"submit",className:"w-full",children:"修改密码"})]})})]})]})}function uX(){const[e,t]=y.useState(!1),[n,r]=y.useState(!1),[i,a]=y.useState(""),[o,s]=y.useState(!1),[l,c]=y.useState(""),[u,d]=$i(N=>[N.loginType,N.setLoginType]),[f,h]=hw(),m=Hr(),[g,b]=Fi(N=>[N.setUserInfo,N.setAccessToken]),{isWeixinBrowser:p,weChatLogin:v}=d0(),T=async()=>{if(p){v();return}const N=location.origin+location.pathname,O=await da.getWxQrCode(sf.WEIXIN_WEB,N);r(!0),a(O.qr_code_url)},C=async()=>{const N=f.get("code");if(N){t(!0);try{s(!0);const O=await da.getUserInfoByCode(p?sf.WEIXIN:sf.WEIXIN_WEB,N,localStorage.getItem(yr.ShareOpenId)||"");if(O.oauth_id){c(O.oauth_id);return}g(O.user),b(O.access_token),s(!1),m("/chat")}catch{h("")}}};y.useEffect(()=>{C()},[]),VC(),qC();const R=KC();return x.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[x.jsx(PC,{isPlain:!0}),x.jsxs("div",{className:"flex flex-1 items-center justify-center",children:[x.jsxs("div",{className:"flex w-[32rem] -translate-y-10 rounded-xl border pb-24 pt-10 shadow max-sm:w-[22rem]",children:[x.jsxs(sq,{value:u+"",className:"flex w-full flex-col items-center",onValueChange:N=>d(N),children:[Array.isArray(R.login_type)&&x.jsxs(GC,{className:"mb-10",children:[x.jsx(H5,{value:Ao.WECHAT,children:"微信扫码登陆"}),x.jsx(H5,{value:Ao.PASSWORD,children:"账号密码登陆"})]}),x.jsx("img",{src:R.web_logo,className:"mb-4 w-40 rounded-full"}),x.jsxs("div",{className:"text-3xl font-bold",children:[" ",R.name," "]}),x.jsx(ff,{value:Ao.WECHAT,className:"flex w-full flex-col items-center",children:x.jsx(ot,{className:"mb-4 mt-12 w-[70%]",disabled:!e,onClick:T,children:p?"微信登陆":"微信扫码登录"})}),x.jsx(ff,{value:Ao.PASSWORD,className:"flex w-full flex-col items-center",children:x.jsx(oX,{protocolChecked:e})}),x.jsx(ff,{value:Ao.WECHAT_AND_PHONE,className:"flex w-full flex-col items-center",children:l?x.jsx(sX,{oauthId:l,protocolChecked:e}):x.jsxs(ot,{className:"mb-4 mt-12 w-[70%]",disabled:!e,onClick:T,children:[o&&x.jsx(qc,{className:"mr-2 h-4 w-4 animate-spin"}),p?"微信登陆":"微信扫码登录"]})}),x.jsx("div",{className:"flex items-center text-xs",children:x.jsx(Jq,{checked:e,onCheckedChange:N=>t(N)})})]}),u===Ao.PASSWORD&&x.jsxs("div",{className:"absolute bottom-3 right-3",children:[x.jsx(lX,{children:x.jsx(ot,{variant:"ghost",children:"注册"})}),x.jsx(cX,{children:x.jsx(ot,{variant:"ghost",children:"找回密码"})})]})]}),x.jsx(eY,{open:n,qrCode:i,handleOpenChange:N=>{r(N)}})]})]})}const eN=y.forwardRef(({className:e,...t},n)=>x.jsx("textarea",{className:ze("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));eN.displayName="Textarea";const dX=({className:e=""})=>x.jsx("svg",{className:e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2837 26.7243C10.3672 26.7769 10.4638 26.8018 10.5594 26.8018C10.667 26.8018 10.7747 26.7693 10.8662 26.7033L18.9048 20.8659H24.6867C24.9392 20.8659 25.1512 20.6881 25.1854 20.4509L27.1563 6.54144C27.1774 6.39706 27.1264 6.24886 27.0187 6.14464C26.9111 6.04043 26.7569 5.98593 26.6042 6.00314L4.44948 8.26605C4.30762 8.28063 4.17985 8.35139 4.09635 8.46038C4.01184 8.56938 3.98166 8.70707 4.01083 8.83997L7.00793 22.3998C7.05622 22.6216 7.26246 22.7784 7.4999 22.7784H10.9648L10.0714 26.2092C10.0201 26.4059 10.1056 26.6127 10.2837 26.7243ZM12.7662 19.9665C12.8103 19.9892 12.8614 20 12.912 20C12.9689 20 13.0258 19.9859 13.0742 19.9574L17.325 17.4318H20.3825C20.516 17.4318 20.6281 17.3549 20.6462 17.2523L21.6884 11.2343C21.6996 11.1718 21.6726 11.1077 21.6157 11.0626C21.5588 11.0175 21.4772 10.9939 21.3965 11.0014L9.68104 11.9804C9.60603 11.9867 9.53846 12.0173 9.49431 12.0645C9.44962 12.1117 9.43366 12.1712 9.44909 12.2287L11.034 18.0954C11.0595 18.1914 11.1686 18.2593 11.2941 18.2593H13.1264L12.6539 19.7436C12.6268 19.8287 12.672 19.9182 12.7662 19.9665Z",fill:"currentcolor"})});function bl(){const[e,t]=y.useState(!0);return y.useEffect(()=>{t(window.document.body.clientWidth<=600),window.addEventListener("resize",()=>{t(window.document.body.clientWidth<=600)})},[]),e}function fX(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const hX=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Ha(e){const t=[];for(let n=0,r=e.length;nNr||e.height>Nr)&&(e.width>Nr&&e.height>Nr?e.width>e.height?(e.height*=Nr/e.width,e.width=Nr):(e.width*=Nr/e.height,e.height=Nr):e.width>Nr?(e.height*=Nr/e.width,e.width=Nr):(e.width*=Nr/e.height,e.height=Nr))}function kh(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function yX(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function bX(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),yX(i)}const xr=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||xr(n,t)};function EX(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function TX(e){return Ha(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function xX(e,t,n){const r=`.${e}:${t}`,i=n.cssText?EX(n):TX(n);return document.createTextNode(`${r}{${i}}`)}function ty(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const a=hX();try{t.className=`${t.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(xX(a,n,r)),t.appendChild(o)}function _X(e,t){ty(e,t,":before"),ty(e,t,":after")}const ny="application/font-woff",ry="image/jpeg",wX={woff:ny,woff2:ny,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ry,jpeg:ry,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function SX(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function C8(e){const t=SX(e).toLowerCase();return wX[t]||""}function CX(e){return e.split(/,/)[1]}function a2(e){return e.search(/^(data:)/)!==-1}function nN(e,t){return`data:${t};base64,${e}`}async function rN(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(n({res:r,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const _g={};function AX(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function A8(e,t,n){const r=AX(e,t,n.includeQueryParams);if(_g[r]!=null)return _g[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const a=await rN(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),CX(s)));i=nN(a,t)}catch(a){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return _g[r]=i,i}async function NX(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):kh(t)}async function kX(e,t){if(e.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,o==null||o.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return kh(s)}const n=e.poster,r=C8(n),i=await A8(n,r,t);return kh(i)}async function OX(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Gm(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function RX(e,t){return xr(e,HTMLCanvasElement)?NX(e):xr(e,HTMLVideoElement)?kX(e,t):xr(e,HTMLIFrameElement)?OX(e):e.cloneNode(!1)}const IX=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function MX(e,t,n){var r,i;let a=[];return IX(e)&&e.assignedNodes?a=Ha(e.assignedNodes()):xr(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=Ha(e.contentDocument.body.childNodes):a=Ha(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),a.length===0||xr(e,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Gm(s,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function LX(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Ha(r).forEach(i=>{let a=r.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),xr(e,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}function DX(e,t){xr(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),xr(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function PX(e,t){if(xr(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function $X(e,t){return xr(t,Element)&&(LX(e,t),_X(e,t),DX(e,t),PX(e,t)),t}async function FX(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;aRX(r,t)).then(r=>MX(e,r,t)).then(r=>$X(e,r)).then(r=>FX(r,t))}const iN=/url\((['"]?)([^'"]+?)\1\)/g,BX=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zX=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function UX(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function HX(e){const t=[];return e.replace(iN,(n,r,i)=>(t.push(i),n)),t.filter(n=>!a2(n))}async function jX(e,t,n,r,i){try{const a=n?fX(t,n):t,o=C8(t);let s;if(i){const l=await i(a);s=nN(l,o)}else s=await A8(a,o,r);return e.replace(UX(t),`$1${s}$3`)}catch{}return e}function GX(e,{preferredFontFormat:t}){return t?e.replace(zX,n=>{for(;;){const[r,,i]=BX.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function aN(e){return e.search(iN)!==-1}async function oN(e,t,n){if(!aN(e))return e;const r=GX(e,n);return HX(r).reduce((a,o)=>a.then(s=>jX(s,o,t,n)),Promise.resolve(r))}async function ud(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const a=await oN(i,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function VX(e,t){await ud("background",e,t)||await ud("background-image",e,t),await ud("mask",e,t)||await ud("mask-image",e,t)}async function KX(e,t){const n=xr(e,HTMLImageElement);if(!(n&&!a2(e.src))&&!(xr(e,SVGImageElement)&&!a2(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await A8(r,C8(r),t);await new Promise((a,o)=>{e.onload=a,e.onerror=o;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function WX(e,t){const r=Ha(e.childNodes).map(i=>sN(i,t));await Promise.all(r).then(()=>e)}async function sN(e,t){xr(e,Element)&&(await VX(e,t),await KX(e,t),await WX(e,t))}function qX(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const iy={};async function ay(e){let t=iy[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},iy[e]=t,t}async function oy(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),rN(s,t.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>n)}function sy(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=a.exec(r);if(l===null){if(l=s.exec(r),l===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(l[0])}return t}async function YX(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{Ha(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,c=ay(l).then(u=>oy(u,t)).then(u=>sy(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(a){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&r.push(ay(i.href).then(s=>oy(s,t)).then(s=>sy(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{Ha(i.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),n))}function XX(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>aN(t.style.getPropertyValue("src")))}async function QX(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Ha(e.ownerDocument.styleSheets),r=await YX(n,t);return XX(r)}async function ZX(e,t){const n=await QX(e,t);return(await Promise.all(n.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return oN(i.cssText,a,t)}))).join(` -`)}async function JX(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await ZX(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function N8(e,t={}){const{width:n,height:r}=tN(e,t),i=await Gm(e,t,!0);return await JX(i,t),await sN(i,t),qX(i,t),await bX(i,n,r)}async function eQ(e,t={}){const{width:n,height:r}=tN(e,t),i=await N8(e,t),a=await kh(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||gX(),c=t.canvasWidth||n,u=t.canvasHeight||r;return o.width=c*l,o.height=u*l,t.skipAutoScale||vX(o),o.style.width=`${c}`,o.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function lN(e,t={}){return(await eQ(e,t)).toDataURL()}var tQ=Object.defineProperty,Oh=Object.getOwnPropertySymbols,cN=Object.prototype.hasOwnProperty,uN=Object.prototype.propertyIsEnumerable,ly=(e,t,n)=>t in e?tQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cy=(e,t)=>{for(var n in t||(t={}))cN.call(t,n)&&ly(e,n,t[n]);if(Oh)for(var n of Oh(t))uN.call(t,n)&&ly(e,n,t[n]);return e},nQ=(e,t)=>{var n={};for(var r in e)cN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Oh)for(var r of Oh(e))t.indexOf(r)<0&&uN.call(e,r)&&(n[r]=e[r]);return n};/** +`)},VK=0,$l=[];function KK(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),i=y.useState(VK++)[0],a=y.useState(function(){return bC()})[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=mK([e.lockRef.current],(e.shards||[]).map(q7),!0).filter(Boolean);return g.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=y.useCallback(function(g,E){if("touches"in g&&g.touches.length===2)return!o.current.allowPinchZoom;var p=xd(g),v=n.current,T="deltaX"in g?g.deltaX:v[0]-p[0],C="deltaY"in g?g.deltaY:v[1]-p[1],O,N=g.target,R=Math.abs(T)>Math.abs(C)?"h":"v";if("touches"in g&&R==="h"&&N.type==="range")return!1;var D=K7(R,N);if(!D)return!0;if(D?O=R:(O=R==="v"?"h":"v",D=K7(R,N)),!D)return!1;if(!r.current&&"changedTouches"in g&&(T||C)&&(r.current=O),!O)return!0;var I=r.current||O;return jK(I,E,g,I==="h"?T:C,!0)},[]),l=y.useCallback(function(g){var E=g;if(!(!$l.length||$l[$l.length-1]!==a)){var p="deltaY"in E?W7(E):xd(E),v=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&HK(O.delta,p)})[0];if(v&&v.should){E.cancelable&&E.preventDefault();return}if(!v){var T=(o.current.shards||[]).map(q7).filter(Boolean).filter(function(O){return O.contains(E.target)}),C=T.length>0?s(E,T[0]):!o.current.noIsolation;C&&E.cancelable&&E.preventDefault()}}},[]),c=y.useCallback(function(g,E,p,v){var T={name:g,delta:E,target:p,should:v};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(C){return C!==T})},1)},[]),u=y.useCallback(function(g){n.current=xd(g),r.current=void 0},[]),d=y.useCallback(function(g){c(g.type,W7(g),g.target,s(g,e.lockRef.current))},[]),f=y.useCallback(function(g){c(g.type,xd(g),g.target,s(g,e.lockRef.current))},[]);y.useEffect(function(){return $l.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Pl),document.addEventListener("touchmove",l,Pl),document.addEventListener("touchstart",u,Pl),function(){$l=$l.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,Pl),document.removeEventListener("touchmove",l,Pl),document.removeEventListener("touchstart",u,Pl)}},[]);var h=e.removeScrollBar,m=e.inert;return y.createElement(y.Fragment,null,m?y.createElement(a,{styles:GK(i)}):null,h?y.createElement(DK,{gapMode:"margin"}):null)}const WK=_K(yC,KK);var _C=y.forwardRef(function(e,t){return y.createElement(Bm,ea({},e,{ref:t,sideCar:WK}))});_C.classNames=Bm.classNames;const wC=_C,W5=["Enter"," "],qK=["ArrowDown","PageUp","Home"],SC=["ArrowUp","PageDown","End"],YK=[...qK,...SC],XK={ltr:[...W5,"ArrowRight"],rtl:[...W5,"ArrowLeft"]},QK={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zm="Menu",[Y1,ZK,JK]=US(zm),[yl,CC]=Gr(zm,[JK,sC,au]),p6=sC(),AC=au(),[eW,bl]=yl(zm),[tW,E0]=yl(zm),nW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=p6(t),[l,c]=y.useState(null),u=y.useRef(!1),d=Rn(a),f=b0(i);return y.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),y.createElement(WV,s,y.createElement(eW,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},y.createElement(tW,{scope:t,onClose:y.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o},r)))},NC=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=p6(n);return y.createElement(qV,ue({},i,r,{ref:t}))}),kC="MenuPortal",[rW,OC]=yl(kC,{forceMount:void 0}),iW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=bl(kC,t);return y.createElement(rW,{scope:t,forceMount:n},y.createElement(ar,{present:n||a.open},y.createElement(dC,{asChild:!0,container:i},r)))},Li="MenuContent",[aW,g6]=yl(Li),oW=y.forwardRef((e,t)=>{const n=OC(Li,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=bl(Li,e.__scopeMenu),o=E0(Li,e.__scopeMenu);return y.createElement(Y1.Provider,{scope:e.__scopeMenu},y.createElement(ar,{present:r||a.open},y.createElement(Y1.Slot,{scope:e.__scopeMenu},o.modal?y.createElement(sW,ue({},i,{ref:t})):y.createElement(lW,ue({},i,{ref:t})))))}),sW=y.forwardRef((e,t)=>{const n=bl(Li,e.__scopeMenu),r=y.useRef(null),i=Lt(t,r);return y.useEffect(()=>{const a=r.current;if(a)return pC(a)},[]),y.createElement(v6,ue({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ue(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),lW=y.forwardRef((e,t)=>{const n=bl(Li,e.__scopeMenu);return y.createElement(v6,ue({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),v6=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:m,...g}=e,E=bl(Li,n),p=E0(Li,n),v=p6(n),T=AC(n),C=ZK(n),[O,N]=y.useState(null),R=y.useRef(null),D=Lt(t,R,E.onContentChange),I=y.useRef(0),L=y.useRef(""),X=y.useRef(0),Z=y.useRef(null),Q=y.useRef("right"),K=y.useRef(0),V=m?wC:y.Fragment,ne=m?{as:rs,allowPinchZoom:!0}:void 0,B=P=>{var A,W;const te=L.current+P,$=C().filter(Te=>!Te.disabled),xe=document.activeElement,Se=(A=$.find(Te=>Te.ref.current===xe))===null||A===void 0?void 0:A.textValue,Ce=$.map(Te=>Te.textValue),Ae=wW(Ce,te,Se),qe=(W=$.find(Te=>Te.textValue===Ae))===null||W===void 0?void 0:W.ref.current;(function Te(st){L.current=st,window.clearTimeout(I.current),st!==""&&(I.current=window.setTimeout(()=>Te(""),1e3))})(te),qe&&setTimeout(()=>qe.focus())};y.useEffect(()=>()=>window.clearTimeout(I.current),[]),GS();const w=y.useCallback(P=>{var A,W;return Q.current===((A=Z.current)===null||A===void 0?void 0:A.side)&&CW(P,(W=Z.current)===null||W===void 0?void 0:W.area)},[]);return y.createElement(aW,{scope:n,searchRef:L,onItemEnter:y.useCallback(P=>{w(P)&&P.preventDefault()},[w]),onItemLeave:y.useCallback(P=>{var A;w(P)||((A=R.current)===null||A===void 0||A.focus(),N(null))},[w]),onTriggerLeave:y.useCallback(P=>{w(P)&&P.preventDefault()},[w]),pointerGraceTimerRef:X,onPointerGraceIntentChange:y.useCallback(P=>{Z.current=P},[])},y.createElement(V,ne,y.createElement(VS,{asChild:!0,trapped:i,onMountAutoFocus:Ue(a,P=>{var A;P.preventDefault(),(A=R.current)===null||A===void 0||A.focus()}),onUnmountAutoFocus:o},y.createElement(jS,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h},y.createElement(h6,ue({asChild:!0},T,{dir:p.dir,orientation:"vertical",loop:r,currentTabStopId:O,onCurrentTabStopIdChange:N,onEntryFocus:Ue(l,P=>{p.isUsingKeyboardRef.current||P.preventDefault()})}),y.createElement(YV,ue({role:"menu","aria-orientation":"vertical","data-state":DC(E.open),"data-radix-menu-content":"",dir:p.dir},v,g,{ref:D,style:{outline:"none",...g.style},onKeyDown:Ue(g.onKeyDown,P=>{const W=P.target.closest("[data-radix-menu-content]")===P.currentTarget,te=P.ctrlKey||P.altKey||P.metaKey,$=P.key.length===1;W&&(P.key==="Tab"&&P.preventDefault(),!te&&$&&B(P.key));const xe=R.current;if(P.target!==xe||!YK.includes(P.key))return;P.preventDefault();const Ce=C().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);SC.includes(P.key)&&Ce.reverse(),TW(Ce)}),onBlur:Ue(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(I.current),L.current="")}),onPointerMove:Ue(e.onPointerMove,X1(P=>{const A=P.target,W=K.current!==P.clientX;if(P.currentTarget.contains(A)&&W){const te=P.clientX>K.current?"right":"left";Q.current=te,K.current=P.clientX}}))})))))))}),cW=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.createElement(gt.div,ue({},r,{ref:t}))}),q5="MenuItem",Y7="menu.itemSelect",y6=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=y.useRef(null),o=E0(q5,e.__scopeMenu),s=g6(q5,e.__scopeMenu),l=Lt(t,a),c=y.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(Y7,{bubbles:!0,cancelable:!0});d.addEventListener(Y7,h=>r==null?void 0:r(h),{once:!0}),wS(d,f),f.defaultPrevented?c.current=!1:o.onClose()}};return y.createElement(RC,ue({},i,{ref:l,disabled:n,onClick:Ue(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)===null||f===void 0||f.call(e,d),c.current=!0},onPointerUp:Ue(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)===null||f===void 0||f.click()}),onKeyDown:Ue(e.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||W5.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),RC=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=g6(q5,n),s=AC(n),l=y.useRef(null),c=Lt(t,l),[u,d]=y.useState(!1),[f,h]=y.useState("");return y.useEffect(()=>{const m=l.current;if(m){var g;h(((g=m.textContent)!==null&&g!==void 0?g:"").trim())}},[a.children]),y.createElement(Y1.ItemSlot,{scope:n,disabled:r,textValue:i??f},y.createElement(m6,ue({asChild:!0},s,{focusable:!r}),y.createElement(gt.div,ue({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:c,onPointerMove:Ue(e.onPointerMove,X1(m=>{r?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Ue(e.onPointerLeave,X1(m=>o.onItemLeave(m))),onFocus:Ue(e.onFocus,()=>d(!0)),onBlur:Ue(e.onBlur,()=>d(!1))}))))}),uW=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return y.createElement(IC,{scope:e.__scopeMenu,checked:n},y.createElement(y6,ue({role:"menuitemcheckbox","aria-checked":_h(n)?"mixed":n},i,{ref:t,"data-state":b6(n),onSelect:Ue(i.onSelect,()=>r==null?void 0:r(_h(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),dW="MenuRadioGroup",[Qde,fW]=yl(dW,{value:void 0,onValueChange:()=>{}}),hW="MenuRadioItem",mW=y.forwardRef((e,t)=>{const{value:n,...r}=e,i=fW(hW,e.__scopeMenu),a=n===i.value;return y.createElement(IC,{scope:e.__scopeMenu,checked:a},y.createElement(y6,ue({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":b6(a),onSelect:Ue(r.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,n)},{checkForDefaultPrevented:!1})})))}),MC="MenuItemIndicator",[IC,pW]=yl(MC,{checked:!1}),gW=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=pW(MC,n);return y.createElement(ar,{present:r||_h(a.checked)||a.checked===!0},y.createElement(gt.span,ue({},i,{ref:t,"data-state":b6(a.checked)})))}),vW=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.createElement(gt.div,ue({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),yW="MenuSub",[Zde,LC]=yl(yW),Td="MenuSubTrigger",bW=y.forwardRef((e,t)=>{const n=bl(Td,e.__scopeMenu),r=E0(Td,e.__scopeMenu),i=LC(Td,e.__scopeMenu),a=g6(Td,e.__scopeMenu),o=y.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},u=y.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return y.useEffect(()=>u,[u]),y.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.createElement(NC,ue({asChild:!0},c),y.createElement(RC,ue({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":DC(n.open)},e,{ref:Lm(t,i.onTriggerChange),onClick:d=>{var f;(f=e.onClick)===null||f===void 0||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ue(e.onPointerMove,X1(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:Ue(e.onPointerLeave,X1(d=>{var f;u();const h=(f=n.content)===null||f===void 0?void 0:f.getBoundingClientRect();if(h){var m;const g=(m=n.content)===null||m===void 0?void 0:m.dataset.side,E=g==="right",p=E?-5:5,v=h[E?"left":"right"],T=h[E?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+p,y:d.clientY},{x:v,y:h.top},{x:T,y:h.top},{x:T,y:h.bottom},{x:v,y:h.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Ue(e.onKeyDown,d=>{const f=a.searchRef.current!=="";if(!(e.disabled||f&&d.key===" ")&&XK[r.dir].includes(d.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),d.preventDefault()}})})))}),EW="MenuSubContent",xW=y.forwardRef((e,t)=>{const n=OC(Li,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=bl(Li,e.__scopeMenu),o=E0(Li,e.__scopeMenu),s=LC(EW,e.__scopeMenu),l=y.useRef(null),c=Lt(t,l);return y.createElement(Y1.Provider,{scope:e.__scopeMenu},y.createElement(ar,{present:r||a.open},y.createElement(Y1.Slot,{scope:e.__scopeMenu},y.createElement(v6,ue({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:c,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;o.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:Ue(e.onFocusOutside,u=>{u.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Ue(e.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:Ue(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),f=QK[o.dir].includes(u.key);if(d&&f){var h;a.onOpenChange(!1),(h=s.trigger)===null||h===void 0||h.focus(),u.preventDefault()}})})))))});function DC(e){return e?"open":"closed"}function _h(e){return e==="indeterminate"}function b6(e){return _h(e)?"indeterminate":e?"checked":"unchecked"}function TW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function _W(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function wW(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=_W(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==n));const l=o.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function SW(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;ar!=u>r&&n<(c-s)*(r-l)/(u-l)+s&&(i=!i)}return i}function CW(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return SW(n,t)}function X1(e){return t=>t.pointerType==="mouse"?e(t):void 0}const AW=nW,NW=NC,kW=iW,OW=oW,RW=cW,MW=y6,IW=uW,LW=mW,DW=gW,PW=vW,$W=bW,FW=xW,PC="DropdownMenu",[BW,Jde]=Gr(PC,[CC]),fi=CC(),[zW,$C]=BW(PC),UW=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=fi(t),c=y.useRef(null),[u=!1,d]=ru({prop:i,defaultProp:a,onChange:o});return y.createElement(zW,{scope:t,triggerId:Vs(),triggerRef:c,contentId:Vs(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(f=>!f),[d]),modal:s},y.createElement(AW,ue({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},jW="DropdownMenuTrigger",HW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=$C(jW,n),o=fi(n);return y.createElement(NW,ue({asChild:!0},o),y.createElement(gt.button,ue({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:Lm(t,a.triggerRef),onPointerDown:Ue(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:Ue(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),GW=e=>{const{__scopeDropdownMenu:t,...n}=e,r=fi(t);return y.createElement(kW,ue({},r,n))},VW="DropdownMenuContent",KW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=$C(VW,n),a=fi(n),o=y.useRef(!1);return y.createElement(OW,ue({id:i.contentId,"aria-labelledby":i.triggerId},a,r,{ref:t,onCloseAutoFocus:Ue(e.onCloseAutoFocus,s=>{var l;o.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:Ue(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),WW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(RW,ue({},i,r,{ref:t}))}),qW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(MW,ue({},i,r,{ref:t}))}),YW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(IW,ue({},i,r,{ref:t}))}),XW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(LW,ue({},i,r,{ref:t}))}),QW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(DW,ue({},i,r,{ref:t}))}),ZW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(PW,ue({},i,r,{ref:t}))}),JW=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement($W,ue({},i,r,{ref:t}))}),eq=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fi(n);return y.createElement(FW,ue({},i,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),tq=UW,nq=HW,rq=GW,FC=KW,BC=WW,zC=qW,UC=YW,jC=XW,HC=QW,GC=ZW,VC=JW,KC=eq,Um=tq,jm=nq,iq=y.forwardRef(({className:e,inset:t,children:n,...r},i)=>b.jsxs(VC,{ref:i,className:ze("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,b.jsx(OF,{className:"ml-auto h-4 w-4"})]}));iq.displayName=VC.displayName;const aq=y.forwardRef(({className:e,...t},n)=>b.jsx(KC,{ref:n,className:ze("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...t}));aq.displayName=KC.displayName;const x0=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(rq,{children:b.jsx(FC,{ref:r,sideOffset:t,className:ze("z-50 min-w-[6rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));x0.displayName=FC.displayName;const nl=y.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(zC,{ref:r,className:ze("relative flex cursor-default select-none items-center hover:cursor-pointer rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));nl.displayName=zC.displayName;const oq=y.forwardRef(({className:e,children:t,checked:n,...r},i)=>b.jsxs(UC,{ref:i,className:ze("relative flex cursor-default select-none hover:cursor-pointer items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(HC,{children:b.jsx(G9,{className:"h-4 w-4"})})}),t]}));oq.displayName=UC.displayName;const sq=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(jC,{ref:r,className:ze("relative flex cursor-default select-none hover:cursor-pointer items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(HC,{children:b.jsx(Pw,{className:"h-2 w-2 fill-current"})})}),t]}));sq.displayName=jC.displayName;const lq=y.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(BC,{ref:r,className:ze("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));lq.displayName=BC.displayName;const cq=y.forwardRef(({className:e,...t},n)=>b.jsx(GC,{ref:n,className:ze("-mx-1 my-1 h-px bg-muted",e),...t}));cq.displayName=GC.displayName;const WC=()=>{const{t:e}=p0(),[t,n]=zi(a=>[a.theme,a.setTheme]),r=a=>{n(a)},i=(a,o=14)=>({[Ns.LIGHT]:b.jsx(jF,{size:o}),[Ns.DARK]:b.jsx(PF,{size:o}),[Ns.SYSTEM]:b.jsx(DF,{size:o})})[a];return b.jsxs(Um,{children:[b.jsx(jm,{asChild:!0,children:b.jsx(Je,{variant:"ghost",className:"h-9 w-9 p-0",children:i(t,18)})}),b.jsx(x0,{align:"end",className:"w-32",children:[Ns.LIGHT,Ns.DARK,Ns.SYSTEM].map(a=>b.jsxs(nl,{className:"flex items-center gap-2",onClick:()=>r(a),children:[i(a)," ",e(a)]},a))})]})},uq=()=>{const e=Hr(),[t]=zi(s=>[s.appConfig]),[{nickname:n,avatar:r},i,a]=di(s=>[s.userInfo,s.signOut,s.isLogin()]),o=()=>{i(),e("/login")};return b.jsx(b.Fragment,{children:a?b.jsxs(Um,{children:[b.jsx(jm,{asChild:!0,children:b.jsxs(Je,{variant:"ghost",className:"p-0 px-2",children:[b.jsxs(V1,{className:"h-8 w-8",children:[b.jsx(K1,{src:r||t.user_logo,alt:n}),b.jsx(Dm,{children:n.slice(0,1)})]}),b.jsx("p",{className:"ml-2",children:n})]})}),b.jsxs(x0,{align:"end",children:[b.jsx(nl,{className:"flex items-center gap-2",onClick:()=>{e("/user")},children:"个人中心"}),b.jsx(nl,{className:"flex items-center gap-2",onClick:()=>o(),children:"退出登录"})]})]}):b.jsx(Je,{onClick:()=>e("/login"),children:"去登陆"})})};function qC({isPlain:e=!1}){const t=Hr(),{t:n}=p0(),[r,i,a]=zi(c=>[c.appConfig,c.theme,c.setTheme]),o=()=>{t("/chat")},s=cl(),l=[{path:"user",name:n("user center")},{path:"billing",name:n("billing center")}];return y.useEffect(()=>{a(i)},[]),b.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[b.jsxs("div",{className:"flex items-center",children:[b.jsxs("button",{className:"flex items-center gap-2 text-lg font-semibold",onClick:()=>o(),children:[b.jsx("img",{src:r.web_logo,className:"h-10 w-10 rounded-full"}),r.name]}),!e&&b.jsxs(b.Fragment,{children:[b.jsx(zS,{className:"mx-4 h-6",orientation:"vertical"}),l.map((c,u)=>b.jsx(hh,{to:c.path,children:b.jsx(Je,{className:"mr-1",variant:s.pathname.includes(c.path)?"default":"ghost",children:c.name})},u))]})]}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(hh,{to:"https://github.com/gptlink/gptlink-web",target:"_blank",children:b.jsx(Je,{variant:"ghost",className:"p-0 px-2",children:b.jsx(Bw,{size:18})})}),b.jsx(WC,{}),!e&&b.jsx(uq,{})]})]})}const YC="Tabs",[dq,efe]=Gr(YC,[au]),XC=au(),[fq,E6]=dq(YC),hq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=b0(s),[d,f]=ru({prop:r,onChange:i,defaultProp:a});return y.createElement(fq,{scope:n,baseId:Vs(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:l},y.createElement(gt.div,ue({dir:u,"data-orientation":o},c,{ref:t})))}),mq="TabsList",pq=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,a=E6(mq,n),o=XC(n);return y.createElement(h6,ue({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),y.createElement(gt.div,ue({role:"tablist","aria-orientation":a.orientation},i,{ref:t})))}),gq="TabsTrigger",vq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=E6(gq,n),s=XC(n),l=QC(o.baseId,r),c=ZC(o.baseId,r),u=r===o.value;return y.createElement(m6,ue({asChild:!0},s,{focusable:!i,active:u}),y.createElement(gt.button,ue({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},a,{ref:t,onMouseDown:Ue(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Ue(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Ue(e.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})))}),yq="TabsContent",bq=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=E6(yq,n),l=QC(s.baseId,r),c=ZC(s.baseId,r),u=r===s.value,d=y.useRef(u);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),y.createElement(ar,{present:i||u},({present:f})=>y.createElement(gt.div,ue({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),f&&a))});function QC(e,t){return`${e}-trigger-${t}`}function ZC(e,t){return`${e}-content-${t}`}const Eq=hq,JC=pq,eA=vq,tA=bq,xq=Eq,nA=y.forwardRef(({className:e,...t},n)=>b.jsx(JC,{ref:n,className:ze("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));nA.displayName=JC.displayName;const Y5=y.forwardRef(({className:e,...t},n)=>b.jsx(eA,{ref:n,className:ze("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Y5.displayName=eA.displayName;const Sf=y.forwardRef(({className:e,...t},n)=>b.jsx(tA,{ref:n,className:ze("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Sf.displayName=tA.displayName;const rA=()=>{const[e,t,n]=di(a=>[a.setUserInfo,a.signOut,a.access_token]),r=Hr(),i=cl();y.useEffect(()=>{(async()=>{if(n)try{const o=await li.getUserProfile();e(o),i.pathname==="/login"&&r("/chat")}catch{r("/login"),t()}})()},[])},x6=()=>{const[e,t]=zi(n=>[n.setAppConfig,n.appConfig]);return y.useEffect(()=>{(async()=>{const[r,i,a]=await Promise.all([Gs.getAppConfig(),Gs.getLoginType(),Gs.getPaymentConfig()]);e({...r,...i,...a}),document.title=r.name})()},[]),t};var iA={exports:{}};(function(e,t){iA.exports=t(e)})(window,function(e,t){if(!e.jWeixin){var n,r={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},i=function(){var w={};for(var P in r)w[r[P]]=P;return w}(),a=e.document,o=a.title,s=navigator.userAgent.toLowerCase(),l=navigator.platform.toLowerCase(),c=!(!l.match("mac")&&!l.match("win")),u=s.indexOf("wxdebugger")!=-1,d=s.indexOf("micromessenger")!=-1,f=s.indexOf("android")!=-1,h=s.indexOf("iphone")!=-1||s.indexOf("ipad")!=-1,m=(n=s.match(/micromessenger\/(\d+\.\d+\.\d+)/)||s.match(/micromessenger\/(\d+\.\d+)/))?n[1]:"",g={initStartTime:ne(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},E={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:h?1:f?2:-1,clientVersion:m,url:encodeURIComponent(location.href)},p={},v={_completes:[]},T={state:0,data:{}};B(function(){g.initEndTime=ne()});var C=!1,O=[],N={config:function(w){V("config",p=w);var P=p.check!==!1;B(function(){if(P)I(r.config,{verifyJsApiList:K(p.jsApiList),verifyOpenTagList:K(p.openTagList)},function(){v._complete=function(xe){g.preVerifyEndTime=ne(),T.state=1,T.data=xe},v.success=function(xe){E.isPreVerifyOk=0},v.fail=function(xe){v._fail?v._fail(xe):T.state=-1};var $=v._completes;return $.push(function(){(function(){if(!(c||u||p.debug||m<"6.0.2"||E.systemType<0)){var xe=new Image;E.appId=p.appId,E.initTime=g.initEndTime-g.initStartTime,E.preVerifyTime=g.preVerifyEndTime-g.preVerifyStartTime,N.getNetworkType({isInnerInvoke:!0,success:function(Se){E.networkType=Se.networkType;var Ce="https://open.weixin.qq.com/sdk/report?v="+E.version+"&o="+E.isPreVerifyOk+"&s="+E.systemType+"&c="+E.clientVersion+"&a="+E.appId+"&n="+E.networkType+"&i="+E.initTime+"&p="+E.preVerifyTime+"&u="+E.url;xe.src=Ce}})}})()}),v.complete=function(xe){for(var Se=0,Ce=$.length;Se(e.REGISTER="register",e.INVITE="invite",e.SHARE="share",e.SALESMAN="salesman",e))(Fr||{});const $a={getTaskList(e){return pt(`task?platform=${e}`)},checkTask(e){return pt("task/check",{method:"post",body:JSON.stringify({type:e})})},completionTask(e){return pt("task/completion",{method:"post",body:JSON.stringify({type:e})})},getUnreadTaskList(e){return pt(`/task/record/unread?type=${e}`)},readTask(e){return pt(`task/record/${e}/read`,{method:"put"})},getSalesmanConfig(){return pt("config/salesman")}},T6=()=>{const[e]=di(i=>[i.isLogin()]),[t]=a6(i=>[i.getCurrentBilling]);async function n(){if(!e)return;const i=Fr.SHARE,{result:a}=await $a.completionTask(i);if(!a)return;const o=await $a.getUnreadTaskList(i);P5(o)||(await $a.readTask(i),t(),Zt(()=>b.jsxs("div",{children:[b.jsx("div",{className:"bold text-lg",children:"👏 今日分享已完成!"}),b.jsx("div",{className:"mt-4",children:`${o.num===-1?`您的对话使用时长将延长${o.expired_day}天`:`您的对话次数将增加${o.num}次`} + ,请前往使用吧`})]})))}async function r(i){if(!e)return;const{result:a}=await $a.checkTask(i);if(!a)return;const o=await $a.getUnreadTaskList(i);P5(o)||(await $a.readTask(i),t(),Zt(()=>b.jsxs("div",{children:[b.jsx("div",{className:"bold text-lg",children:i===Fr.REGISTER?"👏 欢迎加入,尽情使用吧":`👏 ${o.record_count}个好友加入,真给力!`}),i===Fr.REGISTER?b.jsx("div",{className:"mt-4",children:`您将有${o.num===-1?`${o.expired_day*o.record_count}天无限次`:`${o.num*o.record_count}次`}机会与您的助理对话,请前往使用吧`}):b.jsx("div",{className:"mt-4",children:`${o.num===-1?`+${o.expired_day*o.record_count}天对话时长`:`+${o.num*o.record_count}次对话次数`}`})]})))}return{shareCallback:n,checkTask:r}},_q=e=>{Vl.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.nonceStr,signature:e.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","updateTimelineShareData","updateAppMessageShareData"],openTagList:e.openTagList})},T0=()=>{const[{openid:e}]=di(c=>[c.userInfo]),{shareCallback:t}=T6(),n=window.location.origin+window.location.pathname,{VITE_API_DOMAIN:r}={VITE_API_DOMAIN:"/api",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},i=y.useMemo(()=>{const c=navigator.userAgent.toLowerCase();return!!/micromessenger/.test(c)},[navigator]),a=()=>{const c=`${r}/wechat/weixin/redirect?redirect_url=${n}`;window.location.href=c},o=(c,u)=>{const d=c.data;if(window.WeixinJSBridge&&d){const{appId:f,timeStamp:h,nonceStr:m,signType:g,paySign:E}=d,p={appId:f,timeStamp:h,nonceStr:m,signType:g,paySign:E,package:d.package};window.WeixinJSBridge.invoke("getBrandWCPayRequest",p,v=>{v.err_msg==="get_brand_wcpay_request:ok"&&u()})}};return{isWeixinBrowser:i,weChatLogin:a,weChatPay:(c,u)=>{typeof window.WeixinJSBridge>"u"?document.addEventListener("WeixinJSBridgeReady",o(c,u)):o(c,u)},setWeixinShare:async()=>{const[c,u]=await Promise.all([Gs.getJsSDK(window.location.href),Gs.getShareConfig()]),d={title:u.title,link:`${window.location.origin}${e?`/?shareOpenId=${e}`:""}`,imgUrl:u.img_url,desc:"",success:()=>{console.log("设置成功")},cancel:()=>{Zt.error("设置失败")}},f={...d,success:async()=>{t()},cancel:()=>{Zt.error("取消分享")}};_q(c.data),Vl.updateAppMessageShareData(d),Vl.updateTimelineShareData(d),Vl.onMenuShareTimeline(f),Vl.onMenuShareAppMessage(f),Vl.error(h=>{console.error("分享内容错误:",h)})}}},aA=()=>{const[e,t]=ww();y.useEffect(()=>{const n=e.get("shareOpenId");n&&(localStorage.setItem(yr.ShareOpenId,n),t(""))},[])};function oA(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const sA="Checkbox",[wq,tfe]=Gr(sA),[Sq,Cq]=wq(sA),Aq=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:c,...u}=e,[d,f]=y.useState(null),h=Lt(t,T=>f(T)),m=y.useRef(!1),g=d?!!d.closest("form"):!0,[E=!1,p]=ru({prop:i,defaultProp:a,onChange:c}),v=y.useRef(E);return y.useEffect(()=>{const T=d==null?void 0:d.form;if(T){const C=()=>p(v.current);return T.addEventListener("reset",C),()=>T.removeEventListener("reset",C)}},[d,p]),y.createElement(Sq,{scope:n,state:E,disabled:s},y.createElement(gt.button,ue({type:"button",role:"checkbox","aria-checked":Ks(E)?"mixed":E,"aria-required":o,"data-state":lA(E),"data-disabled":s?"":void 0,disabled:s,value:l},u,{ref:h,onKeyDown:Ue(e.onKeyDown,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Ue(e.onClick,T=>{p(C=>Ks(C)?!0:!C),g&&(m.current=T.isPropagationStopped(),m.current||T.stopPropagation())})})),g&&y.createElement(Oq,{control:d,bubbles:!m.current,name:r,value:l,checked:E,required:o,disabled:s,style:{transform:"translateX(-100%)"}}))}),Nq="CheckboxIndicator",kq=y.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,a=Cq(Nq,n);return y.createElement(ar,{present:r||Ks(a.state)||a.state===!0},y.createElement(gt.span,ue({"data-state":lA(a.state),"data-disabled":a.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Oq=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=y.useRef(null),o=oA(n),s=d6(t);return y.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});l.indeterminate=Ks(n),d.call(l,Ks(n)?!1:n),l.dispatchEvent(f)}},[o,n,r]),y.createElement("input",ue({type:"checkbox","aria-hidden":!0,defaultChecked:Ks(n)?!1:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ks(e){return e==="indeterminate"}function lA(e){return Ks(e)?"indeterminate":e?"checked":"unchecked"}const cA=Aq,Rq=kq,Hm=y.forwardRef(({className:e,...t},n)=>b.jsx(cA,{ref:n,className:ze("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:b.jsx(Rq,{className:ze("flex items-center justify-center text-current"),children:b.jsx(G9,{className:"h-4 w-4"})})}));Hm.displayName=cA.displayName;const uA="Dialog",[dA,fA]=Gr(uA),[Mq,Ui]=dA(uA),Iq=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=y.useRef(null),l=y.useRef(null),[c=!1,u]=ru({prop:r,defaultProp:i,onChange:a});return y.createElement(Mq,{scope:t,triggerRef:s,contentRef:l,contentId:Vs(),titleId:Vs(),descriptionId:Vs(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o},n)},Lq="DialogTrigger",Dq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(Lq,n),a=Lt(t,i.triggerRef);return y.createElement(gt.button,ue({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":_6(i.open)},r,{ref:a,onClick:Ue(e.onClick,i.onOpenToggle)}))}),hA="DialogPortal",[Pq,mA]=dA(hA,{forceMount:void 0}),$q=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Ui(hA,t);return y.createElement(Pq,{scope:t,forceMount:n},y.Children.map(r,o=>y.createElement(ar,{present:n||a.open},y.createElement(dC,{asChild:!0,container:i},o))))},X5="DialogOverlay",Fq=y.forwardRef((e,t)=>{const n=mA(X5,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Ui(X5,e.__scopeDialog);return a.modal?y.createElement(ar,{present:r||a.open},y.createElement(Bq,ue({},i,{ref:t}))):null}),Bq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(X5,n);return y.createElement(wC,{as:rs,allowPinchZoom:!0,shards:[i.contentRef]},y.createElement(gt.div,ue({"data-state":_6(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Uc="DialogContent",zq=y.forwardRef((e,t)=>{const n=mA(Uc,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Ui(Uc,e.__scopeDialog);return y.createElement(ar,{present:r||a.open},a.modal?y.createElement(Uq,ue({},i,{ref:t})):y.createElement(jq,ue({},i,{ref:t})))}),Uq=y.forwardRef((e,t)=>{const n=Ui(Uc,e.__scopeDialog),r=y.useRef(null),i=Lt(t,n.contentRef,r);return y.useEffect(()=>{const a=r.current;if(a)return pC(a)},[]),y.createElement(pA,ue({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=n.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,a=>a.preventDefault())}))}),jq=y.forwardRef((e,t)=>{const n=Ui(Uc,e.__scopeDialog),r=y.useRef(!1),i=y.useRef(!1);return y.createElement(pA,ue({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:a=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}}))}),pA=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Ui(Uc,n),l=y.useRef(null),c=Lt(t,l);return GS(),y.createElement(y.Fragment,null,y.createElement(VS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},y.createElement(jS,ue({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_6(s.open)},o,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),gA="DialogTitle",Hq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(gA,n);return y.createElement(gt.h2,ue({id:i.titleId},r,{ref:t}))}),Gq="DialogDescription",Vq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(Gq,n);return y.createElement(gt.p,ue({id:i.descriptionId},r,{ref:t}))}),Kq="DialogClose",Wq=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ui(Kq,n);return y.createElement(gt.button,ue({type:"button"},r,{ref:t,onClick:Ue(e.onClick,()=>i.onOpenChange(!1))}))});function _6(e){return e?"open":"closed"}const qq="DialogTitleWarning",[Yq,nfe]=gG(qq,{contentName:Uc,titleName:gA,docsSlug:"dialog"}),w6=Iq,S6=Dq,_0=$q,w0=Fq,S0=zq,C0=Hq,A0=Vq,Gm=Wq,Xq="AlertDialog",[Qq,rfe]=Gr(Xq,[fA]),lo=fA(),Zq=e=>{const{__scopeAlertDialog:t,...n}=e,r=lo(t);return y.createElement(w6,ue({},r,n,{modal:!0}))},Jq=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return y.createElement(S6,ue({},i,r,{ref:t}))}),eY=e=>{const{__scopeAlertDialog:t,...n}=e,r=lo(t);return y.createElement(_0,ue({},r,n))},tY=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return y.createElement(w0,ue({},i,r,{ref:t}))}),vA="AlertDialogContent",[nY,rY]=Qq(vA),iY=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,a=lo(n),o=y.useRef(null),s=Lt(t,o),l=y.useRef(null);return y.createElement(Yq,{contentName:vA,titleName:aY,docsSlug:"alert-dialog"},y.createElement(nY,{scope:n,cancelRef:l},y.createElement(S0,ue({role:"alertdialog"},a,i,{ref:s,onOpenAutoFocus:Ue(i.onOpenAutoFocus,c=>{var u;c.preventDefault(),(u=l.current)===null||u===void 0||u.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault()}),y.createElement(_S,null,r),!1)))}),aY="AlertDialogTitle",oY=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return y.createElement(C0,ue({},i,r,{ref:t}))}),sY=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return y.createElement(A0,ue({},i,r,{ref:t}))}),lY=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return y.createElement(Gm,ue({},i,r,{ref:t}))}),cY="AlertDialogCancel",uY=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=rY(cY,n),a=lo(n),o=Lt(t,i);return y.createElement(Gm,ue({},a,r,{ref:o}))}),dY=Zq,fY=Jq,yA=eY,bA=tY,EA=iY,xA=lY,TA=uY,_A=oY,wA=sY,ou=dY,N0=fY,SA=({className:e,children:t,...n})=>b.jsx(yA,{className:ze(e),...n,children:b.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:t})});SA.displayName=yA.displayName;const CA=y.forwardRef(({className:e,...t},n)=>b.jsx(bA,{className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-opacity animate-in fade-in",e),...t,ref:n}));CA.displayName=bA.displayName;const El=y.forwardRef(({className:e,...t},n)=>b.jsxs(SA,{children:[b.jsx(CA,{}),b.jsx(EA,{ref:n,className:ze("fixed z-50 grid w-full max-w-lg scale-100 gap-4 border bg-background p-6 opacity-100 shadow-lg animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full",e),...t})]}));El.displayName=EA.displayName;const xl=({className:e,...t})=>b.jsx("div",{className:ze("flex flex-col space-y-2 text-center sm:text-left",e),...t});xl.displayName="AlertDialogHeader";const Vm=({className:e,...t})=>b.jsx("div",{className:ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Vm.displayName="AlertDialogFooter";const Tl=y.forwardRef(({className:e,...t},n)=>b.jsx(_A,{ref:n,className:ze("text-lg font-semibold",e),...t}));Tl.displayName=_A.displayName;const wh=y.forwardRef(({className:e,...t},n)=>b.jsx(wA,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));wh.displayName=wA.displayName;const Km=y.forwardRef(({className:e,...t},n)=>b.jsx(xA,{ref:n,className:ze(l6(),e),...t}));Km.displayName=xA.displayName;const AA=y.forwardRef(({className:e,...t},n)=>b.jsx(TA,{ref:n,className:ze(l6({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));AA.displayName=TA.displayName;function hY({checked:e,onCheckedChange:t}){const[n,r]=y.useState({title:"",agreement:"",enable:!1});return y.useEffect(()=>{Gs.getConfigAgreement().then(i=>{r(i),i.enable||t(!0)})},[]),n.enable?b.jsxs(b.Fragment,{children:[b.jsx(Hm,{className:"mr-2",checked:e,onCheckedChange:t}),"我已阅读并同意",b.jsxs(ou,{children:[b.jsx(N0,{children:b.jsxs("span",{className:"text-blue-600",children:["《",n.title,"》"]})}),b.jsxs(El,{children:[b.jsx(xl,{children:b.jsx(Tl,{children:n.title})}),b.jsx(wh,{className:"h-96 overflow-auto",dangerouslySetInnerHTML:{__html:n.agreement}}),b.jsx(Vm,{children:b.jsx(Km,{children:"确认"})})]})]})]}):b.jsx(b.Fragment,{})}const su=w6,NA=S6,kA=({className:e,children:t,...n})=>b.jsx(_0,{className:ze(e),...n,children:b.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center sm:items-center",children:t})});kA.displayName=_0.displayName;const OA=y.forwardRef(({className:e,...t},n)=>b.jsx(w0,{ref:n,className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t}));OA.displayName=w0.displayName;const _l=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(kA,{children:[b.jsx(OA,{}),b.jsxs(S0,{ref:r,className:ze("fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",e),...n,children:[t,b.jsxs(Gm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[b.jsx(tu,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_l.displayName=S0.displayName;const RA=({className:e,...t})=>b.jsx("div",{className:ze("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});RA.displayName="DialogHeader";const MA=({className:e,...t})=>b.jsx("div",{className:ze("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});MA.displayName="DialogFooter";const lu=y.forwardRef(({className:e,...t},n)=>b.jsx(C0,{ref:n,className:ze("text-lg font-semibold leading-none tracking-tight",e),...t}));lu.displayName=C0.displayName;const C6=y.forwardRef(({className:e,...t},n)=>b.jsx(A0,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));C6.displayName=A0.displayName;function mY({open:e,qrCode:t,handleOpenChange:n}){return b.jsx(su,{open:e,onOpenChange:n,children:b.jsx(_l,{children:b.jsx("iframe",{className:"m-auto h-[30rem] w-full overflow-hidden py-8",src:t,sandbox:"allow-scripts allow-top-navigation"})})})}var k0=e=>e.type==="checkbox",hc=e=>e instanceof Date,Zn=e=>e==null;const IA=e=>typeof e=="object";var Sn=e=>!Zn(e)&&!Array.isArray(e)&&IA(e)&&!hc(e),LA=e=>Sn(e)&&e.target?k0(e.target)?e.target.checked:e.target.value:e,pY=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,DA=(e,t)=>e.has(pY(t)),gY=e=>{const t=e.constructor&&e.constructor.prototype;return Sn(t)&&t.hasOwnProperty("isPrototypeOf")},A6=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Xi(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(A6&&(e instanceof Blob||e instanceof FileList))&&(n||Sn(e)))if(t=n?[]:{},!n&&!gY(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Xi(e[r]));else return e;return t}var O0=e=>Array.isArray(e)?e.filter(Boolean):[],sn=e=>e===void 0,Oe=(e,t,n)=>{if(!t||!Sn(e))return n;const r=O0(t.split(/[,[\].]+?/)).reduce((i,a)=>Zn(i)?i:i[a],e);return sn(r)||r===e?sn(e[t])?n:e[t]:r};const Sh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ki={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},PA=He.createContext(null),Wm=()=>He.useContext(PA),vY=e=>{const{children:t,...n}=e;return He.createElement(PA.Provider,{value:n},t)};var $A=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==ki.all&&(t._proxyFormState[o]=!r||ki.all),n&&(n[o]=!0),e[o]}});return i},Yr=e=>Sn(e)&&!Object.keys(e).length,FA=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Yr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||ki.all))},Cf=e=>Array.isArray(e)?e:[e],BA=(e,t,n)=>n&&t?e===t:!e||!t||e===t||Cf(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function N6(e){const t=He.useRef(e);t.current=e,He.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function yY(e){const t=Wm(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=He.useState(n._formState),l=He.useRef(!0),c=He.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=He.useRef(i);return u.current=i,N6({disabled:r,next:d=>l.current&&BA(u.current,d.name,a)&&FA(d,c.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),He.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),$A(o,n,c.current,!1)}var ra=e=>typeof e=="string",zA=(e,t,n,r,i)=>ra(e)?(r&&t.watch.add(e),Oe(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Oe(n,a))):(r&&(t.watchAll=!0),n);function bY(e){const t=Wm(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=He.useRef(r);s.current=r,N6({disabled:a,subject:n._subjects.values,next:u=>{BA(s.current,u.name,o)&&c(Xi(zA(s.current,n._names,u.values||n._formValues,!1,i)))}});const[l,c]=He.useState(n._getWatch(r,i));return He.useEffect(()=>n._removeUnmounted()),l}var k6=e=>/^\w*$/.test(e),UA=e=>O0(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Rt(e,t,n){let r=-1;const i=k6(t)?[t]:UA(t),a=i.length,o=a-1;for(;++r{const c=r._options.shouldUnregister||i,u=(d,f)=>{const h=Oe(r._fields,d);h&&(h._f.mount=f)};if(u(n,!0),c){const d=Xi(Oe(r._options.defaultValues,n));Rt(r._defaultValues,n,d),sn(Oe(r._formValues,n))&&Rt(r._formValues,n,d)}return()=>{(a?c&&!r._state.action:c)?r.unregister(n):u(n,!1)}},[n,r,a,i]),{field:{name:n,value:o,onChange:He.useCallback(c=>l.current.onChange({target:{value:LA(c),name:n},type:Sh.CHANGE}),[n]),onBlur:He.useCallback(()=>l.current.onBlur({target:{value:Oe(r._formValues,n),name:n},type:Sh.BLUR}),[n,r]),ref:c=>{const u=Oe(r._fields,n);u&&c&&(u._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:d=>c.setCustomValidity(d),reportValidity:()=>c.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Oe(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!Oe(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Oe(s.touchedFields,n)},error:{enumerable:!0,get:()=>Oe(s.errors,n)}})}}const xY=e=>e.render(EY(e));var jA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const Q5=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=Oe(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Sn(o)&&Q5(o,t)}}};var X7=e=>({isOnSubmit:!e||e===ki.onSubmit,isOnBlur:e===ki.onBlur,isOnChange:e===ki.onChange,isOnAll:e===ki.all,isOnTouch:e===ki.onTouched}),Q7=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),TY=(e,t,n)=>{const r=O0(Oe(e,n));return Rt(r,"root",t[n]),Rt(e,n,r),e},wc=e=>typeof e=="boolean",O6=e=>e.type==="file",$o=e=>typeof e=="function",Ch=e=>{if(!A6)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Af=e=>ra(e),R6=e=>e.type==="radio",Ah=e=>e instanceof RegExp;const Z7={value:!1,isValid:!1},J7={value:!0,isValid:!0};var HA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!sn(e[0].attributes.value)?sn(e[0].value)||e[0].value===""?J7:{value:e[0].value,isValid:!0}:J7:Z7}return Z7};const ey={isValid:!1,value:null};var GA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ey):ey;function ty(e,t,n="validate"){if(Af(e)||Array.isArray(e)&&e.every(Af)||wc(e)&&!e)return{type:n,message:Af(e)?e:"",ref:t}}var Fl=e=>Sn(e)&&!Ah(e)?e:{value:e,message:""},ny=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:m,valueAsNumber:g,mount:E,disabled:p}=e._f,v=Oe(t,m);if(!E||p)return{};const T=o?o[0]:a,C=Z=>{r&&T.reportValidity&&(T.setCustomValidity(wc(Z)?"":Z||""),T.reportValidity())},O={},N=R6(a),R=k0(a),D=N||R,I=(g||O6(a))&&sn(a.value)&&sn(v)||Ch(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,L=jA.bind(null,m,n,O),X=(Z,Q,K,V=wa.maxLength,ne=wa.minLength)=>{const B=Z?Q:K;O[m]={type:Z?V:ne,message:B,ref:a,...L(Z?V:ne,B)}};if(i?!Array.isArray(v)||!v.length:s&&(!D&&(I||Zn(v))||wc(v)&&!v||R&&!HA(o).isValid||N&&!GA(o).isValid)){const{value:Z,message:Q}=Af(s)?{value:!!s,message:s}:Fl(s);if(Z&&(O[m]={type:wa.required,message:Q,ref:T,...L(wa.required,Q)},!n))return C(Q),O}if(!I&&(!Zn(u)||!Zn(d))){let Z,Q;const K=Fl(d),V=Fl(u);if(!Zn(v)&&!isNaN(v)){const ne=a.valueAsNumber||v&&+v;Zn(K.value)||(Z=ne>K.value),Zn(V.value)||(Q=nenew Date(new Date().toDateString()+" "+A),w=a.type=="time",P=a.type=="week";ra(K.value)&&v&&(Z=w?B(v)>B(K.value):P?v>K.value:ne>new Date(K.value)),ra(V.value)&&v&&(Q=w?B(v)+Z.value,V=!Zn(Q.value)&&v.length<+Q.value;if((K||V)&&(X(K,Z.message,Q.message),!n))return C(O[m].message),O}if(f&&!I&&ra(v)){const{value:Z,message:Q}=Fl(f);if(Ah(Z)&&!v.match(Z)&&(O[m]={type:wa.pattern,message:Q,ref:a,...L(wa.pattern,Q)},!n))return C(Q),O}if(h){if($o(h)){const Z=await h(v,t),Q=ty(Z,T);if(Q&&(O[m]={...Q,...L(wa.validate,Q.message)},!n))return C(Q.message),O}else if(Sn(h)){let Z={};for(const Q in h){if(!Yr(Z)&&!n)break;const K=ty(await h[Q](v,t),T,Q);K&&(Z={...K,...L(Q,K.message)},C(K.message),n&&(O[m]=Z))}if(!Yr(Z)&&(O[m]={ref:T,...Z},!n))return O}}return C(!0),O};function _Y(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Nh=e=>Zn(e)||!IA(e);function zs(e,t){if(Nh(e)||Nh(t))return e===t;if(hc(e)&&hc(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(hc(a)&&hc(o)||Sn(a)&&Sn(o)||Array.isArray(a)&&Array.isArray(o)?!zs(a,o):a!==o)return!1}}return!0}var VA=e=>e.type==="select-multiple",SY=e=>R6(e)||k0(e),Cg=e=>Ch(e)&&e.isConnected,KA=e=>{for(const t in e)if($o(e[t]))return!0;return!1};function kh(e,t={}){const n=Array.isArray(e);if(Sn(e)||n)for(const r in e)Array.isArray(e[r])||Sn(e[r])&&!KA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},kh(e[r],t[r])):Zn(e[r])||(t[r]=!0);return t}function WA(e,t,n){const r=Array.isArray(e);if(Sn(e)||r)for(const i in e)Array.isArray(e[i])||Sn(e[i])&&!KA(e[i])?sn(t)||Nh(n[i])?n[i]=Array.isArray(e[i])?kh(e[i],[]):{...kh(e[i])}:WA(e[i],Zn(t)?{}:t[i],n[i]):n[i]=!zs(e[i],t[i]);return n}var Ag=(e,t)=>WA(e,t,kh(t)),qA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>sn(e)?e:t?e===""?NaN:e&&+e:n&&ra(e)?new Date(e):r?r(e):e;function Ng(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return O6(t)?t.files:R6(t)?GA(e.refs).value:VA(t)?[...t.selectedOptions].map(({value:n})=>n):k0(t)?HA(e.refs).value:qA(sn(t.value)?e.ref.value:t.value,e)}var CY=(e,t,n,r)=>{const i={};for(const a of e){const o=Oe(t,a);o&&Rt(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Mu=e=>sn(e)?e:Ah(e)?e.source:Sn(e)?Ah(e.value)?e.value.source:e.value:e,AY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ry(e,t,n){const r=Oe(e,n);if(r||k6(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Oe(t,a),s=Oe(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var NY=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,kY=(e,t)=>!O0(Oe(e,t)).length&&Dn(e,t);const OY={mode:ki.onSubmit,reValidateMode:ki.onChange,shouldFocusError:!0};function RY(e={},t){let n={...OY,...e},r={submitCount:0,isDirty:!1,isLoading:$o(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Sn(n.defaultValues)||Sn(n.values)?Xi(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:Xi(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Sg(),array:Sg(),state:Sg()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,m=X7(n.mode),g=X7(n.reValidateMode),E=n.criteriaMode===ki.all,p=H=>ie=>{clearTimeout(u),u=setTimeout(H,ie)},v=async H=>{if(d.isValid||H){const ie=n.resolver?Yr((await I()).errors):await X(i,!0);ie!==r.isValid&&f.state.next({isValid:ie})}},T=H=>d.isValidating&&f.state.next({isValidating:H}),C=(H,ie=[],ae,le,_e=!0,ce=!0)=>{if(le&&ae){if(s.action=!0,ce&&Array.isArray(Oe(i,H))){const be=ae(Oe(i,H),le.argA,le.argB);_e&&Rt(i,H,be)}if(ce&&Array.isArray(Oe(r.errors,H))){const be=ae(Oe(r.errors,H),le.argA,le.argB);_e&&Rt(r.errors,H,be),kY(r.errors,H)}if(d.touchedFields&&ce&&Array.isArray(Oe(r.touchedFields,H))){const be=ae(Oe(r.touchedFields,H),le.argA,le.argB);_e&&Rt(r.touchedFields,H,be)}d.dirtyFields&&(r.dirtyFields=Ag(a,o)),f.state.next({name:H,isDirty:Q(H,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Rt(o,H,ie)},O=(H,ie)=>{Rt(r.errors,H,ie),f.state.next({errors:r.errors})},N=(H,ie,ae,le)=>{const _e=Oe(i,H);if(_e){const ce=Oe(o,H,sn(ae)?Oe(a,H):ae);sn(ce)||le&&le.defaultChecked||ie?Rt(o,H,ie?ce:Ng(_e._f)):ne(H,ce),s.mount&&v()}},R=(H,ie,ae,le,_e)=>{let ce=!1,be=!1;const vt={name:H};if(!ae||le){d.isDirty&&(be=r.isDirty,r.isDirty=vt.isDirty=Q(),ce=be!==vt.isDirty);const yt=zs(Oe(a,H),ie);be=Oe(r.dirtyFields,H),yt?Dn(r.dirtyFields,H):Rt(r.dirtyFields,H,!0),vt.dirtyFields=r.dirtyFields,ce=ce||d.dirtyFields&&be!==!yt}if(ae){const yt=Oe(r.touchedFields,H);yt||(Rt(r.touchedFields,H,ae),vt.touchedFields=r.touchedFields,ce=ce||d.touchedFields&&yt!==ae)}return ce&&_e&&f.state.next(vt),ce?vt:{}},D=(H,ie,ae,le)=>{const _e=Oe(r.errors,H),ce=d.isValid&&wc(ie)&&r.isValid!==ie;if(e.delayError&&ae?(c=p(()=>O(H,ae)),c(e.delayError)):(clearTimeout(u),c=null,ae?Rt(r.errors,H,ae):Dn(r.errors,H)),(ae?!zs(_e,ae):_e)||!Yr(le)||ce){const be={...le,...ce&&wc(ie)?{isValid:ie}:{},errors:r.errors,name:H};r={...r,...be},f.state.next(be)}T(!1)},I=async H=>n.resolver(o,n.context,CY(H||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async H=>{const{errors:ie}=await I();if(H)for(const ae of H){const le=Oe(ie,ae);le?Rt(r.errors,ae,le):Dn(r.errors,ae)}else r.errors=ie;return ie},X=async(H,ie,ae={valid:!0})=>{for(const le in H){const _e=H[le];if(_e){const{_f:ce,...be}=_e;if(ce){const vt=l.array.has(ce.name),yt=await ny(_e,o,E,n.shouldUseNativeValidation&&!ie,vt);if(yt[ce.name]&&(ae.valid=!1,ie))break;!ie&&(Oe(yt,ce.name)?vt?TY(r.errors,yt,ce.name):Rt(r.errors,ce.name,yt[ce.name]):Dn(r.errors,ce.name))}be&&await X(be,ie,ae)}}return ae.valid},Z=()=>{for(const H of l.unMount){const ie=Oe(i,H);ie&&(ie._f.refs?ie._f.refs.every(ae=>!Cg(ae)):!Cg(ie._f.ref))&&Ce(H)}l.unMount=new Set},Q=(H,ie)=>(H&&ie&&Rt(o,H,ie),!zs(W(),a)),K=(H,ie,ae)=>zA(H,l,{...s.mount?o:sn(ie)?a:ra(H)?{[H]:ie}:ie},ae,ie),V=H=>O0(Oe(s.mount?o:a,H,e.shouldUnregister?Oe(a,H,[]):[])),ne=(H,ie,ae={})=>{const le=Oe(i,H);let _e=ie;if(le){const ce=le._f;ce&&(!ce.disabled&&Rt(o,H,qA(ie,ce)),_e=Ch(ce.ref)&&Zn(ie)?"":ie,VA(ce.ref)?[...ce.ref.options].forEach(be=>be.selected=_e.includes(be.value)):ce.refs?k0(ce.ref)?ce.refs.length>1?ce.refs.forEach(be=>(!be.defaultChecked||!be.disabled)&&(be.checked=Array.isArray(_e)?!!_e.find(vt=>vt===be.value):_e===be.value)):ce.refs[0]&&(ce.refs[0].checked=!!_e):ce.refs.forEach(be=>be.checked=be.value===_e):O6(ce.ref)?ce.ref.value="":(ce.ref.value=_e,ce.ref.type||f.values.next({name:H,values:{...o}})))}(ae.shouldDirty||ae.shouldTouch)&&R(H,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&A(H)},B=(H,ie,ae)=>{for(const le in ie){const _e=ie[le],ce=`${H}.${le}`,be=Oe(i,ce);(l.array.has(H)||!Nh(_e)||be&&!be._f)&&!hc(_e)?B(ce,_e,ae):ne(ce,_e,ae)}},w=(H,ie,ae={})=>{const le=Oe(i,H),_e=l.array.has(H),ce=Xi(ie);Rt(o,H,ce),_e?(f.array.next({name:H,values:{...o}}),(d.isDirty||d.dirtyFields)&&ae.shouldDirty&&f.state.next({name:H,dirtyFields:Ag(a,o),isDirty:Q(H,ce)})):le&&!le._f&&!Zn(ce)?B(H,ce,ae):ne(H,ce,ae),Q7(H,l)&&f.state.next({...r}),f.values.next({name:H,values:{...o}}),!s.mount&&t()},P=async H=>{const ie=H.target;let ae=ie.name,le=!0;const _e=Oe(i,ae),ce=()=>ie.type?Ng(_e._f):LA(H);if(_e){let be,vt;const yt=ce(),Un=H.type===Sh.BLUR||H.type===Sh.FOCUS_OUT,xa=!AY(_e._f)&&!n.resolver&&!Oe(r.errors,ae)&&!_e._f.deps||NY(Un,Oe(r.touchedFields,ae),r.isSubmitted,g,m),G=Q7(ae,l,Un);Rt(o,ae,yt),Un?(_e._f.onBlur&&_e._f.onBlur(H),c&&c(0)):_e._f.onChange&&_e._f.onChange(H);const re=R(ae,yt,Un,!1),pe=!Yr(re)||G;if(!Un&&f.values.next({name:ae,type:H.type,values:{...o}}),xa)return d.isValid&&v(),pe&&f.state.next({name:ae,...G?{}:re});if(!Un&&G&&f.state.next({...r}),T(!0),n.resolver){const{errors:Y}=await I([ae]),J=ry(r.errors,i,ae),oe=ry(Y,i,J.name||ae);be=oe.error,ae=oe.name,vt=Yr(Y)}else be=(await ny(_e,o,E,n.shouldUseNativeValidation))[ae],le=isNaN(yt)||yt===Oe(o,ae,yt),le&&(be?vt=!1:d.isValid&&(vt=await X(i,!0)));le&&(_e._f.deps&&A(_e._f.deps),D(ae,vt,be,re))}},A=async(H,ie={})=>{let ae,le;const _e=Cf(H);if(T(!0),n.resolver){const ce=await L(sn(H)?H:_e);ae=Yr(ce),le=H?!_e.some(be=>Oe(ce,be)):ae}else H?(le=(await Promise.all(_e.map(async ce=>{const be=Oe(i,ce);return await X(be&&be._f?{[ce]:be}:be)}))).every(Boolean),!(!le&&!r.isValid)&&v()):le=ae=await X(i);return f.state.next({...!ra(H)||d.isValid&&ae!==r.isValid?{}:{name:H},...n.resolver||!H?{isValid:ae}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!le&&Q5(i,ce=>ce&&Oe(r.errors,ce),H?_e:l.mount),le},W=H=>{const ie={...a,...s.mount?o:{}};return sn(H)?ie:ra(H)?Oe(ie,H):H.map(ae=>Oe(ie,ae))},te=(H,ie)=>({invalid:!!Oe((ie||r).errors,H),isDirty:!!Oe((ie||r).dirtyFields,H),isTouched:!!Oe((ie||r).touchedFields,H),error:Oe((ie||r).errors,H)}),$=H=>{H&&Cf(H).forEach(ie=>Dn(r.errors,ie)),f.state.next({errors:H?r.errors:{}})},xe=(H,ie,ae)=>{const le=(Oe(i,H,{_f:{}})._f||{}).ref;Rt(r.errors,H,{...ie,ref:le}),f.state.next({name:H,errors:r.errors,isValid:!1}),ae&&ae.shouldFocus&&le&&le.focus&&le.focus()},Se=(H,ie)=>$o(H)?f.values.subscribe({next:ae=>H(K(void 0,ie),ae)}):K(H,ie,!0),Ce=(H,ie={})=>{for(const ae of H?Cf(H):l.mount)l.mount.delete(ae),l.array.delete(ae),ie.keepValue||(Dn(i,ae),Dn(o,ae)),!ie.keepError&&Dn(r.errors,ae),!ie.keepDirty&&Dn(r.dirtyFields,ae),!ie.keepTouched&&Dn(r.touchedFields,ae),!n.shouldUnregister&&!ie.keepDefaultValue&&Dn(a,ae);f.values.next({values:{...o}}),f.state.next({...r,...ie.keepDirty?{isDirty:Q()}:{}}),!ie.keepIsValid&&v()},Ae=(H,ie={})=>{let ae=Oe(i,H);const le=wc(ie.disabled);return Rt(i,H,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:H}},name:H,mount:!0,...ie}}),l.mount.add(H),ae?le&&Rt(o,H,ie.disabled?void 0:Oe(o,H,Ng(ae._f))):N(H,!0,ie.value),{...le?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:Mu(ie.min),max:Mu(ie.max),minLength:Mu(ie.minLength),maxLength:Mu(ie.maxLength),pattern:Mu(ie.pattern)}:{},name:H,onChange:P,onBlur:P,ref:_e=>{if(_e){Ae(H,ie),ae=Oe(i,H);const ce=sn(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,be=SY(ce),vt=ae._f.refs||[];if(be?vt.find(yt=>yt===ce):ce===ae._f.ref)return;Rt(i,H,{_f:{...ae._f,...be?{refs:[...vt.filter(Cg),ce,...Array.isArray(Oe(a,H))?[{}]:[]],ref:{type:ce.type,name:H}}:{ref:ce}}}),N(H,!1,void 0,ce)}else ae=Oe(i,H,{}),ae._f&&(ae._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(DA(l.array,H)&&s.action)&&l.unMount.add(H)}}},qe=()=>n.shouldFocusError&&Q5(i,H=>H&&Oe(r.errors,H),l.mount),Te=(H,ie)=>async ae=>{ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let le=Xi(o);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:_e,values:ce}=await I();r.errors=_e,le=ce}else await X(i);Dn(r.errors,"root"),Yr(r.errors)?(f.state.next({errors:{}}),await H(le,ae)):(ie&&await ie({...r.errors},ae),qe(),setTimeout(qe)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Yr(r.errors),submitCount:r.submitCount+1,errors:r.errors})},st=(H,ie={})=>{Oe(i,H)&&(sn(ie.defaultValue)?w(H,Oe(a,H)):(w(H,ie.defaultValue),Rt(a,H,ie.defaultValue)),ie.keepTouched||Dn(r.touchedFields,H),ie.keepDirty||(Dn(r.dirtyFields,H),r.isDirty=ie.defaultValue?Q(H,Oe(a,H)):Q()),ie.keepError||(Dn(r.errors,H),d.isValid&&v()),f.state.next({...r}))},Ct=(H,ie={})=>{const ae=H||a,le=Xi(ae),_e=H&&!Yr(H)?le:a;if(ie.keepDefaultValues||(a=ae),!ie.keepValues){if(ie.keepDirtyValues||h)for(const ce of l.mount)Oe(r.dirtyFields,ce)?Rt(_e,ce,Oe(o,ce)):w(ce,Oe(_e,ce));else{if(A6&&sn(H))for(const ce of l.mount){const be=Oe(i,ce);if(be&&be._f){const vt=Array.isArray(be._f.refs)?be._f.refs[0]:be._f.ref;if(Ch(vt)){const yt=vt.closest("form");if(yt){yt.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?Xi(a):{}:Xi(_e),f.array.next({values:{..._e}}),f.values.next({values:{..._e}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,f.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!zs(H,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&H?Ag(a,H):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},At=(H,ie)=>Ct($o(H)?H(o):H,ie);return{control:{register:Ae,unregister:Ce,getFieldState:te,handleSubmit:Te,setError:xe,_executeSchema:I,_getWatch:K,_getDirty:Q,_updateValid:v,_removeUnmounted:Z,_updateFieldArray:C,_getFieldArray:V,_reset:Ct,_resetDefaultValues:()=>$o(n.defaultValues)&&n.defaultValues().then(H=>{At(H,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:H=>{r={...r,...H}},_subjects:f,_proxyFormState:d,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(H){s=H},get _defaultValues(){return a},get _names(){return l},set _names(H){l=H},get _formState(){return r},set _formState(H){r=H},get _options(){return n},set _options(H){n={...n,...H}}},trigger:A,register:Ae,handleSubmit:Te,watch:Se,setValue:w,getValues:W,reset:At,resetField:st,clearErrors:$,unregister:Ce,setError:xe,setFocus:(H,ie={})=>{const ae=Oe(i,H),le=ae&&ae._f;if(le){const _e=le.refs?le.refs[0]:le.ref;_e.focus&&(_e.focus(),ie.shouldSelect&&_e.select())}},getFieldState:te}}function R0(e={}){const t=He.useRef(),[n,r]=He.useState({isDirty:!1,isValidating:!1,isLoading:$o(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:$o(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...RY(e,()=>r(a=>({...a}))),formState:n});const i=t.current.control;return i._options=e,N6({subject:i._subjects.state,next:a=>{FA(a,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),He.useEffect(()=>{e.values&&!zs(e.values,i._defaultValues)?i._reset(e.values,i._options.resetOptions):i._resetDefaultValues()},[e.values,i]),He.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=$A(n,i),t.current}var iy=function(e,t,n){if(e&&"reportValidity"in e){var r=Oe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},YA=function(e,t){var n=function(i){var a=t.fields[i];a&&a.ref&&"reportValidity"in a.ref?iy(a.ref,i,e):a.refs&&a.refs.forEach(function(o){return iy(o,i,e)})};for(var r in t.fields)n(r)},MY=function(e,t){t.shouldUseNativeValidation&&YA(e,t);var n={};for(var r in e){var i=Oe(t.fields,r);Rt(n,r,Object.assign(e[r]||{},{ref:i&&i.ref}))}return n},IY=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[o].types,c=l&&l[r.code];n[o]=jA(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},M0=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&YA({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return s.errors!=null}(o))return{values:{},errors:MY(IY(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},_t;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(_t||(_t={}));var ay;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ay||(ay={}));const Le=_t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Is=e=>{switch(typeof e){case"undefined":return Le.undefined;case"string":return Le.string;case"number":return isNaN(e)?Le.nan:Le.number;case"boolean":return Le.boolean;case"function":return Le.function;case"bigint":return Le.bigint;case"symbol":return Le.symbol;case"object":return Array.isArray(e)?Le.array:e===null?Le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Le.promise:typeof Map<"u"&&e instanceof Map?Le.map:typeof Set<"u"&&e instanceof Set?Le.set:typeof Date<"u"&&e instanceof Date?Le.date:Le.object;default:return Le.unknown}},Ee=_t.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class la extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;ln.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}la.create=e=>new la(e);const Oh=(e,t)=>{let n;switch(e.code){case Ee.invalid_type:e.received===Le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_t.jsonStringifyReplacer)}`;break;case Ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${_t.joinValues(e.keys,", ")}`;break;case Ee.invalid_union:n="Invalid input";break;case Ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_t.joinValues(e.options)}`;break;case Ee.invalid_enum_value:n=`Invalid enum value. Expected ${_t.joinValues(e.options)}, received '${e.received}'`;break;case Ee.invalid_arguments:n="Invalid function arguments";break;case Ee.invalid_return_type:n="Invalid function return type";break;case Ee.invalid_date:n="Invalid date";break;case Ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:_t.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ee.custom:n="Invalid input";break;case Ee.invalid_intersection_types:n="Intersection results could not be merged";break;case Ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,_t.assertNever(e)}return{message:n}};let LY=Oh;function Z5(){return LY}const J5=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}};function Pe(e,t){const n=J5({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Z5(),Oh].filter(r=>!!r)});e.common.issues.push(n)}class nr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return nt;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return nr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return nt;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const nt=Object.freeze({status:"aborted"}),DY=e=>({status:"dirty",value:e}),_r=e=>({status:"valid",value:e}),oy=e=>e.status==="aborted",sy=e=>e.status==="dirty",e2=e=>e.status==="valid",t2=e=>typeof Promise<"u"&&e instanceof Promise;var Ge;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ge||(Ge={}));class ma{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ly=(e,t)=>{if(e2(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new la(e.common.issues);return this._error=n,this._error}}};function rt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>o.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class ht{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Is(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Is(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new nr,ctx:{common:t.parent.common,data:t.data,parsedType:Is(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(t2(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Is(t)},a=this._parseSync({data:t,path:i.path,parent:i});return ly(i,a)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Is(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(t2(i)?i:Promise.resolve(i));return ly(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:Ee.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new eo({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Xo.create(this,this._def)}nullable(){return Vc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ca.create(this,this._def)}promise(){return Z1.create(this,this._def)}or(t){return Ih.create([this,t],this._def)}and(t){return Lh.create(this,t,this._def)}transform(t){return new eo({...rt(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Bh({...rt(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new WY({typeName:Qe.ZodBranded,type:this,...rt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new l2({...rt(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return qm.create(this,t)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const PY=/^c[^\s-]{8,}$/i,$Y=/^[a-z][a-z0-9]*$/,FY=/[0-9A-HJKMNP-TV-Z]{26}/,BY=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,zY=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,UY=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,jY=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,HY=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,GY=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function VY(e,t){return!!((t==="v4"||!t)&&jY.test(e)||(t==="v6"||!t)&&HY.test(e))}class Ua extends ht{constructor(){super(...arguments),this._regex=(t,n,r)=>this.refinement(i=>t.test(i),{validation:n,code:Ee.invalid_string,...Ge.errToObj(r)}),this.nonempty=t=>this.min(1,Ge.errToObj(t)),this.trim=()=>new Ua({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Ua({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Ua({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Le.string){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.string,received:a.parsedType}),nt}const r=new nr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...Ge.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ge.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ge.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ge.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ge.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ge.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ge.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ge.errToObj(n)})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ua({checks:[],typeName:Qe.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...rt(e)})};function KY(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class jc extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Le.number){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.number,received:a.parsedType}),nt}let r;const i=new nr;for(const a of this._def.checks)a.kind==="int"?_t.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?KY(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_finite,message:a.message}),i.dirty()):_t.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ge.toString(n))}setLimit(t,n,r,i){return new jc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ge.toString(i)}]})}_addCheck(t){return new jc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ge.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ge.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ge.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ge.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ge.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&_t.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew jc({checks:[],typeName:Qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...rt(e)});class Hc extends ht{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Le.bigint){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.bigint,received:a.parsedType}),nt}let r;const i=new nr;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):_t.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ge.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ge.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ge.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ge.toString(n))}setLimit(t,n,r,i){return new Hc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ge.toString(i)}]})}_addCheck(t){return new Hc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ge.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ge.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Hc({checks:[],typeName:Qe.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...rt(e)})};class n2 extends ht{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Le.boolean){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.boolean,received:r.parsedType}),nt}return _r(t.data)}}n2.create=e=>new n2({typeName:Qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...rt(e)});class Q1 extends ht{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Le.date){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_type,expected:Le.date,received:a.parsedType}),nt}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ee.invalid_date}),nt}const r=new nr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):_t.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Q1({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ge.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ge.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Q1({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Qe.ZodDate,...rt(e)});class r2 extends ht{_parse(t){if(this._getType(t)!==Le.symbol){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.symbol,received:r.parsedType}),nt}return _r(t.data)}}r2.create=e=>new r2({typeName:Qe.ZodSymbol,...rt(e)});class Rh extends ht{_parse(t){if(this._getType(t)!==Le.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.undefined,received:r.parsedType}),nt}return _r(t.data)}}Rh.create=e=>new Rh({typeName:Qe.ZodUndefined,...rt(e)});class Mh extends ht{_parse(t){if(this._getType(t)!==Le.null){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.null,received:r.parsedType}),nt}return _r(t.data)}}Mh.create=e=>new Mh({typeName:Qe.ZodNull,...rt(e)});class i2 extends ht{constructor(){super(...arguments),this._any=!0}_parse(t){return _r(t.data)}}i2.create=e=>new i2({typeName:Qe.ZodAny,...rt(e)});class Sc extends ht{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _r(t.data)}}Sc.create=e=>new Sc({typeName:Qe.ZodUnknown,...rt(e)});class as extends ht{_parse(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ee.invalid_type,expected:Le.never,received:n.parsedType}),nt}}as.create=e=>new as({typeName:Qe.ZodNever,...rt(e)});class a2 extends ht{_parse(t){if(this._getType(t)!==Le.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.void,received:r.parsedType}),nt}return _r(t.data)}}a2.create=e=>new a2({typeName:Qe.ZodVoid,...rt(e)});class ca extends ht{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Le.array)return Pe(n,{code:Ee.invalid_type,expected:Le.array,received:n.parsedType}),nt;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.lengthi.maxLength.value&&(Pe(n,{code:Ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>i.type._parseAsync(new ma(n,o,n.path,s)))).then(o=>nr.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new ma(n,o,n.path,s)));return nr.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new ca({...this._def,minLength:{value:t,message:Ge.toString(n)}})}max(t,n){return new ca({...this._def,maxLength:{value:t,message:Ge.toString(n)}})}length(t,n){return new ca({...this._def,exactLength:{value:t,message:Ge.toString(n)}})}nonempty(t){return this.min(1,t)}}ca.create=(e,t)=>new ca({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...rt(t)});function Kl(e){if(e instanceof rn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Xo.create(Kl(r))}return new rn({...e._def,shape:()=>t})}else return e instanceof ca?new ca({...e._def,type:Kl(e.element)}):e instanceof Xo?Xo.create(Kl(e.unwrap())):e instanceof Vc?Vc.create(Kl(e.unwrap())):e instanceof Ja?Ja.create(e.items.map(t=>Kl(t))):e}class rn extends ht{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=_t.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Le.object){const c=this._getOrReturnCtx(t);return Pe(c,{code:Ee.invalid_type,expected:Le.object,received:c.parsedType}),nt}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof as&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ma(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof as){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(Pe(i,{code:Ee.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ma(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key;c.push({key:d,value:await u.value,alwaysSet:u.alwaysSet})}return c}).then(c=>nr.mergeObjectSync(r,c)):nr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Ge.errToObj,new rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a,o,s;const l=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=Ge.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new rn({...this._def,unknownKeys:"strip"})}passthrough(){return new rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new rn({...this._def,catchall:t})}pick(t){const n={};return _t.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new rn({...this._def,shape:()=>n})}omit(t){const n={};return _t.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new rn({...this._def,shape:()=>n})}deepPartial(){return Kl(this)}partial(t){const n={};return _t.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new rn({...this._def,shape:()=>n})}required(t){const n={};return _t.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Xo;)a=a._def.innerType;n[r]=a}}),new rn({...this._def,shape:()=>n})}keyof(){return XA(_t.objectKeys(this.shape))}}rn.create=(e,t)=>new rn({shape:()=>e,unknownKeys:"strip",catchall:as.create(),typeName:Qe.ZodObject,...rt(t)});rn.strictCreate=(e,t)=>new rn({shape:()=>e,unknownKeys:"strict",catchall:as.create(),typeName:Qe.ZodObject,...rt(t)});rn.lazycreate=(e,t)=>new rn({shape:e,unknownKeys:"strip",catchall:as.create(),typeName:Qe.ZodObject,...rt(t)});class Ih extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new la(s.ctx.common.issues));return Pe(n,{code:Ee.invalid_union,unionErrors:o}),nt}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new la(l));return Pe(n,{code:Ee.invalid_union,unionErrors:s}),nt}}get options(){return this._def.options}}Ih.create=(e,t)=>new Ih({options:e,typeName:Qe.ZodUnion,...rt(t)});const Nf=e=>e instanceof Ph?Nf(e.schema):e instanceof eo?Nf(e.innerType()):e instanceof $h?[e.value]:e instanceof rl?e.options:e instanceof Fh?Object.keys(e.enum):e instanceof Bh?Nf(e._def.innerType):e instanceof Rh?[void 0]:e instanceof Mh?[null]:null;class M6 extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.object)return Pe(n,{code:Ee.invalid_type,expected:Le.object,received:n.parsedType}),nt;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Pe(n,{code:Ee.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),nt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const o=Nf(a.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new M6({typeName:Qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...rt(r)})}}function o2(e,t){const n=Is(e),r=Is(t);if(e===t)return{valid:!0,data:e};if(n===Le.object&&r===Le.object){const i=_t.objectKeys(t),a=_t.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=o2(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Le.array&&r===Le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a{if(oy(a)||oy(o))return nt;const s=o2(a.value,o.value);return s.valid?((sy(a)||sy(o))&&n.dirty(),{status:n.value,value:s.data}):(Pe(r,{code:Ee.invalid_intersection_types}),nt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Lh.create=(e,t,n)=>new Lh({left:e,right:t,typeName:Qe.ZodIntersection,...rt(n)});class Ja extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.array)return Pe(r,{code:Ee.invalid_type,expected:Le.array,received:r.parsedType}),nt;if(r.data.lengththis._def.items.length&&(Pe(r,{code:Ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new ma(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>nr.mergeArray(n,o)):nr.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Ja({...this._def,rest:t})}}Ja.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ja({items:e,typeName:Qe.ZodTuple,rest:null,...rt(t)})};class Dh extends ht{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.object)return Pe(r,{code:Ee.invalid_type,expected:Le.object,received:r.parsedType}),nt;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new ma(r,s,r.path,s)),value:o._parse(new ma(r,r.data[s],r.path,s))});return r.common.async?nr.mergeObjectAsync(n,i):nr.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ht?new Dh({keyType:t,valueType:n,typeName:Qe.ZodRecord,...rt(r)}):new Dh({keyType:Ua.create(),valueType:t,typeName:Qe.ZodRecord,...rt(n)})}}class s2 extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.map)return Pe(r,{code:Ee.invalid_type,expected:Le.map,received:r.parsedType}),nt;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new ma(r,s,r.path,[c,"key"])),value:a._parse(new ma(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return nt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return nt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}s2.create=(e,t,n)=>new s2({valueType:t,keyType:e,typeName:Qe.ZodMap,...rt(n)});class Gc extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Le.set)return Pe(r,{code:Ee.invalid_type,expected:Le.set,received:r.parsedType}),nt;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(Pe(r,{code:Ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return nt;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new ma(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new Gc({...this._def,minSize:{value:t,message:Ge.toString(n)}})}max(t,n){return new Gc({...this._def,maxSize:{value:t,message:Ge.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Gc.create=(e,t)=>new Gc({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...rt(t)});class c1 extends ht{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.function)return Pe(n,{code:Ee.invalid_type,expected:Le.function,received:n.parsedType}),nt;function r(s,l){return J5({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Z5(),Oh].filter(c=>!!c),issueData:{code:Ee.invalid_arguments,argumentsError:l}})}function i(s,l){return J5({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Z5(),Oh].filter(c=>!!c),issueData:{code:Ee.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;return this._def.returns instanceof Z1?_r(async(...s)=>{const l=new la([]),c=await this._def.args.parseAsync(s,a).catch(f=>{throw l.addIssue(r(s,f)),l}),u=await o(...c);return await this._def.returns._def.type.parseAsync(u,a).catch(f=>{throw l.addIssue(i(u,f)),l})}):_r((...s)=>{const l=this._def.args.safeParse(s,a);if(!l.success)throw new la([r(s,l.error)]);const c=o(...l.data),u=this._def.returns.safeParse(c,a);if(!u.success)throw new la([i(c,u.error)]);return u.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new c1({...this._def,args:Ja.create(t).rest(Sc.create())})}returns(t){return new c1({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new c1({args:t||Ja.create([]).rest(Sc.create()),returns:n||Sc.create(),typeName:Qe.ZodFunction,...rt(r)})}}class Ph extends ht{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ph.create=(e,t)=>new Ph({getter:e,typeName:Qe.ZodLazy,...rt(t)});class $h extends ht{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Pe(n,{received:n.data,code:Ee.invalid_literal,expected:this._def.value}),nt}return{status:"valid",value:t.data}}get value(){return this._def.value}}$h.create=(e,t)=>new $h({value:e,typeName:Qe.ZodLiteral,...rt(t)});function XA(e,t){return new rl({values:e,typeName:Qe.ZodEnum,...rt(t)})}class rl extends ht{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{expected:_t.joinValues(r),received:n.parsedType,code:Ee.invalid_type}),nt}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{received:n.data,code:Ee.invalid_enum_value,options:r}),nt}return _r(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return rl.create(t)}exclude(t){return rl.create(this.options.filter(n=>!t.includes(n)))}}rl.create=XA;class Fh extends ht{_parse(t){const n=_t.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Le.string&&r.parsedType!==Le.number){const i=_t.objectValues(n);return Pe(r,{expected:_t.joinValues(i),received:r.parsedType,code:Ee.invalid_type}),nt}if(n.indexOf(t.data)===-1){const i=_t.objectValues(n);return Pe(r,{received:r.data,code:Ee.invalid_enum_value,options:i}),nt}return _r(t.data)}get enum(){return this._def.values}}Fh.create=(e,t)=>new Fh({values:e,typeName:Qe.ZodNativeEnum,...rt(t)});class Z1 extends ht{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Le.promise&&n.common.async===!1)return Pe(n,{code:Ee.invalid_type,expected:Le.promise,received:n.parsedType}),nt;const r=n.parsedType===Le.promise?n.data:Promise.resolve(n.data);return _r(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Z1.create=(e,t)=>new Z1({type:e,typeName:Qe.ZodPromise,...rt(t)});class eo extends ht{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null;if(i.type==="preprocess"){const o=i.transform(r.data);return r.common.async?Promise.resolve(o).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}const a={addIssue:o=>{Pe(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?nt:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?nt:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!e2(o))return o;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>e2(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):o);_t.assertNever(i)}}eo.create=(e,t,n)=>new eo({schema:e,typeName:Qe.ZodEffects,effect:t,...rt(n)});eo.createWithPreprocess=(e,t,n)=>new eo({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...rt(n)});class Xo extends ht{_parse(t){return this._getType(t)===Le.undefined?_r(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xo.create=(e,t)=>new Xo({innerType:e,typeName:Qe.ZodOptional,...rt(t)});class Vc extends ht{_parse(t){return this._getType(t)===Le.null?_r(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Vc.create=(e,t)=>new Vc({innerType:e,typeName:Qe.ZodNullable,...rt(t)});class Bh extends ht{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Bh.create=(e,t)=>new Bh({innerType:e,typeName:Qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...rt(t)});class l2 extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return t2(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new la(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new la(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}l2.create=(e,t)=>new l2({innerType:e,typeName:Qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...rt(t)});class c2 extends ht{_parse(t){if(this._getType(t)!==Le.nan){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ee.invalid_type,expected:Le.nan,received:r.parsedType}),nt}return{status:"valid",value:t.data}}}c2.create=e=>new c2({typeName:Qe.ZodNaN,...rt(e)});class WY extends ht{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class qm extends ht{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?nt:a.status==="dirty"?(n.dirty(),DY(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?nt:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new qm({in:t,out:n,typeName:Qe.ZodPipeline})}}rn.lazycreate;var Qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(Qe||(Qe={}));const _n=Ua.create;jc.create;c2.create;Hc.create;n2.create;Q1.create;r2.create;Rh.create;Mh.create;i2.create;Sc.create;as.create;a2.create;ca.create;const I0=rn.create;rn.strictCreate;Ih.create;M6.create;Lh.create;Ja.create;Dh.create;s2.create;Gc.create;c1.create;Ph.create;$h.create;rl.create;Fh.create;Z1.create;eo.create;Xo.create;Vc.create;eo.createWithPreprocess;qm.create;const cy=60,I6=()=>{let e=0;const[t,n]=y.useState(0);return y.useEffect(()=>{t===cy?e=setInterval(()=>n(i=>--i),1e3):t<=0&&e&&clearInterval(e)},[t]),{time:t,handleGetCode:async i=>{if(!/^(?:(?:\+|00)86)?1\d{10}$/.test(i)){Zt.error("错误的手机号码");return}try{await li.getPhoneCode(i),n(cy)}catch(a){Zt.error(a)}}}};function qY(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function YY(...e){return t=>e.forEach(n=>qY(n,t))}const QA=y.forwardRef((e,t)=>{const{children:n,...r}=e,i=y.Children.toArray(n),a=i.find(QY);if(a){const o=a.props.children,s=i.map(l=>l===a?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return y.createElement(u2,ue({},r,{ref:t}),y.isValidElement(o)?y.cloneElement(o,void 0,s):null)}return y.createElement(u2,ue({},r,{ref:t}),n)});QA.displayName="Slot";const u2=y.forwardRef((e,t)=>{const{children:n,...r}=e;return y.isValidElement(n)?y.cloneElement(n,{...ZY(r,n.props),ref:YY(t,n.ref)}):y.Children.count(n)>1?y.Children.only(null):null});u2.displayName="SlotClone";const XY=({children:e})=>y.createElement(y.Fragment,null,e);function QY(e){return y.isValidElement(e)&&e.type===XY}function ZY(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{a(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}const JY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],eX=JY.reduce((e,t)=>{const n=y.forwardRef((r,i)=>{const{asChild:a,...o}=r,s=a?QA:t;return y.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),y.createElement(s,ue({},o,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tX=y.forwardRef((e,t)=>y.createElement(eX.label,ue({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),ZA=tX,nX=Pm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J1=y.forwardRef(({className:e,...t},n)=>b.jsx(ZA,{ref:n,className:ze(nX(),e),...t}));J1.displayName=ZA.displayName;const L0=vY,JA=y.createContext({}),Mn=({...e})=>b.jsx(JA.Provider,{value:{name:e.name},children:b.jsx(xY,{...e})}),Ym=()=>{const e=y.useContext(JA),t=y.useContext(eN),{getFieldState:n,formState:r}=Wm(),i=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},eN=y.createContext({}),mn=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return b.jsx(eN.Provider,{value:{id:r},children:b.jsx("div",{ref:n,className:ze("space-y-2",e),...t})})});mn.displayName="FormItem";const pn=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:i}=Ym();return b.jsx(J1,{ref:n,className:ze(r&&"text-destructive",e),htmlFor:i,...t})});pn.displayName="FormLabel";const gn=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=Ym();return b.jsx(rs,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});gn.displayName="FormControl";const d2=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Ym();return b.jsx("p",{ref:n,id:r,className:ze("text-sm text-muted-foreground",e),...t})});d2.displayName="FormDescription";const vn=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:i,formMessageId:a}=Ym(),o=i?String(i==null?void 0:i.message):t;return o?b.jsx("p",{ref:r,id:a,className:ze("text-sm font-medium text-destructive",e),...n,children:o}):null});vn.displayName="FormMessage";const cn=y.forwardRef(({className:e,type:t,...n},r)=>b.jsx("input",{type:t,className:ze("flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));cn.displayName="Input";const tN="Radio",[rX,nN]=Gr(tN),[iX,aX]=rX(tN),oX=y.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s="on",onCheck:l,...c}=e,[u,d]=y.useState(null),f=Lt(t,g=>d(g)),h=y.useRef(!1),m=u?!!u.closest("form"):!0;return y.createElement(iX,{scope:n,checked:i,disabled:o},y.createElement(gt.button,ue({type:"button",role:"radio","aria-checked":i,"data-state":rN(i),"data-disabled":o?"":void 0,disabled:o,value:s},c,{ref:f,onClick:Ue(e.onClick,g=>{i||l==null||l(),m&&(h.current=g.isPropagationStopped(),h.current||g.stopPropagation())})})),m&&y.createElement(cX,{control:u,bubbles:!h.current,name:r,value:s,checked:i,required:a,disabled:o,style:{transform:"translateX(-100%)"}}))}),sX="RadioIndicator",lX=y.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,a=aX(sX,n);return y.createElement(ar,{present:r||a.checked},y.createElement(gt.span,ue({"data-state":rN(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:t})))}),cX=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,a=y.useRef(null),o=oA(n),s=d6(t);return y.useEffect(()=>{const l=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==n&&d){const f=new Event("click",{bubbles:r});d.call(l,n),l.dispatchEvent(f)}},[o,n,r]),y.createElement("input",ue({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function rN(e){return e?"checked":"unchecked"}const uX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],iN="RadioGroup",[dX,ife]=Gr(iN,[au,nN]),aN=au(),oN=nN(),[fX,hX]=dX(iN),mX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=aN(n),m=b0(c),[g,E]=ru({prop:a,defaultProp:i,onChange:d});return y.createElement(fX,{scope:n,name:r,required:o,disabled:s,value:g,onValueChange:E},y.createElement(h6,ue({asChild:!0},h,{orientation:l,dir:m,loop:u}),y.createElement(gt.div,ue({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},f,{ref:t}))))}),pX="RadioGroupItem",gX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,a=hX(pX,n),o=a.disabled||r,s=aN(n),l=oN(n),c=y.useRef(null),u=Lt(t,c),d=a.value===i.value,f=y.useRef(!1);return y.useEffect(()=>{const h=g=>{uX.includes(g.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",m)}},[]),y.createElement(m6,ue({asChild:!0},s,{focusable:!o,active:d}),y.createElement(oX,ue({disabled:o,required:a.required,checked:d},l,i,{name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:Ue(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:Ue(i.onFocus,()=>{var h;f.current&&((h=c.current)===null||h===void 0||h.click())})})))}),vX=y.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=oN(n);return y.createElement(lX,ue({},i,r,{ref:t}))}),sN=mX,lN=gX,yX=vX,L6=y.forwardRef(({className:e,...t},n)=>b.jsx(sN,{className:ze("grid gap-2",e),...t,ref:n}));L6.displayName=sN.displayName;const zh=y.forwardRef(({className:e,...t},n)=>b.jsx(lN,{ref:n,className:ze("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:b.jsx(yX,{className:"flex items-center justify-center",children:b.jsx(Pw,{className:"h-2.5 w-2.5 fill-current text-current"})})}));zh.displayName=lN.displayName;const cN={nickname:_n().min(2,{message:"请输入用户名"}),password:_n().min(2,{message:"请输入密码."})};function bX({protocolChecked:e=!1}){const[t,n]=di(s=>[s.setUserInfo,s.setAccessToken]),r=Hr(),i=I0({...cN}),a=R0({resolver:M0(i),defaultValues:{nickname:"",password:""}}),o=async s=>{try{const{user:l,access_token:c}=await li.login(s);t(l),n(c),r("/chat")}catch(l){Zt.error(l)}};return b.jsx(L0,{...a,children:b.jsxs("form",{onSubmit:a.handleSubmit(o),className:"mb-4 w-[70%] space-y-3",children:[b.jsx(Mn,{control:a.control,name:"nickname",render:({field:s})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[3.5rem] shrink-0",children:"用户名"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入用户名",...s})})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:a.control,name:"password",render:({field:s})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[3.5rem] shrink-0",children:"密码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入密码",type:"password",...s})})]}),b.jsx(vn,{})]})}),b.jsx(Je,{type:"submit",disabled:!e,className:"w-full",children:"登陆"})]})})}function EX({oauthId:e="",protocolChecked:t=!1}){const{time:n,handleGetCode:r}=I6(),[i,a]=di(u=>[u.setUserInfo,u.setAccessToken]),o=Hr(),s=I0({mobile:_n().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."}),code:_n().min(2,{message:"请输入验证码."})}),l=R0({resolver:M0(s),defaultValues:{mobile:"",code:""}}),c=async u=>{try{const{user:d,access_token:f}=await li.phoneLogin({...u,oauth_id:e,share_openid:localStorage.getItem(yr.ShareOpenId)||""});i(d),a(f),o("/chat")}catch(d){Zt.error(d)}};return b.jsx(L0,{...l,children:b.jsxs("form",{onSubmit:l.handleSubmit(c),className:"mb-4 w-[70%] space-y-3",children:[b.jsx(Mn,{control:l.control,name:"mobile",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[3.5rem] shrink-0",children:"手机号"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入手机号",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"code",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[3.5rem] shrink-0",children:"验证码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入密码",type:"password",...u})}),b.jsx(Je,{type:"button",className:"ml-2 shrink-0",disabled:n>0,onClick:()=>r(l.getValues("mobile")),children:n>0?`${n}s`:"获取验证码"})]}),b.jsx(vn,{})]})}),b.jsx(Je,{type:"submit",disabled:!t,className:"w-full",children:"登陆"})]})})}function xX({children:e}){const[t,n]=di(u=>[u.setUserInfo,u.setAccessToken]),r=Hr(),{time:i,handleGetCode:a}=I6(),[o]=zi(u=>[u.appConfig]),s=I0({mobile:_n().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."}),repassword:_n().min(2,{message:"请输入密码."}),code:o.mobile_verify?_n().min(2,{message:"请输入验证码."}):_n(),...cN}),l=R0({resolver:M0(s),defaultValues:{nickname:"",password:"",mobile:"",repassword:"",code:""}}),c=async u=>{if(u.password!==u.repassword){Zt.error("两次输入的密码不一致");return}try{const{user:d,access_token:f}=await li.register({...dG(u,["repassword"]),share_openid:localStorage.getItem(yr.ShareOpenId)||"",code:o.mobile_verify?u.code:""});t(d),n(f),r("/chat")}catch(d){Zt.error(d)}};return b.jsxs(su,{children:[b.jsx(NA,{asChild:!0,children:e}),b.jsxs(_l,{children:[b.jsx(lu,{children:"注册"}),b.jsx(RA,{children:b.jsx(C6,{asChild:!0,children:b.jsx(L0,{...l,children:b.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-4",children:[b.jsx(Mn,{control:l.control,name:"nickname",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"用户名"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入用户名",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"mobile",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"手机号码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入手机号码",...u})})]}),b.jsx(vn,{})]})}),o.mobile_verify&&b.jsx(Mn,{control:l.control,name:"code",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"验证码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入密码",type:"password",...u})}),b.jsx(Je,{type:"button",className:"ml-2 shrink-0",disabled:i>0,onClick:()=>a(l.getValues("mobile")),children:i>0?`${i}s`:"获取验证码"})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"password",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"密码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入密码",type:"password",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"repassword",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"确认密码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请再次输入密码",type:"password",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Je,{type:"submit",className:"w-full",children:"登陆"})]})})})})]})]})}function TX({children:e}){let t;(u=>{u.OldPassword="1",u.Mobile="2"})(t||(t={}));const[n,r]=y.useState("1"),{time:i,handleGetCode:a}=I6(),[o]=zi(u=>[u.appConfig]),s=y.useMemo(()=>I0({nickname:_n().min(2,{message:"请输入用户名."}),password:_n().min(2,{message:"请输入密码."}),repassword:_n().min(2,{message:"请输入密码."}),code:o.mobile_verify?_n().min(2,{message:"请输入验证码."}):_n(),verify:n==="1"?_n().min(2,{message:"请输入密码."}):_n().refine(u=>/^(?:(?:\+|00)86)?1\d{10}$/.test(u),{message:"错误的手机号码."})}),[n]),l=R0({resolver:M0(s),defaultValues:{nickname:"",password:"",repassword:"",verify:"",code:""}});y.useEffect(()=>{l.setValue("verify","")},[n]);const c=async u=>{try{await li.resetPassword({...u,mobile:n==="2"?u.verify:"",reenteredPassword:n==="1"?u.verify:"",verify_type:Number(n),code:o.mobile_verify?u.code:""}),Zt.success("密码修改成功")}catch(d){Zt.error(d)}};return b.jsxs(su,{children:[b.jsx(NA,{asChild:!0,children:e}),b.jsxs(_l,{children:[b.jsx(lu,{children:"找回密码"}),b.jsxs(L6,{value:n,onValueChange:u=>r(u),className:"flex",children:[b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(zh,{value:"1",id:"r1"}),b.jsx(J1,{htmlFor:"r1",children:"旧密码验证"})]}),b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(zh,{value:"2",id:"r2"}),b.jsx(J1,{htmlFor:"r2",children:"手机号验证"})]})]}),b.jsx(L0,{...l,children:b.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-3",children:[b.jsx(Mn,{control:l.control,name:"nickname",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"用户名"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入用户名",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"verify",render:({field:u})=>n==="1"?b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"原密码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入原密码",type:"password",...u})})]}),b.jsx(vn,{})]}):b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"手机号码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入手机号码",...u})})]}),b.jsx(vn,{})]})}),n==="2"&&o.mobile_verify&&b.jsx(Mn,{control:l.control,name:"code",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"验证码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入密码",type:"password",...u})}),b.jsx(Je,{type:"button",className:"ml-2 shrink-0",disabled:i>0,onClick:()=>a(l.getValues("verify")),children:i>0?`${i} s`:"获取验证码"})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"password",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"密码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入密码",type:"password",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Mn,{control:l.control,name:"repassword",render:({field:u})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[4rem] shrink-0",children:"确认密码"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请再次输入密码",type:"password",...u})})]}),b.jsx(vn,{})]})}),b.jsx(Je,{type:"submit",className:"w-full",children:"修改密码"})]})})]})]})}function _X(){const[e,t]=y.useState(!1),[n,r]=y.useState(!1),[i,a]=y.useState(""),[o,s]=y.useState(!1),[l,c]=y.useState(""),[u,d]=zi(N=>[N.loginType,N.setLoginType]),[f,h]=ww(),m=Hr(),[g,E]=di(N=>[N.setUserInfo,N.setAccessToken]),{isWeixinBrowser:p,weChatLogin:v}=T0(),T=async()=>{if(p){v();return}const N=location.origin+location.pathname,R=await li.getWxQrCode(Ef.WEIXIN_WEB,N);r(!0),a(R.qr_code_url)},C=async()=>{const N=f.get("code");if(N){t(!0);try{s(!0);const R=await li.getUserInfoByCode(p?Ef.WEIXIN:Ef.WEIXIN_WEB,N,localStorage.getItem(yr.ShareOpenId)||"");if(R.oauth_id){c(R.oauth_id);return}g(R.user),E(R.access_token),s(!1),m("/chat")}catch{h("")}}};y.useEffect(()=>{C()},[]),rA(),aA();const O=x6();return b.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[b.jsx(qC,{isPlain:!0}),b.jsxs("div",{className:"flex flex-1 items-center justify-center",children:[b.jsxs("div",{className:"flex w-[32rem] -translate-y-10 rounded-xl border pb-24 pt-10 shadow max-sm:w-[22rem]",children:[b.jsxs(xq,{value:u+"",className:"flex w-full flex-col items-center",onValueChange:N=>d(N),children:[Array.isArray(O.login_type)&&b.jsxs(nA,{className:"mb-10",children:[b.jsx(Y5,{value:Oo.WECHAT,children:"微信扫码登陆"}),b.jsx(Y5,{value:Oo.PASSWORD,children:"账号密码登陆"})]}),b.jsx("img",{src:O.web_logo,className:"mb-4 w-40 rounded-full"}),b.jsxs("div",{className:"text-3xl font-bold",children:[" ",O.name," "]}),b.jsx(Sf,{value:Oo.WECHAT,className:"flex w-full flex-col items-center",children:b.jsx(Je,{className:"mb-4 mt-12 w-[70%]",disabled:!e,onClick:T,children:p?"微信登陆":"微信扫码登录"})}),b.jsx(Sf,{value:Oo.PASSWORD,className:"flex w-full flex-col items-center",children:b.jsx(bX,{protocolChecked:e})}),b.jsx(Sf,{value:Oo.WECHAT_AND_PHONE,className:"flex w-full flex-col items-center",children:l?b.jsx(EX,{oauthId:l,protocolChecked:e}):b.jsxs(Je,{className:"mb-4 mt-12 w-[70%]",disabled:!e,onClick:T,children:[o&&b.jsx(dl,{className:"mr-2 h-4 w-4 animate-spin"}),p?"微信登陆":"微信扫码登录"]})}),b.jsx("div",{className:"flex items-center text-xs",children:b.jsx(hY,{checked:e,onCheckedChange:N=>t(N)})})]}),u===Oo.PASSWORD&&b.jsxs("div",{className:"absolute bottom-3 right-3",children:[b.jsx(xX,{children:b.jsx(Je,{variant:"ghost",children:"注册"})}),b.jsx(TX,{children:b.jsx(Je,{variant:"ghost",children:"找回密码"})})]})]}),b.jsx(mY,{open:n,qrCode:i,handleOpenChange:N=>{r(N)}})]})]})}const uN=y.forwardRef(({className:e,...t},n)=>b.jsx("textarea",{className:ze("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));uN.displayName="Textarea";const wX=({className:e=""})=>b.jsx("svg",{className:e,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2837 26.7243C10.3672 26.7769 10.4638 26.8018 10.5594 26.8018C10.667 26.8018 10.7747 26.7693 10.8662 26.7033L18.9048 20.8659H24.6867C24.9392 20.8659 25.1512 20.6881 25.1854 20.4509L27.1563 6.54144C27.1774 6.39706 27.1264 6.24886 27.0187 6.14464C26.9111 6.04043 26.7569 5.98593 26.6042 6.00314L4.44948 8.26605C4.30762 8.28063 4.17985 8.35139 4.09635 8.46038C4.01184 8.56938 3.98166 8.70707 4.01083 8.83997L7.00793 22.3998C7.05622 22.6216 7.26246 22.7784 7.4999 22.7784H10.9648L10.0714 26.2092C10.0201 26.4059 10.1056 26.6127 10.2837 26.7243ZM12.7662 19.9665C12.8103 19.9892 12.8614 20 12.912 20C12.9689 20 13.0258 19.9859 13.0742 19.9574L17.325 17.4318H20.3825C20.516 17.4318 20.6281 17.3549 20.6462 17.2523L21.6884 11.2343C21.6996 11.1718 21.6726 11.1077 21.6157 11.0626C21.5588 11.0175 21.4772 10.9939 21.3965 11.0014L9.68104 11.9804C9.60603 11.9867 9.53846 12.0173 9.49431 12.0645C9.44962 12.1117 9.43366 12.1712 9.44909 12.2287L11.034 18.0954C11.0595 18.1914 11.1686 18.2593 11.2941 18.2593H13.1264L12.6539 19.7436C12.6268 19.8287 12.672 19.9182 12.7662 19.9665Z",fill:"currentcolor"})});function wl(){const[e,t]=y.useState(!0);return y.useEffect(()=>{t(window.document.body.clientWidth<=600),window.addEventListener("resize",()=>{t(window.document.body.clientWidth<=600)})},[]),e}function SX(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const CX=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Va(e){const t=[];for(let n=0,r=e.length;nNr||e.height>Nr)&&(e.width>Nr&&e.height>Nr?e.width>e.height?(e.height*=Nr/e.width,e.width=Nr):(e.width*=Nr/e.height,e.height=Nr):e.width>Nr?(e.height*=Nr/e.width,e.width=Nr):(e.width*=Nr/e.height,e.height=Nr))}function jh(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function RX(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function MX(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),RX(i)}const Tr=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Tr(n,t)};function IX(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function LX(e){return Va(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function DX(e,t,n){const r=`.${e}:${t}`,i=n.cssText?IX(n):LX(n);return document.createTextNode(`${r}{${i}}`)}function uy(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const a=CX();try{t.className=`${t.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(DX(a,n,r)),t.appendChild(o)}function PX(e,t){uy(e,t,":before"),uy(e,t,":after")}const dy="application/font-woff",fy="image/jpeg",$X={woff:dy,woff2:dy,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:fy,jpeg:fy,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function FX(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function D6(e){const t=FX(e).toLowerCase();return $X[t]||""}function BX(e){return e.split(/,/)[1]}function f2(e){return e.search(/^(data:)/)!==-1}function fN(e,t){return`data:${t};base64,${e}`}async function hN(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(n({res:r,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const kg={};function zX(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function P6(e,t,n){const r=zX(e,t,n.includeQueryParams);if(kg[r]!=null)return kg[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const a=await hN(e,n.fetchRequestInit,({res:o,result:s})=>(t||(t=o.headers.get("Content-Type")||""),BX(s)));i=fN(a,t)}catch(a){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return kg[r]=i,i}async function UX(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):jh(t)}async function jX(e,t){if(e.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,o==null||o.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return jh(s)}const n=e.poster,r=D6(n),i=await P6(n,r,t);return jh(i)}async function HX(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Xm(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function GX(e,t){return Tr(e,HTMLCanvasElement)?UX(e):Tr(e,HTMLVideoElement)?jX(e,t):Tr(e,HTMLIFrameElement)?HX(e):e.cloneNode(!1)}const VX=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function KX(e,t,n){var r,i;let a=[];return VX(e)&&e.assignedNodes?a=Va(e.assignedNodes()):Tr(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=Va(e.contentDocument.body.childNodes):a=Va(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),a.length===0||Tr(e,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Xm(s,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function WX(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):Va(r).forEach(i=>{let a=r.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Tr(e,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(i,a,r.getPropertyPriority(i))})}function qX(e,t){Tr(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Tr(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function YX(e,t){if(Tr(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function XX(e,t){return Tr(t,Element)&&(WX(e,t),PX(e,t),qX(e,t),YX(e,t)),t}async function QX(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;aGX(r,t)).then(r=>KX(e,r,t)).then(r=>XX(e,r)).then(r=>QX(r,t))}const mN=/url\((['"]?)([^'"]+?)\1\)/g,ZX=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,JX=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function eQ(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function tQ(e){const t=[];return e.replace(mN,(n,r,i)=>(t.push(i),n)),t.filter(n=>!f2(n))}async function nQ(e,t,n,r,i){try{const a=n?SX(t,n):t,o=D6(t);let s;if(i){const l=await i(a);s=fN(l,o)}else s=await P6(a,o,r);return e.replace(eQ(t),`$1${s}$3`)}catch{}return e}function rQ(e,{preferredFontFormat:t}){return t?e.replace(JX,n=>{for(;;){const[r,,i]=ZX.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function pN(e){return e.search(mN)!==-1}async function gN(e,t,n){if(!pN(e))return e;const r=rQ(e,n);return tQ(r).reduce((a,o)=>a.then(s=>nQ(s,o,t,n)),Promise.resolve(r))}async function _d(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const a=await gN(i,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function iQ(e,t){await _d("background",e,t)||await _d("background-image",e,t),await _d("mask",e,t)||await _d("mask-image",e,t)}async function aQ(e,t){const n=Tr(e,HTMLImageElement);if(!(n&&!f2(e.src))&&!(Tr(e,SVGImageElement)&&!f2(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await P6(r,D6(r),t);await new Promise((a,o)=>{e.onload=a,e.onerror=o;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function oQ(e,t){const r=Va(e.childNodes).map(i=>vN(i,t));await Promise.all(r).then(()=>e)}async function vN(e,t){Tr(e,Element)&&(await iQ(e,t),await aQ(e,t),await oQ(e,t))}function sQ(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const hy={};async function my(e){let t=hy[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},hy[e]=t,t}async function py(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),hN(s,t.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>n)}function gy(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=a.exec(r);if(l===null){if(l=s.exec(r),l===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(l[0])}return t}async function lQ(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{Va(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,c=my(l).then(u=>py(u,t)).then(u=>gy(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?s+=1:i.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(a){const o=e.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&r.push(my(i.href).then(s=>py(s,t)).then(s=>gy(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{Va(i.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),n))}function cQ(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>pN(t.style.getPropertyValue("src")))}async function uQ(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Va(e.ownerDocument.styleSheets),r=await lQ(n,t);return cQ(r)}async function dQ(e,t){const n=await uQ(e,t);return(await Promise.all(n.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return gN(i.cssText,a,t)}))).join(` +`)}async function fQ(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await dQ(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function $6(e,t={}){const{width:n,height:r}=dN(e,t),i=await Xm(e,t,!0);return await fQ(i,t),await vN(i,t),sQ(i,t),await MX(i,n,r)}async function hQ(e,t={}){const{width:n,height:r}=dN(e,t),i=await $6(e,t),a=await jh(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||kX(),c=t.canvasWidth||n,u=t.canvasHeight||r;return o.width=c*l,o.height=u*l,t.skipAutoScale||OX(o),o.style.width=`${c}`,o.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function yN(e,t={}){return(await hQ(e,t)).toDataURL()}var mQ=Object.defineProperty,Hh=Object.getOwnPropertySymbols,bN=Object.prototype.hasOwnProperty,EN=Object.prototype.propertyIsEnumerable,vy=(e,t,n)=>t in e?mQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yy=(e,t)=>{for(var n in t||(t={}))bN.call(t,n)&&vy(e,n,t[n]);if(Hh)for(var n of Hh(t))EN.call(t,n)&&vy(e,n,t[n]);return e},pQ=(e,t)=>{var n={};for(var r in e)bN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hh)for(var r of Hh(e))t.indexOf(r)<0&&EN.call(e,r)&&(n[r]=e[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT - */var rl;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let m=0;m7)throw new RangeError("Invalid value");let m,g;for(m=u;;m++){const T=t.getNumDataCodewords(m,c)*8,C=s.getTotalBits(l,m);if(C<=T){g=C;break}if(m>=d)throw new RangeError("Data too long")}for(const T of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&g<=t.getNumDataCodewords(m,T)*8&&(c=T);let b=[];for(const T of l){r(T.mode.modeBits,4,b),r(T.numChars,T.mode.numCharCountBits(m),b);for(const C of T.getData())b.push(C)}a(b.length==g);const p=t.getNumDataCodewords(m,c)*8;a(b.length<=p),r(0,Math.min(4,p-b.length),b),r(0,(8-b.length%8)%8,b),a(b.length%8==0);for(let T=236;b.lengthv[C>>>3]|=T<<7-(C&7)),new t(m,c,v,f)}getModule(l,c){return 0<=l&&l>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,i(d,f));this.setFunctionModule(8,7,i(d,6)),this.setFunctionModule(8,8,i(d,7)),this.setFunctionModule(7,8,i(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,i(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,i(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,i(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=i(c,u),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,m=c+u;0<=h&&h{(T!=g-f||R>=m)&&v.push(C[T])});return a(v.length==h),v}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d>>3],7-(c&7)),c++)}}a(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c5&&l++):(this.finderPenaltyAddHistory(m,g),h||(l+=this.finderPenaltyCountPatterns(g)*t.PENALTY_N3),h=this.modules[f][b],m=1);l+=this.finderPenaltyTerminateAndCount(h,m,g)*t.PENALTY_N3}for(let f=0;f5&&l++):(this.finderPenaltyAddHistory(m,g),h||(l+=this.finderPenaltyCountPatterns(g)*t.PENALTY_N3),h=this.modules[b][f],m=1);l+=this.finderPenaltyTerminateAndCount(h,m,g)*t.PENALTY_N3}for(let f=0;fh+(m?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,m)=>u[m]^=t.reedSolomonMultiply(h,f))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1)}function i(l,c){return(l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const o=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new o(o.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!o.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u=1<{(t=>{const n=class{constructor(i,a){this.ordinal=i,this.formatBits=a}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r})(e.QrCode||(e.QrCode={}))})(rl||(rl={}));(e=>{(t=>{const n=class{constructor(i,a){this.modeBits=i,this.numBitsCharCount=a}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r})(e.QrSegment||(e.QrSegment={}))})(rl||(rl={}));var Bu=rl;/** + */var il;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let m=0;m7)throw new RangeError("Invalid value");let m,g;for(m=u;;m++){const T=t.getNumDataCodewords(m,c)*8,C=s.getTotalBits(l,m);if(C<=T){g=C;break}if(m>=d)throw new RangeError("Data too long")}for(const T of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&g<=t.getNumDataCodewords(m,T)*8&&(c=T);let E=[];for(const T of l){r(T.mode.modeBits,4,E),r(T.numChars,T.mode.numCharCountBits(m),E);for(const C of T.getData())E.push(C)}a(E.length==g);const p=t.getNumDataCodewords(m,c)*8;a(E.length<=p),r(0,Math.min(4,p-E.length),E),r(0,(8-E.length%8)%8,E),a(E.length%8==0);for(let T=236;E.lengthv[C>>>3]|=T<<7-(C&7)),new t(m,c,v,f)}getModule(l,c){return 0<=l&&l>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,i(d,f));this.setFunctionModule(8,7,i(d,6)),this.setFunctionModule(8,8,i(d,7)),this.setFunctionModule(7,8,i(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,i(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,i(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,i(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=i(c,u),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,m=c+u;0<=h&&h{(T!=g-f||O>=m)&&v.push(C[T])});return a(v.length==h),v}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d>>3],7-(c&7)),c++)}}a(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c5&&l++):(this.finderPenaltyAddHistory(m,g),h||(l+=this.finderPenaltyCountPatterns(g)*t.PENALTY_N3),h=this.modules[f][E],m=1);l+=this.finderPenaltyTerminateAndCount(h,m,g)*t.PENALTY_N3}for(let f=0;f5&&l++):(this.finderPenaltyAddHistory(m,g),h||(l+=this.finderPenaltyCountPatterns(g)*t.PENALTY_N3),h=this.modules[E][f],m=1);l+=this.finderPenaltyTerminateAndCount(h,m,g)*t.PENALTY_N3}for(let f=0;fh+(m?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,m)=>u[m]^=t.reedSolomonMultiply(h,f))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1)}function i(l,c){return(l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const o=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new o(o.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!o.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u=1<{(t=>{const n=class{constructor(i,a){this.ordinal=i,this.formatBits=a}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r})(e.QrCode||(e.QrCode={}))})(il||(il={}));(e=>{(t=>{const n=class{constructor(i,a){this.modeBits=i,this.numBitsCharCount=a}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r})(e.QrSegment||(e.QrSegment={}))})(il||(il={}));var Wu=il;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var rQ={L:Bu.QrCode.Ecc.LOW,M:Bu.QrCode.Ecc.MEDIUM,Q:Bu.QrCode.Ecc.QUARTILE,H:Bu.QrCode.Ecc.HIGH},iQ=128,aQ="L",oQ="#FFFFFF",sQ="#000000",lQ=!1,dN=4,cQ=.1;function uQ(e,t=0){const n=[];return e.forEach(function(r,i){let a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push(`M${a+t} ${i+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push(`M${s+t},${i+t} h1v1H${s+t}z`):n.push(`M${a+t},${i+t} h${s+1-a}v1H${a+t}z`);return}o&&a===null&&(a=s)})}),n.join("")}function dQ(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((i,a)=>a=t.x+t.w?i:!1))}function fQ(e,t,n,r){if(r==null)return null;const i=n?dN:0,a=e.length+i*2,o=Math.floor(t*cQ),s=a/t,l=(r.width||o)*s,c=(r.height||o)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let h=Math.floor(u),m=Math.floor(d),g=Math.ceil(l+u-h),b=Math.ceil(c+d-m);f={x:h,y:m,w:g,h:b}}return{x:u,y:d,h:c,w:l,excavation:f}}var hQ=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function k8(e){const t=e,{value:n,size:r=iQ,level:i=aQ,bgColor:a=oQ,fgColor:o=sQ,includeMargin:s=lQ,style:l,imageSettings:c}=t,u=nQ(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=c==null?void 0:c.src,f=y.useRef(null),h=y.useRef(null),[m,g]=y.useState(!1);y.useEffect(()=>{if(f.current!=null){const v=f.current,T=v.getContext("2d");if(!T)return;let C=Bu.QrCode.encodeText(n,rQ[i]).getModules();const R=s?dN:0,N=C.length+R*2,O=fQ(C,r,s,c),$=h.current,M=O!=null&&$!==null&&$.complete&&$.naturalHeight!==0&&$.naturalWidth!==0;M&&O.excavation!=null&&(C=dQ(C,O.excavation));const L=window.devicePixelRatio||1;v.height=v.width=r*L;const X=r/N*L;T.scale(X,X),T.fillStyle=a,T.fillRect(0,0,N,N),T.fillStyle=o,hQ?T.fill(new Path2D(uQ(C,R))):C.forEach(function(Z,Q){Z.forEach(function(K,V){K&&T.fillRect(V+R,Q+R,1,1)})}),M&&T.drawImage($,O.x+R,O.y+R,O.w,O.h)}}),y.useEffect(()=>{g(!1)},[d]);const b=cy({height:r,width:r},l);let p=null;return d!=null&&(p=We.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{g(!0)},ref:h})),We.createElement(We.Fragment,null,We.createElement("canvas",cy({style:b,height:r,width:r,ref:f},u)),p)}var fN={exports:{}};(function(e,t){(function(n,r){r()})(Bl,function(){function n(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function r(c,u,d){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,d)},f.onerror=function(){console.error("could not download file")},f.send()}function i(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Bl=="object"&&Bl.global===Bl?Bl:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,u,d){var f=o.URL||o.webkitURL,h=document.createElement("a");u=u||c.name||"download",h.download=u,h.rel="noopener",typeof c=="string"?(h.href=c,h.origin===location.origin?a(h):i(h.href)?r(c,u,d):a(h,h.target="_blank")):(h.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){a(h)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,d){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,d),u);else if(i(c))r(c,u,d);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){a(f)})}}:function(c,u,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return r(c,u,d);var h=c.type==="application/octet-stream",m=/constructor/i.test(o.HTMLElement)||o.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||h&&m||s)&&typeof FileReader<"u"){var b=new FileReader;b.onloadend=function(){var T=b.result;T=g?T:T.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=T:location=T,f=null},b.readAsDataURL(c)}else{var p=o.URL||o.webkitURL,v=p.createObjectURL(c);f?f.location=v:location.href=v,f=null,setTimeout(function(){p.revokeObjectURL(v)},4e4)}});o.saveAs=l.saveAs=l,e.exports=l})})(fN);var hN=fN.exports;function mQ(e,[t,n]){return Math.min(n,Math.max(t,e))}function pQ(e,t){return y.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const mN="ScrollArea",[pN,zde]=jr(mN),[gQ,ui]=pN(mN),vQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=y.useState(null),[c,u]=y.useState(null),[d,f]=y.useState(null),[h,m]=y.useState(null),[g,b]=y.useState(null),[p,v]=y.useState(0),[T,C]=y.useState(0),[R,N]=y.useState(!1),[O,$]=y.useState(!1),M=Lt(t,X=>l(X)),L=l0(i);return y.createElement(gQ,{scope:n,type:r,dir:L,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:R,onScrollbarXEnabledChange:N,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:O,onScrollbarYEnabledChange:$,onCornerWidthChange:v,onCornerHeightChange:C},y.createElement(pt.div,ue({dir:L},o,{ref:M,style:{position:"relative",["--radix-scroll-area-corner-width"]:p+"px",["--radix-scroll-area-corner-height"]:T+"px",...e.style}})))}),yQ="ScrollAreaViewport",bQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...i}=e,a=ui(yQ,n),o=y.useRef(null),s=Lt(t,o,a.onViewportChange);return y.createElement(y.Fragment,null,y.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),y.createElement(pt.div,ue({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),y.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),oo="ScrollAreaScrollbar",gN=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ui(oo,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?y.createElement(EQ,ue({},r,{ref:t,forceMount:n})):i.type==="scroll"?y.createElement(TQ,ue({},r,{ref:t,forceMount:n})):i.type==="auto"?y.createElement(vN,ue({},r,{ref:t,forceMount:n})):i.type==="always"?y.createElement(O8,ue({},r,{ref:t})):null}),EQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ui(oo,e.__scopeScrollArea),[a,o]=y.useState(!1);return y.useEffect(()=>{const s=i.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),o(!0)},u=()=>{l=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[i.scrollArea,i.scrollHideDelay]),y.createElement(ir,{present:n||a},y.createElement(vN,ue({"data-state":a?"visible":"hidden"},r,{ref:t})))}),TQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ui(oo,e.__scopeScrollArea),a=e.orientation==="horizontal",o=Km(()=>l("SCROLL_END"),100),[s,l]=pQ("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,i.scrollHideDelay,l]),y.useEffect(()=>{const c=i.viewport,u=a?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const h=c[u];d!==h&&(l("SCROLL"),o()),d=h};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[i.viewport,a,l,o]),y.createElement(ir,{present:n||s!=="hidden"},y.createElement(O8,ue({"data-state":s==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:Ue(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ue(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),vN=y.forwardRef((e,t)=>{const n=ui(oo,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=y.useState(!1),s=e.orientation==="horizontal",l=Km(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,i=ui(oo,e.__scopeScrollArea),a=y.useRef(null),o=y.useRef(0),[s,l]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=TN(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function d(f,h){return kQ(f,o.current,s,h)}return n==="horizontal"?y.createElement(xQ,ue({},u,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollLeft,h=uy(f,s,i.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=d(f,i.dir))}})):n==="vertical"?y.createElement(_Q,ue({},u,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollTop,h=uy(f,s);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=d(f))}})):null}),xQ=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=ui(oo,e.__scopeScrollArea),[o,s]=y.useState(),l=y.useRef(null),c=Lt(t,l,a.onScrollbarXChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),y.createElement(bN,ue({"data-orientation":"horizontal"},i,{ref:c,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:Vm(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),_N(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Rh(o.paddingLeft),paddingEnd:Rh(o.paddingRight)}})}}))}),_Q=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=ui(oo,e.__scopeScrollArea),[o,s]=y.useState(),l=y.useRef(null),c=Lt(t,l,a.onScrollbarYChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),y.createElement(bN,ue({"data-orientation":"vertical"},i,{ref:c,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:Vm(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),_N(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Rh(o.paddingTop),paddingEnd:Rh(o.paddingBottom)}})}}))}),[wQ,yN]=pN(oo),bN=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,h=ui(oo,n),[m,g]=y.useState(null),b=Lt(t,M=>g(M)),p=y.useRef(null),v=y.useRef(""),T=h.viewport,C=r.content-r.viewport,R=Cn(u),N=Cn(l),O=Km(d,10);function $(M){if(p.current){const L=M.clientX-p.current.left,X=M.clientY-p.current.top;c({x:L,y:X})}}return y.useEffect(()=>{const M=L=>{const X=L.target;(m==null?void 0:m.contains(X))&&R(L,C)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[T,m,C,R]),y.useEffect(N,[r,N]),Bc(m,O),Bc(h.content,O),y.createElement(wQ,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:Cn(a),onThumbPointerUp:Cn(o),onThumbPositionChange:N,onThumbPointerDown:Cn(s)},y.createElement(pt.div,ue({},f,{ref:b,style:{position:"absolute",...f.style},onPointerDown:Ue(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),p.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(M))}),onPointerMove:Ue(e.onPointerMove,$),onPointerUp:Ue(e.onPointerUp,M=>{const L=M.target;L.hasPointerCapture(M.pointerId)&&L.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=v.current,p.current=null})})))}),o2="ScrollAreaThumb",SQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yN(o2,e.__scopeScrollArea);return y.createElement(ir,{present:n||i.hasThumb},y.createElement(CQ,ue({ref:t},r)))}),CQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=ui(o2,n),o=yN(o2,n),{onThumbPositionChange:s}=o,l=Lt(t,d=>o.onThumbChange(d)),c=y.useRef(),u=Km(()=>{c.current&&(c.current(),c.current=void 0)},100);return y.useEffect(()=>{const d=a.viewport;if(d){const f=()=>{if(u(),!c.current){const h=OQ(d,s);c.current=h,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,u,s]),y.createElement(pt.div,ue({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ue(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),m=d.clientX-h.left,g=d.clientY-h.top;o.onThumbPointerDown({x:m,y:g})}),onPointerUp:Ue(e.onPointerUp,o.onThumbPointerUp)}))}),EN="ScrollAreaCorner",AQ=y.forwardRef((e,t)=>{const n=ui(EN,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?y.createElement(NQ,ue({},e,{ref:t})):null}),NQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=ui(EN,n),[a,o]=y.useState(0),[s,l]=y.useState(0),c=!!(a&&s);return Bc(i.scrollbarX,()=>{var u;const d=((u=i.scrollbarX)===null||u===void 0?void 0:u.offsetHeight)||0;i.onCornerHeightChange(d),l(d)}),Bc(i.scrollbarY,()=>{var u;const d=((u=i.scrollbarY)===null||u===void 0?void 0:u.offsetWidth)||0;i.onCornerWidthChange(d),o(d)}),c?y.createElement(pt.div,ue({},r,{ref:t,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Rh(e){return e?parseInt(e,10):0}function TN(e,t){const n=e/t;return isNaN(n)?0:n}function Vm(e){const t=TN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function kQ(e,t,n,r="ltr"){const i=Vm(n),a=i/2,o=t||a,s=i-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return xN([l,c],d)(e)}function uy(e,t,n="ltr"){const r=Vm(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,o]:[o*-1,0],c=mQ(e,l);return xN([0,o],[0,s])(c)}function xN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function _N(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Km(e,t){const n=Cn(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Bc(e,t){const n=Cn(t);Jo(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}const wN=vQ,RQ=bQ,IQ=AQ,x0=y.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(wN,{ref:r,className:ze("relative overflow-hidden",e),...n,children:[x.jsx(RQ,{className:"h-full w-full rounded-[inherit]",children:t}),x.jsx(SN,{}),x.jsx(IQ,{})]}));x0.displayName=wN.displayName;const SN=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>x.jsx(gN,{ref:r,orientation:t,className:ze("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:x.jsx(SQ,{className:"relative flex-1 rounded-full bg-border"})}));SN.displayName=gN.displayName;var CN={exports:{}};/*! + */var gQ={L:Wu.QrCode.Ecc.LOW,M:Wu.QrCode.Ecc.MEDIUM,Q:Wu.QrCode.Ecc.QUARTILE,H:Wu.QrCode.Ecc.HIGH},vQ=128,yQ="L",bQ="#FFFFFF",EQ="#000000",xQ=!1,xN=4,TQ=.1;function _Q(e,t=0){const n=[];return e.forEach(function(r,i){let a=null;r.forEach(function(o,s){if(!o&&a!==null){n.push(`M${a+t} ${i+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!o)return;a===null?n.push(`M${s+t},${i+t} h1v1H${s+t}z`):n.push(`M${a+t},${i+t} h${s+1-a}v1H${a+t}z`);return}o&&a===null&&(a=s)})}),n.join("")}function wQ(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((i,a)=>a=t.x+t.w?i:!1))}function SQ(e,t,n,r){if(r==null)return null;const i=n?xN:0,a=e.length+i*2,o=Math.floor(t*TQ),s=a/t,l=(r.width||o)*s,c=(r.height||o)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let f=null;if(r.excavate){let h=Math.floor(u),m=Math.floor(d),g=Math.ceil(l+u-h),E=Math.ceil(c+d-m);f={x:h,y:m,w:g,h:E}}return{x:u,y:d,h:c,w:l,excavation:f}}var CQ=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function F6(e){const t=e,{value:n,size:r=vQ,level:i=yQ,bgColor:a=bQ,fgColor:o=EQ,includeMargin:s=xQ,style:l,imageSettings:c}=t,u=pQ(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=c==null?void 0:c.src,f=y.useRef(null),h=y.useRef(null),[m,g]=y.useState(!1);y.useEffect(()=>{if(f.current!=null){const v=f.current,T=v.getContext("2d");if(!T)return;let C=Wu.QrCode.encodeText(n,gQ[i]).getModules();const O=s?xN:0,N=C.length+O*2,R=SQ(C,r,s,c),D=h.current,I=R!=null&&D!==null&&D.complete&&D.naturalHeight!==0&&D.naturalWidth!==0;I&&R.excavation!=null&&(C=wQ(C,R.excavation));const L=window.devicePixelRatio||1;v.height=v.width=r*L;const X=r/N*L;T.scale(X,X),T.fillStyle=a,T.fillRect(0,0,N,N),T.fillStyle=o,CQ?T.fill(new Path2D(_Q(C,O))):C.forEach(function(Z,Q){Z.forEach(function(K,V){K&&T.fillRect(V+O,Q+O,1,1)})}),I&&T.drawImage(D,R.x+O,R.y+O,R.w,R.h)}}),y.useEffect(()=>{g(!1)},[d]);const E=yy({height:r,width:r},l);let p=null;return d!=null&&(p=He.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{g(!0)},ref:h})),He.createElement(He.Fragment,null,He.createElement("canvas",yy({style:E,height:r,width:r,ref:f},u)),p)}var TN={exports:{}};(function(e,t){(function(n,r){r()})(Gl,function(){function n(c,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function r(c,u,d){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){l(f.response,u,d)},f.onerror=function(){console.error("could not download file")},f.send()}function i(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Gl=="object"&&Gl.global===Gl?Gl:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,u,d){var f=o.URL||o.webkitURL,h=document.createElement("a");u=u||c.name||"download",h.download=u,h.rel="noopener",typeof c=="string"?(h.href=c,h.origin===location.origin?a(h):i(h.href)?r(c,u,d):a(h,h.target="_blank")):(h.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(h.href)},4e4),setTimeout(function(){a(h)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,d){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,d),u);else if(i(c))r(c,u,d);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){a(f)})}}:function(c,u,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return r(c,u,d);var h=c.type==="application/octet-stream",m=/constructor/i.test(o.HTMLElement)||o.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||h&&m||s)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var T=E.result;T=g?T:T.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=T:location=T,f=null},E.readAsDataURL(c)}else{var p=o.URL||o.webkitURL,v=p.createObjectURL(c);f?f.location=v:location.href=v,f=null,setTimeout(function(){p.revokeObjectURL(v)},4e4)}});o.saveAs=l.saveAs=l,e.exports=l})})(TN);var _N=TN.exports;function AQ(e,[t,n]){return Math.min(n,Math.max(t,e))}function NQ(e,t){return y.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const wN="ScrollArea",[SN,afe]=Gr(wN),[kQ,hi]=SN(wN),OQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=y.useState(null),[c,u]=y.useState(null),[d,f]=y.useState(null),[h,m]=y.useState(null),[g,E]=y.useState(null),[p,v]=y.useState(0),[T,C]=y.useState(0),[O,N]=y.useState(!1),[R,D]=y.useState(!1),I=Lt(t,X=>l(X)),L=b0(i);return y.createElement(kQ,{scope:n,type:r,dir:L,scrollHideDelay:a,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:m,scrollbarXEnabled:O,onScrollbarXEnabledChange:N,scrollbarY:g,onScrollbarYChange:E,scrollbarYEnabled:R,onScrollbarYEnabledChange:D,onCornerWidthChange:v,onCornerHeightChange:C},y.createElement(gt.div,ue({dir:L},o,{ref:I,style:{position:"relative",["--radix-scroll-area-corner-width"]:p+"px",["--radix-scroll-area-corner-height"]:T+"px",...e.style}})))}),RQ="ScrollAreaViewport",MQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,...i}=e,a=hi(RQ,n),o=y.useRef(null),s=Lt(t,o,a.onViewportChange);return y.createElement(y.Fragment,null,y.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),y.createElement(gt.div,ue({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style}}),y.createElement("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),co="ScrollAreaScrollbar",CN=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=hi(co,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?y.createElement(IQ,ue({},r,{ref:t,forceMount:n})):i.type==="scroll"?y.createElement(LQ,ue({},r,{ref:t,forceMount:n})):i.type==="auto"?y.createElement(AN,ue({},r,{ref:t,forceMount:n})):i.type==="always"?y.createElement(B6,ue({},r,{ref:t})):null}),IQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=hi(co,e.__scopeScrollArea),[a,o]=y.useState(!1);return y.useEffect(()=>{const s=i.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),o(!0)},u=()=>{l=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[i.scrollArea,i.scrollHideDelay]),y.createElement(ar,{present:n||a},y.createElement(AN,ue({"data-state":a?"visible":"hidden"},r,{ref:t})))}),LQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=hi(co,e.__scopeScrollArea),a=e.orientation==="horizontal",o=Zm(()=>l("SCROLL_END"),100),[s,l]=NQ("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,i.scrollHideDelay,l]),y.useEffect(()=>{const c=i.viewport,u=a?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const h=c[u];d!==h&&(l("SCROLL"),o()),d=h};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[i.viewport,a,l,o]),y.createElement(ar,{present:n||s!=="hidden"},y.createElement(B6,ue({"data-state":s==="hidden"?"hidden":"visible"},r,{ref:t,onPointerEnter:Ue(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ue(e.onPointerLeave,()=>l("POINTER_LEAVE"))})))}),AN=y.forwardRef((e,t)=>{const n=hi(co,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=y.useState(!1),s=e.orientation==="horizontal",l=Zm(()=>{if(n.viewport){const c=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,i=hi(co,e.__scopeScrollArea),a=y.useRef(null),o=y.useRef(0),[s,l]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=RN(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:f=>o.current=f};function d(f,h){return jQ(f,o.current,s,h)}return n==="horizontal"?y.createElement(DQ,ue({},u,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollLeft,h=by(f,s,i.dir);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollLeft=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollLeft=d(f,i.dir))}})):n==="vertical"?y.createElement(PQ,ue({},u,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const f=i.viewport.scrollTop,h=by(f,s);a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:f=>{i.viewport&&(i.viewport.scrollTop=f)},onDragScroll:f=>{i.viewport&&(i.viewport.scrollTop=d(f))}})):null}),DQ=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=hi(co,e.__scopeScrollArea),[o,s]=y.useState(),l=y.useRef(null),c=Lt(t,l,a.onScrollbarXChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),y.createElement(kN,ue({"data-orientation":"horizontal"},i,{ref:c,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:Qm(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),IN(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Gh(o.paddingLeft),paddingEnd:Gh(o.paddingRight)}})}}))}),PQ=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=hi(co,e.__scopeScrollArea),[o,s]=y.useState(),l=y.useRef(null),c=Lt(t,l,a.onScrollbarYChange);return y.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),y.createElement(kN,ue({"data-orientation":"vertical"},i,{ref:c,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:Qm(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(a.viewport){const f=a.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),IN(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Gh(o.paddingTop),paddingEnd:Gh(o.paddingBottom)}})}}))}),[$Q,NN]=SN(co),kN=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,h=hi(co,n),[m,g]=y.useState(null),E=Lt(t,I=>g(I)),p=y.useRef(null),v=y.useRef(""),T=h.viewport,C=r.content-r.viewport,O=Rn(u),N=Rn(l),R=Zm(d,10);function D(I){if(p.current){const L=I.clientX-p.current.left,X=I.clientY-p.current.top;c({x:L,y:X})}}return y.useEffect(()=>{const I=L=>{const X=L.target;(m==null?void 0:m.contains(X))&&O(L,C)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[T,m,C,O]),y.useEffect(N,[r,N]),Kc(m,R),Kc(h.content,R),y.createElement($Q,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:Rn(a),onThumbPointerUp:Rn(o),onThumbPositionChange:N,onThumbPointerDown:Rn(s)},y.createElement(gt.div,ue({},f,{ref:E,style:{position:"absolute",...f.style},onPointerDown:Ue(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),p.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(I))}),onPointerMove:Ue(e.onPointerMove,D),onPointerUp:Ue(e.onPointerUp,I=>{const L=I.target;L.hasPointerCapture(I.pointerId)&&L.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=v.current,p.current=null})})))}),h2="ScrollAreaThumb",FQ=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=NN(h2,e.__scopeScrollArea);return y.createElement(ar,{present:n||i.hasThumb},y.createElement(BQ,ue({ref:t},r)))}),BQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=hi(h2,n),o=NN(h2,n),{onThumbPositionChange:s}=o,l=Lt(t,d=>o.onThumbChange(d)),c=y.useRef(),u=Zm(()=>{c.current&&(c.current(),c.current=void 0)},100);return y.useEffect(()=>{const d=a.viewport;if(d){const f=()=>{if(u(),!c.current){const h=HQ(d,s);c.current=h,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,u,s]),y.createElement(gt.div,ue({"data-state":o.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ue(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),m=d.clientX-h.left,g=d.clientY-h.top;o.onThumbPointerDown({x:m,y:g})}),onPointerUp:Ue(e.onPointerUp,o.onThumbPointerUp)}))}),ON="ScrollAreaCorner",zQ=y.forwardRef((e,t)=>{const n=hi(ON,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?y.createElement(UQ,ue({},e,{ref:t})):null}),UQ=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=hi(ON,n),[a,o]=y.useState(0),[s,l]=y.useState(0),c=!!(a&&s);return Kc(i.scrollbarX,()=>{var u;const d=((u=i.scrollbarX)===null||u===void 0?void 0:u.offsetHeight)||0;i.onCornerHeightChange(d),l(d)}),Kc(i.scrollbarY,()=>{var u;const d=((u=i.scrollbarY)===null||u===void 0?void 0:u.offsetWidth)||0;i.onCornerWidthChange(d),o(d)}),c?y.createElement(gt.div,ue({},r,{ref:t,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Gh(e){return e?parseInt(e,10):0}function RN(e,t){const n=e/t;return isNaN(n)?0:n}function Qm(e){const t=RN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function jQ(e,t,n,r="ltr"){const i=Qm(n),a=i/2,o=t||a,s=i-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return MN([l,c],d)(e)}function by(e,t,n="ltr"){const r=Qm(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,l=n==="ltr"?[0,o]:[o*-1,0],c=AQ(e,l);return MN([0,o],[0,s])(c)}function MN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function IN(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Zm(e,t){const n=Rn(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Kc(e,t){const n=Rn(t);ns(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}const LN=OQ,GQ=MQ,VQ=zQ,D0=y.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(LN,{ref:r,className:ze("relative overflow-hidden",e),...n,children:[b.jsx(GQ,{className:"h-full w-full rounded-[inherit]",children:t}),b.jsx(DN,{}),b.jsx(VQ,{})]}));D0.displayName=LN.displayName;const DN=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>b.jsx(CN,{ref:r,orientation:t,className:ze("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:b.jsx(FQ,{className:"relative flex-1 rounded-full bg-border"})}));DN.displayName=CN.displayName;var PN={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=K?Q:""+Array(K+1-ne.length).join(V)+Q},C={s:T,z:function(Q){var K=-Q.utcOffset(),V=Math.abs(K),ne=Math.floor(V/60),B=V%60;return(K<=0?"+":"-")+T(ne,2,"0")+":"+T(B,2,"0")},m:function Q(K,V){if(K.date()1)return Q(D[0])}else{var A=K.name;N[A]=K,B=A}return!ne&&B&&(R=B),B||!ne&&R},M=function(Q,K){if(O(Q))return Q.clone();var V=typeof K=="object"?K:{};return V.date=Q,V.args=arguments,new X(V)},L=C;L.l=$,L.i=O,L.w=function(Q,K){return M(Q,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var X=function(){function Q(V){this.$L=$(V.locale,null,!0),this.parse(V)}var K=Q.prototype;return K.parse=function(V){this.$d=function(ne){var B=ne.date,w=ne.utc;if(B===null)return new Date(NaN);if(L.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var D=B.match(b);if(D){var A=D[2]-1||0,W=(D[7]||"0").substring(0,3);return w?new Date(Date.UTC(D[1],A,D[3]||1,D[4]||0,D[5]||0,D[6]||0,W)):new Date(D[1],A,D[3]||1,D[4]||0,D[5]||0,D[6]||0,W)}}return new Date(B)}(V),this.$x=V.x||{},this.init()},K.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},K.$utils=function(){return L},K.isValid=function(){return this.$d.toString()!==g},K.isSame=function(V,ne){var B=M(V);return this.startOf(ne)<=B&&B<=this.endOf(ne)},K.isAfter=function(V,ne){return M(V)i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i=K?Q:""+Array(K+1-ne.length).join(V)+Q},C={s:T,z:function(Q){var K=-Q.utcOffset(),V=Math.abs(K),ne=Math.floor(V/60),B=V%60;return(K<=0?"+":"-")+T(ne,2,"0")+":"+T(B,2,"0")},m:function Q(K,V){if(K.date()1)return Q(P[0])}else{var A=K.name;N[A]=K,B=A}return!ne&&B&&(O=B),B||!ne&&O},I=function(Q,K){if(R(Q))return Q.clone();var V=typeof K=="object"?K:{};return V.date=Q,V.args=arguments,new X(V)},L=C;L.l=D,L.i=R,L.w=function(Q,K){return I(Q,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var X=function(){function Q(V){this.$L=D(V.locale,null,!0),this.parse(V)}var K=Q.prototype;return K.parse=function(V){this.$d=function(ne){var B=ne.date,w=ne.utc;if(B===null)return new Date(NaN);if(L.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var P=B.match(E);if(P){var A=P[2]-1||0,W=(P[7]||"0").substring(0,3);return w?new Date(Date.UTC(P[1],A,P[3]||1,P[4]||0,P[5]||0,P[6]||0,W)):new Date(P[1],A,P[3]||1,P[4]||0,P[5]||0,P[6]||0,W)}}return new Date(B)}(V),this.$x=V.x||{},this.init()},K.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},K.$utils=function(){return L},K.isValid=function(){return this.$d.toString()!==g},K.isSame=function(V,ne){var B=I(V);return this.startOf(ne)<=B&&B<=this.endOf(ne)},K.isAfter=function(V,ne){return I(V)i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */var $Q=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const NN=wr($Q);function n1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fy(e.position):"start"in e||"end"in e?fy(e):"line"in e||"column"in e?s2(e):""}function s2(e){return hy(e&&e.line)+":"+hy(e&&e.column)}function fy(e){return s2(e&&e.start)+"-"+s2(e&&e.end)}function hy(e){return e&&typeof e=="number"?e:1}class di extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=n1(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}di.prototype.file="";di.prototype.name="";di.prototype.reason="";di.prototype.message="";di.prototype.stack="";di.prototype.fatal=null;di.prototype.column=null;di.prototype.line=null;di.prototype.source=null;di.prototype.ruleId=null;di.prototype.position=null;const Ki={basename:FQ,dirname:BQ,extname:zQ,join:UQ,sep:"/"};function FQ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_0(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function BQ(e){if(_0(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function zQ(e){_0(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function UQ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jQ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function _0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const GQ={cwd:VQ};function VQ(){return"/"}function l2(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function KQ(e){if(typeof e=="string")e=new URL(e);else if(!l2(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 WQ(e)}function WQ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||gf.call(t,i)},Ey=function(t,n){gy&&n.name==="__proto__"?gy(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ty=function(t,n){if(n==="__proto__")if(gf.call(t,n)){if(vy)return vy(t,n).value}else return;return t[n]},YQ=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const ZQ=IN().freeze(),RN={}.hasOwnProperty;function IN(){const e=XQ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=l,a.parse=c,a.stringify=u,a.run=d,a.runSync=f,a.process=h,a.processSync=m,a;function a(){const g=IN();let b=-1;for(;++b{if(N||!O||!$)R(N);else{const M=a.stringify(O,$);M==null||(tZ(M)?$.value=M:$.result=M),R(N,$)}});function R(N,O){N||!O?T(N):v?v(O):b(null,O)}}}function m(g){let b;a.freeze(),Ag("processSync",a.Parser),Ng("processSync",a.Compiler);const p=Su(g);return a.process(p,v),Sy("processSync","process",b),p;function v(T){b=!0,py(T)}}}function _y(e,t){return typeof e=="function"&&e.prototype&&(JQ(e.prototype)||t in e.prototype)}function JQ(e){let t;for(t in e)if(RN.call(e,t))return!0;return!1}function Ag(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ng(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function kg(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 wy(e){if(!c2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sy(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Su(e){return eZ(e)?e:new kN(e)}function eZ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tZ(e){return typeof e=="string"||NN(e)}const nZ={};function rZ(e,t){const n=t||nZ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return MN(e,r,i)}function MN(e,t,n){if(iZ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Cy(e.children,t,n)}return Array.isArray(e)?Cy(e,t,n):""}function Cy(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Fr(e,e.length,0,t),e):t}const Ay={}.hasOwnProperty;function LN(e){const t={};let n=-1;for(;++no))return;const O=t.events.length;let $=O,M,L;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(M){L=t.events[$][1].end;break}M=!0}for(p(r),N=O;NT;){const R=n[C];t.containerState=R[1],R[0].exit.call(t,e)}n.length=T}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function pZ(e,t,n){return lt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Mh(e){if(e===null||It(e)||il(e))return 1;if(Wm(e))return 2}function qm(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);ky(d,-l),ky(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Zr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Zr(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Zr(c,qm(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Zr(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Zr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Fr(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&ut(N)?lt(e,v,"linePrefix",a+1)(N):v(N)}function v(N){return N===null||Be(N)?e.check(Ry,g,C)(N):(e.enter("codeFlowValue"),T(N))}function T(N){return N===null||Be(N)?(e.exit("codeFlowValue"),v(N)):(e.consume(N),T)}function C(N){return e.exit("codeFenced"),t(N)}function R(N,O,$){let M=0;return L;function L(V){return N.enter("lineEnding"),N.consume(V),N.exit("lineEnding"),X}function X(V){return N.enter("codeFencedFence"),ut(V)?lt(N,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):Z(V)}function Z(V){return V===s?(N.enter("codeFencedFenceSequence"),Q(V)):$(V)}function Q(V){return V===s?(M++,N.consume(V),Q):M>=o?(N.exit("codeFencedFenceSequence"),ut(V)?lt(N,K,"whitespace")(V):K(V)):$(V)}function K(V){return V===null||Be(V)?(N.exit("codeFencedFence"),O(V)):$(V)}}}function AZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Og={name:"codeIndented",tokenize:kZ},NZ={tokenize:OZ,partial:!0};function kZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),lt(e,a,"linePrefix",4+1)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Be(c)?e.attempt(NZ,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Be(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function OZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):lt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Be(o)?i(o):n(o)}}const RZ={name:"codeText",tokenize:LZ,resolve:IZ,previous:MZ};function IZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function BN(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(p){return p===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(p),e.exit(a),f):p===null||p===32||p===41||Ih(p)?n(p):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(p))}function f(p){return p===62?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===62?(e.exit("chunkString"),e.exit(s),f(p)):p===null||p===60||Be(p)?n(p):(e.consume(p),p===92?m:h)}function m(p){return p===60||p===62||p===92?(e.consume(p),h):h(p)}function g(p){return!u&&(p===null||p===41||It(p))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(p)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||Be(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!ut(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function UN(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),l(o)):f===null?n(f):Be(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),lt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||Be(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===o||f===92?(e.consume(f),u):u(f)}}function r1(e,t){let n;return r;function r(i){return Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ut(i)?lt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ii(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const UZ={name:"definition",tokenize:jZ},HZ={tokenize:GZ,partial:!0};function jZ(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return zN.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Ii(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return It(h)?r1(e,c)(h):c(h)}function c(h){return BN(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(HZ,d,d)(h)}function d(h){return ut(h)?lt(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Be(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function GZ(e,t,n){return r;function r(s){return It(s)?r1(e,i)(s):n(s)}function i(s){return UN(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ut(s)?lt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Be(s)?t(s):n(s)}}const VZ={name:"hardBreakEscape",tokenize:KZ};function KZ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Be(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const WZ={name:"headingAtx",tokenize:YZ,resolve:qZ};function qZ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fr(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function YZ(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||It(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Be(u)?(e.exit("atxHeading"),t(u)):ut(u)?lt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||It(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const XZ=["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"],My=["pre","script","style","textarea"],QZ={name:"htmlFlow",tokenize:tJ,resolveTo:eJ,concrete:!0},ZZ={tokenize:rJ,partial:!0},JZ={tokenize:nJ,partial:!0};function eJ(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 tJ(e,t,n){const r=this;let i,a,o,s,l;return c;function c(P){return u(P)}function u(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),a=!0,g):P===63?(e.consume(P),i=3,r.interrupt?t:A):Zn(P)?(e.consume(P),o=String.fromCharCode(P),b):n(P)}function f(P){return P===45?(e.consume(P),i=2,h):P===91?(e.consume(P),i=5,s=0,m):Zn(P)?(e.consume(P),i=4,r.interrupt?t:A):n(P)}function h(P){return P===45?(e.consume(P),r.interrupt?t:A):n(P)}function m(P){const Te="CDATA[";return P===Te.charCodeAt(s++)?(e.consume(P),s===Te.length?r.interrupt?t:Z:m):n(P)}function g(P){return Zn(P)?(e.consume(P),o=String.fromCharCode(P),b):n(P)}function b(P){if(P===null||P===47||P===62||It(P)){const Te=P===47,Se=o.toLowerCase();return!Te&&!a&&My.includes(Se)?(i=1,r.interrupt?t(P):Z(P)):XZ.includes(o.toLowerCase())?(i=6,Te?(e.consume(P),p):r.interrupt?t(P):Z(P)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?v(P):T(P))}return P===45||Kn(P)?(e.consume(P),o+=String.fromCharCode(P),b):n(P)}function p(P){return P===62?(e.consume(P),r.interrupt?t:Z):n(P)}function v(P){return ut(P)?(e.consume(P),v):L(P)}function T(P){return P===47?(e.consume(P),L):P===58||P===95||Zn(P)?(e.consume(P),C):ut(P)?(e.consume(P),T):L(P)}function C(P){return P===45||P===46||P===58||P===95||Kn(P)?(e.consume(P),C):R(P)}function R(P){return P===61?(e.consume(P),N):ut(P)?(e.consume(P),R):T(P)}function N(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),l=P,O):ut(P)?(e.consume(P),N):$(P)}function O(P){return P===l?(e.consume(P),l=null,M):P===null||Be(P)?n(P):(e.consume(P),O)}function $(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||It(P)?R(P):(e.consume(P),$)}function M(P){return P===47||P===62||ut(P)?T(P):n(P)}function L(P){return P===62?(e.consume(P),X):n(P)}function X(P){return P===null||Be(P)?Z(P):ut(P)?(e.consume(P),X):n(P)}function Z(P){return P===45&&i===2?(e.consume(P),ne):P===60&&i===1?(e.consume(P),B):P===62&&i===4?(e.consume(P),W):P===63&&i===3?(e.consume(P),A):P===93&&i===5?(e.consume(P),D):Be(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ZZ,te,Q)(P)):P===null||Be(P)?(e.exit("htmlFlowData"),Q(P)):(e.consume(P),Z)}function Q(P){return e.check(JZ,K,te)(P)}function K(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),V}function V(P){return P===null||Be(P)?Q(P):(e.enter("htmlFlowData"),Z(P))}function ne(P){return P===45?(e.consume(P),A):Z(P)}function B(P){return P===47?(e.consume(P),o="",w):Z(P)}function w(P){if(P===62){const Te=o.toLowerCase();return My.includes(Te)?(e.consume(P),W):Z(P)}return Zn(P)&&o.length<8?(e.consume(P),o+=String.fromCharCode(P),w):Z(P)}function D(P){return P===93?(e.consume(P),A):Z(P)}function A(P){return P===62?(e.consume(P),W):P===45&&i===2?(e.consume(P),A):Z(P)}function W(P){return P===null||Be(P)?(e.exit("htmlFlowData"),te(P)):(e.consume(P),W)}function te(P){return e.exit("htmlFlow"),t(P)}}function nJ(e,t,n){const r=this;return i;function i(o){return Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function rJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(w0,t,n)}}const iJ={name:"htmlText",tokenize:aJ};function aJ(e,t,n){const r=this;let i,a,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),R):A===63?(e.consume(A),T):Zn(A)?(e.consume(A),$):n(A)}function c(A){return A===45?(e.consume(A),u):A===91?(e.consume(A),a=0,m):Zn(A)?(e.consume(A),v):n(A)}function u(A){return A===45?(e.consume(A),h):n(A)}function d(A){return A===null?n(A):A===45?(e.consume(A),f):Be(A)?(o=d,B(A)):(e.consume(A),d)}function f(A){return A===45?(e.consume(A),h):d(A)}function h(A){return A===62?ne(A):A===45?f(A):d(A)}function m(A){const W="CDATA[";return A===W.charCodeAt(a++)?(e.consume(A),a===W.length?g:m):n(A)}function g(A){return A===null?n(A):A===93?(e.consume(A),b):Be(A)?(o=g,B(A)):(e.consume(A),g)}function b(A){return A===93?(e.consume(A),p):g(A)}function p(A){return A===62?ne(A):A===93?(e.consume(A),p):g(A)}function v(A){return A===null||A===62?ne(A):Be(A)?(o=v,B(A)):(e.consume(A),v)}function T(A){return A===null?n(A):A===63?(e.consume(A),C):Be(A)?(o=T,B(A)):(e.consume(A),T)}function C(A){return A===62?ne(A):T(A)}function R(A){return Zn(A)?(e.consume(A),N):n(A)}function N(A){return A===45||Kn(A)?(e.consume(A),N):O(A)}function O(A){return Be(A)?(o=O,B(A)):ut(A)?(e.consume(A),O):ne(A)}function $(A){return A===45||Kn(A)?(e.consume(A),$):A===47||A===62||It(A)?M(A):n(A)}function M(A){return A===47?(e.consume(A),ne):A===58||A===95||Zn(A)?(e.consume(A),L):Be(A)?(o=M,B(A)):ut(A)?(e.consume(A),M):ne(A)}function L(A){return A===45||A===46||A===58||A===95||Kn(A)?(e.consume(A),L):X(A)}function X(A){return A===61?(e.consume(A),Z):Be(A)?(o=X,B(A)):ut(A)?(e.consume(A),X):M(A)}function Z(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,Q):Be(A)?(o=Z,B(A)):ut(A)?(e.consume(A),Z):(e.consume(A),K)}function Q(A){return A===i?(e.consume(A),i=void 0,V):A===null?n(A):Be(A)?(o=Q,B(A)):(e.consume(A),Q)}function K(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||It(A)?M(A):(e.consume(A),K)}function V(A){return A===47||A===62||It(A)?M(A):n(A)}function ne(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function B(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return ut(A)?lt(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):D(A)}function D(A){return e.enter("htmlTextData"),o(A)}}const I8={name:"labelEnd",tokenize:dJ,resolveTo:uJ,resolveAll:cJ},oJ={tokenize:fJ},sJ={tokenize:hJ},lJ={tokenize:mJ};function cJ(e){let t=-1;for(;++t=3&&(c===null||Be(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ut(c)?lt(e,s,"whitespace")(c):s(c))}}const cr={name:"list",tokenize:_J,continuation:{tokenize:wJ},exit:CJ},TJ={tokenize:AJ,partial:!0},xJ={tokenize:SJ,partial:!0};function _J(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:u2(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vf,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return u2(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(w0,r.interrupt?n:u,e.attempt(TJ,f,d))}function u(h){return r.containerState.initialBlankLine=!0,a++,f(h)}function d(h){return ut(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function wJ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(w0,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,lt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ut(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(xJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,lt(e,e.attempt(cr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function SJ(e,t,n){const r=this;return lt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function CJ(e){e.exit(this.containerState.type)}function AJ(e,t,n){const r=this;return lt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!ut(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Ly={name:"setextUnderline",tokenize:kJ,resolveTo:NJ};function NJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function kJ(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ut(c)?lt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Be(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const OJ={tokenize:RJ};function RJ(e){const t=this,n=e.attempt(w0,r,e.attempt(this.parser.constructs.flowInitial,i,lt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(PZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const IJ={resolveAll:jN()},MJ=HN("string"),LJ=HN("text");function HN(e){return{tokenize:t,resolveAll:jN(e==="text"?DJ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function FJ(e,t){let n=-1;const r=[];let i;for(;++ne.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ZQ(e){if(P0(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function JQ(e){P0(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function eZ(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nZ(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function P0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rZ={cwd:iZ};function iZ(){return"/"}function p2(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function aZ(e){if(typeof e=="string")e=new URL(e);else if(!p2(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 oZ(e)}function oZ(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||kf.call(t,i)},ky=function(t,n){Sy&&n.name==="__proto__"?Sy(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Oy=function(t,n){if(n==="__proto__")if(kf.call(t,n)){if(Cy)return Cy(t,n).value}else return;return t[n]},lZ=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const dZ=jN().freeze(),UN={}.hasOwnProperty;function jN(){const e=cZ(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=l,a.parse=c,a.stringify=u,a.run=d,a.runSync=f,a.process=h,a.processSync=m,a;function a(){const g=jN();let E=-1;for(;++E{if(N||!R||!D)O(N);else{const I=a.stringify(R,D);I==null||(mZ(I)?D.value=I:D.result=I),O(N,D)}});function O(N,R){N||!R?T(N):v?v(R):E(null,R)}}}function m(g){let E;a.freeze(),Ig("processSync",a.Parser),Lg("processSync",a.Compiler);const p=Iu(g);return a.process(p,v),Ly("processSync","process",E),p;function v(T){E=!0,wy(T)}}}function My(e,t){return typeof e=="function"&&e.prototype&&(fZ(e.prototype)||t in e.prototype)}function fZ(e){let t;for(t in e)if(UN.call(e,t))return!0;return!1}function Ig(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Lg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Dg(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 Iy(e){if(!g2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ly(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Iu(e){return hZ(e)?e:new BN(e)}function hZ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mZ(e){return typeof e=="string"||FN(e)}const pZ={};function gZ(e,t){const n=t||pZ,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return HN(e,r,i)}function HN(e,t,n){if(vZ(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dy(e.children,t,n)}return Array.isArray(e)?Dy(e,t,n):""}function Dy(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Br(e,e.length,0,t),e):t}const Py={}.hasOwnProperty;function GN(e){const t={};let n=-1;for(;++no))return;const R=t.events.length;let D=R,I,L;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(I){L=t.events[D][1].end;break}I=!0}for(p(r),N=R;NT;){const O=n[C];t.containerState=O[1],O[0].exit.call(t,e)}n.length=T}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function NZ(e,t,n){return lt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Kh(e){if(e===null||Mt(e)||al(e))return 1;if(Jm(e))return 2}function ep(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);Fy(d,-l),Fy(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Jr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Jr(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=Jr(c,ep(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Jr(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Jr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Br(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n0&&ut(N)?lt(e,v,"linePrefix",a+1)(N):v(N)}function v(N){return N===null||Be(N)?e.check(zy,g,C)(N):(e.enter("codeFlowValue"),T(N))}function T(N){return N===null||Be(N)?(e.exit("codeFlowValue"),v(N)):(e.consume(N),T)}function C(N){return e.exit("codeFenced"),t(N)}function O(N,R,D){let I=0;return L;function L(V){return N.enter("lineEnding"),N.consume(V),N.exit("lineEnding"),X}function X(V){return N.enter("codeFencedFence"),ut(V)?lt(N,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):Z(V)}function Z(V){return V===s?(N.enter("codeFencedFenceSequence"),Q(V)):D(V)}function Q(V){return V===s?(I++,N.consume(V),Q):I>=o?(N.exit("codeFencedFenceSequence"),ut(V)?lt(N,K,"whitespace")(V):K(V)):D(V)}function K(V){return V===null||Be(V)?(N.exit("codeFencedFence"),R(V)):D(V)}}}function zZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Pg={name:"codeIndented",tokenize:jZ},UZ={tokenize:HZ,partial:!0};function jZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),lt(e,a,"linePrefix",4+1)(c)}function a(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Be(c)?e.attempt(UZ,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Be(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function HZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):lt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Be(o)?i(o):n(o)}}const GZ={name:"codeText",tokenize:WZ,resolve:VZ,previous:KZ};function VZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function YN(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(p){return p===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(p),e.exit(a),f):p===null||p===32||p===41||Vh(p)?n(p):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(p))}function f(p){return p===62?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===62?(e.exit("chunkString"),e.exit(s),f(p)):p===null||p===60||Be(p)?n(p):(e.consume(p),p===92?m:h)}function m(p){return p===60||p===62||p===92?(e.consume(p),h):h(p)}function g(p){return!u&&(p===null||p===41||Mt(p))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(p)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||Be(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!ut(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function QN(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),l(o)):f===null?n(f):Be(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),lt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||Be(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:u)}function d(f){return f===o||f===92?(e.consume(f),u):u(f)}}function d1(e,t){let n;return r;function r(i){return Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ut(i)?lt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Di(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const eJ={name:"definition",tokenize:nJ},tJ={tokenize:rJ,partial:!0};function nJ(e,t,n){const r=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return XN.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Di(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Mt(h)?d1(e,c)(h):c(h)}function c(h){return YN(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(tJ,d,d)(h)}function d(h){return ut(h)?lt(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Be(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function rJ(e,t,n){return r;function r(s){return Mt(s)?d1(e,i)(s):n(s)}function i(s){return QN(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ut(s)?lt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Be(s)?t(s):n(s)}}const iJ={name:"hardBreakEscape",tokenize:aJ};function aJ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Be(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const oJ={name:"headingAtx",tokenize:lJ,resolve:sJ};function sJ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Br(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function lJ(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||Mt(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Be(u)?(e.exit("atxHeading"),t(u)):ut(u)?lt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Mt(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const cJ=["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"],jy=["pre","script","style","textarea"],uJ={name:"htmlFlow",tokenize:mJ,resolveTo:hJ,concrete:!0},dJ={tokenize:gJ,partial:!0},fJ={tokenize:pJ,partial:!0};function hJ(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 mJ(e,t,n){const r=this;let i,a,o,s,l;return c;function c($){return u($)}function u($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),d}function d($){return $===33?(e.consume($),f):$===47?(e.consume($),a=!0,g):$===63?(e.consume($),i=3,r.interrupt?t:A):Jn($)?(e.consume($),o=String.fromCharCode($),E):n($)}function f($){return $===45?(e.consume($),i=2,h):$===91?(e.consume($),i=5,s=0,m):Jn($)?(e.consume($),i=4,r.interrupt?t:A):n($)}function h($){return $===45?(e.consume($),r.interrupt?t:A):n($)}function m($){const xe="CDATA[";return $===xe.charCodeAt(s++)?(e.consume($),s===xe.length?r.interrupt?t:Z:m):n($)}function g($){return Jn($)?(e.consume($),o=String.fromCharCode($),E):n($)}function E($){if($===null||$===47||$===62||Mt($)){const xe=$===47,Se=o.toLowerCase();return!xe&&!a&&jy.includes(Se)?(i=1,r.interrupt?t($):Z($)):cJ.includes(o.toLowerCase())?(i=6,xe?(e.consume($),p):r.interrupt?t($):Z($)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):a?v($):T($))}return $===45||qn($)?(e.consume($),o+=String.fromCharCode($),E):n($)}function p($){return $===62?(e.consume($),r.interrupt?t:Z):n($)}function v($){return ut($)?(e.consume($),v):L($)}function T($){return $===47?(e.consume($),L):$===58||$===95||Jn($)?(e.consume($),C):ut($)?(e.consume($),T):L($)}function C($){return $===45||$===46||$===58||$===95||qn($)?(e.consume($),C):O($)}function O($){return $===61?(e.consume($),N):ut($)?(e.consume($),O):T($)}function N($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),l=$,R):ut($)?(e.consume($),N):D($)}function R($){return $===l?(e.consume($),l=null,I):$===null||Be($)?n($):(e.consume($),R)}function D($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||Mt($)?O($):(e.consume($),D)}function I($){return $===47||$===62||ut($)?T($):n($)}function L($){return $===62?(e.consume($),X):n($)}function X($){return $===null||Be($)?Z($):ut($)?(e.consume($),X):n($)}function Z($){return $===45&&i===2?(e.consume($),ne):$===60&&i===1?(e.consume($),B):$===62&&i===4?(e.consume($),W):$===63&&i===3?(e.consume($),A):$===93&&i===5?(e.consume($),P):Be($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dJ,te,Q)($)):$===null||Be($)?(e.exit("htmlFlowData"),Q($)):(e.consume($),Z)}function Q($){return e.check(fJ,K,te)($)}function K($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),V}function V($){return $===null||Be($)?Q($):(e.enter("htmlFlowData"),Z($))}function ne($){return $===45?(e.consume($),A):Z($)}function B($){return $===47?(e.consume($),o="",w):Z($)}function w($){if($===62){const xe=o.toLowerCase();return jy.includes(xe)?(e.consume($),W):Z($)}return Jn($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),w):Z($)}function P($){return $===93?(e.consume($),A):Z($)}function A($){return $===62?(e.consume($),W):$===45&&i===2?(e.consume($),A):Z($)}function W($){return $===null||Be($)?(e.exit("htmlFlowData"),te($)):(e.consume($),W)}function te($){return e.exit("htmlFlow"),t($)}}function pJ(e,t,n){const r=this;return i;function i(o){return Be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function gJ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($0,t,n)}}const vJ={name:"htmlText",tokenize:yJ};function yJ(e,t,n){const r=this;let i,a,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),O):A===63?(e.consume(A),T):Jn(A)?(e.consume(A),D):n(A)}function c(A){return A===45?(e.consume(A),u):A===91?(e.consume(A),a=0,m):Jn(A)?(e.consume(A),v):n(A)}function u(A){return A===45?(e.consume(A),h):n(A)}function d(A){return A===null?n(A):A===45?(e.consume(A),f):Be(A)?(o=d,B(A)):(e.consume(A),d)}function f(A){return A===45?(e.consume(A),h):d(A)}function h(A){return A===62?ne(A):A===45?f(A):d(A)}function m(A){const W="CDATA[";return A===W.charCodeAt(a++)?(e.consume(A),a===W.length?g:m):n(A)}function g(A){return A===null?n(A):A===93?(e.consume(A),E):Be(A)?(o=g,B(A)):(e.consume(A),g)}function E(A){return A===93?(e.consume(A),p):g(A)}function p(A){return A===62?ne(A):A===93?(e.consume(A),p):g(A)}function v(A){return A===null||A===62?ne(A):Be(A)?(o=v,B(A)):(e.consume(A),v)}function T(A){return A===null?n(A):A===63?(e.consume(A),C):Be(A)?(o=T,B(A)):(e.consume(A),T)}function C(A){return A===62?ne(A):T(A)}function O(A){return Jn(A)?(e.consume(A),N):n(A)}function N(A){return A===45||qn(A)?(e.consume(A),N):R(A)}function R(A){return Be(A)?(o=R,B(A)):ut(A)?(e.consume(A),R):ne(A)}function D(A){return A===45||qn(A)?(e.consume(A),D):A===47||A===62||Mt(A)?I(A):n(A)}function I(A){return A===47?(e.consume(A),ne):A===58||A===95||Jn(A)?(e.consume(A),L):Be(A)?(o=I,B(A)):ut(A)?(e.consume(A),I):ne(A)}function L(A){return A===45||A===46||A===58||A===95||qn(A)?(e.consume(A),L):X(A)}function X(A){return A===61?(e.consume(A),Z):Be(A)?(o=X,B(A)):ut(A)?(e.consume(A),X):I(A)}function Z(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,Q):Be(A)?(o=Z,B(A)):ut(A)?(e.consume(A),Z):(e.consume(A),K)}function Q(A){return A===i?(e.consume(A),i=void 0,V):A===null?n(A):Be(A)?(o=Q,B(A)):(e.consume(A),Q)}function K(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||Mt(A)?I(A):(e.consume(A),K)}function V(A){return A===47||A===62||Mt(A)?I(A):n(A)}function ne(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function B(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return ut(A)?lt(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):P(A)}function P(A){return e.enter("htmlTextData"),o(A)}}const U6={name:"labelEnd",tokenize:wJ,resolveTo:_J,resolveAll:TJ},bJ={tokenize:SJ},EJ={tokenize:CJ},xJ={tokenize:AJ};function TJ(e){let t=-1;for(;++t=3&&(c===null||Be(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ut(c)?lt(e,s,"whitespace")(c):s(c))}}const ur={name:"list",tokenize:PJ,continuation:{tokenize:$J},exit:BJ},LJ={tokenize:zJ,partial:!0},DJ={tokenize:FJ,partial:!0};function PJ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:v2(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Of,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return v2(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check($0,r.interrupt?n:u,e.attempt(LJ,f,d))}function u(h){return r.containerState.initialBlankLine=!0,a++,f(h)}function d(h){return ut(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function $J(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($0,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,lt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ut(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(DJ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,lt(e,e.attempt(ur,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function FJ(e,t,n){const r=this;return lt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function BJ(e){e.exit(this.containerState.type)}function zJ(e,t,n){const r=this;return lt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!ut(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Hy={name:"setextUnderline",tokenize:jJ,resolveTo:UJ};function UJ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function jJ(e,t,n){const r=this;let i;return a;function a(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ut(c)?lt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Be(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const HJ={tokenize:GJ};function GJ(e){const t=this,n=e.attempt($0,r,e.attempt(this.parser.constructs.flowInitial,i,lt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(YZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const VJ={resolveAll:JN()},KJ=ZN("string"),WJ=ZN("text");function ZN(e){return{tokenize:t,resolveAll:JN(e==="text"?qJ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(u){return c(u)?a(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),a(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let f=-1;if(d)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function QJ(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const ZJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function VN(e){return e.replace(ZJ,JJ)}function JJ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return GN(n.slice(a?2:1),a?16:10)}return R8(n)||e}const KN={}.hasOwnProperty,eee=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),tee(n)(QJ(YJ(n).document().write(XJ()(e,t,!0))))};function tee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(_e),autolinkProtocol:X,autolinkEmail:X,atxHeading:s(j),blockQuote:s(St),characterEscape:X,characterReference:X,codeFenced:s(Ct),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ct,l),codeText:s(or,l),codeTextData:X,data:X,codeFlowValue:X,definition:s(en),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(sr),hardBreakEscape:s(ie),hardBreakTrailing:s(ie),htmlFlow:s(ae,l),htmlFlowData:X,htmlText:s(ae,l),htmlTextData:X,image:s(le),label:l,link:s(_e),listItem:s(be),listItemValue:m,listOrdered:s(ce,h),listUnordered:s(ce),paragraph:s(gt),reference:Se,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(j),strong:s(vt),thematicBreak:s(ba)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:st,autolinkProtocol:xe,blockQuote:u(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:Ae,characterReferenceMarkerNumeric:Ae,characterReferenceValue:qe,codeFenced:u(v),codeFencedFence:p,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:Z,codeIndented:u(T),codeText:u(B),codeTextData:Z,data:Z,definition:u(),definitionDestinationString:N,definitionLabelString:C,definitionTitleString:R,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(V),htmlFlowData:Z,htmlText:u(ne),htmlTextData:Z,image:u(D),label:W,labelText:A,lineEnding:Q,link:u(w),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ce,resourceDestinationString:te,resourceTitleString:P,resource:Te,setextHeading:u(L),setextHeadingLineSequence:M,setextHeadingText:$,strong:u(),thematicBreak:u()}};WN(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(G){let re={type:"root",children:[]};const pe={stack:[re],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:a,getData:o},Y=[];let J=-1;for(;++J0){const oe=pe.tokenStack[pe.tokenStack.length-1];(oe[1]||Py).call(pe,void 0,oe[0])}for(re.position={start:mo(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:mo(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J{const r=this.data("settings");return eee(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function iee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function aee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` -`}]}function oee(e,t){const n=t.value?t.value+` -`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function see(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tu(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function qN(e,t){const n=String(t.identifier).toUpperCase(),r=tu(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function cee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},qN(e,{type:"footnoteReference",identifier:i,position:t.position})}function uee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function YN(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function fee(e,t){const n=e.definition(t.identifier);if(!n)return YN(e,t);const r={src:tu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function hee(e,t){const n={src:tu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function pee(e,t){const n=e.definition(t.identifier);if(!n)return YN(e,t);const r={href:tu(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function gee(e,t){const n={href:tu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vee(e,t,n){const r=e.all(t),i=n?yee(n):XN(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const dee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tk(e){return e.replace(dee,fee)}function fee(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return ek(n.slice(a?2:1),a?16:10)}return z6(n)||e}const nk={}.hasOwnProperty,hee=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mee(n)(uee(lee(n).document().write(cee()(e,t,!0))))};function mee(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(_e),autolinkProtocol:X,autolinkEmail:X,atxHeading:s(H),blockQuote:s(Ct),characterEscape:X,characterReference:X,codeFenced:s(At),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(At,l),codeText:s(sr,l),codeTextData:X,data:X,codeFlowValue:X,definition:s(tn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(lr),hardBreakEscape:s(ie),hardBreakTrailing:s(ie),htmlFlow:s(ae,l),htmlFlowData:X,htmlText:s(ae,l),htmlTextData:X,image:s(le),label:l,link:s(_e),listItem:s(be),listItemValue:m,listOrdered:s(ce,h),listUnordered:s(ce),paragraph:s(vt),reference:Se,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(H),strong:s(yt),thematicBreak:s(xa)},exit:{atxHeading:u(),atxHeadingSequence:R,autolink:u(),autolinkEmail:st,autolinkProtocol:Te,blockQuote:u(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:Ae,characterReferenceMarkerNumeric:Ae,characterReferenceValue:qe,codeFenced:u(v),codeFencedFence:p,codeFencedFenceInfo:g,codeFencedFenceMeta:E,codeFlowValue:Z,codeIndented:u(T),codeText:u(B),codeTextData:Z,data:Z,definition:u(),definitionDestinationString:N,definitionLabelString:C,definitionTitleString:O,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(V),htmlFlowData:Z,htmlText:u(ne),htmlTextData:Z,image:u(P),label:W,labelText:A,lineEnding:Q,link:u(w),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ce,resourceDestinationString:te,resourceTitleString:$,resource:xe,setextHeading:u(L),setextHeadingLineSequence:I,setextHeadingText:D,strong:u(),thematicBreak:u()}};rk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(G){let re={type:"root",children:[]};const pe={stack:[re],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:a,getData:o},Y=[];let J=-1;for(;++J0){const oe=pe.tokenStack[pe.tokenStack.length-1];(oe[1]||Vy).call(pe,void 0,oe[0])}for(re.position={start:vo(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:vo(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J{const r=this.data("settings");return hee(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function vee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function yee(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`}]}function bee(e,t){const n=t.value?t.value+` +`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Eee(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cu(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ik(e,t){const n=String(t.identifier).toUpperCase(),r=cu(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function Tee(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},ik(e,{type:"footnoteReference",identifier:i,position:t.position})}function _ee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wee(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function ak(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function See(e,t){const n=e.definition(t.identifier);if(!n)return ak(e,t);const r={src:cu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function Cee(e,t){const n={src:cu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Aee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Nee(e,t){const n=e.definition(t.identifier);if(!n)return ak(e,t);const r={href:cu(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function kee(e,t){const n={href:cu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Oee(e,t,n){const r=e.all(t),i=n?Ree(n):ok(t),a={},o=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function bee(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function wee(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=S0(t.children[1]),l=Ym(t.children[t.children.length-1]);s.line&&l.line&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function See(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(By(t.slice(i),i>0,!1)),a.join("")}function By(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===$y||a===Fy;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===$y||a===Fy;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Nee(e,t){const n={type:"text",value:Aee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function kee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Oee={blockquote:iee,break:aee,code:oee,delete:see,emphasis:lee,footnoteReference:qN,footnote:cee,heading:uee,html:dee,imageReference:fee,image:hee,inlineCode:mee,linkReference:pee,link:gee,listItem:vee,list:bee,paragraph:Eee,root:Tee,strong:xee,table:wee,tableCell:Cee,tableRow:See,text:Nee,thematicBreak:kee,toml:dd,yaml:dd,definition:dd,footnoteDefinition:dd};function dd(){return null}const Xm=function(e){if(e==null)return Lee;if(typeof e=="string")return Mee(e);if(typeof e=="object")return Array.isArray(e)?Ree(e):Iee(e);if(typeof e=="function")return Qm(e);throw new Error("Expected function, string, or object as test")};function Ree(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let f=[],h,m,g;if((!t||i(s,l,c[c.length-1]||null))&&(f=$ee(n(s,c)),f[0]===zy))return f;if(s.children&&f[0]!==Pee)for(m=(r?s.children.length:-1)+a,g=c.concat(s);m>-1&&m{const i=Hy(r.identifier);i&&!Uy.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Hy(r);return i&&Uy.call(t,i)?t[i]:null}}function Hy(e){return String(e||"").toUpperCase()}const Lh={}.hasOwnProperty;function zee(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Oee,...n.handlers},o.definition=Bee(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=Uee,o.applyData=Hee,o.one=s,o.all=l,o.wrap=Gee,o.augment=a,nu(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();Lh.call(i,u)||(i[u]=c)}),o;function a(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};Fee(d)||(u.position={start:S0(d),end:Ym(d)})}return u}function o(c,u,d,f){return Array.isArray(d)&&(f=d,d={}),a(c,{type:"element",tagName:u,properties:d||{},children:f||[]})}function s(c,u){return JN(o,c,u)}function l(c){return M8(o,c)}}function Uee(e,t){e.position&&(t.position=_ee(e))}function Hee(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function JN(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Lh.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:M8(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):jee(e,t)}function M8(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i1}function Mee(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function $ee(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=F0(t.children[1]),l=tp(t.children[t.children.length-1]);s.line&&l.line&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Fee(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(qy(t.slice(i),i>0,!1)),a.join("")}function qy(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Ky||a===Wy;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Ky||a===Wy;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Uee(e,t){const n={type:"text",value:zee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function jee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Hee={blockquote:vee,break:yee,code:bee,delete:Eee,emphasis:xee,footnoteReference:ik,footnote:Tee,heading:_ee,html:wee,imageReference:See,image:Cee,inlineCode:Aee,linkReference:Nee,link:kee,listItem:Oee,list:Mee,paragraph:Iee,root:Lee,strong:Dee,table:$ee,tableCell:Bee,tableRow:Fee,text:Uee,thematicBreak:jee,toml:wd,yaml:wd,definition:wd,footnoteDefinition:wd};function wd(){return null}const np=function(e){if(e==null)return Wee;if(typeof e=="string")return Kee(e);if(typeof e=="object")return Array.isArray(e)?Gee(e):Vee(e);if(typeof e=="function")return rp(e);throw new Error("Expected function, string, or object as test")};function Gee(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let f=[],h,m,g;if((!t||i(s,l,c[c.length-1]||null))&&(f=Xee(n(s,c)),f[0]===Yy))return f;if(s.children&&f[0]!==Yee)for(m=(r?s.children.length:-1)+a,g=c.concat(s);m>-1&&m{const i=Qy(r.identifier);i&&!Xy.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Qy(r);return i&&Xy.call(t,i)?t[i]:null}}function Qy(e){return String(e||"").toUpperCase()}const Wh={}.hasOwnProperty;function Jee(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...Hee,...n.handlers},o.definition=Zee(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=ete,o.applyData=tte,o.one=s,o.all=l,o.wrap=rte,o.augment=a,uu(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();Wh.call(i,u)||(i[u]=c)}),o;function a(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};Qee(d)||(u.position={start:F0(d),end:tp(d)})}return u}function o(c,u,d,f){return Array.isArray(d)&&(f=d,d={}),a(c,{type:"element",tagName:u,properties:d||{},children:f||[]})}function s(c,u){return ck(o,c,u)}function l(c){return j6(o,c)}}function ete(e,t){e.position&&(t.position=Pee(e))}function tte(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ck(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Wh.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:j6(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):nte(e,t)}function j6(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` -`}),n}function Vee(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`}),n}function ite(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` -`}]}}function ek(e,t){const n=zee(e,t),r=n.one(e,null),i=Vee(n);return i&&r.children.push({type:"text",value:` -`},i),Array.isArray(r)?{type:"root",children:r}:r}const Kee=function(e,t){return e&&"run"in e?qee(e,t):Yee(e||t)},Wee=Kee;function qee(e,t){return(n,r,i)=>{e.run(ek(n,t),r,a=>{i(a)})}}function Yee(e){return t=>ek(t,e)}var tk={exports:{}},Xee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Qee=Xee,Zee=Qee;function nk(){}function rk(){}rk.resetWarningCache=nk;var Jee=function(){function e(r,i,a,o,s,l){if(l!==Zee){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rk,resetWarningCache:nk};return n.PropTypes=n,n};tk.exports=Jee();var ete=tk.exports;const Je=wr(ete);class C0{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}C0.prototype.property={};C0.prototype.normal={};C0.prototype.space=null;function ik(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&ate.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Gy,lte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Gy.test(a)){let o=a.replace(ote,ste);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=L8}return new i(r,t)}function ste(e){return"-"+e.toLowerCase()}function lte(e){return e.charAt(1).toUpperCase()}const Vy={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"},A0=ik([sk,ok,uk,dk,rte],"html"),iu=ik([sk,ok,uk,dk,ite],"svg");function cte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{nu(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}var fk={exports:{}},wt={};/** +`}]}}function uk(e,t){const n=Jee(e,t),r=n.one(e,null),i=ite(n);return i&&r.children.push({type:"text",value:` +`},i),Array.isArray(r)?{type:"root",children:r}:r}const ate=function(e,t){return e&&"run"in e?ste(e,t):lte(e||t)},ote=ate;function ste(e,t){return(n,r,i)=>{e.run(uk(n,t),r,a=>{i(a)})}}function lte(e){return t=>uk(t,e)}var dk={exports:{}},cte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ute=cte,dte=ute;function fk(){}function hk(){}hk.resetWarningCache=fk;var fte=function(){function e(r,i,a,o,s,l){if(l!==dte){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hk,resetWarningCache:fk};return n.PropTypes=n,n};dk.exports=fte();var hte=dk.exports;const et=wr(hte);class B0{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}B0.prototype.property={};B0.prototype.normal={};B0.prototype.space=null;function mk(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&yte.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Jy,xte);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Jy.test(a)){let o=a.replace(bte,Ete);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=H6}return new i(r,t)}function Ete(e){return"-"+e.toLowerCase()}function xte(e){return e.charAt(1).toUpperCase()}const eb={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"},z0=mk([vk,gk,Ek,xk,gte],"html"),fu=mk([vk,gk,Ek,xk,vte],"svg");function Tte(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{uu(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}var Tk={exports:{}},St={};/** * @license React * react-is.production.min.js * @@ -343,13 +343,13 @@ Defaulting to \`${M5}\`.`}function CS(e){return GG.includes(e)}const AS=SS,NS=y. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var D8=Symbol.for("react.element"),P8=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),ep=Symbol.for("react.strict_mode"),tp=Symbol.for("react.profiler"),np=Symbol.for("react.provider"),rp=Symbol.for("react.context"),ute=Symbol.for("react.server_context"),ip=Symbol.for("react.forward_ref"),ap=Symbol.for("react.suspense"),op=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),lp=Symbol.for("react.lazy"),dte=Symbol.for("react.offscreen"),hk;hk=Symbol.for("react.module.reference");function hi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case D8:switch(e=e.type,e){case Jm:case tp:case ep:case ap:case op:return e;default:switch(e=e&&e.$$typeof,e){case ute:case rp:case ip:case lp:case sp:case np:return e;default:return t}}case P8:return t}}}wt.ContextConsumer=rp;wt.ContextProvider=np;wt.Element=D8;wt.ForwardRef=ip;wt.Fragment=Jm;wt.Lazy=lp;wt.Memo=sp;wt.Portal=P8;wt.Profiler=tp;wt.StrictMode=ep;wt.Suspense=ap;wt.SuspenseList=op;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(e){return hi(e)===rp};wt.isContextProvider=function(e){return hi(e)===np};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===D8};wt.isForwardRef=function(e){return hi(e)===ip};wt.isFragment=function(e){return hi(e)===Jm};wt.isLazy=function(e){return hi(e)===lp};wt.isMemo=function(e){return hi(e)===sp};wt.isPortal=function(e){return hi(e)===P8};wt.isProfiler=function(e){return hi(e)===tp};wt.isStrictMode=function(e){return hi(e)===ep};wt.isSuspense=function(e){return hi(e)===ap};wt.isSuspenseList=function(e){return hi(e)===op};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jm||e===tp||e===ep||e===ap||e===op||e===dte||typeof e=="object"&&e!==null&&(e.$$typeof===lp||e.$$typeof===sp||e.$$typeof===np||e.$$typeof===rp||e.$$typeof===ip||e.$$typeof===hk||e.getModuleId!==void 0)};wt.typeOf=hi;fk.exports=wt;var fte=fk.exports;const hte=wr(fte);function mte(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Ky(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mk(e){return e.join(" ").trim()}function Wy(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function pk(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var $8={exports:{}},qy=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pte=/\n/g,gte=/^\s*/,vte=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yte=/^:\s*/,bte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ete=/^[;\s]*/,Tte=/^\s+|\s+$/g,xte=` -`,Yy="/",Xy="*",Is="",_te="comment",wte="declaration",Ste=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(pte);g&&(n+=g.length);var b=m.lastIndexOf(xte);r=~b?m.length-b:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var b=g[0];return i(b),e=e.slice(b.length),g}}function c(){l(gte)}function u(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=a();if(!(Yy!=e.charAt(0)||Xy!=e.charAt(1))){for(var g=2;Is!=e.charAt(g)&&(Xy!=e.charAt(g)||Yy!=e.charAt(g+1));)++g;if(g+=2,Is===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return r+=2,i(b),e=e.slice(g),r+=2,m({type:_te,comment:b})}}function f(){var m=a(),g=l(vte);if(g){if(d(),!l(yte))return s("property missing ':'");var b=l(bte),p=m({type:wte,property:Qy(g[0].replace(qy,Is)),value:b?Qy(b[0].replace(qy,Is)):Is});return l(Ete),p}}function h(){var m=[];u(m);for(var g;g=f();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function Qy(e){return e?e.replace(Tte,Is):Is}var Cte=Ste;function gk(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=Cte(e),a=typeof t=="function",o,s,l=0,c=i.length;l0?We.createElement(h,l,d):We.createElement(h,l)}function Rte(e){let t=-1;for(;++t for more info)`),delete fd[a]}const t=ZQ().use(ree).use(e.remarkPlugins||[]).use(Wee,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(cte,e),n=new kN;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=We.createElement(We.Fragment,{},vk({options:e,schema:A0,listDepth:0},r));return e.className&&(i=We.createElement("div",{className:e.className},i)),i}yk.propTypes={children:Je.string,className:Je.string,allowElement:Je.func,allowedElements:Je.arrayOf(Je.string),disallowedElements:Je.arrayOf(Je.string),unwrapDisallowed:Je.bool,remarkPlugins:Je.arrayOf(Je.oneOfType([Je.object,Je.func,Je.arrayOf(Je.oneOfType([Je.bool,Je.string,Je.object,Je.func,Je.arrayOf(Je.any)]))])),rehypePlugins:Je.arrayOf(Je.oneOfType([Je.object,Je.func,Je.arrayOf(Je.oneOfType([Je.bool,Je.string,Je.object,Je.func,Je.arrayOf(Je.any)]))])),sourcePos:Je.bool,rawSourcePos:Je.bool,skipHtml:Je.bool,includeElementIndex:Je.bool,transformLinkUri:Je.oneOfType([Je.func,Je.bool]),linkTarget:Je.oneOfType([Je.func,Je.string]),transformImageUri:Je.func,components:Je.object};function $te(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],p=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},R={className:"function.dispatch",relevance:0,keywords:{_hint:p},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[R,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:N.concat([{begin:/\(/,end:/\)/,keywords:C,contains:N.concat(["self"]),relevance:0}]),relevance:0},$={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Fte(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=$te(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Bte(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],g={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],p=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...b,...p,"set","shopt",...v,...T]},contains:[d,e.SHEBANG(),f,c,e.HASH_COMMENT_MODE,a,g,o,s,l,n]}}function zte(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},p=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:p.concat([{begin:/\(/,end:/\)/,keywords:b,contains:p.concat(["self"]),relevance:0}]),relevance:0},T={begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:b}}}function Ute(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],p=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},R={className:"function.dispatch",relevance:0,keywords:{_hint:p},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[R,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:N.concat([{begin:/\(/,end:/\)/,keywords:C,contains:N.concat(["self"]),relevance:0}]),relevance:0},$={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Hte(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=e.inherit(d,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},g=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[g,h,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},v=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",T={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},b,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[b,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},T]}}const jte=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),Gte=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vte=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Kte=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Wte=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],qte=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Yte(e){const t=e.regex,n=jte(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Kte.join("|")+")"},{begin:":(:)?("+Wte.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qte.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Vte.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Gte.join("|")+")\\b"}]}}function Xte(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Qte(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"bk(e,t,n-1))}function ene(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+bk("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Jy,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Jy,c]}}const eb="[A-Za-z$_][0-9A-Za-z$_]*",tne=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],nne=["true","false","null","undefined","NaN","Infinity"],Ek=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Tk=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],rne=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ine=[].concat(xk,Ek,Tk);function ane(e){const t=e.regex,n=(w,{after:D})=>{const A="",end:""},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,D)=>{const A=w[0].length+w.index,W=w.input[A];if(W==="<"||W===","){D.ignoreMatch();return}W===">"&&(n(w,{after:A})||D.ignoreMatch());let te;const P=w.input.substring(A);if(te=P.match(/^\s*=/)){D.ignoreMatch();return}if((te=P.match(/^\s+extends\s+/))&&te.index===0){D.ignoreMatch();return}}},s={$pattern:eb,keyword:tne,literal:nne,built_in:ine,"variable.language":rne},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,{match:/\$\d+/},d];f.contains=T.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(T)});const C=[].concat(v,f.contains),R=C.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},O={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ek,...Tk]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return t.concat("(?!",w.join("|"),")")}const Q={match:t.concat(/\b/,Z([...xk,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,v,{match:/\$\d+/},d,$,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},Q,X,O,V,{match:/\$[(.]/}]}}function one(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var jl="[0-9](_*[0-9])*",pd=`\\.(${jl})`,gd="[0-9a-fA-F](_*[0-9a-fA-F])*",sne={className:"number",variants:[{begin:`(\\b(${jl})((${pd})|\\.)?|(${pd}))[eE][+-]?(${jl})[fFdD]?\\b`},{begin:`\\b(${jl})((${pd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${pd})[fFdD]?\\b`},{begin:`\\b(${jl})[fFdD]\\b`},{begin:`\\b0[xX]((${gd})\\.?|(${gd})?\\.(${gd}))[pP][+-]?(${jl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${gd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function lne(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=sne,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,l,o,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},c]}}const cne=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),une=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],dne=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],_k=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],wk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],fne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),hne=_k.concat(wk);function mne(e){const t=cne(e),n=hne,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],l=function(T){return{className:"string",begin:"~?"+T+".*?"+T}},c=function(T,C,R){return{className:T,begin:C,relevance:R}},u={$pattern:/[a-z-]+/,keyword:r,attribute:dne.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:o}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},m={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+fne.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},b={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},p={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+une.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+_k.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+wk.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[p]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,b,v,m,p,h,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function pne(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function gne(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(u,{contains:[]});c.contains.push(f),u.contains.push(d);let h=[n,l];return[c,u,d,f].forEach(b=>{b.contains=b.contains.concat(h)}),h=h.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,a,c,u,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},i,r,l,o]}}function yne(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function bne(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,a,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(h,m,g="\\1")=>{const b=g==="\\1"?g:t.concat(g,m);return t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,g,r)},d=(h,m,g)=>t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,g,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=f,o.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function Ene(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(Q,K)=>{K.data._beginMatch=Q[1]||Q[2]},"on:end":(Q,K)=>{K.data._beginMatch!==Q[1]&&K.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ -]`,h={scope:"string",variants:[c,l,u,d]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],b=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],p=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],T={keyword:b,literal:(Q=>{const K=[];return Q.forEach(V=>{K.push(V),V.toLowerCase()===V?K.push(V.toUpperCase()):K.push(V.toLowerCase())}),K})(g),built_in:p},C=Q=>Q.map(K=>K.replace(/\|\d+$/,"")),R={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",C(p).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},N=t.concat(r,"\\b(?!\\()"),O={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},$={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:T,contains:[$,a,O,e.C_BLOCK_COMMENT_MODE,h,m,R]},L={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",C(b).join("\\b|"),"|",C(p).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push(L);const X=[$,O,e.C_BLOCK_COMMENT_MODE,h,m,R],Z={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",...X]},...X,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:T,contains:[Z,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,L,O,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},R,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:T,contains:["self",a,O,e.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,m]}}function Tne(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function xne(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function _ne(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",h=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,m=`\\b|${r.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${h}))[eE][+-]?(${f})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${f})[jJ](?=${m})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},p={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,g,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,g,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[p]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,p,d]}]}}function wne(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Sne(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Cne(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},N=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=N,g.contains=N;const O="[>?]>",$="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",M="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",L=[{begin:/^\s*=>/,starts:{end:"$",contains:N}},{className:"meta.prompt",begin:"^("+O+"|"+$+"|"+M+")(?=[ ])",starts:{end:"$",keywords:o,contains:N}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(L).concat(c).concat(N)}}function Ane(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:a,built_in:o},illegal:""},n]}}const Nne=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),kne=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],One=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Rne=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Ine=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Mne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Lne(e){const t=Nne(e),n=Ine,r=Rne,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+kne.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mne.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:One.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Dne(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Pne(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=u,m=[...c,...l].filter(T=>!u.includes(T)),g={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},b={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},p={begin:t.concat(/\b/,t.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function v(T,{exceptions:C,when:R}={}){const N=R;return C=C||[],T.map(O=>O.match(/\|\d+$/)||C.includes(O)?O:N(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(m,{when:T=>T.length<3}),literal:a,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(f),literal:a,type:s}},{className:"type",begin:t.either(...o)},p,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,b]}}function Sk(e){return e?typeof e=="string"?e:e.source:null}function vd(e){return Pt("(?=",e,")")}function Pt(...e){return e.map(n=>Sk(n)).join("")}function $ne(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function hr(...e){return"("+($ne(e).capture?"":"?:")+e.map(r=>Sk(r)).join("|")+")"}const F8=e=>Pt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Fne=["Protocol","Type"].map(F8),tb=["init","self"].map(F8),Bne=["Any","Self"],Lg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],nb=["false","nil","true"],zne=["assignment","associativity","higherThan","left","lowerThan","none","right"],Une=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],rb=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Ck=hr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Ak=hr(Ck,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Dg=Pt(Ck,Ak,"*"),Nk=hr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Dh=hr(Nk,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Oa=Pt(Nk,Dh,"*"),Pg=Pt(/[A-Z]/,Dh,"*"),Hne=["autoclosure",Pt(/convention\(/,hr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Pt(/objc\(/,Oa,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],jne=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Gne(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,hr(...Fne,...tb)],className:{2:"keyword"}},a={match:Pt(/\./,hr(...Lg)),relevance:0},o=Lg.filter(xe=>typeof xe=="string").concat(["_|0"]),s=Lg.filter(xe=>typeof xe!="string").concat(Bne).map(F8),l={variants:[{className:"keyword",match:hr(...s,...tb)}]},c={$pattern:hr(/\b\w+/,/#\w+/),keyword:o.concat(Une),literal:nb},u=[i,a,l],d={match:Pt(/\./,hr(...rb)),relevance:0},f={className:"built_in",match:Pt(/\b/,hr(...rb),/(?=\()/)},h=[d,f],m={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:Dg},{match:`\\.(\\.|${Ak})+`}]},b=[m,g],p="([0-9]_*)+",v="([0-9a-fA-F]_*)+",T={className:"number",relevance:0,variants:[{match:`\\b(${p})(\\.(${p}))?([eE][+-]?(${p}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${p}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(xe="")=>({className:"subst",variants:[{match:Pt(/\\/,xe,/[0\\tnr"']/)},{match:Pt(/\\/,xe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(xe="")=>({className:"subst",match:Pt(/\\/,xe,/[\t ]*(?:[\r\n]|\r\n)/)}),N=(xe="")=>({className:"subst",label:"interpol",begin:Pt(/\\/,xe,/\(/),end:/\)/}),O=(xe="")=>({begin:Pt(xe,/"""/),end:Pt(/"""/,xe),contains:[C(xe),R(xe),N(xe)]}),$=(xe="")=>({begin:Pt(xe,/"/),end:Pt(/"/,xe),contains:[C(xe),N(xe)]}),M={className:"string",variants:[O(),O("#"),O("##"),O("###"),$(),$("#"),$("##"),$("###")]},L={match:Pt(/`/,Oa,/`/)},X={className:"variable",match:/\$\d+/},Z={className:"variable",match:`\\$${Dh}+`},Q=[L,X,Z],K={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:jne,contains:[...b,T,M]}]}},V={className:"keyword",match:Pt(/@/,hr(...Hne))},ne={className:"meta",match:Pt(/@/,Oa)},B=[K,V,ne],w={match:vd(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Pt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Dh,"+")},{className:"type",match:Pg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Pt(/\s+&\s+/,vd(Pg)),relevance:0}]},D={begin://,keywords:c,contains:[...r,...u,...B,m,w]};w.contains.push(D);const A={match:Pt(Oa,/\s*:/),keywords:"_|0",relevance:0},W={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",A,...r,...u,...h,...b,T,M,...Q,...B,w]},te={begin://,contains:[...r,w]},P={begin:hr(vd(Pt(Oa,/\s*:/)),vd(Pt(Oa,/\s+/,Oa,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Oa}]},Te={begin:/\(/,end:/\)/,keywords:c,contains:[P,...r,...u,...b,T,M,...B,w,W],endsParent:!0,illegal:/["']/},Se={match:[/func/,/\s+/,hr(L.match,Oa,Dg)],className:{1:"keyword",3:"title.function"},contains:[te,Te,t],illegal:[/\[/,/%/]},Ce={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[te,Te,t],illegal:/\[|%/},Ae={match:[/operator/,/\s+/,Dg],className:{1:"keyword",3:"title"}},qe={begin:[/precedencegroup/,/\s+/,Pg],className:{1:"keyword",3:"title"},contains:[w],keywords:[...zne,...nb],end:/}/};for(const xe of M.variants){const st=xe.contains.find(Ct=>Ct.label==="interpol");st.keywords=c;const St=[...u,...h,...b,T,M,...Q];st.contains=[...St,{begin:/\(/,end:/\)/,contains:["self",...St]}]}return{name:"Swift",keywords:c,contains:[...r,Se,Ce,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},Ae,qe,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},...u,...h,...b,T,M,...Q,...B,w,W]}}const Ph="[A-Za-z$_][0-9A-Za-z$_]*",kk=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Ok=["true","false","null","undefined","NaN","Infinity"],Rk=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ik=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Lk=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Dk=[].concat(Mk,Rk,Ik);function Vne(e){const t=e.regex,n=(w,{after:D})=>{const A="",end:""},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,D)=>{const A=w[0].length+w.index,W=w.input[A];if(W==="<"||W===","){D.ignoreMatch();return}W===">"&&(n(w,{after:A})||D.ignoreMatch());let te;const P=w.input.substring(A);if(te=P.match(/^\s*=/)){D.ignoreMatch();return}if((te=P.match(/^\s+extends\s+/))&&te.index===0){D.ignoreMatch();return}}},s={$pattern:Ph,keyword:kk,literal:Ok,built_in:Dk,"variable.language":Lk},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,{match:/\$\d+/},d];f.contains=T.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(T)});const C=[].concat(v,f.contains),R=C.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},O={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Rk,...Ik]}},M={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return t.concat("(?!",w.join("|"),")")}const Q={match:t.concat(/\b/,Z([...Mk,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),M,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,b,v,{match:/\$\d+/},d,$,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},Q,X,O,V,{match:/\$[(.]/}]}}function Kne(e){const t=Vne(e),n=Ph,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Ph,keyword:kk.concat(s),literal:Ok,built_in:Dk.concat(r),"variable.language":Lk},c={className:"meta",begin:"@"+n},u=(f,h,m)=>{const g=f.contains.findIndex(b=>b.label===h);if(g===-1)throw new Error("can not find mode to replace");f.contains.splice(g,1,m)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(c),t.contains=t.contains.concat([c,i,a]),u(t,"shebang",e.SHEBANG()),u(t,"use_strict",o);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function Wne(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function qne(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,l,c,s]}}function Yne(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Xne(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",d={className:"number",begin:"\\b"+s+l+c+u+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},h={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},g=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,m,a],b=[...g];return b.pop(),b.push(o),f.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}function Pk(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Pk(n)}),e}let ib=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function $k(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Do(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Qne="",ab=e=>!!e.scope,Zne=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Jne{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=$k(t)}openNode(t){if(!ab(t))return;const n=Zne(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){ab(t)&&(this.buffer+=Qne)}value(){return this.buffer}span(t){this.buffer+=``}}const ob=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class B8{constructor(){this.rootNode=ob(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=ob({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{B8._collapse(n)}))}}class ere extends B8{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Jne(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function V1(e){return e?typeof e=="string"?e:e.source:null}function Fk(e){return Tl("(?=",e,")")}function tre(e){return Tl("(?:",e,")*")}function nre(e){return Tl("(?:",e,")?")}function Tl(...e){return e.map(n=>V1(n)).join("")}function rre(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function z8(...e){return"("+(rre(e).capture?"":"?:")+e.map(r=>V1(r)).join("|")+")"}function Bk(e){return new RegExp(e.toString()+"|").exec("").length-1}function ire(e,t){const n=e&&e.exec(t);return n&&n.index===0}const are=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function U8(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let a=V1(r),o="";for(;a.length>0;){const s=are.exec(a);if(!s){o+=a;break}o+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+i):(o+=s[0],s[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const ore=/\b\B/,zk="[a-zA-Z]\\w*",H8="[a-zA-Z_]\\w*",Uk="\\b\\d+(\\.\\d+)?",Hk="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",jk="\\b(0b[01]+)",sre="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",lre=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Tl(t,/.*\b/,e.binary,/\b.*/)),Do({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},K1={begin:"\\\\[\\s\\S]",relevance:0},cre={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[K1]},ure={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[K1]},dre={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},cp=function(e,t,n={}){const r=Do({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=z8("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Tl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},fre=cp("//","$"),hre=cp("/\\*","\\*/"),mre=cp("#","$"),pre={scope:"number",begin:Uk,relevance:0},gre={scope:"number",begin:Hk,relevance:0},vre={scope:"number",begin:jk,relevance:0},yre={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[K1,{begin:/\[/,end:/\]/,relevance:0,contains:[K1]}]}]},bre={scope:"title",begin:zk,relevance:0},Ere={scope:"title",begin:H8,relevance:0},Tre={begin:"\\.\\s*"+H8,relevance:0},xre=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var yd=Object.freeze({__proto__:null,MATCH_NOTHING_RE:ore,IDENT_RE:zk,UNDERSCORE_IDENT_RE:H8,NUMBER_RE:Uk,C_NUMBER_RE:Hk,BINARY_NUMBER_RE:jk,RE_STARTERS_RE:sre,SHEBANG:lre,BACKSLASH_ESCAPE:K1,APOS_STRING_MODE:cre,QUOTE_STRING_MODE:ure,PHRASAL_WORDS_MODE:dre,COMMENT:cp,C_LINE_COMMENT_MODE:fre,C_BLOCK_COMMENT_MODE:hre,HASH_COMMENT_MODE:mre,NUMBER_MODE:pre,C_NUMBER_MODE:gre,BINARY_NUMBER_MODE:vre,REGEXP_MODE:yre,TITLE_MODE:bre,UNDERSCORE_TITLE_MODE:Ere,METHOD_GUARD:Tre,END_SAME_AS_BEGIN:xre});function _re(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function wre(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Sre(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=_re,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Cre(e,t){Array.isArray(e.illegal)&&(e.illegal=z8(...e.illegal))}function Are(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Nre(e,t){e.relevance===void 0&&(e.relevance=1)}const kre=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Tl(n.beforeMatch,Fk(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Ore=["of","and","for","in","not","or","if","then","parent","list","value"],Rre="keyword";function Gk(e,t,n=Rre){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(a){Object.assign(r,Gk(e[a],t,a))}),r;function i(a,o){t&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");r[l[0]]=[a,Ire(l[0],l[1])]})}}function Ire(e,t){return t?Number(t):Mre(e)?0:1}function Mre(e){return Ore.includes(e.toLowerCase())}const sb={},Ks=e=>{console.error(e)},lb=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ll=(e,t)=>{sb[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),sb[`${e}/${t}`]=!0)},$h=new Error;function Vk(e,t,{key:n}){let r=0;const i=e[n],a={},o={};for(let s=1;s<=t.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=Bk(t[s-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Lre(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ks("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),$h;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ks("beginScope must be object"),$h;Vk(e,e.begin,{key:"beginScope"}),e.begin=U8(e.begin,{joinWith:""})}}function Dre(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ks("skip, excludeEnd, returnEnd not compatible with endScope: {}"),$h;if(typeof e.endScope!="object"||e.endScope===null)throw Ks("endScope must be object"),$h;Vk(e,e.end,{key:"endScope"}),e.end=U8(e.end,{joinWith:""})}}function Pre(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function $re(e){Pre(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Lre(e),Dre(e)}function Fre(e){function t(o,s){return new RegExp(V1(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Bk(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(U8(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const s=new r;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function a(o,s){const l=o;if(o.isCompiled)return l;[wre,Are,$re,kre].forEach(u=>u(o,s)),e.compilerExtensions.forEach(u=>u(o,s)),o.__beforeBegin=null,[Sre,Cre,Nre].forEach(u=>u(o,s)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=Gk(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=V1(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return Bre(u==="self"?o:u)})),o.contains.forEach(function(u){a(u,l)}),o.starts&&a(o.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Do(e.classNameAliases||{}),a(e)}function Kk(e){return e?e.endsWithParent||Kk(e.starts):!1}function Bre(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Do(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Kk(e)?Do(e,{starts:e.starts?Do(e.starts):null}):Object.isFrozen(e)?Do(e):e}var zre="11.8.0";class Ure extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const $g=$k,cb=Do,ub=Symbol("nomatch"),Hre=7,Wk=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ere};function l(B){return s.noHighlightRe.test(B)}function c(B){let w=B.className+" ";w+=B.parentNode?B.parentNode.className:"";const D=s.languageDetectRe.exec(w);if(D){const A=M(D[1]);return A||(lb(a.replace("{}",D[1])),lb("Falling back to no-highlight mode for this block.",B)),A?D[1]:"no-highlight"}return w.split(/\s+/).find(A=>l(A)||M(A))}function u(B,w,D){let A="",W="";typeof w=="object"?(A=B,D=w.ignoreIllegals,W=w.language):(Ll("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ll("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),W=B,A=w),D===void 0&&(D=!0);const te={code:A,language:W};V("before:highlight",te);const P=te.result?te.result:d(te.language,te.code,D);return P.code=te.code,V("after:highlight",P),P}function d(B,w,D,A){const W=Object.create(null);function te(G,re){return G.keywords[re]}function P(){if(!le.keywords){ce.addText(be);return}let G=0;le.keywordPatternRe.lastIndex=0;let re=le.keywordPatternRe.exec(be),pe="";for(;re;){pe+=be.substring(G,re.index);const Y=j.case_insensitive?re[0].toLowerCase():re[0],J=te(le,Y);if(J){const[oe,Ne]=J;if(ce.addText(pe),pe="",W[Y]=(W[Y]||0)+1,W[Y]<=Hre&&(gt+=Ne),oe.startsWith("_"))pe+=re[0];else{const Re=j.classNameAliases[oe]||oe;Ce(re[0],Re)}}else pe+=re[0];G=le.keywordPatternRe.lastIndex,re=le.keywordPatternRe.exec(be)}pe+=be.substring(G),ce.addText(pe)}function Te(){if(be==="")return;let G=null;if(typeof le.subLanguage=="string"){if(!t[le.subLanguage]){ce.addText(be);return}G=d(le.subLanguage,be,!0,_e[le.subLanguage]),_e[le.subLanguage]=G._top}else G=h(be,le.subLanguage.length?le.subLanguage:null);le.relevance>0&&(gt+=G.relevance),ce.__addSublanguage(G._emitter,G.language)}function Se(){le.subLanguage!=null?Te():P(),be=""}function Ce(G,re){G!==""&&(ce.startScope(re),ce.addText(G),ce.endScope())}function Ae(G,re){let pe=1;const Y=re.length-1;for(;pe<=Y;){if(!G._emit[pe]){pe++;continue}const J=j.classNameAliases[G[pe]]||G[pe],oe=re[pe];J?Ce(oe,J):(be=oe,P(),be=""),pe++}}function qe(G,re){return G.scope&&typeof G.scope=="string"&&ce.openNode(j.classNameAliases[G.scope]||G.scope),G.beginScope&&(G.beginScope._wrap?(Ce(be,j.classNameAliases[G.beginScope._wrap]||G.beginScope._wrap),be=""):G.beginScope._multi&&(Ae(G.beginScope,re),be="")),le=Object.create(G,{parent:{value:le}}),le}function xe(G,re,pe){let Y=ire(G.endRe,pe);if(Y){if(G["on:end"]){const J=new ib(G);G["on:end"](re,J),J.isMatchIgnored&&(Y=!1)}if(Y){for(;G.endsParent&&G.parent;)G=G.parent;return G}}if(G.endsWithParent)return xe(G.parent,re,pe)}function st(G){return le.matcher.regexIndex===0?(be+=G[0],1):(ba=!0,0)}function St(G){const re=G[0],pe=G.rule,Y=new ib(pe),J=[pe.__beforeBegin,pe["on:begin"]];for(const oe of J)if(oe&&(oe(G,Y),Y.isMatchIgnored))return st(re);return pe.skip?be+=re:(pe.excludeBegin&&(be+=re),Se(),!pe.returnBegin&&!pe.excludeBegin&&(be=re)),qe(pe,G),pe.returnBegin?0:re.length}function Ct(G){const re=G[0],pe=w.substring(G.index),Y=xe(le,G,pe);if(!Y)return ub;const J=le;le.endScope&&le.endScope._wrap?(Se(),Ce(re,le.endScope._wrap)):le.endScope&&le.endScope._multi?(Se(),Ae(le.endScope,G)):J.skip?be+=re:(J.returnEnd||J.excludeEnd||(be+=re),Se(),J.excludeEnd&&(be=re));do le.scope&&ce.closeNode(),!le.skip&&!le.subLanguage&&(gt+=le.relevance),le=le.parent;while(le!==Y.parent);return Y.starts&&qe(Y.starts,G),J.returnEnd?0:re.length}function or(){const G=[];for(let re=le;re!==j;re=re.parent)re.scope&&G.unshift(re.scope);G.forEach(re=>ce.openNode(re))}let en={};function sr(G,re){const pe=re&&re[0];if(be+=G,pe==null)return Se(),0;if(en.type==="begin"&&re.type==="end"&&en.index===re.index&&pe===""){if(be+=w.slice(re.index,re.index+1),!i){const Y=new Error(`0 width match regex (${B})`);throw Y.languageName=B,Y.badRule=en.rule,Y}return 1}if(en=re,re.type==="begin")return St(re);if(re.type==="illegal"&&!D){const Y=new Error('Illegal lexeme "'+pe+'" for mode "'+(le.scope||"")+'"');throw Y.mode=le,Y}else if(re.type==="end"){const Y=Ct(re);if(Y!==ub)return Y}if(re.type==="illegal"&&pe==="")return 1;if(Dn>1e5&&Dn>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return be+=pe,pe.length}const j=M(B);if(!j)throw Ks(a.replace("{}",B)),new Error('Unknown language: "'+B+'"');const ie=Fre(j);let ae="",le=A||ie;const _e={},ce=new s.__emitter(s);or();let be="",gt=0,vt=0,Dn=0,ba=!1;try{if(j.__emitTokens)j.__emitTokens(w,ce);else{for(le.matcher.considerAll();;){Dn++,ba?ba=!1:le.matcher.considerAll(),le.matcher.lastIndex=vt;const G=le.matcher.exec(w);if(!G)break;const re=w.substring(vt,G.index),pe=sr(re,G);vt=G.index+pe}sr(w.substring(vt))}return ce.finalize(),ae=ce.toHTML(),{language:B,value:ae,relevance:gt,illegal:!1,_emitter:ce,_top:le}}catch(G){if(G.message&&G.message.includes("Illegal"))return{language:B,value:$g(w),illegal:!0,relevance:0,_illegalBy:{message:G.message,index:vt,context:w.slice(vt-100,vt+100),mode:G.mode,resultSoFar:ae},_emitter:ce};if(i)return{language:B,value:$g(w),illegal:!1,relevance:0,errorRaised:G,_emitter:ce,_top:le};throw G}}function f(B){const w={value:$g(B),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return w._emitter.addText(B),w}function h(B,w){w=w||s.languages||Object.keys(t);const D=f(B),A=w.filter(M).filter(X).map(Se=>d(Se,B,!1));A.unshift(D);const W=A.sort((Se,Ce)=>{if(Se.relevance!==Ce.relevance)return Ce.relevance-Se.relevance;if(Se.language&&Ce.language){if(M(Se.language).supersetOf===Ce.language)return 1;if(M(Ce.language).supersetOf===Se.language)return-1}return 0}),[te,P]=W,Te=te;return Te.secondBest=P,Te}function m(B,w,D){const A=w&&n[w]||D;B.classList.add("hljs"),B.classList.add(`language-${A}`)}function g(B){let w=null;const D=c(B);if(l(D))return;if(V("before:highlightElement",{el:B,language:D}),B.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),s.throwUnescapedHTML))throw new Ure("One of your code blocks includes unescaped HTML.",B.innerHTML);w=B;const A=w.textContent,W=D?u(A,{language:D,ignoreIllegals:!0}):h(A);B.innerHTML=W.value,m(B,D,W.language),B.result={language:W.language,re:W.relevance,relevance:W.relevance},W.secondBest&&(B.secondBest={language:W.secondBest.language,relevance:W.secondBest.relevance}),V("after:highlightElement",{el:B,result:W,text:A})}function b(B){s=cb(s,B)}const p=()=>{C(),Ll("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){C(),Ll("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let T=!1;function C(){if(document.readyState==="loading"){T=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function R(){T&&C()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function N(B,w){let D=null;try{D=w(e)}catch(A){if(Ks("Language definition for '{}' could not be registered.".replace("{}",B)),i)Ks(A);else throw A;D=o}D.name||(D.name=B),t[B]=D,D.rawDefinition=w.bind(null,e),D.aliases&&L(D.aliases,{languageName:B})}function O(B){delete t[B];for(const w of Object.keys(n))n[w]===B&&delete n[w]}function $(){return Object.keys(t)}function M(B){return B=(B||"").toLowerCase(),t[B]||t[n[B]]}function L(B,{languageName:w}){typeof B=="string"&&(B=[B]),B.forEach(D=>{n[D.toLowerCase()]=w})}function X(B){const w=M(B);return w&&!w.disableAutodetect}function Z(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=w=>{B["before:highlightBlock"](Object.assign({block:w.el},w))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=w=>{B["after:highlightBlock"](Object.assign({block:w.el},w))})}function Q(B){Z(B),r.push(B)}function K(B){const w=r.indexOf(B);w!==-1&&r.splice(w,1)}function V(B,w){const D=B;r.forEach(function(A){A[D]&&A[D](w)})}function ne(B){return Ll("10.7.0","highlightBlock will be removed entirely in v12.0"),Ll("10.7.0","Please use highlightElement now."),g(B)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:C,highlightElement:g,highlightBlock:ne,configure:b,initHighlighting:p,initHighlightingOnLoad:v,registerLanguage:N,unregisterLanguage:O,listLanguages:$,getLanguage:M,registerAliases:L,autoDetection:X,inherit:cb,addPlugin:Q,removePlugin:K}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=zre,e.regex={concat:Tl,lookahead:Fk,either:z8,optional:nre,anyNumberOfTimes:tre};for(const B in yd)typeof yd[B]=="object"&&Pk(yd[B]);return Object.assign(e,yd),e},zc=Wk({});zc.newInstance=()=>Wk({});var jre=zc;zc.HighlightJS=zc;zc.default=zc;const Ai=wr(jre);var qk={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(a,o){return i.apply(null,[a].concat(o))}function i(a){for(var o=1,s=[].slice.call(arguments),l=0,c=a.length,u="",d,f=!1,h,m,g=!1,b,p=function(){return s[o++]},v=function(){for(var T="";/\d/.test(a[l]);)T+=a[l++],d=a[l];return T.length>0?parseInt(T):null};li.data.relevance&&(i=o)}return i}function Yre(e,t){Ai.registerLanguage(e,t)}const Xre=function(e,t){if(typeof e=="string")Ai.registerAliases(t,{languageName:e});else{let n;for(n in e)Kre.call(e,n)&&Ai.registerAliases(e[n],{languageName:n})}};function Qre(e){return!!Ai.getLanguage(e)}function Zre(){return Ai.listLanguages()}class Jre{constructor(t){this.options=t,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=t.split(".").map((a,o)=>o?a+"_".repeat(o):this.options.classPrefix+a),r=this.stack[this.stack.length-1],i={type:"element",tagName:"span",properties:{className:n},children:[]};r.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const rt={highlight:Yk,highlightAuto:qre,registerLanguage:Yre,registered:Qre,listLanguages:Zre,registerAlias:Xre};rt.registerLanguage("arduino",Fte);rt.registerLanguage("bash",Bte);rt.registerLanguage("c",zte);rt.registerLanguage("cpp",Ute);rt.registerLanguage("csharp",Hte);rt.registerLanguage("css",Yte);rt.registerLanguage("diff",Xte);rt.registerLanguage("go",Qte);rt.registerLanguage("graphql",Zte);rt.registerLanguage("ini",Jte);rt.registerLanguage("java",ene);rt.registerLanguage("javascript",ane);rt.registerLanguage("json",one);rt.registerLanguage("kotlin",lne);rt.registerLanguage("less",mne);rt.registerLanguage("lua",pne);rt.registerLanguage("makefile",gne);rt.registerLanguage("markdown",vne);rt.registerLanguage("objectivec",yne);rt.registerLanguage("perl",bne);rt.registerLanguage("php",Ene);rt.registerLanguage("php-template",Tne);rt.registerLanguage("plaintext",xne);rt.registerLanguage("python",_ne);rt.registerLanguage("python-repl",wne);rt.registerLanguage("r",Sne);rt.registerLanguage("ruby",Cne);rt.registerLanguage("rust",Ane);rt.registerLanguage("scss",Lne);rt.registerLanguage("shell",Dne);rt.registerLanguage("sql",Pne);rt.registerLanguage("swift",Gne);rt.registerLanguage("typescript",Kne);rt.registerLanguage("vbnet",Wne);rt.registerLanguage("wasm",qne);rt.registerLanguage("xml",Yne);rt.registerLanguage("yaml",Xne);const xl=function(e){if(e==null)return j8;if(typeof e=="string")return tie(e);if(typeof e=="object")return eie(e);if(typeof e=="function")return Xk(e);throw new Error("Expected function, string, or array as test")};function eie(e){const t=[];let n=-1;for(;++nl&&(l=c):c&&(l!==void 0&&l>-1&&s.push(` -`.repeat(l)||" "),l=-1,s.push(c))}return s.join("")}function Zk(e,t,n){return e.type==="element"?iie(e,t,n):e.type==="text"?n.whitespace==="normal"?Jk(e,n):aie(e):[]}function iie(e,t,n){const r=eO(e,n),i=e.children||[];let a=-1,o=[];if(rie(e))return o;let s,l;for(m2(e)||pb(e)&&db(t,e,pb)?l=` -`:nie(e)?(s=2,l=2):Qk(e)&&(s=1,l=1);++a-1?r.slice(0,c):r}return(c,u)=>{nu(c,"element",(d,f,h)=>{const m=h;if(!m||!("tagName"in m)||m.tagName!=="pre"||d.tagName!=="code"||!d.properties)return;const g=die(d);if(g===!1||!g&&!s||g&&i&&i.includes(g))return;Array.isArray(d.properties.className)||(d.properties.className=[]),d.properties.className.includes(l)||d.properties.className.unshift(l);let b;try{b=g?rt.highlight(g,p2(m),{prefix:r}):rt.highlightAuto(p2(m),{prefix:r,subset:o})}catch(p){const v=p;(!a||!/Unknown language/.test(v.message))&&u.fail(v,d,"rehype-highlight:missing-language");return}!g&&b.data.language&&d.properties.className.push("language-"+b.data.language),Array.isArray(b.children)&&b.children.length>0&&(d.children=b.children)})}}function die(e){const t=e.properties&&e.properties.className;let n=-1;if(Array.isArray(t))for(;++n15?c="…"+o.slice(i-15,i):c=o.slice(0,i);var u;s+15":">","<":"<",'"':""","'":"'"},vie=/[&><"']/g;function yie(e){return String(e).replace(vie,t=>gie[t])}var tO=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bie=function(t){var n=tO(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Eie=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Tie=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},Ye={contains:fie,deflt:hie,escape:yie,hyphenate:pie,getBaseElem:tO,isCharacterBox:bie,protocolFromUrl:Tie},bf={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function xie(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class G8{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in bf)if(bf.hasOwnProperty(n)){var r=bf[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:xie(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new me("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=Ye.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class po{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return qi[_ie[this.id]]}sub(){return qi[wie[this.id]]}fracNum(){return qi[Sie[this.id]]}fracDen(){return qi[Cie[this.id]]}cramp(){return qi[Aie[this.id]]}text(){return qi[Nie[this.id]]}isTight(){return this.size>=2}}var V8=0,Fh=1,xc=2,ja=3,W1=4,ti=5,Uc=6,Jn=7,qi=[new po(V8,0,!1),new po(Fh,0,!0),new po(xc,1,!1),new po(ja,1,!0),new po(W1,2,!1),new po(ti,2,!0),new po(Uc,3,!1),new po(Jn,3,!0)],_ie=[W1,ti,W1,ti,Uc,Jn,Uc,Jn],wie=[ti,ti,ti,ti,Jn,Jn,Jn,Jn],Sie=[xc,ja,W1,ti,Uc,Jn,Uc,Jn],Cie=[ja,ja,ti,ti,Jn,Jn,Jn,Jn],Aie=[Fh,Fh,ja,ja,ti,ti,Jn,Jn],Nie=[V8,Fh,xc,ja,xc,ja,xc,ja],Ge={DISPLAY:qi[V8],TEXT:qi[xc],SCRIPT:qi[W1],SCRIPTSCRIPT:qi[Uc]},g2=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kie(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var Ef=[];g2.forEach(e=>e.blocks.forEach(t=>Ef.push(...t)));function nO(e){for(var t=0;t=Ef[t]&&e<=Ef[t+1])return!0;return!1}var Dl=80,Oie=function(t,n){return"M95,"+(622+t+n)+` + */var G6=Symbol.for("react.element"),V6=Symbol.for("react.portal"),ap=Symbol.for("react.fragment"),op=Symbol.for("react.strict_mode"),sp=Symbol.for("react.profiler"),lp=Symbol.for("react.provider"),cp=Symbol.for("react.context"),_te=Symbol.for("react.server_context"),up=Symbol.for("react.forward_ref"),dp=Symbol.for("react.suspense"),fp=Symbol.for("react.suspense_list"),hp=Symbol.for("react.memo"),mp=Symbol.for("react.lazy"),wte=Symbol.for("react.offscreen"),_k;_k=Symbol.for("react.module.reference");function gi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case G6:switch(e=e.type,e){case ap:case sp:case op:case dp:case fp:return e;default:switch(e=e&&e.$$typeof,e){case _te:case cp:case up:case mp:case hp:case lp:return e;default:return t}}case V6:return t}}}St.ContextConsumer=cp;St.ContextProvider=lp;St.Element=G6;St.ForwardRef=up;St.Fragment=ap;St.Lazy=mp;St.Memo=hp;St.Portal=V6;St.Profiler=sp;St.StrictMode=op;St.Suspense=dp;St.SuspenseList=fp;St.isAsyncMode=function(){return!1};St.isConcurrentMode=function(){return!1};St.isContextConsumer=function(e){return gi(e)===cp};St.isContextProvider=function(e){return gi(e)===lp};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===G6};St.isForwardRef=function(e){return gi(e)===up};St.isFragment=function(e){return gi(e)===ap};St.isLazy=function(e){return gi(e)===mp};St.isMemo=function(e){return gi(e)===hp};St.isPortal=function(e){return gi(e)===V6};St.isProfiler=function(e){return gi(e)===sp};St.isStrictMode=function(e){return gi(e)===op};St.isSuspense=function(e){return gi(e)===dp};St.isSuspenseList=function(e){return gi(e)===fp};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ap||e===sp||e===op||e===dp||e===fp||e===wte||typeof e=="object"&&e!==null&&(e.$$typeof===mp||e.$$typeof===hp||e.$$typeof===lp||e.$$typeof===cp||e.$$typeof===up||e.$$typeof===_k||e.getModuleId!==void 0)};St.typeOf=gi;Tk.exports=St;var Ste=Tk.exports;const Cte=wr(Ste);function Ate(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function tb(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function wk(e){return e.join(" ").trim()}function nb(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function Sk(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var K6={exports:{}},rb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nte=/\n/g,kte=/^\s*/,Ote=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Rte=/^:\s*/,Mte=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ite=/^[;\s]*/,Lte=/^\s+|\s+$/g,Dte=` +`,ib="/",ab="*",Ls="",Pte="comment",$te="declaration",Fte=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(Nte);g&&(n+=g.length);var E=m.lastIndexOf(Dte);r=~E?m.length-E:r+m.length}function a(){var m={line:n,column:r};return function(g){return g.position=new o(m),c(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var E=g[0];return i(E),e=e.slice(E.length),g}}function c(){l(kte)}function u(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=a();if(!(ib!=e.charAt(0)||ab!=e.charAt(1))){for(var g=2;Ls!=e.charAt(g)&&(ab!=e.charAt(g)||ib!=e.charAt(g+1));)++g;if(g+=2,Ls===e.charAt(g-1))return s("End of comment missing");var E=e.slice(2,g-2);return r+=2,i(E),e=e.slice(g),r+=2,m({type:Pte,comment:E})}}function f(){var m=a(),g=l(Ote);if(g){if(d(),!l(Rte))return s("property missing ':'");var E=l(Mte),p=m({type:$te,property:ob(g[0].replace(rb,Ls)),value:E?ob(E[0].replace(rb,Ls)):Ls});return l(Ite),p}}function h(){var m=[];u(m);for(var g;g=f();)g!==!1&&(m.push(g),u(m));return m}return c(),h()};function ob(e){return e?e.replace(Lte,Ls):Ls}var Bte=Fte;function Ck(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=Bte(e),a=typeof t=="function",o,s,l=0,c=i.length;l0?He.createElement(h,l,d):He.createElement(h,l)}function Gte(e){let t=-1;for(;++t for more info)`),delete Sd[a]}const t=dZ().use(gee).use(e.remarkPlugins||[]).use(ote,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Tte,e),n=new BN;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=He.createElement(He.Fragment,{},Ak({options:e,schema:z0,listDepth:0},r));return e.className&&(i=He.createElement("div",{className:e.className},i)),i}Nk.propTypes={children:et.string,className:et.string,allowElement:et.func,allowedElements:et.arrayOf(et.string),disallowedElements:et.arrayOf(et.string),unwrapDisallowed:et.bool,remarkPlugins:et.arrayOf(et.oneOfType([et.object,et.func,et.arrayOf(et.oneOfType([et.bool,et.string,et.object,et.func,et.arrayOf(et.any)]))])),rehypePlugins:et.arrayOf(et.oneOfType([et.object,et.func,et.arrayOf(et.oneOfType([et.bool,et.string,et.object,et.func,et.arrayOf(et.any)]))])),sourcePos:et.bool,rawSourcePos:et.bool,skipHtml:et.bool,includeElementIndex:et.bool,transformLinkUri:et.oneOfType([et.func,et.bool]),linkTarget:et.oneOfType([et.func,et.string]),transformImageUri:et.func,components:et.object};function Xte(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],p=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},O={className:"function.dispatch",relevance:0,keywords:{_hint:p},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[O,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:N.concat([{begin:/\(/,end:/\)/,keywords:C,contains:N.concat(["self"]),relevance:0}]),relevance:0},D={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Qte(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Xte(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Zte(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],g={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],p=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...E,...p,"set","shopt",...v,...T]},contains:[d,e.SHEBANG(),f,c,e.HASH_COMMENT_MODE,a,g,o,s,l,n]}}function Jte(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",E={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},p=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:p.concat([{begin:/\(/,end:/\)/,keywords:E,contains:p.concat(["self"]),relevance:0}]),relevance:0},T={begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:E,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:E}}}function ene(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},h=t.optional(i)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],p=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:g,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},O={className:"function.dispatch",relevance:0,keywords:{_hint:p},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},N=[O,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:N.concat([{begin:/\(/,end:/\)/,keywords:C,contains:N.concat(["self"]),relevance:0}]),relevance:0},D={className:"function",begin:"("+o+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:h,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function tne(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=e.inherit(d,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},g=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[g,h,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[m,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},v=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",T={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},E,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[E,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},T]}}const nne=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),rne=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ine=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ane=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],one=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],sne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function lne(e){const t=e.regex,n=nne(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+ane.join("|")+")"},{begin:":(:)?("+one.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+sne.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:ine.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+rne.join("|")+")\\b"}]}}function cne(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function une(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"kk(e,t,n-1))}function hne(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+kk("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,lb,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},lb,c]}}const cb="[A-Za-z$_][0-9A-Za-z$_]*",mne=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],pne=["true","false","null","undefined","NaN","Infinity"],Ok=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Rk=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gne=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vne=[].concat(Mk,Ok,Rk);function yne(e){const t=e.regex,n=(w,{after:P})=>{const A="",end:""},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,P)=>{const A=w[0].length+w.index,W=w.input[A];if(W==="<"||W===","){P.ignoreMatch();return}W===">"&&(n(w,{after:A})||P.ignoreMatch());let te;const $=w.input.substring(A);if(te=$.match(/^\s*=/)){P.ignoreMatch();return}if((te=$.match(/^\s+extends\s+/))&&te.index===0){P.ignoreMatch();return}}},s={$pattern:cb,keyword:mne,literal:pne,built_in:vne,"variable.language":gne},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,E,{match:/\$\d+/},d];f.contains=T.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(T)});const C=[].concat(v,f.contains),O=C.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ok,...Rk]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return t.concat("(?!",w.join("|"),")")}const Q={match:t.concat(/\b/,Z([...Mk,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:D},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,E,v,{match:/\$\d+/},d,D,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},Q,X,R,V,{match:/\$[(.]/}]}}function bne(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var ql="[0-9](_*[0-9])*",Nd=`\\.(${ql})`,kd="[0-9a-fA-F](_*[0-9a-fA-F])*",Ene={className:"number",variants:[{begin:`(\\b(${ql})((${Nd})|\\.)?|(${Nd}))[eE][+-]?(${ql})[fFdD]?\\b`},{begin:`\\b(${ql})((${Nd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Nd})[fFdD]?\\b`},{begin:`\\b(${ql})[fFdD]\\b`},{begin:`\\b0[xX]((${kd})\\.?|(${kd})?\\.(${kd}))[pP][+-]?(${ql})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${kd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function xne(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=Ene,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,l,o,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},c]}}const Tne=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),_ne=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],wne=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Ik=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Lk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Sne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),Cne=Ik.concat(Lk);function Ane(e){const t=Tne(e),n=Cne,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],l=function(T){return{className:"string",begin:"~?"+T+".*?"+T}},c=function(T,C,O){return{className:T,begin:C,relevance:O}},u={$pattern:/[a-z-]+/,keyword:r,attribute:wne.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:o}),h={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},m={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Sne.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},E={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},p={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+_ne.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Ik.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Lk.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[p]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,E,v,m,p,h,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Nne(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function kne(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),f=e.inherit(u,{contains:[]});c.contains.push(f),u.contains.push(d);let h=[n,l];return[c,u,d,f].forEach(E=>{E.contains=E.contains.concat(h)}),h=h.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},n,a,c,u,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},i,r,l,o]}}function Rne(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Mne(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,a,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(h,m,g="\\1")=>{const E=g==="\\1"?g:t.concat(g,m);return t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,g,r)},d=(h,m,g)=>t.concat(t.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,g,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=f,o.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function Ine(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(Q,K)=>{K.data._beginMatch=Q[1]||Q[2]},"on:end":(Q,K)=>{K.data._beginMatch!==Q[1]&&K.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ +]`,h={scope:"string",variants:[c,l,u,d]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},g=["false","null","true"],E=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],p=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],T={keyword:E,literal:(Q=>{const K=[];return Q.forEach(V=>{K.push(V),V.toLowerCase()===V?K.push(V.toUpperCase()):K.push(V.toLowerCase())}),K})(g),built_in:p},C=Q=>Q.map(K=>K.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",C(p).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},N=t.concat(r,"\\b(?!\\()"),R={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},D={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:T,contains:[D,a,R,e.C_BLOCK_COMMENT_MODE,h,m,O]},L={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",C(E).join("\\b|"),"|",C(p).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(L);const X=[D,R,e.C_BLOCK_COMMENT_MODE,h,m,O],Z={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]},contains:["self",...X]},...X,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:T,contains:[Z,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,L,R,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:T,contains:["self",a,R,e.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,m]}}function Lne(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Dne(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Pne(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",h=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,m=`\\b|${r.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${h}))[eE][+-]?(${f})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${f})[jJ](?=${m})`}]},E={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},p={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,g,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,g,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,E,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[p]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,p,d]}]}}function $ne(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Fne(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Bne(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},N=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=N,g.contains=N;const R="[>?]>",D="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",I="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",L=[{begin:/^\s*=>/,starts:{end:"$",contains:N}},{className:"meta.prompt",begin:"^("+R+"|"+D+"|"+I+")(?=[ ])",starts:{end:"$",keywords:o,contains:N}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(L).concat(c).concat(N)}}function zne(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:a,built_in:o},illegal:""},n]}}const Une=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),jne=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Hne=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Gne=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Vne=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Kne=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Wne(e){const t=Une(e),n=Vne,r=Gne,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+jne.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Kne.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Hne.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function qne(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Yne(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=u,m=[...c,...l].filter(T=>!u.includes(T)),g={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},E={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},p={begin:t.concat(/\b/,t.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function v(T,{exceptions:C,when:O}={}){const N=O;return C=C||[],T.map(R=>R.match(/\|\d+$/)||C.includes(R)?R:N(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(m,{when:T=>T.length<3}),literal:a,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(f),literal:a,type:s}},{className:"type",begin:t.either(...o)},p,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,E]}}function Dk(e){return e?typeof e=="string"?e:e.source:null}function Od(e){return $t("(?=",e,")")}function $t(...e){return e.map(n=>Dk(n)).join("")}function Xne(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function mr(...e){return"("+(Xne(e).capture?"":"?:")+e.map(r=>Dk(r)).join("|")+")"}const W6=e=>$t(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Qne=["Protocol","Type"].map(W6),ub=["init","self"].map(W6),Zne=["Any","Self"],zg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],db=["false","nil","true"],Jne=["assignment","associativity","higherThan","left","lowerThan","none","right"],ere=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],fb=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Pk=mr(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),$k=mr(Pk,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ug=$t(Pk,$k,"*"),Fk=mr(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),qh=mr(Fk,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ma=$t(Fk,qh,"*"),jg=$t(/[A-Z]/,qh,"*"),tre=["autoclosure",$t(/convention\(/,mr("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",$t(/objc\(/,Ma,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],nre=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function rre(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,mr(...Qne,...ub)],className:{2:"keyword"}},a={match:$t(/\./,mr(...zg)),relevance:0},o=zg.filter(Te=>typeof Te=="string").concat(["_|0"]),s=zg.filter(Te=>typeof Te!="string").concat(Zne).map(W6),l={variants:[{className:"keyword",match:mr(...s,...ub)}]},c={$pattern:mr(/\b\w+/,/#\w+/),keyword:o.concat(ere),literal:db},u=[i,a,l],d={match:$t(/\./,mr(...fb)),relevance:0},f={className:"built_in",match:$t(/\b/,mr(...fb),/(?=\()/)},h=[d,f],m={match:/->/,relevance:0},g={className:"operator",relevance:0,variants:[{match:Ug},{match:`\\.(\\.|${$k})+`}]},E=[m,g],p="([0-9]_*)+",v="([0-9a-fA-F]_*)+",T={className:"number",relevance:0,variants:[{match:`\\b(${p})(\\.(${p}))?([eE][+-]?(${p}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${p}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(Te="")=>({className:"subst",variants:[{match:$t(/\\/,Te,/[0\\tnr"']/)},{match:$t(/\\/,Te,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(Te="")=>({className:"subst",match:$t(/\\/,Te,/[\t ]*(?:[\r\n]|\r\n)/)}),N=(Te="")=>({className:"subst",label:"interpol",begin:$t(/\\/,Te,/\(/),end:/\)/}),R=(Te="")=>({begin:$t(Te,/"""/),end:$t(/"""/,Te),contains:[C(Te),O(Te),N(Te)]}),D=(Te="")=>({begin:$t(Te,/"/),end:$t(/"/,Te),contains:[C(Te),N(Te)]}),I={className:"string",variants:[R(),R("#"),R("##"),R("###"),D(),D("#"),D("##"),D("###")]},L={match:$t(/`/,Ma,/`/)},X={className:"variable",match:/\$\d+/},Z={className:"variable",match:`\\$${qh}+`},Q=[L,X,Z],K={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:nre,contains:[...E,T,I]}]}},V={className:"keyword",match:$t(/@/,mr(...tre))},ne={className:"meta",match:$t(/@/,Ma)},B=[K,V,ne],w={match:Od(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:$t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,qh,"+")},{className:"type",match:jg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:$t(/\s+&\s+/,Od(jg)),relevance:0}]},P={begin://,keywords:c,contains:[...r,...u,...B,m,w]};w.contains.push(P);const A={match:$t(Ma,/\s*:/),keywords:"_|0",relevance:0},W={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",A,...r,...u,...h,...E,T,I,...Q,...B,w]},te={begin://,contains:[...r,w]},$={begin:mr(Od($t(Ma,/\s*:/)),Od($t(Ma,/\s+/,Ma,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ma}]},xe={begin:/\(/,end:/\)/,keywords:c,contains:[$,...r,...u,...E,T,I,...B,w,W],endsParent:!0,illegal:/["']/},Se={match:[/func/,/\s+/,mr(L.match,Ma,Ug)],className:{1:"keyword",3:"title.function"},contains:[te,xe,t],illegal:[/\[/,/%/]},Ce={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[te,xe,t],illegal:/\[|%/},Ae={match:[/operator/,/\s+/,Ug],className:{1:"keyword",3:"title"}},qe={begin:[/precedencegroup/,/\s+/,jg],className:{1:"keyword",3:"title"},contains:[w],keywords:[...Jne,...db],end:/}/};for(const Te of I.variants){const st=Te.contains.find(At=>At.label==="interpol");st.keywords=c;const Ct=[...u,...h,...E,T,I,...Q];st.contains=[...Ct,{begin:/\(/,end:/\)/,contains:["self",...Ct]}]}return{name:"Swift",keywords:c,contains:[...r,Se,Ce,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},Ae,qe,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},...u,...h,...E,T,I,...Q,...B,w,W]}}const Yh="[A-Za-z$_][0-9A-Za-z$_]*",Bk=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],zk=["true","false","null","undefined","NaN","Infinity"],Uk=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jk=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Hk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gk=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Vk=[].concat(Hk,Uk,jk);function ire(e){const t=e.regex,n=(w,{after:P})=>{const A="",end:""},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,P)=>{const A=w[0].length+w.index,W=w.input[A];if(W==="<"||W===","){P.ignoreMatch();return}W===">"&&(n(w,{after:A})||P.ignoreMatch());let te;const $=w.input.substring(A);if(te=$.match(/^\s*=/)){P.ignoreMatch();return}if((te=$.match(/^\s+extends\s+/))&&te.index===0){P.ignoreMatch();return}}},s={$pattern:Yh,keyword:Bk,literal:zk,built_in:Vk,"variable.language":Gk},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},g={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,E,{match:/\$\d+/},d];f.contains=T.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(T)});const C=[].concat(v,f.contains),O=C.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Uk,...jk]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return t.concat("(?!",w.join("|"),")")}const Q={match:t.concat(/\b/,Z([...Hk,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:D},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,m,g,E,v,{match:/\$\d+/},d,D,{className:"attr",begin:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},K,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},Q,X,R,V,{match:/\$[(.]/}]}}function are(e){const t=ire(e),n=Yh,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Yh,keyword:Bk.concat(s),literal:zk,built_in:Vk.concat(r),"variable.language":Gk},c={className:"meta",begin:"@"+n},u=(f,h,m)=>{const g=f.contains.findIndex(E=>E.label===h);if(g===-1)throw new Error("can not find mode to replace");f.contains.splice(g,1,m)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(c),t.contains=t.contains.concat([c,i,a]),u(t,"shebang",e.SHEBANG()),u(t,"use_strict",o);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function ore(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function sre(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,l,c,s]}}function lre(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function cre(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",d={className:"number",begin:"\\b"+s+l+c+u+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},h={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},g=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,m,a],E=[...g];return E.pop(),E.push(o),f.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:g}}function Kk(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Kk(n)}),e}let hb=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Wk(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Fo(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const ure="",mb=e=>!!e.scope,dre=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class fre{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Wk(t)}openNode(t){if(!mb(t))return;const n=dre(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){mb(t)&&(this.buffer+=ure)}value(){return this.buffer}span(t){this.buffer+=``}}const pb=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class q6{constructor(){this.rootNode=pb(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=pb({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{q6._collapse(n)}))}}class hre extends q6{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new fre(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function t0(e){return e?typeof e=="string"?e:e.source:null}function qk(e){return Cl("(?=",e,")")}function mre(e){return Cl("(?:",e,")*")}function pre(e){return Cl("(?:",e,")?")}function Cl(...e){return e.map(n=>t0(n)).join("")}function gre(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Y6(...e){return"("+(gre(e).capture?"":"?:")+e.map(r=>t0(r)).join("|")+")"}function Yk(e){return new RegExp(e.toString()+"|").exec("").length-1}function vre(e,t){const n=e&&e.exec(t);return n&&n.index===0}const yre=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function X6(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let a=t0(r),o="";for(;a.length>0;){const s=yre.exec(a);if(!s){o+=a;break}o+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?o+="\\"+String(Number(s[1])+i):(o+=s[0],s[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const bre=/\b\B/,Xk="[a-zA-Z]\\w*",Q6="[a-zA-Z_]\\w*",Qk="\\b\\d+(\\.\\d+)?",Zk="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Jk="\\b(0b[01]+)",Ere="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",xre=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Cl(t,/.*\b/,e.binary,/\b.*/)),Fo({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},n0={begin:"\\\\[\\s\\S]",relevance:0},Tre={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[n0]},_re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[n0]},wre={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},pp=function(e,t,n={}){const r=Fo({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Y6("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Cl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Sre=pp("//","$"),Cre=pp("/\\*","\\*/"),Are=pp("#","$"),Nre={scope:"number",begin:Qk,relevance:0},kre={scope:"number",begin:Zk,relevance:0},Ore={scope:"number",begin:Jk,relevance:0},Rre={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[n0,{begin:/\[/,end:/\]/,relevance:0,contains:[n0]}]}]},Mre={scope:"title",begin:Xk,relevance:0},Ire={scope:"title",begin:Q6,relevance:0},Lre={begin:"\\.\\s*"+Q6,relevance:0},Dre=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var Rd=Object.freeze({__proto__:null,MATCH_NOTHING_RE:bre,IDENT_RE:Xk,UNDERSCORE_IDENT_RE:Q6,NUMBER_RE:Qk,C_NUMBER_RE:Zk,BINARY_NUMBER_RE:Jk,RE_STARTERS_RE:Ere,SHEBANG:xre,BACKSLASH_ESCAPE:n0,APOS_STRING_MODE:Tre,QUOTE_STRING_MODE:_re,PHRASAL_WORDS_MODE:wre,COMMENT:pp,C_LINE_COMMENT_MODE:Sre,C_BLOCK_COMMENT_MODE:Cre,HASH_COMMENT_MODE:Are,NUMBER_MODE:Nre,C_NUMBER_MODE:kre,BINARY_NUMBER_MODE:Ore,REGEXP_MODE:Rre,TITLE_MODE:Mre,UNDERSCORE_TITLE_MODE:Ire,METHOD_GUARD:Lre,END_SAME_AS_BEGIN:Dre});function Pre(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function $re(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Fre(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Pre,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Bre(e,t){Array.isArray(e.illegal)&&(e.illegal=Y6(...e.illegal))}function zre(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Ure(e,t){e.relevance===void 0&&(e.relevance=1)}const jre=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Cl(n.beforeMatch,qk(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},Hre=["of","and","for","in","not","or","if","then","parent","list","value"],Gre="keyword";function eO(e,t,n=Gre){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(a){Object.assign(r,eO(e[a],t,a))}),r;function i(a,o){t&&(o=o.map(s=>s.toLowerCase())),o.forEach(function(s){const l=s.split("|");r[l[0]]=[a,Vre(l[0],l[1])]})}}function Vre(e,t){return t?Number(t):Kre(e)?0:1}function Kre(e){return Hre.includes(e.toLowerCase())}const gb={},Ws=e=>{console.error(e)},vb=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Bl=(e,t)=>{gb[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),gb[`${e}/${t}`]=!0)},Xh=new Error;function tO(e,t,{key:n}){let r=0;const i=e[n],a={},o={};for(let s=1;s<=t.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=Yk(t[s-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Wre(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ws("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Xh;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ws("beginScope must be object"),Xh;tO(e,e.begin,{key:"beginScope"}),e.begin=X6(e.begin,{joinWith:""})}}function qre(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ws("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Xh;if(typeof e.endScope!="object"||e.endScope===null)throw Ws("endScope must be object"),Xh;tO(e,e.end,{key:"endScope"}),e.end=X6(e.end,{joinWith:""})}}function Yre(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Xre(e){Yre(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Wre(e),qre(e)}function Qre(e){function t(o,s){return new RegExp(t0(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Yk(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(X6(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,f)=>f>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const s=new r;return o.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),s}function a(o,s){const l=o;if(o.isCompiled)return l;[$re,zre,Xre,jre].forEach(u=>u(o,s)),e.compilerExtensions.forEach(u=>u(o,s)),o.__beforeBegin=null,[Fre,Bre,Ure].forEach(u=>u(o,s)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=eO(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=t0(l.end)||"",o.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+s.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return Zre(u==="self"?o:u)})),o.contains.forEach(function(u){a(u,l)}),o.starts&&a(o.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Fo(e.classNameAliases||{}),a(e)}function nO(e){return e?e.endsWithParent||nO(e.starts):!1}function Zre(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Fo(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:nO(e)?Fo(e,{starts:e.starts?Fo(e.starts):null}):Object.isFrozen(e)?Fo(e):e}var Jre="11.8.0";class eie extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const Hg=Wk,yb=Fo,bb=Symbol("nomatch"),tie=7,rO=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const a="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:hre};function l(B){return s.noHighlightRe.test(B)}function c(B){let w=B.className+" ";w+=B.parentNode?B.parentNode.className:"";const P=s.languageDetectRe.exec(w);if(P){const A=I(P[1]);return A||(vb(a.replace("{}",P[1])),vb("Falling back to no-highlight mode for this block.",B)),A?P[1]:"no-highlight"}return w.split(/\s+/).find(A=>l(A)||I(A))}function u(B,w,P){let A="",W="";typeof w=="object"?(A=B,P=w.ignoreIllegals,W=w.language):(Bl("10.7.0","highlight(lang, code, ...args) has been deprecated."),Bl("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),W=B,A=w),P===void 0&&(P=!0);const te={code:A,language:W};V("before:highlight",te);const $=te.result?te.result:d(te.language,te.code,P);return $.code=te.code,V("after:highlight",$),$}function d(B,w,P,A){const W=Object.create(null);function te(G,re){return G.keywords[re]}function $(){if(!le.keywords){ce.addText(be);return}let G=0;le.keywordPatternRe.lastIndex=0;let re=le.keywordPatternRe.exec(be),pe="";for(;re;){pe+=be.substring(G,re.index);const Y=H.case_insensitive?re[0].toLowerCase():re[0],J=te(le,Y);if(J){const[oe,Ne]=J;if(ce.addText(pe),pe="",W[Y]=(W[Y]||0)+1,W[Y]<=tie&&(vt+=Ne),oe.startsWith("_"))pe+=re[0];else{const Re=H.classNameAliases[oe]||oe;Ce(re[0],Re)}}else pe+=re[0];G=le.keywordPatternRe.lastIndex,re=le.keywordPatternRe.exec(be)}pe+=be.substring(G),ce.addText(pe)}function xe(){if(be==="")return;let G=null;if(typeof le.subLanguage=="string"){if(!t[le.subLanguage]){ce.addText(be);return}G=d(le.subLanguage,be,!0,_e[le.subLanguage]),_e[le.subLanguage]=G._top}else G=h(be,le.subLanguage.length?le.subLanguage:null);le.relevance>0&&(vt+=G.relevance),ce.__addSublanguage(G._emitter,G.language)}function Se(){le.subLanguage!=null?xe():$(),be=""}function Ce(G,re){G!==""&&(ce.startScope(re),ce.addText(G),ce.endScope())}function Ae(G,re){let pe=1;const Y=re.length-1;for(;pe<=Y;){if(!G._emit[pe]){pe++;continue}const J=H.classNameAliases[G[pe]]||G[pe],oe=re[pe];J?Ce(oe,J):(be=oe,$(),be=""),pe++}}function qe(G,re){return G.scope&&typeof G.scope=="string"&&ce.openNode(H.classNameAliases[G.scope]||G.scope),G.beginScope&&(G.beginScope._wrap?(Ce(be,H.classNameAliases[G.beginScope._wrap]||G.beginScope._wrap),be=""):G.beginScope._multi&&(Ae(G.beginScope,re),be="")),le=Object.create(G,{parent:{value:le}}),le}function Te(G,re,pe){let Y=vre(G.endRe,pe);if(Y){if(G["on:end"]){const J=new hb(G);G["on:end"](re,J),J.isMatchIgnored&&(Y=!1)}if(Y){for(;G.endsParent&&G.parent;)G=G.parent;return G}}if(G.endsWithParent)return Te(G.parent,re,pe)}function st(G){return le.matcher.regexIndex===0?(be+=G[0],1):(xa=!0,0)}function Ct(G){const re=G[0],pe=G.rule,Y=new hb(pe),J=[pe.__beforeBegin,pe["on:begin"]];for(const oe of J)if(oe&&(oe(G,Y),Y.isMatchIgnored))return st(re);return pe.skip?be+=re:(pe.excludeBegin&&(be+=re),Se(),!pe.returnBegin&&!pe.excludeBegin&&(be=re)),qe(pe,G),pe.returnBegin?0:re.length}function At(G){const re=G[0],pe=w.substring(G.index),Y=Te(le,G,pe);if(!Y)return bb;const J=le;le.endScope&&le.endScope._wrap?(Se(),Ce(re,le.endScope._wrap)):le.endScope&&le.endScope._multi?(Se(),Ae(le.endScope,G)):J.skip?be+=re:(J.returnEnd||J.excludeEnd||(be+=re),Se(),J.excludeEnd&&(be=re));do le.scope&&ce.closeNode(),!le.skip&&!le.subLanguage&&(vt+=le.relevance),le=le.parent;while(le!==Y.parent);return Y.starts&&qe(Y.starts,G),J.returnEnd?0:re.length}function sr(){const G=[];for(let re=le;re!==H;re=re.parent)re.scope&&G.unshift(re.scope);G.forEach(re=>ce.openNode(re))}let tn={};function lr(G,re){const pe=re&&re[0];if(be+=G,pe==null)return Se(),0;if(tn.type==="begin"&&re.type==="end"&&tn.index===re.index&&pe===""){if(be+=w.slice(re.index,re.index+1),!i){const Y=new Error(`0 width match regex (${B})`);throw Y.languageName=B,Y.badRule=tn.rule,Y}return 1}if(tn=re,re.type==="begin")return Ct(re);if(re.type==="illegal"&&!P){const Y=new Error('Illegal lexeme "'+pe+'" for mode "'+(le.scope||"")+'"');throw Y.mode=le,Y}else if(re.type==="end"){const Y=At(re);if(Y!==bb)return Y}if(re.type==="illegal"&&pe==="")return 1;if(Un>1e5&&Un>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return be+=pe,pe.length}const H=I(B);if(!H)throw Ws(a.replace("{}",B)),new Error('Unknown language: "'+B+'"');const ie=Qre(H);let ae="",le=A||ie;const _e={},ce=new s.__emitter(s);sr();let be="",vt=0,yt=0,Un=0,xa=!1;try{if(H.__emitTokens)H.__emitTokens(w,ce);else{for(le.matcher.considerAll();;){Un++,xa?xa=!1:le.matcher.considerAll(),le.matcher.lastIndex=yt;const G=le.matcher.exec(w);if(!G)break;const re=w.substring(yt,G.index),pe=lr(re,G);yt=G.index+pe}lr(w.substring(yt))}return ce.finalize(),ae=ce.toHTML(),{language:B,value:ae,relevance:vt,illegal:!1,_emitter:ce,_top:le}}catch(G){if(G.message&&G.message.includes("Illegal"))return{language:B,value:Hg(w),illegal:!0,relevance:0,_illegalBy:{message:G.message,index:yt,context:w.slice(yt-100,yt+100),mode:G.mode,resultSoFar:ae},_emitter:ce};if(i)return{language:B,value:Hg(w),illegal:!1,relevance:0,errorRaised:G,_emitter:ce,_top:le};throw G}}function f(B){const w={value:Hg(B),illegal:!1,relevance:0,_top:o,_emitter:new s.__emitter(s)};return w._emitter.addText(B),w}function h(B,w){w=w||s.languages||Object.keys(t);const P=f(B),A=w.filter(I).filter(X).map(Se=>d(Se,B,!1));A.unshift(P);const W=A.sort((Se,Ce)=>{if(Se.relevance!==Ce.relevance)return Ce.relevance-Se.relevance;if(Se.language&&Ce.language){if(I(Se.language).supersetOf===Ce.language)return 1;if(I(Ce.language).supersetOf===Se.language)return-1}return 0}),[te,$]=W,xe=te;return xe.secondBest=$,xe}function m(B,w,P){const A=w&&n[w]||P;B.classList.add("hljs"),B.classList.add(`language-${A}`)}function g(B){let w=null;const P=c(B);if(l(P))return;if(V("before:highlightElement",{el:B,language:P}),B.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),s.throwUnescapedHTML))throw new eie("One of your code blocks includes unescaped HTML.",B.innerHTML);w=B;const A=w.textContent,W=P?u(A,{language:P,ignoreIllegals:!0}):h(A);B.innerHTML=W.value,m(B,P,W.language),B.result={language:W.language,re:W.relevance,relevance:W.relevance},W.secondBest&&(B.secondBest={language:W.secondBest.language,relevance:W.secondBest.relevance}),V("after:highlightElement",{el:B,result:W,text:A})}function E(B){s=yb(s,B)}const p=()=>{C(),Bl("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){C(),Bl("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let T=!1;function C(){if(document.readyState==="loading"){T=!0;return}document.querySelectorAll(s.cssSelector).forEach(g)}function O(){T&&C()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function N(B,w){let P=null;try{P=w(e)}catch(A){if(Ws("Language definition for '{}' could not be registered.".replace("{}",B)),i)Ws(A);else throw A;P=o}P.name||(P.name=B),t[B]=P,P.rawDefinition=w.bind(null,e),P.aliases&&L(P.aliases,{languageName:B})}function R(B){delete t[B];for(const w of Object.keys(n))n[w]===B&&delete n[w]}function D(){return Object.keys(t)}function I(B){return B=(B||"").toLowerCase(),t[B]||t[n[B]]}function L(B,{languageName:w}){typeof B=="string"&&(B=[B]),B.forEach(P=>{n[P.toLowerCase()]=w})}function X(B){const w=I(B);return w&&!w.disableAutodetect}function Z(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=w=>{B["before:highlightBlock"](Object.assign({block:w.el},w))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=w=>{B["after:highlightBlock"](Object.assign({block:w.el},w))})}function Q(B){Z(B),r.push(B)}function K(B){const w=r.indexOf(B);w!==-1&&r.splice(w,1)}function V(B,w){const P=B;r.forEach(function(A){A[P]&&A[P](w)})}function ne(B){return Bl("10.7.0","highlightBlock will be removed entirely in v12.0"),Bl("10.7.0","Please use highlightElement now."),g(B)}Object.assign(e,{highlight:u,highlightAuto:h,highlightAll:C,highlightElement:g,highlightBlock:ne,configure:E,initHighlighting:p,initHighlightingOnLoad:v,registerLanguage:N,unregisterLanguage:R,listLanguages:D,getLanguage:I,registerAliases:L,autoDetection:X,inherit:yb,addPlugin:Q,removePlugin:K}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Jre,e.regex={concat:Cl,lookahead:qk,either:Y6,optional:pre,anyNumberOfTimes:mre};for(const B in Rd)typeof Rd[B]=="object"&&Kk(Rd[B]);return Object.assign(e,Rd),e},Wc=rO({});Wc.newInstance=()=>rO({});var nie=Wc;Wc.HighlightJS=Wc;Wc.default=Wc;const Oi=wr(nie);var iO={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(a,o){return i.apply(null,[a].concat(o))}function i(a){for(var o=1,s=[].slice.call(arguments),l=0,c=a.length,u="",d,f=!1,h,m,g=!1,E,p=function(){return s[o++]},v=function(){for(var T="";/\d/.test(a[l]);)T+=a[l++],d=a[l];return T.length>0?parseInt(T):null};li.data.relevance&&(i=o)}return i}function lie(e,t){Oi.registerLanguage(e,t)}const cie=function(e,t){if(typeof e=="string")Oi.registerAliases(t,{languageName:e});else{let n;for(n in e)aie.call(e,n)&&Oi.registerAliases(e[n],{languageName:n})}};function uie(e){return!!Oi.getLanguage(e)}function die(){return Oi.listLanguages()}class fie{constructor(t){this.options=t,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=t.split(".").map((a,o)=>o?a+"_".repeat(o):this.options.classPrefix+a),r=this.stack[this.stack.length-1],i={type:"element",tagName:"span",properties:{className:n},children:[]};r.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const it={highlight:aO,highlightAuto:sie,registerLanguage:lie,registered:uie,listLanguages:die,registerAlias:cie};it.registerLanguage("arduino",Qte);it.registerLanguage("bash",Zte);it.registerLanguage("c",Jte);it.registerLanguage("cpp",ene);it.registerLanguage("csharp",tne);it.registerLanguage("css",lne);it.registerLanguage("diff",cne);it.registerLanguage("go",une);it.registerLanguage("graphql",dne);it.registerLanguage("ini",fne);it.registerLanguage("java",hne);it.registerLanguage("javascript",yne);it.registerLanguage("json",bne);it.registerLanguage("kotlin",xne);it.registerLanguage("less",Ane);it.registerLanguage("lua",Nne);it.registerLanguage("makefile",kne);it.registerLanguage("markdown",One);it.registerLanguage("objectivec",Rne);it.registerLanguage("perl",Mne);it.registerLanguage("php",Ine);it.registerLanguage("php-template",Lne);it.registerLanguage("plaintext",Dne);it.registerLanguage("python",Pne);it.registerLanguage("python-repl",$ne);it.registerLanguage("r",Fne);it.registerLanguage("ruby",Bne);it.registerLanguage("rust",zne);it.registerLanguage("scss",Wne);it.registerLanguage("shell",qne);it.registerLanguage("sql",Yne);it.registerLanguage("swift",rre);it.registerLanguage("typescript",are);it.registerLanguage("vbnet",ore);it.registerLanguage("wasm",sre);it.registerLanguage("xml",lre);it.registerLanguage("yaml",cre);const Al=function(e){if(e==null)return Z6;if(typeof e=="string")return mie(e);if(typeof e=="object")return hie(e);if(typeof e=="function")return oO(e);throw new Error("Expected function, string, or array as test")};function hie(e){const t=[];let n=-1;for(;++nl&&(l=c):c&&(l!==void 0&&l>-1&&s.push(` +`.repeat(l)||" "),l=-1,s.push(c))}return s.join("")}function lO(e,t,n){return e.type==="element"?vie(e,t,n):e.type==="text"?n.whitespace==="normal"?cO(e,n):yie(e):[]}function vie(e,t,n){const r=uO(e,n),i=e.children||[];let a=-1,o=[];if(gie(e))return o;let s,l;for(x2(e)||wb(e)&&Eb(t,e,wb)?l=` +`:pie(e)?(s=2,l=2):sO(e)&&(s=1,l=1);++a-1?r.slice(0,c):r}return(c,u)=>{uu(c,"element",(d,f,h)=>{const m=h;if(!m||!("tagName"in m)||m.tagName!=="pre"||d.tagName!=="code"||!d.properties)return;const g=wie(d);if(g===!1||!g&&!s||g&&i&&i.includes(g))return;Array.isArray(d.properties.className)||(d.properties.className=[]),d.properties.className.includes(l)||d.properties.className.unshift(l);let E;try{E=g?it.highlight(g,T2(m),{prefix:r}):it.highlightAuto(T2(m),{prefix:r,subset:o})}catch(p){const v=p;(!a||!/Unknown language/.test(v.message))&&u.fail(v,d,"rehype-highlight:missing-language");return}!g&&E.data.language&&d.properties.className.push("language-"+E.data.language),Array.isArray(E.children)&&E.children.length>0&&(d.children=E.children)})}}function wie(e){const t=e.properties&&e.properties.className;let n=-1;if(Array.isArray(t))for(;++n15?c="…"+o.slice(i-15,i):c=o.slice(0,i);var u;s+15":">","<":"<",'"':""","'":"'"},Oie=/[&><"']/g;function Rie(e){return String(e).replace(Oie,t=>kie[t])}var dO=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Mie=function(t){var n=dO(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Iie=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Lie=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},Ye={contains:Sie,deflt:Cie,escape:Rie,hyphenate:Nie,getBaseElem:dO,isCharacterBox:Mie,protocolFromUrl:Lie},Mf={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Die(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class J6{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Mf)if(Mf.hasOwnProperty(n)){var r=Mf[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Die(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new me("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=Ye.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class yo{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return Qi[Pie[this.id]]}sub(){return Qi[$ie[this.id]]}fracNum(){return Qi[Fie[this.id]]}fracDen(){return Qi[Bie[this.id]]}cramp(){return Qi[zie[this.id]]}text(){return Qi[Uie[this.id]]}isTight(){return this.size>=2}}var e8=0,Qh=1,Ac=2,Ka=3,r0=4,ni=5,qc=6,er=7,Qi=[new yo(e8,0,!1),new yo(Qh,0,!0),new yo(Ac,1,!1),new yo(Ka,1,!0),new yo(r0,2,!1),new yo(ni,2,!0),new yo(qc,3,!1),new yo(er,3,!0)],Pie=[r0,ni,r0,ni,qc,er,qc,er],$ie=[ni,ni,ni,ni,er,er,er,er],Fie=[Ac,Ka,r0,ni,qc,er,qc,er],Bie=[Ka,Ka,ni,ni,er,er,er,er],zie=[Qh,Qh,Ka,Ka,ni,ni,er,er],Uie=[e8,Qh,Ac,Ka,Ac,Ka,Ac,Ka],Ve={DISPLAY:Qi[e8],TEXT:Qi[Ac],SCRIPT:Qi[r0],SCRIPTSCRIPT:Qi[qc]},_2=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function jie(e){for(var t=0;t<_2.length;t++)for(var n=_2[t],r=0;r=i[0]&&e<=i[1])return n.name}return null}var If=[];_2.forEach(e=>e.blocks.forEach(t=>If.push(...t)));function fO(e){for(var t=0;t=If[t]&&e<=If[t+1])return!0;return!1}var zl=80,Hie=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -360,7 +360,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Rie=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Gie=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` @@ -370,7 +370,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Iie=function(t,n){return"M983 "+(10+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Vie=function(t,n){return"M983 "+(10+t+n)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -379,7 +379,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Mie=function(t,n){return"M424,"+(2398+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Kie=function(t,n){return"M424,"+(2398+t+n)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -389,18 +389,18 @@ v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Lie=function(t,n){return"M473,"+(2713+t+n)+` +h400000v`+(40+t)+"h-400000z"},Wie=function(t,n){return"M473,"+(2713+t+n)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Die=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Pie=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},qie=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Yie=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},$ie=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Oie(n,Dl);break;case"sqrtSize1":i=Rie(n,Dl);break;case"sqrtSize2":i=Iie(n,Dl);break;case"sqrtSize3":i=Mie(n,Dl);break;case"sqrtSize4":i=Lie(n,Dl);break;case"sqrtTall":i=Pie(n,Dl,r)}return i},Fie=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},gb={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Xie=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Hie(n,zl);break;case"sqrtSize1":i=Gie(n,zl);break;case"sqrtSize2":i=Vie(n,zl);break;case"sqrtSize3":i=Kie(n,zl);break;case"sqrtSize4":i=Wie(n,zl);break;case"sqrtTall":i=Yie(n,zl,r)}return i},Qie=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Sb={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -575,7 +575,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Bie=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Zie=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -603,30 +603,48 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class N0{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Ye.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}}var ta={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},bd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vb={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zie(e,t){ta[e]=t}function K8(e,t,n){if(!ta[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=ta[t][r];if(!i&&e[0]in vb&&(r=vb[e[0]].charCodeAt(0),i=ta[t][r]),!i&&n==="text"&&nO(r)&&(i=ta[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Fg={};function Uie(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Fg[t]){var n=Fg[t]={cssEmPerMu:bd.quad[t]/18};for(var r in bd)bd.hasOwnProperty(r)&&(n[r]=bd[r][t])}return Fg[t]}var Hie=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yb=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bb=function(t,n){return n.size<2?t:Hie[t-1][n.size-1]};class Da{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Da.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=yb[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Da(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:bb(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:yb[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=bb(Da.BASESIZE,t);return this.size===n&&this.textSize===Da.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Da.BASESIZE?["sizing","reset-size"+this.size,"size"+Da.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Uie(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Da.BASESIZE=6;var v2={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},jie={ex:!0,em:!0,mu:!0},rO=function(t){return typeof t!="string"&&(t=t.unit),t in v2||t in jie||t==="ex"},Qt=function(t,n){var r;if(t.unit in v2)r=v2[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new me("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},we=function(t){return+t.toFixed(4)+"em"},rs=function(t){return t.filter(n=>n).join(" ")},iO=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},aO=function(t){var n=document.createElement(t);n.className=rs(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};class k0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,iO.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ye.contains(this.classes,t)}toNode(){return aO.call(this,"span")}toMarkup(){return oO.call(this,"span")}}class W8{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,iO.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ye.contains(this.classes,t)}toNode(){return aO.call(this,"a")}toMarkup(){return oO.call(this,"a")}}class Gie{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Ye.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=we(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=rs(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ye.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Ye.escape(r)+'"');var a=Ye.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Za{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class y2{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Wie={bin:1,close:1,inner:1,open:1,punct:1,rel:1},qie={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ft={math:{},text:{}};function E(e,t,n,r,i,a){Ft[e][i]={font:t,group:n,replace:r},a&&r&&(Ft[e][r]=Ft[e][i])}var _="math",de="text",k="main",F="ams",Wt="accent-token",Me="bin",ar="close",au="inner",Ke="mathord",mn="op-token",Gr="open",up="punct",z="rel",so="spacing",q="textord";E(_,k,z,"≡","\\equiv",!0);E(_,k,z,"≺","\\prec",!0);E(_,k,z,"≻","\\succ",!0);E(_,k,z,"∼","\\sim",!0);E(_,k,z,"⊥","\\perp");E(_,k,z,"⪯","\\preceq",!0);E(_,k,z,"⪰","\\succeq",!0);E(_,k,z,"≃","\\simeq",!0);E(_,k,z,"∣","\\mid",!0);E(_,k,z,"≪","\\ll",!0);E(_,k,z,"≫","\\gg",!0);E(_,k,z,"≍","\\asymp",!0);E(_,k,z,"∥","\\parallel");E(_,k,z,"⋈","\\bowtie",!0);E(_,k,z,"⌣","\\smile",!0);E(_,k,z,"⊑","\\sqsubseteq",!0);E(_,k,z,"⊒","\\sqsupseteq",!0);E(_,k,z,"≐","\\doteq",!0);E(_,k,z,"⌢","\\frown",!0);E(_,k,z,"∋","\\ni",!0);E(_,k,z,"∝","\\propto",!0);E(_,k,z,"⊢","\\vdash",!0);E(_,k,z,"⊣","\\dashv",!0);E(_,k,z,"∋","\\owns");E(_,k,up,".","\\ldotp");E(_,k,up,"⋅","\\cdotp");E(_,k,q,"#","\\#");E(de,k,q,"#","\\#");E(_,k,q,"&","\\&");E(de,k,q,"&","\\&");E(_,k,q,"ℵ","\\aleph",!0);E(_,k,q,"∀","\\forall",!0);E(_,k,q,"ℏ","\\hbar",!0);E(_,k,q,"∃","\\exists",!0);E(_,k,q,"∇","\\nabla",!0);E(_,k,q,"♭","\\flat",!0);E(_,k,q,"ℓ","\\ell",!0);E(_,k,q,"♮","\\natural",!0);E(_,k,q,"♣","\\clubsuit",!0);E(_,k,q,"℘","\\wp",!0);E(_,k,q,"♯","\\sharp",!0);E(_,k,q,"♢","\\diamondsuit",!0);E(_,k,q,"ℜ","\\Re",!0);E(_,k,q,"♡","\\heartsuit",!0);E(_,k,q,"ℑ","\\Im",!0);E(_,k,q,"♠","\\spadesuit",!0);E(_,k,q,"§","\\S",!0);E(de,k,q,"§","\\S");E(_,k,q,"¶","\\P",!0);E(de,k,q,"¶","\\P");E(_,k,q,"†","\\dag");E(de,k,q,"†","\\dag");E(de,k,q,"†","\\textdagger");E(_,k,q,"‡","\\ddag");E(de,k,q,"‡","\\ddag");E(de,k,q,"‡","\\textdaggerdbl");E(_,k,ar,"⎱","\\rmoustache",!0);E(_,k,Gr,"⎰","\\lmoustache",!0);E(_,k,ar,"⟯","\\rgroup",!0);E(_,k,Gr,"⟮","\\lgroup",!0);E(_,k,Me,"∓","\\mp",!0);E(_,k,Me,"⊖","\\ominus",!0);E(_,k,Me,"⊎","\\uplus",!0);E(_,k,Me,"⊓","\\sqcap",!0);E(_,k,Me,"∗","\\ast");E(_,k,Me,"⊔","\\sqcup",!0);E(_,k,Me,"◯","\\bigcirc",!0);E(_,k,Me,"∙","\\bullet",!0);E(_,k,Me,"‡","\\ddagger");E(_,k,Me,"≀","\\wr",!0);E(_,k,Me,"⨿","\\amalg");E(_,k,Me,"&","\\And");E(_,k,z,"⟵","\\longleftarrow",!0);E(_,k,z,"⇐","\\Leftarrow",!0);E(_,k,z,"⟸","\\Longleftarrow",!0);E(_,k,z,"⟶","\\longrightarrow",!0);E(_,k,z,"⇒","\\Rightarrow",!0);E(_,k,z,"⟹","\\Longrightarrow",!0);E(_,k,z,"↔","\\leftrightarrow",!0);E(_,k,z,"⟷","\\longleftrightarrow",!0);E(_,k,z,"⇔","\\Leftrightarrow",!0);E(_,k,z,"⟺","\\Longleftrightarrow",!0);E(_,k,z,"↦","\\mapsto",!0);E(_,k,z,"⟼","\\longmapsto",!0);E(_,k,z,"↗","\\nearrow",!0);E(_,k,z,"↩","\\hookleftarrow",!0);E(_,k,z,"↪","\\hookrightarrow",!0);E(_,k,z,"↘","\\searrow",!0);E(_,k,z,"↼","\\leftharpoonup",!0);E(_,k,z,"⇀","\\rightharpoonup",!0);E(_,k,z,"↙","\\swarrow",!0);E(_,k,z,"↽","\\leftharpoondown",!0);E(_,k,z,"⇁","\\rightharpoondown",!0);E(_,k,z,"↖","\\nwarrow",!0);E(_,k,z,"⇌","\\rightleftharpoons",!0);E(_,F,z,"≮","\\nless",!0);E(_,F,z,"","\\@nleqslant");E(_,F,z,"","\\@nleqq");E(_,F,z,"⪇","\\lneq",!0);E(_,F,z,"≨","\\lneqq",!0);E(_,F,z,"","\\@lvertneqq");E(_,F,z,"⋦","\\lnsim",!0);E(_,F,z,"⪉","\\lnapprox",!0);E(_,F,z,"⊀","\\nprec",!0);E(_,F,z,"⋠","\\npreceq",!0);E(_,F,z,"⋨","\\precnsim",!0);E(_,F,z,"⪹","\\precnapprox",!0);E(_,F,z,"≁","\\nsim",!0);E(_,F,z,"","\\@nshortmid");E(_,F,z,"∤","\\nmid",!0);E(_,F,z,"⊬","\\nvdash",!0);E(_,F,z,"⊭","\\nvDash",!0);E(_,F,z,"⋪","\\ntriangleleft");E(_,F,z,"⋬","\\ntrianglelefteq",!0);E(_,F,z,"⊊","\\subsetneq",!0);E(_,F,z,"","\\@varsubsetneq");E(_,F,z,"⫋","\\subsetneqq",!0);E(_,F,z,"","\\@varsubsetneqq");E(_,F,z,"≯","\\ngtr",!0);E(_,F,z,"","\\@ngeqslant");E(_,F,z,"","\\@ngeqq");E(_,F,z,"⪈","\\gneq",!0);E(_,F,z,"≩","\\gneqq",!0);E(_,F,z,"","\\@gvertneqq");E(_,F,z,"⋧","\\gnsim",!0);E(_,F,z,"⪊","\\gnapprox",!0);E(_,F,z,"⊁","\\nsucc",!0);E(_,F,z,"⋡","\\nsucceq",!0);E(_,F,z,"⋩","\\succnsim",!0);E(_,F,z,"⪺","\\succnapprox",!0);E(_,F,z,"≆","\\ncong",!0);E(_,F,z,"","\\@nshortparallel");E(_,F,z,"∦","\\nparallel",!0);E(_,F,z,"⊯","\\nVDash",!0);E(_,F,z,"⋫","\\ntriangleright");E(_,F,z,"⋭","\\ntrianglerighteq",!0);E(_,F,z,"","\\@nsupseteqq");E(_,F,z,"⊋","\\supsetneq",!0);E(_,F,z,"","\\@varsupsetneq");E(_,F,z,"⫌","\\supsetneqq",!0);E(_,F,z,"","\\@varsupsetneqq");E(_,F,z,"⊮","\\nVdash",!0);E(_,F,z,"⪵","\\precneqq",!0);E(_,F,z,"⪶","\\succneqq",!0);E(_,F,z,"","\\@nsubseteqq");E(_,F,Me,"⊴","\\unlhd");E(_,F,Me,"⊵","\\unrhd");E(_,F,z,"↚","\\nleftarrow",!0);E(_,F,z,"↛","\\nrightarrow",!0);E(_,F,z,"⇍","\\nLeftarrow",!0);E(_,F,z,"⇏","\\nRightarrow",!0);E(_,F,z,"↮","\\nleftrightarrow",!0);E(_,F,z,"⇎","\\nLeftrightarrow",!0);E(_,F,z,"△","\\vartriangle");E(_,F,q,"ℏ","\\hslash");E(_,F,q,"▽","\\triangledown");E(_,F,q,"◊","\\lozenge");E(_,F,q,"Ⓢ","\\circledS");E(_,F,q,"®","\\circledR");E(de,F,q,"®","\\circledR");E(_,F,q,"∡","\\measuredangle",!0);E(_,F,q,"∄","\\nexists");E(_,F,q,"℧","\\mho");E(_,F,q,"Ⅎ","\\Finv",!0);E(_,F,q,"⅁","\\Game",!0);E(_,F,q,"‵","\\backprime");E(_,F,q,"▲","\\blacktriangle");E(_,F,q,"▼","\\blacktriangledown");E(_,F,q,"■","\\blacksquare");E(_,F,q,"⧫","\\blacklozenge");E(_,F,q,"★","\\bigstar");E(_,F,q,"∢","\\sphericalangle",!0);E(_,F,q,"∁","\\complement",!0);E(_,F,q,"ð","\\eth",!0);E(de,k,q,"ð","ð");E(_,F,q,"╱","\\diagup");E(_,F,q,"╲","\\diagdown");E(_,F,q,"□","\\square");E(_,F,q,"□","\\Box");E(_,F,q,"◊","\\Diamond");E(_,F,q,"¥","\\yen",!0);E(de,F,q,"¥","\\yen",!0);E(_,F,q,"✓","\\checkmark",!0);E(de,F,q,"✓","\\checkmark");E(_,F,q,"ℶ","\\beth",!0);E(_,F,q,"ℸ","\\daleth",!0);E(_,F,q,"ℷ","\\gimel",!0);E(_,F,q,"ϝ","\\digamma",!0);E(_,F,q,"ϰ","\\varkappa");E(_,F,Gr,"┌","\\@ulcorner",!0);E(_,F,ar,"┐","\\@urcorner",!0);E(_,F,Gr,"└","\\@llcorner",!0);E(_,F,ar,"┘","\\@lrcorner",!0);E(_,F,z,"≦","\\leqq",!0);E(_,F,z,"⩽","\\leqslant",!0);E(_,F,z,"⪕","\\eqslantless",!0);E(_,F,z,"≲","\\lesssim",!0);E(_,F,z,"⪅","\\lessapprox",!0);E(_,F,z,"≊","\\approxeq",!0);E(_,F,Me,"⋖","\\lessdot");E(_,F,z,"⋘","\\lll",!0);E(_,F,z,"≶","\\lessgtr",!0);E(_,F,z,"⋚","\\lesseqgtr",!0);E(_,F,z,"⪋","\\lesseqqgtr",!0);E(_,F,z,"≑","\\doteqdot");E(_,F,z,"≓","\\risingdotseq",!0);E(_,F,z,"≒","\\fallingdotseq",!0);E(_,F,z,"∽","\\backsim",!0);E(_,F,z,"⋍","\\backsimeq",!0);E(_,F,z,"⫅","\\subseteqq",!0);E(_,F,z,"⋐","\\Subset",!0);E(_,F,z,"⊏","\\sqsubset",!0);E(_,F,z,"≼","\\preccurlyeq",!0);E(_,F,z,"⋞","\\curlyeqprec",!0);E(_,F,z,"≾","\\precsim",!0);E(_,F,z,"⪷","\\precapprox",!0);E(_,F,z,"⊲","\\vartriangleleft");E(_,F,z,"⊴","\\trianglelefteq");E(_,F,z,"⊨","\\vDash",!0);E(_,F,z,"⊪","\\Vvdash",!0);E(_,F,z,"⌣","\\smallsmile");E(_,F,z,"⌢","\\smallfrown");E(_,F,z,"≏","\\bumpeq",!0);E(_,F,z,"≎","\\Bumpeq",!0);E(_,F,z,"≧","\\geqq",!0);E(_,F,z,"⩾","\\geqslant",!0);E(_,F,z,"⪖","\\eqslantgtr",!0);E(_,F,z,"≳","\\gtrsim",!0);E(_,F,z,"⪆","\\gtrapprox",!0);E(_,F,Me,"⋗","\\gtrdot");E(_,F,z,"⋙","\\ggg",!0);E(_,F,z,"≷","\\gtrless",!0);E(_,F,z,"⋛","\\gtreqless",!0);E(_,F,z,"⪌","\\gtreqqless",!0);E(_,F,z,"≖","\\eqcirc",!0);E(_,F,z,"≗","\\circeq",!0);E(_,F,z,"≜","\\triangleq",!0);E(_,F,z,"∼","\\thicksim");E(_,F,z,"≈","\\thickapprox");E(_,F,z,"⫆","\\supseteqq",!0);E(_,F,z,"⋑","\\Supset",!0);E(_,F,z,"⊐","\\sqsupset",!0);E(_,F,z,"≽","\\succcurlyeq",!0);E(_,F,z,"⋟","\\curlyeqsucc",!0);E(_,F,z,"≿","\\succsim",!0);E(_,F,z,"⪸","\\succapprox",!0);E(_,F,z,"⊳","\\vartriangleright");E(_,F,z,"⊵","\\trianglerighteq");E(_,F,z,"⊩","\\Vdash",!0);E(_,F,z,"∣","\\shortmid");E(_,F,z,"∥","\\shortparallel");E(_,F,z,"≬","\\between",!0);E(_,F,z,"⋔","\\pitchfork",!0);E(_,F,z,"∝","\\varpropto");E(_,F,z,"◀","\\blacktriangleleft");E(_,F,z,"∴","\\therefore",!0);E(_,F,z,"∍","\\backepsilon");E(_,F,z,"▶","\\blacktriangleright");E(_,F,z,"∵","\\because",!0);E(_,F,z,"⋘","\\llless");E(_,F,z,"⋙","\\gggtr");E(_,F,Me,"⊲","\\lhd");E(_,F,Me,"⊳","\\rhd");E(_,F,z,"≂","\\eqsim",!0);E(_,k,z,"⋈","\\Join");E(_,F,z,"≑","\\Doteq",!0);E(_,F,Me,"∔","\\dotplus",!0);E(_,F,Me,"∖","\\smallsetminus");E(_,F,Me,"⋒","\\Cap",!0);E(_,F,Me,"⋓","\\Cup",!0);E(_,F,Me,"⩞","\\doublebarwedge",!0);E(_,F,Me,"⊟","\\boxminus",!0);E(_,F,Me,"⊞","\\boxplus",!0);E(_,F,Me,"⋇","\\divideontimes",!0);E(_,F,Me,"⋉","\\ltimes",!0);E(_,F,Me,"⋊","\\rtimes",!0);E(_,F,Me,"⋋","\\leftthreetimes",!0);E(_,F,Me,"⋌","\\rightthreetimes",!0);E(_,F,Me,"⋏","\\curlywedge",!0);E(_,F,Me,"⋎","\\curlyvee",!0);E(_,F,Me,"⊝","\\circleddash",!0);E(_,F,Me,"⊛","\\circledast",!0);E(_,F,Me,"⋅","\\centerdot");E(_,F,Me,"⊺","\\intercal",!0);E(_,F,Me,"⋒","\\doublecap");E(_,F,Me,"⋓","\\doublecup");E(_,F,Me,"⊠","\\boxtimes",!0);E(_,F,z,"⇢","\\dashrightarrow",!0);E(_,F,z,"⇠","\\dashleftarrow",!0);E(_,F,z,"⇇","\\leftleftarrows",!0);E(_,F,z,"⇆","\\leftrightarrows",!0);E(_,F,z,"⇚","\\Lleftarrow",!0);E(_,F,z,"↞","\\twoheadleftarrow",!0);E(_,F,z,"↢","\\leftarrowtail",!0);E(_,F,z,"↫","\\looparrowleft",!0);E(_,F,z,"⇋","\\leftrightharpoons",!0);E(_,F,z,"↶","\\curvearrowleft",!0);E(_,F,z,"↺","\\circlearrowleft",!0);E(_,F,z,"↰","\\Lsh",!0);E(_,F,z,"⇈","\\upuparrows",!0);E(_,F,z,"↿","\\upharpoonleft",!0);E(_,F,z,"⇃","\\downharpoonleft",!0);E(_,k,z,"⊶","\\origof",!0);E(_,k,z,"⊷","\\imageof",!0);E(_,F,z,"⊸","\\multimap",!0);E(_,F,z,"↭","\\leftrightsquigarrow",!0);E(_,F,z,"⇉","\\rightrightarrows",!0);E(_,F,z,"⇄","\\rightleftarrows",!0);E(_,F,z,"↠","\\twoheadrightarrow",!0);E(_,F,z,"↣","\\rightarrowtail",!0);E(_,F,z,"↬","\\looparrowright",!0);E(_,F,z,"↷","\\curvearrowright",!0);E(_,F,z,"↻","\\circlearrowright",!0);E(_,F,z,"↱","\\Rsh",!0);E(_,F,z,"⇊","\\downdownarrows",!0);E(_,F,z,"↾","\\upharpoonright",!0);E(_,F,z,"⇂","\\downharpoonright",!0);E(_,F,z,"⇝","\\rightsquigarrow",!0);E(_,F,z,"⇝","\\leadsto");E(_,F,z,"⇛","\\Rrightarrow",!0);E(_,F,z,"↾","\\restriction");E(_,k,q,"‘","`");E(_,k,q,"$","\\$");E(de,k,q,"$","\\$");E(de,k,q,"$","\\textdollar");E(_,k,q,"%","\\%");E(de,k,q,"%","\\%");E(_,k,q,"_","\\_");E(de,k,q,"_","\\_");E(de,k,q,"_","\\textunderscore");E(_,k,q,"∠","\\angle",!0);E(_,k,q,"∞","\\infty",!0);E(_,k,q,"′","\\prime");E(_,k,q,"△","\\triangle");E(_,k,q,"Γ","\\Gamma",!0);E(_,k,q,"Δ","\\Delta",!0);E(_,k,q,"Θ","\\Theta",!0);E(_,k,q,"Λ","\\Lambda",!0);E(_,k,q,"Ξ","\\Xi",!0);E(_,k,q,"Π","\\Pi",!0);E(_,k,q,"Σ","\\Sigma",!0);E(_,k,q,"Υ","\\Upsilon",!0);E(_,k,q,"Φ","\\Phi",!0);E(_,k,q,"Ψ","\\Psi",!0);E(_,k,q,"Ω","\\Omega",!0);E(_,k,q,"A","Α");E(_,k,q,"B","Β");E(_,k,q,"E","Ε");E(_,k,q,"Z","Ζ");E(_,k,q,"H","Η");E(_,k,q,"I","Ι");E(_,k,q,"K","Κ");E(_,k,q,"M","Μ");E(_,k,q,"N","Ν");E(_,k,q,"O","Ο");E(_,k,q,"P","Ρ");E(_,k,q,"T","Τ");E(_,k,q,"X","Χ");E(_,k,q,"¬","\\neg",!0);E(_,k,q,"¬","\\lnot");E(_,k,q,"⊤","\\top");E(_,k,q,"⊥","\\bot");E(_,k,q,"∅","\\emptyset");E(_,F,q,"∅","\\varnothing");E(_,k,Ke,"α","\\alpha",!0);E(_,k,Ke,"β","\\beta",!0);E(_,k,Ke,"γ","\\gamma",!0);E(_,k,Ke,"δ","\\delta",!0);E(_,k,Ke,"ϵ","\\epsilon",!0);E(_,k,Ke,"ζ","\\zeta",!0);E(_,k,Ke,"η","\\eta",!0);E(_,k,Ke,"θ","\\theta",!0);E(_,k,Ke,"ι","\\iota",!0);E(_,k,Ke,"κ","\\kappa",!0);E(_,k,Ke,"λ","\\lambda",!0);E(_,k,Ke,"μ","\\mu",!0);E(_,k,Ke,"ν","\\nu",!0);E(_,k,Ke,"ξ","\\xi",!0);E(_,k,Ke,"ο","\\omicron",!0);E(_,k,Ke,"π","\\pi",!0);E(_,k,Ke,"ρ","\\rho",!0);E(_,k,Ke,"σ","\\sigma",!0);E(_,k,Ke,"τ","\\tau",!0);E(_,k,Ke,"υ","\\upsilon",!0);E(_,k,Ke,"ϕ","\\phi",!0);E(_,k,Ke,"χ","\\chi",!0);E(_,k,Ke,"ψ","\\psi",!0);E(_,k,Ke,"ω","\\omega",!0);E(_,k,Ke,"ε","\\varepsilon",!0);E(_,k,Ke,"ϑ","\\vartheta",!0);E(_,k,Ke,"ϖ","\\varpi",!0);E(_,k,Ke,"ϱ","\\varrho",!0);E(_,k,Ke,"ς","\\varsigma",!0);E(_,k,Ke,"φ","\\varphi",!0);E(_,k,Me,"∗","*",!0);E(_,k,Me,"+","+");E(_,k,Me,"−","-",!0);E(_,k,Me,"⋅","\\cdot",!0);E(_,k,Me,"∘","\\circ",!0);E(_,k,Me,"÷","\\div",!0);E(_,k,Me,"±","\\pm",!0);E(_,k,Me,"×","\\times",!0);E(_,k,Me,"∩","\\cap",!0);E(_,k,Me,"∪","\\cup",!0);E(_,k,Me,"∖","\\setminus",!0);E(_,k,Me,"∧","\\land");E(_,k,Me,"∨","\\lor");E(_,k,Me,"∧","\\wedge",!0);E(_,k,Me,"∨","\\vee",!0);E(_,k,q,"√","\\surd");E(_,k,Gr,"⟨","\\langle",!0);E(_,k,Gr,"∣","\\lvert");E(_,k,Gr,"∥","\\lVert");E(_,k,ar,"?","?");E(_,k,ar,"!","!");E(_,k,ar,"⟩","\\rangle",!0);E(_,k,ar,"∣","\\rvert");E(_,k,ar,"∥","\\rVert");E(_,k,z,"=","=");E(_,k,z,":",":");E(_,k,z,"≈","\\approx",!0);E(_,k,z,"≅","\\cong",!0);E(_,k,z,"≥","\\ge");E(_,k,z,"≥","\\geq",!0);E(_,k,z,"←","\\gets");E(_,k,z,">","\\gt",!0);E(_,k,z,"∈","\\in",!0);E(_,k,z,"","\\@not");E(_,k,z,"⊂","\\subset",!0);E(_,k,z,"⊃","\\supset",!0);E(_,k,z,"⊆","\\subseteq",!0);E(_,k,z,"⊇","\\supseteq",!0);E(_,F,z,"⊈","\\nsubseteq",!0);E(_,F,z,"⊉","\\nsupseteq",!0);E(_,k,z,"⊨","\\models");E(_,k,z,"←","\\leftarrow",!0);E(_,k,z,"≤","\\le");E(_,k,z,"≤","\\leq",!0);E(_,k,z,"<","\\lt",!0);E(_,k,z,"→","\\rightarrow",!0);E(_,k,z,"→","\\to");E(_,F,z,"≱","\\ngeq",!0);E(_,F,z,"≰","\\nleq",!0);E(_,k,so," ","\\ ");E(_,k,so," ","\\space");E(_,k,so," ","\\nobreakspace");E(de,k,so," ","\\ ");E(de,k,so," "," ");E(de,k,so," ","\\space");E(de,k,so," ","\\nobreakspace");E(_,k,so,null,"\\nobreak");E(_,k,so,null,"\\allowbreak");E(_,k,up,",",",");E(_,k,up,";",";");E(_,F,Me,"⊼","\\barwedge",!0);E(_,F,Me,"⊻","\\veebar",!0);E(_,k,Me,"⊙","\\odot",!0);E(_,k,Me,"⊕","\\oplus",!0);E(_,k,Me,"⊗","\\otimes",!0);E(_,k,q,"∂","\\partial",!0);E(_,k,Me,"⊘","\\oslash",!0);E(_,F,Me,"⊚","\\circledcirc",!0);E(_,F,Me,"⊡","\\boxdot",!0);E(_,k,Me,"△","\\bigtriangleup");E(_,k,Me,"▽","\\bigtriangledown");E(_,k,Me,"†","\\dagger");E(_,k,Me,"⋄","\\diamond");E(_,k,Me,"⋆","\\star");E(_,k,Me,"◃","\\triangleleft");E(_,k,Me,"▹","\\triangleright");E(_,k,Gr,"{","\\{");E(de,k,q,"{","\\{");E(de,k,q,"{","\\textbraceleft");E(_,k,ar,"}","\\}");E(de,k,q,"}","\\}");E(de,k,q,"}","\\textbraceright");E(_,k,Gr,"{","\\lbrace");E(_,k,ar,"}","\\rbrace");E(_,k,Gr,"[","\\lbrack",!0);E(de,k,q,"[","\\lbrack",!0);E(_,k,ar,"]","\\rbrack",!0);E(de,k,q,"]","\\rbrack",!0);E(_,k,Gr,"(","\\lparen",!0);E(_,k,ar,")","\\rparen",!0);E(de,k,q,"<","\\textless",!0);E(de,k,q,">","\\textgreater",!0);E(_,k,Gr,"⌊","\\lfloor",!0);E(_,k,ar,"⌋","\\rfloor",!0);E(_,k,Gr,"⌈","\\lceil",!0);E(_,k,ar,"⌉","\\rceil",!0);E(_,k,q,"\\","\\backslash");E(_,k,q,"∣","|");E(_,k,q,"∣","\\vert");E(de,k,q,"|","\\textbar",!0);E(_,k,q,"∥","\\|");E(_,k,q,"∥","\\Vert");E(de,k,q,"∥","\\textbardbl");E(de,k,q,"~","\\textasciitilde");E(de,k,q,"\\","\\textbackslash");E(de,k,q,"^","\\textasciicircum");E(_,k,z,"↑","\\uparrow",!0);E(_,k,z,"⇑","\\Uparrow",!0);E(_,k,z,"↓","\\downarrow",!0);E(_,k,z,"⇓","\\Downarrow",!0);E(_,k,z,"↕","\\updownarrow",!0);E(_,k,z,"⇕","\\Updownarrow",!0);E(_,k,mn,"∐","\\coprod");E(_,k,mn,"⋁","\\bigvee");E(_,k,mn,"⋀","\\bigwedge");E(_,k,mn,"⨄","\\biguplus");E(_,k,mn,"⋂","\\bigcap");E(_,k,mn,"⋃","\\bigcup");E(_,k,mn,"∫","\\int");E(_,k,mn,"∫","\\intop");E(_,k,mn,"∬","\\iint");E(_,k,mn,"∭","\\iiint");E(_,k,mn,"∏","\\prod");E(_,k,mn,"∑","\\sum");E(_,k,mn,"⨂","\\bigotimes");E(_,k,mn,"⨁","\\bigoplus");E(_,k,mn,"⨀","\\bigodot");E(_,k,mn,"∮","\\oint");E(_,k,mn,"∯","\\oiint");E(_,k,mn,"∰","\\oiiint");E(_,k,mn,"⨆","\\bigsqcup");E(_,k,mn,"∫","\\smallint");E(de,k,au,"…","\\textellipsis");E(_,k,au,"…","\\mathellipsis");E(de,k,au,"…","\\ldots",!0);E(_,k,au,"…","\\ldots",!0);E(_,k,au,"⋯","\\@cdots",!0);E(_,k,au,"⋱","\\ddots",!0);E(_,k,q,"⋮","\\varvdots");E(_,k,Wt,"ˊ","\\acute");E(_,k,Wt,"ˋ","\\grave");E(_,k,Wt,"¨","\\ddot");E(_,k,Wt,"~","\\tilde");E(_,k,Wt,"ˉ","\\bar");E(_,k,Wt,"˘","\\breve");E(_,k,Wt,"ˇ","\\check");E(_,k,Wt,"^","\\hat");E(_,k,Wt,"⃗","\\vec");E(_,k,Wt,"˙","\\dot");E(_,k,Wt,"˚","\\mathring");E(_,k,Ke,"","\\@imath");E(_,k,Ke,"","\\@jmath");E(_,k,q,"ı","ı");E(_,k,q,"ȷ","ȷ");E(de,k,q,"ı","\\i",!0);E(de,k,q,"ȷ","\\j",!0);E(de,k,q,"ß","\\ss",!0);E(de,k,q,"æ","\\ae",!0);E(de,k,q,"œ","\\oe",!0);E(de,k,q,"ø","\\o",!0);E(de,k,q,"Æ","\\AE",!0);E(de,k,q,"Œ","\\OE",!0);E(de,k,q,"Ø","\\O",!0);E(de,k,Wt,"ˊ","\\'");E(de,k,Wt,"ˋ","\\`");E(de,k,Wt,"ˆ","\\^");E(de,k,Wt,"˜","\\~");E(de,k,Wt,"ˉ","\\=");E(de,k,Wt,"˘","\\u");E(de,k,Wt,"˙","\\.");E(de,k,Wt,"¸","\\c");E(de,k,Wt,"˚","\\r");E(de,k,Wt,"ˇ","\\v");E(de,k,Wt,"¨",'\\"');E(de,k,Wt,"˝","\\H");E(de,k,Wt,"◯","\\textcircled");var sO={"--":!0,"---":!0,"``":!0,"''":!0};E(de,k,q,"–","--",!0);E(de,k,q,"–","\\textendash");E(de,k,q,"—","---",!0);E(de,k,q,"—","\\textemdash");E(de,k,q,"‘","`",!0);E(de,k,q,"‘","\\textquoteleft");E(de,k,q,"’","'",!0);E(de,k,q,"’","\\textquoteright");E(de,k,q,"“","``",!0);E(de,k,q,"“","\\textquotedblleft");E(de,k,q,"”","''",!0);E(de,k,q,"”","\\textquotedblright");E(_,k,q,"°","\\degree",!0);E(de,k,q,"°","\\degree");E(de,k,q,"°","\\textdegree",!0);E(_,k,q,"£","\\pounds");E(_,k,q,"£","\\mathsterling",!0);E(de,k,q,"£","\\pounds");E(de,k,q,"£","\\textsterling",!0);E(_,F,q,"✠","\\maltese");E(de,F,q,"✠","\\maltese");var Tb='0123456789/@."';for(var Bg=0;Bg{if(rs(e.classes)!==rs(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},eae=e=>{for(var t=0;tn&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},fr=function(t,n,r,i){var a=new k0(t,n,r,i);return q8(a),a},lO=(e,t,n,r)=>new k0(e,t,n,r),tae=function(t,n,r){var i=fr([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=we(i.height),i.maxFontSize=1,i},nae=function(t,n,r,i){var a=new W8(t,n,r,i);return q8(a),a},cO=function(t){var n=new N0(t);return q8(n),n},rae=function(t,n){return t instanceof N0?fr([],[t],n):t},iae=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o{var n=fr(["mspace"],[],t),r=Qt(e,t);return n.style.marginRight=we(r),n},_d=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},uO={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},dO={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sae=function(t,n){var[r,i,a]=dO[t],o=new is(r),s=new Za([o],{width:we(i),height:we(a),style:"width:"+we(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=lO(["overlay"],[s],n);return l.height=a,l.style.height=we(a),l.style.width=we(i),l},ee={fontMap:uO,makeSymbol:wi,mathsym:Xie,makeSpan:fr,makeSvgSpan:lO,makeLineSpan:tae,makeAnchor:nae,makeFragment:cO,wrapFragment:rae,makeVList:aae,makeOrd:Zie,makeGlue:oae,staticSvg:sae,svgData:dO,tryCombineChars:eae},Yt={number:3,unit:"mu"},ys={number:4,unit:"mu"},_a={number:5,unit:"mu"},lae={mord:{mop:Yt,mbin:ys,mrel:_a,minner:Yt},mop:{mord:Yt,mop:Yt,mrel:_a,minner:Yt},mbin:{mord:ys,mop:ys,mopen:ys,minner:ys},mrel:{mord:_a,mop:_a,mopen:_a,minner:_a},mopen:{},mclose:{mop:Yt,mbin:ys,mrel:_a,minner:Yt},mpunct:{mord:Yt,mop:Yt,mrel:_a,mopen:Yt,mclose:Yt,mpunct:Yt,minner:Yt},minner:{mord:Yt,mop:Yt,mbin:ys,mrel:_a,mopen:Yt,mpunct:Yt,minner:Yt}},cae={mord:{mop:Yt},mop:{mord:Yt,mop:Yt},mbin:{},mrel:{},mopen:{},mclose:{mop:Yt},mpunct:{},minner:{mop:Yt}},fO={},zh={},Uh={};function ke(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var b=g.classes[0],p=m.classes[0];b==="mbin"&&Ye.contains(dae,p)?g.classes[0]="mord":p==="mbin"&&Ye.contains(uae,b)&&(m.classes[0]="mord")},{node:d},f,h),Cb(a,(m,g)=>{var b=E2(g),p=E2(m),v=b&&p?m.hasClass("mtight")?cae[b][p]:lae[b][p]:null;if(v)return ee.makeGlue(v,c)},{node:d},f,h),a},Cb=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;of=>{t.splice(d+1,0,f),o++})(o)}i&&t.pop()},hO=function(t){return t instanceof N0||t instanceof W8||t instanceof k0&&t.hasClass("enclosing")?t:null},mae=function e(t,n){var r=hO(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},E2=function(t,n){return t?(n&&(t=mae(t,n)),hae[t.classes[0]]||null):null},q1=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Ja(n.concat(r))},Et=function(t,n,r){if(!t)return Ja();if(zh[t.type]){var i=zh[t.type](t,n);if(r&&n.size!==r.size){i=Ja(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new me("Got group of unknown type: '"+t.type+"'")};function wd(e,t){var n=Ja(["base"],e,t),r=Ja(["strut"]);return r.style.height=we(n.height+n.depth),n.depth&&(r.style.verticalAlign=we(-n.depth)),n.children.unshift(r),n}function T2(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=En(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push(wd(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(wd(o,t));var c;n?(c=wd(En(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var u=Ja(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=we(u.height+u.depth),u.depth&&(d.style.verticalAlign=we(-u.depth))}return u}function mO(e){return new N0(e)}class Jr{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=rs(this.classes));for(var r=0;r0&&(t+=' class ="'+Ye.escape(rs(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class i1{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ye.escape(this.toText())}toText(){return this.text}}class pae{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",we(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var fe={MathNode:Jr,TextNode:i1,SpaceNode:pae,newDocumentFragment:mO},li=function(t,n,r){return Ft[n][t]&&Ft[n][t].replace&&t.charCodeAt(0)!==55349&&!(sO.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ft[n][t].replace),new fe.TextNode(t)},Y8=function(t){return t.length===1?t[0]:new fe.MathNode("mrow",t)},X8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Ye.contains(["\\imath","\\jmath"],a))return null;Ft[i][a]&&Ft[i][a].replace&&(a=Ft[i][a].replace);var o=ee.fontMap[r].fontName;return K8(a,o,i)?ee.fontMap[r].variant:null},Sr=function(t,n,r){if(t.length===1){var i=Mt(t[0],n);return r&&i instanceof Jr&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,s=0;s0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(l),o=l}return a},as=function(t,n,r){return Y8(Sr(t,n,r))},Mt=function(t,n){if(!t)return new fe.MathNode("mrow");if(Uh[t.type]){var r=Uh[t.type](t,n);return r}else throw new me("Got group of unknown type: '"+t.type+"'")};function Ab(e,t,n,r,i){var a=Sr(e,n),o;a.length===1&&a[0]instanceof Jr&&Ye.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new fe.MathNode("mrow",a);var s=new fe.MathNode("annotation",[new fe.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new fe.MathNode("semantics",[o,s]),c=new fe.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return ee.makeSpan([u],[c])}var pO=function(t){return new Da({style:t.displayMode?Ge.DISPLAY:Ge.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},gO=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=ee.makeSpan(r,[t])}return t},gae=function(t,n,r){var i=pO(r),a;if(r.output==="mathml")return Ab(t,n,i,r.displayMode,!0);if(r.output==="html"){var o=T2(t,i);a=ee.makeSpan(["katex"],[o])}else{var s=Ab(t,n,i,r.displayMode,!1),l=T2(t,i);a=ee.makeSpan(["katex"],[s,l])}return gO(a,r)},vae=function(t,n,r){var i=pO(r),a=T2(t,i),o=ee.makeSpan(["katex"],[a]);return gO(o,r)},yae={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},bae=function(t){var n=new fe.MathNode("mo",[new fe.TextNode(yae[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Eae={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Tae=function(t){return t.type==="ordgroup"?t.body.length:1},xae=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(Ye.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,u=Tae(c.base),d,f,h;if(u>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,h=.42,f=l+"4"):(d=312,s=2340,h=.34,f="tilde4");else{var m=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][m],d=[0,239,300,360,420][m],h=[0,.24,.3,.3,.36,.42][m],f=l+m):(s=[0,600,1033,2339,2340][m],d=[0,260,286,306,312][m],h=[0,.26,.286,.3,.306,.34][m],f="tilde"+m)}var g=new is(f),b=new Za([g],{width:"100%",height:we(h),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:ee.makeSvgSpan([],[b],n),minWidth:0,height:h}}else{var p=[],v=Eae[l],[T,C,R]=v,N=R/1e3,O=T.length,$,M;if(O===1){var L=v[3];$=["hide-tail"],M=[L]}else if(O===2)$=["halfarrow-left","halfarrow-right"],M=["xMinYMin","xMaxYMin"];else if(O===3)$=["brace-left","brace-center","brace-right"],M=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+O+" children.");for(var X=0;X0&&(i.style.minWidth=we(a)),i},_ae=function(t,n,r,i,a){var o,s=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(o=ee.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(o.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new y2({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new y2({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Za(c,{width:"100%",height:we(s)});o=ee.makeSvgSpan([],[u],a)}return o.height=s,o.style.height=we(s),o},eo={encloseSpan:_ae,mathMLnode:bae,svgSpan:xae};function it(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Q8(e){var t=fp(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function fp(e){return e&&(e.type==="atom"||qie.hasOwnProperty(e.type))?e:null}var Z8=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=it(e.base,"accent"),n=r.base,e.base=n,i=Kie(Et(e,t)),e.base=r):(r=it(e,"accent"),n=r.base);var a=Et(n,t.havingCrampedStyle()),o=r.isShifty&&Ye.isCharacterBox(n),s=0;if(o){var l=Ye.getBaseElem(n),c=Et(l,t.havingCrampedStyle());s=Eb(c).skew}var u=r.label==="\\c",d=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=eo.svgSpan(r,t),f=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+we(2*s)+")",marginLeft:we(2*s)}:void 0}]},t);else{var h,m;r.label==="\\vec"?(h=ee.staticSvg("vec",t),m=ee.svgData.vec[1]):(h=ee.makeOrd({mode:r.mode,text:r.label},t,"textord"),h=Eb(h),h.italic=0,m=h.width,u&&(d+=h.depth)),f=ee.makeSpan(["accent-body"],[h]);var g=r.label==="\\textcircled";g&&(f.classes.push("accent-full"),d=a.height);var b=s;g||(b-=m/2),f.style.left=we(b),r.label==="\\textcircled"&&(f.style.top=".2em"),f=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:f}]},t)}var p=ee.makeSpan(["mord","accent"],[f],t);return i?(i.children[0]=p,i.height=Math.max(p.height,i.height),i.classes[0]="mord",i):p},vO=(e,t)=>{var n=e.isStretchy?eo.mathMLnode(e.label):new fe.MathNode("mo",[li(e.label,e.mode)]),r=new fe.MathNode("mover",[Mt(e.base,t),n]);return r.setAttribute("accent","true"),r},wae=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ke({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Hh(t[0]),r=!wae.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Z8,mathmlBuilder:vO});ke({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Z8,mathmlBuilder:vO});ke({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Et(e.base,t),r=eo.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=ee.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return ee.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=eo.mathMLnode(e.label),r=new fe.MathNode("munder",[Mt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Sd=e=>{var t=new fe.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ke({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=ee.wrapFragment(Et(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=ee.wrapFragment(Et(e.below,r,t),t),o.classes.push(a+"-arrow-pad"));var s=eo.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:o,shift:d}]},t)}else u=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),ee.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=eo.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Sd(Mt(e.body,t));if(e.below){var a=Sd(Mt(e.below,t));r=new fe.MathNode("munderover",[n,a,i])}else r=new fe.MathNode("mover",[n,i])}else if(e.below){var o=Sd(Mt(e.below,t));r=new fe.MathNode("munder",[n,o])}else r=Sd(),r=new fe.MathNode("mover",[n,r]);return r}});var Sae=ee.makeSpan;function yO(e,t){var n=En(e.body,t,!0);return Sae([e.mclass],n,t)}function bO(e,t){var n,r=Sr(e.body,t);return e.mclass==="minner"?n=new fe.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new fe.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new fe.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ke({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:ln(i),isCharacterBox:Ye.isCharacterBox(i)}},htmlBuilder:yO,mathmlBuilder:bO});var hp=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ke({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:hp(t[0]),body:ln(t[1]),isCharacterBox:Ye.isCharacterBox(t[1])}}});ke({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;r!=="\\stackrel"?o=hp(i):o="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:ln(i)},l={type:"supsub",mode:a.mode,base:s,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:Ye.isCharacterBox(l)}},htmlBuilder:yO,mathmlBuilder:bO});ke({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:hp(t[0]),body:ln(t[0])}},htmlBuilder(e,t){var n=En(e.body,t,!0),r=ee.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Sr(e.body,t),r=new fe.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Cae={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Nb=()=>({type:"styling",body:[],mode:"math",style:"display"}),kb=e=>e.type==="textord"&&e.text==="@",Aae=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Nae(e,t,n){var r=Cae[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[a],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function kae(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new me("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(c)>-1)for(var d=0;d<2;d++){for(var f=!0,h=l+1;hAV=|." after @',o[l]);var m=Nae(c,u,e),g={type:"styling",body:[m],mode:"math",style:"display"};r.push(g),s=Nb()}a%2===0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var b=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ke({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=ee.wrapFragment(Et(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=we(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new fe.MathNode("mrow",[Mt(e.label,t)]);return n=new fe.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new fe.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ke({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=ee.wrapFragment(Et(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new fe.MathNode("mrow",[Mt(e.fragment,t)])}});ke({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=it(t[0],"ordgroup"),i=r.body,a="",o=0;o=1114111)throw new me("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var EO=(e,t)=>{var n=En(e.body,t.withColor(e.color),!1);return ee.makeFragment(n)},TO=(e,t)=>{var n=Sr(e.body,t.withColor(e.color)),r=new fe.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ke({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=it(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:ln(i)}},htmlBuilder:EO,mathmlBuilder:TO});ke({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=it(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:EO,mathmlBuilder:TO});ke({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&it(i,"size").value}},htmlBuilder(e,t){var n=ee.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=we(Qt(e.size,t)))),n},mathmlBuilder(e,t){var n=new fe.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",we(Qt(e.size,t)))),n}});var x2={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},xO=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new me("Expected a control sequence",e);return t},Oae=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_O=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ke({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(x2[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=x2[r.text]),it(t.parseFunction(),"internal");throw new me("Invalid token after macro prefix",r)}});ke({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new me("Expected a control sequence",r);for(var a=0,o,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new me('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new me('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if(r.text==="EOF")throw new me("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===x2[n]),{type:"internal",mode:t.mode}}});ke({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=xO(t.gullet.popToken());t.gullet.consumeSpaces();var i=Oae(t);return _O(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ke({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=xO(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return _O(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var zu=function(t,n,r){var i=Ft.math[t]&&Ft.math[t].replace,a=K8(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},J8=function(t,n,r,i){var a=r.havingBaseStyle(n),o=ee.makeSpan(i.concat(a.sizingClasses(r)),[t],r),s=a.sizeMultiplier/r.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=a.sizeMultiplier,o},wO=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=we(a),t.height-=a,t.depth+=a},Rae=function(t,n,r,i,a,o){var s=ee.makeSymbol(t,"Main-Regular",a,i),l=J8(s,n,i,o);return r&&wO(l,i,n),l},Iae=function(t,n,r,i){return ee.makeSymbol(t,"Size"+n+"-Regular",r,i)},SO=function(t,n,r,i,a,o){var s=Iae(t,n,a,i),l=J8(ee.makeSpan(["delimsizing","size"+n],[s],i),Ge.TEXT,i,o);return r&&wO(l,i,Ge.TEXT),l},jg=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=ee.makeSpan(["delimsizinginner",i],[ee.makeSpan([],[ee.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Gg=function(t,n,r){var i=ta["Size4-Regular"][t.charCodeAt(0)]?ta["Size4-Regular"][t.charCodeAt(0)][4]:ta["Size1-Regular"][t.charCodeAt(0)][4],a=new is("inner",Fie(t,Math.round(1e3*n))),o=new Za([a],{width:we(i),height:we(n),style:"width:"+we(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=ee.makeSvgSpan([],[o],r);return s.height=n,s.style.height=we(n),s.style.width=we(i),{type:"elem",elem:s}},_2=.008,Cd={type:"kern",size:-1*_2},Mae=["|","\\lvert","\\rvert","\\vert"],Lae=["\\|","\\lVert","\\rVert","\\Vert"],CO=function(t,n,r,i,a,o){var s,l,c,u,d="",f=0;s=c=u=t,l=null;var h="Size1-Regular";t==="\\uparrow"?c=u="⏐":t==="\\Uparrow"?c=u="‖":t==="\\downarrow"?s=c="⏐":t==="\\Downarrow"?s=c="‖":t==="\\updownarrow"?(s="\\uparrow",c="⏐",u="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="‖",u="\\Downarrow"):Ye.contains(Mae,t)?(c="∣",d="vert",f=333):Ye.contains(Lae,t)?(c="∥",d="doublevert",f=556):t==="["||t==="\\lbrack"?(s="⎡",c="⎢",u="⎣",h="Size4-Regular",d="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="⎤",c="⎥",u="⎦",h="Size4-Regular",d="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(c=s="⎢",u="⎣",h="Size4-Regular",d="lfloor",f=667):t==="\\lceil"||t==="⌈"?(s="⎡",c=u="⎢",h="Size4-Regular",d="lceil",f=667):t==="\\rfloor"||t==="⌋"?(c=s="⎥",u="⎦",h="Size4-Regular",d="rfloor",f=667):t==="\\rceil"||t==="⌉"?(s="⎤",c=u="⎥",h="Size4-Regular",d="rceil",f=667):t==="("||t==="\\lparen"?(s="⎛",c="⎜",u="⎝",h="Size4-Regular",d="lparen",f=875):t===")"||t==="\\rparen"?(s="⎞",c="⎟",u="⎠",h="Size4-Regular",d="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",u="⎩",c="⎪",h="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",u="⎭",c="⎪",h="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",u="⎩",c="⎪",h="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",u="⎭",c="⎪",h="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",u="⎭",c="⎪",h="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",u="⎩",c="⎪",h="Size4-Regular");var m=zu(s,h,a),g=m.height+m.depth,b=zu(c,h,a),p=b.height+b.depth,v=zu(u,h,a),T=v.height+v.depth,C=0,R=1;if(l!==null){var N=zu(l,h,a);C=N.height+N.depth,R=2}var O=g+T+C,$=Math.max(0,Math.ceil((n-O)/(R*p))),M=O+$*R*p,L=i.fontMetrics().axisHeight;r&&(L*=i.sizeMultiplier);var X=M/2-L,Z=[];if(d.length>0){var Q=M-g-T,K=Math.round(M*1e3),V=Bie(d,Math.round(Q*1e3)),ne=new is(d,V),B=(f/1e3).toFixed(3)+"em",w=(K/1e3).toFixed(3)+"em",D=new Za([ne],{width:B,height:w,viewBox:"0 0 "+f+" "+K}),A=ee.makeSvgSpan([],[D],i);A.height=K/1e3,A.style.width=B,A.style.height=w,Z.push({type:"elem",elem:A})}else{if(Z.push(jg(u,h,a)),Z.push(Cd),l===null){var W=M-g-T+2*_2;Z.push(Gg(c,W,i))}else{var te=(M-g-T-C)/2+2*_2;Z.push(Gg(c,te,i)),Z.push(Cd),Z.push(jg(l,h,a)),Z.push(Cd),Z.push(Gg(c,te,i))}Z.push(Cd),Z.push(jg(s,h,a))}var P=i.havingBaseStyle(Ge.TEXT),Te=ee.makeVList({positionType:"bottom",positionData:X,children:Z},P);return J8(ee.makeSpan(["delimsizing","mult"],[Te],P),Ge.TEXT,i,o)},Vg=80,Kg=.08,Wg=function(t,n,r,i,a){var o=$ie(t,i,r),s=new is(t,o),l=new Za([s],{width:"400em",height:we(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ee.makeSvgSpan(["hide-tail"],[l],a)},Dae=function(t,n){var r=n.havingBaseSizing(),i=OO("\\surd",t*r.sizeMultiplier,kO,r),a=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,d;return i.type==="small"?(u=1e3+1e3*o+Vg,t<1?a=1:t<1.4&&(a=.7),l=(1+o+Kg)/a,c=(1+o)/a,s=Wg("sqrtMain",l,u,o,n),s.style.minWidth="0.853em",d=.833/a):i.type==="large"?(u=(1e3+Vg)*a1[i.size],c=(a1[i.size]+o)/a,l=(a1[i.size]+o+Kg)/a,s=Wg("sqrtSize"+i.size,l,u,o,n),s.style.minWidth="1.02em",d=1/a):(l=t+o+Kg,c=t+o,u=Math.floor(1e3*t+o)+Vg,s=Wg("sqrtTall",l,u,o,n),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=we(l),{span:s,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*a}},AO=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Pae=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],NO=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],a1=[0,1.2,1.8,2.4,3],$ae=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ye.contains(AO,t)||Ye.contains(NO,t))return SO(t,n,!1,r,i,a);if(Ye.contains(Pae,t))return CO(t,a1[n],!1,r,i,a);throw new me("Illegal delimiter: '"+t+"'")},Fae=[{type:"small",style:Ge.SCRIPTSCRIPT},{type:"small",style:Ge.SCRIPT},{type:"small",style:Ge.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bae=[{type:"small",style:Ge.SCRIPTSCRIPT},{type:"small",style:Ge.SCRIPT},{type:"small",style:Ge.TEXT},{type:"stack"}],kO=[{type:"small",style:Ge.SCRIPTSCRIPT},{type:"small",style:Ge.SCRIPT},{type:"small",style:Ge.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],zae=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},OO=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),o=a;on)return r[o]}return r[r.length-1]},RO=function(t,n,r,i,a,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Ye.contains(NO,t)?s=Fae:Ye.contains(AO,t)?s=kO:s=Bae;var l=OO(t,n,s,i);return l.type==="small"?Rae(t,l.style,r,i,a,o):l.type==="large"?SO(t,l.size,r,i,a,o):CO(t,n,r,i,a,o)},Uae=function(t,n,r,i,a,o){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),d=Math.max(u/500*l,2*u-c);return RO(t,d,!0,i,a,o)},Ga={sqrtImage:Dae,sizedDelim:$ae,sizeToMaxHeight:a1,customSizedDelim:RO,leftRightDelim:Uae},Ob={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Hae=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function mp(e,t){var n=fp(e);if(n&&Ye.contains(Hae,n.text))return n;throw n?new me("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new me("Invalid delimiter type '"+e.type+"'",e)}ke({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=mp(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ob[e.funcName].size,mclass:Ob[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ee.makeSpan([e.mclass]):Ga.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(li(e.delim,e.mode));var n=new fe.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=we(Ga.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Rb(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ke({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new me("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:mp(t[0],e).text,color:n}}});ke({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=mp(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=it(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Rb(e);for(var n=En(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,o=0;o{Rb(e);var n=Sr(e.body,t);if(e.left!=="."){var r=new fe.MathNode("mo",[li(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new fe.MathNode("mo",[li(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return Y8(n)}});ke({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=mp(t[0],e);if(!e.parser.leftrightDepth)throw new me("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=q1(t,[]);else{n=Ga.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?li("|","text"):li(e.delim,e.mode),r=new fe.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var e6=(e,t)=>{var n=ee.wrapFragment(Et(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=Ye.isCharacterBox(e.body);if(r==="sout")a=ee.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=Qt({number:.6,unit:"pt"},t),c=Qt({number:.35,unit:"ex"},t),u=t.havingBaseSizing();i=i/u.sizeMultiplier;var d=n.height+n.depth+l+c;n.style.paddingLeft=we(d/2+l);var f=Math.floor(1e3*d*i),h=Die(f),m=new Za([new is("phase",h)],{width:"400em",height:we(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=ee.makeSvgSpan(["hide-tail"],[m],t),a.style.height=we(d),o=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,b=0,p=0;/box/.test(r)?(p=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=t.fontMetrics().fboxsep+(r==="colorbox"?0:p),b=g):r==="angl"?(p=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),g=4*p,b=Math.max(0,.25-n.depth)):(g=s?.2:0,b=g),a=eo.encloseSpan(n,r,g,b,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=we(p)):r==="angl"&&p!==.049&&(a.style.borderTopWidth=we(p),a.style.borderRightWidth=we(p)),o=n.depth+b,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var T=/cancel|phase/.test(r)?["svg-align"]:[];v=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:T}]},t)}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?ee.makeSpan(["mord","cancel-lap"],[v],t):ee.makeSpan(["mord"],[v],t)},t6=(e,t)=>{var n=0,r=new fe.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Mt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ke({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=it(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:e6,mathmlBuilder:t6});ke({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=it(t[0],"color-token").color,o=it(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:e6,mathmlBuilder:t6});ke({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ke({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:e6,mathmlBuilder:t6});ke({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var IO={};function pa(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new me("{"+e.envName+"} can be used only in display mode.")};function n6(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function ms(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(h==null)o=1;else if(o=parseFloat(h),!o||o<0)throw new me("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var m=[],g=[m],b=[],p=[],v=l!=null?[]:void 0;function T(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new sa("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),p.push(Ib(e));;){var R=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),m.push(R);var N=e.fetch().text;if(N==="&"){if(d&&m.length===d){if(c||s)throw new me("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){C(),m.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),p.length0&&(T+=.25),c.push({pos:T,isDashed:ae[le]})}for(C(o[0]),r=0;r0&&(X+=v,Oae))for(r=0;r=s)){var Ae=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ae=Ye.deflt(te.pregap,f),Ae!==0&&(V=ee.makeSpan(["arraycolsep"],[]),V.style.width=we(Ae),K.push(V)));var qe=[];for(r=0;r0){for(var Ct=ee.makeLineSpan("hline",n,u),or=ee.makeLineSpan("hdashline",n,u),en=[{type:"elem",elem:l,shift:0}];c.length>0;){var sr=c.pop(),j=sr.pos-Z;sr.isDashed?en.push({type:"elem",elem:or,shift:j}):en.push({type:"elem",elem:Ct,shift:j})}l=ee.makeVList({positionType:"individualShift",children:en},n)}if(B.length===0)return ee.makeSpan(["mord"],[l],n);var ie=ee.makeVList({positionType:"individualShift",children:B},n);return ie=ee.makeSpan(["tag"],[ie],n),ee.makeFragment([l,ie])},jae={c:"center ",l:"left ",r:"right "},va=function(t,n){for(var r=[],i=new fe.MathNode("mtd",[],["mtr-glue"]),a=new fe.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var m=t.cols,g="",b=!1,p=0,v=m.length;m[0].type==="separator"&&(f+="top ",p=1),m[m.length-1].type==="separator"&&(f+="bottom ",v-=1);for(var T=p;T0?"left ":"",f+=$[$.length-1].length>0?"right ":"";for(var M=1;M<$.length-1;M++)O+=$[M].length===0?"none ":$[M][0]?"dashed ":"solid ";return/[sd]/.test(O)&&u.setAttribute("rowlines",O.trim()),f!==""&&(u=new fe.MathNode("menclose",[u]),u.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(u=new fe.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},LO=function(t,n){t.envName.indexOf("ed")===-1&&pp(t);var r=[],i=t.envName.indexOf("at")>-1?"alignat":"align",a=t.envName==="split",o=ms(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:n6(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d0&&h&&(b=1),r[m]={type:"align",align:g,pregap:b,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};pa({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=fp(t[0]),r=n?[t[0]]:it(t[0],"ordgroup").body,i=r.map(function(o){var s=Q8(o),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new me("Unknown column alignment: "+l,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return ms(e.parser,a,r6(e.envName))},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new me("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=ms(e.parser,r,r6(e.envName)),o=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=ms(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=fp(t[0]),r=n?[t[0]]:it(t[0],"ordgroup").body,i=r.map(function(o){var s=Q8(o),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new me("Unknown column alignment: "+l,o)});if(i.length>1)throw new me("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=ms(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new me("{subarray} can contain only one column");return a},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=ms(e.parser,t,r6(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:LO,htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Ye.contains(["gather","gather*"],e.envName)&&pp(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:n6(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ms(e.parser,t,"display")},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:LO,htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){pp(e);var t={autoTag:n6(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ms(e.parser,t,"display")},htmlBuilder:ga,mathmlBuilder:va});pa({type:"array",names:["CD"],props:{numArgs:0},handler(e){return pp(e),kae(e.parser)},htmlBuilder:ga,mathmlBuilder:va});I("\\nonumber","\\gdef\\@eqnsw{0}");I("\\notag","\\nonumber");ke({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new me(e.funcName+" valid only within array environment")}});var Mb=IO;ke({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new me("Invalid environment name",i);for(var a="",o=0;o{var n=e.font,r=t.withFont(n);return Et(e.body,r)},PO=(e,t)=>{var n=e.font,r=t.withFont(n);return Mt(e.body,r)},Lb={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ke({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=Hh(t[0]),a=r;return a in Lb&&(a=Lb[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:DO,mathmlBuilder:PO});ke({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Ye.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:hp(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ke({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:DO,mathmlBuilder:PO});var $O=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ge.SCRIPT.id?n.text():Ge.DISPLAY:e==="text"&&n.size===Ge.DISPLAY.size?n=Ge.TEXT:e==="script"?n=Ge.SCRIPT:e==="scriptscript"&&(n=Ge.SCRIPTSCRIPT),n},i6=(e,t)=>{var n=$O(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=Et(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?m=3*f:m=7*f,g=t.fontMetrics().denom1):(d>0?(h=t.fontMetrics().num2,m=f):(h=t.fontMetrics().num3,m=3*f),g=t.fontMetrics().denom2);var b;if(u){var v=t.fontMetrics().axisHeight;h-o.depth-(v+.5*d){var n=new fe.MathNode("mfrac",[Mt(e.numer,t),Mt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Qt(e.barSize,t);n.setAttribute("linethickness",we(r))}var i=$O(e.size,t.style);if(i.size!==t.style.size){n=new fe.MathNode("mstyle",[n]);var a=i.size===Ge.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new fe.MathNode("mo",[new fe.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var l=new fe.MathNode("mo",[new fe.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Y8(o)}return n};ke({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,s="(",l=")";break;case"\\\\bracefrac":o=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:i6,mathmlBuilder:a6});ke({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ke({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Db=["display","text","script","scriptscript"],Pb=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ke({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=Hh(t[0]),o=a.type==="atom"&&a.family==="open"?Pb(a.text):null,s=Hh(t[1]),l=s.type==="atom"&&s.family==="close"?Pb(s.text):null,c=it(t[2],"size"),u,d=null;c.isBlank?u=!0:(d=c.value,u=d.number>0);var f="auto",h=t[3];if(h.type==="ordgroup"){if(h.body.length>0){var m=it(h.body[0],"textord");f=Db[Number(m.text)]}}else h=it(h,"textord"),f=Db[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:l,size:f}},htmlBuilder:i6,mathmlBuilder:a6});ke({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:it(t[0],"size").value,token:i}}});ke({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Eie(it(t[1],"infix").size),o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:i6,mathmlBuilder:a6});var FO=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Et(e.sup,t.havingStyle(n.sup()),t):Et(e.sub,t.havingStyle(n.sub()),t),i=it(e.base,"horizBrace")):i=it(e,"horizBrace");var a=Et(i.base,t.havingBaseStyle(Ge.DISPLAY)),o=eo.svgSpan(i,t),s;if(i.isOver?(s=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=ee.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ee.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=ee.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return ee.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)},Gae=(e,t)=>{var n=eo.mathMLnode(e.label);return new fe.MathNode(e.isOver?"mover":"munder",[Mt(e.base,t),n])};ke({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:FO,mathmlBuilder:Gae});ke({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=it(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:ln(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=En(e.body,t,!1);return ee.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=as(e.body,t);return n instanceof Jr||(n=new Jr("mrow",[n])),n.setAttribute("href",e.href),n}});ke({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=it(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=it(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),u=0;u{var n=En(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=ee.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>as(e.body,t)});ke({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:ln(t[0]),mathml:ln(t[1])}},htmlBuilder:(e,t)=>{var n=En(e.html,t,!1);return ee.makeFragment(n)},mathmlBuilder:(e,t)=>as(e.mathml,t)});var qg=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new me("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!rO(r))throw new me("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ke({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=it(n[0],"raw").string,c=l.split(","),u=0;u{var n=Qt(e.height,t),r=0;e.totalheight.number>0&&(r=Qt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Qt(e.width,t));var a={height:we(n+r)};i>0&&(a.width=we(i)),r>0&&(a.verticalAlign=we(-r));var o=new Gie(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new fe.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Qt(e.height,t),i=0;if(e.totalheight.number>0&&(i=Qt(e.totalheight,t)-r,n.setAttribute("valign",we(-i))),n.setAttribute("height",we(r+i)),e.width.number>0){var a=Qt(e.width,t);n.setAttribute("width",we(a))}return n.setAttribute("src",e.src),n}});ke({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=it(t[0],"size");if(n.settings.strict){var a=r[1]==="m",o=i.value.unit==="mu";a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return ee.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Qt(e.dimension,t);return new fe.SpaceNode(n)}});ke({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ee.makeSpan([],[Et(e.body,t)]),n=ee.makeSpan(["inner"],[n],t)):n=ee.makeSpan(["inner"],[Et(e.body,t)]);var r=ee.makeSpan(["fix"],[]),i=ee.makeSpan([e.alignment],[n,r],t),a=ee.makeSpan(["strut"]);return a.style.height=we(i.height+i.depth),i.depth&&(a.style.verticalAlign=we(-i.depth)),i.children.unshift(a),i=ee.makeSpan(["thinbox"],[i],t),ee.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new fe.MathNode("mpadded",[Mt(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ke({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});ke({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new me("Mismatched "+e.funcName)}});var $b=(e,t)=>{switch(t.style.size){case Ge.DISPLAY.size:return e.display;case Ge.TEXT.size:return e.text;case Ge.SCRIPT.size:return e.script;case Ge.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ke({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:ln(t[0]),text:ln(t[1]),script:ln(t[2]),scriptscript:ln(t[3])}},htmlBuilder:(e,t)=>{var n=$b(e,t),r=En(n,t,!1);return ee.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=$b(e,t);return as(n,t)}});var BO=(e,t,n,r,i,a,o)=>{e=ee.makeSpan([],[e]);var s=n&&Ye.isCharacterBox(n),l,c;if(t){var u=Et(t,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Et(n,r.havingStyle(i.sub()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(c&&l){var h=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;f=ee.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:we(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:we(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var m=e.height-o;f=ee.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:we(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var g=e.depth+o;f=ee.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:we(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var b=[f];if(l&&a!==0&&!s){var p=ee.makeSpan(["mspace"],[],r);p.style.marginRight=we(a),b.unshift(p)}return ee.makeSpan(["mop","op-limits"],b,r)},zO=["\\smallint"],ou=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=it(e.base,"op"),i=!0):a=it(e,"op");var o=t.style,s=!1;o.size===Ge.DISPLAY.size&&a.symbol&&!Ye.contains(zO,a.name)&&(s=!0);var l;if(a.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(u=a.name.slice(1),a.name=u==="oiint"?"\\iint":"\\iiint"),l=ee.makeSymbol(a.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var d=l.italic,f=ee.staticSvg(u+"Size"+(s?"2":"1"),t);l=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]},t),a.name="\\"+u,l.classes.unshift("mop"),l.italic=d}}else if(a.body){var h=En(a.body,t,!0);h.length===1&&h[0]instanceof si?(l=h[0],l.classes[0]="mop"):l=ee.makeSpan(["mop"],h,t)}else{for(var m=[],g=1;g{var n;if(e.symbol)n=new Jr("mo",[li(e.name,e.mode)]),Ye.contains(zO,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Jr("mo",Sr(e.body,t));else{n=new Jr("mi",[new i1(e.name.slice(1))]);var r=new Jr("mo",[li("⁡","text")]);e.parentIsSupSub?n=new Jr("mrow",[n,r]):n=mO([n,r])}return n},Vae={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ke({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Vae[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ou,mathmlBuilder:O0});ke({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ln(r)}},htmlBuilder:ou,mathmlBuilder:O0});var Kae={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ke({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ou,mathmlBuilder:O0});ke({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ou,mathmlBuilder:O0});ke({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Kae[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ou,mathmlBuilder:O0});var UO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=it(e.base,"operatorname"),i=!0):a=it(e,"operatorname");var o;if(a.body.length>0){for(var s=a.body.map(d=>{var f=d.text;return typeof f=="string"?{type:"textord",mode:d.mode,text:f}:d}),l=En(s,t.withFont("mathrm"),!0),c=0;c{for(var n=Sr(e.body,t.withFont("mathrm")),r=!0,i=0;iu.toText()).join("");n=[new fe.TextNode(s)]}var l=new fe.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new fe.MathNode("mo",[li("⁡","text")]);return e.parentIsSupSub?new fe.MathNode("mrow",[l,c]):fe.newDocumentFragment([l,c])};ke({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:ln(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:UO,mathmlBuilder:Wae});I("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");_l({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ee.makeFragment(En(e.body,t,!1)):ee.makeSpan(["mord"],En(e.body,t,!0),t)},mathmlBuilder(e,t){return as(e.body,t,!0)}});ke({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Et(e.body,t.havingCrampedStyle()),r=ee.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return ee.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[new fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fe.MathNode("mover",[Mt(e.body,t),n]);return r.setAttribute("accent","true"),r}});ke({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:ln(r)}},htmlBuilder:(e,t)=>{var n=En(e.body,t.withPhantom(),!1);return ee.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Sr(e.body,t);return new fe.MathNode("mphantom",n)}});ke({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ee.makeSpan([],[Et(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Sr(ln(e.body),t),r=new fe.MathNode("mphantom",n),i=new fe.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ke({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ee.makeSpan(["inner"],[Et(e.body,t.withPhantom())]),r=ee.makeSpan(["fix"],[]);return ee.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Sr(ln(e.body),t),r=new fe.MathNode("mphantom",n),i=new fe.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ke({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=it(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Et(e.body,t),r=Qt(e.dy,t);return ee.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new fe.MathNode("mpadded",[Mt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ke({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ke({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=it(t[0],"size"),o=it(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&it(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=ee.makeSpan(["mord","rule"],[],t),r=Qt(e.width,t),i=Qt(e.height,t),a=e.shift?Qt(e.shift,t):0;return n.style.borderRightWidth=we(r),n.style.borderTopWidth=we(i),n.style.bottom=we(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Qt(e.width,t),r=Qt(e.height,t),i=e.shift?Qt(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new fe.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",we(n)),o.setAttribute("height",we(r));var s=new fe.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height",we(i)):(s.setAttribute("height",we(i)),s.setAttribute("depth",we(-i))),s.setAttribute("voffset",we(i)),s}});function HO(e,t,n){for(var r=En(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return HO(e.body,n,t)};ke({type:"sizing",names:Fb,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Fb.indexOf(r)+1,body:a}},htmlBuilder:qae,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Sr(e.body,n),i=new fe.MathNode("mstyle",r);return i.setAttribute("mathsize",we(n.sizeMultiplier)),i}});ke({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&it(n[0],"ordgroup");if(o)for(var s="",l=0;l{var n=ee.makeSpan([],[Et(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new fe.MathNode("mpadded",[Mt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ke({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Et(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ee.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var f=l.height-n.height-o-c;n.style.paddingLeft=we(u);var h=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var m=t.havingStyle(Ge.SCRIPTSCRIPT),g=Et(e.index,m,t),b=.6*(h.height-h.depth),p=ee.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:g}]},t),v=ee.makeSpan(["root"],[p]);return ee.makeSpan(["mord","sqrt"],[v,h],t)}else return ee.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new fe.MathNode("mroot",[Mt(n,t),Mt(r,t)]):new fe.MathNode("msqrt",[Mt(n,t)])}});var Bb={display:Ge.DISPLAY,text:Ge.TEXT,script:Ge.SCRIPT,scriptscript:Ge.SCRIPTSCRIPT};ke({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Bb[e.style],r=t.havingStyle(n).withFont("");return HO(e.body,r,t)},mathmlBuilder(e,t){var n=Bb[e.style],r=t.havingStyle(n),i=Sr(e.body,r),a=new fe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var Yae=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ge.DISPLAY.size||r.alwaysHandleSupSub);return i?ou:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ge.DISPLAY.size||r.limits);return a?UO:null}else{if(r.type==="accent")return Ye.isCharacterBox(r.base)?Z8:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?FO:null}else return null}else return null};_l({type:"supsub",htmlBuilder(e,t){var n=Yae(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Et(r,t),s,l,c=t.fontMetrics(),u=0,d=0,f=r&&Ye.isCharacterBox(r);if(i){var h=t.havingStyle(t.style.sup());s=Et(i,h,t),f||(u=o.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());l=Et(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var g;t.style===Ge.DISPLAY?g=c.sup1:t.style.cramped?g=c.sup3:g=c.sup2;var b=t.sizeMultiplier,p=we(.5/c.ptPerEm/b),v=null;if(l){var T=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof si||T)&&(v=we(-o.italic))}var C;if(s&&l){u=Math.max(u,g,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var R=c.defaultRuleThickness,N=4*R;if(u-s.depth-(l.height-d)0&&(u+=O,d-=O)}var $=[{type:"elem",elem:l,shift:d,marginRight:p,marginLeft:v},{type:"elem",elem:s,shift:-u,marginRight:p}];C=ee.makeVList({positionType:"individualShift",children:$},t)}else if(l){d=Math.max(d,c.sub1,l.height-.8*c.xHeight);var M=[{type:"elem",elem:l,marginLeft:v,marginRight:p}];C=ee.makeVList({positionType:"shift",positionData:d,children:M},t)}else if(s)u=Math.max(u,g,s.depth+.25*c.xHeight),C=ee.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:p}]},t);else throw new Error("supsub must have either sup or sub.");var L=E2(o,"right")||"mord";return ee.makeSpan([L],[o,ee.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Mt(e.base,t)];e.sub&&a.push(Mt(e.sub,t)),e.sup&&a.push(Mt(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Ge.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Ge.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ge.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ge.DISPLAY)?o="munder":o="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Ge.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Ge.DISPLAY)?o="mover":o="msup"}return new fe.MathNode(o,a)}});_l({type:"atom",htmlBuilder(e,t){return ee.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[li(e.text,e.mode)]);if(e.family==="bin"){var r=X8(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var jO={mi:"italic",mn:"normal",mtext:"normal"};_l({type:"mathord",htmlBuilder(e,t){return ee.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new fe.MathNode("mi",[li(e.text,e.mode,t)]),r=X8(e,t)||"italic";return r!==jO[n.type]&&n.setAttribute("mathvariant",r),n}});_l({type:"textord",htmlBuilder(e,t){return ee.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=li(e.text,e.mode,t),r=X8(e,t)||"normal",i;return e.mode==="text"?i=new fe.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new fe.MathNode("mn",[n]):e.text==="\\prime"?i=new fe.MathNode("mo",[n]):i=new fe.MathNode("mi",[n]),r!==jO[i.type]&&i.setAttribute("mathvariant",r),i}});var Yg={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Xg={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};_l({type:"spacing",htmlBuilder(e,t){if(Xg.hasOwnProperty(e.text)){var n=Xg[e.text].className||"";if(e.mode==="text"){var r=ee.makeOrd(e,t,"textord");return r.classes.push(n),r}else return ee.makeSpan(["mspace",n],[ee.mathsym(e.text,e.mode,t)],t)}else{if(Yg.hasOwnProperty(e.text))return ee.makeSpan(["mspace",Yg[e.text]],[],t);throw new me('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Xg.hasOwnProperty(e.text))n=new fe.MathNode("mtext",[new fe.TextNode(" ")]);else{if(Yg.hasOwnProperty(e.text))return new fe.MathNode("mspace");throw new me('Unknown type of space "'+e.text+'"')}return n}});var zb=()=>{var e=new fe.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};_l({type:"tag",mathmlBuilder(e,t){var n=new fe.MathNode("mtable",[new fe.MathNode("mtr",[zb(),new fe.MathNode("mtd",[as(e.body,t)]),zb(),new fe.MathNode("mtd",[as(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Ub={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Hb={"\\textbf":"textbf","\\textmd":"textmd"},Xae={"\\textit":"textit","\\textup":"textup"},jb=(e,t)=>{var n=e.font;return n?Ub[n]?t.withTextFontFamily(Ub[n]):Hb[n]?t.withTextFontWeight(Hb[n]):t.withTextFontShape(Xae[n]):t};ke({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:ln(i),font:r}},htmlBuilder(e,t){var n=jb(e,t),r=En(e.body,n,!0);return ee.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=jb(e,t);return as(e.body,n)}});ke({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Et(e.body,t),r=ee.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=ee.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return ee.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[new fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fe.MathNode("munder",[Mt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ke({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Et(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return ee.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new fe.MathNode("mpadded",[Mt(e.body,t)],["vcenter"])}});ke({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new me("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Gb(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Po=fO,GO=`[ \r - ]`,Qae="\\\\[a-zA-Z@]+",Zae="\\\\[^\uD800-\uDFFF]",Jae="("+Qae+")"+GO+"*",eoe=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class U0{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Ye.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}}var aa={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Md={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Cb={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Jie(e,t){aa[e]=t}function t8(e,t,n){if(!aa[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=aa[t][r];if(!i&&e[0]in Cb&&(r=Cb[e[0]].charCodeAt(0),i=aa[t][r]),!i&&n==="text"&&fO(r)&&(i=aa[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Gg={};function eae(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Gg[t]){var n=Gg[t]={cssEmPerMu:Md.quad[t]/18};for(var r in Md)Md.hasOwnProperty(r)&&(n[r]=Md[r][t])}return Gg[t]}var tae=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ab=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Nb=function(t,n){return n.size<2?t:tae[t-1][n.size-1]};class Fa{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Fa.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ab[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Fa(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Nb(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ab[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Nb(Fa.BASESIZE,t);return this.size===n&&this.textSize===Fa.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Fa.BASESIZE?["sizing","reset-size"+this.size,"size"+Fa.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=eae(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Fa.BASESIZE=6;var w2={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},nae={ex:!0,em:!0,mu:!0},hO=function(t){return typeof t!="string"&&(t=t.unit),t in w2||t in nae||t==="ex"},Qt=function(t,n){var r;if(t.unit in w2)r=w2[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new me("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},we=function(t){return+t.toFixed(4)+"em"},os=function(t){return t.filter(n=>n).join(" ")},mO=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},pO=function(t){var n=document.createElement(t);n.className=os(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};class j0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,mO.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ye.contains(this.classes,t)}toNode(){return pO.call(this,"span")}toMarkup(){return gO.call(this,"span")}}class n8{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,mO.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Ye.contains(this.classes,t)}toNode(){return pO.call(this,"a")}toMarkup(){return gO.call(this,"a")}}class rae{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Ye.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=we(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=os(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Ye.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Ye.escape(r)+'"');var a=Ye.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class to{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class S2{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var oae={bin:1,close:1,inner:1,open:1,punct:1,rel:1},sae={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bt={math:{},text:{}};function x(e,t,n,r,i,a){Bt[e][i]={font:t,group:n,replace:r},a&&r&&(Bt[e][r]=Bt[e][i])}var _="math",de="text",k="main",F="ams",Wt="accent-token",Ie="bin",or="close",hu="inner",We="mathord",bn="op-token",Vr="open",gp="punct",z="rel",uo="spacing",q="textord";x(_,k,z,"≡","\\equiv",!0);x(_,k,z,"≺","\\prec",!0);x(_,k,z,"≻","\\succ",!0);x(_,k,z,"∼","\\sim",!0);x(_,k,z,"⊥","\\perp");x(_,k,z,"⪯","\\preceq",!0);x(_,k,z,"⪰","\\succeq",!0);x(_,k,z,"≃","\\simeq",!0);x(_,k,z,"∣","\\mid",!0);x(_,k,z,"≪","\\ll",!0);x(_,k,z,"≫","\\gg",!0);x(_,k,z,"≍","\\asymp",!0);x(_,k,z,"∥","\\parallel");x(_,k,z,"⋈","\\bowtie",!0);x(_,k,z,"⌣","\\smile",!0);x(_,k,z,"⊑","\\sqsubseteq",!0);x(_,k,z,"⊒","\\sqsupseteq",!0);x(_,k,z,"≐","\\doteq",!0);x(_,k,z,"⌢","\\frown",!0);x(_,k,z,"∋","\\ni",!0);x(_,k,z,"∝","\\propto",!0);x(_,k,z,"⊢","\\vdash",!0);x(_,k,z,"⊣","\\dashv",!0);x(_,k,z,"∋","\\owns");x(_,k,gp,".","\\ldotp");x(_,k,gp,"⋅","\\cdotp");x(_,k,q,"#","\\#");x(de,k,q,"#","\\#");x(_,k,q,"&","\\&");x(de,k,q,"&","\\&");x(_,k,q,"ℵ","\\aleph",!0);x(_,k,q,"∀","\\forall",!0);x(_,k,q,"ℏ","\\hbar",!0);x(_,k,q,"∃","\\exists",!0);x(_,k,q,"∇","\\nabla",!0);x(_,k,q,"♭","\\flat",!0);x(_,k,q,"ℓ","\\ell",!0);x(_,k,q,"♮","\\natural",!0);x(_,k,q,"♣","\\clubsuit",!0);x(_,k,q,"℘","\\wp",!0);x(_,k,q,"♯","\\sharp",!0);x(_,k,q,"♢","\\diamondsuit",!0);x(_,k,q,"ℜ","\\Re",!0);x(_,k,q,"♡","\\heartsuit",!0);x(_,k,q,"ℑ","\\Im",!0);x(_,k,q,"♠","\\spadesuit",!0);x(_,k,q,"§","\\S",!0);x(de,k,q,"§","\\S");x(_,k,q,"¶","\\P",!0);x(de,k,q,"¶","\\P");x(_,k,q,"†","\\dag");x(de,k,q,"†","\\dag");x(de,k,q,"†","\\textdagger");x(_,k,q,"‡","\\ddag");x(de,k,q,"‡","\\ddag");x(de,k,q,"‡","\\textdaggerdbl");x(_,k,or,"⎱","\\rmoustache",!0);x(_,k,Vr,"⎰","\\lmoustache",!0);x(_,k,or,"⟯","\\rgroup",!0);x(_,k,Vr,"⟮","\\lgroup",!0);x(_,k,Ie,"∓","\\mp",!0);x(_,k,Ie,"⊖","\\ominus",!0);x(_,k,Ie,"⊎","\\uplus",!0);x(_,k,Ie,"⊓","\\sqcap",!0);x(_,k,Ie,"∗","\\ast");x(_,k,Ie,"⊔","\\sqcup",!0);x(_,k,Ie,"◯","\\bigcirc",!0);x(_,k,Ie,"∙","\\bullet",!0);x(_,k,Ie,"‡","\\ddagger");x(_,k,Ie,"≀","\\wr",!0);x(_,k,Ie,"⨿","\\amalg");x(_,k,Ie,"&","\\And");x(_,k,z,"⟵","\\longleftarrow",!0);x(_,k,z,"⇐","\\Leftarrow",!0);x(_,k,z,"⟸","\\Longleftarrow",!0);x(_,k,z,"⟶","\\longrightarrow",!0);x(_,k,z,"⇒","\\Rightarrow",!0);x(_,k,z,"⟹","\\Longrightarrow",!0);x(_,k,z,"↔","\\leftrightarrow",!0);x(_,k,z,"⟷","\\longleftrightarrow",!0);x(_,k,z,"⇔","\\Leftrightarrow",!0);x(_,k,z,"⟺","\\Longleftrightarrow",!0);x(_,k,z,"↦","\\mapsto",!0);x(_,k,z,"⟼","\\longmapsto",!0);x(_,k,z,"↗","\\nearrow",!0);x(_,k,z,"↩","\\hookleftarrow",!0);x(_,k,z,"↪","\\hookrightarrow",!0);x(_,k,z,"↘","\\searrow",!0);x(_,k,z,"↼","\\leftharpoonup",!0);x(_,k,z,"⇀","\\rightharpoonup",!0);x(_,k,z,"↙","\\swarrow",!0);x(_,k,z,"↽","\\leftharpoondown",!0);x(_,k,z,"⇁","\\rightharpoondown",!0);x(_,k,z,"↖","\\nwarrow",!0);x(_,k,z,"⇌","\\rightleftharpoons",!0);x(_,F,z,"≮","\\nless",!0);x(_,F,z,"","\\@nleqslant");x(_,F,z,"","\\@nleqq");x(_,F,z,"⪇","\\lneq",!0);x(_,F,z,"≨","\\lneqq",!0);x(_,F,z,"","\\@lvertneqq");x(_,F,z,"⋦","\\lnsim",!0);x(_,F,z,"⪉","\\lnapprox",!0);x(_,F,z,"⊀","\\nprec",!0);x(_,F,z,"⋠","\\npreceq",!0);x(_,F,z,"⋨","\\precnsim",!0);x(_,F,z,"⪹","\\precnapprox",!0);x(_,F,z,"≁","\\nsim",!0);x(_,F,z,"","\\@nshortmid");x(_,F,z,"∤","\\nmid",!0);x(_,F,z,"⊬","\\nvdash",!0);x(_,F,z,"⊭","\\nvDash",!0);x(_,F,z,"⋪","\\ntriangleleft");x(_,F,z,"⋬","\\ntrianglelefteq",!0);x(_,F,z,"⊊","\\subsetneq",!0);x(_,F,z,"","\\@varsubsetneq");x(_,F,z,"⫋","\\subsetneqq",!0);x(_,F,z,"","\\@varsubsetneqq");x(_,F,z,"≯","\\ngtr",!0);x(_,F,z,"","\\@ngeqslant");x(_,F,z,"","\\@ngeqq");x(_,F,z,"⪈","\\gneq",!0);x(_,F,z,"≩","\\gneqq",!0);x(_,F,z,"","\\@gvertneqq");x(_,F,z,"⋧","\\gnsim",!0);x(_,F,z,"⪊","\\gnapprox",!0);x(_,F,z,"⊁","\\nsucc",!0);x(_,F,z,"⋡","\\nsucceq",!0);x(_,F,z,"⋩","\\succnsim",!0);x(_,F,z,"⪺","\\succnapprox",!0);x(_,F,z,"≆","\\ncong",!0);x(_,F,z,"","\\@nshortparallel");x(_,F,z,"∦","\\nparallel",!0);x(_,F,z,"⊯","\\nVDash",!0);x(_,F,z,"⋫","\\ntriangleright");x(_,F,z,"⋭","\\ntrianglerighteq",!0);x(_,F,z,"","\\@nsupseteqq");x(_,F,z,"⊋","\\supsetneq",!0);x(_,F,z,"","\\@varsupsetneq");x(_,F,z,"⫌","\\supsetneqq",!0);x(_,F,z,"","\\@varsupsetneqq");x(_,F,z,"⊮","\\nVdash",!0);x(_,F,z,"⪵","\\precneqq",!0);x(_,F,z,"⪶","\\succneqq",!0);x(_,F,z,"","\\@nsubseteqq");x(_,F,Ie,"⊴","\\unlhd");x(_,F,Ie,"⊵","\\unrhd");x(_,F,z,"↚","\\nleftarrow",!0);x(_,F,z,"↛","\\nrightarrow",!0);x(_,F,z,"⇍","\\nLeftarrow",!0);x(_,F,z,"⇏","\\nRightarrow",!0);x(_,F,z,"↮","\\nleftrightarrow",!0);x(_,F,z,"⇎","\\nLeftrightarrow",!0);x(_,F,z,"△","\\vartriangle");x(_,F,q,"ℏ","\\hslash");x(_,F,q,"▽","\\triangledown");x(_,F,q,"◊","\\lozenge");x(_,F,q,"Ⓢ","\\circledS");x(_,F,q,"®","\\circledR");x(de,F,q,"®","\\circledR");x(_,F,q,"∡","\\measuredangle",!0);x(_,F,q,"∄","\\nexists");x(_,F,q,"℧","\\mho");x(_,F,q,"Ⅎ","\\Finv",!0);x(_,F,q,"⅁","\\Game",!0);x(_,F,q,"‵","\\backprime");x(_,F,q,"▲","\\blacktriangle");x(_,F,q,"▼","\\blacktriangledown");x(_,F,q,"■","\\blacksquare");x(_,F,q,"⧫","\\blacklozenge");x(_,F,q,"★","\\bigstar");x(_,F,q,"∢","\\sphericalangle",!0);x(_,F,q,"∁","\\complement",!0);x(_,F,q,"ð","\\eth",!0);x(de,k,q,"ð","ð");x(_,F,q,"╱","\\diagup");x(_,F,q,"╲","\\diagdown");x(_,F,q,"□","\\square");x(_,F,q,"□","\\Box");x(_,F,q,"◊","\\Diamond");x(_,F,q,"¥","\\yen",!0);x(de,F,q,"¥","\\yen",!0);x(_,F,q,"✓","\\checkmark",!0);x(de,F,q,"✓","\\checkmark");x(_,F,q,"ℶ","\\beth",!0);x(_,F,q,"ℸ","\\daleth",!0);x(_,F,q,"ℷ","\\gimel",!0);x(_,F,q,"ϝ","\\digamma",!0);x(_,F,q,"ϰ","\\varkappa");x(_,F,Vr,"┌","\\@ulcorner",!0);x(_,F,or,"┐","\\@urcorner",!0);x(_,F,Vr,"└","\\@llcorner",!0);x(_,F,or,"┘","\\@lrcorner",!0);x(_,F,z,"≦","\\leqq",!0);x(_,F,z,"⩽","\\leqslant",!0);x(_,F,z,"⪕","\\eqslantless",!0);x(_,F,z,"≲","\\lesssim",!0);x(_,F,z,"⪅","\\lessapprox",!0);x(_,F,z,"≊","\\approxeq",!0);x(_,F,Ie,"⋖","\\lessdot");x(_,F,z,"⋘","\\lll",!0);x(_,F,z,"≶","\\lessgtr",!0);x(_,F,z,"⋚","\\lesseqgtr",!0);x(_,F,z,"⪋","\\lesseqqgtr",!0);x(_,F,z,"≑","\\doteqdot");x(_,F,z,"≓","\\risingdotseq",!0);x(_,F,z,"≒","\\fallingdotseq",!0);x(_,F,z,"∽","\\backsim",!0);x(_,F,z,"⋍","\\backsimeq",!0);x(_,F,z,"⫅","\\subseteqq",!0);x(_,F,z,"⋐","\\Subset",!0);x(_,F,z,"⊏","\\sqsubset",!0);x(_,F,z,"≼","\\preccurlyeq",!0);x(_,F,z,"⋞","\\curlyeqprec",!0);x(_,F,z,"≾","\\precsim",!0);x(_,F,z,"⪷","\\precapprox",!0);x(_,F,z,"⊲","\\vartriangleleft");x(_,F,z,"⊴","\\trianglelefteq");x(_,F,z,"⊨","\\vDash",!0);x(_,F,z,"⊪","\\Vvdash",!0);x(_,F,z,"⌣","\\smallsmile");x(_,F,z,"⌢","\\smallfrown");x(_,F,z,"≏","\\bumpeq",!0);x(_,F,z,"≎","\\Bumpeq",!0);x(_,F,z,"≧","\\geqq",!0);x(_,F,z,"⩾","\\geqslant",!0);x(_,F,z,"⪖","\\eqslantgtr",!0);x(_,F,z,"≳","\\gtrsim",!0);x(_,F,z,"⪆","\\gtrapprox",!0);x(_,F,Ie,"⋗","\\gtrdot");x(_,F,z,"⋙","\\ggg",!0);x(_,F,z,"≷","\\gtrless",!0);x(_,F,z,"⋛","\\gtreqless",!0);x(_,F,z,"⪌","\\gtreqqless",!0);x(_,F,z,"≖","\\eqcirc",!0);x(_,F,z,"≗","\\circeq",!0);x(_,F,z,"≜","\\triangleq",!0);x(_,F,z,"∼","\\thicksim");x(_,F,z,"≈","\\thickapprox");x(_,F,z,"⫆","\\supseteqq",!0);x(_,F,z,"⋑","\\Supset",!0);x(_,F,z,"⊐","\\sqsupset",!0);x(_,F,z,"≽","\\succcurlyeq",!0);x(_,F,z,"⋟","\\curlyeqsucc",!0);x(_,F,z,"≿","\\succsim",!0);x(_,F,z,"⪸","\\succapprox",!0);x(_,F,z,"⊳","\\vartriangleright");x(_,F,z,"⊵","\\trianglerighteq");x(_,F,z,"⊩","\\Vdash",!0);x(_,F,z,"∣","\\shortmid");x(_,F,z,"∥","\\shortparallel");x(_,F,z,"≬","\\between",!0);x(_,F,z,"⋔","\\pitchfork",!0);x(_,F,z,"∝","\\varpropto");x(_,F,z,"◀","\\blacktriangleleft");x(_,F,z,"∴","\\therefore",!0);x(_,F,z,"∍","\\backepsilon");x(_,F,z,"▶","\\blacktriangleright");x(_,F,z,"∵","\\because",!0);x(_,F,z,"⋘","\\llless");x(_,F,z,"⋙","\\gggtr");x(_,F,Ie,"⊲","\\lhd");x(_,F,Ie,"⊳","\\rhd");x(_,F,z,"≂","\\eqsim",!0);x(_,k,z,"⋈","\\Join");x(_,F,z,"≑","\\Doteq",!0);x(_,F,Ie,"∔","\\dotplus",!0);x(_,F,Ie,"∖","\\smallsetminus");x(_,F,Ie,"⋒","\\Cap",!0);x(_,F,Ie,"⋓","\\Cup",!0);x(_,F,Ie,"⩞","\\doublebarwedge",!0);x(_,F,Ie,"⊟","\\boxminus",!0);x(_,F,Ie,"⊞","\\boxplus",!0);x(_,F,Ie,"⋇","\\divideontimes",!0);x(_,F,Ie,"⋉","\\ltimes",!0);x(_,F,Ie,"⋊","\\rtimes",!0);x(_,F,Ie,"⋋","\\leftthreetimes",!0);x(_,F,Ie,"⋌","\\rightthreetimes",!0);x(_,F,Ie,"⋏","\\curlywedge",!0);x(_,F,Ie,"⋎","\\curlyvee",!0);x(_,F,Ie,"⊝","\\circleddash",!0);x(_,F,Ie,"⊛","\\circledast",!0);x(_,F,Ie,"⋅","\\centerdot");x(_,F,Ie,"⊺","\\intercal",!0);x(_,F,Ie,"⋒","\\doublecap");x(_,F,Ie,"⋓","\\doublecup");x(_,F,Ie,"⊠","\\boxtimes",!0);x(_,F,z,"⇢","\\dashrightarrow",!0);x(_,F,z,"⇠","\\dashleftarrow",!0);x(_,F,z,"⇇","\\leftleftarrows",!0);x(_,F,z,"⇆","\\leftrightarrows",!0);x(_,F,z,"⇚","\\Lleftarrow",!0);x(_,F,z,"↞","\\twoheadleftarrow",!0);x(_,F,z,"↢","\\leftarrowtail",!0);x(_,F,z,"↫","\\looparrowleft",!0);x(_,F,z,"⇋","\\leftrightharpoons",!0);x(_,F,z,"↶","\\curvearrowleft",!0);x(_,F,z,"↺","\\circlearrowleft",!0);x(_,F,z,"↰","\\Lsh",!0);x(_,F,z,"⇈","\\upuparrows",!0);x(_,F,z,"↿","\\upharpoonleft",!0);x(_,F,z,"⇃","\\downharpoonleft",!0);x(_,k,z,"⊶","\\origof",!0);x(_,k,z,"⊷","\\imageof",!0);x(_,F,z,"⊸","\\multimap",!0);x(_,F,z,"↭","\\leftrightsquigarrow",!0);x(_,F,z,"⇉","\\rightrightarrows",!0);x(_,F,z,"⇄","\\rightleftarrows",!0);x(_,F,z,"↠","\\twoheadrightarrow",!0);x(_,F,z,"↣","\\rightarrowtail",!0);x(_,F,z,"↬","\\looparrowright",!0);x(_,F,z,"↷","\\curvearrowright",!0);x(_,F,z,"↻","\\circlearrowright",!0);x(_,F,z,"↱","\\Rsh",!0);x(_,F,z,"⇊","\\downdownarrows",!0);x(_,F,z,"↾","\\upharpoonright",!0);x(_,F,z,"⇂","\\downharpoonright",!0);x(_,F,z,"⇝","\\rightsquigarrow",!0);x(_,F,z,"⇝","\\leadsto");x(_,F,z,"⇛","\\Rrightarrow",!0);x(_,F,z,"↾","\\restriction");x(_,k,q,"‘","`");x(_,k,q,"$","\\$");x(de,k,q,"$","\\$");x(de,k,q,"$","\\textdollar");x(_,k,q,"%","\\%");x(de,k,q,"%","\\%");x(_,k,q,"_","\\_");x(de,k,q,"_","\\_");x(de,k,q,"_","\\textunderscore");x(_,k,q,"∠","\\angle",!0);x(_,k,q,"∞","\\infty",!0);x(_,k,q,"′","\\prime");x(_,k,q,"△","\\triangle");x(_,k,q,"Γ","\\Gamma",!0);x(_,k,q,"Δ","\\Delta",!0);x(_,k,q,"Θ","\\Theta",!0);x(_,k,q,"Λ","\\Lambda",!0);x(_,k,q,"Ξ","\\Xi",!0);x(_,k,q,"Π","\\Pi",!0);x(_,k,q,"Σ","\\Sigma",!0);x(_,k,q,"Υ","\\Upsilon",!0);x(_,k,q,"Φ","\\Phi",!0);x(_,k,q,"Ψ","\\Psi",!0);x(_,k,q,"Ω","\\Omega",!0);x(_,k,q,"A","Α");x(_,k,q,"B","Β");x(_,k,q,"E","Ε");x(_,k,q,"Z","Ζ");x(_,k,q,"H","Η");x(_,k,q,"I","Ι");x(_,k,q,"K","Κ");x(_,k,q,"M","Μ");x(_,k,q,"N","Ν");x(_,k,q,"O","Ο");x(_,k,q,"P","Ρ");x(_,k,q,"T","Τ");x(_,k,q,"X","Χ");x(_,k,q,"¬","\\neg",!0);x(_,k,q,"¬","\\lnot");x(_,k,q,"⊤","\\top");x(_,k,q,"⊥","\\bot");x(_,k,q,"∅","\\emptyset");x(_,F,q,"∅","\\varnothing");x(_,k,We,"α","\\alpha",!0);x(_,k,We,"β","\\beta",!0);x(_,k,We,"γ","\\gamma",!0);x(_,k,We,"δ","\\delta",!0);x(_,k,We,"ϵ","\\epsilon",!0);x(_,k,We,"ζ","\\zeta",!0);x(_,k,We,"η","\\eta",!0);x(_,k,We,"θ","\\theta",!0);x(_,k,We,"ι","\\iota",!0);x(_,k,We,"κ","\\kappa",!0);x(_,k,We,"λ","\\lambda",!0);x(_,k,We,"μ","\\mu",!0);x(_,k,We,"ν","\\nu",!0);x(_,k,We,"ξ","\\xi",!0);x(_,k,We,"ο","\\omicron",!0);x(_,k,We,"π","\\pi",!0);x(_,k,We,"ρ","\\rho",!0);x(_,k,We,"σ","\\sigma",!0);x(_,k,We,"τ","\\tau",!0);x(_,k,We,"υ","\\upsilon",!0);x(_,k,We,"ϕ","\\phi",!0);x(_,k,We,"χ","\\chi",!0);x(_,k,We,"ψ","\\psi",!0);x(_,k,We,"ω","\\omega",!0);x(_,k,We,"ε","\\varepsilon",!0);x(_,k,We,"ϑ","\\vartheta",!0);x(_,k,We,"ϖ","\\varpi",!0);x(_,k,We,"ϱ","\\varrho",!0);x(_,k,We,"ς","\\varsigma",!0);x(_,k,We,"φ","\\varphi",!0);x(_,k,Ie,"∗","*",!0);x(_,k,Ie,"+","+");x(_,k,Ie,"−","-",!0);x(_,k,Ie,"⋅","\\cdot",!0);x(_,k,Ie,"∘","\\circ",!0);x(_,k,Ie,"÷","\\div",!0);x(_,k,Ie,"±","\\pm",!0);x(_,k,Ie,"×","\\times",!0);x(_,k,Ie,"∩","\\cap",!0);x(_,k,Ie,"∪","\\cup",!0);x(_,k,Ie,"∖","\\setminus",!0);x(_,k,Ie,"∧","\\land");x(_,k,Ie,"∨","\\lor");x(_,k,Ie,"∧","\\wedge",!0);x(_,k,Ie,"∨","\\vee",!0);x(_,k,q,"√","\\surd");x(_,k,Vr,"⟨","\\langle",!0);x(_,k,Vr,"∣","\\lvert");x(_,k,Vr,"∥","\\lVert");x(_,k,or,"?","?");x(_,k,or,"!","!");x(_,k,or,"⟩","\\rangle",!0);x(_,k,or,"∣","\\rvert");x(_,k,or,"∥","\\rVert");x(_,k,z,"=","=");x(_,k,z,":",":");x(_,k,z,"≈","\\approx",!0);x(_,k,z,"≅","\\cong",!0);x(_,k,z,"≥","\\ge");x(_,k,z,"≥","\\geq",!0);x(_,k,z,"←","\\gets");x(_,k,z,">","\\gt",!0);x(_,k,z,"∈","\\in",!0);x(_,k,z,"","\\@not");x(_,k,z,"⊂","\\subset",!0);x(_,k,z,"⊃","\\supset",!0);x(_,k,z,"⊆","\\subseteq",!0);x(_,k,z,"⊇","\\supseteq",!0);x(_,F,z,"⊈","\\nsubseteq",!0);x(_,F,z,"⊉","\\nsupseteq",!0);x(_,k,z,"⊨","\\models");x(_,k,z,"←","\\leftarrow",!0);x(_,k,z,"≤","\\le");x(_,k,z,"≤","\\leq",!0);x(_,k,z,"<","\\lt",!0);x(_,k,z,"→","\\rightarrow",!0);x(_,k,z,"→","\\to");x(_,F,z,"≱","\\ngeq",!0);x(_,F,z,"≰","\\nleq",!0);x(_,k,uo," ","\\ ");x(_,k,uo," ","\\space");x(_,k,uo," ","\\nobreakspace");x(de,k,uo," ","\\ ");x(de,k,uo," "," ");x(de,k,uo," ","\\space");x(de,k,uo," ","\\nobreakspace");x(_,k,uo,null,"\\nobreak");x(_,k,uo,null,"\\allowbreak");x(_,k,gp,",",",");x(_,k,gp,";",";");x(_,F,Ie,"⊼","\\barwedge",!0);x(_,F,Ie,"⊻","\\veebar",!0);x(_,k,Ie,"⊙","\\odot",!0);x(_,k,Ie,"⊕","\\oplus",!0);x(_,k,Ie,"⊗","\\otimes",!0);x(_,k,q,"∂","\\partial",!0);x(_,k,Ie,"⊘","\\oslash",!0);x(_,F,Ie,"⊚","\\circledcirc",!0);x(_,F,Ie,"⊡","\\boxdot",!0);x(_,k,Ie,"△","\\bigtriangleup");x(_,k,Ie,"▽","\\bigtriangledown");x(_,k,Ie,"†","\\dagger");x(_,k,Ie,"⋄","\\diamond");x(_,k,Ie,"⋆","\\star");x(_,k,Ie,"◃","\\triangleleft");x(_,k,Ie,"▹","\\triangleright");x(_,k,Vr,"{","\\{");x(de,k,q,"{","\\{");x(de,k,q,"{","\\textbraceleft");x(_,k,or,"}","\\}");x(de,k,q,"}","\\}");x(de,k,q,"}","\\textbraceright");x(_,k,Vr,"{","\\lbrace");x(_,k,or,"}","\\rbrace");x(_,k,Vr,"[","\\lbrack",!0);x(de,k,q,"[","\\lbrack",!0);x(_,k,or,"]","\\rbrack",!0);x(de,k,q,"]","\\rbrack",!0);x(_,k,Vr,"(","\\lparen",!0);x(_,k,or,")","\\rparen",!0);x(de,k,q,"<","\\textless",!0);x(de,k,q,">","\\textgreater",!0);x(_,k,Vr,"⌊","\\lfloor",!0);x(_,k,or,"⌋","\\rfloor",!0);x(_,k,Vr,"⌈","\\lceil",!0);x(_,k,or,"⌉","\\rceil",!0);x(_,k,q,"\\","\\backslash");x(_,k,q,"∣","|");x(_,k,q,"∣","\\vert");x(de,k,q,"|","\\textbar",!0);x(_,k,q,"∥","\\|");x(_,k,q,"∥","\\Vert");x(de,k,q,"∥","\\textbardbl");x(de,k,q,"~","\\textasciitilde");x(de,k,q,"\\","\\textbackslash");x(de,k,q,"^","\\textasciicircum");x(_,k,z,"↑","\\uparrow",!0);x(_,k,z,"⇑","\\Uparrow",!0);x(_,k,z,"↓","\\downarrow",!0);x(_,k,z,"⇓","\\Downarrow",!0);x(_,k,z,"↕","\\updownarrow",!0);x(_,k,z,"⇕","\\Updownarrow",!0);x(_,k,bn,"∐","\\coprod");x(_,k,bn,"⋁","\\bigvee");x(_,k,bn,"⋀","\\bigwedge");x(_,k,bn,"⨄","\\biguplus");x(_,k,bn,"⋂","\\bigcap");x(_,k,bn,"⋃","\\bigcup");x(_,k,bn,"∫","\\int");x(_,k,bn,"∫","\\intop");x(_,k,bn,"∬","\\iint");x(_,k,bn,"∭","\\iiint");x(_,k,bn,"∏","\\prod");x(_,k,bn,"∑","\\sum");x(_,k,bn,"⨂","\\bigotimes");x(_,k,bn,"⨁","\\bigoplus");x(_,k,bn,"⨀","\\bigodot");x(_,k,bn,"∮","\\oint");x(_,k,bn,"∯","\\oiint");x(_,k,bn,"∰","\\oiiint");x(_,k,bn,"⨆","\\bigsqcup");x(_,k,bn,"∫","\\smallint");x(de,k,hu,"…","\\textellipsis");x(_,k,hu,"…","\\mathellipsis");x(de,k,hu,"…","\\ldots",!0);x(_,k,hu,"…","\\ldots",!0);x(_,k,hu,"⋯","\\@cdots",!0);x(_,k,hu,"⋱","\\ddots",!0);x(_,k,q,"⋮","\\varvdots");x(_,k,Wt,"ˊ","\\acute");x(_,k,Wt,"ˋ","\\grave");x(_,k,Wt,"¨","\\ddot");x(_,k,Wt,"~","\\tilde");x(_,k,Wt,"ˉ","\\bar");x(_,k,Wt,"˘","\\breve");x(_,k,Wt,"ˇ","\\check");x(_,k,Wt,"^","\\hat");x(_,k,Wt,"⃗","\\vec");x(_,k,Wt,"˙","\\dot");x(_,k,Wt,"˚","\\mathring");x(_,k,We,"","\\@imath");x(_,k,We,"","\\@jmath");x(_,k,q,"ı","ı");x(_,k,q,"ȷ","ȷ");x(de,k,q,"ı","\\i",!0);x(de,k,q,"ȷ","\\j",!0);x(de,k,q,"ß","\\ss",!0);x(de,k,q,"æ","\\ae",!0);x(de,k,q,"œ","\\oe",!0);x(de,k,q,"ø","\\o",!0);x(de,k,q,"Æ","\\AE",!0);x(de,k,q,"Œ","\\OE",!0);x(de,k,q,"Ø","\\O",!0);x(de,k,Wt,"ˊ","\\'");x(de,k,Wt,"ˋ","\\`");x(de,k,Wt,"ˆ","\\^");x(de,k,Wt,"˜","\\~");x(de,k,Wt,"ˉ","\\=");x(de,k,Wt,"˘","\\u");x(de,k,Wt,"˙","\\.");x(de,k,Wt,"¸","\\c");x(de,k,Wt,"˚","\\r");x(de,k,Wt,"ˇ","\\v");x(de,k,Wt,"¨",'\\"');x(de,k,Wt,"˝","\\H");x(de,k,Wt,"◯","\\textcircled");var vO={"--":!0,"---":!0,"``":!0,"''":!0};x(de,k,q,"–","--",!0);x(de,k,q,"–","\\textendash");x(de,k,q,"—","---",!0);x(de,k,q,"—","\\textemdash");x(de,k,q,"‘","`",!0);x(de,k,q,"‘","\\textquoteleft");x(de,k,q,"’","'",!0);x(de,k,q,"’","\\textquoteright");x(de,k,q,"“","``",!0);x(de,k,q,"“","\\textquotedblleft");x(de,k,q,"”","''",!0);x(de,k,q,"”","\\textquotedblright");x(_,k,q,"°","\\degree",!0);x(de,k,q,"°","\\degree");x(de,k,q,"°","\\textdegree",!0);x(_,k,q,"£","\\pounds");x(_,k,q,"£","\\mathsterling",!0);x(de,k,q,"£","\\pounds");x(de,k,q,"£","\\textsterling",!0);x(_,F,q,"✠","\\maltese");x(de,F,q,"✠","\\maltese");var Ob='0123456789/@."';for(var Vg=0;Vg{if(os(e.classes)!==os(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},hae=e=>{for(var t=0;tn&&(n=o.height),o.depth>r&&(r=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},hr=function(t,n,r,i){var a=new j0(t,n,r,i);return r8(a),a},yO=(e,t,n,r)=>new j0(e,t,n,r),mae=function(t,n,r){var i=hr([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=we(i.height),i.maxFontSize=1,i},pae=function(t,n,r,i){var a=new n8(t,n,r,i);return r8(a),a},bO=function(t){var n=new U0(t);return r8(n),n},gae=function(t,n){return t instanceof U0?hr([],[t],n):t},vae=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o{var n=hr(["mspace"],[],t),r=Qt(e,t);return n.style.marginRight=we(r),n},Pd=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},EO={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},xO={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Eae=function(t,n){var[r,i,a]=xO[t],o=new ss(r),s=new to([o],{width:we(i),height:we(a),style:"width:"+we(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=yO(["overlay"],[s],n);return l.height=a,l.style.height=we(a),l.style.width=we(i),l},ee={fontMap:EO,makeSymbol:Ai,mathsym:cae,makeSpan:hr,makeSvgSpan:yO,makeLineSpan:mae,makeAnchor:pae,makeFragment:bO,wrapFragment:gae,makeVList:yae,makeOrd:dae,makeGlue:bae,staticSvg:Eae,svgData:xO,tryCombineChars:hae},Yt={number:3,unit:"mu"},xs={number:4,unit:"mu"},Sa={number:5,unit:"mu"},xae={mord:{mop:Yt,mbin:xs,mrel:Sa,minner:Yt},mop:{mord:Yt,mop:Yt,mrel:Sa,minner:Yt},mbin:{mord:xs,mop:xs,mopen:xs,minner:xs},mrel:{mord:Sa,mop:Sa,mopen:Sa,minner:Sa},mopen:{},mclose:{mop:Yt,mbin:xs,mrel:Sa,minner:Yt},mpunct:{mord:Yt,mop:Yt,mrel:Sa,mopen:Yt,mclose:Yt,mpunct:Yt,minner:Yt},minner:{mord:Yt,mop:Yt,mbin:xs,mrel:Sa,mopen:Yt,mpunct:Yt,minner:Yt}},Tae={mord:{mop:Yt},mop:{mord:Yt,mop:Yt},mbin:{},mrel:{},mopen:{},mclose:{mop:Yt},mpunct:{},minner:{mop:Yt}},TO={},Jh={},em={};function ke(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var E=g.classes[0],p=m.classes[0];E==="mbin"&&Ye.contains(wae,p)?g.classes[0]="mord":p==="mbin"&&Ye.contains(_ae,E)&&(m.classes[0]="mord")},{node:d},f,h),Db(a,(m,g)=>{var E=A2(g),p=A2(m),v=E&&p?m.hasClass("mtight")?Tae[E][p]:xae[E][p]:null;if(v)return ee.makeGlue(v,c)},{node:d},f,h),a},Db=function e(t,n,r,i,a){i&&t.push(i);for(var o=0;of=>{t.splice(d+1,0,f),o++})(o)}i&&t.pop()},_O=function(t){return t instanceof U0||t instanceof n8||t instanceof j0&&t.hasClass("enclosing")?t:null},Aae=function e(t,n){var r=_O(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},A2=function(t,n){return t?(n&&(t=Aae(t,n)),Cae[t.classes[0]]||null):null},i0=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return no(n.concat(r))},xt=function(t,n,r){if(!t)return no();if(Jh[t.type]){var i=Jh[t.type](t,n);if(r&&n.size!==r.size){i=no(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new me("Got group of unknown type: '"+t.type+"'")};function $d(e,t){var n=no(["base"],e,t),r=no(["strut"]);return r.style.height=we(n.height+n.depth),n.depth&&(r.style.verticalAlign=we(-n.depth)),n.children.unshift(r),n}function N2(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Cn(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],o=[],s=0;s0&&(a.push($d(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push($d(o,t));var c;n?(c=$d(Cn(n,t,!0)),c.classes=["tag"],a.push(c)):i&&a.push(i);var u=no(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=we(u.height+u.depth),u.depth&&(d.style.verticalAlign=we(-u.depth))}return u}function wO(e){return new U0(e)}class ei{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=os(this.classes));for(var r=0;r0&&(t+=' class ="'+Ye.escape(os(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class f1{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ye.escape(this.toText())}toText(){return this.text}}class Nae{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",we(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var fe={MathNode:ei,TextNode:f1,SpaceNode:Nae,newDocumentFragment:wO},ui=function(t,n,r){return Bt[n][t]&&Bt[n][t].replace&&t.charCodeAt(0)!==55349&&!(vO.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Bt[n][t].replace),new fe.TextNode(t)},i8=function(t){return t.length===1?t[0]:new fe.MathNode("mrow",t)},a8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Ye.contains(["\\imath","\\jmath"],a))return null;Bt[i][a]&&Bt[i][a].replace&&(a=Bt[i][a].replace);var o=ee.fontMap[r].fontName;return t8(a,o,i)?ee.fontMap[r].variant:null},Sr=function(t,n,r){if(t.length===1){var i=It(t[0],n);return r&&i instanceof ei&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o,s=0;s0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(l),o=l}return a},ls=function(t,n,r){return i8(Sr(t,n,r))},It=function(t,n){if(!t)return new fe.MathNode("mrow");if(em[t.type]){var r=em[t.type](t,n);return r}else throw new me("Got group of unknown type: '"+t.type+"'")};function Pb(e,t,n,r,i){var a=Sr(e,n),o;a.length===1&&a[0]instanceof ei&&Ye.contains(["mrow","mtable"],a[0].type)?o=a[0]:o=new fe.MathNode("mrow",a);var s=new fe.MathNode("annotation",[new fe.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new fe.MathNode("semantics",[o,s]),c=new fe.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return ee.makeSpan([u],[c])}var SO=function(t){return new Fa({style:t.displayMode?Ve.DISPLAY:Ve.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},CO=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=ee.makeSpan(r,[t])}return t},kae=function(t,n,r){var i=SO(r),a;if(r.output==="mathml")return Pb(t,n,i,r.displayMode,!0);if(r.output==="html"){var o=N2(t,i);a=ee.makeSpan(["katex"],[o])}else{var s=Pb(t,n,i,r.displayMode,!1),l=N2(t,i);a=ee.makeSpan(["katex"],[s,l])}return CO(a,r)},Oae=function(t,n,r){var i=SO(r),a=N2(t,i),o=ee.makeSpan(["katex"],[a]);return CO(o,r)},Rae={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Mae=function(t){var n=new fe.MathNode("mo",[new fe.TextNode(Rae[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Iae={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Lae=function(t){return t.type==="ordgroup"?t.body.length:1},Dae=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(Ye.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=t,u=Lae(c.base),d,f,h;if(u>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,h=.42,f=l+"4"):(d=312,s=2340,h=.34,f="tilde4");else{var m=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][m],d=[0,239,300,360,420][m],h=[0,.24,.3,.3,.36,.42][m],f=l+m):(s=[0,600,1033,2339,2340][m],d=[0,260,286,306,312][m],h=[0,.26,.286,.3,.306,.34][m],f="tilde"+m)}var g=new ss(f),E=new to([g],{width:"100%",height:we(h),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:ee.makeSvgSpan([],[E],n),minWidth:0,height:h}}else{var p=[],v=Iae[l],[T,C,O]=v,N=O/1e3,R=T.length,D,I;if(R===1){var L=v[3];D=["hide-tail"],I=[L]}else if(R===2)D=["halfarrow-left","halfarrow-right"],I=["xMinYMin","xMaxYMin"];else if(R===3)D=["brace-left","brace-center","brace-right"],I=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+R+" children.");for(var X=0;X0&&(i.style.minWidth=we(a)),i},Pae=function(t,n,r,i,a){var o,s=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(o=ee.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(o.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new S2({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new S2({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new to(c,{width:"100%",height:we(s)});o=ee.makeSvgSpan([],[u],a)}return o.height=s,o.style.height=we(s),o},ro={encloseSpan:Pae,mathMLnode:Mae,svgSpan:Dae};function at(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function o8(e){var t=yp(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function yp(e){return e&&(e.type==="atom"||sae.hasOwnProperty(e.type))?e:null}var s8=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=at(e.base,"accent"),n=r.base,e.base=n,i=aae(xt(e,t)),e.base=r):(r=at(e,"accent"),n=r.base);var a=xt(n,t.havingCrampedStyle()),o=r.isShifty&&Ye.isCharacterBox(n),s=0;if(o){var l=Ye.getBaseElem(n),c=xt(l,t.havingCrampedStyle());s=kb(c).skew}var u=r.label==="\\c",d=u?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=ro.svgSpan(r,t),f=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+we(2*s)+")",marginLeft:we(2*s)}:void 0}]},t);else{var h,m;r.label==="\\vec"?(h=ee.staticSvg("vec",t),m=ee.svgData.vec[1]):(h=ee.makeOrd({mode:r.mode,text:r.label},t,"textord"),h=kb(h),h.italic=0,m=h.width,u&&(d+=h.depth)),f=ee.makeSpan(["accent-body"],[h]);var g=r.label==="\\textcircled";g&&(f.classes.push("accent-full"),d=a.height);var E=s;g||(E-=m/2),f.style.left=we(E),r.label==="\\textcircled"&&(f.style.top=".2em"),f=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:f}]},t)}var p=ee.makeSpan(["mord","accent"],[f],t);return i?(i.children[0]=p,i.height=Math.max(p.height,i.height),i.classes[0]="mord",i):p},AO=(e,t)=>{var n=e.isStretchy?ro.mathMLnode(e.label):new fe.MathNode("mo",[ui(e.label,e.mode)]),r=new fe.MathNode("mover",[It(e.base,t),n]);return r.setAttribute("accent","true"),r},$ae=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ke({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=tm(t[0]),r=!$ae.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:s8,mathmlBuilder:AO});ke({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:s8,mathmlBuilder:AO});ke({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=xt(e.base,t),r=ro.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=ee.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return ee.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=ro.mathMLnode(e.label),r=new fe.MathNode("munder",[It(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Fd=e=>{var t=new fe.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ke({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=ee.wrapFragment(xt(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var o;e.below&&(r=t.havingStyle(n.sub()),o=ee.wrapFragment(xt(e.below,r,t),t),o.classes.push(a+"-arrow-pad"));var s=ro.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:o,shift:d}]},t)}else u=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),ee.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=ro.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Fd(It(e.body,t));if(e.below){var a=Fd(It(e.below,t));r=new fe.MathNode("munderover",[n,a,i])}else r=new fe.MathNode("mover",[n,i])}else if(e.below){var o=Fd(It(e.below,t));r=new fe.MathNode("munder",[n,o])}else r=Fd(),r=new fe.MathNode("mover",[n,r]);return r}});var Fae=ee.makeSpan;function NO(e,t){var n=Cn(e.body,t,!0);return Fae([e.mclass],n,t)}function kO(e,t){var n,r=Sr(e.body,t);return e.mclass==="minner"?n=new fe.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new fe.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new fe.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ke({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:un(i),isCharacterBox:Ye.isCharacterBox(i)}},htmlBuilder:NO,mathmlBuilder:kO});var bp=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ke({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:bp(t[0]),body:un(t[1]),isCharacterBox:Ye.isCharacterBox(t[1])}}});ke({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o;r!=="\\stackrel"?o=bp(i):o="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:un(i)},l={type:"supsub",mode:a.mode,base:s,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:o,body:[l],isCharacterBox:Ye.isCharacterBox(l)}},htmlBuilder:NO,mathmlBuilder:kO});ke({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:bp(t[0]),body:un(t[0])}},htmlBuilder(e,t){var n=Cn(e.body,t,!0),r=ee.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Sr(e.body,t),r=new fe.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Bae={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},$b=()=>({type:"styling",body:[],mode:"math",style:"display"}),Fb=e=>e.type==="textord"&&e.text==="@",zae=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Uae(e,t,n){var r=Bae[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[a],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,o,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function jae(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new me("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(c)>-1)for(var d=0;d<2;d++){for(var f=!0,h=l+1;hAV=|." after @',o[l]);var m=Uae(c,u,e),g={type:"styling",body:[m],mode:"math",style:"display"};r.push(g),s=$b()}a%2===0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var E=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:E,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ke({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=ee.wrapFragment(xt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=we(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new fe.MathNode("mrow",[It(e.label,t)]);return n=new fe.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new fe.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ke({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=ee.wrapFragment(xt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new fe.MathNode("mrow",[It(e.fragment,t)])}});ke({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=at(t[0],"ordgroup"),i=r.body,a="",o=0;o=1114111)throw new me("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var OO=(e,t)=>{var n=Cn(e.body,t.withColor(e.color),!1);return ee.makeFragment(n)},RO=(e,t)=>{var n=Sr(e.body,t.withColor(e.color)),r=new fe.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ke({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=at(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:un(i)}},htmlBuilder:OO,mathmlBuilder:RO});ke({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=at(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:OO,mathmlBuilder:RO});ke({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&at(i,"size").value}},htmlBuilder(e,t){var n=ee.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=we(Qt(e.size,t)))),n},mathmlBuilder(e,t){var n=new fe.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",we(Qt(e.size,t)))),n}});var k2={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},MO=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new me("Expected a control sequence",e);return t},Hae=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},IO=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ke({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(k2[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=k2[r.text]),at(t.parseFunction(),"internal");throw new me("Invalid token after macro prefix",r)}});ke({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new me("Expected a control sequence",r);for(var a=0,o,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),s[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new me('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new me('Argument number "'+r.text+'" out of order');a++,s.push([])}else{if(r.text==="EOF")throw new me("Expected a macro definition");s[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===k2[n]),{type:"internal",mode:t.mode}}});ke({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=MO(t.gullet.popToken());t.gullet.consumeSpaces();var i=Hae(t);return IO(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ke({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=MO(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return IO(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var qu=function(t,n,r){var i=Bt.math[t]&&Bt.math[t].replace,a=t8(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},l8=function(t,n,r,i){var a=r.havingBaseStyle(n),o=ee.makeSpan(i.concat(a.sizingClasses(r)),[t],r),s=a.sizeMultiplier/r.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=a.sizeMultiplier,o},LO=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=we(a),t.height-=a,t.depth+=a},Gae=function(t,n,r,i,a,o){var s=ee.makeSymbol(t,"Main-Regular",a,i),l=l8(s,n,i,o);return r&&LO(l,i,n),l},Vae=function(t,n,r,i){return ee.makeSymbol(t,"Size"+n+"-Regular",r,i)},DO=function(t,n,r,i,a,o){var s=Vae(t,n,a,i),l=l8(ee.makeSpan(["delimsizing","size"+n],[s],i),Ve.TEXT,i,o);return r&&LO(l,i,Ve.TEXT),l},Yg=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=ee.makeSpan(["delimsizinginner",i],[ee.makeSpan([],[ee.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Xg=function(t,n,r){var i=aa["Size4-Regular"][t.charCodeAt(0)]?aa["Size4-Regular"][t.charCodeAt(0)][4]:aa["Size1-Regular"][t.charCodeAt(0)][4],a=new ss("inner",Qie(t,Math.round(1e3*n))),o=new to([a],{width:we(i),height:we(n),style:"width:"+we(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=ee.makeSvgSpan([],[o],r);return s.height=n,s.style.height=we(n),s.style.width=we(i),{type:"elem",elem:s}},O2=.008,Bd={type:"kern",size:-1*O2},Kae=["|","\\lvert","\\rvert","\\vert"],Wae=["\\|","\\lVert","\\rVert","\\Vert"],PO=function(t,n,r,i,a,o){var s,l,c,u,d="",f=0;s=c=u=t,l=null;var h="Size1-Regular";t==="\\uparrow"?c=u="⏐":t==="\\Uparrow"?c=u="‖":t==="\\downarrow"?s=c="⏐":t==="\\Downarrow"?s=c="‖":t==="\\updownarrow"?(s="\\uparrow",c="⏐",u="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="‖",u="\\Downarrow"):Ye.contains(Kae,t)?(c="∣",d="vert",f=333):Ye.contains(Wae,t)?(c="∥",d="doublevert",f=556):t==="["||t==="\\lbrack"?(s="⎡",c="⎢",u="⎣",h="Size4-Regular",d="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="⎤",c="⎥",u="⎦",h="Size4-Regular",d="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(c=s="⎢",u="⎣",h="Size4-Regular",d="lfloor",f=667):t==="\\lceil"||t==="⌈"?(s="⎡",c=u="⎢",h="Size4-Regular",d="lceil",f=667):t==="\\rfloor"||t==="⌋"?(c=s="⎥",u="⎦",h="Size4-Regular",d="rfloor",f=667):t==="\\rceil"||t==="⌉"?(s="⎤",c=u="⎥",h="Size4-Regular",d="rceil",f=667):t==="("||t==="\\lparen"?(s="⎛",c="⎜",u="⎝",h="Size4-Regular",d="lparen",f=875):t===")"||t==="\\rparen"?(s="⎞",c="⎟",u="⎠",h="Size4-Regular",d="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",u="⎩",c="⎪",h="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",u="⎭",c="⎪",h="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",u="⎩",c="⎪",h="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",u="⎭",c="⎪",h="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",u="⎭",c="⎪",h="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",u="⎩",c="⎪",h="Size4-Regular");var m=qu(s,h,a),g=m.height+m.depth,E=qu(c,h,a),p=E.height+E.depth,v=qu(u,h,a),T=v.height+v.depth,C=0,O=1;if(l!==null){var N=qu(l,h,a);C=N.height+N.depth,O=2}var R=g+T+C,D=Math.max(0,Math.ceil((n-R)/(O*p))),I=R+D*O*p,L=i.fontMetrics().axisHeight;r&&(L*=i.sizeMultiplier);var X=I/2-L,Z=[];if(d.length>0){var Q=I-g-T,K=Math.round(I*1e3),V=Zie(d,Math.round(Q*1e3)),ne=new ss(d,V),B=(f/1e3).toFixed(3)+"em",w=(K/1e3).toFixed(3)+"em",P=new to([ne],{width:B,height:w,viewBox:"0 0 "+f+" "+K}),A=ee.makeSvgSpan([],[P],i);A.height=K/1e3,A.style.width=B,A.style.height=w,Z.push({type:"elem",elem:A})}else{if(Z.push(Yg(u,h,a)),Z.push(Bd),l===null){var W=I-g-T+2*O2;Z.push(Xg(c,W,i))}else{var te=(I-g-T-C)/2+2*O2;Z.push(Xg(c,te,i)),Z.push(Bd),Z.push(Yg(l,h,a)),Z.push(Bd),Z.push(Xg(c,te,i))}Z.push(Bd),Z.push(Yg(s,h,a))}var $=i.havingBaseStyle(Ve.TEXT),xe=ee.makeVList({positionType:"bottom",positionData:X,children:Z},$);return l8(ee.makeSpan(["delimsizing","mult"],[xe],$),Ve.TEXT,i,o)},Qg=80,Zg=.08,Jg=function(t,n,r,i,a){var o=Xie(t,i,r),s=new ss(t,o),l=new to([s],{width:"400em",height:we(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ee.makeSvgSpan(["hide-tail"],[l],a)},qae=function(t,n){var r=n.havingBaseSizing(),i=zO("\\surd",t*r.sizeMultiplier,BO,r),a=r.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,d;return i.type==="small"?(u=1e3+1e3*o+Qg,t<1?a=1:t<1.4&&(a=.7),l=(1+o+Zg)/a,c=(1+o)/a,s=Jg("sqrtMain",l,u,o,n),s.style.minWidth="0.853em",d=.833/a):i.type==="large"?(u=(1e3+Qg)*h1[i.size],c=(h1[i.size]+o)/a,l=(h1[i.size]+o+Zg)/a,s=Jg("sqrtSize"+i.size,l,u,o,n),s.style.minWidth="1.02em",d=1/a):(l=t+o+Zg,c=t+o,u=Math.floor(1e3*t+o)+Qg,s=Jg("sqrtTall",l,u,o,n),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=we(l),{span:s,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*a}},$O=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Yae=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],FO=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],h1=[0,1.2,1.8,2.4,3],Xae=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ye.contains($O,t)||Ye.contains(FO,t))return DO(t,n,!1,r,i,a);if(Ye.contains(Yae,t))return PO(t,h1[n],!1,r,i,a);throw new me("Illegal delimiter: '"+t+"'")},Qae=[{type:"small",style:Ve.SCRIPTSCRIPT},{type:"small",style:Ve.SCRIPT},{type:"small",style:Ve.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zae=[{type:"small",style:Ve.SCRIPTSCRIPT},{type:"small",style:Ve.SCRIPT},{type:"small",style:Ve.TEXT},{type:"stack"}],BO=[{type:"small",style:Ve.SCRIPTSCRIPT},{type:"small",style:Ve.SCRIPT},{type:"small",style:Ve.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Jae=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},zO=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),o=a;on)return r[o]}return r[r.length-1]},UO=function(t,n,r,i,a,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Ye.contains(FO,t)?s=Qae:Ye.contains($O,t)?s=BO:s=Zae;var l=zO(t,n,s,i);return l.type==="small"?Gae(t,l.style,r,i,a,o):l.type==="large"?DO(t,l.size,r,i,a,o):PO(t,n,r,i,a,o)},eoe=function(t,n,r,i,a,o){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),d=Math.max(u/500*l,2*u-c);return UO(t,d,!0,i,a,o)},Wa={sqrtImage:qae,sizedDelim:Xae,sizeToMaxHeight:h1,customSizedDelim:UO,leftRightDelim:eoe},Bb={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},toe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ep(e,t){var n=yp(e);if(n&&Ye.contains(toe,n.text))return n;throw n?new me("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new me("Invalid delimiter type '"+e.type+"'",e)}ke({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Ep(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bb[e.funcName].size,mclass:Bb[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ee.makeSpan([e.mclass]):Wa.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ui(e.delim,e.mode));var n=new fe.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=we(Wa.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function zb(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ke({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new me("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Ep(t[0],e).text,color:n}}});ke({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Ep(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=at(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{zb(e);for(var n=Cn(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,o=0;o{zb(e);var n=Sr(e.body,t);if(e.left!=="."){var r=new fe.MathNode("mo",[ui(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new fe.MathNode("mo",[ui(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return i8(n)}});ke({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Ep(t[0],e);if(!e.parser.leftrightDepth)throw new me("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=i0(t,[]);else{n=Wa.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?ui("|","text"):ui(e.delim,e.mode),r=new fe.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var c8=(e,t)=>{var n=ee.wrapFragment(xt(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=Ye.isCharacterBox(e.body);if(r==="sout")a=ee.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=Qt({number:.6,unit:"pt"},t),c=Qt({number:.35,unit:"ex"},t),u=t.havingBaseSizing();i=i/u.sizeMultiplier;var d=n.height+n.depth+l+c;n.style.paddingLeft=we(d/2+l);var f=Math.floor(1e3*d*i),h=qie(f),m=new to([new ss("phase",h)],{width:"400em",height:we(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=ee.makeSvgSpan(["hide-tail"],[m],t),a.style.height=we(d),o=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,E=0,p=0;/box/.test(r)?(p=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=t.fontMetrics().fboxsep+(r==="colorbox"?0:p),E=g):r==="angl"?(p=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),g=4*p,E=Math.max(0,.25-n.depth)):(g=s?.2:0,E=g),a=ro.encloseSpan(n,r,g,E,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=we(p)):r==="angl"&&p!==.049&&(a.style.borderTopWidth=we(p),a.style.borderRightWidth=we(p)),o=n.depth+E,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var T=/cancel|phase/.test(r)?["svg-align"]:[];v=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:o,wrapperClasses:T}]},t)}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?ee.makeSpan(["mord","cancel-lap"],[v],t):ee.makeSpan(["mord"],[v],t)},u8=(e,t)=>{var n=0,r=new fe.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[It(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ke({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=at(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:c8,mathmlBuilder:u8});ke({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=at(t[0],"color-token").color,o=at(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:c8,mathmlBuilder:u8});ke({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ke({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:c8,mathmlBuilder:u8});ke({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var jO={};function va(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new me("{"+e.envName+"} can be used only in display mode.")};function d8(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function vs(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var h=e.gullet.expandMacroAsText("\\arraystretch");if(h==null)o=1;else if(o=parseFloat(h),!o||o<0)throw new me("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var m=[],g=[m],E=[],p=[],v=l!=null?[]:void 0;function T(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new ua("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),p.push(Ub(e));;){var O=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),O={type:"ordgroup",mode:e.mode,body:O},n&&(O={type:"styling",mode:e.mode,style:n,body:[O]}),m.push(O);var N=e.fetch().text;if(N==="&"){if(d&&m.length===d){if(c||s)throw new me("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){C(),m.length===1&&O.type==="styling"&&O.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),p.length0&&(T+=.25),c.push({pos:T,isDashed:ae[le]})}for(C(o[0]),r=0;r0&&(X+=v,Rae))for(r=0;r=s)){var Ae=void 0;(i>0||t.hskipBeforeAndAfter)&&(Ae=Ye.deflt(te.pregap,f),Ae!==0&&(V=ee.makeSpan(["arraycolsep"],[]),V.style.width=we(Ae),K.push(V)));var qe=[];for(r=0;r0){for(var At=ee.makeLineSpan("hline",n,u),sr=ee.makeLineSpan("hdashline",n,u),tn=[{type:"elem",elem:l,shift:0}];c.length>0;){var lr=c.pop(),H=lr.pos-Z;lr.isDashed?tn.push({type:"elem",elem:sr,shift:H}):tn.push({type:"elem",elem:At,shift:H})}l=ee.makeVList({positionType:"individualShift",children:tn},n)}if(B.length===0)return ee.makeSpan(["mord"],[l],n);var ie=ee.makeVList({positionType:"individualShift",children:B},n);return ie=ee.makeSpan(["tag"],[ie],n),ee.makeFragment([l,ie])},noe={c:"center ",l:"left ",r:"right "},ba=function(t,n){for(var r=[],i=new fe.MathNode("mtd",[],["mtr-glue"]),a=new fe.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var m=t.cols,g="",E=!1,p=0,v=m.length;m[0].type==="separator"&&(f+="top ",p=1),m[m.length-1].type==="separator"&&(f+="bottom ",v-=1);for(var T=p;T0?"left ":"",f+=D[D.length-1].length>0?"right ":"";for(var I=1;I-1?"alignat":"align",a=t.envName==="split",o=vs(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:d8(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d0&&h&&(E=1),r[m]={type:"align",align:g,pregap:E,postgap:0}}return o.colSeparationType=h?"align":"alignat",o};va({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=yp(t[0]),r=n?[t[0]]:at(t[0],"ordgroup").body,i=r.map(function(o){var s=o8(o),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new me("Unknown column alignment: "+l,o)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return vs(e.parser,a,f8(e.envName))},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new me("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=vs(e.parser,r,f8(e.envName)),o=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=vs(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=yp(t[0]),r=n?[t[0]]:at(t[0],"ordgroup").body,i=r.map(function(o){var s=o8(o),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new me("Unknown column alignment: "+l,o)});if(i.length>1)throw new me("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=vs(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new me("{subarray} can contain only one column");return a},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=vs(e.parser,t,f8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:GO,htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Ye.contains(["gather","gather*"],e.envName)&&xp(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:d8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return vs(e.parser,t,"display")},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:GO,htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){xp(e);var t={autoTag:d8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return vs(e.parser,t,"display")},htmlBuilder:ya,mathmlBuilder:ba});va({type:"array",names:["CD"],props:{numArgs:0},handler(e){return xp(e),jae(e.parser)},htmlBuilder:ya,mathmlBuilder:ba});M("\\nonumber","\\gdef\\@eqnsw{0}");M("\\notag","\\nonumber");ke({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new me(e.funcName+" valid only within array environment")}});var jb=jO;ke({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new me("Invalid environment name",i);for(var a="",o=0;o{var n=e.font,r=t.withFont(n);return xt(e.body,r)},KO=(e,t)=>{var n=e.font,r=t.withFont(n);return It(e.body,r)},Hb={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ke({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=tm(t[0]),a=r;return a in Hb&&(a=Hb[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:VO,mathmlBuilder:KO});ke({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Ye.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:bp(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ke({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:VO,mathmlBuilder:KO});var WO=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ve.SCRIPT.id?n.text():Ve.DISPLAY:e==="text"&&n.size===Ve.DISPLAY.size?n=Ve.TEXT:e==="script"?n=Ve.SCRIPT:e==="scriptscript"&&(n=Ve.SCRIPTSCRIPT),n},h8=(e,t)=>{var n=WO(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var o=xt(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?m=3*f:m=7*f,g=t.fontMetrics().denom1):(d>0?(h=t.fontMetrics().num2,m=f):(h=t.fontMetrics().num3,m=3*f),g=t.fontMetrics().denom2);var E;if(u){var v=t.fontMetrics().axisHeight;h-o.depth-(v+.5*d){var n=new fe.MathNode("mfrac",[It(e.numer,t),It(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Qt(e.barSize,t);n.setAttribute("linethickness",we(r))}var i=WO(e.size,t.style);if(i.size!==t.style.size){n=new fe.MathNode("mstyle",[n]);var a=i.size===Ve.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var s=new fe.MathNode("mo",[new fe.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),e.rightDelim!=null){var l=new fe.MathNode("mo",[new fe.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return i8(o)}return n};ke({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,s="(",l=")";break;case"\\\\bracefrac":o=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":o=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:o,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:h8,mathmlBuilder:m8});ke({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ke({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Gb=["display","text","script","scriptscript"],Vb=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ke({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=tm(t[0]),o=a.type==="atom"&&a.family==="open"?Vb(a.text):null,s=tm(t[1]),l=s.type==="atom"&&s.family==="close"?Vb(s.text):null,c=at(t[2],"size"),u,d=null;c.isBlank?u=!0:(d=c.value,u=d.number>0);var f="auto",h=t[3];if(h.type==="ordgroup"){if(h.body.length>0){var m=at(h.body[0],"textord");f=Gb[Number(m.text)]}}else h=at(h,"textord"),f=Gb[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:l,size:f}},htmlBuilder:h8,mathmlBuilder:m8});ke({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:at(t[0],"size").value,token:i}}});ke({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Iie(at(t[1],"infix").size),o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:h8,mathmlBuilder:m8});var qO=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?xt(e.sup,t.havingStyle(n.sup()),t):xt(e.sub,t.havingStyle(n.sub()),t),i=at(e.base,"horizBrace")):i=at(e,"horizBrace");var a=xt(i.base,t.havingBaseStyle(Ve.DISPLAY)),o=ro.svgSpan(i,t),s;if(i.isOver?(s=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=ee.makeVList({positionType:"bottom",positionData:a.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ee.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=ee.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return ee.makeSpan(["mord",i.isOver?"mover":"munder"],[s],t)},roe=(e,t)=>{var n=ro.mathMLnode(e.label);return new fe.MathNode(e.isOver?"mover":"munder",[It(e.base,t),n])};ke({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:qO,mathmlBuilder:roe});ke({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=at(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:un(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Cn(e.body,t,!1);return ee.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=ls(e.body,t);return n instanceof ei||(n=new ei("mrow",[n])),n.setAttribute("href",e.href),n}});ke({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=at(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=at(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),u=0;u{var n=Cn(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=ee.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>ls(e.body,t)});ke({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:un(t[0]),mathml:un(t[1])}},htmlBuilder:(e,t)=>{var n=Cn(e.html,t,!1);return ee.makeFragment(n)},mathmlBuilder:(e,t)=>ls(e.mathml,t)});var e4=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new me("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!hO(r))throw new me("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ke({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=at(n[0],"raw").string,c=l.split(","),u=0;u{var n=Qt(e.height,t),r=0;e.totalheight.number>0&&(r=Qt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Qt(e.width,t));var a={height:we(n+r)};i>0&&(a.width=we(i)),r>0&&(a.verticalAlign=we(-r));var o=new rae(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new fe.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Qt(e.height,t),i=0;if(e.totalheight.number>0&&(i=Qt(e.totalheight,t)-r,n.setAttribute("valign",we(-i))),n.setAttribute("height",we(r+i)),e.width.number>0){var a=Qt(e.width,t);n.setAttribute("width",we(a))}return n.setAttribute("src",e.src),n}});ke({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=at(t[0],"size");if(n.settings.strict){var a=r[1]==="m",o=i.value.unit==="mu";a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return ee.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Qt(e.dimension,t);return new fe.SpaceNode(n)}});ke({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ee.makeSpan([],[xt(e.body,t)]),n=ee.makeSpan(["inner"],[n],t)):n=ee.makeSpan(["inner"],[xt(e.body,t)]);var r=ee.makeSpan(["fix"],[]),i=ee.makeSpan([e.alignment],[n,r],t),a=ee.makeSpan(["strut"]);return a.style.height=we(i.height+i.depth),i.depth&&(a.style.verticalAlign=we(-i.depth)),i.children.unshift(a),i=ee.makeSpan(["thinbox"],[i],t),ee.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new fe.MathNode("mpadded",[It(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ke({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}});ke({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new me("Mismatched "+e.funcName)}});var Kb=(e,t)=>{switch(t.style.size){case Ve.DISPLAY.size:return e.display;case Ve.TEXT.size:return e.text;case Ve.SCRIPT.size:return e.script;case Ve.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ke({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:un(t[0]),text:un(t[1]),script:un(t[2]),scriptscript:un(t[3])}},htmlBuilder:(e,t)=>{var n=Kb(e,t),r=Cn(n,t,!1);return ee.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Kb(e,t);return ls(n,t)}});var YO=(e,t,n,r,i,a,o)=>{e=ee.makeSpan([],[e]);var s=n&&Ye.isCharacterBox(n),l,c;if(t){var u=xt(t,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=xt(n,r.havingStyle(i.sub()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(c&&l){var h=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;f=ee.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:we(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:we(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var m=e.height-o;f=ee.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:we(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(c){var g=e.depth+o;f=ee.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:we(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var E=[f];if(l&&a!==0&&!s){var p=ee.makeSpan(["mspace"],[],r);p.style.marginRight=we(a),E.unshift(p)}return ee.makeSpan(["mop","op-limits"],E,r)},XO=["\\smallint"],mu=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=at(e.base,"op"),i=!0):a=at(e,"op");var o=t.style,s=!1;o.size===Ve.DISPLAY.size&&a.symbol&&!Ye.contains(XO,a.name)&&(s=!0);var l;if(a.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(u=a.name.slice(1),a.name=u==="oiint"?"\\iint":"\\iiint"),l=ee.makeSymbol(a.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var d=l.italic,f=ee.staticSvg(u+"Size"+(s?"2":"1"),t);l=ee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]},t),a.name="\\"+u,l.classes.unshift("mop"),l.italic=d}}else if(a.body){var h=Cn(a.body,t,!0);h.length===1&&h[0]instanceof ci?(l=h[0],l.classes[0]="mop"):l=ee.makeSpan(["mop"],h,t)}else{for(var m=[],g=1;g{var n;if(e.symbol)n=new ei("mo",[ui(e.name,e.mode)]),Ye.contains(XO,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ei("mo",Sr(e.body,t));else{n=new ei("mi",[new f1(e.name.slice(1))]);var r=new ei("mo",[ui("⁡","text")]);e.parentIsSupSub?n=new ei("mrow",[n,r]):n=wO([n,r])}return n},ioe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ke({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=ioe[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:mu,mathmlBuilder:H0});ke({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:un(r)}},htmlBuilder:mu,mathmlBuilder:H0});var aoe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ke({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:mu,mathmlBuilder:H0});ke({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:mu,mathmlBuilder:H0});ke({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=aoe[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:mu,mathmlBuilder:H0});var QO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=at(e.base,"operatorname"),i=!0):a=at(e,"operatorname");var o;if(a.body.length>0){for(var s=a.body.map(d=>{var f=d.text;return typeof f=="string"?{type:"textord",mode:d.mode,text:f}:d}),l=Cn(s,t.withFont("mathrm"),!0),c=0;c{for(var n=Sr(e.body,t.withFont("mathrm")),r=!0,i=0;iu.toText()).join("");n=[new fe.TextNode(s)]}var l=new fe.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new fe.MathNode("mo",[ui("⁡","text")]);return e.parentIsSupSub?new fe.MathNode("mrow",[l,c]):fe.newDocumentFragment([l,c])};ke({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:un(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:QO,mathmlBuilder:ooe});M("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Nl({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?ee.makeFragment(Cn(e.body,t,!1)):ee.makeSpan(["mord"],Cn(e.body,t,!0),t)},mathmlBuilder(e,t){return ls(e.body,t,!0)}});ke({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=xt(e.body,t.havingCrampedStyle()),r=ee.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return ee.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[new fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fe.MathNode("mover",[It(e.body,t),n]);return r.setAttribute("accent","true"),r}});ke({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:un(r)}},htmlBuilder:(e,t)=>{var n=Cn(e.body,t.withPhantom(),!1);return ee.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Sr(e.body,t);return new fe.MathNode("mphantom",n)}});ke({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ee.makeSpan([],[xt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Sr(un(e.body),t),r=new fe.MathNode("mphantom",n),i=new fe.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ke({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=ee.makeSpan(["inner"],[xt(e.body,t.withPhantom())]),r=ee.makeSpan(["fix"],[]);return ee.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Sr(un(e.body),t),r=new fe.MathNode("mphantom",n),i=new fe.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ke({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=at(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=xt(e.body,t),r=Qt(e.dy,t);return ee.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new fe.MathNode("mpadded",[It(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ke({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ke({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=at(t[0],"size"),o=at(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&at(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=ee.makeSpan(["mord","rule"],[],t),r=Qt(e.width,t),i=Qt(e.height,t),a=e.shift?Qt(e.shift,t):0;return n.style.borderRightWidth=we(r),n.style.borderTopWidth=we(i),n.style.bottom=we(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Qt(e.width,t),r=Qt(e.height,t),i=e.shift?Qt(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new fe.MathNode("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",we(n)),o.setAttribute("height",we(r));var s=new fe.MathNode("mpadded",[o]);return i>=0?s.setAttribute("height",we(i)):(s.setAttribute("height",we(i)),s.setAttribute("depth",we(-i))),s.setAttribute("voffset",we(i)),s}});function ZO(e,t,n){for(var r=Cn(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return ZO(e.body,n,t)};ke({type:"sizing",names:Wb,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Wb.indexOf(r)+1,body:a}},htmlBuilder:soe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Sr(e.body,n),i=new fe.MathNode("mstyle",r);return i.setAttribute("mathsize",we(n.sizeMultiplier)),i}});ke({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&at(n[0],"ordgroup");if(o)for(var s="",l=0;l{var n=ee.makeSpan([],[xt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new fe.MathNode("mpadded",[It(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ke({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=xt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ee.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var f=l.height-n.height-o-c;n.style.paddingLeft=we(u);var h=ee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var m=t.havingStyle(Ve.SCRIPTSCRIPT),g=xt(e.index,m,t),E=.6*(h.height-h.depth),p=ee.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:g}]},t),v=ee.makeSpan(["root"],[p]);return ee.makeSpan(["mord","sqrt"],[v,h],t)}else return ee.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new fe.MathNode("mroot",[It(n,t),It(r,t)]):new fe.MathNode("msqrt",[It(n,t)])}});var qb={display:Ve.DISPLAY,text:Ve.TEXT,script:Ve.SCRIPT,scriptscript:Ve.SCRIPTSCRIPT};ke({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=qb[e.style],r=t.havingStyle(n).withFont("");return ZO(e.body,r,t)},mathmlBuilder(e,t){var n=qb[e.style],r=t.havingStyle(n),i=Sr(e.body,r),a=new fe.MathNode("mstyle",i),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var loe=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ve.DISPLAY.size||r.alwaysHandleSupSub);return i?mu:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ve.DISPLAY.size||r.limits);return a?QO:null}else{if(r.type==="accent")return Ye.isCharacterBox(r.base)?s8:null;if(r.type==="horizBrace"){var o=!t.sub;return o===r.isOver?qO:null}else return null}else return null};Nl({type:"supsub",htmlBuilder(e,t){var n=loe(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=xt(r,t),s,l,c=t.fontMetrics(),u=0,d=0,f=r&&Ye.isCharacterBox(r);if(i){var h=t.havingStyle(t.style.sup());s=xt(i,h,t),f||(u=o.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());l=xt(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var g;t.style===Ve.DISPLAY?g=c.sup1:t.style.cramped?g=c.sup3:g=c.sup2;var E=t.sizeMultiplier,p=we(.5/c.ptPerEm/E),v=null;if(l){var T=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof ci||T)&&(v=we(-o.italic))}var C;if(s&&l){u=Math.max(u,g,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var O=c.defaultRuleThickness,N=4*O;if(u-s.depth-(l.height-d)0&&(u+=R,d-=R)}var D=[{type:"elem",elem:l,shift:d,marginRight:p,marginLeft:v},{type:"elem",elem:s,shift:-u,marginRight:p}];C=ee.makeVList({positionType:"individualShift",children:D},t)}else if(l){d=Math.max(d,c.sub1,l.height-.8*c.xHeight);var I=[{type:"elem",elem:l,marginLeft:v,marginRight:p}];C=ee.makeVList({positionType:"shift",positionData:d,children:I},t)}else if(s)u=Math.max(u,g,s.depth+.25*c.xHeight),C=ee.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:p}]},t);else throw new Error("supsub must have either sup or sub.");var L=A2(o,"right")||"mord";return ee.makeSpan([L],[o,ee.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[It(e.base,t)];e.sub&&a.push(It(e.sub,t)),e.sup&&a.push(It(e.sup,t));var o;if(n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Ve.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Ve.DISPLAY||c.limits)?o="munderover":o="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ve.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ve.DISPLAY)?o="munder":o="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Ve.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Ve.DISPLAY)?o="mover":o="msup"}return new fe.MathNode(o,a)}});Nl({type:"atom",htmlBuilder(e,t){return ee.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[ui(e.text,e.mode)]);if(e.family==="bin"){var r=a8(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var JO={mi:"italic",mn:"normal",mtext:"normal"};Nl({type:"mathord",htmlBuilder(e,t){return ee.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new fe.MathNode("mi",[ui(e.text,e.mode,t)]),r=a8(e,t)||"italic";return r!==JO[n.type]&&n.setAttribute("mathvariant",r),n}});Nl({type:"textord",htmlBuilder(e,t){return ee.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=ui(e.text,e.mode,t),r=a8(e,t)||"normal",i;return e.mode==="text"?i=new fe.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new fe.MathNode("mn",[n]):e.text==="\\prime"?i=new fe.MathNode("mo",[n]):i=new fe.MathNode("mi",[n]),r!==JO[i.type]&&i.setAttribute("mathvariant",r),i}});var t4={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},n4={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Nl({type:"spacing",htmlBuilder(e,t){if(n4.hasOwnProperty(e.text)){var n=n4[e.text].className||"";if(e.mode==="text"){var r=ee.makeOrd(e,t,"textord");return r.classes.push(n),r}else return ee.makeSpan(["mspace",n],[ee.mathsym(e.text,e.mode,t)],t)}else{if(t4.hasOwnProperty(e.text))return ee.makeSpan(["mspace",t4[e.text]],[],t);throw new me('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(n4.hasOwnProperty(e.text))n=new fe.MathNode("mtext",[new fe.TextNode(" ")]);else{if(t4.hasOwnProperty(e.text))return new fe.MathNode("mspace");throw new me('Unknown type of space "'+e.text+'"')}return n}});var Yb=()=>{var e=new fe.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Nl({type:"tag",mathmlBuilder(e,t){var n=new fe.MathNode("mtable",[new fe.MathNode("mtr",[Yb(),new fe.MathNode("mtd",[ls(e.body,t)]),Yb(),new fe.MathNode("mtd",[ls(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Xb={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Qb={"\\textbf":"textbf","\\textmd":"textmd"},coe={"\\textit":"textit","\\textup":"textup"},Zb=(e,t)=>{var n=e.font;return n?Xb[n]?t.withTextFontFamily(Xb[n]):Qb[n]?t.withTextFontWeight(Qb[n]):t.withTextFontShape(coe[n]):t};ke({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:un(i),font:r}},htmlBuilder(e,t){var n=Zb(e,t),r=Cn(e.body,n,!0);return ee.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Zb(e,t);return ls(e.body,n)}});ke({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=xt(e.body,t),r=ee.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=ee.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return ee.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new fe.MathNode("mo",[new fe.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new fe.MathNode("munder",[It(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ke({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=xt(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return ee.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new fe.MathNode("mpadded",[It(e.body,t)],["vcenter"])}});ke({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new me("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Jb(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Bo=TO,eR=`[ \r + ]`,uoe="\\\\[a-zA-Z@]+",doe="\\\\[^\uD800-\uDFFF]",foe="("+uoe+")"+eR+"*",hoe=`\\\\( |[ \r ]+ -?)[ \r ]*`,w2="[̀-ͯ]",toe=new RegExp(w2+"+$"),noe="("+GO+"+)|"+(eoe+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(w2+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(w2+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Jae)+("|"+Zae+")");class Vb{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(noe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new sa("EOF",new Rr(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new me("Unexpected character: '"+t[n]+"'",new sa(t[n],new Rr(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new sa(i,new Rr(this,n,this.tokenRegex.lastIndex))}}class roe{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new me("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var ioe=MO;I("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});I("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});I("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});I("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});I("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});I("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");I("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Kb={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};I("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new me("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Kb[t.text],r==null||r>=n)throw new me("Invalid base-"+n+" digit "+t.text);for(var i;(i=Kb[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new me("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new me("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new me("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var s="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new me("Invalid number of arguments: "+s);o=parseInt(s),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:o}),""};I("\\newcommand",e=>o6(e,!1,!0));I("\\renewcommand",e=>o6(e,!0,!1));I("\\providecommand",e=>o6(e,!0,!0));I("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});I("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});I("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Po[n],Ft.math[n],Ft.text[n]),""});I("\\bgroup","{");I("\\egroup","}");I("~","\\nobreakspace");I("\\lq","`");I("\\rq","'");I("\\aa","\\r a");I("\\AA","\\r A");I("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");I("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");I("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");I("ℬ","\\mathscr{B}");I("ℰ","\\mathscr{E}");I("ℱ","\\mathscr{F}");I("ℋ","\\mathscr{H}");I("ℐ","\\mathscr{I}");I("ℒ","\\mathscr{L}");I("ℳ","\\mathscr{M}");I("ℛ","\\mathscr{R}");I("ℭ","\\mathfrak{C}");I("ℌ","\\mathfrak{H}");I("ℨ","\\mathfrak{Z}");I("\\Bbbk","\\Bbb{k}");I("·","\\cdotp");I("\\llap","\\mathllap{\\textrm{#1}}");I("\\rlap","\\mathrlap{\\textrm{#1}}");I("\\clap","\\mathclap{\\textrm{#1}}");I("\\mathstrut","\\vphantom{(}");I("\\underbar","\\underline{\\text{#1}}");I("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');I("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");I("\\ne","\\neq");I("≠","\\neq");I("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");I("∉","\\notin");I("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");I("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");I("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");I("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");I("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");I("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");I("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");I("⟂","\\perp");I("‼","\\mathclose{!\\mkern-0.8mu!}");I("∌","\\notni");I("⌜","\\ulcorner");I("⌝","\\urcorner");I("⌞","\\llcorner");I("⌟","\\lrcorner");I("©","\\copyright");I("®","\\textregistered");I("️","\\textregistered");I("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');I("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');I("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');I("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');I("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");I("⋮","\\vdots");I("\\varGamma","\\mathit{\\Gamma}");I("\\varDelta","\\mathit{\\Delta}");I("\\varTheta","\\mathit{\\Theta}");I("\\varLambda","\\mathit{\\Lambda}");I("\\varXi","\\mathit{\\Xi}");I("\\varPi","\\mathit{\\Pi}");I("\\varSigma","\\mathit{\\Sigma}");I("\\varUpsilon","\\mathit{\\Upsilon}");I("\\varPhi","\\mathit{\\Phi}");I("\\varPsi","\\mathit{\\Psi}");I("\\varOmega","\\mathit{\\Omega}");I("\\substack","\\begin{subarray}{c}#1\\end{subarray}");I("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");I("\\boxed","\\fbox{$\\displaystyle{#1}$}");I("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");I("\\implies","\\DOTSB\\;\\Longrightarrow\\;");I("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Wb={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};I("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Wb?t=Wb[n]:(n.slice(0,4)==="\\not"||n in Ft.math&&Ye.contains(["bin","rel"],Ft.math[n].group))&&(t="\\dotsb"),t});var s6={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};I("\\dotso",function(e){var t=e.future().text;return t in s6?"\\ldots\\,":"\\ldots"});I("\\dotsc",function(e){var t=e.future().text;return t in s6&&t!==","?"\\ldots\\,":"\\ldots"});I("\\cdots",function(e){var t=e.future().text;return t in s6?"\\@cdots\\,":"\\@cdots"});I("\\dotsb","\\cdots");I("\\dotsm","\\cdots");I("\\dotsi","\\!\\cdots");I("\\dotsx","\\ldots\\,");I("\\DOTSI","\\relax");I("\\DOTSB","\\relax");I("\\DOTSX","\\relax");I("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");I("\\,","\\tmspace+{3mu}{.1667em}");I("\\thinspace","\\,");I("\\>","\\mskip{4mu}");I("\\:","\\tmspace+{4mu}{.2222em}");I("\\medspace","\\:");I("\\;","\\tmspace+{5mu}{.2777em}");I("\\thickspace","\\;");I("\\!","\\tmspace-{3mu}{.1667em}");I("\\negthinspace","\\!");I("\\negmedspace","\\tmspace-{4mu}{.2222em}");I("\\negthickspace","\\tmspace-{5mu}{.277em}");I("\\enspace","\\kern.5em ");I("\\enskip","\\hskip.5em\\relax");I("\\quad","\\hskip1em\\relax");I("\\qquad","\\hskip2em\\relax");I("\\tag","\\@ifstar\\tag@literal\\tag@paren");I("\\tag@paren","\\tag@literal{({#1})}");I("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new me("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});I("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");I("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");I("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");I("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");I("\\newline","\\\\\\relax");I("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var VO=we(ta["Main-Regular"]["T".charCodeAt(0)][1]-.7*ta["Main-Regular"]["A".charCodeAt(0)][1]);I("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+VO+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");I("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+VO+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");I("\\hspace","\\@ifstar\\@hspacer\\@hspace");I("\\@hspace","\\hskip #1\\relax");I("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");I("\\ordinarycolon",":");I("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");I("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');I("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');I("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');I("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');I("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');I("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');I("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');I("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');I("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');I("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');I("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');I("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');I("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');I("∷","\\dblcolon");I("∹","\\eqcolon");I("≔","\\coloneqq");I("≕","\\eqqcolon");I("⩴","\\Coloneqq");I("\\ratio","\\vcentcolon");I("\\coloncolon","\\dblcolon");I("\\colonequals","\\coloneqq");I("\\coloncolonequals","\\Coloneqq");I("\\equalscolon","\\eqqcolon");I("\\equalscoloncolon","\\Eqqcolon");I("\\colonminus","\\coloneq");I("\\coloncolonminus","\\Coloneq");I("\\minuscolon","\\eqcolon");I("\\minuscoloncolon","\\Eqcolon");I("\\coloncolonapprox","\\Colonapprox");I("\\coloncolonsim","\\Colonsim");I("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");I("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");I("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");I("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");I("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");I("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");I("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");I("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");I("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");I("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");I("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");I("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");I("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");I("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");I("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");I("\\nleqq","\\html@mathml{\\@nleqq}{≰}");I("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");I("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");I("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");I("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");I("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");I("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");I("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");I("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");I("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");I("\\imath","\\html@mathml{\\@imath}{ı}");I("\\jmath","\\html@mathml{\\@jmath}{ȷ}");I("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");I("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");I("⟦","\\llbracket");I("⟧","\\rrbracket");I("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");I("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");I("⦃","\\lBrace");I("⦄","\\rBrace");I("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");I("⦵","\\minuso");I("\\darr","\\downarrow");I("\\dArr","\\Downarrow");I("\\Darr","\\Downarrow");I("\\lang","\\langle");I("\\rang","\\rangle");I("\\uarr","\\uparrow");I("\\uArr","\\Uparrow");I("\\Uarr","\\Uparrow");I("\\N","\\mathbb{N}");I("\\R","\\mathbb{R}");I("\\Z","\\mathbb{Z}");I("\\alef","\\aleph");I("\\alefsym","\\aleph");I("\\Alpha","\\mathrm{A}");I("\\Beta","\\mathrm{B}");I("\\bull","\\bullet");I("\\Chi","\\mathrm{X}");I("\\clubs","\\clubsuit");I("\\cnums","\\mathbb{C}");I("\\Complex","\\mathbb{C}");I("\\Dagger","\\ddagger");I("\\diamonds","\\diamondsuit");I("\\empty","\\emptyset");I("\\Epsilon","\\mathrm{E}");I("\\Eta","\\mathrm{H}");I("\\exist","\\exists");I("\\harr","\\leftrightarrow");I("\\hArr","\\Leftrightarrow");I("\\Harr","\\Leftrightarrow");I("\\hearts","\\heartsuit");I("\\image","\\Im");I("\\infin","\\infty");I("\\Iota","\\mathrm{I}");I("\\isin","\\in");I("\\Kappa","\\mathrm{K}");I("\\larr","\\leftarrow");I("\\lArr","\\Leftarrow");I("\\Larr","\\Leftarrow");I("\\lrarr","\\leftrightarrow");I("\\lrArr","\\Leftrightarrow");I("\\Lrarr","\\Leftrightarrow");I("\\Mu","\\mathrm{M}");I("\\natnums","\\mathbb{N}");I("\\Nu","\\mathrm{N}");I("\\Omicron","\\mathrm{O}");I("\\plusmn","\\pm");I("\\rarr","\\rightarrow");I("\\rArr","\\Rightarrow");I("\\Rarr","\\Rightarrow");I("\\real","\\Re");I("\\reals","\\mathbb{R}");I("\\Reals","\\mathbb{R}");I("\\Rho","\\mathrm{P}");I("\\sdot","\\cdot");I("\\sect","\\S");I("\\spades","\\spadesuit");I("\\sub","\\subset");I("\\sube","\\subseteq");I("\\supe","\\supseteq");I("\\Tau","\\mathrm{T}");I("\\thetasym","\\vartheta");I("\\weierp","\\wp");I("\\Zeta","\\mathrm{Z}");I("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");I("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");I("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");I("\\bra","\\mathinner{\\langle{#1}|}");I("\\ket","\\mathinner{|{#1}\\rangle}");I("\\braket","\\mathinner{\\langle{#1}\\rangle}");I("\\Bra","\\left\\langle#1\\right|");I("\\Ket","\\left|#1\\right\\rangle");var KO=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=d=>f=>{e&&(f.macros.set("|",o),i.length&&f.macros.set("\\|",s));var h=d;if(!d&&i.length){var m=f.future();m.text==="|"&&(f.popToken(),h=!0)}return{tokens:h?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};I("\\bra@ket",KO(!1));I("\\bra@set",KO(!0));I("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");I("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");I("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");I("\\angln","{\\angl n}");I("\\blue","\\textcolor{##6495ed}{#1}");I("\\orange","\\textcolor{##ffa500}{#1}");I("\\pink","\\textcolor{##ff00af}{#1}");I("\\red","\\textcolor{##df0030}{#1}");I("\\green","\\textcolor{##28ae7b}{#1}");I("\\gray","\\textcolor{gray}{#1}");I("\\purple","\\textcolor{##9d38bd}{#1}");I("\\blueA","\\textcolor{##ccfaff}{#1}");I("\\blueB","\\textcolor{##80f6ff}{#1}");I("\\blueC","\\textcolor{##63d9ea}{#1}");I("\\blueD","\\textcolor{##11accd}{#1}");I("\\blueE","\\textcolor{##0c7f99}{#1}");I("\\tealA","\\textcolor{##94fff5}{#1}");I("\\tealB","\\textcolor{##26edd5}{#1}");I("\\tealC","\\textcolor{##01d1c1}{#1}");I("\\tealD","\\textcolor{##01a995}{#1}");I("\\tealE","\\textcolor{##208170}{#1}");I("\\greenA","\\textcolor{##b6ffb0}{#1}");I("\\greenB","\\textcolor{##8af281}{#1}");I("\\greenC","\\textcolor{##74cf70}{#1}");I("\\greenD","\\textcolor{##1fab54}{#1}");I("\\greenE","\\textcolor{##0d923f}{#1}");I("\\goldA","\\textcolor{##ffd0a9}{#1}");I("\\goldB","\\textcolor{##ffbb71}{#1}");I("\\goldC","\\textcolor{##ff9c39}{#1}");I("\\goldD","\\textcolor{##e07d10}{#1}");I("\\goldE","\\textcolor{##a75a05}{#1}");I("\\redA","\\textcolor{##fca9a9}{#1}");I("\\redB","\\textcolor{##ff8482}{#1}");I("\\redC","\\textcolor{##f9685d}{#1}");I("\\redD","\\textcolor{##e84d39}{#1}");I("\\redE","\\textcolor{##bc2612}{#1}");I("\\maroonA","\\textcolor{##ffbde0}{#1}");I("\\maroonB","\\textcolor{##ff92c6}{#1}");I("\\maroonC","\\textcolor{##ed5fa6}{#1}");I("\\maroonD","\\textcolor{##ca337c}{#1}");I("\\maroonE","\\textcolor{##9e034e}{#1}");I("\\purpleA","\\textcolor{##ddd7ff}{#1}");I("\\purpleB","\\textcolor{##c6b9fc}{#1}");I("\\purpleC","\\textcolor{##aa87ff}{#1}");I("\\purpleD","\\textcolor{##7854ab}{#1}");I("\\purpleE","\\textcolor{##543b78}{#1}");I("\\mintA","\\textcolor{##f5f9e8}{#1}");I("\\mintB","\\textcolor{##edf2df}{#1}");I("\\mintC","\\textcolor{##e0e5cc}{#1}");I("\\grayA","\\textcolor{##f6f7f7}{#1}");I("\\grayB","\\textcolor{##f0f1f2}{#1}");I("\\grayC","\\textcolor{##e3e5e6}{#1}");I("\\grayD","\\textcolor{##d6d8da}{#1}");I("\\grayE","\\textcolor{##babec2}{#1}");I("\\grayF","\\textcolor{##888d93}{#1}");I("\\grayG","\\textcolor{##626569}{#1}");I("\\grayH","\\textcolor{##3b3e40}{#1}");I("\\grayI","\\textcolor{##21242c}{#1}");I("\\kaBlue","\\textcolor{##314453}{#1}");I("\\kaGreen","\\textcolor{##71B307}{#1}");var WO={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class aoe{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new roe(ioe,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Vb(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new sa("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new me("Extra }",a)}else if(a.text==="EOF")throw new me("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",a);if(t&&r)if((o===0||o===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(o!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new me("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new me("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if(l.text==="#"){if(s===0)throw new me("Incomplete placeholder at end of macro body",l);if(l=a[--s],l.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(l.text))a.splice(s,2,...o[+l.text-1]);else throw new me("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new sa(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var s=new Vb(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:a};return u}return i}isDefined(t){return this.macros.has(t)||Po.hasOwnProperty(t)||Ft.math.hasOwnProperty(t)||Ft.text.hasOwnProperty(t)||WO.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Po.hasOwnProperty(t)&&!Po[t].primitive}}var qb=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ad=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Qg={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Yb={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let qO=class S2{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new aoe(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new me("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new sa("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(S2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Po[i.text]&&Po[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=Ft[this.mode][n].group,l=Rr.range(t),c;if(Wie.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};o=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(nO(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:Rr.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;d{nu(r,"element",a=>{const o=a.properties&&Array.isArray(a.properties.className)?a.properties.className:[],s=o.includes("math-inline"),l=o.includes("math-display");if(!s&&!l)return;const c=p2(a,{whitespace:"pre"});let u;try{u=Xb.renderToString(c,eE({},t,{displayMode:l,throwOnError:!0}))}catch(f){const h=f,m=n?"fail":"message",g=[Soe,h.name.toLowerCase()].join(":");if(i[m](h.message,a.position,g),h.name!=="ParseError"){a.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(h),style:"color:"+(t.errorColor||"#cc0000")},children:[{type:"text",value:c}]}];return}u=Xb.renderToString(c,eE({},t,{displayMode:l,throwOnError:!1,strict:"ignore"}))}const d=_oe(u,{fragment:!0});a.children=d.children})}}function Aoe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Noe={}.hasOwnProperty,nR=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=Xm(i.ignore||[]),s=koe(a);let l=-1;for(;++l0?{type:"text",value:O}:void 0),O!==!1&&(b!==R&&T.push({type:"text",value:d.value.slice(b,R)}),Array.isArray(O)?T.push(...O):O&&T.push(O),b=R+C[0].length,v=!0),!m.global)break;C=m.exec(d.value)}return v?(be}function Ooe(e){nR(e,/\r?\n|\r/g,Roe)}function Roe(){return{type:"break"}}function Ioe(){return Ooe}const Moe={tokenize:Boe,partial:!0},rR={tokenize:zoe,partial:!0},iR={tokenize:Uoe,partial:!0},aR={tokenize:Hoe,partial:!0},Loe={tokenize:joe,partial:!0},oR={tokenize:$oe,previous:lR},sR={tokenize:Foe,previous:cR},lo={tokenize:Poe,previous:uR},ya={},Doe={text:ya};let bs=48;for(;bs<123;)ya[bs]=lo,bs++,bs===58?bs=65:bs===91&&(bs=97);ya[43]=lo;ya[45]=lo;ya[46]=lo;ya[95]=lo;ya[72]=[lo,sR];ya[104]=[lo,sR];ya[87]=[lo,oR];ya[119]=[lo,oR];function Poe(e,t,n){const r=this;let i,a;return o;function o(d){return!N2(d)||!uR.call(r,r.previous)||u6(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return N2(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(Loe,u,c)(d):d===45||d===95||Kn(d)?(a=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return a&&i&&Zn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function $oe(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!lR.call(r,r.previous)||u6(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Moe,e.attempt(rR,e.attempt(iR,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Foe(e,t,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&cR.call(r,r.previous)&&!u6(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Zn(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):n(d)}function c(d){return d===null||Ih(d)||It(d)||il(d)||Wm(d)?n(d):e.attempt(rR,e.attempt(iR,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Boe(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function zoe(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(aR,l,s)(c):c===null||It(c)||il(c)||c!==45&&Wm(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function Uoe(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Goe={tokenize:Zoe,partial:!0};function Voe(){return{document:{[91]:{tokenize:Yoe,continuation:{tokenize:Xoe},exit:Qoe}},text:{[91]:{tokenize:qoe},[93]:{add:"after",tokenize:Koe,resolveTo:Woe}}}}function Koe(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=Ii(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Woe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function qoe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||It(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Ii(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return It(d)||(o=!0),a++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function Yoe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(m)}function u(m){if(o>999||m===93&&!s||m===null||m===91||It(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return a=Ii(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return It(m)||(s=!0),o++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),o++,u):u(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),lt(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function Xoe(e,t,n){return e.check(w0,t,e.attempt(Goe,t,n))}function Qoe(e){e.exit("gfmFootnoteDefinition")}function Zoe(e,t,n){const r=this;return lt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Joe(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l1?l(m):(o.consume(m),d++,h);if(d<2&&!n)return l(m);const b=o.exit("strikethroughSequenceTemporary"),p=Mh(m);return b._open=!p||p===2&&!!g,b._close=!g||g===2&&!!p,s(m)}}}class ese{constructor(){this.map=[]}add(t,n,r){tse(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function tse(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const K=r.events[X][1].type;if(K==="lineEnding"||K==="linePrefix")X--;else break}const Z=X>-1?r.events[X][1].type:null,Q=Z==="tableHead"||Z==="tableRow"?N:l;return Q===N&&r.parser.lazy[r.now().line]?n(L):Q(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),u(L)}function u(L){return L===null?n(L):Be(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),h):n(L):ut(L)?lt(e,u,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||It(L)?(e.exit("data"),u(L)):(e.consume(L),L===92?f:d)}function f(L){return L===92||L===124?(e.consume(L),d):d(L)}function h(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),o=!1,ut(L)?lt(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):m(L))}function m(L){return L===45||L===58?b(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),g):R(L)}function g(L){return ut(L)?lt(e,b,"whitespace")(L):b(L)}function b(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),p):L===45?(a+=1,p(L)):L===null||Be(L)?C(L):R(L)}function p(L){return L===45?(e.enter("tableDelimiterFiller"),v(L)):R(L)}function v(L){return L===45?(e.consume(L),v):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(L))}function T(L){return ut(L)?lt(e,C,"whitespace")(L):C(L)}function C(L){return L===124?m(L):L===null||Be(L)?!o||i!==a?R(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):R(L)}function R(L){return n(L)}function N(L){return e.enter("tableRow"),O(L)}function O(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),O):L===null||Be(L)?(e.exit("tableRow"),t(L)):ut(L)?lt(e,O,"whitespace")(L):(e.enter("data"),$(L))}function $(L){return L===null||L===124||It(L)?(e.exit("data"),O(L)):(e.consume(L),L===92?M:$)}function M(L){return L===92||L===124?(e.consume(L),$):$(L)}}function ase(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const f=new ese;for(;++nn[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Gl(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function rE(e,t,n,r,i){const a=[],o=Gl(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Gl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ose={tokenize:lse},sse={text:{[91]:ose}};function lse(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return It(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Be(l)?t(l):ut(l)?e.check({tokenize:cse},t,n)(l):n(l)}}function cse(e,t,n){return lt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function use(e){return LN([Doe,Voe(),Joe(e),rse,sse])}function iE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Zg="phrasing",Jg=["autolink","link","image","label"],dse={transforms:[yse],enter:{literalAutolink:hse,literalAutolinkEmail:e4,literalAutolinkHttp:e4,literalAutolinkWww:e4},exit:{literalAutolink:vse,literalAutolinkEmail:gse,literalAutolinkHttp:mse,literalAutolinkWww:pse}},fse={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Zg,notInConstruct:Jg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Zg,notInConstruct:Jg},{character:":",before:"[ps]",after:"\\/",inConstruct:Zg,notInConstruct:Jg}]};function hse(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function e4(e){this.config.enter.autolinkProtocol.call(this,e)}function mse(e){this.config.exit.autolinkProtocol.call(this,e)}function pse(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function gse(e){this.config.exit.autolinkEmail.call(this,e)}function vse(e){this.exit(e)}function yse(e){nR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bse],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ese]],{ignore:["link","linkReference"]})}function bse(e,t,n,r,i){let a="";if(!dR(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Tse(n)))return!1;const o=xse(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Ese(e,t,n,r){return!dR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Tse(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xse(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=iE(e,"(");let a=iE(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function dR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||il(n)||Wm(n))&&(!t||n!==47)}function fR(e){return e.label||!e.identifier?e.label||"":VN(e.identifier)}function _se(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var voe=HO;M("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});M("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});M("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});M("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});M("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});M("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");M("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var tE={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};M("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new me("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=tE[t.text],r==null||r>=n)throw new me("Invalid base-"+n+" digit "+t.text);for(var i;(i=tE[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new me("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new me("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new me("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var s="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new me("Invalid number of arguments: "+s);o=parseInt(s),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:o}),""};M("\\newcommand",e=>p8(e,!1,!0));M("\\renewcommand",e=>p8(e,!0,!1));M("\\providecommand",e=>p8(e,!0,!0));M("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});M("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});M("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Bo[n],Bt.math[n],Bt.text[n]),""});M("\\bgroup","{");M("\\egroup","}");M("~","\\nobreakspace");M("\\lq","`");M("\\rq","'");M("\\aa","\\r a");M("\\AA","\\r A");M("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");M("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");M("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");M("ℬ","\\mathscr{B}");M("ℰ","\\mathscr{E}");M("ℱ","\\mathscr{F}");M("ℋ","\\mathscr{H}");M("ℐ","\\mathscr{I}");M("ℒ","\\mathscr{L}");M("ℳ","\\mathscr{M}");M("ℛ","\\mathscr{R}");M("ℭ","\\mathfrak{C}");M("ℌ","\\mathfrak{H}");M("ℨ","\\mathfrak{Z}");M("\\Bbbk","\\Bbb{k}");M("·","\\cdotp");M("\\llap","\\mathllap{\\textrm{#1}}");M("\\rlap","\\mathrlap{\\textrm{#1}}");M("\\clap","\\mathclap{\\textrm{#1}}");M("\\mathstrut","\\vphantom{(}");M("\\underbar","\\underline{\\text{#1}}");M("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');M("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");M("\\ne","\\neq");M("≠","\\neq");M("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");M("∉","\\notin");M("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");M("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");M("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");M("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");M("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");M("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");M("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");M("⟂","\\perp");M("‼","\\mathclose{!\\mkern-0.8mu!}");M("∌","\\notni");M("⌜","\\ulcorner");M("⌝","\\urcorner");M("⌞","\\llcorner");M("⌟","\\lrcorner");M("©","\\copyright");M("®","\\textregistered");M("️","\\textregistered");M("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');M("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');M("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');M("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');M("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");M("⋮","\\vdots");M("\\varGamma","\\mathit{\\Gamma}");M("\\varDelta","\\mathit{\\Delta}");M("\\varTheta","\\mathit{\\Theta}");M("\\varLambda","\\mathit{\\Lambda}");M("\\varXi","\\mathit{\\Xi}");M("\\varPi","\\mathit{\\Pi}");M("\\varSigma","\\mathit{\\Sigma}");M("\\varUpsilon","\\mathit{\\Upsilon}");M("\\varPhi","\\mathit{\\Phi}");M("\\varPsi","\\mathit{\\Psi}");M("\\varOmega","\\mathit{\\Omega}");M("\\substack","\\begin{subarray}{c}#1\\end{subarray}");M("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");M("\\boxed","\\fbox{$\\displaystyle{#1}$}");M("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");M("\\implies","\\DOTSB\\;\\Longrightarrow\\;");M("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var nE={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};M("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in nE?t=nE[n]:(n.slice(0,4)==="\\not"||n in Bt.math&&Ye.contains(["bin","rel"],Bt.math[n].group))&&(t="\\dotsb"),t});var g8={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};M("\\dotso",function(e){var t=e.future().text;return t in g8?"\\ldots\\,":"\\ldots"});M("\\dotsc",function(e){var t=e.future().text;return t in g8&&t!==","?"\\ldots\\,":"\\ldots"});M("\\cdots",function(e){var t=e.future().text;return t in g8?"\\@cdots\\,":"\\@cdots"});M("\\dotsb","\\cdots");M("\\dotsm","\\cdots");M("\\dotsi","\\!\\cdots");M("\\dotsx","\\ldots\\,");M("\\DOTSI","\\relax");M("\\DOTSB","\\relax");M("\\DOTSX","\\relax");M("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");M("\\,","\\tmspace+{3mu}{.1667em}");M("\\thinspace","\\,");M("\\>","\\mskip{4mu}");M("\\:","\\tmspace+{4mu}{.2222em}");M("\\medspace","\\:");M("\\;","\\tmspace+{5mu}{.2777em}");M("\\thickspace","\\;");M("\\!","\\tmspace-{3mu}{.1667em}");M("\\negthinspace","\\!");M("\\negmedspace","\\tmspace-{4mu}{.2222em}");M("\\negthickspace","\\tmspace-{5mu}{.277em}");M("\\enspace","\\kern.5em ");M("\\enskip","\\hskip.5em\\relax");M("\\quad","\\hskip1em\\relax");M("\\qquad","\\hskip2em\\relax");M("\\tag","\\@ifstar\\tag@literal\\tag@paren");M("\\tag@paren","\\tag@literal{({#1})}");M("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new me("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});M("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");M("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");M("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");M("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");M("\\newline","\\\\\\relax");M("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var tR=we(aa["Main-Regular"]["T".charCodeAt(0)][1]-.7*aa["Main-Regular"]["A".charCodeAt(0)][1]);M("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+tR+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");M("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+tR+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");M("\\hspace","\\@ifstar\\@hspacer\\@hspace");M("\\@hspace","\\hskip #1\\relax");M("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");M("\\ordinarycolon",":");M("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");M("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');M("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');M("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');M("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');M("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');M("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');M("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');M("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');M("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');M("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');M("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');M("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');M("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');M("∷","\\dblcolon");M("∹","\\eqcolon");M("≔","\\coloneqq");M("≕","\\eqqcolon");M("⩴","\\Coloneqq");M("\\ratio","\\vcentcolon");M("\\coloncolon","\\dblcolon");M("\\colonequals","\\coloneqq");M("\\coloncolonequals","\\Coloneqq");M("\\equalscolon","\\eqqcolon");M("\\equalscoloncolon","\\Eqqcolon");M("\\colonminus","\\coloneq");M("\\coloncolonminus","\\Coloneq");M("\\minuscolon","\\eqcolon");M("\\minuscoloncolon","\\Eqcolon");M("\\coloncolonapprox","\\Colonapprox");M("\\coloncolonsim","\\Colonsim");M("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");M("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");M("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");M("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");M("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");M("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");M("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");M("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");M("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");M("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");M("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");M("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");M("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");M("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");M("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");M("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");M("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");M("\\nleqq","\\html@mathml{\\@nleqq}{≰}");M("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");M("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");M("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");M("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");M("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");M("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");M("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");M("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");M("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");M("\\imath","\\html@mathml{\\@imath}{ı}");M("\\jmath","\\html@mathml{\\@jmath}{ȷ}");M("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");M("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");M("⟦","\\llbracket");M("⟧","\\rrbracket");M("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");M("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");M("⦃","\\lBrace");M("⦄","\\rBrace");M("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");M("⦵","\\minuso");M("\\darr","\\downarrow");M("\\dArr","\\Downarrow");M("\\Darr","\\Downarrow");M("\\lang","\\langle");M("\\rang","\\rangle");M("\\uarr","\\uparrow");M("\\uArr","\\Uparrow");M("\\Uarr","\\Uparrow");M("\\N","\\mathbb{N}");M("\\R","\\mathbb{R}");M("\\Z","\\mathbb{Z}");M("\\alef","\\aleph");M("\\alefsym","\\aleph");M("\\Alpha","\\mathrm{A}");M("\\Beta","\\mathrm{B}");M("\\bull","\\bullet");M("\\Chi","\\mathrm{X}");M("\\clubs","\\clubsuit");M("\\cnums","\\mathbb{C}");M("\\Complex","\\mathbb{C}");M("\\Dagger","\\ddagger");M("\\diamonds","\\diamondsuit");M("\\empty","\\emptyset");M("\\Epsilon","\\mathrm{E}");M("\\Eta","\\mathrm{H}");M("\\exist","\\exists");M("\\harr","\\leftrightarrow");M("\\hArr","\\Leftrightarrow");M("\\Harr","\\Leftrightarrow");M("\\hearts","\\heartsuit");M("\\image","\\Im");M("\\infin","\\infty");M("\\Iota","\\mathrm{I}");M("\\isin","\\in");M("\\Kappa","\\mathrm{K}");M("\\larr","\\leftarrow");M("\\lArr","\\Leftarrow");M("\\Larr","\\Leftarrow");M("\\lrarr","\\leftrightarrow");M("\\lrArr","\\Leftrightarrow");M("\\Lrarr","\\Leftrightarrow");M("\\Mu","\\mathrm{M}");M("\\natnums","\\mathbb{N}");M("\\Nu","\\mathrm{N}");M("\\Omicron","\\mathrm{O}");M("\\plusmn","\\pm");M("\\rarr","\\rightarrow");M("\\rArr","\\Rightarrow");M("\\Rarr","\\Rightarrow");M("\\real","\\Re");M("\\reals","\\mathbb{R}");M("\\Reals","\\mathbb{R}");M("\\Rho","\\mathrm{P}");M("\\sdot","\\cdot");M("\\sect","\\S");M("\\spades","\\spadesuit");M("\\sub","\\subset");M("\\sube","\\subseteq");M("\\supe","\\supseteq");M("\\Tau","\\mathrm{T}");M("\\thetasym","\\vartheta");M("\\weierp","\\wp");M("\\Zeta","\\mathrm{Z}");M("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");M("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");M("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");M("\\bra","\\mathinner{\\langle{#1}|}");M("\\ket","\\mathinner{|{#1}\\rangle}");M("\\braket","\\mathinner{\\langle{#1}\\rangle}");M("\\Bra","\\left\\langle#1\\right|");M("\\Ket","\\left|#1\\right\\rangle");var nR=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=d=>f=>{e&&(f.macros.set("|",o),i.length&&f.macros.set("\\|",s));var h=d;if(!d&&i.length){var m=f.future();m.text==="|"&&(f.popToken(),h=!0)}return{tokens:h?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};M("\\bra@ket",nR(!1));M("\\bra@set",nR(!0));M("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");M("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");M("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");M("\\angln","{\\angl n}");M("\\blue","\\textcolor{##6495ed}{#1}");M("\\orange","\\textcolor{##ffa500}{#1}");M("\\pink","\\textcolor{##ff00af}{#1}");M("\\red","\\textcolor{##df0030}{#1}");M("\\green","\\textcolor{##28ae7b}{#1}");M("\\gray","\\textcolor{gray}{#1}");M("\\purple","\\textcolor{##9d38bd}{#1}");M("\\blueA","\\textcolor{##ccfaff}{#1}");M("\\blueB","\\textcolor{##80f6ff}{#1}");M("\\blueC","\\textcolor{##63d9ea}{#1}");M("\\blueD","\\textcolor{##11accd}{#1}");M("\\blueE","\\textcolor{##0c7f99}{#1}");M("\\tealA","\\textcolor{##94fff5}{#1}");M("\\tealB","\\textcolor{##26edd5}{#1}");M("\\tealC","\\textcolor{##01d1c1}{#1}");M("\\tealD","\\textcolor{##01a995}{#1}");M("\\tealE","\\textcolor{##208170}{#1}");M("\\greenA","\\textcolor{##b6ffb0}{#1}");M("\\greenB","\\textcolor{##8af281}{#1}");M("\\greenC","\\textcolor{##74cf70}{#1}");M("\\greenD","\\textcolor{##1fab54}{#1}");M("\\greenE","\\textcolor{##0d923f}{#1}");M("\\goldA","\\textcolor{##ffd0a9}{#1}");M("\\goldB","\\textcolor{##ffbb71}{#1}");M("\\goldC","\\textcolor{##ff9c39}{#1}");M("\\goldD","\\textcolor{##e07d10}{#1}");M("\\goldE","\\textcolor{##a75a05}{#1}");M("\\redA","\\textcolor{##fca9a9}{#1}");M("\\redB","\\textcolor{##ff8482}{#1}");M("\\redC","\\textcolor{##f9685d}{#1}");M("\\redD","\\textcolor{##e84d39}{#1}");M("\\redE","\\textcolor{##bc2612}{#1}");M("\\maroonA","\\textcolor{##ffbde0}{#1}");M("\\maroonB","\\textcolor{##ff92c6}{#1}");M("\\maroonC","\\textcolor{##ed5fa6}{#1}");M("\\maroonD","\\textcolor{##ca337c}{#1}");M("\\maroonE","\\textcolor{##9e034e}{#1}");M("\\purpleA","\\textcolor{##ddd7ff}{#1}");M("\\purpleB","\\textcolor{##c6b9fc}{#1}");M("\\purpleC","\\textcolor{##aa87ff}{#1}");M("\\purpleD","\\textcolor{##7854ab}{#1}");M("\\purpleE","\\textcolor{##543b78}{#1}");M("\\mintA","\\textcolor{##f5f9e8}{#1}");M("\\mintB","\\textcolor{##edf2df}{#1}");M("\\mintC","\\textcolor{##e0e5cc}{#1}");M("\\grayA","\\textcolor{##f6f7f7}{#1}");M("\\grayB","\\textcolor{##f0f1f2}{#1}");M("\\grayC","\\textcolor{##e3e5e6}{#1}");M("\\grayD","\\textcolor{##d6d8da}{#1}");M("\\grayE","\\textcolor{##babec2}{#1}");M("\\grayF","\\textcolor{##888d93}{#1}");M("\\grayG","\\textcolor{##626569}{#1}");M("\\grayH","\\textcolor{##3b3e40}{#1}");M("\\grayI","\\textcolor{##21242c}{#1}");M("\\kaBlue","\\textcolor{##314453}{#1}");M("\\kaGreen","\\textcolor{##71B307}{#1}");var rR={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class yoe{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new goe(voe,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new eE(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new ua("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,o=0,s=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++o;else if(a.text==="}"){if(--o,o===-1)throw new me("Extra }",a)}else if(a.text==="EOF")throw new me("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",a);if(t&&r)if((o===0||o===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(o!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new me("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new me("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if(l.text==="#"){if(s===0)throw new me("Incomplete placeholder at end of macro body",l);if(l=a[--s],l.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(l.text))a.splice(s,2,...o[+l.text-1]);else throw new me("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new ua(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var o=i.replace(/##/g,"");o.indexOf("#"+(a+1))!==-1;)++a;for(var s=new eE(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:a};return u}return i}isDefined(t){return this.macros.has(t)||Bo.hasOwnProperty(t)||Bt.math.hasOwnProperty(t)||Bt.text.hasOwnProperty(t)||rR.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Bo.hasOwnProperty(t)&&!Bo[t].primitive}}var rE=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,zd=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),r4={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},iE={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let iR=class M2{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new yoe(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new me("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new ua("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(M2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Bo[i.text]&&Bo[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=Bt[this.mode][n].group,l=Rr.range(t),c;if(oae.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};o=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(fO(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:Rr.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;d{uu(r,"element",a=>{const o=a.properties&&Array.isArray(a.properties.className)?a.properties.className:[],s=o.includes("math-inline"),l=o.includes("math-display");if(!s&&!l)return;const c=T2(a,{whitespace:"pre"});let u;try{u=aE.renderToString(c,cE({},t,{displayMode:l,throwOnError:!0}))}catch(f){const h=f,m=n?"fail":"message",g=[Foe,h.name.toLowerCase()].join(":");if(i[m](h.message,a.position,g),h.name!=="ParseError"){a.children=[{type:"element",tagName:"span",properties:{className:["katex-error"],title:String(h),style:"color:"+(t.errorColor||"#cc0000")},children:[{type:"text",value:c}]}];return}u=aE.renderToString(c,cE({},t,{displayMode:l,throwOnError:!1,strict:"ignore"}))}const d=Poe(u,{fragment:!0});a.children=d.children})}}function zoe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Uoe={}.hasOwnProperty,fR=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=np(i.ignore||[]),s=joe(a);let l=-1;for(;++l0?{type:"text",value:R}:void 0),R!==!1&&(E!==O&&T.push({type:"text",value:d.value.slice(E,O)}),Array.isArray(R)?T.push(...R):R&&T.push(R),E=O+C[0].length,v=!0),!m.global)break;C=m.exec(d.value)}return v?(Ee}function Hoe(e){fR(e,/\r?\n|\r/g,Goe)}function Goe(){return{type:"break"}}function Voe(){return Hoe}const Koe={tokenize:Zoe,partial:!0},hR={tokenize:Joe,partial:!0},mR={tokenize:ese,partial:!0},pR={tokenize:tse,partial:!0},Woe={tokenize:nse,partial:!0},gR={tokenize:Xoe,previous:yR},vR={tokenize:Qoe,previous:bR},fo={tokenize:Yoe,previous:ER},Ea={},qoe={text:Ea};let Ts=48;for(;Ts<123;)Ea[Ts]=fo,Ts++,Ts===58?Ts=65:Ts===91&&(Ts=97);Ea[43]=fo;Ea[45]=fo;Ea[46]=fo;Ea[95]=fo;Ea[72]=[fo,vR];Ea[104]=[fo,vR];Ea[87]=[fo,gR];Ea[119]=[fo,gR];function Yoe(e,t,n){const r=this;let i,a;return o;function o(d){return!D2(d)||!ER.call(r,r.previous)||b8(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return D2(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(Woe,u,c)(d):d===45||d===95||qn(d)?(a=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return a&&i&&Jn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Xoe(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!yR.call(r,r.previous)||b8(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Koe,e.attempt(hR,e.attempt(mR,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Qoe(e,t,n){const r=this;let i="",a=!1;return o;function o(d){return(d===72||d===104)&&bR.call(r,r.previous)&&!b8(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Jn(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?c:(a=!0,l)):n(d)}function c(d){return d===null||Vh(d)||Mt(d)||al(d)||Jm(d)?n(d):e.attempt(hR,e.attempt(mR,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Zoe(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function Joe(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(pR,l,s)(c):c===null||Mt(c)||al(c)||c!==45&&Jm(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function ese(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const rse={tokenize:dse,partial:!0};function ise(){return{document:{[91]:{tokenize:lse,continuation:{tokenize:cse},exit:use}},text:{[91]:{tokenize:sse},[93]:{add:"after",tokenize:ase,resolveTo:ose}}}}function ase(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=Di(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function ose(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function sse(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||Mt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Di(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Mt(d)||(o=!0),a++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function lse(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(m)}function u(m){if(o>999||m===93&&!s||m===null||m===91||Mt(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return a=Di(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Mt(m)||(s=!0),o++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),o++,u):u(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),lt(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function cse(e,t,n){return e.check($0,t,e.attempt(rse,t,n))}function use(e){e.exit("gfmFootnoteDefinition")}function dse(e,t,n){const r=this;return lt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function fse(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let l=-1;for(;++l1?l(m):(o.consume(m),d++,h);if(d<2&&!n)return l(m);const E=o.exit("strikethroughSequenceTemporary"),p=Kh(m);return E._open=!p||p===2&&!!g,E._close=!g||g===2&&!!p,s(m)}}}class hse{constructor(){this.map=[]}add(t,n,r){mse(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function mse(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const K=r.events[X][1].type;if(K==="lineEnding"||K==="linePrefix")X--;else break}const Z=X>-1?r.events[X][1].type:null,Q=Z==="tableHead"||Z==="tableRow"?N:l;return Q===N&&r.parser.lazy[r.now().line]?n(L):Q(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(o=!0,a+=1),u(L)}function u(L){return L===null?n(L):Be(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),h):n(L):ut(L)?lt(e,u,"whitespace")(L):(a+=1,o&&(o=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||Mt(L)?(e.exit("data"),u(L)):(e.consume(L),L===92?f:d)}function f(L){return L===92||L===124?(e.consume(L),d):d(L)}function h(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),o=!1,ut(L)?lt(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):m(L))}function m(L){return L===45||L===58?E(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),g):O(L)}function g(L){return ut(L)?lt(e,E,"whitespace")(L):E(L)}function E(L){return L===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),p):L===45?(a+=1,p(L)):L===null||Be(L)?C(L):O(L)}function p(L){return L===45?(e.enter("tableDelimiterFiller"),v(L)):O(L)}function v(L){return L===45?(e.consume(L),v):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(L))}function T(L){return ut(L)?lt(e,C,"whitespace")(L):C(L)}function C(L){return L===124?m(L):L===null||Be(L)?!o||i!==a?O(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):O(L)}function O(L){return n(L)}function N(L){return e.enter("tableRow"),R(L)}function R(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),R):L===null||Be(L)?(e.exit("tableRow"),t(L)):ut(L)?lt(e,R,"whitespace")(L):(e.enter("data"),D(L))}function D(L){return L===null||L===124||Mt(L)?(e.exit("data"),R(L)):(e.consume(L),L===92?I:D)}function I(L){return L===92||L===124?(e.consume(L),D):D(L)}}function yse(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const f=new hse;for(;++nn[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Yl(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function fE(e,t,n,r,i){const a=[],o=Yl(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bse={tokenize:xse},Ese={text:{[91]:bse}};function xse(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Mt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Be(l)?t(l):ut(l)?e.check({tokenize:Tse},t,n)(l):n(l)}}function Tse(e,t,n){return lt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function _se(e){return GN([qoe,ise(),fse(e),gse,Ese])}function hE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const i4="phrasing",a4=["autolink","link","image","label"],wse={transforms:[Rse],enter:{literalAutolink:Cse,literalAutolinkEmail:o4,literalAutolinkHttp:o4,literalAutolinkWww:o4},exit:{literalAutolink:Ose,literalAutolinkEmail:kse,literalAutolinkHttp:Ase,literalAutolinkWww:Nse}},Sse={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i4,notInConstruct:a4},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i4,notInConstruct:a4},{character:":",before:"[ps]",after:"\\/",inConstruct:i4,notInConstruct:a4}]};function Cse(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function o4(e){this.config.enter.autolinkProtocol.call(this,e)}function Ase(e){this.config.exit.autolinkProtocol.call(this,e)}function Nse(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function kse(e){this.config.exit.autolinkEmail.call(this,e)}function Ose(e){this.exit(e)}function Rse(e){fR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mse],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ise]],{ignore:["link","linkReference"]})}function Mse(e,t,n,r,i){let a="";if(!xR(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Lse(n)))return!1;const o=Dse(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Ise(e,t,n,r){return!xR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Lse(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Dse(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=hE(e,"(");let a=hE(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function xR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||al(n)||Jm(n))&&(!t||n!==47)}function TR(e){return e.label||!e.identifier?e.label||"":tk(e.identifier)}function Pse(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s `}return` -`}const Sse=/\r?\n|\r/g;function Cse(e,t){const n=[];let r=0,i=0,a;for(;a=Sse.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function d6(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ase(e,t){return aE(e,t.inConstruct,!0)&&!aE(e,t.notInConstruct,!1)}function aE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||u+10?" ":"")),i.shift(4),a+=i.move(Cse(_se(e,n,i.current()),Use)),o(),a}function Use(e,t,n){return t===0?e:(n?"":" ")+e}function mR(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&(s==="\r"||s===` -`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Hse=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];pR.peek=Wse;const jse={canContainEols:["delete"],enter:{strikethrough:Vse},exit:{strikethrough:Kse}},Gse={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hse}],handlers:{delete:pR}};function Vse(e){this.enter({type:"delete",children:[]},e)}function Kse(e){this.exit(e)}function pR(e,t,n,r){const i=R0(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=mR(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Wse(){return"~"}gR.peek=qse;function gR(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++al&&(l=e[c].length);++bs[b])&&(s[b]=v)}m.push(p)}a[c]=m,o[c]=g}let u=-1;if(typeof n=="object"&&"length"in n)for(;++us[u]&&(s[u]=p),f[u]=p),d[u]=v}a.splice(1,0,d),o.splice(1,0,f),c=-1;const h=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function ele(e){this.exit(e),this.setData("inTable")}function tle(e){this.enter({type:"tableRow",children:[]},e)}function t4(e){this.exit(e)}function lE(e){this.enter({type:"tableCell",children:[]},e)}function nle(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,rle));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function rle(e,t){return t==="|"?t:e}function ile(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:l,inlineCode:f}};function o(h,m,g,b){return c(u(h,g,b),h.align)}function s(h,m,g,b){const p=d(h,g,b),v=c([p]);return v.slice(0,v.indexOf(` -`))}function l(h,m,g,b){const p=g.enter("tableCell"),v=g.enter("phrasing"),T=mR(h,g,{...b,before:a,after:a});return v(),p(),T}function c(h,m){return Yse(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(h,m,g){const b=h.children;let p=-1;const v=[],T=m.enter("table");for(;++p-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,h){return f?(h?"":" ".repeat(o))+d:(h?a:a+" ".repeat(o-a.length))+d}}const lle={exit:{taskListCheckValueChecked:cE,taskListCheckValueUnchecked:cE,paragraph:ule}},cle={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dle}};function cE(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function ule(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++ao&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function _le(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.meta=l}function r(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c,this.setData("mathFlowInside")}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},l),this.buffer()}function o(l){const c=this.resume(),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function wle(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,o,s,l){const c=a.value||"",u=R0(l),d="$".repeat(Math.max(xle(c,"$")+1,2)),f=s.enter("mathFlow");let h=u.move(d);if(a.meta){const m=s.enter("mathFlowMeta");h+=u.move(f6(s,a.meta,{before:h,after:` +`}const Fse=/\r?\n|\r/g;function Bse(e,t){const n=[];let r=0,i=0,a;for(;a=Fse.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function E8(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function zse(e,t){return mE(e,t.inConstruct,!0)&&!mE(e,t.notInConstruct,!1)}function mE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||u+10?" ":"")),i.shift(4),a+=i.move(Bse(Pse(e,n,i.current()),ele)),o(),a}function ele(e,t,n){return t===0?e:(n?"":" ")+e}function wR(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++o0&&(s==="\r"||s===` +`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const tle=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];SR.peek=ole;const nle={canContainEols:["delete"],enter:{strikethrough:ile},exit:{strikethrough:ale}},rle={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tle}],handlers:{delete:SR}};function ile(e){this.enter({type:"delete",children:[]},e)}function ale(e){this.exit(e)}function SR(e,t,n,r){const i=G0(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=wR(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function ole(){return"~"}CR.peek=sle;function CR(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++al&&(l=e[c].length);++Es[E])&&(s[E]=v)}m.push(p)}a[c]=m,o[c]=g}let u=-1;if(typeof n=="object"&&"length"in n)for(;++us[u]&&(s[u]=p),f[u]=p),d[u]=v}a.splice(1,0,d),o.splice(1,0,f),c=-1;const h=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function hle(e){this.exit(e),this.setData("inTable")}function mle(e){this.enter({type:"tableRow",children:[]},e)}function s4(e){this.exit(e)}function vE(e){this.enter({type:"tableCell",children:[]},e)}function ple(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,gle));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function gle(e,t){return t==="|"?t:e}function vle(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:l,inlineCode:f}};function o(h,m,g,E){return c(u(h,g,E),h.align)}function s(h,m,g,E){const p=d(h,g,E),v=c([p]);return v.slice(0,v.indexOf(` +`))}function l(h,m,g,E){const p=g.enter("tableCell"),v=g.enter("phrasing"),T=wR(h,g,{...E,before:a,after:a});return v(),p(),T}function c(h,m){return lle(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(h,m,g){const E=h.children;let p=-1;const v=[],T=m.enter("table");for(;++p-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,f,h){return f?(h?"":" ".repeat(o))+d:(h?a:a+" ".repeat(o-a.length))+d}}const xle={exit:{taskListCheckValueChecked:yE,taskListCheckValueUnchecked:yE,paragraph:_le}},Tle={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wle}};function yE(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function _le(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++ao&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Ple(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(l){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.meta=l}function r(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c,this.setData("mathFlowInside")}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},l),this.buffer()}function o(l){const c=this.resume(),u=this.exit(l);u.value=c,u.data.hChildren[0].value=c}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function $le(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,o,s,l){const c=a.value||"",u=G0(l),d="$".repeat(Math.max(Dle(c,"$")+1,2)),f=s.enter("mathFlow");let h=u.move(d);if(a.meta){const m=s.enter("mathFlowMeta");h+=u.move(x8(s,a.meta,{before:h,after:` `,encode:["$"],...u.current()})),m()}return h+=u.move(` `),c&&(h+=u.move(c+` -`)),h+=u.move(d),f(),h}function r(a,o,s){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let d=-1;for(;++d=55296&&e<=57343};zi.isSurrogatePair=function(e){return e>=56320&&e<=57343};zi.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};zi.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};zi.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Cle.indexOf(e)>-1};var h6={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Vl=zi,n4=h6,Es=Vl.CODE_POINTS,Ale=65536;let Nle=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ale}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Vl.isSurrogatePair(n))return this.pos++,this._addGap(),Vl.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Es.EOF;return this._err(n4.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Es.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Es.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Es.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Es.LINE_FEED):(this.skipNextNewLine=!1,Vl.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Es.LINE_FEED||t===Es.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Vl.isControlCodePoint(t)?this._err(n4.controlCharacterInInputStream):Vl.isUndefinedCodePoint(t)&&this._err(n4.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var kle=Nle,Ole=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Rle=kle,Nt=zi,zs=Ole,se=h6,U=Nt.CODE_POINTS,Ts=Nt.CODE_POINT_SEQUENCES,Ile={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},vR=1,yR=2,bR=4,Mle=vR|yR|bR,ct="DATA_STATE",Kl="RCDATA_STATE",Uu="RAWTEXT_STATE",Ra="SCRIPT_DATA_STATE",ER="PLAINTEXT_STATE",dE="TAG_OPEN_STATE",fE="END_TAG_OPEN_STATE",r4="TAG_NAME_STATE",hE="RCDATA_LESS_THAN_SIGN_STATE",mE="RCDATA_END_TAG_OPEN_STATE",pE="RCDATA_END_TAG_NAME_STATE",gE="RAWTEXT_LESS_THAN_SIGN_STATE",vE="RAWTEXT_END_TAG_OPEN_STATE",yE="RAWTEXT_END_TAG_NAME_STATE",bE="SCRIPT_DATA_LESS_THAN_SIGN_STATE",EE="SCRIPT_DATA_END_TAG_OPEN_STATE",TE="SCRIPT_DATA_END_TAG_NAME_STATE",xE="SCRIPT_DATA_ESCAPE_START_STATE",_E="SCRIPT_DATA_ESCAPE_START_DASH_STATE",yi="SCRIPT_DATA_ESCAPED_STATE",wE="SCRIPT_DATA_ESCAPED_DASH_STATE",i4="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",kd="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",SE="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",CE="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",AE="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",wa="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",NE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",kE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Od="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",OE="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Gi="BEFORE_ATTRIBUTE_NAME_STATE",Rd="ATTRIBUTE_NAME_STATE",a4="AFTER_ATTRIBUTE_NAME_STATE",o4="BEFORE_ATTRIBUTE_VALUE_STATE",Id="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Md="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Ld="ATTRIBUTE_VALUE_UNQUOTED_STATE",s4="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",vo="SELF_CLOSING_START_TAG_STATE",Cu="BOGUS_COMMENT_STATE",RE="MARKUP_DECLARATION_OPEN_STATE",IE="COMMENT_START_STATE",ME="COMMENT_START_DASH_STATE",yo="COMMENT_STATE",LE="COMMENT_LESS_THAN_SIGN_STATE",DE="COMMENT_LESS_THAN_SIGN_BANG_STATE",PE="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",$E="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Dd="COMMENT_END_DASH_STATE",Pd="COMMENT_END_STATE",FE="COMMENT_END_BANG_STATE",BE="DOCTYPE_STATE",$d="BEFORE_DOCTYPE_NAME_STATE",Fd="DOCTYPE_NAME_STATE",zE="AFTER_DOCTYPE_NAME_STATE",UE="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",HE="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",l4="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",c4="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",u4="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",jE="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",GE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",VE="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Au="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Nu="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",d4="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Sa="BOGUS_DOCTYPE_STATE",Bd="CDATA_SECTION_STATE",KE="CDATA_SECTION_BRACKET_STATE",WE="CDATA_SECTION_END_STATE",Pl="CHARACTER_REFERENCE_STATE",qE="NAMED_CHARACTER_REFERENCE_STATE",YE="AMBIGUOS_AMPERSAND_STATE",XE="NUMERIC_CHARACTER_REFERENCE_STATE",QE="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",ZE="DECIMAL_CHARACTER_REFERENCE_START_STATE",JE="HEXADEMICAL_CHARACTER_REFERENCE_STATE",eT="DECIMAL_CHARACTER_REFERENCE_STATE",ku="NUMERIC_CHARACTER_REFERENCE_END_STATE";function zt(e){return e===U.SPACE||e===U.LINE_FEED||e===U.TABULATION||e===U.FORM_FEED}function o1(e){return e>=U.DIGIT_0&&e<=U.DIGIT_9}function bi(e){return e>=U.LATIN_CAPITAL_A&&e<=U.LATIN_CAPITAL_Z}function Os(e){return e>=U.LATIN_SMALL_A&&e<=U.LATIN_SMALL_Z}function _o(e){return Os(e)||bi(e)}function f4(e){return _o(e)||o1(e)}function TR(e){return e>=U.LATIN_CAPITAL_A&&e<=U.LATIN_CAPITAL_F}function xR(e){return e>=U.LATIN_SMALL_A&&e<=U.LATIN_SMALL_F}function Lle(e){return o1(e)||TR(e)||xR(e)}function Tf(e){return e+32}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function bo(e){return String.fromCharCode(Tf(e))}function tT(e,t){const n=zs[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=zs[a];if(ot)i=a-1;else return zs[a+n]}return-1}let mi=class ur{constructor(){this.preprocessor=new Rle,this.tokenQueue=[],this.allowCDATA=!1,this.state=ct,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:ur.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,l=n,c;for(;s0&&(l=this._consume(),i++),l===U.EOF){a=!1;break}if(c=t[s],l!==c&&(r||l!==Tf(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Ts.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(se.endTagWithAttributes),t.selfClosing&&this._err(se.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=ur.CHARACTER_TOKEN;zt(t)?n=ur.WHITESPACE_CHARACTER_TOKEN:t===U.NULL&&(n=ur.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,tn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=zs[i],o=a")):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.state=yi,this._emitChars(Nt.REPLACEMENT_CHARACTER)):t===U.EOF?(this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=yi,this._emitCodePoint(t))}[kd](t){t===U.SOLIDUS?(this.tempBuff=[],this.state=SE):_o(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(AE)):(this._emitChars("<"),this._reconsumeInState(yi))}[SE](t){_o(t)?(this._createEndTagToken(),this._reconsumeInState(CE)):(this._emitChars("")):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.state=wa,this._emitChars(Nt.REPLACEMENT_CHARACTER)):t===U.EOF?(this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=wa,this._emitCodePoint(t))}[Od](t){t===U.SOLIDUS?(this.tempBuff=[],this.state=OE,this._emitChars("/")):this._reconsumeInState(wa)}[OE](t){zt(t)||t===U.SOLIDUS||t===U.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?yi:wa,this._emitCodePoint(t)):bi(t)?(this.tempBuff.push(Tf(t)),this._emitCodePoint(t)):Os(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(wa)}[Gi](t){zt(t)||(t===U.SOLIDUS||t===U.GREATER_THAN_SIGN||t===U.EOF?this._reconsumeInState(a4):t===U.EQUALS_SIGN?(this._err(se.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Rd):(this._createAttr(""),this._reconsumeInState(Rd)))}[Rd](t){zt(t)||t===U.SOLIDUS||t===U.GREATER_THAN_SIGN||t===U.EOF?(this._leaveAttrName(a4),this._unconsume()):t===U.EQUALS_SIGN?this._leaveAttrName(o4):bi(t)?this.currentAttr.name+=bo(t):t===U.QUOTATION_MARK||t===U.APOSTROPHE||t===U.LESS_THAN_SIGN?(this._err(se.unexpectedCharacterInAttributeName),this.currentAttr.name+=tn(t)):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.name+=Nt.REPLACEMENT_CHARACTER):this.currentAttr.name+=tn(t)}[a4](t){zt(t)||(t===U.SOLIDUS?this.state=vo:t===U.EQUALS_SIGN?this.state=o4:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Rd)))}[o4](t){zt(t)||(t===U.QUOTATION_MARK?this.state=Id:t===U.APOSTROPHE?this.state=Md:t===U.GREATER_THAN_SIGN?(this._err(se.missingAttributeValue),this.state=ct,this._emitCurrentToken()):this._reconsumeInState(Ld))}[Id](t){t===U.QUOTATION_MARK?this.state=s4:t===U.AMPERSAND?(this.returnState=Id,this.state=Pl):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tn(t)}[Md](t){t===U.APOSTROPHE?this.state=s4:t===U.AMPERSAND?(this.returnState=Md,this.state=Pl):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tn(t)}[Ld](t){zt(t)?this._leaveAttrValue(Gi):t===U.AMPERSAND?(this.returnState=Ld,this.state=Pl):t===U.GREATER_THAN_SIGN?(this._leaveAttrValue(ct),this._emitCurrentToken()):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=Nt.REPLACEMENT_CHARACTER):t===U.QUOTATION_MARK||t===U.APOSTROPHE||t===U.LESS_THAN_SIGN||t===U.EQUALS_SIGN||t===U.GRAVE_ACCENT?(this._err(se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=tn(t)):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=tn(t)}[s4](t){zt(t)?this._leaveAttrValue(Gi):t===U.SOLIDUS?this._leaveAttrValue(vo):t===U.GREATER_THAN_SIGN?(this._leaveAttrValue(ct),this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._err(se.missingWhitespaceBetweenAttributes),this._reconsumeInState(Gi))}[vo](t){t===U.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._err(se.unexpectedSolidusInTag),this._reconsumeInState(Gi))}[Cu](t){t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.data+=Nt.REPLACEMENT_CHARACTER):this.currentToken.data+=tn(t)}[RE](t){this._consumeSequenceIfMatch(Ts.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=IE):this._consumeSequenceIfMatch(Ts.DOCTYPE_STRING,t,!1)?this.state=BE:this._consumeSequenceIfMatch(Ts.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Bd:(this._err(se.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Cu):this._ensureHibernation()||(this._err(se.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Cu))}[IE](t){t===U.HYPHEN_MINUS?this.state=ME:t===U.GREATER_THAN_SIGN?(this._err(se.abruptClosingOfEmptyComment),this.state=ct,this._emitCurrentToken()):this._reconsumeInState(yo)}[ME](t){t===U.HYPHEN_MINUS?this.state=Pd:t===U.GREATER_THAN_SIGN?(this._err(se.abruptClosingOfEmptyComment),this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(yo))}[yo](t){t===U.HYPHEN_MINUS?this.state=Dd:t===U.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=LE):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.data+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=tn(t)}[LE](t){t===U.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=DE):t===U.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(yo)}[DE](t){t===U.HYPHEN_MINUS?this.state=PE:this._reconsumeInState(yo)}[PE](t){t===U.HYPHEN_MINUS?this.state=$E:this._reconsumeInState(Dd)}[$E](t){t!==U.GREATER_THAN_SIGN&&t!==U.EOF&&this._err(se.nestedComment),this._reconsumeInState(Pd)}[Dd](t){t===U.HYPHEN_MINUS?this.state=Pd:t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(yo))}[Pd](t){t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EXCLAMATION_MARK?this.state=FE:t===U.HYPHEN_MINUS?this.currentToken.data+="-":t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(yo))}[FE](t){t===U.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Dd):t===U.GREATER_THAN_SIGN?(this._err(se.incorrectlyClosedComment),this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(yo))}[BE](t){zt(t)?this.state=$d:t===U.GREATER_THAN_SIGN?this._reconsumeInState($d):t===U.EOF?(this._err(se.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingWhitespaceBeforeDoctypeName),this._reconsumeInState($d))}[$d](t){zt(t)||(bi(t)?(this._createDoctypeToken(bo(t)),this.state=Fd):t===U.NULL?(this._err(se.unexpectedNullCharacter),this._createDoctypeToken(Nt.REPLACEMENT_CHARACTER),this.state=Fd):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(tn(t)),this.state=Fd))}[Fd](t){zt(t)?this.state=zE:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):bi(t)?this.currentToken.name+=bo(t):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.name+=Nt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=tn(t)}[zE](t){zt(t)||(t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Ts.PUBLIC_STRING,t,!1)?this.state=UE:this._consumeSequenceIfMatch(Ts.SYSTEM_STRING,t,!1)?this.state=GE:this._ensureHibernation()||(this._err(se.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[UE](t){zt(t)?this.state=HE:t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=l4):t===U.APOSTROPHE?(this._err(se.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=c4):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa))}[HE](t){zt(t)||(t===U.QUOTATION_MARK?(this.currentToken.publicId="",this.state=l4):t===U.APOSTROPHE?(this.currentToken.publicId="",this.state=c4):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[l4](t){t===U.QUOTATION_MARK?this.state=u4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.publicId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tn(t)}[c4](t){t===U.APOSTROPHE?this.state=u4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.publicId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=tn(t)}[u4](t){zt(t)?this.state=jE:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Nu):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa))}[jE](t){zt(t)||(t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this.currentToken.systemId="",this.state=Nu):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[GE](t){zt(t)?this.state=VE:t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Nu):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa))}[VE](t){zt(t)||(t===U.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Au):t===U.APOSTROPHE?(this.currentToken.systemId="",this.state=Nu):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Sa)))}[Au](t){t===U.QUOTATION_MARK?this.state=d4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.systemId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tn(t)}[Nu](t){t===U.APOSTROPHE?this.state=d4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.systemId+=Nt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=tn(t)}[d4](t){zt(t)||(t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Sa)))}[Sa](t){t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.NULL?this._err(se.unexpectedNullCharacter):t===U.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Bd](t){t===U.RIGHT_SQUARE_BRACKET?this.state=KE:t===U.EOF?(this._err(se.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[KE](t){t===U.RIGHT_SQUARE_BRACKET?this.state=WE:(this._emitChars("]"),this._reconsumeInState(Bd))}[WE](t){t===U.GREATER_THAN_SIGN?this.state=ct:t===U.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Bd))}[Pl](t){this.tempBuff=[U.AMPERSAND],t===U.NUMBER_SIGN?(this.tempBuff.push(t),this.state=XE):f4(t)?this._reconsumeInState(qE):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[qE](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[U.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===U.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(se.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=YE}[YE](t){f4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=tn(t):this._emitCodePoint(t):(t===U.SEMICOLON&&this._err(se.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[XE](t){this.charRefCode=0,t===U.LATIN_SMALL_X||t===U.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=QE):this._reconsumeInState(ZE)}[QE](t){Lle(t)?this._reconsumeInState(JE):(this._err(se.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ZE](t){o1(t)?this._reconsumeInState(eT):(this._err(se.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[JE](t){TR(t)?this.charRefCode=this.charRefCode*16+t-55:xR(t)?this.charRefCode=this.charRefCode*16+t-87:o1(t)?this.charRefCode=this.charRefCode*16+t-48:t===U.SEMICOLON?this.state=ku:(this._err(se.missingSemicolonAfterCharacterReference),this._reconsumeInState(ku))}[eT](t){o1(t)?this.charRefCode=this.charRefCode*10+t-48:t===U.SEMICOLON?this.state=ku:(this._err(se.missingSemicolonAfterCharacterReference),this._reconsumeInState(ku))}[ku](){if(this.charRefCode===U.NULL)this._err(se.nullCharacterReference),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(se.characterReferenceOutsideUnicodeRange),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(Nt.isSurrogate(this.charRefCode))this._err(se.surrogateCharacterReference),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(Nt.isUndefinedCodePoint(this.charRefCode))this._err(se.noncharacterCharacterReference);else if(Nt.isControlCodePoint(this.charRefCode)||this.charRefCode===U.CARRIAGE_RETURN){this._err(se.controlCharacterReference);const t=Ile[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};mi.CHARACTER_TOKEN="CHARACTER_TOKEN";mi.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";mi.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";mi.START_TAG_TOKEN="START_TAG_TOKEN";mi.END_TAG_TOKEN="END_TAG_TOKEN";mi.COMMENT_TOKEN="COMMENT_TOKEN";mi.DOCTYPE_TOKEN="DOCTYPE_TOKEN";mi.EOF_TOKEN="EOF_TOKEN";mi.HIBERNATION_TOKEN="HIBERNATION_TOKEN";mi.MODE={DATA:ct,RCDATA:Kl,RAWTEXT:Uu,SCRIPT_DATA:Ra,PLAINTEXT:ER};mi.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var gp=mi,Ui={};const h4=Ui.NAMESPACES={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/"};Ui.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Ui.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ve=Ui.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Ui.SPECIAL_ELEMENTS={[h4.HTML]:{[ve.ADDRESS]:!0,[ve.APPLET]:!0,[ve.AREA]:!0,[ve.ARTICLE]:!0,[ve.ASIDE]:!0,[ve.BASE]:!0,[ve.BASEFONT]:!0,[ve.BGSOUND]:!0,[ve.BLOCKQUOTE]:!0,[ve.BODY]:!0,[ve.BR]:!0,[ve.BUTTON]:!0,[ve.CAPTION]:!0,[ve.CENTER]:!0,[ve.COL]:!0,[ve.COLGROUP]:!0,[ve.DD]:!0,[ve.DETAILS]:!0,[ve.DIR]:!0,[ve.DIV]:!0,[ve.DL]:!0,[ve.DT]:!0,[ve.EMBED]:!0,[ve.FIELDSET]:!0,[ve.FIGCAPTION]:!0,[ve.FIGURE]:!0,[ve.FOOTER]:!0,[ve.FORM]:!0,[ve.FRAME]:!0,[ve.FRAMESET]:!0,[ve.H1]:!0,[ve.H2]:!0,[ve.H3]:!0,[ve.H4]:!0,[ve.H5]:!0,[ve.H6]:!0,[ve.HEAD]:!0,[ve.HEADER]:!0,[ve.HGROUP]:!0,[ve.HR]:!0,[ve.HTML]:!0,[ve.IFRAME]:!0,[ve.IMG]:!0,[ve.INPUT]:!0,[ve.LI]:!0,[ve.LINK]:!0,[ve.LISTING]:!0,[ve.MAIN]:!0,[ve.MARQUEE]:!0,[ve.MENU]:!0,[ve.META]:!0,[ve.NAV]:!0,[ve.NOEMBED]:!0,[ve.NOFRAMES]:!0,[ve.NOSCRIPT]:!0,[ve.OBJECT]:!0,[ve.OL]:!0,[ve.P]:!0,[ve.PARAM]:!0,[ve.PLAINTEXT]:!0,[ve.PRE]:!0,[ve.SCRIPT]:!0,[ve.SECTION]:!0,[ve.SELECT]:!0,[ve.SOURCE]:!0,[ve.STYLE]:!0,[ve.SUMMARY]:!0,[ve.TABLE]:!0,[ve.TBODY]:!0,[ve.TD]:!0,[ve.TEMPLATE]:!0,[ve.TEXTAREA]:!0,[ve.TFOOT]:!0,[ve.TH]:!0,[ve.THEAD]:!0,[ve.TITLE]:!0,[ve.TR]:!0,[ve.TRACK]:!0,[ve.UL]:!0,[ve.WBR]:!0,[ve.XMP]:!0},[h4.MATHML]:{[ve.MI]:!0,[ve.MO]:!0,[ve.MN]:!0,[ve.MS]:!0,[ve.MTEXT]:!0,[ve.ANNOTATION_XML]:!0},[h4.SVG]:{[ve.TITLE]:!0,[ve.FOREIGN_OBJECT]:!0,[ve.DESC]:!0}};const _R=Ui,ye=_R.TAG_NAMES,kt=_R.NAMESPACES;function nT(e){switch(e.length){case 1:return e===ye.P;case 2:return e===ye.RB||e===ye.RP||e===ye.RT||e===ye.DD||e===ye.DT||e===ye.LI;case 3:return e===ye.RTC;case 6:return e===ye.OPTION;case 8:return e===ye.OPTGROUP}return!1}function Dle(e){switch(e.length){case 1:return e===ye.P;case 2:return e===ye.RB||e===ye.RP||e===ye.RT||e===ye.DD||e===ye.DT||e===ye.LI||e===ye.TD||e===ye.TH||e===ye.TR;case 3:return e===ye.RTC;case 5:return e===ye.TBODY||e===ye.TFOOT||e===ye.THEAD;case 6:return e===ye.OPTION;case 7:return e===ye.CAPTION;case 8:return e===ye.OPTGROUP||e===ye.COLGROUP}return!1}function zd(e,t){switch(e.length){case 2:if(e===ye.TD||e===ye.TH)return t===kt.HTML;if(e===ye.MI||e===ye.MO||e===ye.MN||e===ye.MS)return t===kt.MATHML;break;case 4:if(e===ye.HTML)return t===kt.HTML;if(e===ye.DESC)return t===kt.SVG;break;case 5:if(e===ye.TABLE)return t===kt.HTML;if(e===ye.MTEXT)return t===kt.MATHML;if(e===ye.TITLE)return t===kt.SVG;break;case 6:return(e===ye.APPLET||e===ye.OBJECT)&&t===kt.HTML;case 7:return(e===ye.CAPTION||e===ye.MARQUEE)&&t===kt.HTML;case 8:return e===ye.TEMPLATE&&t===kt.HTML;case 13:return e===ye.FOREIGN_OBJECT&&t===kt.SVG;case 14:return e===ye.ANNOTATION_XML&&t===kt.MATHML}return!1}let Ple=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===ye.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===kt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===kt.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ye.H1||t===ye.H2||t===ye.H3||t===ye.H4||t===ye.H5||t===ye.H6&&n===kt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ye.TD||t===ye.TH&&n===kt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==ye.TABLE&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==ye.TBODY&&this.currentTagName!==ye.TFOOT&&this.currentTagName!==ye.THEAD&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==ye.TR&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==kt.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===ye.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===ye.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===kt.HTML)return!0;if(zd(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===ye.H1||n===ye.H2||n===ye.H3||n===ye.H4||n===ye.H5||n===ye.H6)&&r===kt.HTML)return!0;if(zd(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===kt.HTML)return!0;if((r===ye.UL||r===ye.OL)&&i===kt.HTML||zd(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===kt.HTML)return!0;if(r===ye.BUTTON&&i===kt.HTML||zd(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===kt.HTML){if(r===t)return!0;if(r===ye.TABLE||r===ye.TEMPLATE||r===ye.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===kt.HTML){if(n===ye.TBODY||n===ye.THEAD||n===ye.TFOOT)return!0;if(n===ye.TABLE||n===ye.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===kt.HTML){if(r===t)return!0;if(r!==ye.OPTION&&r!==ye.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;nT(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Dle(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;nT(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var $le=Ple;const Ud=3;let m6=class wo{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=Ud){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===wo.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=Ud-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:wo.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:wo.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:wo.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===wo.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===wo.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===wo.ELEMENT_ENTRY&&r.element===t)return r}return null}};m6.MARKER_ENTRY="MARKER_ENTRY";m6.ELEMENT_ENTRY="ELEMENT_ENTRY";var Fle=m6;let wR=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};wR.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i=55296&&e<=57343};ji.isSurrogatePair=function(e){return e>=56320&&e<=57343};ji.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};ji.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};ji.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Ble.indexOf(e)>-1};var T8={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Xl=ji,l4=T8,_s=Xl.CODE_POINTS,zle=65536;let Ule=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=zle}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Xl.isSurrogatePair(n))return this.pos++,this._addGap(),Xl.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_s.EOF;return this._err(l4.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,_s.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===_s.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===_s.CARRIAGE_RETURN?(this.skipNextNewLine=!0,_s.LINE_FEED):(this.skipNextNewLine=!1,Xl.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===_s.LINE_FEED||t===_s.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Xl.isControlCodePoint(t)?this._err(l4.controlCharacterInInputStream):Xl.isUndefinedCodePoint(t)&&this._err(l4.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var jle=Ule,Hle=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Gle=jle,kt=ji,Us=Hle,se=T8,U=kt.CODE_POINTS,ws=kt.CODE_POINT_SEQUENCES,Vle={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},AR=1,NR=2,kR=4,Kle=AR|NR|kR,ct="DATA_STATE",Ql="RCDATA_STATE",Yu="RAWTEXT_STATE",Ia="SCRIPT_DATA_STATE",OR="PLAINTEXT_STATE",EE="TAG_OPEN_STATE",xE="END_TAG_OPEN_STATE",c4="TAG_NAME_STATE",TE="RCDATA_LESS_THAN_SIGN_STATE",_E="RCDATA_END_TAG_OPEN_STATE",wE="RCDATA_END_TAG_NAME_STATE",SE="RAWTEXT_LESS_THAN_SIGN_STATE",CE="RAWTEXT_END_TAG_OPEN_STATE",AE="RAWTEXT_END_TAG_NAME_STATE",NE="SCRIPT_DATA_LESS_THAN_SIGN_STATE",kE="SCRIPT_DATA_END_TAG_OPEN_STATE",OE="SCRIPT_DATA_END_TAG_NAME_STATE",RE="SCRIPT_DATA_ESCAPE_START_STATE",ME="SCRIPT_DATA_ESCAPE_START_DASH_STATE",xi="SCRIPT_DATA_ESCAPED_STATE",IE="SCRIPT_DATA_ESCAPED_DASH_STATE",u4="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",jd="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",LE="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",DE="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",PE="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Ca="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",$E="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",FE="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Hd="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",BE="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Ki="BEFORE_ATTRIBUTE_NAME_STATE",Gd="ATTRIBUTE_NAME_STATE",d4="AFTER_ATTRIBUTE_NAME_STATE",f4="BEFORE_ATTRIBUTE_VALUE_STATE",Vd="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Kd="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Wd="ATTRIBUTE_VALUE_UNQUOTED_STATE",h4="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Eo="SELF_CLOSING_START_TAG_STATE",Lu="BOGUS_COMMENT_STATE",zE="MARKUP_DECLARATION_OPEN_STATE",UE="COMMENT_START_STATE",jE="COMMENT_START_DASH_STATE",xo="COMMENT_STATE",HE="COMMENT_LESS_THAN_SIGN_STATE",GE="COMMENT_LESS_THAN_SIGN_BANG_STATE",VE="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",KE="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",qd="COMMENT_END_DASH_STATE",Yd="COMMENT_END_STATE",WE="COMMENT_END_BANG_STATE",qE="DOCTYPE_STATE",Xd="BEFORE_DOCTYPE_NAME_STATE",Qd="DOCTYPE_NAME_STATE",YE="AFTER_DOCTYPE_NAME_STATE",XE="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",QE="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",m4="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",p4="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",g4="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ZE="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",JE="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",ex="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Du="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Pu="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",v4="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Aa="BOGUS_DOCTYPE_STATE",Zd="CDATA_SECTION_STATE",tx="CDATA_SECTION_BRACKET_STATE",nx="CDATA_SECTION_END_STATE",Ul="CHARACTER_REFERENCE_STATE",rx="NAMED_CHARACTER_REFERENCE_STATE",ix="AMBIGUOS_AMPERSAND_STATE",ax="NUMERIC_CHARACTER_REFERENCE_STATE",ox="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",sx="DECIMAL_CHARACTER_REFERENCE_START_STATE",lx="HEXADEMICAL_CHARACTER_REFERENCE_STATE",cx="DECIMAL_CHARACTER_REFERENCE_STATE",$u="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ut(e){return e===U.SPACE||e===U.LINE_FEED||e===U.TABULATION||e===U.FORM_FEED}function m1(e){return e>=U.DIGIT_0&&e<=U.DIGIT_9}function Ti(e){return e>=U.LATIN_CAPITAL_A&&e<=U.LATIN_CAPITAL_Z}function Ms(e){return e>=U.LATIN_SMALL_A&&e<=U.LATIN_SMALL_Z}function Co(e){return Ms(e)||Ti(e)}function y4(e){return Co(e)||m1(e)}function RR(e){return e>=U.LATIN_CAPITAL_A&&e<=U.LATIN_CAPITAL_F}function MR(e){return e>=U.LATIN_SMALL_A&&e<=U.LATIN_SMALL_F}function Wle(e){return m1(e)||RR(e)||MR(e)}function Lf(e){return e+32}function nn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function To(e){return String.fromCharCode(Lf(e))}function ux(e,t){const n=Us[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=Us[a];if(ot)i=a-1;else return Us[a+n]}return-1}let vi=class dr{constructor(){this.preprocessor=new Gle,this.tokenQueue=[],this.allowCDATA=!1,this.state=ct,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:dr.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,l=n,c;for(;s0&&(l=this._consume(),i++),l===U.EOF){a=!1;break}if(c=t[s],l!==c&&(r||l!==Lf(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==ws.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(se.endTagWithAttributes),t.selfClosing&&this._err(se.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=dr.CHARACTER_TOKEN;Ut(t)?n=dr.WHITESPACE_CHARACTER_TOKEN:t===U.NULL&&(n=dr.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,nn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=Us[i],o=a")):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.state=xi,this._emitChars(kt.REPLACEMENT_CHARACTER)):t===U.EOF?(this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=xi,this._emitCodePoint(t))}[jd](t){t===U.SOLIDUS?(this.tempBuff=[],this.state=LE):Co(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(PE)):(this._emitChars("<"),this._reconsumeInState(xi))}[LE](t){Co(t)?(this._createEndTagToken(),this._reconsumeInState(DE)):(this._emitChars("")):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.state=Ca,this._emitChars(kt.REPLACEMENT_CHARACTER)):t===U.EOF?(this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ca,this._emitCodePoint(t))}[Hd](t){t===U.SOLIDUS?(this.tempBuff=[],this.state=BE,this._emitChars("/")):this._reconsumeInState(Ca)}[BE](t){Ut(t)||t===U.SOLIDUS||t===U.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?xi:Ca,this._emitCodePoint(t)):Ti(t)?(this.tempBuff.push(Lf(t)),this._emitCodePoint(t)):Ms(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ca)}[Ki](t){Ut(t)||(t===U.SOLIDUS||t===U.GREATER_THAN_SIGN||t===U.EOF?this._reconsumeInState(d4):t===U.EQUALS_SIGN?(this._err(se.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Gd):(this._createAttr(""),this._reconsumeInState(Gd)))}[Gd](t){Ut(t)||t===U.SOLIDUS||t===U.GREATER_THAN_SIGN||t===U.EOF?(this._leaveAttrName(d4),this._unconsume()):t===U.EQUALS_SIGN?this._leaveAttrName(f4):Ti(t)?this.currentAttr.name+=To(t):t===U.QUOTATION_MARK||t===U.APOSTROPHE||t===U.LESS_THAN_SIGN?(this._err(se.unexpectedCharacterInAttributeName),this.currentAttr.name+=nn(t)):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.name+=kt.REPLACEMENT_CHARACTER):this.currentAttr.name+=nn(t)}[d4](t){Ut(t)||(t===U.SOLIDUS?this.state=Eo:t===U.EQUALS_SIGN?this.state=f4:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(Gd)))}[f4](t){Ut(t)||(t===U.QUOTATION_MARK?this.state=Vd:t===U.APOSTROPHE?this.state=Kd:t===U.GREATER_THAN_SIGN?(this._err(se.missingAttributeValue),this.state=ct,this._emitCurrentToken()):this._reconsumeInState(Wd))}[Vd](t){t===U.QUOTATION_MARK?this.state=h4:t===U.AMPERSAND?(this.returnState=Vd,this.state=Ul):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=kt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=nn(t)}[Kd](t){t===U.APOSTROPHE?this.state=h4:t===U.AMPERSAND?(this.returnState=Kd,this.state=Ul):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=kt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=nn(t)}[Wd](t){Ut(t)?this._leaveAttrValue(Ki):t===U.AMPERSAND?(this.returnState=Wd,this.state=Ul):t===U.GREATER_THAN_SIGN?(this._leaveAttrValue(ct),this._emitCurrentToken()):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentAttr.value+=kt.REPLACEMENT_CHARACTER):t===U.QUOTATION_MARK||t===U.APOSTROPHE||t===U.LESS_THAN_SIGN||t===U.EQUALS_SIGN||t===U.GRAVE_ACCENT?(this._err(se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=nn(t)):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):this.currentAttr.value+=nn(t)}[h4](t){Ut(t)?this._leaveAttrValue(Ki):t===U.SOLIDUS?this._leaveAttrValue(Eo):t===U.GREATER_THAN_SIGN?(this._leaveAttrValue(ct),this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._err(se.missingWhitespaceBetweenAttributes),this._reconsumeInState(Ki))}[Eo](t){t===U.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInTag),this._emitEOFToken()):(this._err(se.unexpectedSolidusInTag),this._reconsumeInState(Ki))}[Lu](t){t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.data+=kt.REPLACEMENT_CHARACTER):this.currentToken.data+=nn(t)}[zE](t){this._consumeSequenceIfMatch(ws.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=UE):this._consumeSequenceIfMatch(ws.DOCTYPE_STRING,t,!1)?this.state=qE:this._consumeSequenceIfMatch(ws.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Zd:(this._err(se.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Lu):this._ensureHibernation()||(this._err(se.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Lu))}[UE](t){t===U.HYPHEN_MINUS?this.state=jE:t===U.GREATER_THAN_SIGN?(this._err(se.abruptClosingOfEmptyComment),this.state=ct,this._emitCurrentToken()):this._reconsumeInState(xo)}[jE](t){t===U.HYPHEN_MINUS?this.state=Yd:t===U.GREATER_THAN_SIGN?(this._err(se.abruptClosingOfEmptyComment),this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xo))}[xo](t){t===U.HYPHEN_MINUS?this.state=qd:t===U.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=HE):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.data+=kt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=nn(t)}[HE](t){t===U.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=GE):t===U.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(xo)}[GE](t){t===U.HYPHEN_MINUS?this.state=VE:this._reconsumeInState(xo)}[VE](t){t===U.HYPHEN_MINUS?this.state=KE:this._reconsumeInState(qd)}[KE](t){t!==U.GREATER_THAN_SIGN&&t!==U.EOF&&this._err(se.nestedComment),this._reconsumeInState(Yd)}[qd](t){t===U.HYPHEN_MINUS?this.state=Yd:t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xo))}[Yd](t){t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EXCLAMATION_MARK?this.state=WE:t===U.HYPHEN_MINUS?this.currentToken.data+="-":t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(xo))}[WE](t){t===U.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=qd):t===U.GREATER_THAN_SIGN?(this._err(se.incorrectlyClosedComment),this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(xo))}[qE](t){Ut(t)?this.state=Xd:t===U.GREATER_THAN_SIGN?this._reconsumeInState(Xd):t===U.EOF?(this._err(se.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Xd))}[Xd](t){Ut(t)||(Ti(t)?(this._createDoctypeToken(To(t)),this.state=Qd):t===U.NULL?(this._err(se.unexpectedNullCharacter),this._createDoctypeToken(kt.REPLACEMENT_CHARACTER),this.state=Qd):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(nn(t)),this.state=Qd))}[Qd](t){Ut(t)?this.state=YE:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):Ti(t)?this.currentToken.name+=To(t):t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.name+=kt.REPLACEMENT_CHARACTER):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=nn(t)}[YE](t){Ut(t)||(t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(ws.PUBLIC_STRING,t,!1)?this.state=XE:this._consumeSequenceIfMatch(ws.SYSTEM_STRING,t,!1)?this.state=JE:this._ensureHibernation()||(this._err(se.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa)))}[XE](t){Ut(t)?this.state=QE:t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=m4):t===U.APOSTROPHE?(this._err(se.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=p4):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa))}[QE](t){Ut(t)||(t===U.QUOTATION_MARK?(this.currentToken.publicId="",this.state=m4):t===U.APOSTROPHE?(this.currentToken.publicId="",this.state=p4):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa)))}[m4](t){t===U.QUOTATION_MARK?this.state=g4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.publicId+=kt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=nn(t)}[p4](t){t===U.APOSTROPHE?this.state=g4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.publicId+=kt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=nn(t)}[g4](t){Ut(t)?this.state=ZE:t===U.GREATER_THAN_SIGN?(this.state=ct,this._emitCurrentToken()):t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Du):t===U.APOSTROPHE?(this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Pu):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa))}[ZE](t){Ut(t)||(t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Du):t===U.APOSTROPHE?(this.currentToken.systemId="",this.state=Pu):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa)))}[JE](t){Ut(t)?this.state=ex:t===U.QUOTATION_MARK?(this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Du):t===U.APOSTROPHE?(this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Pu):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa))}[ex](t){Ut(t)||(t===U.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Du):t===U.APOSTROPHE?(this.currentToken.systemId="",this.state=Pu):t===U.GREATER_THAN_SIGN?(this._err(se.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ct,this._emitCurrentToken()):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Aa)))}[Du](t){t===U.QUOTATION_MARK?this.state=v4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.systemId+=kt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=nn(t)}[Pu](t){t===U.APOSTROPHE?this.state=v4:t===U.NULL?(this._err(se.unexpectedNullCharacter),this.currentToken.systemId+=kt.REPLACEMENT_CHARACTER):t===U.GREATER_THAN_SIGN?(this._err(se.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=nn(t)}[v4](t){Ut(t)||(t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.EOF?(this._err(se.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(se.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Aa)))}[Aa](t){t===U.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ct):t===U.NULL?this._err(se.unexpectedNullCharacter):t===U.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Zd](t){t===U.RIGHT_SQUARE_BRACKET?this.state=tx:t===U.EOF?(this._err(se.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[tx](t){t===U.RIGHT_SQUARE_BRACKET?this.state=nx:(this._emitChars("]"),this._reconsumeInState(Zd))}[nx](t){t===U.GREATER_THAN_SIGN?this.state=ct:t===U.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Zd))}[Ul](t){this.tempBuff=[U.AMPERSAND],t===U.NUMBER_SIGN?(this.tempBuff.push(t),this.state=ax):y4(t)?this._reconsumeInState(rx):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[rx](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[U.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===U.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(se.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=ix}[ix](t){y4(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=nn(t):this._emitCodePoint(t):(t===U.SEMICOLON&&this._err(se.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[ax](t){this.charRefCode=0,t===U.LATIN_SMALL_X||t===U.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=ox):this._reconsumeInState(sx)}[ox](t){Wle(t)?this._reconsumeInState(lx):(this._err(se.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[sx](t){m1(t)?this._reconsumeInState(cx):(this._err(se.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[lx](t){RR(t)?this.charRefCode=this.charRefCode*16+t-55:MR(t)?this.charRefCode=this.charRefCode*16+t-87:m1(t)?this.charRefCode=this.charRefCode*16+t-48:t===U.SEMICOLON?this.state=$u:(this._err(se.missingSemicolonAfterCharacterReference),this._reconsumeInState($u))}[cx](t){m1(t)?this.charRefCode=this.charRefCode*10+t-48:t===U.SEMICOLON?this.state=$u:(this._err(se.missingSemicolonAfterCharacterReference),this._reconsumeInState($u))}[$u](){if(this.charRefCode===U.NULL)this._err(se.nullCharacterReference),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(se.characterReferenceOutsideUnicodeRange),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(kt.isSurrogate(this.charRefCode))this._err(se.surrogateCharacterReference),this.charRefCode=U.REPLACEMENT_CHARACTER;else if(kt.isUndefinedCodePoint(this.charRefCode))this._err(se.noncharacterCharacterReference);else if(kt.isControlCodePoint(this.charRefCode)||this.charRefCode===U.CARRIAGE_RETURN){this._err(se.controlCharacterReference);const t=Vle[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};vi.CHARACTER_TOKEN="CHARACTER_TOKEN";vi.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";vi.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";vi.START_TAG_TOKEN="START_TAG_TOKEN";vi.END_TAG_TOKEN="END_TAG_TOKEN";vi.COMMENT_TOKEN="COMMENT_TOKEN";vi.DOCTYPE_TOKEN="DOCTYPE_TOKEN";vi.EOF_TOKEN="EOF_TOKEN";vi.HIBERNATION_TOKEN="HIBERNATION_TOKEN";vi.MODE={DATA:ct,RCDATA:Ql,RAWTEXT:Yu,SCRIPT_DATA:Ia,PLAINTEXT:OR};vi.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var Tp=vi,Hi={};const b4=Hi.NAMESPACES={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/"};Hi.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Hi.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const ve=Hi.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Hi.SPECIAL_ELEMENTS={[b4.HTML]:{[ve.ADDRESS]:!0,[ve.APPLET]:!0,[ve.AREA]:!0,[ve.ARTICLE]:!0,[ve.ASIDE]:!0,[ve.BASE]:!0,[ve.BASEFONT]:!0,[ve.BGSOUND]:!0,[ve.BLOCKQUOTE]:!0,[ve.BODY]:!0,[ve.BR]:!0,[ve.BUTTON]:!0,[ve.CAPTION]:!0,[ve.CENTER]:!0,[ve.COL]:!0,[ve.COLGROUP]:!0,[ve.DD]:!0,[ve.DETAILS]:!0,[ve.DIR]:!0,[ve.DIV]:!0,[ve.DL]:!0,[ve.DT]:!0,[ve.EMBED]:!0,[ve.FIELDSET]:!0,[ve.FIGCAPTION]:!0,[ve.FIGURE]:!0,[ve.FOOTER]:!0,[ve.FORM]:!0,[ve.FRAME]:!0,[ve.FRAMESET]:!0,[ve.H1]:!0,[ve.H2]:!0,[ve.H3]:!0,[ve.H4]:!0,[ve.H5]:!0,[ve.H6]:!0,[ve.HEAD]:!0,[ve.HEADER]:!0,[ve.HGROUP]:!0,[ve.HR]:!0,[ve.HTML]:!0,[ve.IFRAME]:!0,[ve.IMG]:!0,[ve.INPUT]:!0,[ve.LI]:!0,[ve.LINK]:!0,[ve.LISTING]:!0,[ve.MAIN]:!0,[ve.MARQUEE]:!0,[ve.MENU]:!0,[ve.META]:!0,[ve.NAV]:!0,[ve.NOEMBED]:!0,[ve.NOFRAMES]:!0,[ve.NOSCRIPT]:!0,[ve.OBJECT]:!0,[ve.OL]:!0,[ve.P]:!0,[ve.PARAM]:!0,[ve.PLAINTEXT]:!0,[ve.PRE]:!0,[ve.SCRIPT]:!0,[ve.SECTION]:!0,[ve.SELECT]:!0,[ve.SOURCE]:!0,[ve.STYLE]:!0,[ve.SUMMARY]:!0,[ve.TABLE]:!0,[ve.TBODY]:!0,[ve.TD]:!0,[ve.TEMPLATE]:!0,[ve.TEXTAREA]:!0,[ve.TFOOT]:!0,[ve.TH]:!0,[ve.THEAD]:!0,[ve.TITLE]:!0,[ve.TR]:!0,[ve.TRACK]:!0,[ve.UL]:!0,[ve.WBR]:!0,[ve.XMP]:!0},[b4.MATHML]:{[ve.MI]:!0,[ve.MO]:!0,[ve.MN]:!0,[ve.MS]:!0,[ve.MTEXT]:!0,[ve.ANNOTATION_XML]:!0},[b4.SVG]:{[ve.TITLE]:!0,[ve.FOREIGN_OBJECT]:!0,[ve.DESC]:!0}};const IR=Hi,ye=IR.TAG_NAMES,Ot=IR.NAMESPACES;function dx(e){switch(e.length){case 1:return e===ye.P;case 2:return e===ye.RB||e===ye.RP||e===ye.RT||e===ye.DD||e===ye.DT||e===ye.LI;case 3:return e===ye.RTC;case 6:return e===ye.OPTION;case 8:return e===ye.OPTGROUP}return!1}function qle(e){switch(e.length){case 1:return e===ye.P;case 2:return e===ye.RB||e===ye.RP||e===ye.RT||e===ye.DD||e===ye.DT||e===ye.LI||e===ye.TD||e===ye.TH||e===ye.TR;case 3:return e===ye.RTC;case 5:return e===ye.TBODY||e===ye.TFOOT||e===ye.THEAD;case 6:return e===ye.OPTION;case 7:return e===ye.CAPTION;case 8:return e===ye.OPTGROUP||e===ye.COLGROUP}return!1}function Jd(e,t){switch(e.length){case 2:if(e===ye.TD||e===ye.TH)return t===Ot.HTML;if(e===ye.MI||e===ye.MO||e===ye.MN||e===ye.MS)return t===Ot.MATHML;break;case 4:if(e===ye.HTML)return t===Ot.HTML;if(e===ye.DESC)return t===Ot.SVG;break;case 5:if(e===ye.TABLE)return t===Ot.HTML;if(e===ye.MTEXT)return t===Ot.MATHML;if(e===ye.TITLE)return t===Ot.SVG;break;case 6:return(e===ye.APPLET||e===ye.OBJECT)&&t===Ot.HTML;case 7:return(e===ye.CAPTION||e===ye.MARQUEE)&&t===Ot.HTML;case 8:return e===ye.TEMPLATE&&t===Ot.HTML;case 13:return e===ye.FOREIGN_OBJECT&&t===Ot.SVG;case 14:return e===ye.ANNOTATION_XML&&t===Ot.MATHML}return!1}let Yle=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===ye.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ot.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===Ot.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ye.H1||t===ye.H2||t===ye.H3||t===ye.H4||t===ye.H5||t===ye.H6&&n===Ot.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ye.TD||t===ye.TH&&n===Ot.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==ye.TABLE&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ot.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==ye.TBODY&&this.currentTagName!==ye.TFOOT&&this.currentTagName!==ye.THEAD&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ot.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==ye.TR&&this.currentTagName!==ye.TEMPLATE&&this.currentTagName!==ye.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ot.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===ye.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===ye.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Ot.HTML)return!0;if(Jd(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===ye.H1||n===ye.H2||n===ye.H3||n===ye.H4||n===ye.H5||n===ye.H6)&&r===Ot.HTML)return!0;if(Jd(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Ot.HTML)return!0;if((r===ye.UL||r===ye.OL)&&i===Ot.HTML||Jd(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Ot.HTML)return!0;if(r===ye.BUTTON&&i===Ot.HTML||Jd(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Ot.HTML){if(r===t)return!0;if(r===ye.TABLE||r===ye.TEMPLATE||r===ye.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Ot.HTML){if(n===ye.TBODY||n===ye.THEAD||n===ye.TFOOT)return!0;if(n===ye.TABLE||n===ye.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===Ot.HTML){if(r===t)return!0;if(r!==ye.OPTION&&r!==ye.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;dx(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;qle(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;dx(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var Xle=Yle;const ef=3;let _8=class Ao{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=ef){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===Ao.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=ef-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Ao.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Ao.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Ao.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Ao.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ao.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ao.ELEMENT_ENTRY&&r.element===t)return r}return null}};_8.MARKER_ENTRY="MARKER_ENTRY";_8.ELEMENT_ENTRY="ELEMENT_ENTRY";var Qle=_8;let LR=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};LR.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=m4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var CR=Hle;const jle=co;let Gle=class extends jle{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var Vle=Gle;const p4=co,iT=gp,Kle=CR,Wle=Vle,qle=Ui,g4=qle.TAG_NAMES;let Yle=class extends p4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===iT.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=p4.install(this.tokenizer,Kle);t.posTracker=a.posTracker,p4.install(this.openElements,Wle,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===iT.END_TAG_TOKEN&&(r.tagName===g4.HTML||r.tagName===g4.BODY&&this.openElements.hasInScope(g4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},vp={};const{DOCUMENT_MODE:$l}=Ui,kR="html",vce="about:legacy-compat",yce="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",OR=["+//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//"],bce=OR.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Ece=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],RR=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Tce=RR.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function oT(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function sT(e,t){for(let n=0;n-1)return $l.QUIRKS;let r=t===null?bce:OR;if(sT(n,r))return $l.QUIRKS;if(r=t===null?RR:Tce,sT(n,r))return $l.LIMITED_QUIRKS}return $l.NO_QUIRKS};vp.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+oT(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+oT(n)),r};var ps={};const v4=gp,g6=Ui,He=g6.TAG_NAMES,Rn=g6.NAMESPACES,xf=g6.ATTRS,lT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xce="definitionurl",_ce="definitionURL",wce={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Sce={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Rn.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Rn.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Rn.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Rn.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Rn.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Rn.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Rn.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Rn.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Rn.XML},"xml:space":{prefix:"xml",name:"space",namespace:Rn.XML},xmlns:{prefix:"",name:"xmlns",namespace:Rn.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Rn.XMLNS}},Cce=ps.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Ace={[He.B]:!0,[He.BIG]:!0,[He.BLOCKQUOTE]:!0,[He.BODY]:!0,[He.BR]:!0,[He.CENTER]:!0,[He.CODE]:!0,[He.DD]:!0,[He.DIV]:!0,[He.DL]:!0,[He.DT]:!0,[He.EM]:!0,[He.EMBED]:!0,[He.H1]:!0,[He.H2]:!0,[He.H3]:!0,[He.H4]:!0,[He.H5]:!0,[He.H6]:!0,[He.HEAD]:!0,[He.HR]:!0,[He.I]:!0,[He.IMG]:!0,[He.LI]:!0,[He.LISTING]:!0,[He.MENU]:!0,[He.META]:!0,[He.NOBR]:!0,[He.OL]:!0,[He.P]:!0,[He.PRE]:!0,[He.RUBY]:!0,[He.S]:!0,[He.SMALL]:!0,[He.SPAN]:!0,[He.STRONG]:!0,[He.STRIKE]:!0,[He.SUB]:!0,[He.SUP]:!0,[He.TABLE]:!0,[He.TT]:!0,[He.U]:!0,[He.UL]:!0,[He.VAR]:!0};ps.causesExit=function(e){const t=e.tagName;return t===He.FONT&&(v4.getTokenAttr(e,xf.COLOR)!==null||v4.getTokenAttr(e,xf.SIZE)!==null||v4.getTokenAttr(e,xf.FACE)!==null)?!0:Ace[t]};ps.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Bce[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=Tp;break}else if(!n&&i===S.HEAD){this.insertionMode=su;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?bp:yp;break}else if(n){this.insertionMode=la;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=b6;return}}this.insertionMode=y6}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===$e.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return wl.SPECIAL_ELEMENTS[r][n]}}var Hce=Uce;function jce(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ei(e,t),n}function Gce(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Vce(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=Fce;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=Kce(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Kce(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Wce(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===$e.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function qce(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function No(e,t){let n;for(let r=0;r<$ce&&(n=jce(e,t),!!n);r++){const i=Gce(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=Vce(e,i,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),Wce(e,o,a),qce(e,i,n)}}function dt(){}function Hd(e){e._err(Mn.misplacedDoctype)}function pn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function Yce(e,t){e._appendCommentNode(t,e.openElements.items[0])}function hT(e,t){e._appendCommentNode(t,e.document)}function dr(e,t){e._insertCharacters(t)}function Ou(e){e.stopped=!0}function Xce(e,t){e._setDocumentType(t);const n=t.forceQuirks?wl.DOCUMENT_MODE.QUIRKS:dT.getDocumentMode(t);dT.isConforming(t)||e._err(Mn.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v6}function Ru(e,t){e._err(Mn.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,wl.DOCUMENT_MODE.QUIRKS),e.insertionMode=v6,e._processToken(t)}function Qce(e,t){t.tagName===S.HTML?(e._insertElement(t,$e.HTML),e.insertionMode=yp):s1(e,t)}function Zce(e,t){const n=t.tagName;(n===S.HTML||n===S.HEAD||n===S.BODY||n===S.BR)&&s1(e,t)}function s1(e,t){e._insertFakeRootElement(),e.insertionMode=yp,e._processToken(t)}function Jce(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.HEAD?(e._insertElement(t,$e.HTML),e.headElement=e.openElements.current,e.insertionMode=su):l1(e,t)}function eue(e,t){const n=t.tagName;n===S.HEAD||n===S.BODY||n===S.HTML||n===S.BR?l1(e,t):e._err(Mn.endTagWithoutMatchingOpenElement)}function l1(e,t){e._insertFakeElement(S.HEAD),e.headElement=e.openElements.current,e.insertionMode=su,e._processToken(t)}function Sn(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META?(e._appendElement(t,$e.HTML),t.ackSelfClosing=!0):n===S.TITLE?e._switchToTextParsing(t,H.MODE.RCDATA):n===S.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,H.MODE.RAWTEXT):(e._insertElement(t,$e.HTML),e.insertionMode=DR):n===S.NOFRAMES||n===S.STYLE?e._switchToTextParsing(t,H.MODE.RAWTEXT):n===S.SCRIPT?e._switchToTextParsing(t,H.MODE.SCRIPT_DATA):n===S.TEMPLATE?(e._insertTemplate(t,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Gh,e._pushTmplInsertionMode(Gh)):n===S.HEAD?e._err(Mn.misplacedStartTagForHeadElement):c1(e,t)}function Sl(e,t){const n=t.tagName;n===S.HEAD?(e.openElements.pop(),e.insertionMode=bp):n===S.BODY||n===S.BR||n===S.HTML?c1(e,t):n===S.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Mn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Mn.endTagWithoutMatchingOpenElement)}function c1(e,t){e.openElements.pop(),e.insertionMode=bp,e._processToken(t)}function tue(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?Sn(e,t):n===S.NOSCRIPT?e._err(Mn.nestedNoscriptInHead):u1(e,t)}function nue(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=su):n===S.BR?u1(e,t):e._err(Mn.endTagWithoutMatchingOpenElement)}function u1(e,t){const n=t.type===H.EOF_TOKEN?Mn.openElementsLeftAfterEof:Mn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=su,e._processToken(t)}function rue(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BODY?(e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode=la):n===S.FRAMESET?(e._insertElement(t,$e.HTML),e.insertionMode=xp):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Mn.abandonedHeadElementChild),e.openElements.push(e.headElement),Sn(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Mn.misplacedStartTagForHeadElement):d1(e,t)}function iue(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?d1(e,t):n===S.TEMPLATE?Sl(e,t):e._err(Mn.endTagWithoutMatchingOpenElement)}function d1(e,t){e._insertFakeElement(S.BODY),e.insertionMode=la,e._processToken(t)}function xs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function aue(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function oue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function sue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$e.HTML),e.insertionMode=xp)}function Ca(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function lue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,$e.HTML)}function mT(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function cue(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),n||(e.formElement=e.openElements.current))}function uue(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function due(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.tokenizer.state=H.MODE.PLAINTEXT}function fue(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.framesetOk=!1}function hue(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(No(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fl(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function mue(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(No(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function pT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function pue(e,t){e.treeAdapter.getDocumentMode(e.document)!==wl.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode=Vn}function Wl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$e.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gue(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$e.HTML);const n=H.getTokenAttr(t,IR.TYPE);(!n||n.toLowerCase()!==MR)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function gT(e,t){e._appendElement(t,$e.HTML),t.ackSelfClosing=!0}function vue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,$e.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yue(e,t){t.tagName=S.IMG,Wl(e,t)}function bue(e,t){e._insertElement(t,$e.HTML),e.skipNextNewLine=!0,e.tokenizer.state=H.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=jh}function Eue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,H.MODE.RAWTEXT)}function Tue(e,t){e.framesetOk=!1,e._switchToTextParsing(t,H.MODE.RAWTEXT)}function vT(e,t){e._switchToTextParsing(t,H.MODE.RAWTEXT)}function xue(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode===Vn||e.insertionMode===Ep||e.insertionMode===ii||e.insertionMode===to||e.insertionMode===Tp?e.insertionMode=b6:e.insertionMode=y6}function yT(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML)}function bT(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$e.HTML)}function _ue(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,$e.HTML)}function wue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function Sue(e,t){e._reconstructActiveFormattingElements(),Zi.adjustTokenMathMLAttrs(t),Zi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,$e.MATHML):e._insertElement(t,$e.MATHML),t.ackSelfClosing=!0}function Cue(e,t){e._reconstructActiveFormattingElements(),Zi.adjustTokenSVGAttrs(t),Zi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,$e.SVG):e._insertElement(t,$e.SVG),t.ackSelfClosing=!0}function Wr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML)}function Cr(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Fl(e,t):n===S.P?Ca(e,t):n===S.A?hue(e,t):Wr(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Ca(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?lue(e,t):n===S.LI||n===S.DD||n===S.DT?uue(e,t):n===S.EM||n===S.TT?Fl(e,t):n===S.BR?Wl(e,t):n===S.HR?vue(e,t):n===S.RB?bT(e,t):n===S.RT||n===S.RP?_ue(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&Wr(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Ca(e,t):n===S.PRE?mT(e,t):n===S.BIG?Fl(e,t):n===S.IMG||n===S.WBR?Wl(e,t):n===S.XMP?Eue(e,t):n===S.SVG?Cue(e,t):n===S.RTC?bT(e,t):n!==S.COL&&Wr(e,t);break;case 4:n===S.HTML?aue(e,t):n===S.BASE||n===S.LINK||n===S.META?Sn(e,t):n===S.BODY?oue(e,t):n===S.MAIN||n===S.MENU?Ca(e,t):n===S.FORM?cue(e,t):n===S.CODE||n===S.FONT?Fl(e,t):n===S.NOBR?mue(e,t):n===S.AREA?Wl(e,t):n===S.MATH?Sue(e,t):n===S.MENU?wue(e,t):n!==S.HEAD&&Wr(e,t);break;case 5:n===S.STYLE||n===S.TITLE?Sn(e,t):n===S.ASIDE?Ca(e,t):n===S.SMALL?Fl(e,t):n===S.TABLE?pue(e,t):n===S.EMBED?Wl(e,t):n===S.INPUT?gue(e,t):n===S.PARAM||n===S.TRACK?gT(e,t):n===S.IMAGE?yue(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&Wr(e,t);break;case 6:n===S.SCRIPT?Sn(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Ca(e,t):n===S.BUTTON?fue(e,t):n===S.STRIKE||n===S.STRONG?Fl(e,t):n===S.APPLET||n===S.OBJECT?pT(e,t):n===S.KEYGEN?Wl(e,t):n===S.SOURCE?gT(e,t):n===S.IFRAME?Tue(e,t):n===S.SELECT?xue(e,t):n===S.OPTION?yT(e,t):Wr(e,t);break;case 7:n===S.BGSOUND?Sn(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Ca(e,t):n===S.LISTING?mT(e,t):n===S.MARQUEE?pT(e,t):n===S.NOEMBED?vT(e,t):n!==S.CAPTION&&Wr(e,t);break;case 8:n===S.BASEFONT?Sn(e,t):n===S.FRAMESET?sue(e,t):n===S.FIELDSET?Ca(e,t):n===S.TEXTAREA?bue(e,t):n===S.TEMPLATE?Sn(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?vT(e,t):Wr(e,t):n===S.OPTGROUP?yT(e,t):n!==S.COLGROUP&&Wr(e,t);break;case 9:n===S.PLAINTEXT?due(e,t):Wr(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Ca(e,t):Wr(e,t);break;default:Wr(e,t)}}function Aue(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=E6)}function Nue(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=E6,e._processToken(t))}function Eo(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function kue(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Oue(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Rue(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Iue(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Mue(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ET(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Lue(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Ei(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function T6(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?No(e,t):n===S.P?Oue(e):Ei(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Eo(e,t):n===S.LI?Rue(e):n===S.DD||n===S.DT?Iue(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Mue(e):n===S.BR?Lue(e):n===S.EM||n===S.TT?No(e,t):Ei(e,t);break;case 3:n===S.BIG?No(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Eo(e,t):Ei(e,t);break;case 4:n===S.BODY?Aue(e):n===S.HTML?Nue(e,t):n===S.FORM?kue(e):n===S.CODE||n===S.FONT||n===S.NOBR?No(e,t):n===S.MAIN||n===S.MENU?Eo(e,t):Ei(e,t);break;case 5:n===S.ASIDE?Eo(e,t):n===S.SMALL?No(e,t):Ei(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Eo(e,t):n===S.APPLET||n===S.OBJECT?ET(e,t):n===S.STRIKE||n===S.STRONG?No(e,t):Ei(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Eo(e,t):n===S.MARQUEE?ET(e,t):Ei(e,t);break;case 8:n===S.FIELDSET?Eo(e,t):n===S.TEMPLATE?Sl(e,t):Ei(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Eo(e,t):Ei(e,t);break;default:Ei(e,t)}}function Aa(e,t){e.tmplInsertionModeStackTop>-1?HR(e,t):e.stopped=!0}function Due(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Pue(e,t){e._err(Mn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Na(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=PR,e._processToken(t)):Yr(e,t)}function $ue(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$e.HTML),e.insertionMode=Ep}function Fue(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$e.HTML),e.insertionMode=I0}function Bue(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=I0,e._processToken(t)}function zue(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$e.HTML),e.insertionMode=ii}function Uue(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ii,e._processToken(t)}function Hue(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function jue(e,t){const n=H.getTokenAttr(t,IR.TYPE);n&&n.toLowerCase()===MR?e._appendElement(t,$e.HTML):Yr(e,t),t.ackSelfClosing=!0}function Gue(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$e.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function x6(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?Uue(e,t):Yr(e,t);break;case 3:n===S.COL?Bue(e,t):Yr(e,t);break;case 4:n===S.FORM?Gue(e,t):Yr(e,t);break;case 5:n===S.TABLE?Hue(e,t):n===S.STYLE?Sn(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?zue(e,t):n===S.INPUT?jue(e,t):Yr(e,t);break;case 6:n===S.SCRIPT?Sn(e,t):Yr(e,t);break;case 7:n===S.CAPTION?$ue(e,t):Yr(e,t);break;case 8:n===S.COLGROUP?Fue(e,t):n===S.TEMPLATE?Sn(e,t):Yr(e,t);break;default:Yr(e,t)}}function _6(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Sl(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&Yr(e,t)}function Yr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Vue(e,t){e.pendingCharacterTokens.push(t)}function Kue(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Iu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function s1e(e,t){t.tagName===S.HTML?Cr(e,t):Kh(e,t)}function l1e(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=FR):Kh(e,t)}function Kh(e,t){e.insertionMode=la,e._processToken(t)}function c1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.FRAMESET?e._insertElement(t,$e.HTML):n===S.FRAME?(e._appendElement(t,$e.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&Sn(e,t)}function u1e(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=$R))}function d1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.NOFRAMES&&Sn(e,t)}function f1e(e,t){t.tagName===S.HTML&&(e.insertionMode=BR)}function h1e(e,t){t.tagName===S.HTML?Cr(e,t):_f(e,t)}function _f(e,t){e.insertionMode=la,e._processToken(t)}function m1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.NOFRAMES&&Sn(e,t)}function p1e(e,t){t.chars=Dce.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function g1e(e,t){e._insertCharacters(t),e.framesetOk=!1}function v1e(e,t){if(Zi.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$e.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$e.MATHML?Zi.adjustTokenMathMLAttrs(t):r===$e.SVG&&(Zi.adjustTokenSVGTagName(t),Zi.adjustTokenSVGAttrs(t)),Zi.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function y1e(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$e.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const b1e=wr(Hce);function E1e(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:a};function i(o){let s=-1;if(typeof o=="number"&&o>-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,l=o&&o.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c{const L=O;if(L.value.stitch&&M!==null&&$!==null)return M.children[$]=L.value.stitch,$}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const O={nodeName:"template",tagName:"template",attrs:[],namespaceURI:qo.html,childNodes:[]},$={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:qo.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap($,O),i._pushTmplInsertionMode(P1e),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,a(e),N(),i._adoptNodes($.childNodes[0],M),M}function h(){const O=i.treeAdapter.createDocument();if(i._bootstrap(O,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,a(e),N(),O}function m(O){let $=-1;if(O)for(;++$WR(t,n,e)}function Q1e(e){const t=y.useRef(null);return x.jsxs("pre",{ref:t,className:"group relative mt-2 overflow-auto rounded bg-primary/90 p-2 text-primary-foreground",children:[x.jsx(ot,{title:"复制",variant:"secondary",className:"absolute right-0 mr-2 hidden h-6 w-6 rounded p-0 group-hover:flex",onClick:()=>{if(t.current){const n=t.current.innerText;J9(n),hn.success("已复制到剪贴板")}},children:x.jsx(Cw,{size:14})}),e.children]})}function Z1e(e){return x.jsx(yk,{remarkPlugins:[Sle,mle,Ioe],rehypePlugins:[X1e,Coe,[uie,{detect:!0,ignoreMissing:!0}]],components:{pre:Q1e},children:e.content})}const qR=({data:e,isCheckedMode:t=!1,isChecked:n=!1,isDownload:r=!1,onCheckedChange:i})=>{var d;const[{nickname:a,avatar:o}]=Fi(f=>[f.userInfo]),[s]=Zo(f=>[f.regenerateChat]),[l]=$i(f=>[f.appConfig]),c=()=>{J9(e.text),hn.success("已复制到剪贴板")},u=()=>e.status===Xi.START?x.jsx(qc,{className:"animate-spin",size:24}):e.status===Xi.ERROR?e.error:x.jsx(Z1e,{content:e.text});return x.jsxs("div",{className:"flex",children:[t&&x.jsx(Im,{checked:n,className:"ml-2 mt-4",onCheckedChange:i}),x.jsxs("div",{className:Bs("p-3 rounded h-fit flex gap-4 items-start w-full flex-1 mb-6 last-of-type:mb-0",{"flex-row-reverse":e.role===ka.USER}),children:[e.role===ka.USER?x.jsxs(P1,{className:"h-10 w-10",children:[x.jsx($1,{src:o||l.user_logo,alt:a}),x.jsx(wm,{children:(d=a.slice(0,1))==null?void 0:d.toUpperCase()})]}):x.jsx(P1,{className:"h-10 w-10",children:x.jsx($1,{src:l.web_logo})}),x.jsxs("div",{className:Bs("flex-1 items-start flex flex-col overflow-hidden",{"items-end":e.role===ka.USER}),children:[x.jsx("p",{className:"text-xs text-neutral-400",children:DQ(e.dateTime).format("YYYY-MM-DD HH:mm:ss")}),x.jsxs("div",{className:Bs("max-w-full flex mt-2 items-end gap-2",{"flex-row-reverse":e.role===ka.USER}),children:[x.jsx("div",{className:Bs("flex-1 p-3 rounded-md break-words overflow-hidden border",{"bg-primary text-primary-foreground hover:bg-primary/90":e.role===ka.USER,"bg-secondary text-secondary-foreground hover:bg-secondary/80":[ka.ASSISTANT,ka.SYSTEM].includes(e.role)&&e.status!==Xi.ERROR,"bg-destructive text-destructive-foreground":e.status===Xi.ERROR}),children:u()}),x.jsx("div",{className:"shrink-0 pb-1 text-sm",children:!r&&x.jsxs(x.Fragment,{children:[[ka.ASSISTANT].includes(e.role)&&x.jsx(CF,{className:"mb-1 hover:cursor-pointer",size:12,onClick:()=>s(e.requestId)}),x.jsx(Cw,{className:"hover:cursor-pointer",size:12,onClick:c})]})})]})]})]})]})},J1e=({messages:e,shareUrl:t})=>{const n=y.useRef(null),[r,i]=y.useState(!1),[a,o]=y.useState(""),s=bl(),[l]=Zo(d=>[d.currentConversation]),{isWeixinBrowser:c}=d0(),u=async()=>{setTimeout(async()=>{if(!n.current)return;const f=await(c?N8:lN)(n.current,{style:{opacity:"1"}});o(f)},300),i(!0)};return x.jsxs(x.Fragment,{children:[r&&Vc.createPortal(x.jsxs("div",{ref:n,className:"bg-background p-8",children:[x.jsx("div",{className:"min-h-[10rem]",children:e.map((d,f)=>x.jsx(qR,{data:d,isDownload:!0},f))}),x.jsxs("div",{className:"m-auto mt-10 flex flex-col items-center gap-2",children:[x.jsx(k8,{style:{width:"8rem",height:"8rem"},value:t}),x.jsx("div",{children:"扫一扫,马上体验"})]})]}),document.body),x.jsx(Lm,{open:r,onOpenChange:d=>i(d),children:x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsx(b0,{children:"对话海报"})}),x.jsx(x0,{children:x.jsx(dh,{className:"h-[30rem]",children:x.jsx("img",{src:a,alt:""})})}),s&&x.jsx(dh,{className:"text-center",children:"长按图片保存"}),x.jsxs(Dm,{children:[x.jsx(gA,{children:"取消"}),!s&&x.jsx(Pm,{onClick:()=>{hN.saveAs(a,`${l.title}.jpg`)},children:"下载"})]})]})}),x.jsxs(ot,{disabled:e.length===0,variant:"ghost",className:"flex w-32 gap-2",onClick:()=>{u()},children:[x.jsx(Aw,{size:20})," 生成图片"]})]})};let _T=-1;const e0e=({isDownload:e=!1,selectedMessagesIDs:t,onIsDownloadChange:n,onSelectMessagesIds:r})=>{const[i,a]=y.useState(""),[o,s,l,c,u,d]=Zo(O=>[O.sendUserMessage,O.isStream,O.clearCurrentConversation,O.stopStream,O.currentChatData(),O.setStream]),[{openid:f},h]=Fi(O=>[O.userInfo,O.isLogin()]),[m,g]=Zo(O=>[O.currentConversation,O.editConversation]),b=bl(),p=O=>{O.code==="Enter"&&!O.shiftKey&&i.replace(/\n/g,"")&&T()},v=Hr(),T=async()=>{if(!h){hn.error("请登录"),v("/login");return}u.length||g(m.uuid,{title:i}),o(i),a(""),setTimeout(()=>{var O;(O=C.current)==null||O.focus()},1e3)},C=y.useRef(null),R=y.useMemo(()=>u.filter(O=>t.includes(O.id)),[r]),N=y.useMemo(()=>u.map(O=>O.id),[u]);return y.useEffect(()=>{if(C.current){C.current.style.height="0px";const O=C.current.scrollHeight;C.current.style.height=O+4+"px"}},[C,i]),y.useEffect(()=>{d(!1)},[]),x.jsx("footer",{className:Bs("flex items-end gap-4 p-4",{"border-t items-center justify-between":e}),children:e?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Im,{checked:t.length===N.length,className:"mr-2",onCheckedChange:O=>{r(O?N:[])}}),"全选"]}),x.jsx(J1e,{messages:R,shareUrl:location.origin+`/chat?shareOpenId=${f}`}),x.jsx(ot,{variant:"destructive",onClick:()=>{n(!1)},children:"取消"})]}):x.jsxs(x.Fragment,{children:[x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsx(ot,{variant:"ghost",className:"h-9 w-9 p-0",children:x.jsx(Ow,{size:18})})}),x.jsxs(u0,{side:"top",align:"end",children:[x.jsxs(tl,{className:"flex items-center gap-2",onClick:()=>{confirm("你确定要清除所有的消息吗?")&&(l(),a(""))},children:[x.jsx(Rw,{size:16})," 清空消息"]}),x.jsxs(tl,{className:"flex items-center gap-2",onClick:()=>{n(!0)},children:[x.jsx(Aw,{size:16}),"对话海报"]})]})]}),x.jsxs("div",{className:"relative flex-1",children:[s&&x.jsx("div",{className:"absolute left-0 z-10 flex w-full justify-center",children:x.jsx(ot,{variant:"destructive",onClick:()=>c(),children:x.jsx(wF,{})})}),x.jsx(eN,{ref:C,className:Bs("h-10 max-h-[7rem] min-h-[20px] w-full flex-1 resize-none scroll-bar-none",{"blur-sm":s}),onKeyDown:p,disabled:s,value:i,placeholder:b?"来说点什么...":"来说点什么...(Shift + Enter = 换行)",onChange:O=>a(O.target.value)})]}),x.jsx(ot,{disabled:s||!i.replace(/\n/g,""),onClick:()=>{T()},children:s?x.jsx(qc,{className:"m-auto my-32 animate-spin"}):x.jsx(AF,{})})]})})},t0e=({isDownload:e,selectedMessagesIDs:t,onSelectMessagesIds:n})=>{const[r,i]=Zo(s=>[s.isStream,s.currentChatData()]),a=y.useRef(null),o=(s="smooth")=>{a.current&&a.current.scrollIntoView({behavior:s,block:"end"})};return y.useEffect(()=>{o("auto")},[]),y.useEffect(()=>{r?(o(),_T=setInterval(()=>{o()},1e3)):clearInterval(_T)},[r]),x.jsx("div",{className:"scroll-bar-none flex-1 overflow-y-auto overflow-x-hidden",children:x.jsxs("main",{className:"m-auto w-full max-w-screen-xl overflow-auto p-4",ref:a,children:[i.length===0&&x.jsxs("div",{className:"m-auto mt-2 w-fit text-center text-secondary-foreground",children:[x.jsx(dX,{className:"mr-1 inline-block w-10"}),"开始提问吧~"]}),i.map((s,l)=>x.jsx(qR,{data:s,isCheckedMode:e,isChecked:t.includes(s.id||""),onCheckedChange:c=>{n(c?t.concat(s.id):t.filter(u=>u!==s.id))}},l))]})})},n0e=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState([]);return y.useEffect(()=>{e||r([])},[e]),x.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[x.jsx(t0e,{isDownload:e,selectedMessagesIDs:n,onSelectMessagesIds:i=>r(i)}),x.jsx(e0e,{selectedMessagesIDs:n,isDownload:e,onIsDownloadChange:i=>t(i),onSelectMessagesIds:i=>r(i)})]})},r0e={getRoleList(){return Rt("chat-gpt-model?platform=1&is_all=true")}},f1=/^[a-z0-9]+(-[a-z0-9]+)*$/,_p=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:s};return t&&!Sf(c)?null:c}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!Sf(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:a};return t&&!Sf(s,n)?null:s}return null},Sf=(e,t)=>e?!!((e.provider===""||e.provider.match(f1))&&(t&&e.prefix===""||e.prefix.match(f1))&&e.name.match(f1)):!1,YR=Object.freeze({left:0,top:0,width:16,height:16}),Wh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),C6=Object.freeze({...YR,...Wh}),k2=Object.freeze({...C6,body:"",hidden:!1});function i0e(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function wT(e,t){const n=i0e(e,t);for(const r in k2)r in Wh?r in e&&!(r in n)&&(n[r]=Wh[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function a0e(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=r[o]&&r[o].parent,l=s&&a(s);l&&(i[o]=[s].concat(l))}return i[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function o0e(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=wT(r[s]||i[s],a)}return o(t),n.forEach(o),wT(e,a)}function XR(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=a0e(e);for(const i in r){const a=r[i];a&&(t(i,o0e(e,i,a)),n.push(i))}return n}const s0e={provider:"",aliases:{},not_found:{},...YR};function y4(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function QR(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!y4(e,s0e))return null;const n=t.icons;for(const i in n){const a=n[i];if(!i.match(f1)||typeof a.body!="string"||!y4(a,k2))return null}const r=t.aliases||Object.create(null);for(const i in r){const a=r[i],o=a.parent;if(!i.match(f1)||typeof o!="string"||!n[o]&&!r[o]||!y4(a,k2))return null}return t}const ST=Object.create(null);function l0e(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function al(e,t){const n=ST[e]||(ST[e]=Object.create(null));return n[t]||(n[t]=l0e(e,t))}function A6(e,t){return QR(t)?XR(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function c0e(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Y1=!1;function ZR(e){return typeof e=="boolean"&&(Y1=e),Y1}function u0e(e){const t=typeof e=="string"?_p(e,!0,Y1):e;if(t){const n=al(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function d0e(e,t){const n=_p(e,!0,Y1);if(!n)return!1;const r=al(n.provider,n.prefix);return c0e(r,n.name,t)}function f0e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Y1&&!t&&!e.prefix){let i=!1;return QR(e)&&(e.prefix="",XR(e,(a,o)=>{o&&d0e(a,o)&&(i=!0)})),i}const n=e.prefix;if(!Sf({provider:t,prefix:n,name:"a"}))return!1;const r=al(t,n);return!!A6(r,e)}const JR=Object.freeze({width:null,height:null}),eI=Object.freeze({...JR,...Wh}),h0e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m0e=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function CT(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(h0e);if(r===null||!r.length)return e;const i=[];let a=r.shift(),o=m0e.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");o=!o}}const p0e=e=>e==="unset"||e==="undefined"||e==="none";function g0e(e,t){const n={...C6,...e},r={...eI,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(m=>{const g=[],b=m.hFlip,p=m.vFlip;let v=m.rotate;b?p?v+=2:(g.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),g.push("scale(-1 1)"),i.top=i.left=0):p&&(g.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),g.push("scale(1 -1)"),i.top=i.left=0);let T;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:T=i.height/2+i.top,g.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:g.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:T=i.width/2+i.left,g.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}v%2===1&&(i.left!==i.top&&(T=i.left,i.left=i.top,i.top=T),i.width!==i.height&&(T=i.width,i.width=i.height,i.height=T)),g.length&&(a=''+a+"")});const o=r.width,s=r.height,l=i.width,c=i.height;let u,d;o===null?(d=s===null?"1em":s==="auto"?c:s,u=CT(d,l/c)):(u=o==="auto"?l:o,d=s===null?CT(u,c/l):s==="auto"?c:s);const f={},h=(m,g)=>{p0e(g)||(f[m]=g.toString())};return h("width",u),h("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:f,body:a}}const v0e=/\sid="(\S+)"/g,y0e="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let b0e=0;function E0e(e,t=y0e){const n=[];let r;for(;r=v0e.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const o=typeof t=="function"?t(a):t+(b0e++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const O2=Object.create(null);function T0e(e,t){O2[e]=t}function R2(e){return O2[e]||O2[""]}function N6(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const k6=Object.create(null),Mu=["https://api.simplesvg.com","https://api.unisvg.com"],Cf=[];for(;Mu.length>0;)Mu.length===1||Math.random()>.5?Cf.push(Mu.shift()):Cf.push(Mu.pop());k6[""]=N6({resources:["https://api.iconify.design"].concat(Cf)});function x0e(e,t){const n=N6(t);return n===null?!1:(k6[e]=n,!0)}function O6(e){return k6[e]}const _0e=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let AT=_0e();function w0e(e,t){const n=O6(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";r=n.maxURL-i-n.path.length-a.length}return r}function S0e(e){return e===404}const C0e=(e,t,n)=>{const r=[],i=w0e(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function A0e(e){if(typeof e=="string"){const t=O6(e);if(t)return t.path}return"/"}const N0e=(e,t,n)=>{if(!AT){n("abort",424);return}let r=A0e(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=a+".json?"+l.toString();break}case"custom":{const a=t.uri;r+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let i=503;AT(e+r).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{n(S0e(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",i)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",i)})},k0e={prepare:C0e,send:N0e};function O0e(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const a=i.provider,o=i.prefix,s=i.name,l=n[a]||(n[a]=Object.create(null)),c=l[o]||(l[o]=al(a,o));let u;s in c.icons?u=t.loaded:o===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:a,prefix:o,name:s};u.push(d)}),t}function tI(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function R0e(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])o.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))o.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||tI([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let I0e=0;function M0e(e,t,n){const r=I0e++,i=tI.bind(null,n,r);if(!t.pending.length)return i;const a={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function L0e(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const a=typeof i=="string"?_p(i,t,n):i;a&&r.push(a)}),r}var D0e={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function P0e(e,t,n,r){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let N=e.resources.slice(0);for(o=[];N.length>1;){const O=Math.floor(Math.random()*N.length);o.push(N[O]),N=N.slice(0,O).concat(N.slice(O+1))}o=o.concat(N)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function m(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),m(),f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function b(N,O){O&&(h=[]),typeof N=="function"&&h.push(N)}function p(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:g}}function v(){l="failed",h.forEach(N=>{N(void 0,u)})}function T(){f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function C(N,O,$){const M=O!=="success";switch(f=f.filter(L=>L!==N),l){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){u=$,v();return}if(M){u=$,f.length||(o.length?R():v());return}if(m(),T(),!e.random){const L=e.resources.indexOf(N.resource);L!==-1&&L!==e.index&&(e.index=L)}l="completed",h.forEach(L=>{L($)})}function R(){if(l!=="pending")return;m();const N=o.shift();if(N===void 0){if(f.length){d=setTimeout(()=>{m(),l==="pending"&&(T(),v())},e.timeout);return}v();return}const O={status:"pending",resource:N,callback:($,M)=>{C(O,$,M)}};f.push(O),c++,d=setTimeout(R,e.rotate),n(N,t,O.callback)}return setTimeout(R),p}function nI(e){const t={...D0e,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=P0e(t,s,l,(d,f)=>{r(),c&&c(d,f)});return n.push(u),u}function a(s){return n.find(l=>s(l))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function NT(){}const b4=Object.create(null);function $0e(e){if(!b4[e]){const t=O6(e);if(!t)return;const n=nI(t),r={config:t,redundancy:n};b4[e]=r}return b4[e]}function F0e(e,t,n){let r,i;if(typeof e=="string"){const a=R2(e);if(!a)return n(void 0,424),NT;i=a.send;const o=$0e(e);o&&(r=o.redundancy)}else{const a=N6(e);if(a){r=nI(a);const o=e.resources?e.resources[0]:"",s=R2(o);s&&(i=s.send)}}return!r||!i?(n(void 0,424),NT):r.query(t,i,n)().abort}const kT="iconify2",X1="iconify",rI=X1+"-count",OT=X1+"-version",iI=36e5,B0e=168;function I2(e,t){try{return e.getItem(t)}catch{}}function R6(e,t,n){try{return e.setItem(t,n),!0}catch{}}function RT(e,t){try{e.removeItem(t)}catch{}}function M2(e,t){return R6(e,rI,t.toString())}function L2(e){return parseInt(I2(e,rI))||0}const wp={local:!0,session:!0},aI={local:new Set,session:new Set};let I6=!1;function z0e(e){I6=e}let Gd=typeof window>"u"?{}:window;function oI(e){const t=e+"Storage";try{if(Gd&&Gd[t]&&typeof Gd[t].length=="number")return Gd[t]}catch{}wp[e]=!1}function sI(e,t){const n=oI(e);if(!n)return;const r=I2(n,OT);if(r!==kT){if(r){const s=L2(n);for(let l=0;l{const l=X1+s.toString(),c=I2(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}RT(n,l)}};let o=L2(n);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,M2(n,o)):aI[e].add(s))}function lI(){if(!I6){z0e(!0);for(const e in wp)sI(e,t=>{const n=t.data,r=t.provider,i=n.prefix,a=al(r,i);if(!A6(a,n).length)return!1;const o=n.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function U0e(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in wp)sI(r,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function H0e(e,t){I6||lI();function n(r){let i;if(!wp[r]||!(i=oI(r)))return;const a=aI[r];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=L2(i),!M2(i,o+1))return;const s={cached:Math.floor(Date.now()/iI),provider:e.provider,data:t};return R6(i,X1+o.toString(),JSON.stringify(s))}t.lastModified&&!U0e(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function IT(){}function j0e(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,R0e(e)}))}function G0e(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=R2(n)))return;a.prepare(n,r,i).forEach(s=>{F0e(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=A6(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),H0e(e,l)}catch(c){console.error(c)}j0e(e)})})}))}const V0e=(e,t)=>{const n=L0e(e,!0,ZR()),r=O0e(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,IT)}),()=>{l=!1}}const i=Object.create(null),a=[];let o,s;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===o)return;o=c,s=u,a.push(al(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=al(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),i[c][u].push(d))}),a.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&G0e(l,i[c][u])}),t?M0e(t,r,a):IT};function K0e(e,t){const n={...e};for(const r in t){const i=t[r],a=typeof i;r in JR?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const W0e=/[\s,]+/;function q0e(e,t){t.split(W0e).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Y0e(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return t}function X0e(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Q0e(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Z0e(e){return'url("data:image/svg+xml,'+Q0e(e)+'")'}const cI={...eI,inline:!1},J0e={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ede={display:"inline-block"},D2={backgroundColor:"currentColor"},uI={backgroundColor:"transparent"},MT={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},LT={webkitMask:D2,mask:D2,background:uI};for(const e in LT){const t=LT[e];for(const n in MT)t[e+n]=MT[n]}const tde={...cI,inline:!0};function DT(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const nde=(e,t,n,r)=>{const i=n?tde:cI,a=K0e(i,t),o=t.mode||"svg",s={},l=t.style||{},c={...o==="svg"?J0e:{},ref:r};for(let p in t){const v=t[p];if(v!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[p]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&q0e(a,v);break;case"color":s.color=v;break;case"rotate":typeof v=="string"?a[p]=Y0e(v):typeof v=="number"&&(a[p]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete c["aria-hidden"];break;default:i[p]===void 0&&(c[p]=v)}}const u=g0e(e,a),d=u.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){c.style={...s,...l},Object.assign(c,d);let p=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:E0e(u.body,v?()=>v+"ID"+p++:"iconifyReact")},We.createElement("svg",c)}const{body:f,width:h,height:m}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),b=X0e(f,{...d,width:h+"",height:m+""});return c.style={...s,"--svg":Z0e(b),width:DT(d.width),height:DT(d.height),...ede,...g?D2:uI,...l},We.createElement("span",c)};ZR(!0);T0e("",k0e);if(typeof document<"u"&&typeof window<"u"){lI();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!f0e(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;x0e(n,i)||console.error(r)}catch{console.error(r)}}}}class dI extends We.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=_p(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=u0e(i);if(!a){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:r,abort:V0e([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:We.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),nde({...C6,...n.data},r,t._inline,t._ref)}}const rde=We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return We.createElement(dI,r)});We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return We.createElement(dI,r)});const Sp=({icon:e="",className:t=""})=>x.jsx(rde,{icon:e,className:t});function ide({data:e,children:t,roleSelect:n}){const[r,i]=y.useState(!1);return x.jsxs(Lm,{open:r,onOpenChange:a=>i(a),children:[x.jsx(v8,{asChild:!0,children:t}),x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsxs(b0,{className:"flex justify-between",children:["全部角色",x.jsx(ot,{className:"h-6 w-6 p-1",variant:"ghost",onClick:()=>i(!1),children:x.jsx(gm,{size:16})})]})}),x.jsx(x0,{children:x.jsx("div",{className:"grid max-h-80 grid-cols-3 gap-2",children:e.map((a,o)=>x.jsxs(ot,{variant:"outline",className:"flex h-fit items-center justify-start gap-1 px-2",onClick:()=>{n(a),i(!1)},children:[x.jsx(Sp,{icon:a.icon,className:"shrink-0"}),x.jsx("span",{className:"truncate",title:a.name,children:a.name})]},o))})})]})]})}const ade=({onChange:e})=>{const{t}=a0(),[n,r,i,a,o,s]=Zo(m=>[m.conversationList,m.currentConversation,m.addConversation,m.switchConversation,m.delConversation,m.editConversation]),[l,c]=y.useState(""),[u,d]=y.useState(""),f=m=>{d(""),c(""),s(u,{title:l}),m==null||m.stopPropagation(),e==null||e()},h=m=>{m.code=="Enter"&&f()};return x.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[x.jsxs(ot,{variant:"outline",className:"m-4 shrink-0 border-dashed leading-8",onClick:()=>{i(),e==null||e()},children:[x.jsx(SF,{size:16,className:"mr-2"})," ",t("new conversation")]}),x.jsx(x0,{children:x.jsx("div",{className:"flex w-64 flex-1 flex-col gap-4 overflow-auto px-4",children:n.map((m,g)=>x.jsxs(ot,{variant:r.uuid===m.uuid?"default":"outline",className:"flex justify-start gap-2 px-3",title:m.title,onClick:()=>{a(m.uuid),e==null||e()},children:[m.icon?x.jsx(Sp,{className:"shrink-0",icon:m.icon}):x.jsx(kw,{className:"shrink-0",size:14}),u===m.uuid?x.jsxs(x.Fragment,{children:[x.jsx("input",{value:l,autoFocus:!0,onChange:b=>c(b.target.value),onKeyDown:h,className:"flex-1 overflow-hidden rounded-sm px-2 text-secondary-foreground outline-none dark:text-secondary"}),x.jsx(gm,{className:"shrink-0",size:14,onClick:()=>{d(""),c("")}}),x.jsx(P9,{className:"shrink-0",size:14,onClick:f})]}):x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"flex-1 truncate text-left",children:m.title}),x.jsx(TF,{size:14,onClick:b=>{d(m.uuid),c(m.title),b.stopPropagation()}}),x.jsx(Rw,{size:14,onClick:b=>{confirm("确定删除该对话吗?")&&(o(m.uuid),b.stopPropagation())}})]})]},g))})})]})},ode=({data:e,onChange:t})=>{const{t:n}=a0(),[r]=Zo(i=>[i.addConversation]);return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsxs("div",{className:"text-center leading-8",children:["—— ",n("role")," ——"]}),x.jsx("div",{className:"grid h-44 grid-cols-2 gap-2 px-4",children:e.slice(0,8).map((i,a)=>x.jsxs(ot,{variant:"outline",className:"flex h-fit items-center justify-start gap-1 px-2",onClick:()=>{r(i.name,i.icon,i.prompt,i.id),t==null||t()},children:[x.jsx(Sp,{icon:i.icon,className:"shrink-0"}),x.jsx("span",{className:"truncate",title:i.name,children:i.name})]},a))}),x.jsx(ide,{data:e,roleSelect:i=>r(i.name,i.icon,i.prompt,i.id),children:x.jsx(ot,{variant:"secondary",className:"mx-4 mb-4",children:"全部角色"})})]})},fI=({onChange:e})=>{const[t,n]=y.useState([]);return y.useEffect(()=>{(async()=>{const i=await r0e.getRoleList();n(i)})()},[]),x.jsxs("aside",{className:"flex h-full w-64 shrink-0 flex-col gap-4 overflow-hidden border-r text-xs",children:[x.jsx(ade,{onChange:e}),x.jsx(ode,{data:t,onChange:e})]})};function sde(){const e=bl();return x.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!e&&x.jsx(fI,{}),x.jsx(n0e,{})]})}const lde="/assets/poster-34c80d2f.png";function cde({open:e,shareUrl:t,handleOpenChange:n,type:r}){const i=y.useRef(null),a=bl(),[o,s]=y.useState(""),[l,c]=y.useState(Object.create(null)),{shareCallback:u}=h8(),{isWeixinBrowser:d}=d0(),f=async()=>{if(!i.current)return;const m=await(d?N8:lN)(i.current,{style:{opacity:"1"}});s(m)};return y.useEffect(()=>{e&&setTimeout(()=>{f()},500)},[e]),y.useEffect(()=>{(async()=>{const m=await js.getShareConfig();c(m)})()},[]),x.jsx(Jc,{open:e,onOpenChange:h=>{!h&&r===ia.SHARE&&u(),n(h)},children:x.jsxs(yl,{id:"shareBody",className:"w-[25rem]",children:[x.jsx(eu,{children:"分享"}),x.jsxs("div",{children:[x.jsxs("div",{className:"mb-2 flex",children:[x.jsx(wn,{value:t,disabled:!0}),x.jsx(ot,{className:"ml-2 shrink-0",onClick:()=>{J9(t,document.getElementById("shareBody")),vr.success("复制成功")},children:"复制链接"})]}),x.jsxs("div",{className:"relative overflow-auto max-sm:h-[30rem]",children:[x.jsx("img",{src:o,className:"absolute left-0 top-0 z-10 w-full",alt:""}),x.jsxs("div",{className:"relative",ref:i,children:[x.jsx("img",{src:l.share_img||lde,className:"w-full"}),x.jsx(k8,{className:"absolute bottom-1 left-[50%] m-auto -translate-x-1/2",style:{width:"3.5rem",height:"3.5rem"},value:t})]})]}),x.jsxs(y8,{className:"mt-2 text-center",children:[a&&"长按","保存上方图片,分享你专属海报给朋友"]})]}),x.jsx(TA,{children:!a&&x.jsx(ot,{className:"mt-2",onClick:()=>{hN.saveAs(o,"分享海报.jpg")},children:"下载"})})]})})}const ude={[ia.INVITE]:{button:"立即邀请",icon:x.jsx(OF,{}),completed:"立即邀请"},[ia.SHARE]:{button:"立即分享",icon:x.jsx(NF,{}),completed:"立即分享"}};function dde(){var T;const[e,t]=y.useState([]),[n,r]=y.useState(!1),[i,a]=y.useState(),[{avatar:o,nickname:s,openid:l},c]=Fi(C=>[C.userInfo,C.signOut]),[u,d,f]=Q9(C=>[C.currentBill,C.remaining(),C.getCurrentBilling]),[h]=$i(C=>[C.appConfig]),m=Hr(),g=bl(),b=()=>{c(),m("/login")};y.useEffect(()=>{(async()=>{const R=await ks.getTaskList(1);t(R.filter(N=>N.type!==ia.REGISTER))})(),f()},[]);const p=C=>ude[C],v=async C=>{r(!0),a(C)};return x.jsxs("div",{className:"flex h-screen items-center justify-center",children:[x.jsxs("div",{className:"w-[32rem] -translate-y-3 rounded-xl border p-10 shadow-xl max-sm:w-[22rem] max-sm:p-5",children:[x.jsxs("div",{className:"flex max-w-5xl items-center gap-4 text-secondary-foreground",children:[x.jsxs(P1,{className:"h-10 w-10",children:[x.jsx($1,{src:o||h.user_logo,alt:s}),x.jsx(wm,{children:(T=s.slice(0,1))==null?void 0:T.toUpperCase()})]}),x.jsx("h1",{className:"truncate text-3xl font-bold",children:s})]}),x.jsxs("div",{className:"mt-4 flex items-center rounded-lg border-2 p-3",children:[x.jsxs("div",{className:"flex-1 items-center text-base font-bold",children:[d>0||(u==null?void 0:u.num)===-1?`🎉 有效次数:${(u==null?void 0:u.num)===-1?"无限":d}次`:"☹️ 可用余额不足",(u==null?void 0:u.expired_at)&&u.num===-1&&x.jsx("div",{className:"mt-1",children:`⏰ 有效期至:${u.expired_at}`})]}),x.jsx(ot,{size:"sm",onClick:()=>m("/billing"),children:"去充值"})]}),x.jsxs("div",{className:"mt-4",children:[x.jsx("div",{className:"text-base font-semibold",children:"任务列表"}),x.jsx("div",{className:"mt-4 flex flex-col gap-2",children:e.map((C,R)=>x.jsx("div",{className:"rounded-lg bg-primary p-3 text-primary-foreground",children:x.jsxs("div",{className:"flex items-center gap-4",children:[p(C.type).icon,x.jsxs("div",{className:"flex-1",children:[x.jsx("div",{className:"flex-1 truncate text-base font-medium",children:C.title}),x.jsx("p",{className:"mt-1 truncate text-xs",children:C.desc})]}),x.jsx(ot,{variant:"secondary",size:"sm",onClick:()=>v(C.type),children:C.is_completed?p(C.type).completed:p(C.type).button})]})},R))})]}),g&&x.jsx(ot,{variant:"destructive",className:"mt-10 w-full",onClick:()=>b(),children:"退出登陆"})]}),x.jsx(cde,{open:n,type:i,shareUrl:location.origin+`/chat?shareOpenId=${l}`,handleOpenChange:C=>r(C)})]})}var hI=(e=>(e.WECHAT="wechat",e.ALI_PAY="alipay",e))(hI||{}),P2=(e=>(e.JSAPI="JSAPI",e.NATIVE="NATIVE",e))(P2||{});const Lu={getBillingPackage(){return Rt("package")},exchangeRedemptionCode(e){return Rt("cdk",{method:"post",body:JSON.stringify({cdk:e})})},orderBilling(e){return Rt("order",{method:"post",body:JSON.stringify(e)})},billingPayDetail(e){return Rt(`order/${e}/pay`)},billingDetail(e){return Rt(`order/${e}`)}},mI=y.forwardRef(({className:e,...t},n)=>x.jsx("div",{className:"w-full overflow-auto",children:x.jsx("table",{ref:n,className:ze("w-full caption-bottom text-sm",e),...t})}));mI.displayName="Table";const pI=y.forwardRef(({className:e,...t},n)=>x.jsx("thead",{ref:n,className:ze("[&_tr]:border-b",e),...t}));pI.displayName="TableHeader";const gI=y.forwardRef(({className:e,...t},n)=>x.jsx("tbody",{ref:n,className:ze("[&_tr:last-child]:border-0",e),...t}));gI.displayName="TableBody";const fde=y.forwardRef(({className:e,...t},n)=>x.jsx("tfoot",{ref:n,className:ze("bg-primary font-medium text-primary-foreground",e),...t}));fde.displayName="TableFooter";const $2=y.forwardRef(({className:e,...t},n)=>x.jsx("tr",{ref:n,className:ze("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));$2.displayName="TableRow";const Af=y.forwardRef(({className:e,...t},n)=>x.jsx("th",{ref:n,className:ze("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Af.displayName="TableHead";const Nf=y.forwardRef(({className:e,...t},n)=>x.jsx("td",{ref:n,className:ze("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Nf.displayName="TableCell";const hde=y.forwardRef(({className:e,...t},n)=>x.jsx("caption",{ref:n,className:ze("mt-4 text-sm text-muted-foreground",e),...t}));hde.displayName="TableCaption";function mde({children:e}){const[t,n]=y.useState([]),[r,i]=y.useState(!1),[a,o]=y.useState(!0);return y.useEffect(()=>{r&&(async()=>{o(!0);const l=await da.getUserPackages();n(l),o(!1)})()},[r]),x.jsxs(Lm,{open:r,onOpenChange:s=>i(s),children:[x.jsx(v8,{asChild:!0,children:e}),x.jsxs(v0,{children:[x.jsx(y0,{children:x.jsx(b0,{children:"充值记录"})}),a?x.jsx(qc,{className:"m-auto my-32 animate-spin"}):x.jsxs(mI,{children:[x.jsx(pI,{children:x.jsxs($2,{children:[x.jsx(Af,{children:"名称"}),x.jsx(Af,{children:"问答机会"}),x.jsx(Af,{className:"text-right",children:"日期"})]})}),x.jsx(gI,{children:t.map((s,l)=>x.jsxs($2,{children:[x.jsx(Nf,{className:"font-medium",children:s.package_name}),x.jsxs(Nf,{children:[" ",s.num===-1?`+${s.expired_day}天`:`${s.num}次`]}),x.jsx(Nf,{className:"text-right",children:s.created_at})]},l))})]}),x.jsx(Dm,{children:x.jsx(Pm,{children:"确认"})})]})]})}function pde({open:e,payInfo:t,handleOpenChange:n}){return x.jsx(Jc,{open:e,onOpenChange:n,children:x.jsxs(yl,{children:[x.jsx(eu,{children:"微信扫码支付"}),t?x.jsxs("div",{className:"pb-10",children:[x.jsxs("div",{className:"my-8 text-center text-4xl font-bold text-secondary-foreground",children:["¥ ",t.price]}),x.jsx(k8,{className:"m-auto",style:{width:"16rem",height:"16rem"},value:t.data.code_url})]}):x.jsx(qc,{className:"m-auto my-32 animate-spin"})]})})}function gde({open:e,payInfo:t,handleOpenChange:n}){return x.jsx(Jc,{open:e,onOpenChange:n,children:x.jsxs(yl,{children:[x.jsx(eu,{children:"线下支付"}),x.jsx("div",{className:"my-8 text-center text-4xl font-bold text-secondary-foreground",dangerouslySetInnerHTML:{__html:t}})]})})}let E4=0;function vde(){const[e,t]=y.useState([]),[n,r]=y.useState(!1),[i,a]=y.useState(!1),[o,s]=y.useState(!0),[l,c]=y.useState(""),[u,d]=y.useState(null),[f]=Q9(C=>[C.getCurrentBilling]),[h]=$i(C=>[C.appConfig]),{isWeixinBrowser:m,weChatPay:g}=d0(),b=bl();y.useEffect(()=>{(async()=>{s(!0);const R=await Lu.getBillingPackage();t(R),s(!1)})()},[]);const p=async()=>{try{await Lu.exchangeRedemptionCode(l),hn.success("兑换成功"),f()}catch(C){hn.error(C)}finally{c("")}},v=async C=>{if(h.channel===$w.OFFLINE){a(!0);return}const R=await Lu.orderBilling({package_id:C.id,channel:hI.WECHAT,pay_type:m?P2.JSAPI:P2.NATIVE,platform:1}),N=await Lu.billingPayDetail(R.id);d(N),m&&b?g(N,()=>{hn.success("支付成功"),d(null),f()}):(r(!0),E4=setInterval(async()=>{const{status:O}=await Lu.billingDetail(N.id);O==2&&(hn.success("支付成功"),r(!1),d(null),clearInterval(E4),f())},1500))},T=C=>{r(C),clearInterval(E4)};return x.jsxs(x0,{children:[x.jsxs("div",{className:"mx-auto max-w-7xl flex-1 overflow-auto px-6 py-12",children:[o?x.jsx(qc,{className:"m-auto my-16 animate-spin"}):x.jsx("div",{className:"grid grid-cols-4 gap-6 max-lg:grid-cols-3 max-md:grid-cols-2 max-sm:grid-cols-1",children:e.map((C,R)=>x.jsxs("div",{className:"rounded-lg border p-4 shadow",children:[x.jsxs("p",{className:"mb-4 border-b pb-4",children:[x.jsx("span",{className:"text-2xl font-bold tracking-tight sm:text-4xl",children:C.price}),x.jsx("span",{className:"ml-2 text-base font-medium ",children:"元"})]}),x.jsxs("p",{className:"mb-2 flex items-center gap-2",children:[x.jsx(Dv,{strokeWidth:"3",className:"text-lime-500",size:16}),C.name]}),x.jsx("p",{className:"flex h-3 items-center gap-2",children:C.identity===2&&x.jsxs(x.Fragment,{children:[x.jsx(Dv,{strokeWidth:"3",className:"text-rose-500",size:16}),"开发者专享"]})}),x.jsx(ot,{className:"mt-14 flex w-full",onClick:()=>v(C),children:"购买"})]},R))}),x.jsxs("div",{className:"mt-4 flex gap-4",children:[x.jsx(wn,{placeholder:"请输入兑换码",value:l,onChange:C=>c(C.target.value)}),x.jsx(ot,{disabled:!l,className:"shrink-0",onClick:p,children:"立即兑换"})]}),x.jsxs("h3",{className:"mt-6 flex items-center justify-between text-base font-medium",children:[x.jsxs("div",{className:"flex items-center",children:[x.jsx(Sp,{icon:"material-symbols:book-outline-rounded",className:"mr-2"}),"充值说明"]}),x.jsx(mde,{children:x.jsx(ot,{className:"shrink-0",children:"充值记录"})})]}),x.jsxs("ul",{className:"mt-6 space-y-4",children:[x.jsx("li",{className:"flex space-x-3",children:"1. 账户充值仅限微信在线支付方式,充值金额实时到账"}),x.jsx("li",{className:"flex space-x-3",children:"2. 账户有效次数自充值日起至用完为止"})]})]}),x.jsx(pde,{open:n,payInfo:u,handleOpenChange:T}),x.jsx(gde,{open:i,payInfo:h.offline,handleOpenChange:C=>{a(C)}})]})}const yde=p8,bde=g8,Ede=Sm("fixed inset-0 z-50 flex",{variants:{position:{top:"items-start",bottom:"items-end",left:"justify-start",right:"justify-end"}},defaultVariants:{position:"right"}}),vI=({position:e,className:t,children:n,...r})=>x.jsx(f0,{className:ze(t),...r,children:x.jsx("div",{className:Ede({position:e}),children:n})});vI.displayName=f0.displayName;const yI=y.forwardRef(({className:e,...t},n)=>x.jsx(h0,{className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t,ref:n}));yI.displayName=h0.displayName;const Tde=Sm("fixed z-50 scale-100 gap-4 border bg-background p-6 opacity-100 shadow-lg",{variants:{position:{top:"w-full animate-in slide-in-from-top duration-300",bottom:"w-full animate-in slide-in-from-bottom duration-300",left:"h-full animate-in slide-in-from-left duration-300",right:"h-full animate-in slide-in-from-right duration-300"},size:{content:"",default:"",sm:"",lg:"",xl:"",full:""}},compoundVariants:[{position:["top","bottom"],size:"content",class:"max-h-screen"},{position:["top","bottom"],size:"default",class:"h-1/3"},{position:["top","bottom"],size:"sm",class:"h-1/4"},{position:["top","bottom"],size:"lg",class:"h-1/2"},{position:["top","bottom"],size:"xl",class:"h-5/6"},{position:["top","bottom"],size:"full",class:"h-screen"},{position:["right","left"],size:"content",class:"max-w-screen"},{position:["right","left"],size:"default",class:"w-1/3"},{position:["right","left"],size:"sm",class:"w-1/4"},{position:["right","left"],size:"lg",class:"w-1/2"},{position:["right","left"],size:"xl",class:"w-5/6"},{position:["right","left"],size:"full",class:"w-screen"}],defaultVariants:{position:"right",size:"default"}}),bI=y.forwardRef(({position:e,size:t,showClose:n=!0,className:r,children:i,...a},o)=>x.jsxs(vI,{position:e,children:[x.jsx(yI,{}),x.jsxs(m0,{ref:o,className:ze(Tde({position:e,size:t}),r),...a,children:[i,n&&x.jsxs(Mm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[x.jsx(gm,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));bI.displayName=m0.displayName;const xde=y.forwardRef(({className:e,...t},n)=>x.jsx(p0,{ref:n,className:ze("text-lg font-semibold text-foreground",e),...t}));xde.displayName=p0.displayName;const _de=y.forwardRef(({className:e,...t},n)=>x.jsx(g0,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));_de.displayName=g0.displayName;const wde=()=>{const{t:e}=a0(),[t,n]=y.useState(!1),[r]=Zo(a=>[a.currentConversation]),i=y.useMemo(()=>location.pathname.includes("user")?e("user center"):location.pathname.includes("billing")?e("billing center"):r.title,[r,location.pathname]);return x.jsxs("div",{className:"border-b py-4 text-center",children:[x.jsxs(yde,{open:t,onOpenChange:a=>n(a),children:[x.jsx(bde,{className:"absolute left-4",children:x.jsx(yF,{})}),x.jsx(bI,{className:"w-auto p-0",position:"left",showClose:!1,children:x.jsx(fI,{onChange:()=>n(!1)})})]}),i]})},Sde=()=>{const e=[{path:"/chat",icon:x.jsx(kw,{size:20})},{path:"user",icon:x.jsx(RF,{size:20})},{path:"billing",icon:x.jsx(EF,{size:20})}],t=Hr(),[n,r]=$i(i=>[i.theme,i.setTheme]);return y.useEffect(()=>{r(n)},[]),x.jsxs("div",{className:"flex items-center justify-between border-t px-20 py-4 text-center",children:[e.map((i,a)=>x.jsx("div",{className:Bs("flex flex-col items-center gap-2 rounded-xl p-4",{"bg-secondary":location.pathname.includes(i.path)}),onClick:()=>t(i.path),children:i.icon},a)),x.jsxs(Om,{children:[x.jsx(Rm,{asChild:!0,children:x.jsx(ot,{variant:"ghost",className:"h-9 w-9 p-0",children:x.jsx(Ow,{size:18})})}),x.jsx(u0,{side:"top",align:"start",children:x.jsxs(tl,{className:"flex items-center gap-2 pr-3",children:[x.jsx(DC,{}),x.jsx(eh,{to:"https://github.com/gptlink/gptlink-web",target:"_blank",children:x.jsx(ot,{variant:"ghost",className:"p-0 px-2",children:x.jsx(Nw,{size:18})})})]})})]})]})},Cde=()=>{const e=bl(),t=Hr(),{setWeixinShare:n}=d0(),{checkTask:r}=h8();return y.useEffect(()=>{location.pathname==="/"&&t("/chat"),n(),r(ia.REGISTER),r(ia.INVITE)},[]),VC(),KC(),qC(),x.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[e?x.jsx(wde,{}):x.jsx(PC,{}),x.jsx(nP,{}),e&&x.jsx(Sde,{})]})};function PT(){return x.jsx("div",{className:"flex h-screen w-full items-center justify-center",children:x.jsx("section",{className:"bg-white dark:bg-gray-900",children:x.jsx("div",{className:"mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16",children:x.jsxs("div",{className:"mx-auto max-w-screen-sm text-center",children:[x.jsx("h1",{className:"text-7xl font-extrabold tracking-tight text-primary dark:text-primary lg:text-9xl",children:"404"}),x.jsx("p",{className:"my-8 text-3xl font-bold tracking-tight text-gray-900 dark:text-white md:text-4xl",children:"Whoops! 页面未找到"}),x.jsx(ot,{variant:"destructive",className:"mt-2",children:x.jsx(eh,{to:"/chat",children:"返回首页"})})]})})})})}const $T=()=>localStorage.getItem(yr.AccessToken)?null:(hn.error("请登录"),TD("/login")),Ade=uP([{path:"/",element:x.jsx(Cde,{}),errorElement:x.jsx(PT,{}),children:[{path:"chat",element:x.jsx(sde,{}),index:!0},{path:"user",element:x.jsx(dde,{}),loader:$T},{path:"billing",element:x.jsx(vde,{}),loader:$T}]},{path:"/login",element:x.jsx(uX,{}),errorElement:x.jsx(PT,{})}]);T4.createRoot(document.getElementById("root")).render(x.jsxs(x.Fragment,{children:[x.jsx(eP,{router:Ade}),x.jsx(a$,{})]}))});export default Nde(); +`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var DR=Jle;const fx=ho,E4=Tp,ece=DR;let tce=class extends fx{constructor(t){super(t),this.tokenizer=t,this.posTracker=fx.install(t.preprocessor,ece),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,a){n._createCharacterToken.call(this,i,a),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===E4.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(E4.MODE).forEach(i=>{const a=E4.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var PR=tce;const nce=ho;let rce=class extends nce{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var ice=rce;const x4=ho,hx=Tp,ace=PR,oce=ice,sce=Hi,T4=sce.TAG_NAMES;let lce=class extends x4{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===hx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=x4.install(this.tokenizer,ace);t.posTracker=a.posTracker,x4.install(this.openElements,oce,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===hx.END_TAG_TOKEN&&(r.tagName===T4.HTML||r.tagName===T4.BODY&&this.openElements.hasInScope(T4.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},_p={};const{DOCUMENT_MODE:jl}=Hi,BR="html",Oce="about:legacy-compat",Rce="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",zR=["+//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//"],Mce=zR.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Ice=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],UR=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Lce=UR.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function px(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function gx(e,t){for(let n=0;n-1)return jl.QUIRKS;let r=t===null?Mce:zR;if(gx(n,r))return jl.QUIRKS;if(r=t===null?UR:Lce,gx(n,r))return jl.LIMITED_QUIRKS}return jl.NO_QUIRKS};_p.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+px(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+px(n)),r};var ys={};const _4=Tp,S8=Hi,je=S8.TAG_NAMES,$n=S8.NAMESPACES,Df=S8.ATTRS,vx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Dce="definitionurl",Pce="definitionURL",$ce={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Fce={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:$n.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:$n.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:$n.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:$n.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:$n.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:$n.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:$n.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:$n.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:$n.XML},"xml:space":{prefix:"xml",name:"space",namespace:$n.XML},xmlns:{prefix:"",name:"xmlns",namespace:$n.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:$n.XMLNS}},Bce=ys.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},zce={[je.B]:!0,[je.BIG]:!0,[je.BLOCKQUOTE]:!0,[je.BODY]:!0,[je.BR]:!0,[je.CENTER]:!0,[je.CODE]:!0,[je.DD]:!0,[je.DIV]:!0,[je.DL]:!0,[je.DT]:!0,[je.EM]:!0,[je.EMBED]:!0,[je.H1]:!0,[je.H2]:!0,[je.H3]:!0,[je.H4]:!0,[je.H5]:!0,[je.H6]:!0,[je.HEAD]:!0,[je.HR]:!0,[je.I]:!0,[je.IMG]:!0,[je.LI]:!0,[je.LISTING]:!0,[je.MENU]:!0,[je.META]:!0,[je.NOBR]:!0,[je.OL]:!0,[je.P]:!0,[je.PRE]:!0,[je.RUBY]:!0,[je.S]:!0,[je.SMALL]:!0,[je.SPAN]:!0,[je.STRONG]:!0,[je.STRIKE]:!0,[je.SUB]:!0,[je.SUP]:!0,[je.TABLE]:!0,[je.TT]:!0,[je.U]:!0,[je.UL]:!0,[je.VAR]:!0};ys.causesExit=function(e){const t=e.tagName;return t===je.FONT&&(_4.getTokenAttr(e,Df.COLOR)!==null||_4.getTokenAttr(e,Df.SIZE)!==null||_4.getTokenAttr(e,Df.FACE)!==null)?!0:zce[t]};ys.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=Zce[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=Ap;break}else if(!n&&i===S.HEAD){this.insertionMode=pu;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?Sp:wp;break}else if(n){this.insertionMode=da;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=N8;return}}this.insertionMode=A8}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===$e.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return kl.SPECIAL_ELEMENTS[r][n]}}var tue=eue;function nue(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):_i(e,t),n}function rue(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function iue(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=Qce;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=aue(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function aue(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function oue(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===$e.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function sue(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Ro(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Bn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Bn.endTagWithoutMatchingOpenElement)}function v1(e,t){e.openElements.pop(),e.insertionMode=Sp,e._processToken(t)}function mue(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?On(e,t):n===S.NOSCRIPT?e._err(Bn.nestedNoscriptInHead):y1(e,t)}function pue(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=pu):n===S.BR?y1(e,t):e._err(Bn.endTagWithoutMatchingOpenElement)}function y1(e,t){const n=t.type===j.EOF_TOKEN?Bn.openElementsLeftAfterEof:Bn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=pu,e._processToken(t)}function gue(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.BODY?(e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode=da):n===S.FRAMESET?(e._insertElement(t,$e.HTML),e.insertionMode=Np):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Bn.abandonedHeadElementChild),e.openElements.push(e.headElement),On(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Bn.misplacedStartTagForHeadElement):b1(e,t)}function vue(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?b1(e,t):n===S.TEMPLATE?Ol(e,t):e._err(Bn.endTagWithoutMatchingOpenElement)}function b1(e,t){e._insertFakeElement(S.BODY),e.insertionMode=da,e._processToken(t)}function Ss(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function nf(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function yue(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function bue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Eue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,$e.HTML),e.insertionMode=Np)}function Na(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function xue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,$e.HTML)}function _x(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Tue(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),n||(e.formElement=e.openElements.current))}function _ue(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function wue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.tokenizer.state=j.MODE.PLAINTEXT}function Sue(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.framesetOk=!1}function Cue(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Ro(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hl(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Aue(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Ro(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Nue(e,t){e.treeAdapter.getDocumentMode(e.document)!==kl.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode=Wn}function Zl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$e.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kue(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,$e.HTML);const n=j.getTokenAttr(t,jR.TYPE);(!n||n.toLowerCase()!==HR)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Cx(e,t){e._appendElement(t,$e.HTML),t.ackSelfClosing=!0}function Oue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,$e.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Rue(e,t){t.tagName=S.IMG,Zl(e,t)}function Mue(e,t){e._insertElement(t,$e.HTML),e.skipNextNewLine=!0,e.tokenizer.state=j.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=nm}function Iue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,j.MODE.RAWTEXT)}function Lue(e,t){e.framesetOk=!1,e._switchToTextParsing(t,j.MODE.RAWTEXT)}function Ax(e,t){e._switchToTextParsing(t,j.MODE.RAWTEXT)}function Due(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML),e.framesetOk=!1,e.insertionMode===Wn||e.insertionMode===Cp||e.insertionMode===ai||e.insertionMode===io||e.insertionMode===Ap?e.insertionMode=N8:e.insertionMode=A8}function Nx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML)}function kx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,$e.HTML)}function Pue(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,$e.HTML)}function $ue(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,$e.HTML)}function Fue(e,t){e._reconstructActiveFormattingElements(),ta.adjustTokenMathMLAttrs(t),ta.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,$e.MATHML):e._insertElement(t,$e.MATHML),t.ackSelfClosing=!0}function Bue(e,t){e._reconstructActiveFormattingElements(),ta.adjustTokenSVGAttrs(t),ta.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,$e.SVG):e._insertElement(t,$e.SVG),t.ackSelfClosing=!0}function qr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,$e.HTML)}function Cr(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Hl(e,t):n===S.P?Na(e,t):n===S.A?Cue(e,t):qr(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Na(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?xue(e,t):n===S.LI||n===S.DD||n===S.DT?_ue(e,t):n===S.EM||n===S.TT?Hl(e,t):n===S.BR?Zl(e,t):n===S.HR?Oue(e,t):n===S.RB?kx(e,t):n===S.RT||n===S.RP?Pue(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&qr(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Na(e,t):n===S.PRE?_x(e,t):n===S.BIG?Hl(e,t):n===S.IMG||n===S.WBR?Zl(e,t):n===S.XMP?Iue(e,t):n===S.SVG?Bue(e,t):n===S.RTC?kx(e,t):n!==S.COL&&qr(e,t);break;case 4:n===S.HTML?yue(e,t):n===S.BASE||n===S.LINK||n===S.META?On(e,t):n===S.BODY?bue(e,t):n===S.MAIN||n===S.MENU?Na(e,t):n===S.FORM?Tue(e,t):n===S.CODE||n===S.FONT?Hl(e,t):n===S.NOBR?Aue(e,t):n===S.AREA?Zl(e,t):n===S.MATH?Fue(e,t):n===S.MENU?$ue(e,t):n!==S.HEAD&&qr(e,t);break;case 5:n===S.STYLE||n===S.TITLE?On(e,t):n===S.ASIDE?Na(e,t):n===S.SMALL?Hl(e,t):n===S.TABLE?Nue(e,t):n===S.EMBED?Zl(e,t):n===S.INPUT?kue(e,t):n===S.PARAM||n===S.TRACK?Cx(e,t):n===S.IMAGE?Rue(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&qr(e,t);break;case 6:n===S.SCRIPT?On(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Na(e,t):n===S.BUTTON?Sue(e,t):n===S.STRIKE||n===S.STRONG?Hl(e,t):n===S.APPLET||n===S.OBJECT?Sx(e,t):n===S.KEYGEN?Zl(e,t):n===S.SOURCE?Cx(e,t):n===S.IFRAME?Lue(e,t):n===S.SELECT?Due(e,t):n===S.OPTION?Nx(e,t):qr(e,t);break;case 7:n===S.BGSOUND?On(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Na(e,t):n===S.LISTING?_x(e,t):n===S.MARQUEE?Sx(e,t):n===S.NOEMBED?Ax(e,t):n!==S.CAPTION&&qr(e,t);break;case 8:n===S.BASEFONT?On(e,t):n===S.FRAMESET?Eue(e,t):n===S.FIELDSET?Na(e,t):n===S.TEXTAREA?Mue(e,t):n===S.TEMPLATE?On(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?Ax(e,t):qr(e,t):n===S.OPTGROUP?Nx(e,t):n!==S.COLGROUP&&qr(e,t);break;case 9:n===S.PLAINTEXT?wue(e,t):qr(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Na(e,t):qr(e,t);break;default:qr(e,t)}}function zue(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=k8)}function Uue(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=k8,e._processToken(t))}function _o(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function jue(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Hue(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function Gue(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function Vue(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Kue(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Ox(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Wue(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function _i(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function O8(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Ro(e,t):n===S.P?Hue(e):_i(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?_o(e,t):n===S.LI?Gue(e):n===S.DD||n===S.DT?Vue(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Kue(e):n===S.BR?Wue(e):n===S.EM||n===S.TT?Ro(e,t):_i(e,t);break;case 3:n===S.BIG?Ro(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?_o(e,t):_i(e,t);break;case 4:n===S.BODY?zue(e):n===S.HTML?Uue(e,t):n===S.FORM?jue(e):n===S.CODE||n===S.FONT||n===S.NOBR?Ro(e,t):n===S.MAIN||n===S.MENU?_o(e,t):_i(e,t);break;case 5:n===S.ASIDE?_o(e,t):n===S.SMALL?Ro(e,t):_i(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?_o(e,t):n===S.APPLET||n===S.OBJECT?Ox(e,t):n===S.STRIKE||n===S.STRONG?Ro(e,t):_i(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?_o(e,t):n===S.MARQUEE?Ox(e,t):_i(e,t);break;case 8:n===S.FIELDSET?_o(e,t):n===S.TEMPLATE?Ol(e,t):_i(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?_o(e,t):_i(e,t);break;default:_i(e,t)}}function ka(e,t){e.tmplInsertionModeStackTop>-1?ZR(e,t):e.stopped=!0}function que(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Yue(e,t){e._err(Bn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Oa(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=KR,e._processToken(t)):Xr(e,t)}function Xue(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,$e.HTML),e.insertionMode=Cp}function Que(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$e.HTML),e.insertionMode=V0}function Zue(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=V0,e._processToken(t)}function Jue(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,$e.HTML),e.insertionMode=ai}function e1e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=ai,e._processToken(t)}function t1e(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function n1e(e,t){const n=j.getTokenAttr(t,jR.TYPE);n&&n.toLowerCase()===HR?e._appendElement(t,$e.HTML):Xr(e,t),t.ackSelfClosing=!0}function r1e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,$e.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function R8(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?e1e(e,t):Xr(e,t);break;case 3:n===S.COL?Zue(e,t):Xr(e,t);break;case 4:n===S.FORM?r1e(e,t):Xr(e,t);break;case 5:n===S.TABLE?t1e(e,t):n===S.STYLE?On(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?Jue(e,t):n===S.INPUT?n1e(e,t):Xr(e,t);break;case 6:n===S.SCRIPT?On(e,t):Xr(e,t);break;case 7:n===S.CAPTION?Xue(e,t):Xr(e,t);break;case 8:n===S.COLGROUP?Que(e,t):n===S.TEMPLATE?On(e,t):Xr(e,t);break;default:Xr(e,t)}}function M8(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?Ol(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&Xr(e,t)}function Xr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function i1e(e,t){e.pendingCharacterTokens.push(t)}function a1e(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function zu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function E1e(e,t){t.tagName===S.HTML?Cr(e,t):am(e,t)}function x1e(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=qR):am(e,t)}function am(e,t){e.insertionMode=da,e._processToken(t)}function T1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.FRAMESET?e._insertElement(t,$e.HTML):n===S.FRAME?(e._appendElement(t,$e.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&On(e,t)}function _1e(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=WR))}function w1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.NOFRAMES&&On(e,t)}function S1e(e,t){t.tagName===S.HTML&&(e.insertionMode=YR)}function C1e(e,t){t.tagName===S.HTML?Cr(e,t):Pf(e,t)}function Pf(e,t){e.insertionMode=da,e._processToken(t)}function A1e(e,t){const n=t.tagName;n===S.HTML?Cr(e,t):n===S.NOFRAMES&&On(e,t)}function N1e(e,t){t.chars=qce.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function k1e(e,t){e._insertCharacters(t),e.framesetOk=!1}function O1e(e,t){if(ta.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$e.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===$e.MATHML?ta.adjustTokenMathMLAttrs(t):r===$e.SVG&&(ta.adjustTokenSVGTagName(t),ta.adjustTokenSVGAttrs(t)),ta.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function R1e(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===$e.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const M1e=wr(tue);function I1e(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:a};function i(o){let s=-1;if(typeof o=="number"&&o>-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,l=o&&o.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c{const L=R;if(L.value.stitch&&I!==null&&D!==null)return I.children[D]=L.value.stitch,D}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const R={nodeName:"template",tagName:"template",attrs:[],namespaceURI:Qo.html,childNodes:[]},D={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:Qo.html,childNodes:[]},I={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(D,R),i._pushTmplInsertionMode(Y1e),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,a(e),N(),i._adoptNodes(D.childNodes[0],I),I}function h(){const R=i.treeAdapter.createDocument();if(i._bootstrap(R,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,a(e),N(),R}function m(R){let D=-1;if(R)for(;++DrM(t,n,e)}function u0e(e){const t=y.useRef(null);return b.jsxs("pre",{ref:t,className:"group relative mt-2 overflow-auto rounded bg-primary/90 p-2 text-primary-foreground",children:[b.jsx(Je,{title:"复制",variant:"secondary",className:"absolute right-0 mr-2 hidden h-6 w-6 rounded p-0 group-hover:flex",onClick:()=>{if(t.current){const n=t.current.innerText;s6(n),Zt.success("已复制到剪贴板")}},children:b.jsx($w,{size:14})}),e.children]})}function d0e(e){return b.jsx(Nk,{remarkPlugins:[Fle,Ale,Voe],rehypePlugins:[c0e,Boe,[_ie,{detect:!0,ignoreMissing:!0}]],components:{pre:u0e},children:e.content})}const iM=({data:e,isCheckedMode:t=!1,isChecked:n=!1,isDownload:r=!1,onCheckedChange:i})=>{var d;const[{nickname:a,avatar:o}]=di(f=>[f.userInfo]),[s]=ts(f=>[f.regenerateChat]),[l]=zi(f=>[f.appConfig]),c=()=>{s6(e.text),Zt.success("已复制到剪贴板")},u=()=>e.status===Ji.START?b.jsx(dl,{className:"animate-spin",size:24}):e.status===Ji.ERROR?e.error:b.jsx(d0e,{content:e.text});return b.jsxs("div",{className:"flex",children:[t&&b.jsx(Hm,{checked:n,className:"ml-2 mt-4",onCheckedChange:i}),b.jsxs("div",{className:ia("p-3 rounded h-fit flex gap-4 items-start w-full flex-1 mb-6 last-of-type:mb-0",{"flex-row-reverse":e.role===Ra.USER}),children:[e.role===Ra.USER?b.jsxs(V1,{className:"h-10 w-10",children:[b.jsx(K1,{src:o||l.user_logo,alt:a}),b.jsx(Dm,{children:(d=a.slice(0,1))==null?void 0:d.toUpperCase()})]}):b.jsx(V1,{className:"h-10 w-10",children:b.jsx(K1,{src:l.web_logo})}),b.jsxs("div",{className:ia("flex-1 items-start flex flex-col overflow-hidden",{"items-end":e.role===Ra.USER}),children:[b.jsx("p",{className:"text-xs text-neutral-400",children:qQ(e.dateTime).format("YYYY-MM-DD HH:mm:ss")}),b.jsxs("div",{className:ia("max-w-full flex mt-2 items-end gap-2",{"flex-row-reverse":e.role===Ra.USER}),children:[b.jsx("div",{className:ia("flex-1 p-3 rounded-md break-words overflow-hidden border",{"bg-primary text-primary-foreground hover:bg-primary/90":e.role===Ra.USER,"bg-secondary text-secondary-foreground hover:bg-secondary/80 markdown-table":[Ra.ASSISTANT,Ra.SYSTEM].includes(e.role)&&e.status!==Ji.ERROR,"bg-destructive text-destructive-foreground":e.status===Ji.ERROR}),children:u()}),b.jsx("div",{className:"shrink-0 pb-1 text-sm",children:!r&&b.jsxs(b.Fragment,{children:[[Ra.ASSISTANT].includes(e.role)&&b.jsx(BF,{className:"mb-1 hover:cursor-pointer",size:12,onClick:()=>s(e.requestId)}),b.jsx($w,{className:"hover:cursor-pointer",size:12,onClick:c})]})})]})]})]})]})},f0e=({messages:e,shareUrl:t})=>{const n=y.useRef(null),[r,i]=y.useState(!1),[a,o]=y.useState(""),s=wl(),[l]=ts(d=>[d.currentConversation]),{isWeixinBrowser:c}=T0(),u=async()=>{setTimeout(async()=>{if(!n.current)return;const f=await(c?$6:yN)(n.current,{style:{opacity:"1"}});o(f)},300),i(!0)};return b.jsxs(b.Fragment,{children:[r&&Zc.createPortal(b.jsxs("div",{ref:n,className:"bg-background p-8",children:[b.jsx("div",{className:"min-h-[10rem]",children:e.map((d,f)=>b.jsx(iM,{data:d,isDownload:!0},f))}),b.jsxs("div",{className:"m-auto mt-10 flex flex-col items-center gap-2",children:[b.jsx(F6,{style:{width:"8rem",height:"8rem"},value:t}),b.jsx("div",{children:"扫一扫,马上体验"})]})]}),document.body),b.jsx(ou,{open:r,onOpenChange:d=>i(d),children:b.jsxs(El,{children:[b.jsx(xl,{children:b.jsx(Tl,{children:"对话海报"})}),b.jsx(D0,{children:b.jsx(wh,{className:"h-[30rem]",children:b.jsx("img",{src:a,alt:""})})}),s&&b.jsx(wh,{className:"text-center",children:"长按图片保存"}),b.jsxs(Vm,{children:[b.jsx(AA,{children:"取消"}),!s&&b.jsx(Km,{onClick:()=>{_N.saveAs(a,`${l.title}.jpg`)},children:"下载"})]})]})}),b.jsxs(Je,{disabled:e.length===0,variant:"ghost",className:"flex w-32 gap-2",onClick:()=>{u()},children:[b.jsx(Fw,{size:20})," 生成图片"]})]})};let Ix=-1;const h0e=({isDownload:e=!1,selectedMessagesIDs:t,onIsDownloadChange:n,onSelectMessagesIds:r})=>{const[i,a]=y.useState(""),[o,s,l,c,u,d]=ts(D=>[D.sendUserMessage,D.isStream,D.clearCurrentConversation,D.stopStream,D.currentChatData(),D.setStream]),[{openid:f},h]=di(D=>[D.userInfo,D.isLogin()]),[m,g]=ts(D=>[D.currentConversation,D.editConversation]),E=wl(),p=D=>{D.code==="Enter"&&!D.shiftKey&&i.replace(/\n/g,"")&&C()},v=Hr(),T=x6(),C=async()=>{if(!h){Zt.error("请登录"),v("/login");return}u.length||g(m.uuid,{title:i}),o(i),a(""),setTimeout(()=>{var D;(D=O.current)==null||D.focus()},1e3)},O=y.useRef(null),N=y.useMemo(()=>u.filter(D=>t.includes(D.id)),[r]),R=y.useMemo(()=>u.map(D=>D.id),[u]);return y.useEffect(()=>{if(O.current){O.current.style.height="0px";const D=O.current.scrollHeight;O.current.style.height=D+4+"px"}},[O,i]),y.useEffect(()=>{d(!1)},[]),b.jsxs("footer",{children:[b.jsx("div",{className:ia("flex items-end gap-4 p-4",{"border-t items-center justify-between":e}),children:e?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(Hm,{checked:t.length===R.length,className:"mr-2",onCheckedChange:D=>{r(D?R:[])}}),"全选"]}),b.jsx(f0e,{messages:N,shareUrl:location.origin+`/chat?shareOpenId=${f}`}),b.jsx(Je,{variant:"destructive",onClick:()=>{n(!1)},children:"取消"})]}):b.jsxs(b.Fragment,{children:[b.jsxs(Um,{children:[b.jsx(jm,{asChild:!0,children:b.jsx(Je,{variant:"ghost",className:"h-9 w-9 p-0",children:b.jsx(Uw,{size:18})})}),b.jsxs(x0,{side:"top",align:"end",children:[b.jsxs(nl,{className:"flex items-center gap-2",onClick:()=>{confirm("你确定要清除所有的消息吗?")&&(l(),a(""))},children:[b.jsx(jw,{size:16})," 清空消息"]}),b.jsxs(nl,{className:"flex items-center gap-2",onClick:()=>{n(!0)},children:[b.jsx(Fw,{size:16}),"对话海报"]})]})]}),b.jsxs("div",{className:"relative flex-1",children:[s&&b.jsx("div",{className:"absolute left-0 z-10 flex w-full justify-center",children:b.jsx(Je,{variant:"destructive",onClick:()=>c(),children:b.jsx($F,{})})}),b.jsx(uN,{ref:O,className:ia("h-10 max-h-[7rem] min-h-[20px] w-full flex-1 resize-none scroll-bar-none",{"blur-sm":s}),onKeyDown:p,disabled:s,value:i,placeholder:E?"来说点什么...":"来说点什么...(Shift + Enter = 换行)",onChange:D=>a(D.target.value)})]}),b.jsx(Je,{disabled:s||!i.replace(/\n/g,""),onClick:()=>{C()},children:s?b.jsx(dl,{className:"m-auto my-32 animate-spin"}):b.jsx(zF,{})})]})}),T.icp?b.jsx("div",{className:"mb-1 mt-[-0.5rem] flex justify-center",children:b.jsx("a",{href:"https://beian.miit.gov.cn/",target:"_blank",className:"text-xs text-slate-500",children:T.icp})}):b.jsx(b.Fragment,{})]})},m0e=({isDownload:e,selectedMessagesIDs:t,onSelectMessagesIds:n})=>{const[r,i]=ts(s=>[s.isStream,s.currentChatData()]),a=y.useRef(null),o=(s="smooth")=>{a.current&&a.current.scrollIntoView({behavior:s,block:"end"})};return y.useEffect(()=>{o("auto")},[]),y.useEffect(()=>{r?(o(),Ix=setInterval(()=>{o()},1e3)):clearInterval(Ix)},[r]),b.jsx("div",{className:"scroll-bar-none flex-1 overflow-y-auto overflow-x-hidden",children:b.jsxs("main",{className:"m-auto w-full max-w-screen-xl overflow-auto p-4",ref:a,children:[i.length===0&&b.jsxs("div",{className:"m-auto mt-2 w-fit text-center text-secondary-foreground",children:[b.jsx(wX,{className:"mr-1 inline-block w-10"}),"开始提问吧~"]}),i.map((s,l)=>b.jsx(iM,{data:s,isCheckedMode:e,isChecked:t.includes(s.id||""),onCheckedChange:c=>{n(c?t.concat(s.id):t.filter(u=>u!==s.id))}},l))]})})},p0e=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState([]);return y.useEffect(()=>{e||r([])},[e]),b.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[b.jsx(m0e,{isDownload:e,selectedMessagesIDs:n,onSelectMessagesIds:i=>r(i)}),b.jsx(h0e,{selectedMessagesIDs:n,isDownload:e,onIsDownloadChange:i=>t(i),onSelectMessagesIds:i=>r(i)})]})},g0e={getRoleList(){return pt("chat-gpt-model?platform=1&is_all=true")}},E1=/^[a-z0-9]+(-[a-z0-9]+)*$/,kp=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:s};return t&&!Ff(c)?null:c}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!Ff(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:a};return t&&!Ff(s,n)?null:s}return null},Ff=(e,t)=>e?!!((e.provider===""||e.provider.match(E1))&&(t&&e.prefix===""||e.prefix.match(E1))&&e.name.match(E1)):!1,aM=Object.freeze({left:0,top:0,width:16,height:16}),om=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),D8=Object.freeze({...aM,...om}),P2=Object.freeze({...D8,body:"",hidden:!1});function v0e(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Lx(e,t){const n=v0e(e,t);for(const r in P2)r in om?r in e&&!(r in n)&&(n[r]=om[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function y0e(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=r[o]&&r[o].parent,l=s&&a(s);l&&(i[o]=[s].concat(l))}return i[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function b0e(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=Lx(r[s]||i[s],a)}return o(t),n.forEach(o),Lx(e,a)}function oM(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=y0e(e);for(const i in r){const a=r[i];a&&(t(i,b0e(e,i,a)),n.push(i))}return n}const E0e={provider:"",aliases:{},not_found:{},...aM};function w4(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sM(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!w4(e,E0e))return null;const n=t.icons;for(const i in n){const a=n[i];if(!i.match(E1)||typeof a.body!="string"||!w4(a,P2))return null}const r=t.aliases||Object.create(null);for(const i in r){const a=r[i],o=a.parent;if(!i.match(E1)||typeof o!="string"||!n[o]&&!r[o]||!w4(a,P2))return null}return t}const Dx=Object.create(null);function x0e(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ol(e,t){const n=Dx[e]||(Dx[e]=Object.create(null));return n[t]||(n[t]=x0e(e,t))}function P8(e,t){return sM(t)?oM(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function T0e(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let a0=!1;function lM(e){return typeof e=="boolean"&&(a0=e),a0}function _0e(e){const t=typeof e=="string"?kp(e,!0,a0):e;if(t){const n=ol(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function w0e(e,t){const n=kp(e,!0,a0);if(!n)return!1;const r=ol(n.provider,n.prefix);return T0e(r,n.name,t)}function S0e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),a0&&!t&&!e.prefix){let i=!1;return sM(e)&&(e.prefix="",oM(e,(a,o)=>{o&&w0e(a,o)&&(i=!0)})),i}const n=e.prefix;if(!Ff({provider:t,prefix:n,name:"a"}))return!1;const r=ol(t,n);return!!P8(r,e)}const cM=Object.freeze({width:null,height:null}),uM=Object.freeze({...cM,...om}),C0e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,A0e=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Px(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(C0e);if(r===null||!r.length)return e;const i=[];let a=r.shift(),o=A0e.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");o=!o}}const N0e=e=>e==="unset"||e==="undefined"||e==="none";function k0e(e,t){const n={...D8,...e},r={...uM,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(m=>{const g=[],E=m.hFlip,p=m.vFlip;let v=m.rotate;E?p?v+=2:(g.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),g.push("scale(-1 1)"),i.top=i.left=0):p&&(g.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),g.push("scale(1 -1)"),i.top=i.left=0);let T;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:T=i.height/2+i.top,g.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:g.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:T=i.width/2+i.left,g.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}v%2===1&&(i.left!==i.top&&(T=i.left,i.left=i.top,i.top=T),i.width!==i.height&&(T=i.width,i.width=i.height,i.height=T)),g.length&&(a=''+a+"")});const o=r.width,s=r.height,l=i.width,c=i.height;let u,d;o===null?(d=s===null?"1em":s==="auto"?c:s,u=Px(d,l/c)):(u=o==="auto"?l:o,d=s===null?Px(u,c/l):s==="auto"?c:s);const f={},h=(m,g)=>{N0e(g)||(f[m]=g.toString())};return h("width",u),h("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:f,body:a}}const O0e=/\sid="(\S+)"/g,R0e="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let M0e=0;function I0e(e,t=R0e){const n=[];let r;for(;r=O0e.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const o=typeof t=="function"?t(a):t+(M0e++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const $2=Object.create(null);function L0e(e,t){$2[e]=t}function F2(e){return $2[e]||$2[""]}function $8(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const F8=Object.create(null),Uu=["https://api.simplesvg.com","https://api.unisvg.com"],Bf=[];for(;Uu.length>0;)Uu.length===1||Math.random()>.5?Bf.push(Uu.shift()):Bf.push(Uu.pop());F8[""]=$8({resources:["https://api.iconify.design"].concat(Bf)});function D0e(e,t){const n=$8(t);return n===null?!1:(F8[e]=n,!0)}function B8(e){return F8[e]}const P0e=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $x=P0e();function $0e(e,t){const n=B8(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";r=n.maxURL-i-n.path.length-a.length}return r}function F0e(e){return e===404}const B0e=(e,t,n)=>{const r=[],i=$0e(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function z0e(e){if(typeof e=="string"){const t=B8(e);if(t)return t.path}return"/"}const U0e=(e,t,n)=>{if(!$x){n("abort",424);return}let r=z0e(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=a+".json?"+l.toString();break}case"custom":{const a=t.uri;r+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let i=503;$x(e+r).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{n(F0e(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",i)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",i)})},j0e={prepare:B0e,send:U0e};function H0e(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const a=i.provider,o=i.prefix,s=i.name,l=n[a]||(n[a]=Object.create(null)),c=l[o]||(l[o]=ol(a,o));let u;s in c.icons?u=t.loaded:o===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:a,prefix:o,name:s};u.push(d)}),t}function dM(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function G0e(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])o.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))o.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||dM([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let V0e=0;function K0e(e,t,n){const r=V0e++,i=dM.bind(null,n,r);if(!t.pending.length)return i;const a={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function W0e(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const a=typeof i=="string"?kp(i,t,n):i;a&&r.push(a)}),r}var q0e={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Y0e(e,t,n,r){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let N=e.resources.slice(0);for(o=[];N.length>1;){const R=Math.floor(Math.random()*N.length);o.push(N[R]),N=N.slice(0,R).concat(N.slice(R+1))}o=o.concat(N)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function m(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),m(),f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function E(N,R){R&&(h=[]),typeof N=="function"&&h.push(N)}function p(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:E,abort:g}}function v(){l="failed",h.forEach(N=>{N(void 0,u)})}function T(){f.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),f=[]}function C(N,R,D){const I=R!=="success";switch(f=f.filter(L=>L!==N),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){u=D,v();return}if(I){u=D,f.length||(o.length?O():v());return}if(m(),T(),!e.random){const L=e.resources.indexOf(N.resource);L!==-1&&L!==e.index&&(e.index=L)}l="completed",h.forEach(L=>{L(D)})}function O(){if(l!=="pending")return;m();const N=o.shift();if(N===void 0){if(f.length){d=setTimeout(()=>{m(),l==="pending"&&(T(),v())},e.timeout);return}v();return}const R={status:"pending",resource:N,callback:(D,I)=>{C(R,D,I)}};f.push(R),c++,d=setTimeout(O,e.rotate),n(N,t,R.callback)}return setTimeout(O),p}function fM(e){const t={...q0e,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=Y0e(t,s,l,(d,f)=>{r(),c&&c(d,f)});return n.push(u),u}function a(s){return n.find(l=>s(l))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function Fx(){}const S4=Object.create(null);function X0e(e){if(!S4[e]){const t=B8(e);if(!t)return;const n=fM(t),r={config:t,redundancy:n};S4[e]=r}return S4[e]}function Q0e(e,t,n){let r,i;if(typeof e=="string"){const a=F2(e);if(!a)return n(void 0,424),Fx;i=a.send;const o=X0e(e);o&&(r=o.redundancy)}else{const a=$8(e);if(a){r=fM(a);const o=e.resources?e.resources[0]:"",s=F2(o);s&&(i=s.send)}}return!r||!i?(n(void 0,424),Fx):r.query(t,i,n)().abort}const Bx="iconify2",o0="iconify",hM=o0+"-count",zx=o0+"-version",mM=36e5,Z0e=168;function B2(e,t){try{return e.getItem(t)}catch{}}function z8(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ux(e,t){try{e.removeItem(t)}catch{}}function z2(e,t){return z8(e,hM,t.toString())}function U2(e){return parseInt(B2(e,hM))||0}const Op={local:!0,session:!0},pM={local:new Set,session:new Set};let U8=!1;function J0e(e){U8=e}let rf=typeof window>"u"?{}:window;function gM(e){const t=e+"Storage";try{if(rf&&rf[t]&&typeof rf[t].length=="number")return rf[t]}catch{}Op[e]=!1}function vM(e,t){const n=gM(e);if(!n)return;const r=B2(n,zx);if(r!==Bx){if(r){const s=U2(n);for(let l=0;l{const l=o0+s.toString(),c=B2(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}Ux(n,l)}};let o=U2(n);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,z2(n,o)):pM[e].add(s))}function yM(){if(!U8){J0e(!0);for(const e in Op)vM(e,t=>{const n=t.data,r=t.provider,i=n.prefix,a=ol(r,i);if(!P8(a,n).length)return!1;const o=n.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function ede(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Op)vM(r,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function tde(e,t){U8||yM();function n(r){let i;if(!Op[r]||!(i=gM(r)))return;const a=pM[r];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=U2(i),!z2(i,o+1))return;const s={cached:Math.floor(Date.now()/mM),provider:e.provider,data:t};return z8(i,o0+o.toString(),JSON.stringify(s))}t.lastModified&&!ede(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function jx(){}function nde(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,G0e(e)}))}function rde(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=F2(n)))return;a.prepare(n,r,i).forEach(s=>{Q0e(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=P8(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),tde(e,l)}catch(c){console.error(c)}nde(e)})})}))}const ide=(e,t)=>{const n=W0e(e,!0,lM()),r=H0e(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,jx)}),()=>{l=!1}}const i=Object.create(null),a=[];let o,s;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===o)return;o=c,s=u,a.push(ol(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=ol(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),i[c][u].push(d))}),a.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&rde(l,i[c][u])}),t?K0e(t,r,a):jx};function ade(e,t){const n={...e};for(const r in t){const i=t[r],a=typeof i;r in cM?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const ode=/[\s,]+/;function sde(e,t){t.split(ode).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function lde(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return t}function cde(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function ude(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function dde(e){return'url("data:image/svg+xml,'+ude(e)+'")'}const bM={...uM,inline:!1},fde={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},hde={display:"inline-block"},j2={backgroundColor:"currentColor"},EM={backgroundColor:"transparent"},Hx={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Gx={webkitMask:j2,mask:j2,background:EM};for(const e in Gx){const t=Gx[e];for(const n in Hx)t[e+n]=Hx[n]}const mde={...bM,inline:!0};function Vx(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const pde=(e,t,n,r)=>{const i=n?mde:bM,a=ade(i,t),o=t.mode||"svg",s={},l=t.style||{},c={...o==="svg"?fde:{},ref:r};for(let p in t){const v=t[p];if(v!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[p]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&sde(a,v);break;case"color":s.color=v;break;case"rotate":typeof v=="string"?a[p]=lde(v):typeof v=="number"&&(a[p]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete c["aria-hidden"];break;default:i[p]===void 0&&(c[p]=v)}}const u=k0e(e,a),d=u.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){c.style={...s,...l},Object.assign(c,d);let p=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:I0e(u.body,v?()=>v+"ID"+p++:"iconifyReact")},He.createElement("svg",c)}const{body:f,width:h,height:m}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),E=cde(f,{...d,width:h+"",height:m+""});return c.style={...s,"--svg":dde(E),width:Vx(d.width),height:Vx(d.height),...hde,...g?j2:EM,...l},He.createElement("span",c)};lM(!0);L0e("",j0e);if(typeof document<"u"&&typeof window<"u"){yM();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!S0e(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;D0e(n,i)||console.error(r)}catch{console.error(r)}}}}class xM extends He.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=kp(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=_0e(i);if(!a){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:r,abort:ide([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:He.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),pde({...D8,...n.data},r,t._inline,t._ref)}}const gde=He.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return He.createElement(xM,r)});He.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return He.createElement(xM,r)});const Rp=({icon:e="",className:t=""})=>b.jsx(gde,{icon:e,className:t});function vde({data:e,children:t,roleSelect:n}){const[r,i]=y.useState(!1);return b.jsxs(ou,{open:r,onOpenChange:a=>i(a),children:[b.jsx(N0,{asChild:!0,children:t}),b.jsxs(El,{children:[b.jsx(xl,{children:b.jsxs(Tl,{className:"flex justify-between",children:["全部角色",b.jsx(Je,{className:"h-6 w-6 p-1",variant:"ghost",onClick:()=>i(!1),children:b.jsx(tu,{size:16})})]})}),b.jsx(D0,{children:b.jsx("div",{className:"grid max-h-80 grid-cols-3 gap-2",children:e.map((a,o)=>b.jsxs(Je,{variant:"outline",className:"flex h-fit items-center justify-start gap-1 px-2",onClick:()=>{n(a),i(!1)},children:[b.jsx(Rp,{icon:a.icon,className:"shrink-0"}),b.jsx("span",{className:"truncate",title:a.name,children:a.name})]},o))})})]})]})}const yde=({onChange:e})=>{const{t}=p0(),[n,r,i,a,o,s]=ts(m=>[m.conversationList,m.currentConversation,m.addConversation,m.switchConversation,m.delConversation,m.editConversation]),[l,c]=y.useState(""),[u,d]=y.useState(""),f=m=>{d(""),c(""),s(u,{title:l}),m==null||m.stopPropagation(),e==null||e()},h=m=>{m.code=="Enter"&&f()};return b.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[b.jsxs(Je,{variant:"outline",className:"m-4 shrink-0 border-dashed leading-8",onClick:()=>{i(),e==null||e()},children:[b.jsx(FF,{size:16,className:"mr-2"})," ",t("new conversation")]}),b.jsx(D0,{children:b.jsx("div",{className:"flex w-64 flex-1 flex-col gap-4 overflow-auto px-4",children:n.map((m,g)=>b.jsxs(Je,{variant:r.uuid===m.uuid?"default":"outline",className:"flex justify-start gap-2 px-3",title:m.title,onClick:()=>{a(m.uuid),e==null||e()},children:[m.icon?b.jsx(Rp,{className:"shrink-0",icon:m.icon}):b.jsx(zw,{className:"shrink-0",size:14}),u===m.uuid?b.jsxs(b.Fragment,{children:[b.jsx("input",{value:l,autoFocus:!0,onChange:E=>c(E.target.value),onKeyDown:h,className:"flex-1 overflow-hidden rounded-sm px-2 text-secondary-foreground outline-none dark:text-secondary"}),b.jsx(tu,{className:"shrink-0",size:14,onClick:()=>{d(""),c("")}}),b.jsx(G9,{className:"shrink-0",size:14,onClick:f})]}):b.jsxs(b.Fragment,{children:[b.jsx("p",{className:"flex-1 truncate text-left",children:m.title}),b.jsx(IF,{size:14,onClick:E=>{d(m.uuid),c(m.title),E.stopPropagation()}}),b.jsx(jw,{size:14,onClick:E=>{confirm("确定删除该对话吗?")&&(o(m.uuid),E.stopPropagation())}})]})]},g))})})]})},bde=({data:e,onChange:t})=>{const{t:n}=p0(),[r]=ts(i=>[i.addConversation]);return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"text-center leading-8",children:["—— ",n("role")," ——"]}),b.jsx("div",{className:"grid h-44 grid-cols-2 gap-2 px-4",children:e.slice(0,8).map((i,a)=>b.jsxs(Je,{variant:"outline",className:"flex h-fit items-center justify-start gap-1 px-2",onClick:()=>{r(i.name,i.icon,i.prompt,i.id),t==null||t()},children:[b.jsx(Rp,{icon:i.icon,className:"shrink-0"}),b.jsx("span",{className:"truncate",title:i.name,children:i.name})]},a))}),b.jsx(vde,{data:e,roleSelect:i=>r(i.name,i.icon,i.prompt,i.id),children:b.jsx(Je,{variant:"secondary",className:"mx-4 mb-4",children:"全部角色"})})]})},TM=({onChange:e})=>{const[t,n]=y.useState([]);return y.useEffect(()=>{(async()=>{const i=await g0e.getRoleList();n(i)})()},[]),b.jsxs("aside",{className:"flex h-full w-64 shrink-0 flex-col gap-4 overflow-hidden border-r text-xs",children:[b.jsx(yde,{onChange:e}),b.jsx(bde,{data:t,onChange:e})]})};function Ede(){const e=wl();return b.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!e&&b.jsx(TM,{}),b.jsx(p0e,{})]})}const xde="/assets/poster-34c80d2f.png";function Tde({open:e,shareUrl:t,handleOpenChange:n,type:r}){const i=y.useRef(null),a=wl(),[o,s]=y.useState(""),[l,c]=y.useState(Object.create(null)),{shareCallback:u}=T6(),{isWeixinBrowser:d}=T0(),f=async()=>{if(!i.current)return;const m=await(d?$6:yN)(i.current,{style:{opacity:"1"}});s(m)};return y.useEffect(()=>{e&&setTimeout(()=>{f()},500)},[e]),y.useEffect(()=>{(async()=>{const m=await Gs.getShareConfig();c(m)})()},[]),b.jsx(su,{open:e,onOpenChange:h=>{!h&&r===Fr.SHARE&&u(),n(h)},children:b.jsxs(_l,{id:"shareBody",className:"w-[25rem]",children:[b.jsx(lu,{children:"分享"}),b.jsxs("div",{children:[b.jsxs("div",{className:"mb-2 flex",children:[b.jsx(cn,{value:t,disabled:!0}),b.jsx(Je,{className:"ml-2 shrink-0",onClick:()=>{s6(t,document.getElementById("shareBody")),vr.success("复制成功")},children:"复制链接"})]}),b.jsxs("div",{className:"relative overflow-auto max-sm:h-[30rem]",children:[b.jsx("img",{src:o,className:"absolute left-0 top-0 z-10 w-full",alt:""}),b.jsxs("div",{className:"relative",ref:i,children:[b.jsx("img",{src:l.share_img||xde,className:"w-full"}),b.jsx(F6,{className:"absolute bottom-1 left-[50%] m-auto -translate-x-1/2",style:{width:"3.5rem",height:"3.5rem"},value:t})]})]}),b.jsxs(C6,{className:"mt-2 text-center",children:[a&&"长按","保存上方图片,分享你专属海报给朋友"]})]}),b.jsx(MA,{children:!a&&b.jsx(Je,{className:"mt-2",onClick:()=>{_N.saveAs(o,"分享海报.jpg")},children:"下载"})})]})})}const _de={[Fr.INVITE]:{button:"立即邀请",icon:b.jsx(HF,{}),completed:"立即邀请"},[Fr.SHARE]:{button:"立即分享",icon:b.jsx(UF,{}),completed:"立即分享"},[Fr.SALESMAN]:{button:"成为分销员",icon:b.jsx(LF,{}),completed:"立即前往"}};function wde(){var C;const[e,t]=y.useState([]),[n,r]=y.useState(!1),[i,a]=y.useState(),[{avatar:o,nickname:s,openid:l,identity:c},u]=di(O=>[O.userInfo,O.signOut]),[d,f,h]=a6(O=>[O.currentBill,O.remaining(),O.getCurrentBilling]),[m]=zi(O=>[O.appConfig]),g=Hr(),E=wl(),p=()=>{u(),g("/login")};y.useEffect(()=>{const O=async()=>{const R=await N(),D=await $a.getTaskList(1),I=[...R||[],...D];t(I.filter(L=>L.type!==Fr.REGISTER))},N=async()=>{const{open:R,enable:D}=await $a.getSalesmanConfig();return D&&R||!R&&c===2?[{id:0,type:Fr.SALESMAN,title:"分销赚钱",desc:"邀请好友,赚取佣金",is_completed:c===2,is_subscribe:!0,model_count:0}]:null};O(),h()},[]);const v=O=>_de[O],T=async O=>{r(!0),a(O)};return b.jsxs("div",{className:"flex h-screen items-center justify-center",children:[b.jsxs("div",{className:"w-[32rem] -translate-y-3 rounded-xl border p-10 shadow-xl max-sm:w-[22rem] max-sm:p-5",children:[b.jsxs("div",{className:"flex max-w-5xl items-center gap-4 text-secondary-foreground",children:[b.jsxs(V1,{className:"h-10 w-10",children:[b.jsx(K1,{src:o||m.user_logo,alt:s}),b.jsx(Dm,{children:(C=s.slice(0,1))==null?void 0:C.toUpperCase()})]}),b.jsx("h1",{className:"truncate text-3xl font-bold",children:s})]}),b.jsxs("div",{className:"mt-4 flex items-center rounded-lg border-2 p-3",children:[b.jsxs("div",{className:"flex-1 items-center text-base font-bold",children:[f>0||(d==null?void 0:d.num)===-1?`🎉 有效次数:${(d==null?void 0:d.num)===-1?"无限":f}次`:"☹️ 可用余额不足",(d==null?void 0:d.expired_at)&&d.num===-1&&b.jsx("div",{className:"mt-1",children:`⏰ 有效期至:${d.expired_at}`})]}),b.jsx(Je,{size:"sm",onClick:()=>g("/billing"),children:"去充值"})]}),b.jsxs("div",{className:"mt-4",children:[b.jsx("div",{className:"text-base font-semibold",children:"任务列表"}),b.jsx("div",{className:"mt-4 flex flex-col gap-2",children:e.map((O,N)=>b.jsx("div",{className:"rounded-lg bg-primary p-3 text-primary-foreground",children:b.jsxs("div",{className:"flex items-center gap-4",children:[v(O.type).icon,b.jsxs("div",{className:"flex-1",children:[b.jsx("div",{className:"flex-1 truncate text-base font-medium",children:O.title}),b.jsx("p",{className:"mt-1 truncate text-xs",children:O.desc})]}),b.jsx(Je,{variant:"secondary",size:"sm",onClick:()=>O.type===Fr.SALESMAN?g("/salesman"):T(O.type),children:O.is_completed?v(O.type).completed:v(O.type).button})]})},N))})]}),E&&b.jsx(Je,{variant:"destructive",className:"mt-10 w-full",onClick:()=>p(),children:"退出登陆"})]}),b.jsx(Tde,{open:n,type:i,shareUrl:location.origin+`/chat?shareOpenId=${l}`,handleOpenChange:O=>r(O)})]})}var _M=(e=>(e.WECHAT="wechat",e.ALI_PAY="alipay",e))(_M||{}),H2=(e=>(e.JSAPI="JSAPI",e.NATIVE="NATIVE",e))(H2||{});const ju={getBillingPackage(){return pt("package")},exchangeRedemptionCode(e){return pt("cdk",{method:"post",body:JSON.stringify({cdk:e})})},orderBilling(e){return pt("order",{method:"post",body:JSON.stringify(e)})},billingPayDetail(e){return pt(`order/${e}/pay`)},billingDetail(e){return pt(`order/${e}`)}},wM=y.forwardRef(({className:e,...t},n)=>b.jsx("div",{className:"w-full overflow-auto",children:b.jsx("table",{ref:n,className:ze("w-full caption-bottom text-sm",e),...t})}));wM.displayName="Table";const SM=y.forwardRef(({className:e,...t},n)=>b.jsx("thead",{ref:n,className:ze("[&_tr]:border-b",e),...t}));SM.displayName="TableHeader";const CM=y.forwardRef(({className:e,...t},n)=>b.jsx("tbody",{ref:n,className:ze("[&_tr:last-child]:border-0",e),...t}));CM.displayName="TableBody";const Sde=y.forwardRef(({className:e,...t},n)=>b.jsx("tfoot",{ref:n,className:ze("bg-primary font-medium text-primary-foreground",e),...t}));Sde.displayName="TableFooter";const G2=y.forwardRef(({className:e,...t},n)=>b.jsx("tr",{ref:n,className:ze("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));G2.displayName="TableRow";const zf=y.forwardRef(({className:e,...t},n)=>b.jsx("th",{ref:n,className:ze("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));zf.displayName="TableHead";const Uf=y.forwardRef(({className:e,...t},n)=>b.jsx("td",{ref:n,className:ze("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Uf.displayName="TableCell";const Cde=y.forwardRef(({className:e,...t},n)=>b.jsx("caption",{ref:n,className:ze("mt-4 text-sm text-muted-foreground",e),...t}));Cde.displayName="TableCaption";function Ade({children:e}){const[t,n]=y.useState([]),[r,i]=y.useState(!1),[a,o]=y.useState(!0);return y.useEffect(()=>{r&&(async()=>{o(!0);const l=await li.getUserPackages();n(l),o(!1)})()},[r]),b.jsxs(ou,{open:r,onOpenChange:s=>i(s),children:[b.jsx(N0,{asChild:!0,children:e}),b.jsxs(El,{children:[b.jsx(xl,{children:b.jsx(Tl,{children:"充值记录"})}),a?b.jsx(dl,{className:"m-auto my-32 animate-spin"}):b.jsxs(wM,{children:[b.jsx(SM,{children:b.jsxs(G2,{children:[b.jsx(zf,{children:"名称"}),b.jsx(zf,{children:"问答机会"}),b.jsx(zf,{className:"text-right",children:"日期"})]})}),b.jsx(CM,{children:t.map((s,l)=>b.jsxs(G2,{children:[b.jsx(Uf,{className:"font-medium",children:s.package_name}),b.jsxs(Uf,{children:[" ",s.num===-1?`+${s.expired_day}天`:`${s.num}次`]}),b.jsx(Uf,{className:"text-right",children:s.created_at})]},l))})]}),b.jsx(Vm,{children:b.jsx(Km,{children:"确认"})})]})]})}function Nde({open:e,payInfo:t,handleOpenChange:n}){return b.jsx(su,{open:e,onOpenChange:n,children:b.jsxs(_l,{children:[b.jsx(lu,{children:"微信扫码支付"}),t?b.jsxs("div",{className:"pb-10",children:[b.jsxs("div",{className:"my-8 text-center text-4xl font-bold text-secondary-foreground",children:["¥ ",t.price]}),b.jsx(F6,{className:"m-auto",style:{width:"16rem",height:"16rem"},value:t.data.code_url})]}):b.jsx(dl,{className:"m-auto my-32 animate-spin"})]})})}function kde({open:e,payInfo:t,handleOpenChange:n}){return b.jsx(su,{open:e,onOpenChange:n,children:b.jsxs(_l,{children:[b.jsx(lu,{children:"线下支付"}),b.jsx("div",{className:"my-8 text-center text-4xl font-bold text-secondary-foreground",dangerouslySetInnerHTML:{__html:t}})]})})}let C4=0;function Ode(){const[e,t]=y.useState([]),[n,r]=y.useState(!1),[i,a]=y.useState(!1),[o,s]=y.useState(!0),[l,c]=y.useState(""),[u,d]=y.useState(null),[f]=a6(C=>[C.getCurrentBilling]),[h]=zi(C=>[C.appConfig]),{isWeixinBrowser:m,weChatPay:g}=T0(),E=wl();y.useEffect(()=>{(async()=>{s(!0);const O=await ju.getBillingPackage();t(O),s(!1)})()},[]);const p=async()=>{try{await ju.exchangeRedemptionCode(l),Zt.success("兑换成功"),f()}catch(C){Zt.error(C)}finally{c("")}},v=async C=>{if(h.channel===qw.OFFLINE){a(!0);return}const O=await ju.orderBilling({package_id:C.id,channel:_M.WECHAT,pay_type:m?H2.JSAPI:H2.NATIVE,platform:1}),N=await ju.billingPayDetail(O.id);d(N),m&&E?g(N,()=>{Zt.success("支付成功"),d(null),f()}):(r(!0),C4=setInterval(async()=>{const{status:R}=await ju.billingDetail(N.id);R==2&&(Zt.success("支付成功"),r(!1),d(null),clearInterval(C4),f())},1500))},T=C=>{r(C),clearInterval(C4)};return b.jsxs(D0,{children:[b.jsxs("div",{className:"mx-auto max-w-7xl flex-1 overflow-auto px-6 py-12",children:[o?b.jsx(dl,{className:"m-auto my-16 animate-spin"}):b.jsx("div",{className:"grid grid-cols-4 gap-6 max-lg:grid-cols-3 max-md:grid-cols-2 max-sm:grid-cols-1",children:e.map((C,O)=>b.jsxs("div",{className:"rounded-lg border p-4 shadow",children:[b.jsxs("p",{className:"mb-4 border-b pb-4",children:[b.jsx("span",{className:"text-2xl font-bold tracking-tight sm:text-4xl",children:C.price}),b.jsx("span",{className:"ml-2 text-base font-medium ",children:"元"})]}),b.jsxs("p",{className:"mb-2 flex items-center gap-2",children:[b.jsx(Gv,{strokeWidth:"3",className:"text-lime-500",size:16}),C.name]}),b.jsx("p",{className:"flex h-3 items-center gap-2",children:C.identity===2&&b.jsxs(b.Fragment,{children:[b.jsx(Gv,{strokeWidth:"3",className:"text-rose-500",size:16}),"开发者专享"]})}),b.jsx(Je,{className:"mt-14 flex w-full",onClick:()=>v(C),children:"购买"})]},O))}),b.jsxs("div",{className:"mt-4 flex gap-4",children:[b.jsx(cn,{placeholder:"请输入兑换码",value:l,onChange:C=>c(C.target.value)}),b.jsx(Je,{disabled:!l,className:"shrink-0",onClick:p,children:"立即兑换"})]}),b.jsxs("h3",{className:"mt-6 flex items-center justify-between text-base font-medium",children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(Rp,{icon:"material-symbols:book-outline-rounded",className:"mr-2"}),"充值说明"]}),b.jsx(Ade,{children:b.jsx(Je,{className:"shrink-0",children:"充值记录"})})]}),b.jsxs("ul",{className:"mt-6 space-y-4",children:[b.jsx("li",{className:"flex space-x-3",children:"1. 账户充值仅限微信在线支付方式,充值金额实时到账"}),b.jsx("li",{className:"flex space-x-3",children:"2. 账户有效次数自充值日起至用完为止"})]})]}),b.jsx(Nde,{open:n,payInfo:u,handleOpenChange:T}),b.jsx(kde,{open:i,payInfo:h.offline,handleOpenChange:C=>{a(C)}})]})}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var V2=function(e,t){return V2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},V2(e,t)};function Rde(e,t){V2(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x1=function(){return x1=Object.assign||function(t){for(var n,r=1,i=arguments.length;re?h():t!==!0&&(i=setTimeout(r?m:h,r===void 0?e-d:e))}return c.cancel=l,c}var Nc={Pixel:"Pixel",Percent:"Percent"},Kx={unit:Nc.Percent,value:.8};function Wx(e){return typeof e=="number"?{unit:Nc.Percent,value:e*100}:typeof e=="string"?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Nc.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Nc.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),Kx):(console.warn("scrollThreshold should be string or number"),Kx)}var AM=function(e){Rde(t,e);function t(n){var r=e.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might + happen because the element may not have been added to DOM yet. + See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. + `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var o=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);o&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=Mde(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return t.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. + Pull Down To Refresh functionality will not work + as expected. Check README.md for usage'`)},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?x1(x1({},r),{prevDataLength:n.dataLength}):null},t.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=Wx(r);return a.unit===Nc.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},t.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=Wx(r);return a.unit===Nc.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},t.prototype.render=function(){var n=this,r=x1({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return He.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},He.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(o){return n._infScroll=o},style:r},this.props.pullDownToRefresh&&He.createElement("div",{style:{position:"relative"},ref:function(o){return n._pullDown=o}},He.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(y.Component),Wi=(e=>(e.ORDER="order",e.CHILD="child",e))(Wi||{});function qx({type:e,style:t}){const[n,r]=y.useState([]),[i,a]=y.useState(0),[o]=y.useState(20),[s,l]=y.useState(1),[c,u]=y.useState(!0),d=async()=>{let f=[];e==="child"?f=await Bc.getSalesmanChildList(o,s):e==="order"&&(f=(await Bc.getSalesmanOrderList(o,s)).map(m=>({nickname:m.custom.nickname,order_price:m.price,created_at:m.created_at,order_num:0}))),f.length{const f=document.querySelector(".list-scroll");a((f==null?void 0:f.clientHeight)||0),d()},[]),b.jsx("div",{className:"list-scroll h-full",style:t,children:i?b.jsx(AM,{hasMore:c,loader:b.jsx("p",{className:"p-4 text-center text-gray-500",children:"加载中..."}),dataLength:n.length,height:i,endMessage:b.jsx("p",{className:"p-4 text-center text-gray-500",children:"没有数据了~"}),next:d,children:b.jsx("ul",{children:n.map((f,h)=>b.jsx("li",{children:b.jsxs("div",{className:"flex p-4 text-gray-500",children:[b.jsxs("div",{className:"w-5/12",children:[b.jsx("p",{className:"truncate text-xs font-medium",children:f.nickname}),b.jsx("p",{className:"mt-2 flex items-center text-xs",children:b.jsxs("span",{className:"truncate",children:[e==="child"?"贡献佣金":"获得佣金",":",b.jsx("span",{className:"text-gray-900",children:f.order_price})]})})]}),b.jsx("div",{className:"w-7/12",children:b.jsxs("div",{children:[b.jsx("p",{className:"text-xs",children:b.jsxs("span",{className:"truncate",children:["关联时间:",f.created_at]})}),e==="child"&&b.jsx("p",{className:"mt-2 flex items-center text-xs",children:b.jsxs("span",{className:"truncate",children:["贡献订单数:",b.jsx("span",{className:"text-gray-900",children:f.order_num})]})})]})})]})},h))})}):b.jsx(b.Fragment,{})})}function Ide({children:e}){const[t,n]=y.useState(!1),[r,i]=TS(l=>[l.statistics,l.getSalesmanStatistics]),a=I0({price:_n().refine(l=>!(!Number(l)||Number(l)>Number(r.balance)||Number(l)*1<.1),{message:"错误的提现金额"}),channel:_n().min(1,{message:"请选择提现方式"}),account:_n().refine(l=>/^(?:(?:\+|00)86)?1\d{10}$/.test(l),{message:"错误的手机号码"}),name:_n().min(2,{message:"错误的收款人姓名"})}),o=R0({resolver:M0(a),defaultValues:{channel:"alipay",price:"",account:"",name:""}});y.useEffect(()=>{t&&(async()=>{const{config:c}=await Bc.getSalesmanWithdrawalLast();o.setValue("account",c.account||""),o.setValue("name",c.name||"")})()});const s=async l=>{try{const{account:c,channel:u,name:d,price:f}=l;await Bc.withdrawal({price:f,channel:u,config:{account:c,name:d}}),Zt.success("申请成功"),i(),n(!1)}catch(c){Zt.error(c)}};return b.jsxs(ou,{open:t,onOpenChange:l=>n(l),children:[b.jsx(N0,{asChild:!0,children:e}),b.jsxs(El,{children:[b.jsx(xl,{children:b.jsxs(Tl,{className:"flex justify-between",children:["提现申请",b.jsx(Je,{className:"h-6 w-6 p-1",variant:"ghost",onClick:()=>n(!1),children:b.jsx(tu,{size:16})})]})}),b.jsx("div",{children:b.jsx(L0,{...o,children:b.jsxs("form",{onSubmit:o.handleSubmit(s),className:"mb-4 space-y-3",children:[b.jsx(Mn,{control:o.control,name:"price",render:({field:l})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[6rem] shrink-0",children:"提现金额"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入提现金额,最少0.1元",type:"number",...l})})]}),b.jsxs(d2,{className:"pl-[6rem]",children:["剩余可提现:",r.balance]}),b.jsx(vn,{className:"pl-[6rem]"})]})}),b.jsx(Mn,{control:o.control,name:"channel",render:({field:l})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[6rem] shrink-0",children:"提现方式"}),b.jsx(gn,{children:b.jsx(L6,{...l,children:b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(zh,{value:"alipay",id:"r1"}),b.jsx(J1,{htmlFor:"r1",children:"支付宝"})]})})})]}),b.jsx(vn,{className:"pl-[6rem]"})]})}),b.jsx(Mn,{control:o.control,name:"account",render:({field:l})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[6rem] shrink-0",children:"支付宝手机号"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入支付宝手机号",...l})})]}),b.jsx(vn,{className:"pl-[6rem]"})]})}),b.jsx(Mn,{control:o.control,name:"name",render:({field:l})=>b.jsxs(mn,{children:[b.jsxs("div",{className:"flex items-center",children:[b.jsx(pn,{className:"w-[6rem] shrink-0",children:"收款人姓名"}),b.jsx(gn,{children:b.jsx(cn,{placeholder:"请输入收款人姓名",...l})})]}),b.jsx(d2,{className:"pl-[6rem]",children:"请与支付宝账号保持一致"}),b.jsx(vn,{className:"pl-[6rem]"})]})}),b.jsx(Je,{type:"submit",className:"w-full",children:"申请提现"})]})})})]})]})}const Lde={1:"待审核",2:"审核通过",3:"已提现"};function Dde({children:e}){const[t,n]=y.useState(!1),[r,i]=y.useState([]),[a]=y.useState(20),[o,s]=y.useState(1),[l,c]=y.useState(!0),u=async()=>{const d=await Bc.getSalesmanWithdrawalList(a,o);d.length{u()},[]),b.jsxs(ou,{open:t,onOpenChange:d=>n(d),children:[b.jsx(N0,{asChild:!0,children:e}),b.jsxs(El,{children:[b.jsx(xl,{children:b.jsxs(Tl,{className:"flex justify-between",children:["提现记录",b.jsx(Je,{className:"h-6 w-6 p-1",variant:"ghost",onClick:()=>n(!1),children:b.jsx(tu,{size:16})})]})}),b.jsx("div",{className:"h-[60vh]",children:b.jsx(AM,{hasMore:l,loader:b.jsx("p",{className:"p-4 text-center text-gray-500",children:"加载中..."}),dataLength:r.length,endMessage:b.jsx("p",{className:"p-4 text-center text-gray-500",children:"没有数据了~"}),next:u,children:b.jsx("ul",{children:r.map((d,f)=>b.jsx("li",{children:b.jsxs("div",{className:"flex p-4 text-gray-500",children:[b.jsxs("div",{className:"w-5/12",children:[b.jsxs("p",{className:"truncate text-xs font-medium",children:["提现金额:",d.price,"元"]}),b.jsx("p",{className:"mt-2 flex items-center text-xs",children:b.jsxs("span",{className:"truncate",children:["提现状态:",b.jsx("span",{children:Lde[d.status]})]})})]}),b.jsx("div",{className:"w-7/12",children:b.jsxs("div",{children:[b.jsx("p",{className:"text-xs",children:b.jsxs("span",{className:"truncate",children:["申请时间:",d.created_at]})}),d.status===3&&d.serial_no?b.jsx("p",{className:"mt-2 text-xs",children:b.jsxs("span",{className:"break-all",children:["支付宝订单号:",d.serial_no]})}):b.jsx(b.Fragment,{})]})})]})},f))})})})]})]})}function Pde(){const[e,t]=y.useState(null),[n,r]=y.useState(!1),[i,a]=y.useState(Wi.CHILD),[o,{identity:s}]=di(d=>[d.setUserInfo,d.userInfo]),[l,c]=TS(d=>[d.statistics,d.getSalesmanStatistics]);y.useEffect(()=>{(async()=>{r(!0);const f=await $a.getSalesmanConfig();t(f),r(!1)})(),c()},[]);const u=async()=>{await li.becomeSalesman(),Zt.success("申请分销员成功");const d=await li.getUserProfile();o(d)};return b.jsx("div",{className:"flex flex-1 overflow-hidden",children:b.jsx("div",{className:ia("mx-auto max-w-7xl overflow-auto py-6",{flex:s===2}),children:n?b.jsx(dl,{className:"m-auto my-16 animate-spin"}):s===1?b.jsxs("div",{className:"px-6",children:[b.jsx("div",{dangerouslySetInnerHTML:{__html:(e==null?void 0:e.rules)||""}}),(e==null?void 0:e.enable)&&(e==null?void 0:e.open)&&b.jsx(Je,{className:"mx-auto my-8 flex",onClick:()=>u(),children:"申请成为分销员"})]}):b.jsxs("div",{className:"mx-auto flex w-[32rem] -translate-y-3 flex-col rounded-xl border p-10 max-sm:w-[22rem] max-sm:p-5",children:[b.jsxs("div",{className:"relative flex flex-col items-center rounded-lg border-2 p-6",children:[b.jsx(Dde,{children:b.jsx(RF,{className:"absolute right-6 top-6 cursor-pointer text-base "})}),b.jsxs("div",{className:"mb-4 flex-1 items-center text-base",children:["剩余可提现:",b.jsx("span",{className:"font-bold",children:l.balance})]}),b.jsx(Ide,{children:b.jsx(Je,{size:"sm",disabled:!Number(l.balance),children:"提现"})})]}),b.jsxs("div",{className:"my-4 text-center text-base font-bold",children:["当前佣金比例:",l.ratio,"%"]}),b.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[b.jsxs("div",{className:ia("col-span-1 flex flex-col items-center justify-center rounded-lg py-4 text-lg cursor-pointer",{"border-2":i===Wi.CHILD}),onClick:()=>a(Wi.CHILD),children:[l.custom_num,b.jsx("span",{className:"text-xs",children:"成功邀请客户数"})]}),b.jsxs("div",{className:ia("col-span-1 flex flex-col items-center justify-center rounded-lg py-4 text-lg cursor-pointer",{"border-2":i===Wi.ORDER}),onClick:()=>a(Wi.ORDER),children:[l.order_price,b.jsx("span",{className:"text-xs",children:"获得总佣金(元)"})]})]}),b.jsxs("div",{className:"mt-4 flex-1 overflow-hidden",children:[b.jsx(qx,{style:{display:i===Wi.CHILD?"block":"none"},type:Wi.CHILD}),b.jsx(qx,{style:{display:i===Wi.ORDER?"block":"none"},type:Wi.ORDER})]})]})})})}const $de=w6,Fde=S6,Bde=Pm("fixed inset-0 z-50 flex",{variants:{position:{top:"items-start",bottom:"items-end",left:"justify-start",right:"justify-end"}},defaultVariants:{position:"right"}}),NM=({position:e,className:t,children:n,...r})=>b.jsx(_0,{className:ze(t),...r,children:b.jsx("div",{className:Bde({position:e}),children:n})});NM.displayName=_0.displayName;const kM=y.forwardRef(({className:e,...t},n)=>b.jsx(w0,{className:ze("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t,ref:n}));kM.displayName=w0.displayName;const zde=Pm("fixed z-50 scale-100 gap-4 border bg-background p-6 opacity-100 shadow-lg",{variants:{position:{top:"w-full animate-in slide-in-from-top duration-300",bottom:"w-full animate-in slide-in-from-bottom duration-300",left:"h-full animate-in slide-in-from-left duration-300",right:"h-full animate-in slide-in-from-right duration-300"},size:{content:"",default:"",sm:"",lg:"",xl:"",full:""}},compoundVariants:[{position:["top","bottom"],size:"content",class:"max-h-screen"},{position:["top","bottom"],size:"default",class:"h-1/3"},{position:["top","bottom"],size:"sm",class:"h-1/4"},{position:["top","bottom"],size:"lg",class:"h-1/2"},{position:["top","bottom"],size:"xl",class:"h-5/6"},{position:["top","bottom"],size:"full",class:"h-screen"},{position:["right","left"],size:"content",class:"max-w-screen"},{position:["right","left"],size:"default",class:"w-1/3"},{position:["right","left"],size:"sm",class:"w-1/4"},{position:["right","left"],size:"lg",class:"w-1/2"},{position:["right","left"],size:"xl",class:"w-5/6"},{position:["right","left"],size:"full",class:"w-screen"}],defaultVariants:{position:"right",size:"default"}}),OM=y.forwardRef(({position:e,size:t,showClose:n=!0,className:r,children:i,...a},o)=>b.jsxs(NM,{position:e,children:[b.jsx(kM,{}),b.jsxs(S0,{ref:o,className:ze(zde({position:e,size:t}),r),...a,children:[i,n&&b.jsxs(Gm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[b.jsx(tu,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));OM.displayName=S0.displayName;const Ude=y.forwardRef(({className:e,...t},n)=>b.jsx(C0,{ref:n,className:ze("text-lg font-semibold text-foreground",e),...t}));Ude.displayName=C0.displayName;const jde=y.forwardRef(({className:e,...t},n)=>b.jsx(A0,{ref:n,className:ze("text-sm text-muted-foreground",e),...t}));jde.displayName=A0.displayName;const Hde=()=>{const{t:e}=p0(),[t,n]=y.useState(!1),[r]=ts(a=>[a.currentConversation]),i=y.useMemo(()=>location.pathname.includes("user")?e("user center"):location.pathname.includes("billing")?e("billing center"):location.pathname.includes("salesman")?e("salesman center"):r.title,[r,location.pathname]);return b.jsxs("div",{className:"border-b py-4 text-center",children:[b.jsxs($de,{open:t,onOpenChange:a=>n(a),children:[b.jsx(Fde,{className:"absolute left-4",children:b.jsx(kF,{})}),b.jsx(OM,{className:"w-auto p-0",position:"left",showClose:!1,children:b.jsx(TM,{onChange:()=>n(!1)})})]}),i]})},Gde=()=>{const e=[{path:"/chat",icon:b.jsx(zw,{size:20})},{path:"user",icon:b.jsx(GF,{size:20})},{path:"billing",icon:b.jsx(MF,{size:20})}],t=Hr(),[n,r]=zi(i=>[i.theme,i.setTheme]);return y.useEffect(()=>{r(n)},[]),b.jsxs("div",{className:"flex items-center justify-between border-t px-20 py-4 text-center",children:[e.map((i,a)=>b.jsx("div",{className:ia("flex flex-col items-center gap-2 rounded-xl p-4",{"bg-secondary":location.pathname.includes(i.path)}),onClick:()=>t(i.path),children:i.icon},a)),b.jsxs(Um,{children:[b.jsx(jm,{asChild:!0,children:b.jsx(Je,{variant:"ghost",className:"h-9 w-9 p-0",children:b.jsx(Uw,{size:18})})}),b.jsx(x0,{side:"top",align:"start",children:b.jsxs(nl,{className:"flex items-center gap-2 pr-3",children:[b.jsx(WC,{}),b.jsx(hh,{to:"https://github.com/gptlink/gptlink-web",target:"_blank",children:b.jsx(Je,{variant:"ghost",className:"p-0 px-2",children:b.jsx(Bw,{size:18})})})]})})]})]})},Vde=()=>{const e=wl(),t=Hr(),{setWeixinShare:n}=T0(),{checkTask:r}=T6();return y.useEffect(()=>{location.pathname==="/"&&t("/chat"),n(),r(Fr.REGISTER),r(Fr.INVITE)},[]),rA(),x6(),aA(),b.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[e?b.jsx(Hde,{}):b.jsx(qC,{}),b.jsx(hP,{}),e&&!location.pathname.includes("salesman")&&b.jsx(Gde,{})]})};function Yx(){return b.jsx("div",{className:"flex h-screen w-full items-center justify-center",children:b.jsx("section",{className:"bg-white dark:bg-gray-900",children:b.jsx("div",{className:"mx-auto max-w-screen-xl px-4 py-8 lg:px-6 lg:py-16",children:b.jsxs("div",{className:"mx-auto max-w-screen-sm text-center",children:[b.jsx("h1",{className:"text-7xl font-extrabold tracking-tight text-primary dark:text-primary lg:text-9xl",children:"404"}),b.jsx("p",{className:"my-8 text-3xl font-bold tracking-tight text-gray-900 dark:text-white md:text-4xl",children:"Whoops! 页面未找到"}),b.jsx(Je,{variant:"destructive",className:"mt-2",children:b.jsx(hh,{to:"/chat",children:"返回首页"})})]})})})})}const A4=()=>localStorage.getItem(yr.AccessToken)?null:(Zt.error("请登录"),MD("/login")),Kde=xP([{path:"/",element:b.jsx(Vde,{}),errorElement:b.jsx(Yx,{}),children:[{path:"chat",element:b.jsx(Ede,{}),index:!0},{path:"user",element:b.jsx(wde,{}),loader:A4},{path:"billing",element:b.jsx(Ode,{}),loader:A4},{path:"salesman",element:b.jsx(Pde,{}),loader:A4}]},{path:"/login",element:b.jsx(_X,{}),errorElement:b.jsx(Yx,{})}]);N4.createRoot(document.getElementById("root")).render(b.jsxs(b.Fragment,{children:[b.jsx(dP,{router:Kde}),b.jsx(g$,{})]}))});export default Wde(); diff --git a/gptweb/assets/index-e2590240.css b/gptweb/assets/index-e2590240.css new file mode 100644 index 0000000..a57f60b --- /dev/null +++ b/gptweb/assets/index-e2590240.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 100% 50%;--destructive-foreground: 210 40% 98%;--ring: 215 20.2% 65.1%;--radius: .5rem}.dark{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--border: 216 34% 17%;--input: 216 34% 17%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 1.2%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.markdown-table{color:var(--tw-prose-body);max-width:65ch}.markdown-table :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.markdown-table :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.markdown-table :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.markdown-table :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.markdown-table :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.markdown-table :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.markdown-table :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.markdown-table :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.markdown-table :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.markdown-table :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.markdown-table :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.markdown-table :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.markdown-table :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.markdown-table :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.markdown-table :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.markdown-table :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.markdown-table :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.markdown-table :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.markdown-table :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.markdown-table :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.markdown-table :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.markdown-table :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.markdown-table :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.markdown-table :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.markdown-table :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.markdown-table :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.markdown-table :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.markdown-table :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.markdown-table :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.markdown-table :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.markdown-table :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.markdown-table :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.markdown-table :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.markdown-table :where(code):not(:where([class~="not-prose"] *)):before{content:"`"}.markdown-table :where(code):not(:where([class~="not-prose"] *)):after{content:"`"}.markdown-table :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.markdown-table :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.markdown-table :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.markdown-table :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.markdown-table :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.markdown-table :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.markdown-table :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.markdown-table :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.markdown-table :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.markdown-table :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.markdown-table :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.markdown-table :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.markdown-table :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.markdown-table :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.markdown-table :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.markdown-table{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.markdown-table :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.markdown-table :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.markdown-table :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.markdown-table :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.markdown-table :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.markdown-table :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.markdown-table :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.markdown-table :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.markdown-table :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.markdown-table :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.markdown-table :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.markdown-table :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.markdown-table :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.markdown-table :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.markdown-table :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.markdown-table :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.markdown-table :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.markdown-table :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}:is(.dark .markdown-table){--tw-prose-body: var(--tw-prose-invert-body);--tw-prose-headings: var(--tw-prose-invert-headings);--tw-prose-lead: var(--tw-prose-invert-lead);--tw-prose-links: var(--tw-prose-invert-links);--tw-prose-bold: var(--tw-prose-invert-bold);--tw-prose-counters: var(--tw-prose-invert-counters);--tw-prose-bullets: var(--tw-prose-invert-bullets);--tw-prose-hr: var(--tw-prose-invert-hr);--tw-prose-quotes: var(--tw-prose-invert-quotes);--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);--tw-prose-captions: var(--tw-prose-invert-captions);--tw-prose-code: var(--tw-prose-invert-code);--tw-prose-pre-code: var(--tw-prose-invert-pre-code);--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);--tw-prose-th-borders: var(--tw-prose-invert-th-borders);--tw-prose-td-borders: var(--tw-prose-invert-td-borders)}.markdown-table :is(:where(th):not(:where([class~="not-prose"] *))){border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));text-align:center}.markdown-table :is(:where(td):not(:where([class~="not-prose"] *))){border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0px}.bottom-1{bottom:.25rem}.bottom-3{bottom:.75rem}.left-0{left:0px}.left-2{left:.5rem}.left-4{left:1rem}.left-\[50\%\]{left:50%}.right-0{right:0px}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0px}.top-4{top:1rem}.top-6{top:1.5rem}.z-10{z-index:10}.z-50{z-index:50}.col-span-1{grid-column:span 1 / span 1}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-32{margin-top:8rem;margin-bottom:8rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-\[-0\.5rem\]{margin-top:-.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\/2{height:50%}.h-1\/3{height:33.333333%}.h-1\/4{height:25%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-44{height:11rem}.h-5\/6{height:83.333333%}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1px\]{height:1px}.h-\[30rem\]{height:30rem}.h-\[60vh\]{height:60vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-80{max-height:20rem}.max-h-\[7rem\]{max-height:7rem}.max-h-screen{max-height:100vh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[20px\]{min-height:20px}.min-h-\[80px\]{min-height:80px}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5\/12{width:41.666667%}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-64{width:16rem}.w-7\/12{width:58.333333%}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1px\]{width:1px}.w-\[25rem\]{width:25rem}.w-\[3\.5rem\]{width:3.5rem}.w-\[32rem\]{width:32rem}.w-\[4rem\]{width:4rem}.w-\[6rem\]{width:6rem}.w-\[70\%\]{width:70%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[6rem\]{min-width:6rem}.min-w-\[8rem\]{min-width:8rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-3{--tw-translate-y: -.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/90{background-color:hsl(var(--primary) / .9)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-20{padding-left:5rem;padding-right:5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pl-\[6rem\]{padding-left:6rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-7xl{font-size:4.5rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.blur-sm{--tw-blur: blur(4px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.fade-in-50{--tw-enter-opacity: .5}.fade-in-90{--tw-enter-opacity: .9}.slide-in-from-bottom{--tw-enter-translate-y: 100%}.slide-in-from-bottom-10{--tw-enter-translate-y: 2.5rem}.slide-in-from-left{--tw-enter-translate-x: -100%}.slide-in-from-right{--tw-enter-translate-x: 100%}.slide-in-from-top{--tw-enter-translate-y: -100%}.duration-100{animation-duration:.1s}.duration-300{animation-duration:.3s}.scroll-bar-none::-webkit-scrollbar{display:none}.markdown-table :where(p):not(:where([class~="not-prose"] *)){margin:0}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last-of-type\:mb-0:last-of-type{margin-bottom:0}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:flex{display:flex}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=open\]\:fade-in-90[data-state=open]{--tw-enter-opacity: .9}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y: -.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x: .25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x: -.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y: .25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=open\]\:slide-in-from-bottom-10[data-state=open]{--tw-enter-translate-y: 2.5rem}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:text-primary){color:hsl(var(--primary))}:is(.dark .dark\:text-secondary){color:hsl(var(--secondary))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media not all and (min-width: 1024px){.max-lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media not all and (min-width: 768px){.max-md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (min-width: 640px){.max-sm\:h-\[30rem\]{height:30rem}.max-sm\:w-\[22rem\]{width:22rem}.max-sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.max-sm\:p-5{padding:1.25rem}}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-lg{max-width:32rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:zoom-in-90{--tw-enter-scale: .9}.sm\:slide-in-from-bottom-0,.data-\[state\=open\]\:sm\:slide-in-from-bottom-0[data-state=open]{--tw-enter-translate-y: 0px}}@media (min-width: 768px){.md\:w-full{width:100%}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:text-9xl{font-size:8rem;line-height:1}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/gptweb/index.html b/gptweb/index.html index d47d292..7edc26f 100644 --- a/gptweb/index.html +++ b/gptweb/index.html @@ -5,8 +5,8 @@ - - + +